[android-developers] Problems when using GridView in Gallery

2010-03-01 Thread Molee
I got the similar problem as a post in stackoverflow forum with name gridview in gallery I can implement and successfullly run with gridview in gallery class. yet gallery no longer fire the onfling function. For the sake of writing something simliar to homescreen, displaying thumbnail of apps

[android-developers] Re: Problems when using GridView in Gallery

2010-03-01 Thread Molee
to be more specific http://stackoverflow.com/questions/1986763/gridviews-inside-a-gallery I got the same problem with him about touchscreen, not able to fling the items(gridview) of the gallery. In general cases, when u use the tracakball in gallery, u can see orange rectangle rounding the

[android-developers] Re: Problems when using GridView in Gallery

2010-03-01 Thread Molee
Below is my code fragment CustomGallery is a class extending class Gallery to modify the fling event.. onCreate()/ setContentView(R.layout.grid_gallery); gal = (CustomGallery) findViewById(R.id.appsgallery);

[android-developers] Re: Service - how to show its progress in Activity

2010-01-03 Thread Molee
also get  some etra hooks, like Pre-execute and Post- execute. http://android-developers.blogspot.com/2009/05/painless-threading.html Thanks and Regards, Kumar Bibek On Jan 3, 7:32 am, Molee leehc...@gmail.com wrote: I used to implements the progress of downloading sth in a worker thread

[android-developers] Re: Service - how to show its progress in Activity

2010-01-02 Thread Molee
the better solution??? Whats the difference between thread and asynctask??? Any response is greatly appreciated. Thanks, Molee On 1月3日, 上午1時10分, Kumar Bibek coomar@gmail.com wrote: If the service is coupled to your UI, I think AsyncTask would be a better solution. Look at the examples for the same

[android-developers] Re: Working with the new ContactContracts API

2009-12-21 Thread Molee
for content of email and note, by convention, you can put then into column data1 directly ContactsContract.DataColumns.data1 i found that there is no object in ContactsContract.CommonDataKinds.Email representing data1 hence i just put data1 directly and it works

[android-developers] How to work with ContactsContract.Contacts.CONTENT_VCARD_URI

2009-12-09 Thread Molee
I can successfully retrieve a FileInputStream with this uri as follows Uri myPerson = Uri.withAppendedPath (ContactsContract.Contacts.CONTENT_VCARD_URI, iLookKey); AssetFileDescriptor afd =this.getContentResolver ().openAssetFileDescriptor(myPerson, r); FileInputStream