[android-developers] Re: Strange behaviour with RessourceCursorAdapter

2011-03-24 Thread Antony BODY
Yes Nadeem, good idea ;-) Then my adapter inherits from ResourceCursorAdapter and redifying NewView method as: LayoutInflater li = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); return li.inflate(R.layout.listchargelayoutitem,

[android-developers] Re: Strange behaviour with RessourceCursorAdapter

2011-03-24 Thread Antony BODY
Oh nice. Apparatly it's working!! If I well understood, I just needed to force the visibility of the ImageView, otherwise it's set visible in the xml layout. It's good to know ;-) Thanks Nadeem -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Strange behaviour with RessourceCursorAdapter

2011-03-23 Thread Antony BODY
Hi all, I have have a little question about a strange behaviour with a ListView wich is filled by a RessourceCursorAdapter. The result of my query contains diferent column, where one is a boolean use to display a picture or not. On true value the picture appears in my custom list item. My

[android-developers] RessourceCursorAdapter issue

2011-03-22 Thread Antony BODY
Hi all, I have identified an issue in my aplication about RessourceCursorAdapter. I have a ListView wich is filled with this adapter. I use a custom layout to define each item in list. This layout declare an optional image based on a boolean in my SQL query's result. This is working as well I

[android-developers] Re: Styles and TabHost

2011-03-02 Thread Antony BODY
Ok, nobody already tried this way for the styles on tab widget ? I guess it's just possible by code with the setIndicator function on TabSpec. On 28 fév, 23:02, Antony BODY antony.b...@gmail.com wrote: Hi all, I'm trying to apply themes and styles on my application which is TabHost. I can't

[android-developers] Styles and TabHost

2011-02-28 Thread Antony BODY
Hi all, I'm trying to apply themes and styles on my application which is TabHost. I can't modify the background color of this TabHost. It works for all other attrobute like TextColor for example. Any one have an idea, I'm lost? Do you think my XML style resource is wrong ? ?xml version=1.0

[android-developers] Custom Dialog without context application

2011-01-29 Thread Antony BODY
Hi all, I'm trying to create an dialog wich is show on android desktop. My application contains a service who create notification. On notification click I would like show a dialog on desktop. My problem: each time I click on notification my dialog is showing with black screen behind (activity of

[android-developers] Re: Custom Dialog without context application

2011-01-29 Thread Antony BODY
Oh ! Thank you Kostya It works well and it's realy easier !!! -- 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] Background color

2011-01-25 Thread Antony BODY
Hi all, I'm trying to get the background color of a button. This color was applied on this button with the XML code. It's little complicated !!! I tried some solutions like: Drawable d = findViewById(R.id.my_btn).getBackground(); But i can't obtain the background color code. Any people have

[android-developers] Re: Custom dialog issues

2010-12-14 Thread Antony BODY
Ok perfect you are right it was just the getApplicationContext method who throw that exception !! Thank you for your help. On 14 déc, 16:29, TreKing treking...@gmail.com wrote: On Mon, Dec 13, 2010 at 4:34 PM, Antony BODY antony.b...@gmail.com wrote: Context mContext

[android-developers] Custom dialog issues

2010-12-13 Thread Antony BODY
Hi, I try to implement an custom dialog sadly when i call show method i get this stac: Thread [3 main] (Suspended (exception WindowManager $BadTokenException)) ViewRoot.setView(View, WindowManager$LayoutParams, View) line: 491 WindowManagerImpl.addView(View,

[android-developers] Using SQLite in with few activities

2010-12-05 Thread Antony BODY
Hi all, I'm trying to use SQLite in application for first time. My application contains an TabActivity. I would to use an database in some of those activities. Then, I created an DatabaseWrapper. Each time I try to execute query with rawQuery method, I obtain this stack : Thread [3 main]

[android-developers] Re: Using SQLite in with few activities

2010-12-05 Thread Antony BODY
Ok I get my answers !!! I was mistaken in some name of tables ;-) Now it's working well On 5 déc, 11:49, Antony BODY antony.b...@gmail.com wrote: Hi all, I'm trying to use SQLite in application for first time. My application contains an TabActivity. I would to use an database in some