java icache_Java ICacheWordSubscriber類代碼示例
import info.guardianproject.cacheword.ICacheWordSubscriber; //導入依賴的package包/類
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mApp = (ImApp)getApplication();
mHandler = new MyHandler(this);
Intent intent = getIntent();
mDoLock = ACTION_LOCK_APP.equals(intent.getAction());
if (mDoLock) {
shutdownAndLock(this);
return;
} else if (Panic.isTriggerIntent(intent)) {
if (PanicResponder.receivedTriggerFromConnectedApp(this)) {
if (Preferences.uninstallApp()) {
// lock and delete first for rapid response, then uninstall
shutdownAndLock(this);
PanicResponder.deleteAllAppData(this);
Intent uninstall = new Intent(Intent.ACTION_DELETE);
uninstall.setData(Uri.parse("package:" + getPackageName()));
startActivity(uninstall);
} else if (Preferences.clearAppData()) {
// lock first for rapid response, then delete
shutdownAndLock(this);
PanicResponder.deleteAllAppData(this);
} else if (Preferences.lockApp()) {
shutdownAndLock(this);
}
// TODO add other responses here, paying attention to if/else order
} else if (PanicResponder.shouldUseDefaultResponseToTrigger(this)) {
if (Preferences.lockApp()) {
shutdownAndLock(this);
}
}
// this Intent should not trigger any more processing
finish();
return;
}
mSignInHelper = new SignInHelper(this, mHandler);
mDoSignIn = intent.getBooleanExtra(EXTRA_DO_SIGNIN, true);
AlarmManager alarmManager = (AlarmManager)getSystemService(ALARM_SERVICE);
mCacheWord = new CacheWordHandler(this, (ICacheWordSubscriber)this);
mCacheWord.connectToService();
// if we have an incoming contact, send it to the right place
String scheme = intent.getScheme();
if(TextUtils.equals(scheme, "xmpp"))
{
intent.setClass(this, AddContactActivity.class);
startActivity(intent);
finish();
return;
}
}
java icache_Java ICacheWordSubscriber類代碼示例相关推荐
- java uiautomation_Java UiAutomation類代碼示例
本文整理匯總了Java中android.app.UiAutomation類的典型用法代碼示例.如果您正苦於以下問題:Java UiAutomation類的具體用法?Java UiAutomation怎 ...
- java nifty_Java NiftyDialogBuilder類代碼示例
本文整理匯總了Java中com.gitonway.lee.niftymodaldialogeffects.NiftyDialogBuilder類的典型用法代碼示例.如果您正苦於以下問題:Java Ni ...
- java intfunction_Java IntFunction類代碼示例
本文整理匯總了Java中java.util.function.IntFunction類的典型用法代碼示例.如果您正苦於以下問題:Java IntFunction類的具體用法?Java IntFunct ...
- java sentence_Java Sentence類代碼示例
本文整理匯總了Java中aima.core.logic.propositional.parsing.ast.Sentence類的典型用法代碼示例.如果您正苦於以下問題:Java Sentence類的具 ...
- java scene_Java Scene類代碼示例
本文整理匯總了Java中com.sun.j3d.loaders.Scene類的典型用法代碼示例.如果您正苦於以下問題:Java Scene類的具體用法?Java Scene怎麽用?Java Scene ...
- java notifier_Java Notifier類代碼示例
本文整理匯總了Java中org.apache.maven.model.Notifier類的典型用法代碼示例.如果您正苦於以下問題:Java Notifier類的具體用法?Java Notifier怎麽 ...
- java bidi_Java Bidi類代碼示例
本文整理匯總了Java中java.text.Bidi類的典型用法代碼示例.如果您正苦於以下問題:Java Bidi類的具體用法?Java Bidi怎麽用?Java Bidi使用的例子?那麽恭喜您, 這 ...
- java linest_Java STLineSpacingRule類代碼示例
本文整理匯總了Java中org.docx4j.wml.STLineSpacingRule類的典型用法代碼示例.如果您正苦於以下問題:Java STLineSpacingRule類的具體用法?Java ...
- java datarow_Java DataRow類代碼示例
本文整理匯總了Java中org.apache.cayenne.DataRow類的典型用法代碼示例.如果您正苦於以下問題:Java DataRow類的具體用法?Java DataRow怎麽用?Java ...
最新文章
- Oracle 免费的数据库--Database 快捷版 11g 安装使用与SOD框架对Oracle的CodeFirst支持...
- OAuth2.0相关知识
- 模拟浏览器自动化测试工具Selenium之四cssSelector元素定位开发篇
- mysql 表中添加数据类型_MySQL数据表添加字段(三种方式)
- 使用存储过程创建分页
- Java打印车票主要学习Java的比较语句
- 3月19日 打卡
- 【JLOI2013】地形生成
- 'mysql_attr_use_buffered_query'_php中mysql操作的buffer知识
- 【属性对比】defer 与 async
- kettle优化抽取数据速度_Kettle性能优化
- tomcat部署项目启动采坑之UnknownHostException
- Lintcode---二叉树的最大深度
- 线性代数与矩阵论 定理 1.3.9 唯一析因定理
- 计算机中年级排名怎么操作,智学网年级排名查看方法规则介绍
- 查找——图文翔解RadixTree(基数树)
- oracle00312,ORA-00322 ORA-00312 恢复
- python 函数enumerate用法
- java怎么设置序号_Java 添加Word项目符号、编号列表
- 《你是我生命中最美的相遇》
热门文章
- html元素分类以及嵌套规则
- Struts国际化步骤
- RPA技术干货 | RPA防锁屏运行技巧
- svn文件重进更改服务器路径,svn 设置 服务器路径
- 解密春晚微信红包十亿级并发压力
- 阿里与腾讯人的区别,就是明教与武当的反差
- sublime text2如何连接FTP/SFTP——图文详细教程
- Vue的模板字符串${}用法
- PHP定时任务:ignore_user_abort+dowhile sleep+file_get_content crontab(php执行 curl请求) Swoole\Timer::tick
- 3g无线图传点到点模式与服务器模式比较,RTK网络模式分类及网络制式的选择