[android-developers] Re: Memory Leak in 1.6

2011-01-02 Thread Prateek Jain
Hi John, If you can post the logs would help understand the reason of the memory leak. Also, a small sample of code will be helpful. Cheers, Prateek On Jan 1, 12:32 am, John Gaby jg...@gabysoft.com wrote: I seem to have a memory leak when running under version 1.6 of the OS.  I have a custom

[android-developers] Re: Screen Rotation

2011-01-02 Thread Prateek Jain
I am not sure, if you just want to stop your app to change orientation on rotating. But if thats the case, along with the line you mentioned android:configChanges=orientation|keyboardHidden which tells the system that app will be handling the orientation change, you need to add the following line

[android-developers] Re: How to disable back button..?

2010-12-22 Thread Prateek Jain
Hi, If you just want to disable the back button and do nothing, you can try this - @Override public void onBackPressed() { // Your code here, If you wish to write any, else no need. :-) } Thats it !!! Cheers, Prateek On Dec 22, 5:06 pm, Abhilash baddam

[android-developers] Re: Custom List View

2010-12-01 Thread Prateek Jain
On itemClickListener make web view invisible for all the items other than the selected one. It will be better if you can post the code too. Cheers, Prateek On Dec 2, 11:05 am, Android Humanoid droid.hu...@gmail.com wrote: Hi All, I have custom list view in which each list item has 1. an

[android-developers] Re: Import Contacts from .vcf file in Android 2.1

2010-11-28 Thread Prateek Jain
, Prateek Jain mrprateekj...@gmail.com wrote: Hi All, I am able to retrieve all contacts from android in .vcf file using following code. ContentResolver cr = getContentResolver();     Cursor cur = cr.query(ContactsContract.Contacts.CONTENT_URI,null, null, null, null); String

[android-developers] Import Contacts from .vcf file in Android 2.1

2010-11-25 Thread Prateek Jain
Hi All, I am able to retrieve all contacts from android in .vcf file using following code. ContentResolver cr = getContentResolver(); Cursor cur = cr.query(ContactsContract.Contacts.CONTENT_URI,null, null, null, null); String lookupKey =

[android-developers] Re: Initial position of scrollbar in ListView

2010-11-23 Thread Prateek Jain
Hi, I think headers are the part of ListView (therefore 1st ListView item), so you cannot make scrollbar at the top when the focus is on the the next item. No so sure though. Cheers, Prateek On Nov 18, 5:30 pm, lou louis.coq...@wopata.com wrote: Hi ! I'm actually working on a ListView, which

[android-developers] Re: How can I access data from SD card?

2010-10-25 Thread Prateek Jain
You can use the following code snippet to access sdcard - boolean mExternalStorageAvailable = false; boolean mExternalStorageWriteable = false; String state = Environment.getExternalStorageState(); if (Environment.MEDIA_MOUNTED.equals(state)) {

[android-developers] Reading Database files

2010-10-25 Thread Prateek Jain
Hi Everyone, Is it possible to read the database files in Android 2.1 ? For example, files in /data/data/com.android.providers.contacts/databases/ contacts2.db If yes, how? And is it possible to replace this file programmatically in order to import / export contacts or any other database files?

[android-developers] Export and Import Contacts as a vCard. Android OS 2.l

2010-10-25 Thread Prateek Jain
Hi Everyone, I have seen various posts on importing contacts as a vCard format and didn't really got the clean way of achieving this. I tried following code to import the code - public void readContacts(View view) { ContentResolver cr = getContentResolver();

[android-developers] Google Android

2009-11-24 Thread Prateek Jain
Hey! I haven't used any Android device, but I've read a lot of news about it, and I feel it pretty cool. Though I still prefer my Symbian S60 more. What about you guys? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,