amina_khalique
Lurker
Hi there,
I have already asked a similar question on Stack Overflow at : Stack Overflow Link
Since I'm also asking this question here, I'm expecting answers here and not on SO, so that it can be found within this community. I'm sorry if this type of linking is not right...
I want to be a part of an active android-community and I think I've found the right place. I've been going through the forums and this is definitely an android knowledge rich zone!
Question :
I am having trouble accessing the correct raw resource. I do not get any resource not found exceptions, but my InputStream is not correctly built from the correct id - instead of using the id of an xml file, it keeps using the id of app_name.
I have done all of the following:
Clean, Rebuild, Run.
Delete R, Reboot Eclipse, Clean, Rebuild, Run
Delete R, Clean and Rebuild Immediately, Reboot
Deleting Gen Folder + all of the above.
Making sure Android.R is not being used anywhere.
Printed the actual resource id I am expecting to use by calling (returns expected id correctly!):
int resId=con.getResources().getIdentifier("raw_tsn_xml_amina_simple","raw",con.getPackageName());
Also rebuilt the project entirely from scratch. No matter what I do - it's always getting app name as the resource id it references for the Input Stream - source
None of these have worked for me... Does anyone have any ideas what else I can try?
I have already asked a similar question on Stack Overflow at : Stack Overflow Link
Since I'm also asking this question here, I'm expecting answers here and not on SO, so that it can be found within this community. I'm sorry if this type of linking is not right...
I want to be a part of an active android-community and I think I've found the right place. I've been going through the forums and this is definitely an android knowledge rich zone!
Question :
I am having trouble accessing the correct raw resource. I do not get any resource not found exceptions, but my InputStream is not correctly built from the correct id - instead of using the id of an xml file, it keeps using the id of app_name.
I have done all of the following:
Clean, Rebuild, Run.
Delete R, Reboot Eclipse, Clean, Rebuild, Run
Delete R, Clean and Rebuild Immediately, Reboot
Deleting Gen Folder + all of the above.
Making sure Android.R is not being used anywhere.
Printed the actual resource id I am expecting to use by calling (returns expected id correctly!):
int resId=con.getResources().getIdentifier("raw_tsn_xml_amina_simple","raw",con.getPackageName());
Also rebuilt the project entirely from scratch. No matter what I do - it's always getting app name as the resource id it references for the Input Stream - source
None of these have worked for me... Does anyone have any ideas what else I can try?