码迷,mamicode.com
首页 >  
搜索关键字:logcat    ( 648个结果
【原创】LogCat信息演示Activity生命周期
界面如下:注意:这是在手机、竖屏状态下!(一)1个Activity /** * 7个方法 * 测试1个Activity的生命周期 * * LogCat: * 1. * 启动之后:依次调用下面3个方法 * onCreate * onStart * onResume * * 按...
分类:其他好文   时间:2015-09-26 17:06:26    阅读次数:121
(org.openqa.selenium.WebDriverException: Unable to launch the app: Error: Trying to start logcat capture but it's already started! )错误解决办法
新增:capabilities.setCapability("autoLaunch",false);将setup中的:driver = new AndroidDriver(new URL("http://127.0.0.1:" + port + "/wd/hub"), capabilities);d...
分类:移动开发   时间:2015-09-21 17:29:02    阅读次数:2100
抓日志
adb shell monkey -p com.zte.im -v 5000 > d:1.txt转包:adb logcat -s 0123456789 *:e > d:1.txtadb -s R4AQ4TNV75BUKBNJ logcat *:w > 3.txt R4AQ4TNV75BUKBNJ 指...
分类:其他好文   时间:2015-09-18 18:17:07    阅读次数:117
Device disconnected
问题:android 调试的时候,Logcat没有任何输出,提示Device disconnected解决:Devices -- Reset adb
分类:其他好文   时间:2015-09-17 10:08:35    阅读次数:171
华为智能机做测试的时候,Logcat不输出解决方法
1.进入拨号界面输入*#*#2846579#*#*即可进入直接上图
分类:其他好文   时间:2015-09-11 06:53:30    阅读次数:143
android中Logcat的TAG过滤
如果代码中有这样的log: Log.e("Foo", "error in foo"); Log.d("Foo", "debug in foo"); 打开终端: 如果logcat的命令如下: adb logcat -s Foo:D 则打印:error in foo debug in foo 如果log...
分类:移动开发   时间:2015-09-09 19:13:54    阅读次数:154
NDK开发之日志打印
要在NDK中打印日志,只需要以下三步:一、在Android.mk中添加以下内容:LOCAL_LDLIBS := -lm -llog注意,这行代码要添加在include $(CLEAR_VARS)之后,否则没有效果。二、引用头文件#include 三、定义变量//定义TAG之后,我们可以在LogCat通过TAG过滤出NDK打印的日志 #define TAG "JNITES...
分类:其他好文   时间:2015-09-05 11:14:06    阅读次数:193
[转]用Android自带的signapk.jar 签名应用程序
在 android 的API中有提供 SystemClock.setCurrentTimeMillis()函数来修改系统时间,可惜无论你怎么调用这个函数都是没用的,无论模拟器还是真 机,在logcat中总会得到"Unable to open alarm driver: Permission deni...
分类:移动开发   时间:2015-09-02 10:39:24    阅读次数:426
常见错误之java.lang.IllegalStateException: The application’s PagerAdapter changed the adapter’s cont。。。
如果在logcat日志中出现以下错误: java.lang.IllegalStateException: The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 0,...
分类:移动开发   时间:2015-08-30 14:24:48    阅读次数:557
Android 安装错误汇总
1、Installation error: INSTALL_FAILED_VERSION_DOWNGRADE       Please check logcat output for more details.       Launch canceled!      原因:            因为android:versionCode的原因,我们手机里面安装了同名的App且andr...
分类:移动开发   时间:2015-08-28 15:35:45    阅读次数:141
648条   上一页 1 ... 32 33 34 35 36 ... 65 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!