Reputation: 1970
I am a bit stuck with some android development. I am using Eclipse/ADT and created a 2 activity project test.
Everything build and emulator started but i can not see my application.
I am very new to this, may be missing something obvious. Any idea where i can see my app on emulator?
Sliding worked and i manged to reach test app (project name test so i guess same app name) but i get following on screen.
I expected, a button and some other stuff as my main.xml is as below.
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="I'm screen 1 (main.xml)"
android:textAppearance="?android:attr/textAppearanceLarge" />
<Button
android:id="@+id/button1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Click me to another screen" />
Definitely some mistake on my part not sure what?
My manifest.
<uses-sdk android:minSdkVersion="10" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:label="@string/app_name"
android:name=".AppActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:label="@string/app_name"
android:name=".App2Activity" >
</activity>
</application>
My main.xml file is as below.
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="I'm screen 1 (main.xml)"
android:textAppearance="?android:attr/textAppearanceLarge" />
<Button
android:id="@+id/button1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Click me to another screen" />
Upvotes: 0
Views: 4319
Reputation: 5996
As your app name is Test
, it's definitely in screen2.
Just swipe(drag) the screen from left to right and you should get it.
Hope it helps !!!
Upvotes: 2