Starting wrong activity on Android -
all, trying understand why simple code this:
device.setphoto( bmp ); intent intent = new intent( context, sexselector.class ); intent.putextra( "device", device ); startactivity( intent );
does not start "sexselector" activity, goes first activity of application.
i have minsdkversion = 8 , targetsdkversion = 19.
i tried surround code try/catch no availability. not crashing. starts first activity of applicatiactivity()" line.
and not go sexselector.java file.
i'm testing on samsung device android 4.2.2.
here 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 in manifest. once again program not crash, restarts.
thank hints.
Comments
Post a Comment