![]() ![]() Drag and drop a textView element, give it some text like ‘This is the Second Activity.’.The second activity will be completely empty, so we have to add a new text element to show us we are in the second activity, and a button below it to take us back to the previous activity. But we can’t let it be empty, so let’s add some text and a button to come back on the first activity. ![]() ![]() Now your application recognizes the second activity. Unless you have named your second Activity something else. If you don’t see two activity tags, then simply paste the following code below the first activity tag. There will be a bunch of other information too. If you see the two activity tags, one for each activity, then you are good to go and don’t need to make any changes. Once here, you need to find two activity tags in between the application tag. You do this by opening the AndroidManifest.xml file from the following location. Adding the new activity in AndroidManifests.xml fileĪdding the activity will automatically do this, but if it, in some cases, it doesn’t, then follow these instructions. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |