码迷,mamicode.com
首页 >  
搜索关键字:am    ( 1985个结果
my work
My undergraduate major is Management, but my master major is Competer, from to arts student to science student. So I have dual character. I am not onl...
分类:其他好文   时间:2014-11-27 12:17:50    阅读次数:96
WiFi(网络)调试Android手机
adb本身提供了网络调试的功能,所以,在不能直接用USB连上Android手机的情况下,可以使用WiFi连接adbd进行调试,本文记录了使用WiFi连接adb并进行调试的具体步骤。使用WiFi连上adb和USB连上adb没有任何不同,可以正常使用adb shell, adb logcat, adb am,adb reboot等,使用Eclipse单步调试App也没有任何问题。没有ROOT的Android手机也可以使用,唯一的要求是手机上的adbd启用了网络调试功能,是不是邪恶感顿生?...
分类:移动开发   时间:2014-11-25 16:39:12    阅读次数:210
toastmasters(November 20, 2014)
November 20, 2014        19:00~21:00        Feishang Cafe 'Hi everyone. I am Tom, and I am the Timer tonight, to help you finish your speech on time...' Yeah, I was the Timer tonight. I had p...
分类:其他好文   时间:2014-11-24 17:15:51    阅读次数:187
android系统进程手机内存工具类
public class TaskUtils { /** * 获取正在运行的进程的个数 * * @param context * @return */ public static int getRunningProcessCount(Context context) { // 得到系统的任务管理器. ActivityManager am = (ActivityM...
分类:移动开发   时间:2014-11-23 13:14:02    阅读次数:195
android判断服务是否是运行状态
/** * 判断服务是否处于运行状态. * @param servicename * @param context * @return */ public static boolean isServiceRunning(String servicename,Context context){ ActivityManager am = (ActivityManager) c...
分类:移动开发   时间:2014-11-23 13:13:12    阅读次数:151
关于调试程序接收通过adb发送带有参数的广播问题
一句话,如果你检查完格式没有错:关于通过adb启动Activity、activity、service以及发送broadcast的命令am broadcast -a myAction --es city "深圳"//通过如下代码获取intent内容Bundle bundle=intent.getExt...
分类:数据库   时间:2014-11-23 00:40:48    阅读次数:951
android退出应用时候清除数据
退出应用的时候调用下面方法,就可以清楚数据了。 +        ActivityManager am = (ActivityManager)getSystemService(Context.ACTIVITY_SERVICE); +        boolean res = am.clearApplicationUserData(); +        if (!res) { +     ...
分类:移动开发   时间:2014-11-22 12:07:44    阅读次数:176
==与equal()的区别
在看区别之前,首先来看下以下代码:public class TestEqual { /** * @param args * I am not responsible of this code. * They made me write it, against my...
分类:其他好文   时间:2014-11-22 12:00:39    阅读次数:141
Routing with restify and socket.io in node
I have a node app which routes the request based on the url using restfy. Now in want to bring socket into picture. But app doesnot redirect to the function when when socket.io is used. I am using ...
分类:其他好文   时间:2014-11-22 07:08:20    阅读次数:240
js URL
对于这样一个URLhttp://levi.cg.am/?p=1369#imhere我们可以用javascript获得其中的各个部分 1,window.location.href 整个URl字符串(在浏览器中就是完整的地址栏) 本例返回值:http://levi.cg.am/?p=13692,wind...
分类:Web程序   时间:2014-11-21 16:07:53    阅读次数:150
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!