• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps screen navigation

More information would help us to help you. :)

I'm not sure what you are asking, but if you mean you have several apps open and want to move from one app to another... a long press on the Home button will bring up a list of recently opened apps, then select the one you want to move to.

If the app you want to move to has a shortcut icon on the home screen, you can just press the Home button normally and tap the shortcut. If the app is already running, it won't start it app again, it will just switch to it.

Hope that helps ;)
 
Could you just be more specific? You're not being very clear. What page? What request? What app? Are you trying to put a shortcut on a homescreen?
 
As I am new to Android app development please bare with me.

My requirement is, once I submit a button on a page-1 should navigate to another page 'page-2'. Both the pages are in the same app. How to do this?
 
Hey guys,

I've moved this thread to the Android app development area for you.

You should get some good coding / development feedback in here.

Cheers!
 
Code:
 switcher.setOnClickListener(new OnClickListener() { //sets up a listener for the button

            public void onClick(View v) {
            // TODO Auto-generated method stub
            Intent i = new Intent(ScreenSwitchActivity.this,secondactivity.class); //passes intent in order to start new activity
            startActivity(i);
            }

            });

Switcher = A button referenced in your XML
setOnClickListener - does exactly what it says it does, waits for the button to be pressed

Intent - tells the application that you are passing control off to another activity (I'm also new to this so please let me know if I'm giving false information)

ScreenSwitchActivity.this = Current class that is active
Secondactivity.class = Next activity


... This is how you switch to another activity.

In order to switch the view screen you would want to use this...

setContentView(R.layout.main); // Loads the main XML file

Please let me know how I can make my response more clear, or if i have made any mistakes, I'm new to this as well!
 
Back
Top Bottom