Android Studio Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED] on Run - android

I experience this error when trying to test the app on my phone on Run. I dunno why this error pop out but I have try to do some fix based based on some solution from stack but it is not working.
my pkg: /data/local/tmp/com.example.wolex_000.freesim
MY Manifest code is:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.chat.freshim"
android:versionCode="1"
android:versionName="0.1" >
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<!-- FOR QB -->
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.FLASHLIGHT"/>
<uses-feature android:name="android.hardware.camera"/>
<uses-feature android:name="android.hardware.camera.autofocus"/>
<uses-feature android:name="android.hardware.camera.flash"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
<!-- For GCM -->
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<!-- For GCM
<permission android:name=".permission.C2D_MESSAGE"
android:protectionLevel="signature" /> -->
<uses-permission android:name=".permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<application
android:allowBackup="true"
android:icon="#drawable/icon_fresh"
android:label="fssl"
android:theme="#style/MyTheme">
<activity
android:name="com.chat.freshim.LoginActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden"
android:label="fssl"
android:theme="#style/NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.chat.freshim.FriendsListActivity"
android:screenOrientation="portrait"
android:launchMode="singleTask"
android:theme="#style/NoActionBar"/>
<activity
android:name="com.chat.freshim.FriendsAllListActivity"
android:screenOrientation="portrait"
android:launchMode="singleTask"/>
<activity
android:name="com.chat.freshim.FriendsDetailActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden"/>
<activity
android:name="com.chat.freshim.RegisterActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden"/>
<activity
android:name="com.chat.freshim.UserDetailActivity"
android:screenOrientation="portrait"/>
<activity
android:name="com.chat.freshim.StatusActivity"
android:screenOrientation="portrait"/>
<activity
android:name="com.chat.freshim.SettingsActivity"
android:screenOrientation="portrait"/>
<activity
android:name="com.chat.freshim.EditProfileActivity"
android:screenOrientation="portrait"/>
<activity
android:name="com.chat.freshim.EditPasswordActivity"
android:screenOrientation="portrait"/>
<activity
android:name="com.chat.freshim.GroupCreateActivity"
android:screenOrientation="portrait"/>
<activity
android:name="com.chat.freshim.GroupListActivity"
android:screenOrientation="portrait"
android:launchMode="singleTask"/>
<activity
android:name="com.chat.freshim.GroupMessageDetailActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden"/>
<activity
android:name="com.chat.freshim.GroupChooseFriendListActivity"
android:screenOrientation="portrait"/>
<activity
android:name="com.chat.freshim.GroupDetailActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden"/>
<activity
android:name="com.chat.freshim.GroupEditMemberListActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden"/>
<activity
android:name="com.chat.freshim.UploadFileActivity"
android:screenOrientation="portrait"/>
<activity
android:name="com.chat.freshim.CountryCodesActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden"/>
<activity
android:name="com.chat.freshim.InviteFriends"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden"/>
<activity
android:name="com.chat.freshim.AddContactFriend"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden"/>
<!-- QB ACTIVITY AND SERVICES -->
<activity
android:name="com.chat.freshim.qb.ActivityVideoChat"
android:label="fssl"
android:screenOrientation="portrait"
android:theme="#style/NoActionBar"/>
<activity
android:name="com.chat.freshim.qb.ActivityCallUser"
android:label="fssl"
android:screenOrientation="portrait"/>
<service android:name="com.quickblox.module.videochat.core.service.QBVideoChatService"/>
<!-- For GCM -->
<receiver
android:name="com.chat.freshim.GcmBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="com.chat.imapp" />
</intent-filter>
</receiver>
<service android:name="com.chat.freshim.services.GcmIntentService" />
<service android:name="com.chat.freshim.services.LoadImageService" />
<service android:name="com.chat.freshim.services.LoadFileService" />
<service android:name="com.chat.freshim.services.ResponseRequestService" />
<service android:name="com.chat.freshim.services.FriendRequestService" />
<service android:name="com.chat.freshim.services.DownLoadFileService" />
<service android:name="com.chat.freshim.services.DownloadImageService" />
<service android:name="com.chat.freshim.services.LastSeenGetService" />
<service android:name="com.chat.freshim.services.LastSeenSetService" />
<service android:name="com.chat.freshim.services.QbRegisterService" />
<!--service android:name="com.quickblox.module.chat.videochat.VideoChatService"/-->
<!-- For GCM -->
<meta-data
android:name="com.google.android.gms.version"
/>
</application>
I have try some help but have not get the solution to it.

Your <meta-data> tag is missing the required android:value entry. It should read:
<meta-data android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />

Try removing this line :
<meta-data
android:name="com.google.android.gms.version"
/>

Related

Cause: duplicate entry: AndroidManifest.xml- What seems to be the issue?

I also have the same issue with the AndroidManifest file.
The "Merged Manifest" tab shows this error
Merging Errors: Warning provider#com.telhum.chat.utils.MyFileProvider#android:authorities was tagged at AndroidManifest.xml:75 to replace other declarations but no other declaration present DreamsChat.app main manifest (this file), line 74
Here is my AndroidManifest.xml
<?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.telhum.chat">
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<application
android:name="com.telhum.chat.BaseApplication"
android:allowBackup="false"
android:appComponentFactory="whateverString"
android:hardwareAccelerated="true"
android:icon="#drawable/ic_logo_"
android:label="#string/app_name"
android:largeHeap="true"
android:supportsRtl="true"
android:theme="#style/AppTheme"
android:usesCleartextTraffic="true"
tools:replace="android:allowBackup,android:appComponentFactory">
<activity
android:name="com.telhum.chat.activities.MainActivity"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden|adjustResize" />
<activity
android:name="com.telhum.chat.activities.ChatActivity"
android:parentActivityName="com.telhum.chat.activities.MainActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden|adjustResize">
<!--android:windowSoftInputMode="stateHidden|adjustResize|adjustPan">-->
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.telhum.chat.activities.MainActivity" />
</activity>
<activity android:name="com.telhum.chat.activities.ImageViewerActivity" />
<service
android:name="com.telhum.chat.services.FirebaseChatService"
android:enabled="true" />
<service android:name="com.telhum.chat.services.MyFirebaseMessagingService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<receiver
android:name="com.telhum.chat.receivers.ConnectivityReceiver"
android:enabled="true">
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
</intent-filter>
</receiver>
<!-- https://developers.google.com/places/android-sdk/signup -->
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="AIzaSyCkFC_Ev5SLOfJPto9NG0BJnlwOwxwc5Z0" />
<provider
android:name="com.telhum.chat.utils.MyFileProvider"
android:authorities="#string/authority"
android:exported="false"
android:grantUriPermissions="true"
tools:replace="android:authorities">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="#xml/file_paths" />
</provider>
<activity
android:name="com.telhum.chat.activities.ContactViewerActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden|adjustResize" />
<activity
android:name="com.telhum.chat.activities.ChatDetailActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden|adjustResize" />
<activity
android:name="com.telhum.chat.activities.SignInActivity"
android:screenOrientation="portrait"
android:theme="#style/AppTheme.NoTitle"
android:windowSoftInputMode="stateHidden|adjustResize" />
<activity
android:name="com.telhum.chat.activities.CallScreenActivity"
android:screenOrientation="portrait" />
<activity
android:name="com.telhum.chat.activities.IncomingCallScreenActivity"
android:screenOrientation="portrait" />
<activity
android:name="com.telhum.chat.activities.SplashActivity"
android:screenOrientation="portrait"
android:theme="#style/AppTheme.NoTitle"
android:windowSoftInputMode="stateHidden|adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service
android:name="com.telhum.chat.services.FetchMyUsersService"
android:exported="false" />
<service
android:name="com.telhum.chat.services.SinchService"
android:enabled="true"
android:exported="false" />
<activity
android:name="com.telhum.chat.activities.ChooseSignInActivity"
android:label="#string/title_activity_choose_sign_in"
android:theme="#style/AppTheme" />
<activity
android:name="com.telhum.chat.activities.ContactActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden|adjustResize" />
<activity
android:name="com.telhum.chat.activities.PrivacyPolicyActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden|adjustResize" />
<meta-data
android:name="com.telhum.chat.status.glideProgressBar.OkHttpProgressGlideModule"
android:value="GlideModule" />
<activity
android:name="com.telhum.chat.activities.StatusStoriesActivity"
android:exported="true"
android:screenOrientation="portrait"
android:theme="#style/FullScreenVideoTheme" />
<activity
android:name="com.telhum.chat.activities.CallListActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden|adjustResize|adjustPan" />
</application>
</manifest>

"C2D_message is not unique" while trying to make sign apk

I'm trying to release an APK and while I'm trying to Generate sign APK I get this error
Error:Error: Permission name C2D_MESSAGE is not unique (appears in both com.company.myApp.permission.C2D_MESSAGE and com.company.myApp2.permission.C2D_MESSAGE) [UniquePermission]
and here is my manifest file:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.company.myApp">
<permission
android:name="com.company.myApp.permission.MAPS_RECEIVE"
android:protectionLevel="signature" />
<uses-feature
android:glEsVersion="0x00020000"
android:required="true" />
<supports-screens android:smallScreens="true" />
<supports-screens android:normalScreens="true" />
<supports-screens android:largeScreens="true" />
<supports-screens android:xlargeScreens="true" />
<supports-screens android:anyDensity="true" />
<uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.WRITE_SECURE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<!--<uses-permission android:name="android.permission.INTERNET" />-->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.GET_TASKS" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="com.company.myApp.permission.MAPS_RECEIVE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<uses-permission android:name="android.permission.CLEAR_APP_CACHE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<permission
android:name="com.company.myApp.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="com.company.myApp.permission.C2D_MESSAGE" />
<!-- App receives GCM messages. -->
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<!-- GCM requires a Google account. -->
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<!-- Keeps the processor from sleeping when a message is received. -->
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<application
android:name="com.company.myApp.TruckApplication"
android:allowBackup="true"
android:icon="#drawable/myApp_logo"
android:label="#string/app_name"
android:largeHeap="true"
android:sharedUserId="android.uid.system"
android:theme="#style/AppTheme" >
<uses-library android:name="com.google.android.maps" />
<activity
android:name="com.company.myApp.Authenticate_user_Activity"
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.company.myApp.Login_Activity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.company.myApp.SubmitWaiver_Activity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.company.myApp.PrepStopChoice"
android:configChanges="keyboardHidden|orientation|screenSize"
android:screenOrientation="portrait" >
</activity>
<!--<activity-->
<!--android:name="com.company.myApp.Surveyold_Activity"-->
<!--android:configChanges="keyboardHidden|orientation|screenSize"-->
<!--android:screenOrientation="portrait" >-->
<!--</activity>-->
<activity
android:name="com.company.myApp.GetStops_Activity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.company.myApp.Load_Activity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.company.myApp.AddComment_Activity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustResize" >
</activity>
<activity
android:name="com.company.myApp.StopDetail_Activity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.company.myApp.CaptureImage_Activity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.company.myApp.Survey_Activity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.company.myApp.GetDirection_Activity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.company.myApp.Map_FragmentActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.company.myApp.TabBar"
android:configChanges="keyboardHidden|orientation|screenSize"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.company.myApp.ShowStopList_Activity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.company.myApp.PrepActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:screenOrientation="landscape" >
</activity>
<activity
android:name="com.company.myApp.TransprentActivity"
android:noHistory="true"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Translucent.NoTitleBar"
android:windowSoftInputMode="stateHidden|adjustPan" >
</activity>
<receiver
android:name="com.google.android.gcm.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.company.myApp" />
</intent-filter>
</receiver>
<service android:name="com.myApp.Service.SyncService" >
</service>
<receiver android:name="com.myApp.BrodcastReciver.NetworkStateReceiver" >
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
</intent-filter>
</receiver>
<receiver android:name="com.company.myApp.RepeatingAlarmService" />
<receiver android:name="com.company.myApp.RepeatingAlaramCommunication" />
<receiver android:name="com.company.myApp.ReaptingAlramNewStops" />
<service android:name="com.myApp.Service.LogoutService" >
</service>
<service android:name="com.myApp.Service.CallNewStop_Service" >
</service>
<service android:name="com.myApp.Service.CheckingGooglePlayVersionService" >
</service>
<receiver
android:name="com.myApp.BrodcastReciver.DateTimeChangeReceiver"
android:enabled="true"
android:exported="false" >
<intent-filter>
<action android:name="android.intent.action.DATE_CHANGED" />
</intent-filter>
</receiver>
<!-- Start the Service if applicable on boot -->
<receiver android:name="com.myApp.BrodcastReciver.PhoneReStartReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<service
android:name="com.company.myApp.TruckLocationUpdateService"
android:enabled="true" />
<service
android:name="com.company.myApp.TruckCommubicationcountService"
android:enabled="true" />
<service android:name="com.company.myApp.GCMIntentService" />
<service android:name="com.company.myApp.HandleNotification" />
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="AIzaSyB6Ae82d_eLZ1nMYIW7EaaQ3-2-Xn7duHs" />
<!-- android:value="AIzaSyAkZzWl6FSP89yWf7VeX6ooYvd6SuRnV4E" /> -->
</application>
<!--<uses-permission-->
<!--android:name="android.permission.ACCESS_MOCK_LOCATION"-->
<!--android:required="false" />-->
<uses-feature
android:name="android.hardware.camera.autofocus"
android:required="false" />
<uses-permission
android:name="android.permission.FLASHLIGHT"
android:permissionGroup="android.permission-group.HARDWARE_CONTROLS"
android:protectionLevel="normal"
android:required="false" />
</manifest>
anyone has an idea whats wrong with this ? I have tried changing uses-permission to permission, where it had C2D_ it didn't work.
You may refer with this post.
Remove
<uses-permission android:name="${applicationId}.permission.C2D_MESSAGE"/>
<permission
android:name="${applicationId}.permission.C2D_MESSAGE"
android:protectionLevel="signature"/>
Run App then add the permisson again and Run App.
This problem often occurs when you try to install debug and release version of your app on the same device.

GCM push notification not working in Android App

Push notification not working in my app.
When I send push notification it show message as below:
GCM HTTP status: 200
GCM response body: {"multicast_id":5052582973644051315,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"NotRegistered"}]}
My menifest code is as below:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.scryp">
<permission
android:name="com.scryp.permission.MAPS_RECEIVE"
android:protectionLevel="signature"></permission>
<uses-permission android:name="com.skryp.permission.MAPS_RECEIVE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<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" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<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" />
<uses-feature
android:glEsVersion="0x00020000"
android:required="true" />
<application
android:name=".activities.SkrypApplication"
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme">
<activity
android:name="com.scryp.activities.SplashActivity"
android:label="#string/app_name"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service
android:name="com.scryp.activities.PushNotificationService"
android:exported="false">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
</intent-filter>
</service>
<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.scryp.activities" />
</intent-filter>
</receiver>
<activity
android:name="com.scryp.activities.LoginActivity"
android:label="#string/title_activity_login"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateAlwaysHidden" />
<activity
android:name="com.scryp.activities.SignupActivity"
android:label="#string/title_activity_signup"
android:screenOrientation="portrait" />
<activity
android:name="com.scryp.activities.ForgotPasswordActivity"
android:label="#string/title_activity_forgot_password"
android:screenOrientation="portrait" />
<activity
android:name="com.scryp.activities.ProfileActivity"
android:label="#string/title_activity_profile"
android:screenOrientation="portrait" />
<activity
android:name="com.scryp.activities.CouponActivity"
android:label="#string/title_activity_coupon"
android:screenOrientation="portrait" />
<activity
android:name="com.scryp.activities.HomeActivity"
android:label="#string/title_activity_home"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.scryp.activities.CouponDetailActivity"
android:screenOrientation="portrait"></activity>
<activity
android:name="com.scryp.activities.DownloadCouponActivity"
android:screenOrientation="portrait"></activity>
<activity
android:name="com.scryp.activities.TutorialActivity"
android:screenOrientation="portrait"></activity>
<activity android:name="com.facebook.FacebookActivity" />
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="AIzaSyB4rU0s2yS-3RGu5GQOb_L_JG6_H5toy60" />
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="#string/facebook_app_id" />
</application>
</manifest>
<permission android:name="com.example.gcm.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="com.example.gcm.permission.C2D_MESSAGE" />
Change com.example.gcm to com.scryp:

App not supported on some devices

My app doesn't support a specific android device (Samsung Galaxy Tab 3 10.1 P5210), though it supports other 10 inch tablets. I am clueless as to why this is happening. What could be the reason?
The client has the above mentioned tablet and my app doesn't get listed on his store.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.app"
android:versionCode="8"
android:versionName="1.7" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="19" />
<permission
android:name="com.example.app.permission.MAPS_RECEIVE"
android:protectionLevel="signature" />
<uses-permission android:name="com.example.app.permission.MAPS_RECEIVE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.GET_TASKS" />
<uses-permission android:name="com.android.vending.BILLING" />
<!-- Permissions for GCM -->
<permission
android:name="com.example.app.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="com.example.app.permission.C2D_MESSAGE" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-feature
android:glEsVersion="0x00020000"
android:required="true" />
<application
android:allowBackup="true"
android:icon="#drawable/app_logo"
android:label="#string/app_name"
android:theme="#style/Theme.AppCompat.Light" >
<uses-library android:name="com.google.android.maps" />
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="XYZ" />
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="#string/app_id" />
<!-- Services and receivers for GCM -->
<receiver
android:name="com.google.android.gcm.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.app" />
</intent-filter>
</receiver>
<receiver
android:name="com.example.app.FFHBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<action android:name="zecross.ffh.broadcastReceiver" />
</intent-filter>
</receiver>
<receiver android:name="com.example.app.NetworkStateChangeListener" >
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
<!-- <action android:name="android.net.wifi.WIFI_STATE_CHANGED" /> -->
</intent-filter>
</receiver>
<service android:name="com.example.app.GCMIntentService" />
<activity
android:name="com.example.app.MainActivity"
android:label="#string/app_name"
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.example.app.SwipingTaskDetails_Activity"
android:label="#string/title_activity_task_details"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.example.app.PostTask"
android:label="#string/title_activity_task_posttask"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.facebook.LoginActivity"
android:label="#string/app_name"
android:screenOrientation="portrait" />
<activity
android:name="com.example.app.TasksForHire_Activity"
android:alwaysRetainTaskState="True"
android:label="#string/title_activity_tasks_for_hire"
android:screenOrientation="portrait" />
<activity
android:name="com.example.app.SideMenu"
android:label="#string/app_name"
android:noHistory="true"
android:screenOrientation="portrait"
android:theme="#style/TranslucentActionBar" />
<activity
android:name="com.example.app.MyTasks_Activity"
android:label="#string/title_activity_my_tasks"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.example.app.SingleTaskDetails_Activity"
android:label="#string/title_activity_task_details"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.example.app.Filter_Activity"
android:label="#string/title_activity_filter"
android:screenOrientation="portrait"
android:theme="#style/TranslucentActionBar"
android:windowSoftInputMode="adjustPan|stateHidden" >
</activity>
<activity
android:name="com.example.app.TasksForMe_Activity"
android:label="#string/title_activity_tasks_for_me"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.example.app.TaskDiscuss_Activity"
android:label="#string/title_activity_task_discuss"
android:screenOrientation="portrait" />
<activity
android:name="com.example.app.Errand"
android:label="#string/title_activity_task_errand"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.example.app.Sitter"
android:label="#string/title_activity_task_sitter"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.example.app.AdviceLessonsTutor"
android:label="#string/title_activity_task_tutor"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.example.app.Handyman"
android:label="#string/title_activity_task_handyman"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.example.app.Cleaning"
android:label="#string/title_activity_task_cleaning"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.example.app.VirtualTask"
android:label="#string/title_activity_task_virtual_task"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.example.app.AnythingGoes"
android:label="#string/title_activity_task_anything_goes"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.example.app.ItemsAndServicesForSale"
android:label="#string/title_activity_task_items_sale"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.example.app.MyTaskInteraction_Activity"
android:label="#string/title_activity_my_task_interaction"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.example.app.LocateVenueCE"
android:label="#string/title_activity_locate_venue"
android:noHistory="true"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.example.app.LocationFilter"
android:label="#string/title_activity_location_filter"
android:screenOrientation="portrait"
android:theme="#style/TranslucentActionBar"
android:windowSoftInputMode="adjustPan|stateHidden" >
</activity>
<activity
android:name="com.example.app.SocialActivity"
android:label="#string/title_activity_social"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan|stateHidden" >
</activity>
<activity
android:name="com.example.app.ContactsList"
android:label="#string/title_activity_phone_contact_list"
android:noHistory="true"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan|stateHidden" >
</activity>
<activity
android:name="com.example.app.Chat_Activity"
android:label="#string/title_activity_chat_activity"
android:noHistory="true"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" >
</activity>
<activity
android:name="com.example.app.UserFBProfile"
android:label="#string/title_activity_user_fbprofile"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.example.app.MyAccount"
android:label="#string/title_activity_my_account"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.example.app.NotificationSettings"
android:label="#string/title_activity_notification_settings"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.example.app.Preferences"
android:label="#string/title_activity_preferences"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.example.app.ActivityNotifications"
android:label="#string/title_activity_notifications"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.example.app.Notifications_Activity"
android:label="#string/title_activity_notifications"
android:noHistory="true"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.example.app.NoInternetActivity"
android:label="#string/title_activity_no_internet"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:theme="#style/TranslucentActionBar" >
</activity>
<activity
android:name="com.example.app.InAppPurchases"
android:label="#string/title_activity_in_app_purchases"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.example.app.Blocked_Activity"
android:label="#string/title_activity_blocked"
android:screenOrientation="portrait" />
<activity
android:name="com.example.app.SendFeedback"
android:label="#string/title_activity_send_feedback"
android:screenOrientation="portrait" />
<activity
android:name="com.example.app.My_Ratings"
android:label="#string/title_activity_my_ratings"
android:screenOrientation="portrait" />
</application>
</manifest>
In your manifest you are specifying that your app requires openGL ES 2.0:
<uses-feature
android:glEsVersion="0x00020000"
android:required="true" />
Hence it will run only on devices that do.
It's the only requirement besides the Android version, therefore I guess your Samsung Galaxy Tab 3 doesn't.
Besides, you might want to change your package name from com.example.app to something else.
The problem was with the Camera Permission. When I removed that permission, my client's tab began supporting the app. But I still find it strange since the tab had both front and rear camera.
Try adding back the camera permission as you need it and specify the allowed screen sizes on the manifest. I reccomend you to add this code under uses-permissions tag for example...
<supports-screens
android:anyDensity="true"
android:resizeable="true"
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:xlargeScreens="true"
android:largestWidthLimitDp="2560"
android:compatibleWidthLimitDp="2560" />
Hope it helps!

No Launcher Activity Found Error?

My application was running without error but I don't know why all of a sudden it is showing this error:-
No Launcher activity found!
The launch will only sync the application package on the device!
I have search and found many link and question on stack overflow but unable to solve it:-
Here is my manyfest file:-
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.flashdeal"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="9" />
<!-- All Required Permissions Are Start Here -->
<permission
android:name="com.flashdeal.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="com.flashdeal.permission.C2D_MESSAGE" />
<!-- App receives GCM messages. -->
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<!-- GCM connects to Google Services. -->
<uses-permission android:name="android.permission.INTERNET" />
<!-- GCM requires a Google account. -->
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<!-- Keeps the processor from sleeping when a message is received. -->
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCOUNT_MANAGER" />
<uses-permission android:name="android.permission.SEND_SMS" >
</uses-permission>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" >
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
<uses-permission android:name="android.permission.CAMERA" />
<!-- Allows access to the flashlight -->
<uses-permission android:name="android.permission.FLASHLIGHT" />
<uses-feature android:name="android.hardware.camera.flash" />
<uses-permission android:name="android.permission.VIBRATE" >
</uses-permission>
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name" >
<uses-library android:name="com.google.android.maps" />
<activity
android:name=".AppSplashScreen"
android:label="#string/app_name"
android:screenOrientation="portrait" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="AppSplashScreen" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.flashdeal.autocomplete.SearchLocation"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".AppLoginActivity"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Black.NoTitleBar" >
</activity>
<activity
android:name=".RegistrationActivity"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Black.NoTitleBar"
android:windowSoftInputMode="stateHidden" >
</activity>
<activity
android:name=".FollowerUser"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".UserHistory"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".FollowingUsers"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".ShowProfile"
android:screenOrientation="portrait" />
<activity
android:name="com.flashdeal.map.DealLocationOnMap"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".SeeUserDetail"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Black.NoTitleBar" >
</activity>
<activity
android:name="com.flashdeal.map.MapGroupData"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Translucent" >
</activity>
<activity
android:name=".MainActivity"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Black.NoTitleBar" >
</activity>
<activity
android:name=".LikeUserScreen"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Black.NoTitleBar" >
</activity>
<activity
android:name=".ShowOtherUserDeal"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Black.NoTitleBar" >
</activity>
<activity
android:name=".SearchUser"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Black.NoTitleBar" >
</activity>
<activity
android:name=".DealDetailPage"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Black.NoTitleBar" >
</activity>
<activity
android:name=".ChooseBusiness"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Black.NoTitleBar" >
</activity>
<activity android:name=".AboutApp" >
</activity>
<activity
android:name=".AppMenuScreen"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Black.NoTitleBar" >
</activity>
<activity
android:name=".MyFavouriteList"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".ChooseDealLocation"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Black.NoTitleBar" >
</activity>
<activity
android:name="com.flashdeal.mycamera.CaptureDealImage"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.NoTitleBar.Fullscreen" >
</activity>
<activity
android:name=".CreateDeal"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" >
<!-- android:windowSoftInputMode="adjustResize" -->
</activity>
<activity
android:name=".QRCodeWebView"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="com.flashdeal.mycamera.SetDealImageCategory"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Black.NoTitleBar" >
</activity>
<activity
android:name=".UserProfileActivity"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Black.NoTitleBar" />
<activity
android:name=".ChangePasswordActivity"
android:theme="#android:style/Theme.Translucent" />
<activity
android:name=".Twitt"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Black.NoTitleBar" />
<activity
android:name="com.flashdeal.twitter.Twitt"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Black.NoTitleBar" />
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="#string/app_id" />
<activity android:name="com.facebook.LoginActivity" />
<activity
android:name="com.flashdeal.twitter.Twitt2"
android:theme="#style/Theme.Transparent" />
<activity
android:name=".MainTabActivity"
android:screenOrientation="portrait" />
<activity
android:name=".MoreOptionActivity"
android:screenOrientation="portrait" />
<activity
android:name=".showDealsActivity"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Black.NoTitleBar" />
<activity
android:name=".TempActivity"
android:screenOrientation="portrait" />
<activity
android:name=".SettingsActivity"
android:screenOrientation="portrait" />
<activity
android:name=".ProfileActivity"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Black.NoTitleBar" >
</activity>
<activity
android:name=".EditIndividualProfileActivity"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Black.NoTitleBar" >
</activity>
<activity
android:name=".EditProfileActivity"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Black.NoTitleBar"
android:windowSoftInputMode="stateHidden" >
</activity>
<activity
android:name="com.google.zxing.client.android.CaptureActivity"
android:configChanges="orientation|keyboardHidden"
android:screenOrientation="landscape"
android:theme="#android:style/Theme.NoTitleBar.Fullscreen"
android:windowSoftInputMode="stateAlwaysHidden" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="com.google.zxing.client.android.SCAN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:name="com.flashdeal.qrcode.Options" >
</activity>
<activity android:name="com.flashdeal.qrcode.QRScanner" >
</activity>
<!-- GCM BroadCastReciever start -->
<receiver
android:name="com.google.android.gcm.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.flashdeal" />
</intent-filter>
</receiver>
<!-- GCM BroadCastReciever End -->
<service android:name=".GCMIntentService" />
</application>
</uses-permission>
anyone guide me where I am wrong because app showing this error before some time.
You have not properly closed uses-permission tag
<uses-permission android:name="android.permission.ACCOUNT_MANAGER" />
<uses-permission android:name="android.permission.SEND_SMS" >
</uses-permission>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" >
....
....
....
<!-- GCM BroadCastReciever End -->
<service android:name=".GCMIntentService" />
**</application>
</uses-permission>**
That was closed at end of the page. remove that it will work
Check your package structure when giving value for android:name in activity tag.
For example :
If your package structure com.xxx.yy.app is like this and all your activities reside in app folder then you can give android:name=".yourActivityName" in activity tag.
If app folder has a subfolder and some Activities reside in that subfolder then you can give android:name=".subfoldername.yourActivityName" in activity tag.
My Issue will be resolve when I copy manifest from my project backup but I couldn't know why did occure this issue..

Categories

Resources