I'm developing a simple Android app on PhoneGap where the users can calculate their GPA's and CGPA's.
I sense something strange happening. Whenever the user tilts the screen and shifts from portrait to landscape mode, the app goes back to the previous page as if the back button was pressed.
This is how my manifest file looks,
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.firstVersion"
android:versionCode="3"
android:versionName="1.2" >
<uses-sdk
android:minSdkVersion="4"
android:targetSdkVersion="17" />
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:xlargeScreens="true"
android:resizeable="true"
android:anyDensity="true"
/>
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<application
android:configChanges="orientation|keyboardHidden"
android:allowBackup="true"
android:icon="#drawable/app_icon"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name="com.example.firstVersion.MainActivity"
android:label="#string/app_name" >
android:launchMode="singleTop"
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="org.apache.cordova.DroidGap"
android:label="#string/app_name"
android:configChanges="orientation|keyboardHidden">
<intent-filter></intent-filter>
</activity>
<receiver android:name="com.phonegap.plugin.localnotification.AlarmReceiver" >
</receiver>
<receiver android:name="com.phonegap.plugin.localnotification.AlarmRestoreOnBoot" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<receiver android:name="com.bicrement.plugins.localNotification.AlarmReceiver" >
</receiver>
<receiver android:name="com.bicrement.plugins.localNotification.AlarmRestoreOnBoot" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
</application>
</manifest>
Add android:configChanges under each activity tag not in application tag as you written in application tag and skip it to MainActivity tag
Try This:-
<activity
android:name="com.example.firstVersion.MainActivity"
android:configChanges="orientation|screenSize|keyboardHidden|keyboard|locale"
android:label="#string/app_name">
Related
I am implementing one signal in unity. When i send notification from oneSignal in app the app crashes and gives this error that is in heading.I also tried .GcmBroadcastReceiver but it gives the same error. Here is my meifest file .
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.deadmosquitogames.androidgoodiesdemo.assetstore"
android:versionName="1.0" android:versionCode="1" android:installLocation="preferExternal">
<supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true"
android:xlargeScreens="true" android:anyDensity="true"/>
<uses-feature android:glEsVersion="0x00020000"/>
<supports-gl-texture android:name="GL_OES_compressed_ETC1_RGB8_texture"/>
<application android:usesCleartextTraffic="true" android:theme="#style/UnityThemeSelector" android:icon="#drawable/app_icon"
android:label="#string/app_name" android:debuggable="true" android:isGame="true">
<activity android:name="com.unity3d.player.UnityPlayerActivity" android:label="#string/app_name"
android:screenOrientation="fullSensor" android:launchMode="singleTask"
android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
<category android:name="android.intent.category.LEANBACK_LAUNCHER"/>
</intent-filter>
<meta-data android:name="unityplayer.UnityActivity" android:value="true"/>
</activity>
<receiver android:name="com.example.smsmining.SMSBroadcastReceiver">
<intent-filter>
<action android:name="android.provider.Telephony.SMS_RECEIVED"/>
</intent-filter>
</receiver>
<receiver
android:name="com.example.smsmining.GcmBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="com.example.smsmining" />
</intent-filter>
</receiver>
<service android:name="com.example.smsmining.GCMIntentService" />
<!-- Unity requests all the runtime permissions when you application starts, all in a row. Uncomment these lines to prevent this from happening-->
<!--<meta-data-->
<!--android:name="unityplayer.SkipPermissionsDialog"-->
<!--android:value="true"/>-->
</application>
<!-- PERMISSIONS -->
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
</manifest>
i am using Unity 2018.2.11f1 and OneSignal-Unity-SDK-2.11.1.
So I need to integrate unity with android feature like connect to 3rd party app.
So I made .apk build after working at eclipse, but how to integrate between 2 AndroidManifest files?
First reference one is,
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mygame.plugin"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="21" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name" >
<activity
android:name=".MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<data android:scheme="ka67492508561297" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:name="com.kakao.unity.plugin.ThirdPartyPostStoryActivity" android:windowSoftInputMode="stateAlwaysVisible" android:theme="#android:style/Theme.Translucent.NoTitleBar"/>
</application>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
and the main one my game currently uses is
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mygame.mygame1"
android:installLocation="preferExternal"
android:theme="#android:style/Theme.NoTitleBar"
android:versionCode="2"
android:versionName="1.01">
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:anyDensity="true"/>
<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="22" />
<application
android:allowBackup="true"
android:icon="#drawable/app_icon"
android:label="#string/app_name">
<meta-data android:name="com.google.android.gms.version" android:value="#integer/google_play_services_version"/>
<activity
android:name=".MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<data android:scheme="ka7492508561297" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:name="com.unity3d.player.UnityPlayerProxyActivity"
android:launchMode="singleTask"
android:label="#string/app_name"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
<meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" />
</activity>
<activity android:name="com.unity3d.player.UnityPlayerActivity"
android:launchMode="singleTask"
android:label="#string/app_name"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
</activity>
<activity android:name="com.unity3d.player.UnityPlayerNativeActivity"
android:launchMode="singleTask"
android:label="#string/app_name"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
<meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" />
</activity>
<activity android:name="org.onepf.openiab.UnityProxyActivity"
android:launchMode="singleTask"
android:label="#string/app_name"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
</activity>
<activity android:name="com.google.android.gms.ads.AdActivity"
android:label="#string/app_name"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
</activity>
<activity android:name="com.ka.unity.plugin.ThirdPartyPostStoryActivity" android:windowSoftInputMode="stateAlwaysVisible" android:theme="#android:style/Theme.Translucent.NoTitleBar"/>
</application>
<uses-permission android:name="com.android.vending.BILLING"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="com.sec.android.iap.permission.BILLING"/>
<uses-permission android:name="org.onepf.openiab.permission.BILLING"/>
So I merged reference one to my main one like above,
But error says,
[UnityException: Unable to start activity!
No activity in the manifest with action MAIN and category LAUNCHER. Try launching the application manually on the device.]
I still can make .apk file, and can run on my phone, but can't connect to 3rd party app when in-game button touched that should launch connection.
So strange... how should I fix?
Thanks.
I did many things to try and make my app compatible with tablets but nothing works. Here is what i tried:
I have 5 folders drawable(ldpi,mdpi,hdpi,xhdpi,xxhdpi) and every folder contains the same images with different size.
I have 3 layouts folders (small, medium, large) and everyone contain the same xmls
I added this code and made anable the telephony which my app uses:
<uses-feature
android:name="android.hardware.telephony"
android:required="true" />
<uses-feature
android:name="android.hardware.camera"
android:required="false" />
<uses-feature
android:name="android.hardware.camera.front"
android:required="false" />
Also added this code for supported screens:
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:resizeable="true"
android:smallScreens="true"
android:xlargeScreens="true" />
I also have min sdk to 8.
What am really confused about is that i have an app already in store that doesnt use any of these and its min sdk is 8 and it says its compatible with tablets. It only has tha drawable folders, the layout folders and in this app i also have outside the /res folder, image folders like Images-ldpi, images-hdpi etc with the same images that i have in drawable folders.
By google what ive done to the first app should have worked by now but it doesnt.
My Manifest of the app that doesnt work on tablets:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.myapp"
android:versionCode="6"
android:versionName="1.0.6" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="19" />
<uses-permission android:name="android.permission.SEND_SMS" />
<uses-permission android:name="android.permission.READ_SMS" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.GET_TASKS" />
<uses-feature
android:name="android.hardware.telephony"
android:required="true" />
<uses-feature
android:name="android.hardware.camera"
android:required="false" />
<uses-feature
android:name="android.hardware.camera.front"
android:required="false" />
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:resizeable="true"
android:smallScreens="true"
android:xlargeScreens="true" />
<application
android:allowBackup="true"
android:icon="#drawable/olympialogo"
android:launchMode="singleTop"
android:logo="#drawable/olympialogo"
android:theme="#style/AppTheme" >
<receiver
android:name="com.myapp.BootCompleted"
android:enabled="true"
android:exported="false" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<service android:name="com.myapp.BackgroundActivity" />
<receiver android:name="com.myapp.SMSreceiver" >
<intent-filter>
<action android:name="android.provider.telephony.SMS_RECEIVED" >
</action>
</intent-filter>
</receiver>
<activity
android:name="com.myapp.Splash"
android:label="#string/title_activity_splash"
android:launchMode="singleTop"
android:screenOrientation="sensorPortrait"
android:theme="#android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.myapp.MainActivity"
android:label="#string/app_name"
android:screenOrientation="sensorPortrait" >
<intent-filter>
<action android:name="splashscreen" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.myapp.NumbersActivity"
android:launchMode="singleTop"
android:screenOrientation="sensorPortrait" >
</activity>
<activity
android:name="com.myapp.CodesActivity"
android:launchMode="singleTop"
android:screenOrientation="sensorPortrait" >
</activity>
<activity
android:name="com.myapp.SendCode"
android:launchMode="singleTop"
android:screenOrientation="sensorPortrait" >
</activity>
<activity
android:name="com.myapp.SettingsActivity"
android:launchMode="singleTop"
android:screenOrientation="sensorPortrait" >
</activity>
<activity
android:name="com.myapp.AllMessages"
android:launchMode="singleTop"
android:screenOrientation="sensorPortrait" >
</activity>
<activity
android:name="com.myapp.ButtonsActivity"
android:launchMode="singleTop"
android:screenOrientation="sensorPortrait" >
</activity>
<activity
android:name="com.myapp.OutputActivity"
android:launchMode="singleTop"
android:screenOrientation="sensorPortrait" >
</activity>
<activity
android:name="com.myapp.AboutActivity"
android:launchMode="singleTop"
android:screenOrientation="sensorPortrait" >
</activity>
<activity
android:name="com.myapp.Help"
android:launchMode="singleTop"
android:screenOrientation="sensorPortrait" >
</activity>
<activity
android:name="com.myapp.TechInfo"
android:launchMode="singleTop"
android:screenOrientation="sensorPortrait" >
</activity>
</application>
</manifest>
And this is the manifest of the app that is tablet compatible but has no settings at all in manifest:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="lol.loltimers"
android:versionCode="3"
android:versionName="1.3" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="16" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<application
android:icon="#drawable/lolicon"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="#string/activity_main"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".TimersActivity"
android:label="#string/activity_timers"
android:screenOrientation="portrait" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.example.loltimers.MainActivity" />
</activity>
<activity
android:name=".ThreeTimersActivity"
android:label="#string/activity_three_timers"
android:screenOrientation="portrait" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.example.loltimers.MainActivity" />
</activity>
</application>
</manifest>
u need to make different folder in drawable
for tab you have to make as pet tabs conflagration
drawable-large-mdpi //for 600x1024 mdpi tab
drawable-large-hdpi // for hdpi tab
drawable-large-ldpi //for xhdpi tab
and then make change in dimension files
values-sw600dp // for 7inch tab
values-sw800dp // for 8 inch tab
if u have special layout requirement then u need to make a different layout
layout-large
layout-xlarge
check this link
http://android-developers.blogspot.in/2011/07/new-tools-for-managing-screen-sizes.html
You need to set
<uses-feature
android:name="android.hardware.telephony"
android:required="false" />
and check at runtime whether the device has messaging facility or not.
Here is my Manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.clmitchell.ewtraker"
android:versionCode="1"
android:versionName="1.0"
android:installLocation="auto" >
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="17"
android:maxSdkVersion="17" />
<supports-screens android:resizeable="true"
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:anyDensity="true"
android:requiresSmallestWidthDp="320" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/Theme.Sherlock">
<activity
android:name=".ActSplash"
android:label="#string/title_act_splash" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".pSectors.ActSectors"
android:label="#string/title_act_sectors" />
<activity
android:name=".ActDBMaint"
android:label="#string/title_act_dbmaint" />
<activity
android:name=".pSectors.ActSectorDetail"
android:label="#string/title_act_sectord" />
<activity
android:name=".pAlliances.ActAlliances"
android:label="#string/title_act_alliances" />
<activity
android:name=".pAlliances.ActDlgAddAllc"
android:label="#string/title_act_addallc" />
<activity
android:name=".pAlliances.ActAllianceDetail"
android:label="#string/title_act_allianced" />
<activity
android:name=".pPlayers.FrgActPlayers"
android:label="#string/title_act_players" />
<activity
android:name=".pPlayers.ActDlgAddPlyr"
android:label="#string/title_act_addplyr" />
<activity
android:name=".pPlayers.FrgActPlyrDtl"
android:label="#string/title_act_plyrd" />
<activity
android:name=".pBases.FrgActBases"
android:label="#string/title_act_bases" />
<activity
android:name=".pBases.ActDlgAddBase"
android:label="#string/title_act_addbase" />
<activity
android:name=".pBases.FrgActBaseDtl"
android:label="#string/title_act_based" />
<activity
android:name=".pBases.ActPlyrBases"
android:label="#string/title_act_pbases" />
<activity
android:name=".ActDropBox"
android:label="#string/title_act_dbox" />
<activity android:name="com.dropbox.sync.android.DbxAuthActivity" />
<activity
android:name="com.dropbox.client2.android.AuthActivity"
android:launchMode="singleTask" >
<intent-filter>
<data android:scheme="db-1njkuxldz7m7g4j" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<service
android:name="com.dropbox.sync.android.DbxSyncService"
android:enabled="true"
android:exported="false"
android:label="Dropbox Sync" />
<service
android:name=".CtlSplash"
android:exported="false"/>
<service
android:name=".pSectors.CtlSectors"
android:exported="false"/>
<service
android:name=".pAlliances.CtlAlliances"
android:exported="false"/>
<service
android:name=".pPlayers.CtlPlayers"
android:exported="false"/>
<service
android:name=".pBases.CtlBases"
android:exported="false"/>
</application>
</manifest>
I was in the act of setting up DropBox support when i noticed that my first two Activities (ActSectors & ActSectorDetail) were no longer responding to the menu item that loads the activity ActDBMaint. My app is VERY SQLite-intensive, so i suspect that the added entries for DropBox in the Manifest may be causing some trouble.
Here's the Logcat from the moment the menu item for ActDBMaint is pressed:
04-02 12:52:09.195: E/SurfaceFlinger(37): ro.sf.lcd_density must be defined as a build property
04-02 12:52:09.225: W/EGL_emulation(795): eglSurfaceAttrib not implemented
04-02 12:52:11.935: W/InputMethodManagerService(288): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#40dc0508 attribute=null, token = android.os.BinderProxy#40f06190
I've read the following articles; but I fail to see how they apply to my app.
I'm a noob at Android programming, so I would appreciate some advice.
Thanks!
It turns out that the ids/names of the menu items (the menu xml entry and the listing in the activities' onOptionsItemSelected()) didn't match!
I noticed that these two Activities are the only ones in the package 'pSectors'. Did you by chance move the actual classes to a different package?
I keep getting this error at the beginning of install. Once its installed the application then works.
Here is the error if anyone is familiar with it please let me know.
java.lang.ClassNotFoundException: com.admob.android.ads.analytics.InstallReceiver in loader dalvik.system.PathClassLoader[/data/app/com.fttech.books-1.apk]
Manifest
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.fttech.books"
android:versionCode="2"
android:versionName="2.0">
<uses-sdk android:minSdkVersion="4" />
<uses-sdk android:targetSdkVersion ="11" />
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<application android:icon="#drawable/bookicon" android:label="#string/app_name">
<activity android:name=".main"
android:label="#string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<receiver android:name="com.admob.android.ads.analytics.InstallReceiver"
android:exported="true">
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>
<activity android:name=".creat"></activity>
<activity android:name=".view" ></activity>
<activity android:name=".shopFor" android:theme="#android:style/Theme.NoTitleBar"></activity>
<activity android:name=".DbAdapter"></activity>
<activity android:name=".Lookup" android:theme="#android:style/Theme.NoTitleBar" android:label="#string/app_name"></activity>
<activity android:name="com.google.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation"/>
<activity android:name=".myAdmob"/>
</application>
<supports-screens android:resizeable="true"
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:anyDensity="true" />
</manifest>
From the error and your manifest it seams that the system doesn't know the com.admob.android.ads.analytics.InstallReceiver-Receiver.
I found this post, which treats the same error.