Re: [android-beginners] Re: Problem sending variable to java activity.

2010-08-03 Thread Mark Murphy
On Tue, Aug 3, 2010 at 6:00 AM, Justin wrote: > The error I get is "The Application has stopped unexpectedly. Please > try again", but it only happens as if I use tthe following 2 lines: >            Intent intent = getIntent(); >            int position = intent.getIntExtra("ImagePosition", -1);

[android-beginners] Re: Problem sending variable to java activity.

2010-08-03 Thread Justin
The error I get is "The Application has stopped unexpectedly. Please try again", but it only happens as if I use tthe following 2 lines: Intent intent = getIntent(); int position = intent.getIntExtra("ImagePosition", -1); If I create the variable in this activity and blank