emulator is not launching my project - android

[2013-03-19 08:52:49 - GEARS] Performing sync
[2013-03-19 08:52:50 - GEARS] Automatic Target Mode: launching new emulator with compatible AVD 'sdfs'
[2013-03-19 08:52:50 - GEARS] Launching a new emulator with Virtual Device 'sdfs'
[2013-03-19 08:52:54 - GEARS] ------------------------------
[2013-03-19 08:52:54 - GEARS] Android Launch!
[2013-03-19 08:52:54 - GEARS] adb is running normally.
[2013-03-19 08:52:54 - GEARS] No Launcher activity found!
[2013-03-19 08:52:54 - GEARS] The launch will only sync the application package on the device!
[2013-03-19 08:52:54 - GEARS] Performing sync
[2013-03-19 08:52:54 - GEARS] Automatic Target Mode: launching new emulator with compatible AVD 'sdfs'
[2013-03-19 08:52:54 - GEARS] Launching a new emulator with Virtual Device 'sdfs'
I'm making an android app and after editing it I encounter this problem. It has no errors but it doesn't launch either. Is my problem with my manifest or launch activity?
Updated Manifest:
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name="com.bpi.gears.MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.main" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.bpi.gears.home"
android:label="#string/title_activity_home" >
</activity>
<activity
android:name="com.bpi.gears.profile"
android:label="#string/title_activity_profile" >
</activity>
</application>
</manifest>
I still can't run my app.

You have the same activity defined twice. remove this and try:
<activity
android:name="com.bpi.gears.MainActivity"
android:label="#string/app_name" >
</activity>
You have this in your manifest:
<action android:name="android.intent.action.main" />
It needs to be like this:
<action android:name="android.intent.action.MAIN" />
you have main instead of MAIN

Related

AVD is up and running but eclipse doesnt detects

My AVD is running properly and in the process tab, there's an emulator-arm.exe so i'm pretty sure about it but when i run my program with a run configuration that says to pick up this AVD, i get the following message.
Android Launch!
[2015-02-15 00:38:50 - FirstApp] adb is running normally.
[2015-02-15 00:38:50 - FirstApp] Performing com.protyay.example.firstapp.Splash activity launch
[2015-02-15 00:38:50 - FirstApp] No active compatible AVD's or devices found. Relaunch this configuration after connecting a device or starting an AVD.
This is the Manifest.xml looks like, and as a matter of fact, i have had absolutely no problems testing this app until yesterday. A strange problem
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="com.protyay.example.firstapp.MAINACTIVITY" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".Splash"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
API level for AVD is 19
Try to this, It may be a helpful
Go To Window->Show View->Others->Device->Reset Adb
Reset your ADB process. You can do that within the DDMS Perspective (then the Devices window). T he last menu on the right (the upside down triangle - on the main 'devices' panel - the one that 'should' show your device in the list) has this option in there - it is named 'Reset ADB'.
Also, you can do this following from the command-line:
1. adb kill-server
2. adb start-server

My app not appear on AVD

When I try to create a new Android project and run it it did not appear on the emulator.
This is the console message :
[2014-04-12 00:30:57 - Fir] Android Launch!
[2014-04-12 00:30:57 - Fir] adb is running normally.
[2014-04-12 00:30:57 - Fir] Performing com.example.fir.MainActivity activity launch
[2014-04-12 00:31:05 - Fir] Uploading Fir.apk onto device 'emulator-5554'
[2014-04-12 00:31:06 - Fir] Installing Fir.apk...
[2014-04-12 00:31:22 - Fir] Success!
[2014-04-12 00:31:22 - Fir] Starting activity com.example.fir.MainActivity on device emulator-5554
I wait more than one hour and its not appear? And I try to kill-server adb and start it again, but still the same problem.
Please help...
Try the genymotion Emulator. It is faster than the normal android Emulator.
Can you post your manifest.xml?
This is my manifest.xml ,And i will try the genymotion Emulator
` <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.fir"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="19" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name="com.example.fir.MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>`

Android App Runs in Emulator, But Not Listed In Launcher

I am learning Android and can not get my program to show up in the program listings drawer of my Nexus S emulated device. When I load up the emulator, it does load my program successfully, after hitting "run new configuration". I know there are a ton of threads on this...but from what I can tell I have everything right in my manifest with:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
Also, to be clear the run configuration in Eclipse does run my program successfully. It's just not in the apps menu/drawer of the emulated device to click and run:
[2013-03-07 20:14:04 - TodDoList] New emulator found: emulator-5554
[2013-03-07 20:14:04 - TodDoList] Waiting for HOME ('android.process.acore') to be launched...
[2013-03-07 20:14:46 - TodDoList] HOME is up on device 'emulator-5554'
[2013-03-07 20:14:46 - TodDoList] Uploading TodDoList.apk onto device 'emulator-5554'
[2013-03-07 20:14:47 - TodDoList] Installing TodDoList.apk...
[2013-03-07 20:15:23 - TodDoList] Success!
[2013-03-07 20:15:23 - TodDoList] Starting activity com.paad.toddolist.ToDoListActivity on device emulator-5554
[2013-03-07 20:15:24 - TodDoList] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.paad.toddolist/.ToDoListActivity }
Here is my manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.paad.toddolist"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="4"
android:targetSdkVersion="15" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name="com.paad.toddolist.ToDoListActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Here is my strings.xml file:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">TodDoList</string>
<string name="addItemHint">New To Do List</string>
<string name="addItemContentDescription">New To Do Item</string>
</resources>
Try replacing
android:name="com.paad.toddolist.ToDoListActivity"
with
android:name=".ToDoListActivity"

app is installed but not launching on my emulator

In my emulator app installed successfully but app is not launching ,here i am pasting the console details
here i am adding manifest file as well ,i added intent-filter as well.
i hope this info is enough but stackoverflow needs some more info .
[2012-12-13 20:29:52 - PongUr2] Android Launch!
[2012-12-13 20:29:52 - PongUr2] adb is running normally.
[2012-12-13 20:29:52 - PongUr2] No Launcher activity found!
[2012-12-13 20:29:52 - PongUr2] The launch will only sync the application package on the device!
[2012-12-13 20:29:52 - PongUr2] Performing sync
[2012-12-13 20:29:52 - PongUr2] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'AVD_4.0'
[2012-12-13 20:29:52 - PongUr2] Uploading PongUr2.apk onto device 'emulator-5554'
[2012-12-13 20:29:53 - PongUr2] Installing PongUr2.apk...
[2012-12-13 20:30:00 - PongUr2] Success!
[2012-12-13 20:30:01 - PongUr2] \PongUr2\bin\PongUr2.apk installed on device
[2012-12-13 20:30:01 - PongUr2] Done!
HereÅ› the xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.sabrebutt.pongur"
android:versionCode="49"
android:versionName="0.8.8.2" >
<application
android:icon="#drawable/icon"
android:label="#string/app_name" >
<service
android:name="PongUr"
android:enabled="true"
android:icon="#drawable/icon"
android:label="#string/app_name"
android:permission="android.permission.BIND_WALLPAPER" >
<intent-filter android:priority="1" >
<action android:name="android.service.wallpaper.WallpaperService" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</intent-filter>
<meta-data
android:name="android.service.wallpaper"
android:resource="#xml/pongur" />
</service>
<activity
android:name="PongUrSettings"
android:exported="true"
android:label="#string/pongur_settings"
android:theme="#android:style/Theme.Black" >
</activity>
</application>
<uses-sdk android:minSdkVersion="7" />
/>
</manifest>
None of your activities have launcher intent filter, Add below lines to the activity you want to launch in your manifest
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
Edit:
You cannot have an intentfilter inside an intentFilter and the launcher intent filter will not work on service, only Activities can be launched and can have UI
<activity
android:name="PongUrSettings"
android:exported="true"
android:label="#string/pongur_settings"
android:theme="#android:style/Theme.Black" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Try going Setting -> Application(apps) --> uninstall your app & run again your app . May be it should work.Sometimes previous installation creates this type problem.Otherwise may be problem with your menifest file.
Not specific to this particular error. When app is installed and not launched, you can check the 'Launch options' in 'Run Configuration'. It should be selected as 'Default Activity'.

Android App not running on any device

I'm having trouble running ANY app on both an emulator and a device. Just running the simple "Hello World" app is not working. The app gets installed on the emulator but never executes. I can find it when I go Menu -> Manage Apps but the only thing I can do from there is uninstall it. It seems there is a setting that is not forcing it to run automatically.
Also, something that was weird was my computer would never let me install the new updates. It would just say "Downloading ....." but nothing ever happened. I fixed the problem by going into Safe Mode with Networking but I can still not run any app. Any ideas???
Here is what it says when I go to Run as -> Android App
[2012-08-31 08:17:52 - at] New emulator found: emulator-5554
[2012-08-31 08:17:52 - at] Waiting for HOME ('android.process.acore') to be launched... [2012-08-31 08:19:13 - at] HOME is up on device 'emulator-5554'
[2012-08-31 08:19:13 - at] Uploading at.apk onto device 'emulator-5554'
[2012-08-31 08:19:13 - at] Installing at.apk...
[2012-08-31 08:20:03 - at] Success!
[2012-08-31 08:20:03 - at] \at\bin\at.apk installed on device
[2012-08-31 08:20:03 - at] Done!
Here is my Manifest File:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="c.panic"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="15" />
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="#string/title_activity_main" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="parent" />
</activity>
</application>
Thanks.
You've to change your main activity's <intent-filter> tag filter in AndroidManifest.xml file.
<application android:name="......"
android:icon="#drawable/app_icon"
android:label="#string/app_name" >
<activity android:name=".yourActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Means, you've to change your activity's <action> and <category>
Edit
Just change like below in your manifest file. It will launch your application.
<activity
android:name=".MainActivity"
android:label="#string/title_activity_main" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="parent" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

Categories

Resources