It was all good yesterday, but right now it won't show up when I run the AVD.
Don't know if it is my AndroidManifest.xml file which is pretty standard.
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.app" >
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme">
<activity
android:name="com.example.app.Hoved"
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>
This is now fixed all, thank you!
The problem was that I write Android app on Xamarin, so you use flags there instead of declaring the activity in the manifest.
You missing this 2 'lines', it's really important but just past it above (over) < application and it's will work.
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="21" />
This is the most basic question, you should know that before u start programming in visual studio or eclipse. Just watch some tutorials on youtube it will help you. Good Luck.
Related
I have problem with android app. I developed this app by tutorial in android studio. That app works fine, but there is problem with Android 4.4 .
On my phone with Android 6.0 it works good
My phone image
But on my friend phone with Android 4.4 it doesn't work.
Friend phone image
Please, can you help me? I don't know how repair that. I tried google, but I don't found my problem. Thanks and sorry for my bad english.
My Manifest
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.expertik.msg">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application
android:allowBackup="true"
android:icon="#mipmap/icon"
android:label="#string/app_name"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
A manifest error or string error is usually caused by a manifest error when you do something wrong.
I have tried converted my android app from eclipse to android studio project and app is working on testing on emulator and my real device but I couldn't find it when trying to exit the app .. After publishing to the store I got the same issue + app is never open .. after installing I just got uninstall only on google play store .. please help :)
this is app url to the store : https://play.google.com/store/apps/details?id=com.linkedtalents.app&hl=en
Here is my manifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.linkedtalents.app"
android:versionCode="10"
android:versionName="1.1" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="17" />
<application
android:allowBackup="true"
android:icon="#drawable/launch123"
android:label="#string/app_name"
android:largeHeap="true" >
<activity
android:name="com.linkedtalents.app.Splash"
android:theme="#style/AppBaseTheme"
android:screenOrientation="portrait"
android:configChanges="locale"
>
it seems that you are missing the intent filter. at least you didnt post it. can you have a look that you have the MAIN LAUNCHER like here? you need exactly one activity that matches this, if you want to be started from a homescreen.
<activity
android:name="..."
android:label="#string/app_name"
android:theme="#style/AppTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
I'm a bit new at this, so please forgive me:
In Android Studio, I went to the Build menu and rebuilt my project (mostly out of curiosity, since I'm still new and want to learn what everything does). However, this had the unintended side effect of completely screwing over my Android Manifest file, which is shown:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.jeffv.shakesperianinsultkit">
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="16"/>
<application android:allowBackup="true" android:icon="#drawable/ic_launcher" android:label="#string/app_name" android:theme="#style/AppTheme">
<activity android:label="#string/app_name" android:name="com.jeffv.shakesperianinsultkit.MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
Android Studio is giving me 'unable to resolve' errors on #string/app_name, MainActivity, #style/AppTheme, and #drawable/ic_launcher.
So, I ask you all: What did I screw up, and how do I fix it?
I've looked in all the other threads about the same issue and I still can't figure out what the problem is. I'm using Eclipse 4.2 and the latest Android SDK. Sorry to ask such a beginner question, and I really do appreciate whatever help you may be able to give. My code looks like this (I've marked the error-producing line with an X):
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="paul.learning.myfirstapp"
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"
X <activity
android:name=".MyFirstActivity"
android:label="#string/title_activity_my_first"
android:name="paul.learning.myfirstapp.DisplayMessageActivity" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
You have closed the activity element with />. Change it to this:
<activity
android:name=".MyFirstActivity"
android:label="#string/title_activity_my_first"
android:name="paul.learning.myfirstapp.DisplayMessageActivity" >
You need to add a ">" after the attributes in the <application> start tag.
I'm using Eclipse to make an Android app. I've used it before and not had this problem. The console says everything installed ok, so I'm a little confused. I'm not sure what is relevant from logcat, but I can post it if you think that would help.
I've restarted Eclipse, ADB, the emulator, and the Mac several times in various orders and nothing has helped. I know it must be something simple but I haven't played around with this in a few months.
Manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.hyser.pinpoint"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="10" />
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name" >
</application>
<activity android:name=".pinpoint" android:label="pinpoint">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Your Activity needs to be inside of your application tag in your manifest
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name" >
<activity android:name=".pinpoint" android:label="pinpoint">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
It's a similar issue to this:
Unable to start Service Intent
Your <activity> tag needs to be in the <application> block.
Is it possible your manifest does not refer to any activities? If you install an app with no activities in the manifest you will get this behavior.