-Permission Denial: receiving Intent- with C2DM - Android Q&A, Help & Troubleshooting

Hi,
I want to use the C2DM, but I always get follwoing Error:
Code:
10-05 02:10:40.394: WARN/ActivityManager(11985): Permission Denial: receiving Intent { act=com.google.android.c2dm.intent.REGISTRATION cat=[mobile.app] (has extras) } to mobile.app requires mobile.app.permission.C2D_MESSAGE due to sender com.google.android.gsf (uid 10046)
Here is my Manifest.xml:
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="mobile.app"
android:versionName="0.1"
android:versionCode="1">
<uses-sdk android:minSdkVersion="10" />
<!-- Only this application can receive the messages and registration result -->
<permission android:name="com.google.android.c2dm.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="mobile.app.permission.C2D_MESSAGE" />
<!-- This app has permission to register and receive message -->
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<!-- Send the registration id to the server -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".Main">
<intent-filter>
<action android:name="android.intent.action.MAIN"></action>
<category android:name="android.intent.category.LAUNCHER"></category>
</intent-filter>
</activity>
<!-- Only C2DM servers can send messages for the app. If permission is not set - any other app can generate it -->
<receiver android:name=".C2DMReceiver" android:permission="com.google.android.c2dm.permission.SEND">
<!-- Receive the actual message -->
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="mobile.app" />
</intent-filter>
<!-- Receive the registration id -->
<intent-filter>
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="mobile.app" />
</intent-filter>
</receiver>
</application>
</manifest>
Anyone an idea?
thanks!

Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A

Related

[Q] ADW Theme - Help...

Alright so to start off i have eclipse, the android sdk, and all that other good stuff setup properly.
Now the problem is i keep getting an error in the androidmanifest.xml saying
<uses-sdk android:minSdkVersion="4"/>
The error message when clicked upon is, <uses-sdk> tag appears after <application> tag.
I have tried multiple versions of the sdk build including 2.2 (as the guide suggest) and changing the minimum sdk requirement but i always seem to run into this exact same problem. Any ideas? Oh and also im using this template
AnderWeb-ADW.Theme-Template-d8491c4
Heres the entire AndroidManifest.xml...
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="Red.Glow.Adw"
android:versionCode="1"
android:versionName="1.0"
android:installLocation="internalOnly">
<application android:label="@string/theme_title" android:icon="@drawable/theme_icon">
<activity android:name=".main"
android:label="@string/theme_title">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="org.adw.launcher.THEMES" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="org.adw.launcher.icons.ACTION_PICK_ICON" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="red.glow.adw.docks"
android:label="@string/theme_title"
android:icon="@drawable/theme_icon">
<intent-filter>
<action android:name="android.intent.action.PICK" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>
</activity>
<provider android:name="red.glow.adw.docksProvider" android:authorities="red.glow.adw.docksProvider" />
</application>
<uses-sdk android:minSdkVersion="4"/>
</manifest>
Ehh figured it out.. AnderWeb's template build was throwing me up a ton of errors but kaydensigh's template works great.

Help with device compatibility

Hi I've developed a apk and published it on Play Store.
It works fine, but there are many devices that don't support my apk, and I would like to change it.
Can someone help me find the purpose of some of these devices being incompatible?
Here is the restrictions of my app:
Screen layouts: SMALL NORMAL LARGE XLARGE
Device resources needed:
android.hardware.camera
android.hardware.camera.autofocus
android.hardware.location
android.hardware.location.gps
android.hardware.screen.portrait
android.hardware.touchscreen
Click to expand...
Click to collapse
And here are some devices that aren't supported:
Nexus 7(grouper)
Revue(ka)
sdk(generic)
Amazing CN CHINA TELECOM(SCH-I619)
Behold II(sgh-t939)
GT-B5330(zanin)
GT-B5512B(GT-B5512B)
GT-I5508(GT-I5508)
GT-P3108(espressorfcmcc)
GT-P5100(espresso10rf)
GT-S5360(GT-S5360)
GT-S5360B(GT-S5360B)
GT-S5360L(GT-S5360L)
GT-S5360T(GT-S5360T)
GT-S5363(GT-S5363)
GT-S5368(GT-S5368)
GT-S5369(GT-S5369)
GT-S5570B(GT-S5570B)
GT-S5570I(GT-S5570I)
GT-S5570L(GT-S5570L)
GT-S5578(GT-S5578)
GT-S5820(GT-S5820)
GT-S6102(GT-S6102)
Galaxy(gt-i7500)
Galaxy Mini(GT-S5570)
Galaxy Player(YP-GS1)
Galaxy Player 5.8(harrison)
Galaxy Pocket(GT-S5300)
Galaxy Pocket(GT-S5302)
Galaxy Pocket(GT-S5302B)
Galaxy Prevail(SPH-M820)
Galaxy Tab(SMT-i9100)
Galaxy Tab 2 7.0 WiFi(espressowifi)
Galaxy Tab2 10.1(espresso10wifi)
Galaxy Y Duos (ivory)
Galaxy Y Pro(GT-B5510)
Galaxy Y Pro(GT-B5510B)
Galaxy Y Pro(GT-B5510L)
Galaxy Y Pro Duos(GT-B5512)
Gravity Smart(SGH-T589)
Moment(sph-m900)
Replenish(SPH-M580)
Repp(SCH-R680)
SCH-I110(SCH-I110)
SCH-I559(SCH-I559)
SCH-I659(SCH-I659)
SCH-I699(SCH-I699)
SCH-M828C(SCH-M828C)
SCH-i509(SCH-i509)
SCH-i559(SCH-i559)
SCH-i705(espressovzw)
SGH-S730G(amazingtrf)
SGH-T499(SGH-T499)
SGH-T499V(SGH-T499V)
SGH-T499Y(SGH-T499Y)
SGH-T589R(SGH-T589R)
SPH-M580BST(SPH-M580BST)
Transfix(SCH-R730)
Click to expand...
Click to collapse
And here is my Manifest:
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="..."
package="br.com.dahora.guiducard"
android:versionCode="28"
android:versionName="1.0.2" >
<uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="16" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.Guidu.ActionBar" >
<activity
android:name=".SplashScreenActivity"
android:noHistory="true"
android:label="@string/title_activity_main"
android:theme="@android:style/Theme.NoTitleBar"
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=".InitialActivity"
android:launchMode="singleTop"
android:theme="@android:style/Theme.NoTitleBar"
android:screenOrientation="portrait"/>
<activity
android:name=".LoginActivity"
android:screenOrientation="portrait" />
<activity
android:name=".ForgotPasswordActivity"
android:screenOrientation="portrait" />
<activity
android:name=".RegisterActivity"
android:screenOrientation="portrait" />
<activity
android:name=".MainActivity"
android:launchMode="singleTop"
android:screenOrientation="portrait" />
<activity
android:name=".MyAccountActivity"
android:screenOrientation="portrait" />
<activity
android:name=".ChangePassActivity"
android:screenOrientation="portrait" />
<activity
android:name=".TutorialActivity"
android:screenOrientation="portrait" />
<activity
android:name=".AboutActivity"
android:screenOrientation="portrait" />
<activity
android:name=".UserTermsActivity"
android:screenOrientation="portrait" />
<activity
android:name=".TalkActivity"
android:screenOrientation="portrait" />
</application>
</manifest>
auto focus camera is not present in those devices
nabeeleinstein said:
auto focus camera is not present in those devices
Click to expand...
Click to collapse
Thanks!
I've changed it, and was able to increase a lot number of devices.
But there are some ones like the Nexus 7 that aren't compatible yet.
Does it have something related to the GPS?

[Q] I want to upload a modified version of flappy bird to the playstore

I have modified flappy bird a little and I modified the package name in the AndroidManifest XML file, but the app doesn't load up and I can't change the name.
NOTE:It installs even if you have the normal Flappy Bird, the name of both apps is Flappy Bird and confusing too.
How do I make it work and change the name of the application?
Then I want to upload it to the Play Store.
<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="4" android:versionName="1.3" package="com.laze.flappybird"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-feature android:glEsVersion="0x20000" android:required="true" />
<application android:theme="@style/AppTheme" android:label="@string/app_name" android:icon="@drawable/ic_launcher">
<activity android:label="@string/app_name" android:name="com.laze.flappy.SplashScreen" android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:label="@string/app_name" android:name="com.laze.GameActivity" android:screenOrientation="portrait" />
<activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
<meta-data android:name="com.google.android.gms.games.APP_ID" android:value="@string/app_id" />
</application>
</manifest>
here is the link to the modified flappybird app ...
http://forum.xda-developers.com/showthread.php?t=2648387
decompile and compare with yours and find the problem .
me also modded flappybird a bit using the above link .
pavan kr said:
here is the link to the modified flappybird app ...
http://forum.xda-developers.com/showthread.php?t=2648387
decompile and compare with yours and find the problem .
me also modded flappybird a bit using the above link .
Click to expand...
Click to collapse
Thanks a lot

[Q] Missing Adactivity error message

Hi i'm very new at this so please bare with me, successfully made my first decompilation with apk tool and after modifying and and recompiling the apk on the bottom of the apk where the ad banner should be there is a message that reads: "Missing AdActivity with android:configChanges in AndroidManifest.xml."
This is what my Android Manifest looks like :
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="7" android:versionName="@string/version" package="com.tt.radio"
xmlns:android="schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACTION_HEADSET_PLUG" />
<application android:theme="@style/AppTheme" android:label="@string/app_name" android:icon="@drawable/icon" android:allowBackup="true">
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
<activity android:theme="@*android:style/Theme.Black.NoTitleBar" android:label="@string/app_name" android:name="com.tt.radio.SplashActivity" android:screenOrientation="portrait" android:configChanges="keyboardHidden|orientation">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:theme="@*android:style/Theme.Black.NoTitleBar" android:label="@string/app_name" android:name="com.tt.radio.MainActivity" android:launchMode="singleInstance" android:screenOrientation="portrait" android:configChanges="keyboardHidden|orientation" />
<service android:name="com.tt.radio.AudioSignal" android:enabled="true" />
<activity android:theme="@*android:style/Theme.Black.NoTitleBar" android:name="com.tt.radio.FbActivity" android:configChanges="keyboardHidden|orientation" />
<activity android:theme="@*android:style/Theme.Black.NoTitleBar" android:name="com.tt.radio.TwActivity" android:configChanges="keyboardHidden|orientation" />
<activity android:theme="@*android:style/Theme.Black.NoTitleBar" android:name="com.tt.radio.AboutActivity" android:configChanges="keyboardHidden|orientation" />
<activity android:theme="@*android:style/Theme.Black.NoTitleBar" android:name="com.tt.radio.back" />
<activity android:name="com.google.android.gms.ads.AdActivity" android:screenOrientation="portrait" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode" />
</application>
</manifest>
Any help would be much appreciated.
Duneglow
No one can help me with this?
Hi there ! I have the same issue as well. Are you managed to solve that problem so far ?
Sent from my LG-LS980 using XDA Free mobile app

[Question] Toggle tunnelbear vpn conection

I want to be able to connect to tunnelbear vpn via adb command. Can anybody help me find a command to connect and disconnect tunnelbear vpn?
This is the manifest of tunnelbear:
HTML:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:"http://schemas.android.com/apk/res/android" android:versionCode="137" android:versionName="v137" android:installLocation="internalOnly" package="com.tunnelbear.android" platformBuildVersionCode="24" platformBuildVersionName="7.0">
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="23" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="com.android.vending.BILLING" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-feature android:glEsVersion="20000" android:required="true" />
<application android:label="0x7f070025" android:icon="0x7f0200b0" android:name="com.tunnelbear.android.TunnelBear" android:allowBackup="false" android:hardwareAccelerated="true" android:supportsRtl="true">
<meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyDmT5Qzsz2p8C3JigTu5QVKgDNgj_oNWhc" />
<meta-data android:name="com.google.android.gms.version" android:value="0x7f0c0000" />
<activity android:theme="0x7f0d000a" android:name="com.tunnelbear.android.TbearMainActivity" android:launchMode="singleTop" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="0x7f0d0004" android:name="com.tunnelbear.android.TbearSplashActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:theme="0x7f0d000c" android:name="com.tunnelbear.android.wizard.WizardActivity" android:configChanges="keyboardHidden|orientation|screenSize" android:windowSoftInputMode="30" />
<activity android:theme="0x7f0d0006" android:name="com.tunnelbear.android.AchievementActivity" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="0x7f0d000c" android:name="com.tunnelbear.android.RegistrationActivity" android:configChanges="keyboardHidden|orientation|screenSize" android:windowSoftInputMode="30" />
<activity android:theme="0x7f0d0008" android:name="com.tunnelbear.android.purchase.PurchaseActivity" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="0x7f0d0008" android:name="com.tunnelbear.android.options.OptionsActivity" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="0x7f0d0008" android:name="com.tunnelbear.android.freedata.FreeDataActivity" android:configChanges="keyboardHidden|orientation|screenSize" android:windowSoftInputMode="10" />
<activity android:theme="0x7f0d0008" android:name="com.tunnelbear.android.DowngradeActivity" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="0x7f0d000c" android:name="com.tunnelbear.android.TunError" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="0x7f0d0008" android:name="com.tunnelbear.android.bugreport.BugReportActivity" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="0x7f0d0008" android:name="com.tunnelbear.android.CountrySelectActivity" android:exported="true" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="0x7f0d000d" android:name="com.tunnelbear.android.CaptivePortalActivity" android:configChanges="keyboardHidden|orientation|screenSize" />
<service android:name="de.blinkt.openvpn.OpenVpnService" android:permission="android.permission.BIND_VPN_SERVICE">
<intent-filter>
<action android:name="android.net.VpnService" />
</intent-filter>
</service>
<service android:label="0x7f070025" android:icon="0x7f0200e9" android:name="com.tunnelbear.android.TBQuickSettingsTileService" android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
<meta-data android:name="android.service.quicksettings.ACTIVE_TILE" android:value="true" />
<intent-filter>
<action android:name="android.service.quicksettings.action.QS_TILE" />
</intent-filter>
</service>
<activity android:theme="0x7f0d0009" android:label="0x7f070127" android:name="de.blinkt.openvpn.LaunchVPN" android:taskAffinity="" android:excludeFromRecents="true" android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<receiver android:name="com.tunnelbear.android.widget.TunnelBearWidgetProvider">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data android:name="android.appwidget.provider" android:resource="0x7f050002" />
</receiver>
<receiver android:name="com.tunnelbear.android.network.StartNetworkServiceReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
</intent-filter>
</receiver>
<receiver android:name="com.tunnelbear.android.PackageReceiver">
<intent-filter>
<action android:name="android.intent.action.PACKAGE_REMOVED" />
<action android:name="android.intent.action.PACKAGE_ADDED" />
<data android:scheme="package" />
</intent-filter>
</receiver>
<service android:name="com.tunnelbear.android.Registration" />
<service android:name="com.tunnelbear.android.network.NetworkService" />
<activity android:theme="@*android:style/Theme.Translucent.NoTitleBar" android:name="com.google.android.gms.common.api.GoogleApiActivity" android:exported="false" />
</application>
</manifest>
I tried something like:
am start com.tunnelbear.android/de.blinkt.openvpn.LaunchVPN
but it didn't work.
BTW, i'm rooted if it helps...

Categories

Resources