I have checked all possible answers on this question here, but none has helped me. I don't know what to do anymore. I have already uninstalled application on mobile phone, and it is still saying me this:
This is my manifest file:
<?xml version="1.0" encoding="utf-8"?>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application
android:name="com.solaris.timster.app.AppController"
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<activity
android:name="com.solaris.timster.activities.SplashActivity"
android:screenOrientation="portrait"
android:theme="#style/SplashTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<activity
android:name="com.solaris.timster.activities.WelcomeActivity"
android:screenOrientation="portrait"/>
<activity
android:name="com.solaris.timster.activities.LogRegActivity"
android:screenOrientation="portrait"/>
<activity
android:name="com.solaris.timster.activities.GuideStepper"
android:screenOrientation="portrait"/>
<activity
android:name="com.solaris.timster.activities.HomeActivity"
android:screenOrientation="portrait"/>
<activity
android:name="com.solaris.timster.activities.CreateTeamActivity"
android:screenOrientation="portrait"/>
<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.facebook.sdk.ApplicationId"
android:value="#string/facebook_app_id"/>
<!-- Firebase Notifications -->
<service android:name="com.solaris.timster.gcm.MyFirebaseMessagingService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
</intent-filter>
</service>
<service android:name="com.solaris.timster.gcm.MyFirebaseInstanceIDService">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT"/>
</intent-filter>
</service>
<!-- ./Firebase Notifications -->
</application>
and my build.gradle app file:
defaultConfig {
applicationId "com.solaris.timster"
}
Related
I'm using an updated version of android studio, while the code is in a previous version, I need help, I've tried everything from trying a doungrage, and I've looked at several videos, and none have given me the answer I'm looking for, I looked the entire code to see if I found any indentation flaws or sla, something that could point to some other error, and nothing, I'm slightly desperate plz help me
<?xml version="1.0" encoding="utf-8"?>
<activity
android:name=".MainActivity"
android:noHistory="true"/>
<category android:name="android.intent.category.BACK"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.MONKEY"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE"/>
<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"/>
<application
android:allowBackup="true"
android:debuggable="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<activity
android:name=".LancaComandaActivity"
android:label="#string/title_activity_lanca_comanda"
android:theme="#style/AppTheme.NoActionBar"/>
<activity android:name=".EnvioDadosActivity"/>
<activity android:name=".FecharContaActivity"/>
<activity android:name=".MudardeMesa"/>
<activity android:name=".FechamentoParcial"/>
<activity android:name=".TabelaFParcial"/>
<activity android:name=".TcpServe"/>
<activity android:name=".SocektTask"/>
<activity
android:name=".SocketTask"
android:label="#string/title_activity_socket_task"
android:theme="#style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<activity
android:name=".SocketTaskRecebe"
android:label="#string/title_activity_socket_task_recebe"
android:theme="#style/AppTheme.NoActionBar">
</activity>
<activity android:name=".ConsultaPro"/>
<activity
android:name=".ConFechaParcial"
android:label="#string/title_activity_con_fecha_parcial"
android:theme="#style/AppTheme.NoActionBar"/>
<activity
android:name=".Mensagens"
android:label="#string/title_activity_mensagens"
android:theme="#style/AppTheme.NoActionBar"/>
<activity android:name=".MainConsultaPro"/>
</application>
Trying to run a Flutter application with the flutter run command produces the following error:
No `<meta-data android:name="flutterEmbedding" android:value="2"/>` in "..\src\main\AndroidManifest.xml"
Here is my AndroidManifest.xml file:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.coding.informer.simple_material_app">
<uses-permission android:name="android.permission.INTERNET"/>
<application android:name="${applicationName}" android:label="simple_material_app" android:icon="#mipmap/ic_launcher">
<activity android:name=".MainActivity"
android:launchMode="singleTop"
android:theme="#android:style/Theme.Black.NoTitleBar"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>
I'm aware that the error message offers an obvious solution but I want to post my answer here so that anyone else running into this error can resolve it quickly.
The problem was that the AndroidManifest.xml file was lacking a required <meta-data android:name="flutterEmbedding" android:value="2"/> tag. Add it like so:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.coding.informer.simple_material_app">
<uses-permission android:name="android.permission.INTERNET"/>
<meta-data android:name="flutterEmbedding" android:value="2"/>
<application android:name="${applicationName}" android:label="simple_material_app" android:icon="#mipmap/ic_launcher">
<activity android:name=".MainActivity"
android:launchMode="singleTop"
android:theme="#android:style/Theme.Black.NoTitleBar"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>
It will inside application tag. Please see attached :
So your manifest fill wiil be look like this :
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.coding.informer.simple_material_app">
<uses-permission android:name="android.permission.INTERNET"/>
<application android:name="${applicationName}" android:label="simple_material_app" android:icon="#mipmap/ic_launcher">
<activity android:name=".MainActivity"
android:launchMode="singleTop"
android:theme="#android:style/Theme.Black.NoTitleBar"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<meta-data
android:name="flutterEmbedding"
android:value="2" />
</application>
</manifest>
I am creating a android app where i am using sync adapters and Firesbase Messaging Service. At a point everything worked fine and then suddenly now whenever i am trying to install my app on a device, it gives me a message "Installation Cancelled By User" and ERROR Installing app. I have tried doing every possible thing.
I changed my package name from com.example.raghav.AurinkoInfotech to com.example.raghav.aurinkoinfotech (Uppercase to lowercase), but that didn't work out.
I tried the option ("invalidate caches/Restart") in file menu of android studio.
Please help me.
Following is my manifest file......
<?xml version="1.0" encoding="utf-8"?>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.NFC" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_SYNC_SETTINGS"/>
<uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS"/>
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS"/>
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
<application
android:name="com.example.raghav.AurinkoInfotech.Global"
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<!--
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" />
<activity
android:name="com.example.raghav.AurinkoInfotech.EditProfile"
android:screenOrientation="portrait"
android:theme="#style/SplashTheme">
</activity>
<activity
android:name="com.example.raghav.AurinkoInfotech.Login"
android:screenOrientation="portrait"
android:theme="#style/SplashTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.example.raghav.AurinkoInfotech.MapsActivity"
android:label="#string/title_activity_maps"
android:noHistory="true"
android:screenOrientation="portrait"
android:theme="#style/SplashTheme">
</activity>
<activity
android:name="com.example.raghav.AurinkoInfotech.DashboardActivity"
android:label="#string/title_activity_maps"
android:noHistory="true"
android:screenOrientation="portrait"
android:theme="#style/SplashTheme">
</activity>
<activity android:name="com.example.raghav.AurinkoInfotech.GalleryUtil"
android:screenOrientation="portrait"
android:theme="#style/SplashTheme">
</activity>
<activity android:name="com.example.raghav.AurinkoInfotech.ProjectOptions"
android:screenOrientation="portrait"
android:theme="#style/SplashTheme">
</activity>
<activity android:name="com.example.raghav.AurinkoInfotech.Project_Operations"
android:screenOrientation="portrait"
android:theme="#style/SplashTheme">
</activity>
<activity android:name="com.example.raghav.AurinkoInfotech.ChatActivity"
android:screenOrientation="portrait"
android:theme="#style/SplashTheme">
</activity>
<activity android:name="com.example.raghav.AurinkoInfotech.ManageTeam"
android:screenOrientation="portrait"
android:theme="#style/SplashTheme">
</activity>
<activity android:name="com.example.raghav.AurinkoInfotech.Project_options_recyclerviews"
android:windowSoftInputMode="adjustPan"
android:screenOrientation="portrait"
android:theme="#style/SplashTheme1">
</activity>
<activity android:name="com.example.raghav.AurinkoInfotech.Discussion"
android:windowSoftInputMode="stateAlwaysHidden|adjustResize"
android:screenOrientation="portrait"
android:theme="#style/SplashTheme">
</activity>
<activity android:name="com.example.raghav.AurinkoInfotech.Project_tasks"
android:windowSoftInputMode="stateAlwaysHidden|adjustResize"
android:screenOrientation="portrait"
android:theme="#style/AppTheme">
</activity>
<activity android:name="com.example.raghav.AurinkoInfotech.Checklist"
android:windowSoftInputMode="stateAlwaysHidden|stateHidden"
android:screenOrientation="portrait"
android:theme="#style/SplashTheme">
</activity>
<activity android:name="com.example.raghav.AurinkoInfotech.Labels"
android:windowSoftInputMode="stateAlwaysHidden|stateHidden"
android:screenOrientation="portrait"
android:theme="#style/SplashTheme">
</activity>
<activity android:name="com.example.raghav.AurinkoInfotech.TeamMembers"
android:windowSoftInputMode="stateAlwaysHidden|stateHidden"
android:screenOrientation="portrait"
android:theme="#style/SplashTheme">
</activity>
<activity android:name="com.example.raghav.AurinkoInfotech.Calender"
android:windowSoftInputMode="stateAlwaysHidden|stateHidden"
android:screenOrientation="portrait"
android:theme="#style/SplashTheme1">
</activity>
<provider
android:name="com.example.raghav.AurinkoInfotech.StubProvider"
android:authorities="com.example.raghav.AurinkoInfotech.provider"
android:exported="false"
android:syncable="true"/>
<service android:name="com.example.raghav.AurinkoInfotech.fcmInstanceIdService">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT"> </action>
</intent-filter>
</service>
<service android:name="com.example.raghav.AurinkoInfotech.FcmMessagingService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"> </action>
</intent-filter>
</service>
<service
android:name="com.example.raghav.AurinkoInfotech.AuthenticatorService">
<intent-filter>
<action
android:name="android.accounts.AccountAuthenticator"/>
</intent-filter>
<meta-data
android:name="android.accounts.AccountAuthenticator"
android:resource="#xml/authenticator" />
</service>
<service
android:name="com.example.raghav.AurinkoInfotech.SyncService"
android:exported="true"
android:process="sync">
<intent-filter>
<action android:name="android.content.SyncAdapter"/>
</intent-filter>
<meta-data android:name="android.content.SyncAdapter"
android:resource="#xml/syncadapter" />
</service>
</application>
Really emergent as client needs it these days. T_T
I have both vuforia plugin and prime31 facebook plugin in my android app on unity. The difficulty lies in the androidmanifest.xml file. Both of them take the role of MAIN and LAUNCHER activites. But in api, it seems one will always override the other. Is there anyway to make them work together ? Some people have already posted this issue online but no efficient method exists. Really appreciate your help !!~~
My AndroidManifest.xml is as the following:
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.unity3d.player"
android:installLocation="preferExternal"
android:theme="#android:style/Theme.NoTitleBar"
android:versionCode="1"
android:versionName="1.0">
<uses-feature android:name="android.hardware.camera" />
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:anyDensity="true"/>
<uses-permission android:name="android.permission.CAMERA" />
<application
android:icon="#drawable/app_icon"
android:label="#string/app_name"
android:debuggable="true">
<activity android:name="com.prime31.UnityPlayerProxyActivity" android:screenOrientation="portrait"
android:launchMode="singleTask"
android:label="#string/app_name"
android:taskAffinity="com.prime31.UnityPlayerProxyActivity"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"
>
<intent-filter>
<action android:name="com.prime31.UnityPlayerProxyActivity"/>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.prime31.UnityPlayerActivity" android:screenOrientation="portrait"
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.prime31.UnityPlayerNativeActivity" android:screenOrientation="portrait"
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.prime31.EtceteraProxyActivity" android:configChanges="orientation|screenLayout|screenSize|smallestScreenSize"></activity>
<activity android:name="com.prime31.WebViewActivity" android:configChanges="keyboardHidden|orientation"
></activity>
<activity android:name="com.qualcomm.QCARUnityPlayer.QCARPlayerProxyActivity"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:taskAffinity="com.qualcomm.QCARUnityPlayer.QCARPlayerProxyActivity"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"
>
<intent-filter>
<action android:name="com.qualcomm.QCARUnityPlayer.QCARPlayerProxyActivity"/>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:name="com.qualcomm.QCARUnityPlayer.QCARPlayerActivity"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
</activity>
<activity android:name="com.qualcomm.QCARUnityPlayer.QCARPlayerNativeActivity"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
<meta-data android:name="android.app.lib_name" android:value="unity" />
<meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="false" />
</activity>
<activity android:name="com.unity3d.player.VideoPlayer"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
</activity>
<activity android:name="com.prime31.P31VideoPlayerActivity" android:configChanges="keyboard|keyboardHidden|orientation"></activity>
<receiver android:name="com.prime31.AlarmManagerReceiver"></receiver>
<activity android:name="com.flurry.android.FlurryFullscreenTakeoverActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode"/>
<activity android:name="com.facebook.LoginActivity"></activity>
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="\ 393271930801839"/>
<meta-data android:name="com.prime31.FlurryPlugin" android:value="UnityPlayerActivityProxy"/>
<meta-data android:name="com.prime31.FacebookPlugin" android:value="UnityPlayerActivityProxy"/>
</application>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.GET_TASKS"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
</manifest>
There is no easy way of doing this. You will have to meddle with the java side of things.
The following url should help you out with this
https://gist.github.com/prime31/0908e6100d7e228f1add/raw/a5d96177c8d8fde548068d2a15de49acdb2023ec/Android+Activity+Sharing
You can find the unity-classes.jar from this path : Unity/Editor/Data/PlaybackEngines/androidplayer/bin
for reference please follow :
http://forum.unity3d.com/threads/classes-jar-missing.250970/
I am trying to use C2DM in my Android app in Eclipse following the example on their developer site. But I keep getting "Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED" when trying to launch my app:
[2011-06-01 09:19:09 - xVoice] Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
[2011-06-01 09:19:09 - xVoice] Please check logcat output for more details.
[2011-06-01 09:19:09 - xVoice] Launch canceled!
And Logcat gives me the following warning:
06-01 09:18:47.882: WARN/PackageParser(2488): /data/app/vmdl46038.tmp (at Binary XML file line #8): Bad class name Telenet.xVoice.permission.C2D_MESSAGE in package Telenet.xVoice
Can anybody see what the problem is?
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="Telenet.xVoice"
android:versionCode="1"
android:versionName="1.0">
<!-- Only this application can receive the messages and registration result -->
<permission android:name="Telenet.xVoice.permission.C2D_MESSAGE" android:protectionLevel="signature"/>
<uses-permission android:name="Telenet.xVoice.permission.C2D_MESSAGE" />
<!-- This app has permission to register and receive message -->
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"></uses-permission>
<uses-sdk android:minSdkVersion="8"></uses-sdk>
<application android:label="#string/app_name" android:icon="#drawable/logo" android:name="xVoiceApp">
<activity android:name=".xVoice" 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=".xVoiceAppWidgetProvider" android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<action android:name="android.net.wifi.STATE_CHANGE" />
<action android:name="android.net.wifi.supplicant.CONNECTION_CHANGE" />
<action android:name="android.net.wifi.WIFI_STATE_CHANGED" />
<action android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.HOME"/>
</intent-filter>
<!-- Receive the actual message -->
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="Telenet.xVoice" />
</intent-filter>
<!-- Receive the registration id -->
<intent-filter>
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="Telenet.xVoice" />
</intent-filter>
<meta-data android:name="android.appwidget.provider" android:resource="#xml/xvoice_appwidgetprovider_info" />
</receiver>
<activity android:name=".xVoicemail"></activity>
<activity android:name=".xCallLog"></activity>
<activity android:name=".xConfiguration"></activity>
<activity android:name=".xVoiceIncomming" android:theme="#android:style/Theme.Dialog" android:noHistory="true" ></activity>
<service android:name=".xVoiceService" />
</application>
</manifest>
In the generated code I found following class:
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package Telenet.xVoice;
public final class Manifest {
public static final class permission {
/** Only this application can receive the messages and registration result
*/
public static final String C2D_MESSAGE="Telenet.xVoice.permission.C2D_MESSAGE";
}
}
The given blow is my code i have used this code for C2DM it is running fine.
compare your code with my given code and also check the fallowing think i given blow.
1) Email address you have registered for C2DM.
2) Check your local server.
3) http://code.google.com/android/c2dm/index.html take this url for more information and compare all your code with this given tutorial for google i have done it with this tutorial . I hope this is very helpful to you.
<?xml version="1.0" encoding="utf-8"?>
<permission android:name="com.cipl.TennisApp.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="com.cipl.TennisApp.permission.C2D_MESSAGE" />
<!-- This app has permission to register and receive message -->
<application android:icon="#drawable/icon" android:label="#string/app_name"
android:debuggable="true" android:theme="#android:style/Theme.NoTitleBar">
<uses-library android:name="com.google.android.maps" />
<activity android:name="com.cipl.TennisApp.TennisAppActivity" android:label="#string/app_name">
</activity>
<activity android:name=".HomeActivity" 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>
<!-- C2DM service Receive -->
<service android:name="com.commonsware.android.c2dm.C2DMReceiver" />
<receiver android:name="com.google.android.c2dm.C2DMBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="com.cipl.TennisApp" />
</intent-filter>
<intent-filter>
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="com.cipl.TennisApp" />
</intent-filter>
</receiver>
<!-- C2DM service Receive End -->
<activity android:name="com.google.android.c2dm.NotificationIntent"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.More.ChangePasswordActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.More.AccountsActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.More.DiscussionActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.More.MoreListActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.More.MessageActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.More.AboutUsActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.More.ContactUSActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.More.BlockUserActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.More.CreateNewTopic"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.More.AddCommentActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.More.PrivacyPolicyActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.More.MoreTabActivityGroupNew"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.TennisApp.DefaultDisplay"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.TennisApp.MatchesListActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.TennisApp.PlayersListActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.TennisApp.CourtsListActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.TennisApp.MatchListDetailsActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:noHistory="true" android:stateNotNeeded="true" android:name="com.cipl.TennisApp.Login"
android:label="#string/app_name" android:screenOrientation="portrait" android:launchMode="singleInstance"/>
<activity android:name="com.cipl.Courts.AddCourtActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.TennisApp.ForgotPasswordActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.TennisApp.InviteForMatchActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.TennisApp.SendMessageActivity"
android:label="#string/app_name" android:screenOrientation="portrait" android:windowSoftInputMode="adjustResize|adjustPan"/>
<activity android:name="com.cipl.TennisApp.RegistrationActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.TennisApp.TabGroupActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.TennisApp.TabGroupActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.TennisApp.PlayersListActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.TennisApp.CourtsListActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.TennisApp.HomeTabActivityGroup"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.TennisApp.TermsActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.Courts.AddCourtActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.TennisApp.PlayerProfileActiviy"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.Courts.CourtDetailActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.Matches.AddMatchActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.Matches.AddMatchActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.Matches.MatchDetailActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.Profile.MyProfile"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.Profile.EditMyProfileActivity"
android:label="#string/app_name" android:screenOrientation="portrait" android:windowSoftInputMode="adjustResize|adjustPan"/>
<activity android:name="com.cipl.Profile.SkillInfoActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.Profile.ProfileTabActivityGroup"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.Favorites.FavoritesTabActivityGroup"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.Favorites.FavoritesActivity"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<!-- <activity android:name="com.cipl.Courts.CourtDetailGetDirectionActivity"
android:label="#string/app_name" /> -->
<activity android:name="com.cipl.TennisApp.SetCurrentLocation"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.Courts.DrivingDirection"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.Notifications.NotificationTabActivityGroup"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<activity android:name="com.cipl.Notifications.ShowAllNotificationActiviry"
android:label="#string/app_name" android:screenOrientation="portrait"/>
<!-- AdMobActivity definition -->
<activity android:name="com.admob.android.ads.AdMobActivity"
android:theme="#android:style/Theme.NoTitleBar.Fullscreen"
android:configChanges="orientation|keyboard|keyboardHidden" />
<!-- Track Market installs -->
<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>
<meta-data android:value="true" android:name="ADMOB_ALLOW_LOCATION_FOR_ADS"/>
<!-- The application's publisher ID assigned by AdMob -->
<meta-data android:value="a14d6f97d8ea9fc" android:name="ADMOB_PUBLISHER_ID" />
</application>
<uses-permission android:name="android.permission.ACCESS_GPS" />
<uses-permission android:name="android.permission.ACCESS_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_OWNER_DATA" />
<uses-permission android:name="android.permission.WRITE_OWNER_DATA" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.UPDATE_DEVICE_STATS"/>
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<supports-screens android:normalScreens="true"
android:largeScreens="true" android:anyDensity="true">