I am trying to launch the default Hello World app but after I launch the emulator, I can never find the application in the menu.
- I have Java SDK
- I have Android SDK (14)
- I have the ADT plugin
- The emulator works fine
- I am using Eclipse
adb -e install C:\Users\Owner\workspace\FirstApplication\bin\FirstApplication.apk
error: device not found
I tried it with the <> brackets as well and it said it was incorrect syntax.
What now?
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.FirstApplication"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="14" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:label="@string/app_name"
android:name=".FirstApplicationActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
After command line adb -e logcat:
waiting for device
and it stayed that way.
SOLUTION
Install the application using: adb -e install <apk file path> within the command prompt. If there is an error like this:
error: device not found
proceed to restart the adb server using:
adb kill-server
adb start-server
BETTER SOLUTION
- Turn on Eclipse.
- Turn on Android Virtual Machine.
- Ctrl + Alt + Delete
- Turn off adb.exe prcoess.
- Run project as Android application.
This is a temporary solution, I would appreciate if someone can find a permanent fix.
Did you install you app?
Did you look in the menu?
try this in a shell / console