摘要:
前几天看到豌豆荚上面风景壁纸的APP 下载得挺火,闲来无事心痒痒的想写一个壁纸程序。由于是Android开发新手,忘记了一个很重要的开发步骤,就是对权限的设置。开始以为自己写的壁纸设置程序有问题,经过对doc文档的多次阅读,写好几种对壁纸的设置。供大家参考。1、别忘记在ApplicationManifest.xml 中加上权限的设置。<uses-permission android:name = "android.permission.SET_WALLPAPER"/> 2、设置壁纸的方法总结。壁纸设置方法有三种 第一 通过WallpaperManager方法中的 阅读全文
posted @ 2012-12-06 22:40
sfshine
阅读(1482)
评论(0)
推荐(0)
摘要:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" > <stroke android:width="0.5dip" android:color="#ff505050" /> <corners android:radius=&q 阅读全文
posted @ 2012-12-06 22:12
sfshine
阅读(361)
评论(0)
推荐(0)
摘要:
package cn.itcast.mobilesafe.receiver; import cn.itcast.mobilesafe.ui.LostProtectedActivity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.sax.StartElementListener; public class CallPhoneReceiver extends BroadcastReceiver {
.. 阅读全文
posted @ 2012-12-06 22:08
sfshine
阅读(572)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2012-12-06 21:07
sfshine
阅读(119)
评论(0)
推荐(0)

浙公网安备 33010602011771号