[android-developers] Intent not opening correct ativity
Hello,
I'm having a struggle understanding why my intent is not working.. I
basically just copied paste from other examples in my code that work
perfectly like this.. here it is:
Intent addIntent = new Intent(v.getContext(), thenNnowMode.class);
Bundle w = new Bundle();
String activityName = "addPic";
w.putString("activity", activityName);
w.putParcelable("bitmap", selectedDeviceImage);
//a.putString("id", picId);
addIntent.putExtras(w);
startActivity(addIntent);
finish();
The intent is opening a different class called thenNnow.class instead
of thenNnowMode.class.. and I have no idea why this is happening.. any
suggestion? I've tried sending the intent to open other activities
other than thenNnowMode but it always opens thenNnow.. am I missing
some silly syntax mistake? It's so strange.. its the same code
PS: Im not sure if it's relevant but the thenNnowMode class uses the
device camera
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home