import android.content.Context; import android.content.Intent; import android.net.Uri; public class BrowserUtils { /** * 访问网站 */ public static void on... ...
分类:
其他好文 时间:
2017-02-23 19:47:50
阅读次数:
329
FLAG_ACTIVITY_NEW_TASK 简而言之,跳转到的activity根据情况,可能压在一个新建的栈中。 如果设置,这个Activity会成为历史stack中一个新Task的开始。一个Task(从启动它的Activity到下一个Task中的 Activity)定义了用户可以迁移的Activ ...
分类:
其他好文 时间:
2017-02-22 13:24:14
阅读次数:
409
目前测启动时间用得较多的方法: 1.am start -W 只获取activity的启动时间 -W:等目标Activity启动后才返回 -n:用于设置Intent的Component 2.高速相机 以真实的用户体验去获取应用的启动时间 第一种可能得不到我们想要的。 第二种过于依赖硬件设备 冷启动:这 ...
分类:
其他好文 时间:
2017-02-21 01:01:12
阅读次数:
133
Android赋予Service比处于非活动状态的Activity更高的优先级,当系统请求资源时她们被终止的可能性更小。如果在运行时过早地终止了一个已经启动的Service,只要有足够的资源可用,则运行时会重新启动它。为了应对一些终止Service会显著影响用户体验的极端情况(如音乐播放器),必要时 ...
分类:
移动开发 时间:
2017-02-20 22:39:45
阅读次数:
213
package com.example.calling; import java.io.IOException; import android.app.Service; import android.content.Context; import android.content.Intent; im... ...
分类:
其他好文 时间:
2017-02-20 21:29:27
阅读次数:
159
package com.example.start; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public class Start... ...
分类:
其他好文 时间:
2017-02-19 17:03:29
阅读次数:
139
是一个最终的接收者 package com.example.ip; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public clas... ...
分类:
其他好文 时间:
2017-02-19 16:50:44
阅读次数:
163
package com.example.calling; import android.app.Service; import android.content.Context; import android.content.Intent; import android.os.IBinder; imp... ...
分类:
其他好文 时间:
2017-02-19 16:49:06
阅读次数:
155
package com.example.phonenote; import android.app.Activity;import android.content.Intent;import android.database.sqlite.SQLiteDatabase;import android. ...
分类:
其他好文 时间:
2017-02-18 21:36:00
阅读次数:
223
研究代码从:AndroidManifest.xml、自定义的Application.java开始。 Android系统启动时,系统需要一个Home应用程序来负责将这些应用程序展示出来;也就是该应用的目的在于:Android系统启动后,第一个启动的应用程序。在Android系统中,这个默认的Home应 ...
分类:
移动开发 时间:
2017-02-13 23:20:50
阅读次数:
462