hello, I implemented for my livewallpaper this tutorial here for the
licensing system:
http://www.droidforums.net/forum/android-app-developers/69899-market-license-easy-implementation-protect-your-apps.html
But nevertheless I added the security stuff permissions and the
activities needed, I'm going on getting this error here when running:
[2011-01-27 01:11:43 - MyWallpaper] Starting activity
com.mypackage.LicenseCheck on device 100053a6178c
[2011-01-27 01:11:44 - MyWallpaper] ActivityManager: Starting: Intent
{ act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER]
cmp=com.mypackage/.LicenseCheck }
[2011-01-27 01:11:44 - MyWallpaper] ActivityManager:
java.lang.SecurityException: Permission Denial: starting Intent
{ act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x10000000
cmp=com.mypackage/.LicenseCheck } from null (pid=24182, uid=2000)
requires android.permission.BIND_WALLPAPER
this is my manifest... hope that someon can tell me if a live
wallpaper can be licensed or if I am missing something here
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.MYPACKAGE"
android:versionCode="6"
android:versionName="6">
<uses-sdk android:minSdkVersion="7" />
<uses-feature android:name="android.software.live_wallpaper" />
<application
android:label="@string/wallpapers"
android:icon="@drawable/icon" android:debuggable="true">
<service
android:label="@string/wallpapers"
android:name="MyWallpaper"
android:icon="@drawable/icon"
android:permission="android.permission.BIND_WALLPAPER">
<intent-filter>
<action
android:name="android.service.wallpaper.WallpaperService" />
</intent-filter>
<meta-data android:name="android.service.wallpaper"
android:resource="@xml/My_prefs" />
</service>
<activity
android:label="@string/My_settings"
android:name="com.MYPACKAGE.MyPreferences"
android:exported="true">
</activity>
<!-- Translucent.NoTitleBar is so that this activity is never
shown to the user
android:theme="@android:style/Theme.Translucent.NoTitleBar"
-->
<activity android:label="@string/app_name"
android:name=".LicenseCheck" >
<intent-filter>
<action
android:name="android.intent.action.MAIN" />
<category
android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-feature android:name="android.hardware.sensor.accelerometer" /
>
<uses-feature android:name="android.hardware.touchscreen" />
<uses-permission
android:name="android.permission.FLAG_ACTIVITY_NEW_TASK"/>
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="permission.BATTERY_STATS" />
<uses-permission android:name="android.permission.BIND_WALLPAPER" /
>
<uses-permission android:name="com.android.vending.CHECK_LICENSE" /
>
</manifest>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en