[DEV] start think at creating android walpaper(live)
This commit is contained in:
parent
8478e412ae
commit
6465630a70
@ -135,9 +135,12 @@ class Target(lutinTarget.Target):
|
||||
tmpFile.write( " android:versionName=\""+pkgProperties["VERSION"]+"\"> \n")
|
||||
tmpFile.write( " <uses-feature android:glEsVersion=\"0x00020000\" android:required=\"true\" />\n")
|
||||
tmpFile.write( " <uses-sdk android:minSdkVersion=\"" + str(self.boardId) + "\" /> \n")
|
||||
tmpFile.write( " <uses-feature android:name=\"android.software.live_wallpaper\" /> \n")
|
||||
tmpFile.write( " \n")
|
||||
tmpFile.write( " <application android:label=\"" + pkgName + "\" \n")
|
||||
tmpFile.write( " android:icon=\"@drawable/icon\" >\n")
|
||||
tmpFile.write( " android:icon=\"@drawable/icon\"")
|
||||
#tmpFile.write( "\n android:permission=\"android.permission.BIND_WALLPAPER\"")
|
||||
tmpFile.write( " >\n")
|
||||
tmpFile.write( " <activity android:name=\"." + pkgName + "\" \n")
|
||||
if "debug"==self.buildMode:
|
||||
tmpFile.write( " android:label=\"" + pkgProperties["NAME"] + "-debug\" \n")
|
||||
@ -151,6 +154,14 @@ class Target(lutinTarget.Target):
|
||||
tmpFile.write( " <category android:name=\"android.intent.category.LAUNCHER\" /> \n")
|
||||
tmpFile.write( " </intent-filter> \n")
|
||||
tmpFile.write( " </activity> \n")
|
||||
#tmpFile.write( " <service android:name=\""+pkgProperties["COMPAGNY_TYPE"]+"."+pkgProperties["COMPAGNY_NAME2"]+"." + pkgName + "Service\"\n")
|
||||
#tmpFile.write( " android:label=\"" + pkgName + "\" >\n")
|
||||
#tmpFile.write( " <intent-filter>\n")
|
||||
#tmpFile.write( " <action android:name=\"android.service.wallpaper.WallpaperService\" />\n")
|
||||
#tmpFile.write( " </intent-filter>\n")
|
||||
#tmpFile.write( " <meta-data android:name=\"android.service.wallpaper\"/>\n")
|
||||
##tmpFile.write( " android:resource=\"@xml/fallingsnow_wp\" />\n")
|
||||
#tmpFile.write( " </service>\n")
|
||||
tmpFile.write( " </application> \n")
|
||||
if True==self.CheckRightPackage(pkgProperties, "WRITE_EXTERNAL_STORAGE"):
|
||||
tmpFile.write( " <uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\" /> \n")
|
||||
|
Loading…
x
Reference in New Issue
Block a user