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>
Related
I am trying to run a demo project to implement widgets, it compiles successfully but did not launch, also I did not find it installed in my phone.
I am following this tutorial http://www.tutorialspoint.com/android/android_widgets.htm
A also this tutorial https://github.com/TechIsFun/android-widget-example but getting the same problem.
My console shows
[2014-11-23 11:01:30 - WidgetExample] Performing sync
[2014-11-23 11:01:30 - WidgetExample] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2014-11-23 11:01:34 - WidgetExample] Uploading WidgetExample.apk onto device '1C9E_9E18_MicromaxA111'
[2014-11-23 11:01:34 - WidgetExample] Installing WidgetExample.apk...
[2014-11-23 11:01:37 - WidgetExample] Success!
[2014-11-23 11:01:37 - WidgetExample] \WidgetExample\bin\WidgetExample.apk installed on device
[2014-11-23 11:01:37 - WidgetExample] Done!
I think there is some problem with the manifest file ?
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.widgetexample"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="21" />
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<receiver
android:name="MyWidgetProvider"
android:icon="#drawable/ic_launcher"
android:label="Example Widget" >
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="#xml/widget_info" />
</receiver>
</application>
</manifest>
Your console message shows that your apk is isntalled sccuessfully on the device. Now the question is why it is not getting launched?
To launch any application, it should have at least one activity with action as main and category as launcher.
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
In your case, your application don't have any activity assoicated with it.
I think this is the casue why its not getting launched afer sccuessful installation. also thats why its not showing your application on application list.
As your application have only one widget hence it will show it under widgets list. Please check.
Hope it helps you.
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>`
[2013-05-07 13:06:56 - final_app] Performing sync
[2013-05-07 13:06:56 - final_app] Automatic Target Mode: Several compatible targets. Please select a target device.
[2013-05-07 13:07:02 - final_app] Uploading final_app.apk onto device '015d256464281611'
[2013-05-07 13:07:14 - final_app] Installing final_app.apk...
[2013-05-07 13:07:18 - final_app] Success!
[2013-05-07 13:07:18 - final_app] \final_app\bin\final_app.apk installed on device
[2013-05-07 13:07:18 - final_app] Done!
Hi I have been pulling my hair out for the past 24 hours I am a newbie and added Google Maps after this I'm not sure what the issue has been I can no longer launch the app on my Nexus 7 or the AVD it does not show up, I have got my API key etc. but now the app installs \final_app\bin\final_app.apk and I can not launch it any more I selected Googles APi everything should function properly, how do I launch the app again there is no icon what so ever. Could it be my manifest?
ANDROIDMANIFEST
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.final_app"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<uses-library android:name="com.google.android.maps"/>
<activity
android:name="com.example.final_app.splash_screen"
android:label="#string/app_name" ></activity>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<activity android:name="MainActivity"></activity>
<activity android:name=".activity_2"></activity>
<activity android:name=".activity_3"></activity>
<activity android:name=".activity_4"></activity>
<activity android:name=".activity_5"></activity>
<activity android:name=".MySQLiteHelper"></activity>
</application>
</manifest>
In short, I want to: Launch my app as it no longer shows up or starts on both my android device or AVD.
I think I got your error, it was in the menifest file
<activity android:name="MainActivity"></activity>
it should be
<activity android:name=".MainActivity"></activity>
or follow this menifest file
<application
android:icon="#drawable/test"
android:label="#string/app_name" >
<activity
android:name=".ABC"
android:label="#string/app_name" android:screenOrientation="landscape">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".welcome" android:theme="#style/Custom" android:label="#string/app_name" android:screenOrientation="portrait">
</activity>
it should work i guess,..
[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
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'.