2013.3.26 PendingIntent,sqlite数据库
1,PendingIntent,当满足某些条件时要执行某个动作,动作包括激活一个Activity,broadcast,Service,具体动作和数据在Intent中,PendingIntent已知用在通知,短信发送,Alarm中,PendingIntent保存当前应用的context,即使当前应用被killed掉,其他应用也有权限和能力执行操作。 If the creating application later re-retrieves the same kind of PendingIntent (same operation,same Intent action,data,categories,and components,and same flags),it will receive a PendingIntent representing the same token if that is still valid,and can thus call 唯一确定一个PendingIntent:same operation,and same flags 2, //写文件 FileOutputStream fos = context.openFileOutput("config.txt",MODE_APPEND);
//读文件 File file = new File("/data/data/cn.itcast.datasave/files/config.txt"); 3,shell下查看数据库 adb shell cd data/data/packagename/datebases/ sqlite3 dbname (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |