i passing values through intent, in case value passed through returns null. value not null till sets on intent. here code setting intent.
intent propertyintent = new intent(mcontext , someactivity.class); propertyintent.putextra(start_mode_tag,mode_edit_recording); propertyintent.putextra(activity_mode_tag, "dm"); propertyintent.addflags(intent.flag_activity_reorder_to_front); propertyintent.putparcelablearraylistextra("det_list", detlist); mcontext.startactivity(propertyintent);
here code used fetch intent values
passedmodename = getintent().getstringextra(dmapplication.start_mode_tag);
only start_mode_tag
value returns null rest returns correctly. tried setting in onnewintent()
also. no use.
constants used in it
public static final string activity_mode_tag="activity_mode"; public static final string start_mode_tag="startmode"; public static final string mode_new_recording="new"; public static final string mode_edit_recording="edit"; public static final string mode_review_recording="review"; public static final string mode_copy_recording="copy"; public static final string mode_launch_recording="launch";
you should extras data in following way.
bundle extras = getintent().getextras(); selectedgroupid = extras.getstring(dmapplication.start_mode_tag);
Comments
Post a Comment