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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

android - CoordinatorLayout, FAB and container layout conflict -