Android app will not open once installed from the market
I have built a small android application.
I have successfully tested it on the emulator. I installed the APK directly on my phone, and it worked perfectly. I then placed it on the market, and it installed flawlessly but... it will not open from the market (open is disabled), it has not created an app shortcut in the home, as it did when I installed my local APK.
It only offers the uninstall functionality. Uninstalling and installing yields the same result.
For those that would care to check out what on earth happens when they install the blasted thing, my simple application is called BMI Assistant, and the author (开发者_StackOverflow社区me) is Jorge de Abreu.
And no, I'm in no way trying to boost my app download count. The blasted thing would only tarnish my reputation, if anything. It actually won't do squat once installed from the market :)
I saw line in your code:
<application android:label="@string/app_name"
android:icon="@drawable/icon" android:enabled="false">
Change attribute android:enabled to true and you get what you need :)
Maybe you haven't defined any activity as the main action (whereas in the IDE you maybe launch the activity by explicitly choosing one in the IDE startup options?). Make sure one activity has
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
in the manifest.
精彩评论