Hi,

Can we assume that thenNnowMode is an extension of Activity? Also, I
can see you pit the string "addPic" into the bundle. I hope you are
not trying to start the activity in this manner. To open an activity,
say called AddPic (which must be an activity class) and simply call:
startActivity(new Intent(getContext(), AddPic.class));

Also some code from the mentioned classes may help solve your problem.

On Aug 22, 11:39 pm, Pedro Teixeira <[email protected]> wrote:
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to