[android-developers] Re: Radio button in list adapter

2011-05-26 Thread Senthil ACS
Have a layout that contains a radio button. Inflate the layout for the list in your "getView()" or "bindView" method. On May 26, 7:13 am, TreKing wrote: > On Wed, May 25, 2011 at 8:42 PM, Jay SB wrote: > > Could  any throw some light for implementing the Radio button click in the > > list adapte

[android-developers] Re: security exception while reading call logs?

2011-05-26 Thread Senthil ACS
We delete call logs for one of our use cases and it works. We use these two permissions. And it must work for query as well. Senthil On May 26, 9:43 am, Hitendrasinh Gohil wrote: > hi, > > i have already set READ_CONTACT in manifest. -- You received this message because you are subsc

[android-developers] Re: ListView Issue

2011-05-26 Thread Senthil ACS
Agree with Treking.. Hint: Use layoutinflater On May 26, 2:28 am, TreKing wrote: > On Tue, May 24, 2011 at 1:18 PM, bhima santosh wrote: > > > I want to have a listview with each row having a button,textview and image. > > Can anyone tell how to go abt it > > Step 1 would be "Read the documentat

[android-developers] Re: SQLite, Cursors, CursorIndexOutOfBoundsException

2011-05-26 Thread Senthil ACS
Hi, After you get a cursor object from a query, check the count before doing "moveToFirst()". if(cursor.getCount() > 0) { cursor.moveToFirst(); ... processing ... } On May 26, 3:12 am, adek wrote: > Hello, > > As a beginner in android java world I need your help. I've got problem > with

[android-developers] Re: Convert tamil unicode character to tamil text

2011-05-02 Thread Senthil ACS
Madam, U need to have UTF16 font (Latha or Aksharamala) installed on the device. The font typically tells how to draw on the screen. And every character is associated with a unicode character. Hence, try to find if u can place the font in the phone. If u have your android phone rooted, u can play

[android-developers] Re: OutOfMemory exception in OnCreate

2010-10-03 Thread Senthil ACS
onCreate gets called when u turn change the orientation if you are not handling orientation changes in the manifest. I have seen so many ppl complaining of this. The perfect solution is given in this link http://android-developers.blogspot.com/2009/01/avoiding-memory-leaks.html If its failing to

[android-developers] Re: mapview on the top part of the screen ?

2010-05-08 Thread Senthil ACS
503 by 480 is huge. Try setting width as "fill_parent" and height as say 100dip. On May 7, 5:14 am, jgan wrote: > Hi > > Does anyone know how to put mapview on the top part of the screen? > > The map always occupies the whole screen and squeezes out the views > below. > > The explicitly specified

[android-developers] Re: Button in ListView Event

2010-05-08 Thread Senthil ACS
Dude.. In intent.setClass(), pass the first parameter as the activity context that, in this case, can be obtained by declaring a final variable outside the onClick() method so that it can be accessed inside. Second paramter must be the target classname dot class. (TargetClass.class) Modifying ht

[android-developers] Re: SQLite & concurrent access best practices

2010-05-08 Thread Senthil ACS
For insert() and update(), have it under synchronized blocks. On May 8, 5:40 pm, Thierry Legras wrote: > Hi, > > I have an application with several tables, each being updated by AsyncTask > fired by different Activities and used by UI with SimpleCursorAdapter. > Though i am not developping a game

[android-developers] Re: Best practice for sharing a SQLiteCursor from one Activity to another?

2010-05-08 Thread Senthil ACS
I remember there is an interface named CrossProcessCursor that implements Cursor. Specify this interface in your aidl interface method. On May 8, 7:21 pm, westmeadboy wrote: > In one activity I build a cursor which is used to populate a ListView. > > I want a secondary activity to be able to step

[android-developers] Type to Search with Multiple Content Providers

2010-02-27 Thread Senthil ACS
Hi All, I am implementing a Type To Search functionality using Quick Search Bar. Here, i have a requirement where from the MainActivity, i must be able to search for Media (Songs, Images, Videos) + a list of new movies from the server. I have separated both of them in two different ContentProvider