Moving from One activity to next in Android -


I am developing an application in Android which has the login screen. I am able to successfully get feedback from the server right now. After successful response, I should move to the next activity or class where I display a new screen / activity. What should I do to achieve this?

In Android, you are using intents to replace with an activity to others. In this case you will use the obvious intent. In the code it would look like:

  GoToNextActivity = new intent (getApplicationContext (), YourNewClass.class); StartActivity (goToNextActivity);  

Be sure to add your newsletter as another activity such as this:

  & lt; Activity Android: name = ". Your.package.YourNewClass" / & gt; Look closely at the documentation of  

. You can read the document about the document, it is only in some depth to answer this question, but it will give you insight into the most important concepts of Android.


Comments