I am getting strange issue while installing app. If i install app on Android 5.0 version and above then app is getting installed and working fine. But if i install app on lower version like 4.4 or 4.2 then its give me this error while installation.
Getting error while installing app
After lots of RND i get that if your package name contains caps letters then you get this type of error but in my package name there is no cap letter. Below is my Manifest file code :-`
package="com.aznimo">
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
////////////////
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<permission
android:name="com.example.gcm.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="com.example.gcm.permission.C2D_MESSAGE" />
<application
android:name="Comman.MyApplication"
android:allowBackup="true"
android:hardwareAccelerated="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="#string/app_id" />
<activity
android:name=".Splash_Screen"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".Login_Screen"
android:label="#string/title_activity_login__screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden|adjustResize" />
<activity
android:name=".Signup_Screen"
android:label="#string/title_activity_signup__screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden|adjustResize" />
<activity
android:name=".Forgot_Password"
android:label="#string/title_activity_forgot__password"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden|adjustResize" />
<activity
android:name="com.facebook.FacebookActivity"
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:label="#string/app_name"
android:theme="#android:style/Theme.Translucent.NoTitleBar" />
<provider
android:name="com.facebook.FacebookContentProvider"
android:authorities="com.facebook.app.FacebookContentProvider922739857843448"
android:exported="true" />
<activity
android:name=".Privacy_Policy_Screen"
android:label="#string/title_activity_privacy__policy__screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Home_Screen"
android:label="#string/title_activity_home__screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Product_View_All"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Category_List_Screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Product_detail"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".GalleryActivity"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".You_Tube_Screen"
android:screenOrientation="landscape"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Profile_Screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Edit_Profile_Screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden|adjustResize">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="t4jsample"
android:scheme="oauth" />
</intent-filter>
</activity>
<activity
android:name=".New_Address_Screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden|adjustResize" />
<activity
android:name=".Twitter_Webview_Screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Address_List_Screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Order_List_Screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Order_Detail_Screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Search_Screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateAlwaysVisible" />
<activity
android:name=".Cart_Screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Delivery_Screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Payment_Confirmation_Screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Payment_Method_Screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".New_Address_Screen_Map"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
/////////////
<receiver
android:name="com.google.android.gms.gcm.GcmReceiver"
android:exported="true"
android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="com.aznimo" />
</intent-filter>
</receiver>
<service
android:name=".PushNotificationService"
android:exported="false">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
</intent-filter>
</service>
<!--
Optionally, register AnalyticsReceiver and AnalyticsService to support background
dispatching on non-Google Play devices
-->
<receiver
android:name="com.google.android.gms.analytics.AnalyticsReceiver"
android:enabled="true">
<intent-filter>
<action android:name="com.google.android.gms.analytics.ANALYTICS_DISPATCH" />
</intent-filter>
</receiver>
<service
android:name="com.google.android.gms.analytics.AnalyticsService"
android:enabled="true"
android:exported="false" />
<!--
Optionally, register CampaignTrackingReceiver and CampaignTrackingService to enable
installation campaign reporting
-->
<receiver
android:name="com.google.android.gms.analytics.CampaignTrackingReceiver"
android:exported="true">
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>
<service android:name="com.google.android.gms.analytics.CampaignTrackingService" />
<!--
The API key for Google Maps-based APIs is defined as a string resource.
(See the file "res/values/google_maps_api.xml").
Note that the API key is linked to the encryption key used to sign the APK.
You need a different API key for each encryption key, including the release key that is used to
sign the APK for publishing.
You can define the keys for the debug and release targets in src/debug/ and src/release/.
-->
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="#string/google_maps_key" />
</application>
`
I am not even getting any error in logcat section. Can any body tell me whats the problem or what i am doing wrong. Thanks in advance.
At least this causes a "manifest malformed" error:
<application
android:name="Comman.MyApplication"
If the application class name contains a ., it is treated as a fully qualified package name. The package part must start with a lowercase letter between a and z and yours begins with a capital C.
See the PackageParser source for the various ways installation can fail with "manifest malformed". In this case null get returned from buildClassName() when parsing the application element.
Related
<?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.video.maker1">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE" />
<application
android:name="com.video.maker1.MyApplication"
android:allowBackup="true"
android:extractNativeLibs="true"
android:hardwareAccelerated="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:largeHeap="true"
android:networkSecurityConfig="#xml/network_security_config"
android:requestLegacyExternalStorage="true"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/theme"
android:usesCleartextTraffic="true"
>
<uses-library
android:name="org.apache.http.legacy"
android:required="false" />
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-9731420309932281~3771749504" />
<!-- <activity-->
<!-- android:name="com.facebook.ads.AudienceNetworkActivity"-->
<!-- android:hardwareAccelerated="true" />-->
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.provider"
android:exported="true"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="#xml/provider_paths" />
</provider>
<activity
android:name="com.video.maker1.activity.SplashActivity"
android:exported="true"
android:screenOrientation="nosensor">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.video.maker1.activity.MainActivity"
android:exported="true"
android:screenOrientation="portrait">
</activity>
<activity
android:name="com.video.maker1.activity.ImagePickerActivity"
android:exported="true"
android:screenOrientation="portrait" />
<activity
android:name="com.video.maker1.activity.SwapImageActivity"
android:exported="true"
android:screenOrientation="portrait" />
<activity
android:name="com.video.maker1.activity.SelectFrameActivity"
android:exported="true"
android:screenOrientation="portrait" />
<activity
android:name="com.video.maker1.activity.VideoPlayerActivity"
android:exported="true"
android:screenOrientation="portrait" />
<activity
android:name="com.video.maker1.activity.SongGalleryActivity"
android:exported="true"
android:screenOrientation="portrait" />
<activity
android:name="com.video.maker1.activity.VideoThemeActivity"
android:exported="true"
android:screenOrientation="portrait" />
<service android:name="com.video.maker1.theme.service.ServiceAnim" />
<activity
android:name="com.video.maker1.activity.MyVideo"
android:exported="true"
android:screenOrientation="portrait" />
<activity
android:name="com.video.maker1.activity.VideoMakerActivity"
android:exported="true"
android:screenOrientation="portrait" />
<activity
android:name="com.video.maker1.activity.PrivacyActivity"
android:exported="true"
android:screenOrientation="portrait" />
<activity
android:name="com.theartofdev.edmodo.cropper.CropImageActivity"
android:exported="true"
android:theme="#style/Base.Theme.AppCompat" />
<activity android:name="com.video.maker1.activity.VideoTrimActivity" />
<activity
android:name="com.video.maker1.activity.VideoEditorActivity"
android:exported="true"
android:screenOrientation="portrait" />
<activity
android:name="com.video.maker1.activity.LibraryActivity"
android:exported="true"
android:screenOrientation="portrait" />
<activity
android:name="com.video.maker1.activity.SaveVideoFileActivity"
android:exported="true"
android:screenOrientation="portrait" />
<activity android:name="com.video.maker1.activity.VideoListActivity" />
<activity
android:name="com.infiapp.imagelibrary.editimage.EditImageActivity"
android:exported="true"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan"></activity>
</application>
</manifest>
this is my manifest code when i try to install my app on the emulator it shows me this error
^^The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED^^
i'hv tryed evrything that i know but it still showing me the same error
as you see i have tried the ^^android exported true commnd on all my activity but it doesn't work.
I integrated OneSignal push notification into my app and everything worked perfectly well until I upgraded to Android 12 (31). When I upgraded, AndroidStudio reports this error to me, I really don't know what I need to do to avoid it:
Manifest merger failed : android:exported needs to be explicitly specified
for <service>. Apps targeting Android 12 and higher are required to specify
an explicit value for `android:exported` when the corresponding component
has an intent filter defined.
AndroidManifest:
<?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.my.app">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="com.android.vending.BILLING" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
<uses-permission android:name="oppo.permission.OPPO_COMPONENT_SAFE"/>
<uses-permission android:name="com.huawei.permission.external_app_settings.USE_COMPONENT"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<application
android:name="com.my.app.MainApplication"
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:supportsRtl="true"
android:networkSecurityConfig="#xml/network_security_config"
android:theme="#style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="#string/admob_app_ID" />
<activity
android:name="com.my.app.activity.StepActivity"
android:screenOrientation="portrait"
android:theme="#style/Splash">
</activity>
<activity android:name="com.my.app.activity.PrivacyPolicyActivity"
android:screenOrientation="portrait"/>
<activity android:name="com.my.app.activity.TermsToUseActivity"
android:screenOrientation="portrait"/>
<activity android:name="com.my.app.activity.SplashActivity"
android:screenOrientation="portrait"
android:exported="true"
tools:node="merge">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.my.app.activity.MainActivity"
android:screenOrientation="portrait"/>
<activity android:name="com.my.app.activity.PremiumActivity"
android:screenOrientation="portrait"/>
<activity android:name="com.my.app.activity.ChooseServerActivity"
android:screenOrientation="portrait"/>
<service
android:name="com.my.app.OneSignal.MyNotificationExtenderService"
android:exported="true"
tools:node="merge"
android:permission="android.permission.BIND_JOB_SERVICE">
<intent-filter>
<action android:name="com.onesignal.NotificationExtender" />
</intent-filter>
</service>
<service
android:name="com.my.app.service.BackgroundJobService"
android:permission="android.permission.BIND_JOB_SERVICE"
android:enabled="true"
android:exported="true"
tools:node="merge"/>
<service
android:name="com.my.app.service.MyService"
android:exported="false"
tools:node="merge">
<intent-filter>
<action android:name="androidsrc.intent.action.PICK_PLUGIN" />
<category android:name="androidsrc.intent.category.ADD_PLUGIN" />
</intent-filter>
</service>
<receiver android:name="com.my.app.service.BootCompletedReceiver"
android:enabled="true"
android:exported="true"
tools:node="merge">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
<action android:name="android.intent.action.QUICKBOOT_POWERON"/>
</intent-filter>
</receiver>
</application>
build.gradle (app):
manifestPlaceholders = [onesignal_app_id : "xxxxx-xxxx-xxxx-xxx-xxxxxxxx",
onesignal_google_project_number: "REMOTE"]
Please help me fix this on my project,
Project minimum sdk when i create is 4.4 kitkat
Upon running on my device which is OREO OS.
And when i run on my other device which is in Lollipop OS
the error message will appear
Error Message
Error Message in my console
pkg: /data/local/tmp/com.teamcipher.mrfinman.mrfinmanfinal
Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]
$ adb shell pm uninstall com.teamcipher.mrfinman.mrfinmanfinal
Unknown failure (Failure - not installed for 0)
Error while Installing APK
My Manifest file
<?xml version="1.0" encoding="utf-8"?>
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="15" />
<!-- To auto-complete the email text field in the login form with the user's emails -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.READ_PROFILE" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.SET_ALARM" />
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:roundIcon="#drawable/ic_launcher"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<receiver android:name="Receiver.Notification_receiver" />
<receiver android:name="Receiver.Notification_receiver_debt" />
<receiver android:name="Receiver.Notification_receiver_goal" />
<receiver android:name="Receiver.Notification_receiver_bills" />
<service android:name="Services.RealtimeBudgetRemCheck"/>
<service android:name="Services.BillCheck"/>
<service android:name="Services.GoalCheck"/>
<service android:name="Background.background"/>
<activity
android:name=".MainActivity"
android:theme="#style/Theme.MyOwn">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".Activity_dashboard"
android:screenOrientation="portrait"
android:theme="#style/Theme.MyOwn" />
<activity
android:name=".Activity_expense"
android:screenOrientation="portrait"
android:theme="#style/Theme.MyOwn" />
<activity
android:name=".Activity_login"
android:screenOrientation="portrait"
android:theme="#style/Theme.MyCustomTheme" />
<activity
android:name=".Activity_income"
android:screenOrientation="portrait"
android:theme="#style/Theme.MyOwn" />
<activity
android:name=".Activity_editbudgetplan"
android:screenOrientation="portrait"
android:theme="#style/Theme.MyOwn"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".Activity_add_category"
android:screenOrientation="portrait"
android:theme="#style/Theme.MyOwn" />
<activity
android:name=".ActivityRegistration"
android:screenOrientation="portrait"
android:theme="#style/Theme.MyCustomTheme" />
<activity
android:name=".ActivityRegistration2"
android:screenOrientation="portrait"
android:theme="#style/Theme.MyCustomTheme" />
<activity
android:name=".Activity_myincome"
android:screenOrientation="portrait"
android:theme="#style/Theme.MyOwn" />
<activity
android:name=".Activity_transactions"
android:screenOrientation="portrait"
android:theme="#style/Theme.MyOwn" />
<activity
android:name=".Activity_my_budget_plan"
android:screenOrientation="portrait"
android:theme="#style/Theme.MyOwn" />
<activity
android:name=".Activity_my_goals_add"
android:screenOrientation="portrait"
android:theme="#style/Theme.MyOwn" />
<activity
android:name=".Activity_my_debt_add"
android:screenOrientation="portrait"
android:theme="#style/Theme.MyOwn" />
<activity
android:name=".Activity_my_bills"
android:screenOrientation="portrait"
android:theme="#style/Theme.MyOwn" />
<activity
android:name=".Activity_my_bills_add"
android:screenOrientation="portrait"
android:theme="#style/Theme.MyOwn" />
<activity
android:name=".DialogTransactionDetails"
android:screenOrientation="portrait"
android:theme="#style/Theme.AppCompat.Light.Dialog.Alert" />
<activity
android:name=".Testing"
android:screenOrientation="portrait" />
<activity
android:name=".Activity_set_budget"
android:screenOrientation="portrait"
android:theme="#style/Theme.MyOwn" />
<activity
android:name=".Template"
android:screenOrientation="portrait"
android:theme="#style/Theme.MyOwn" />
<activity
android:name=".Biller.Activity_dashboard_biller"
android:theme="#style/Theme.Biller" />
<activity
android:name=".Admin.Activity_dashboard_admin"
android:theme="#style/Theme.Admin" />
<activity
android:name=".Activity_forgot_password"
android:screenOrientation="portrait"
android:theme="#style/Theme.MyCustomTheme" />
<activity
android:name=".Activity_Confirmation"
android:screenOrientation="portrait"
android:theme="#style/Theme.MyCustomTheme" />
<activity
android:name=".Activity_Registration_biller"
android:screenOrientation="portrait"
android:theme="#style/Theme.MyCustomTheme" />
<activity
android:name=".Activity_reset_pword"
android:screenOrientation="portrait"
android:theme="#style/Theme.MyCustomTheme" />
<activity android:name=".PopUp.BillPopUp"
android:theme="#style/Theme.AppCompat.Light.Dialog.Alert"/>
<!-- <service android:name="Services.FirebaseMessagingServices">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
</intent-filter>
</service>
<service android:name="Services.FirebaseInstanceIDServices">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT"/>
</intent-filter>
</service>-->
</application>
This is my error:
12-03 20:25:30.767 19809-19809/com.app.test E/AndroidRuntime? FATAL EXCEPTION: main
Process: com.app.test, PID: 19809
java.lang.RuntimeException: setParameters failed
at android.hardware.Camera.native_setParameters(Native Method)
at android.hardware.Camera.setParameters(Camera.java:1878)
at com.app.test.CameraManager.TakePicture(CameraManager.java:107)
at com.app.test.DesignerFragment.CameraAction(DesignerFragment.java:808)
at com.app.test.MainActivity.CameraAction(MainActivity.java:1031)
at com.app.test.MainActivity$3.onClick(MainActivity.java:297)
at android.view.View.performClick(View.java:5198)
at android.view.View$PerformClick.run(View.java:21147)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
This is my manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.app.test"
android:versionCode="43"
android:versionName="3.0" >
<uses-sdk
android:minSdkVersion="15"
android:targetSdkVersion="21" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<!-- <uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" android:required="false" />
-->
<uses-feature android:name="android.hardware.camera" android:required="false"/>
<!--<uses-feature android:name="android.hardware.camera.front" android:required="false" />-->
<uses-feature android:name="android.hardware.camera.front" android:required="false"/>
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.hardware.camera.autofocus" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-feature android:name="android.hardware.camera.autofocus" />
<uses-feature android:name="android.hardware.location" />
<uses-feature android:name="android.hardware.camera.setParameters" />
<!--
IMPORTANT: Change "com.parse.starter.permission.C2D_MESSAGE" in the lines below
to match your app's package name + ".permission.C2D_MESSAGE".
-->
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.FLASHLIGHT"
android:permissionGroup="android.permission-group.HARDWARE_CONTROLS"
android:protectionLevel="normal"/>
<uses-feature android:name="android.hardware.camera.flash"/>
<!--
IMPORTANT: Change "com.parse.tutorials.pushnotifications.permission.C2D_MESSAGE" in the lines below
to match your app's package name + ".permission.C2D_MESSAGE".
-->
<permission
android:name="com.app.test.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="com.app.test.permission.C2D_MESSAGE" />
<application
android:name="com.app.application.GlobalApplication"
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<meta-data
android:name="com.parse.ui.ParseLoginActivity.PARSE_LOGIN_ENABLED"
android:value="true" />
<!-- Google Analytics Version v4 needs this value for easy tracking -->
<!--
<meta-data android:name="com.google.android.gms.analytics.globalConfigResource"
android:resource="#xml/global_tracker" />
-->
<!--
<meta-data android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
-->
<activity
android:name="com.parse.ui.ParseLoginActivity"
android:label="#string/app_name"
android:launchMode="singleTop" >
<meta-data
android:name="com.parse.ui.ParseLoginActivity.PARSE_LOGIN_ENABLED"
android:value="true" />
<!-- <meta-data -->
<!-- android:name="com.parse.ui.ParseLoginActivity.PARSE_LOGIN_EMAIL_AS_USERNAME" -->
<!-- android:value="true"/> -->
<meta-data
android:name="com.parse.ui.ParseLoginActivity.FACEBOOK_LOGIN_ENABLED"
android:value="true" />
<meta-data
android:name="com.parse.ui.ParseLoginActivity.TWITTER_LOGIN_ENABLED"
android:value="true" />
</activity>
<!-- <activity -->
<!-- android:name="com.app.test.MainActivity" -->
<!-- android:configChanges="keyboardHidden|orientation|screenSize" -->
<!-- android:label="#string/app_name" -->
<!-- android:screenOrientation="portrait" > -->
<!-- </activity> -->
<activity
android:name="com.facebook.FacebookActivity"
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:label="#string/app_name"
android:theme="#android:style/Theme.Translucent.NoTitleBar" />
<meta-data
android:name="com.parse.APPLICATION_ID"
android:value="#string/parse_app_id" />
<meta-data
android:name="com.parse.CLIENT_KEY"
android:value="#string/parse_client_key" />
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="#string/facebook_app_id" />
<meta-data
android:name="com.app.test.notification_icon"
android:resource="#drawable/ic_launcher" />
<activity
android:name=".DispatchActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="#string/app_name"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".IntroActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="#string/app_name"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".UserSettingsActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:theme="#style/PreferenceScreen" >
</activity>
<activity
android:name=".EditProfileActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="#string/app_name"
android:parentActivityName=".EditProfileActivity"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".ChangePasswordActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="#string/app_name"
android:parentActivityName=".ChangePasswordActivity"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".PaymentDetailsActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="#string/app_name"
android:parentActivityName=".PaymentDetailsActivity"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".MainActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="#string/app_name"
android:launchMode="singleTask"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>
</activity>
<activity
android:name=".PurchaseActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="#string/app_name"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.app.gallery.GalleryActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="#string/app_name"
android:launchMode="singleTask"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.app.feed.FeedActivityV2"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="#string/app_name"
android:launchMode="singleTask"
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="com.app.feed.SearchActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="#string/app_name"
android:parentActivityName="com.app.feed.FeedActivityV2"
android:screenOrientation="portrait">
</activity>
<activity
android:name="com.app.feed.SuggestedUserActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="#string/app_name"
android:parentActivityName="com.app.feed.FeedActivityV2"
android:screenOrientation="portrait">
</activity>
<activity
android:name="com.app.comments.CommentsActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="#string/app_name"
android:parentActivityName="com.app.feed.FeedActivityV2"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.app.notifications.NotificationsActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="#string/app_name"
android:parentActivityName="com.app.feed.FeedActivityV2"
android:screenOrientation="portrait" >
</activity>
<service
android:name="com.paypal.android.sdk.payments.PayPalService"
android:exported="false" />
<activity android:name="com.paypal.android.sdk.payments.PaymentActivity" />
<activity android:name="com.paypal.android.sdk.payments.LoginActivity" />
<activity android:name="com.paypal.android.sdk.payments.PaymentMethodActivity" />
<activity android:name="com.paypal.android.sdk.payments.PaymentConfirmActivity" />
<activity android:name="com.paypal.android.sdk.payments.PayPalFuturePaymentActivity" />
<activity android:name="com.paypal.android.sdk.payments.FuturePaymentConsentActivity" />
<activity android:name="com.paypal.android.sdk.payments.FuturePaymentInfoActivity" />
<activity android:name="com.paypal.android.sdk.payments.PayPalProfileSharingActivity" />
<activity android:name="com.paypal.android.sdk.payments.ProfileSharingConsentActivity" />
<activity
android:name="io.card.payment.CardIOActivity"
android:configChanges="keyboardHidden|orientation" />
<activity android:name="io.card.payment.DataEntryActivity" />
<provider
android:name="com.app.utility.ContentProvider"
android:authorities="com.app"
android:enabled="true"
android:exported="true" >
</provider>
<activity
android:name=".PaymentProcessingActivity"
android:label="#string/title_activity_payment_processing" >
</activity>
<activity
android:name="com.app.utility.WrapperWeb"
android:label="#string/title_activity_wrapper_web" >
</activity>
<service android:name="com.parse.PushService" />
<!-- Custom Receiver -->
<receiver
android:name=".Receiver"
android:exported="false" >
<intent-filter>
<action android:name="com.parse.push.intent.RECEIVE" />
<action android:name="com.parse.push.intent.DELETE" />
<action android:name="com.parse.push.intent.OPEN" />
</intent-filter>
</receiver>
<!-- End Custom Receiver -->
<receiver android:name="com.parse.ParseBroadcastReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.USER_PRESENT" />
</intent-filter>
</receiver>
<receiver
android:name="com.parse.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" />
<!-- IMPORTANT: Change "com.parse.tutorials.pushnotifications" to match your app's package name. -->
<category android:name="com.app.test" />
</intent-filter>
</receiver>
<!-- replace #drawable/push_icon with your push icon identifier -->
<meta-data
android:name="com.parse.push.notification_icon"
android:resource="#drawable/ic_stat_ic_notification" />
<activity
android:name="com.app.feed.FeedActivitySingle"
android:label="#string/title_activity_feed_activity_single"
android:parentActivityName="com.app.gallery.GalleryActivity" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.app.gallery.GalleryActivity" />
</activity>
</application>
</manifest>
I've been wracking my head as to why this doesn't work. The front camera shuts down the app every time I launch it. What could be going wrong? What is wrong with my manifest?
Can you post the code that launches the Camera?
What I can see right now is that you declare a permission that does not exist:
<uses-permission android:name="android.hardware.camera.autofocus" />
There are some features declaration that have typos:
<used-feature android:name="android.hardware.location" />
<used-feature android:name="android.hardware.camera.setParameters" />
You can try fixing these for a start, see if it helps. You can see the list of all features available for declaration here
I made sure all my permissions were set to false under required:
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" android:required="false" />
<uses-feature android:name="android.hardware.camera.front" android:required="false" />
<uses-feature android:name="android.hardware.camera.setParameters" android:required="false" />
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
<uses-feature android:name="android.hardware.location" android:required="false" />
<uses-permission android:name="android.permission.FLASHLIGHT"
android:permissionGroup="android.permission-group.HARDWARE_CONTROLS"
android:protectionLevel="normal"/>
<uses-feature android:name="android.hardware.camera.flash" android:required="false" />
I also fixed some typos as suggested above by k3v1n3ud3.
I am trying to insert nell'android manifest support for multi windows .. that's what I did:
<application
<uses-library required="false" name="com.sec.android.app.multiwindow" />
<meta-data android:name="com.sec.android.support.multiwindow" android:value="true" />
<meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_W" android:value="632.0dip" />
<meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_H" android:value="598.0dip" />
<meta-data android:name="com.sec.android.multiwindow.MINIMUM_SIZE_W" android:value="632.0dip" />
<meta-data android:name="com.sec.android.multiwindow.MINIMUM_SIZE_H" android:value="598.0dip" />
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name="com.X.XX.XXX"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.MULTIWINDOW_LAUNCHER" />
</intent-filter>
</activity>
Why do I receive an error? How can i fix it?
You're putting it in the wrong place.. According to the [MOD] Multiwindow Apps It should be inserted right before the ending application tag.
In your case you should use the following:
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name="com.X.XX.XXX"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.MULTIWINDOW_LAUNCHER" />
</intent-filter>
</activity>
<uses-library android:required="false" android:name="com.sec.android.app.multiwindow" />
<meta-data android:name="com.sec.android.support.multiwindow" android:value="true" />
<meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_W" android:value="632.0dip" />
<meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_H" android:value="598.0dip" />
<meta-data android:name="com.sec.android.multiwindow.MINIMUM_SIZE_W" android:value="632.0dip" />
<meta-data android:name="com.sec.android.multiwindow.MINIMUM_SIZE_H" android:value="598.0dip" />
</application>
EDIT: I added namespace prefixes as suggested by other answer.
the error is here ( attribute is missing the android namespace prefix )
Replace:
<uses-library required="false" name="com.sec.android.app.multiwindow" />
with:
<uses-library android:required="false" android:name="com.sec.android.app.multiwindow" />