使用SDK创建一个App的时候,基本都会看到这段代码: intent-filter 包括的两项内容分别代表的含义: 1. 代表该Activity是App启动后,调用的第一个Activity; 1. 代表在启动列表显示,就是说手机屏幕上App列表里,你能看到,能用手指点击启动;2...
分类:
移动开发 时间:
2014-07-16 17:49:59
阅读次数:
223
Activity的4种状态:活动的:当一个Activity在栈顶,它是可视的、有焦点、可接受用户输入的。Android试图尽最大可能保持它活动状态,杀死其它Activity来确保当前活动Activity有足够的资源可使用。当另外一个Activity被激活,这个将会被暂停。暂停:在很多情况下,你的Ac...
分类:
其他好文 时间:
2014-07-16 15:24:13
阅读次数:
211
1.Intent是什么Intent是视图的意思,它是Android应用内不同组件之间通信的载体。当Android运行时需要连接不同的组件时,通常就需要借助于Intent来实现。Intent可以启动应用中另一个Activity,也可以启动一个Service组件,还可以发送一条广播消息来触发系统中的Br...
分类:
其他好文 时间:
2014-07-14 23:26:12
阅读次数:
573
使用关键点:ReflectionClass
class Rbac extends MY_Controller
{
public function index()
{
$arr = glob( __DIR__ .DIRECTORY_SEPARATOR. '*.php');
// $arr = glob(dirname(__DIR__) . ...
分类:
Web程序 时间:
2014-07-14 18:36:44
阅读次数:
307
在测试android调用其他应用的activity时,提示找不到对于的activity,经过检查发现在intent-filter的<category>中忘了写<categoryandroid:name="android.intent.category.DEFAULT"/>,自己定义的filter一定要写上这句,这是android默认添加的要求。
分类:
移动开发 时间:
2014-07-14 16:30:02
阅读次数:
223
增加快捷方式和删除快捷方式:
private void addShortcut() {
Intent shortcut = new Intent(
"com.android.launcher.action.INSTALL_SHORTCUT");
// 快捷方式的名称
shortcut.putExtra(Intent...
分类:
移动开发 时间:
2014-07-14 13:10:41
阅读次数:
258
最近在做项目出现了下面的问题W/ActivityManager(300): Permission Denial: starting Intent { cmp=com.android.settings/.MovieViewProxySet } from ProcessRecord{4057a828 1...
分类:
移动开发 时间:
2014-07-13 23:47:50
阅读次数:
299
今天在编写蜂鸣器的驱动程序时,makefile文件是这样:CROSS=arm-linux-all: beepbeep: beep.c$(CROSS)gcc -o beep beep.c$(CROSS)strip beepclean:@rm -vf beep *.o *~结果make的时候一直出错,错...
分类:
其他好文 时间:
2014-07-13 21:38:00
阅读次数:
242
http://blog.csdn.net/xyz_lmn/article/details/16856843采用Intent隐式调用Activity的方法,主要使用Intent.ACTION_SEND和Intent.createChooser();调用Android系统的分享接口。系统会过滤手机上的具...
分类:
移动开发 时间:
2014-07-13 20:55:24
阅读次数:
280
ComponentName component = new ComponentName("com.android.settings","com.android.settings.wifi.WifiSettings"); Intent intent = new Intent(); intent.set...
分类:
移动开发 时间:
2014-07-12 14:41:10
阅读次数:
279