启动程序广播接收器LaunchAppReceiver
来源:互联网 发布:罗生门电影简介知乎 编辑:程序博客网 时间:2024/05/20 05:56
/* * Copyright (C) 2013 Peng fei Pan <sky@xiaopan.me> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */package me.xiaopan.android.content;import android.content.BroadcastReceiver;import android.content.Context;import android.content.Intent;/** * 启动程序广播接收器 */public class LaunchAppReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { context.startActivity(context.getPackageManager().getLaunchIntentForPackage(context.getPackageName())); }}
0 0
- 启动程序广播接收器LaunchAppReceiver
- 广播接收器
- 广播接收器
- Android中的广播接收器之电话快捷启动界面
- 在广播接收器中启动活动和弹出对话框
- 在广播接收器里启动活动的注意事项
- Android在广播接收器里启动活动和弹出对话框
- 在广播接收器中显示对话框失败,并退出程序
- BroadCastReceiver android 广播接收器
- 使用广播接收器
- BroadcastReceiver 广播接收器
- BroadcastReceiver(广播接收器)
- android 广播与 接收器
- BroadcastReceiver(广播接收器 )
- BroadcastReceive广播接收器:
- @EReceiver加强广播接收器
- Android 广播接收器BroadcastReceiver
- 广播接收器动态注册
- 锚标记
- 关于避免审查元素时,修改数据和提交数据,造成恶意审查修改的方法总结
- ES008-Elasticsearch+hbase整合
- git删除远程分支
- linux文件实时同步
- 启动程序广播接收器LaunchAppReceiver
- jquery操作复选框(checkbox)的12个小技巧总结
- mysqldump备份与还原数据操作
- php 字符串转时间
- Node是什么
- oracle 坏块的处理方法
- jquery $(document).ready() 与window.onload的区别
- Close_Wait现象产生的原因
- Android Binder设计与实现 - 实现篇