首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

android编程中的琐事知识点汇总(5)

2012-08-25 
android编程中的琐碎知识点汇总(5)1.启动程序无需动画?3.文字中间加横线效果?6.android中的WebView支持多

android编程中的琐碎知识点汇总(5)

1.启动程序无需动画

?

3.文字中间加横线效果

?

6.android中的WebView支持多点触控:

?在manifest文件的application标签中添加receiver标签,并且android:name指定一个BroadcastReceiver,通过过滤器实现过滤开机的完成那个广播。

package com.jftt.bootstart;import android.content.BroadcastReceiver;import android.content.Context;import android.content.Intent;public class BootBroadcastReceiver extends BroadcastReceiver {static final String ACTION = "android.intent.action.BOOT_COMPLETED";@Overridepublic void onReceive(Context context, Intent intent) {if (intent.getAction().equals(ACTION)) {Intent sayHelloIntent = new Intent(context, BootStart.class);//指定要开启的activity页面sayHelloIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);context.startActivity(sayHelloIntent);}}}

?

热点排行