accessing raw resources in worker thread. I have been trying to use Context.getResources but this seems to create some type of handler error.

by Bob » Fri, 13 Mar 2009 13:31:17 GMT


Sponsored Links
 Hi,
How do I access raw resource via the context
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. ContactsContract and target version

Hi!
I'm creating an app that needs to create a contact. My 1st attempt
was:

ContentValues values = new ContentValues();
values.put(Contacts.People.NAME, "Name");
values.put(People.Phones.TYPE, People.Phones.TYPE_MOBILE);
values.put(People.Phones.NUMBER, "+11111");
Uri myUri = getContentResolver().insert(People.CONTENT_URI,values);

This creates an exception: "column "NUMBER" is invalid" (huh?)

It seems People.Phones.NUMBER is deprecated so I tried to use
ContactsContract. Unfornately ContactsContract and RawContacts are not
resolved (using Eclipse) unless... I change the project target to 7.
Since I need the app to run on target 3 (1.5), could please someone
tell me how to add a contact - that works on always versions?

Thanks in advance!

-- 

2. Debugg problem source not found

Hi everyone

when i am debugging the android application either on device or
emulator.for some classes i got the error "sorce not found"
eg. ActivityThread.performLaunchActivity(ActivityThread
$ActivityRecord, Intent) line: 2418
      ViewRoot.performTraversals() line: 643

i have already copied the android source code in the android-sdk-
windows\platforms\android-3\sources

what would be the problem?

Thanks


-- 

3. Sound Recorder is crashing in Eclair

4. Android porting to HTC Smart

5. Device Driver access via native functions called via JNI

6. NullPointer Exception When Clicking on Map with OverlayItems

7. Tutorial From Fitmware 1.5 To Firmware 2.1. Silahkan cek bagi yang pengen jadi ECLAIR with New RADIO and SPL