Navigating through different activities in Android -
hey people know how check if activity current activity has been opened from. small uncomplicated example:
i have 3 activities b c
and have textview in b
when open activity b a, want text view display hello when open in c goodbye.
if possible please assist
nb beginner in android in advance
for b: startactivity(new intent(a.this,b.class).putextra("value","hello"); in b.java values by: string value=getintent().getstringextra("value"); c b: startactivity(new intent(c.this,b.class).putextra("value","goodbye"); in b.java values by: string value=getintent().getstringextra("value");
Comments
Post a Comment