I am having problems to work with an intent. Debugger crashes at last following line. However, If I set a breakpoint at this line, myVar1 is properly filled but when executing this line program crashes. Thank you.
from main class
Intent intent = new Intent(getBaseContext(), myPush.class);
intent.putExtra("myVar1", var1);
startActivity(intent);
and from myPush class
String recVar = getIntent().getExtras().getString("myVar1");
EDIT: already tried with Intent(this, myPush.class) and Intent(currentClass.this, myPush.class) and same result!
debbuger doesn’t say too much…
03-14 14:28:48.887: W/dalvikvm(2595): threadid=1: thread exiting with uncaught exception (group=0x409961f8)
Also don’t forget to put the class you want to transfer to in your androidmanifest.xml