RadioButton setTextColor doesn't work during runtime

by Romain Guy » Fri, 24 Jul 2009 12:33:57 GMT


Sponsored Links
 R.color.red is an identifier, not the color itself. You need to call
getResources().getColor(R.color.red)

On Thu, Jul 23, 2009 at 9:28 PM, atharva






-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Answer/Recject onscreen buttons disappeared

I updated to RC30 yesterday (silly me) on my G1 and now I no longer
see the on screen Answer/Voicemail buttons on incoming calls. Is there
a setting that controls that or did they just take away a useful
feature with the new release?
--~--~---------~--~----~------------~-------~--~----~

2. Question about Contacts

Hi,all.
I try to access Contacts data by using Content Providers,but there
seems to be an error.

source code:

public class iContact extends Activity {
        private Cursor cur;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        Uri mContacts =Contacts.People.CONTENT_URI;
        Cursor managedCursor=managedQuery
(mContacts,null,null,null,null);
    }
}


error code:
The application iContacts
(process com.adroid.iContact)
has stopped unexpectedly;
please try again.

But if I change
Uri mContacts =Contacts.People.CONTENT_URI;
to
Uri mContacts =MediaStore.Images.Media.EXTERNAL_CONTENT_URI;
The problem will disappear.

Anyone has ideas?
Thanks

--~--~---------~--~----~------------~-------~--~----~

3. Globabl Orientation Change

4. Problems with ListActivity

5. there is no ViewInflate in sdk 1.0?

6. How to import a new CA certificate

7. How to install the application to Android phone