ALL, I am trying to understand why simple code like this:
device.setPhoto( bmp );
Intent intent = new Intent( context, SexSelector.class );
intent.putExtra( "device", device );
startActivity( intent );
does not start "SexSelector" activity, but goes back to the very first activity of the application.
I have minSdkVersion = 8 and targetSdkVersion = 19.
I tried surround this code with try/catch to no availability. It does not crashing. It just starts very first Activity of the applicatiActivity()" line.
And it does not even go to the SexSelector.java file.
I'm testing on the Samsung device with Android 4.2.2.
Here is the start of SexSelector class:
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate( savedInstanceState );
Intent intent = getIntent();
Bundle bundle = intent.getExtras();
device = (Device) bundle.get( "device" );
setContentView( R.layout.sex_selector );
The SexSelector activity is in the manifest. Once again the program does not crash, it just restarts.
Thank you for any hints.