Editing Translations:Android Training/Starting Another Activity/14/en

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

Message definition (Android Training/Starting Another Activity)
=== Create a new activity using Android Studio ===
Android Studio includes a stub for the <code>onCreate()</code> method when you create a new activity. The ''New Android Activity'' window appears.
# In Android Studio, in the <code>java</code> directory, select the package, '''com.mycompany.myfirstapp''', right-click, and select '''New > Activity > Blank Activity'''.
# In the '''Choose options''' window, fill in the activity details:
#* '''Activity Name''': DisplayMessageActivity
#* '''Layout Name''': activity_display_message
#* '''Title''': My Message
#* '''Hierarchical Parent''': com.mycompany.myfirstapp.MyActivity
#* '''Package name''': com.mycompany.myfirstapp Click '''Finish'''.
# Open the <code>DisplayMessageActivity.java</code> file. The class already includes an implementation of the required <code>onCreate()</code> method. You update the implementation of this method later.
If you're developing with Android Studio, you can run the app now, but not much happens. Clicking the Send button starts the second activity, but it uses a default "Hello world" layout provided by the template. You'll soon update the activity to instead display a custom text view.

Please note that all contributions to Android Wiki are considered to be released under the Creative Commons Attribution/Share-Alike Lizenz 3.0 (see DroidWiki:Urheberrechte for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)