Android Training/Starting Another Activity/en: Unterschied zwischen den Versionen

Neue Version von externer Quelle importiert
(Neue Version von externer Quelle importiert)
(Neue Version von externer Quelle importiert)
Zeile 28: Zeile 28:


== Build an Intent ==
== Build an Intent ==
# In <code>MyActivity.java</code>, inside the <code>sendMessage()</code> method, create an <code>Intent</code> to start an activity called<code>DisplayMessageActivity</code> with the following code:
# In <code>MyActivity.java</code>, inside the <code>sendMessage()</code> method, create an <code>Intent</code> to start an activity called <code>DisplayMessageActivity</code> with the following code:
#: ''java/com.mycompany.myfirstapp/MyActivity.java''<syntaxhighlight lang="java">
#: ''java/com.mycompany.myfirstapp/MyActivity.java''<syntaxhighlight lang="java">
public void sendMessage(View view) {
public void sendMessage(View view) {
372

Bearbeitungen