October 20th, 2011, 11:54 AM
|
#1 (permalink)
|
|
New Member
Join Date: Oct 2011
Location: Croatia
Posts: 6
Device(s): Xperia Arc S
Thanks: 1
Thanked 0 Times in 0 Posts
|
Get drawable name from image adapter?
Hello.
Im making an app in which the user selects an image and then gets redirected to a new screen in which the drawable name is displayed.
This is the code triggered when the user click an image:
Code:
public void onItemClick(AdapterView<?> parent, View v, int position, long id) {
Intent tabsIntent = new Intent();
tabsIntent.setClassName("com.budisha.app", "com.budisha.app.TabClassActivity");
tabsIntent.putExtra("pic_name", position); //sends picture position
startActivity(tabsIntent);
}
This sends the new activity the drawable position. But i need to get the drawable name.
Is there any way to do this? If yes, can you help me?
Sorry if I'm posting in the wrong section. Im new to this forum
|
|
|