android - pass data from activity one to activity three directly while going through activity two but data should not be passed to activity two -
i have 3 activities a,b , c. need pass data activity activity c. navigation b c i.e. can't go activity c activity directly. don't want pass data activity b , don't want use external storage sqlite or shared preferences. can done through intent ? if yes , how ? if no, there other way ?
yes sure. example in activity
class activitya extend activity{ public static string abc = "hello"; } in activityc activityc extend activity{ oncreate(){ string = activitya.abc; log.d("test",a); } }
Comments
Post a Comment