[android-developers] [Help] Can i get a OAuth token from AccountManger.getToken ?

2010-08-19 Thread Vincent Tsao
if i can, What is this value for authtokentype suppose to be for Google OAuth token using AccountManager.getAuthToken? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com

[android-developers] Which type of token should i get if i want to get Google contacts?

2010-08-19 Thread Vincent Tsao
hi there, i can get a auth token from AccountManager.get(context).getAuthToken method, what's the value for authTokenType should be if i want to get Google contacts? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] [Help] How can i get related email info through Google AuthSub token?

2010-08-18 Thread Vincent Tsao
hi there, i can get user Account token from Android AccountManager API, how can i get the related email info from this AuthSub token? i've found no appropriate GData API so far Why should i do this? i need to make sure the token and email are paired to avoid a fake token which not related to the

[android-developers] Re: [Help] How can i get related email info through Google AuthSub token?

2010-08-18 Thread Vincent Tsao
any help? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more

Re: [android-developers] Re: Modifying components on widget from activity

2010-07-12 Thread Vincent Tsao
i almost missing this great thread, Mark Dirk, thank you -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] sqlite3 in adb not in 2.2?

2010-06-28 Thread Vincent Tsao
On Mon, May 24, 2010 at 7:41 AM, Mark Murphy mmur...@commonsware.comwrote: schwiz wrote: So I just watched the talk at Google I/O where they showed how to use sqlite3 in ADB to help debug your database. I didn't know you could do that way cool. So I was doing it on my nexus which is

[android-developers] Re: sqlite3 in adb not in 2.2?

2010-06-27 Thread Vincent Tsao
On May 24, 7:41 am, Mark Murphy mmur...@commonsware.com wrote: schwiz wrote: So I just watched the talk at Google I/O where they showed how to use sqlite3in ADB to help debug your database.  I didn't know you could do that way cool.  So I was doing it on my nexus which is rooted and it

[android-developers] [Help] how to place item in GridView

2010-05-26 Thread Vincent Tsao
i have four item in a GridView, named One, Two, Three, and Four. All these items set into a GridView will be looked like this: [image: 1.png] but, i wish these items display as blow: One placed in the First row. Two, Three and Four item placed in the Second row [image: 2.png] any idea how to

Re: [android-developers] [Help] how to place item in GridView

2010-05-26 Thread Vincent Tsao
, one general speaking, use holder item to fill in GridView, then make those holder items invisiable: [image: 3.png] Finnaly, that's working! Sigh~~, a weird requirement and a really tricky solution :) On Thu, May 27, 2010 at 12:00 AM, Mark Murphy mmur...@commonsware.comwrote: Vincent Tsao

[android-developers] [Help] Anybody run Chrometophone in Android 2.2 Emulator successfully?

2010-05-23 Thread Vincent Tsao
i found Chrometophone here: http://code.google.com/p/chrometophone/. I'm trying to setup this project in Android 2.2 Emulator, but i can't setup a Google Account in Emulator, so i can't Resister Device. anybody run this project in emulator successfully? Any instructions? -- You received this

[android-developers] Re: [Help] Activity pause timeout for HistoryRecord -- Any idea how does this happen ?

2010-05-12 Thread Vincent Tsao
well , i see what' happens, render ListView with CursorAdapter cost too much time, i need improve the performance of Activity B, that's all -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: [Help] how to draw multiple lines in Edittext?

2010-05-11 Thread Vincent Tsao
, May 8, 2010 at 12:53 AM, Vincent Tsao caojunvinc...@gmail.comwrote: @Soical Hub: thanks for your help, your suggestion inspired me a lot i finally find this way to get padding: *getCompoundPaddingTop()*, and it works fine now what' more, i find another tricky way to meet my requirement

[android-developers] [Help] Activity pause timeout for HistoryRecord -- Any idea how does this happen ?

2010-05-11 Thread Vincent Tsao
i'm start a new Activity B from Activity A, and find launch Activiy B is very slow, cost over 3000 Milliseconds, and when i click back to Activity A, then i found this log below: *05-11 15:19:30.201: WARN/ActivityManager(79): Activity pause timeout for HistoryRecord{43aaedc8

[android-developers] Re: timeout for HistoryRecord

2010-05-11 Thread Vincent Tsao
hi, Anzi, any progress here? i have the same problem -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] [Help] how to draw multiple lines in Edittext?

2010-05-07 Thread Vincent Tsao
i have a customized LinkedEditText extends from EditText, and override the onDraw method as below: protected void onDraw(Canvas canvas) { canvas.drawColor(paperColor); int count = getLineCount(); int height = this.getMeasuredHeight(); int line_height =

[android-developers] Re: [Help] how to draw multiple lines in Edittext?

2010-05-07 Thread Vincent Tsao
any help? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more

Re: [android-developers] Re: [Help] how to draw multiple lines in Edittext?

2010-05-07 Thread Vincent Tsao
On Fri, May 7, 2010 at 9:45 PM, social hub shubem...@gmail.com wrote: I believe you should include the height of your title bar and status bar as well. If you account for one of them i guess it will look right hi, thanks for your reply. so getMeasuredHeight() return me the whole view height,

Re: [android-developers] Re: [Help] how to draw multiple lines in Edittext?

2010-05-07 Thread Vincent Tsao
It remind me of considering some margin space, so i change my code as below: protected void onDraw(Canvas canvas) { canvas.drawColor(paperColor); int count = getLineCount(); int height = this.getMeasuredHeight(); int line_height = this.getLineHeight(); int

Re: [android-developers] Re: [Help] how to draw multiple lines in Edittext?

2010-05-07 Thread Vincent Tsao
@Soical Hub: thanks for your help, your suggestion inspired me a lot i finally find this way to get padding: *getCompoundPaddingTop()*, and it works fine now what' more, i find another tricky way to meet my requirement: *Step 1: fill in the EditText with 18 'empty' line rows*

Re: [android-developers] how to handle the Dpad event in headview/footview of listview?

2010-05-06 Thread Vincent Tsao
one more question, why mFootView.setOnClickListener not working? am i doing sth wrong? On Thu, May 6, 2010 at 2:13 PM, Second Dancer seconddan...@gmail.comwrote: That is the right way and still the smart way, unless you don't use listview On May 6, 2010 3:58 AM, Vincent Tsao caojunvinc

[android-developers] how to handle the Dpad event in headview/footview of listview?

2010-05-05 Thread Vincent Tsao
i have add a footview in listview with this code: mListView.addFooterView(mFootView); and also Register a callback to be invoked when this mFootView is clicked with code below: mFootView.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) {

[android-developers] [Help] How to get thumbnail picture from HTC Hero?

2010-05-03 Thread Vincent Tsao
i'm trying to fetch a thumbnail with picture URI using these code below: long id = ContentUris.parseId(selectedImageURI); String[] projection = { MediaStore.Images.Thumbnails.DATA }; Cursor c = Images.Thumbnails.queryMiniThumbnail(getContentResolver(), id,

[android-developers] Re: [Help] How to get thumbnail picture from HTC Hero?

2010-05-03 Thread Vincent Tsao
any help? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more

Re: [android-developers] Re: [Help] How to get thumbnail picture from HTC Hero?

2010-05-03 Thread Vincent Tsao
On Mon, May 3, 2010 at 9:55 PM, Streets Of Boston flyingdutc...@gmail.comwrote: create a thumbnail by myself? Yes. I found that thumbnails are not always generated. hi, thanks for your reply generate thumbnail by myself this action will cost more time comparing with get thumbnail by using

[android-developers] [Help] How to get current UTC time?

2010-04-28 Thread Vincent Tsao
As you know, i can use System.currentTimeMillis() to fetch current local time, but how to convert local time to UTC time? the code below, i can get the timezone, utc_bias also can be got Time mSavedTime = new Time(); mSavedTime.set(System.currentTimeMillis()); TimeZone

Re: [android-developers] ListView with multiple layouts formats in it

2010-04-28 Thread Vincent Tsao
hi, noid, this article may help you, Separating Lists with Headers in Android 0.9: http://diigo.com/0anhm -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

Re: [android-developers] Re: [Help] How to get current UTC time?

2010-04-28 Thread Vincent Tsao
On Wed, Apr 28, 2010 at 3:57 PM, String sterling.ud...@googlemail.comwrote: On Apr 28, 7:31 am, Vincent Tsao caojunvinc...@gmail.com wrote: As you know, i can use System.currentTimeMillis() to fetch current local time, but how to convert local time to UTC time? Are you sure

Re: [android-developers] Re: In which case should i use content provider?

2010-03-16 Thread Vincent Tsao
android:name=.provider.myProvider android:permission=com.example.project.permission More info can be found here http://developer.android.com/guide/topics/manifest/provider-element.html On Tue, Mar 16, 2010 at 10:43 AM, Vincent Tsao caojunvinc...@gmail.comwrote: Hi Makas, that what i exactly

[android-developers] In which case should i use content provider?

2010-03-15 Thread Vincent Tsao
hi there, how should i use content provider without share app data between other app? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group,

Re: [android-developers] Re: In which case should i use content provider?

2010-03-15 Thread Vincent Tsao
://developer.android.com/guide/topics/security/security.html. Makas On Mar 15, 10:25 pm, Vincent Tsao caojunvinc...@gmail.com wrote: hi there, how should i use content provider without share app data between other app? -- You received this message because you are subscribed to the Google Groups

[android-developers] How to display list of images in ListView in android?

2009-05-21 Thread Vincent Tsao
i would be retrieving values from sqlite database and have to display it in a list view...So how should i pass the images out from the database into the list view(in fact, i only save the image uri in db).. I am able to save and retrieve images individually and display it on the screen.But how do

[android-developers] Re: How to display list of images in ListView in android?

2009-05-21 Thread Vincent Tsao
nevermind, i have found the solution, here is a good example to bind the SimpleCursorAdapter to a ListView : http://ambiguiti.es/2009/04/making-custom-rows-in-android-listviews/ On Thu, May 21, 2009 at 5:01 PM, Vincent Tsao caojunvinc...@gmail.comwrote: i'd like to create a new adapter which

[android-developers] Re: How to create a simple list of names, with personal image for each row

2009-05-21 Thread Vincent Tsao
hi, this sample tutorial may help you http://stackoverflow.com/questions/459729/how-to-display-list-of-images-in-listview-in-android/892643#892643 On Thu, May 21, 2009 at 11:36 PM, Morelli Giuseppe peppe.more...@gmail.comwrote: Hi guys, I'm trying to create a simple list for my app extending

[android-developers] How to make this prompt menu after capture picture?

2009-05-19 Thread Vincent Tsao
hi, there is native app in G1 named Camera , after i take a photo, there is a prompt menu pop-up. Would somebody tell me how to implement this prompt ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android