
使用技巧
文章平均质量分 57
老硕士
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
How to Get Source Code of a Linux Command on CentOS
1) Take the strace command for example, first, getwhere the command is in:[liqingxu@localhoststrace-4.5.19]$ which strace/usr/bin/strace2) Then, get which package this command is in.[l原创 2014-11-14 17:11:38 · 550 阅读 · 0 评论 -
如何成功解锁红米1S的bootloader?
1) 打开手机的“USB调试”选项,用USB连接手机。2) 用下面的命令启动手机到fastmode模式。adb shell reboot bootloader3) 然后,手机左下角会显示很小的字“=>FASTBOOT mode…”,这就表明手机已经进入到Fastboot模式了。4) 启动一个命令行窗口,运行下面的命令unlock the bootlo原创 2015-07-08 10:11:03 · 4907 阅读 · 0 评论 -
JDK/ADT Android开发环境搭建 (二)
1.1 ADT开发环境配置及Hello AndroidWindow| Android SDK Manager除了已经被选择的项目外,再选择下面的项目。然后,单击“Install Packages”按钮。 然后,API 20创建出的AVD有些问题,需要安装下面的API 19的各种包。请参考http:/原创 2015-05-26 14:35:24 · 849 阅读 · 0 评论 -
Android: 如何手工生成R.java文件?
Eclipse有时候不能生成R.java文件,非常烦人。这时候,我们可以手工生成它。 命令为:aapt package --non-constant-id -f -m -M -S -I -J<abs_path_to_dir_that_should_contain_gen_R_java) --generate-depe原创 2015-06-23 15:12:20 · 1142 阅读 · 0 评论 -
如何使用MAT分析Android程序的内存问题
Please refer to https://developer.android.com/tools/debugging/debugging-memory.html,http://android-developers.blogspot.com/2011/03/memory-analysis-for-android.html.In DDMS, got an原创 2015-05-08 15:12:08 · 872 阅读 · 0 评论 -
Memory Analysis for Android Applications
Copied fromhttp://android-developers.blogspot.com/2011/03/memory-analysis-for-android.html.Memory Analysis for Android Applications [This post is by Patrick Dubroy, an An转载 2015-05-08 14:04:20 · 516 阅读 · 0 评论 -
Android Development: JavaScript Bridge Example – Fully Explained!
Copied from http://blog.objectgraph.com/index.php/2012/03/16/android-development-javascript-bridge-example-fully-explained/.Android Development: JavaScript Bridge Example – Fully Explained!转载 2015-03-25 16:35:37 · 580 阅读 · 0 评论 -
How to install Busybox on a simulator?
1) Download Busybox image from http://www.busybox.net/downloads/binaries/1.21.1/2) Because the /system partition is read-only by default.#remounts the /system and /vendor (if present原创 2015-01-05 15:25:21 · 942 阅读 · 0 评论 -
How to Get an Android Device Image?
1) Make /mnt/sdcard writablemount -o rw,remount /sdcardchmod 777 /mnt/sdcard2) Get mkfs.yaffs2 from http://code.google.com/p/android-group-korea/downloads/detail?name=mkfs.yaffs2.arm.原创 2015-01-21 15:37:45 · 810 阅读 · 0 评论 -
Android: 如何得到电话号码、IMEI、IMSI、SIM卡序列号
有android.permission.READ_PHONE_STATE权限的Android App可以获得下列信息:· IMEI number (a.k.a.Device ID)· Phone Number· Sim Serial Number· Subscriber ID (IMSI)代码:TelephonyManagertelephonyMana原创 2015-01-19 16:50:09 · 2019 阅读 · 1 评论 -
Android Studio and NDK Integration on Windows Step by Step with a Hello JNI example
Please refer to https://www.youtube.com/watch?v=0fEtrekNcOo. First, download NDK and install it. Then, launch Android to create a Hello World app. Then,1) Open the Activity class, then add原创 2014-12-29 17:03:57 · 598 阅读 · 0 评论 -
How to Build and Run Android NDK Examples?
Take the native-activity sample for example,1) Cd C:\Users\Qingxu_Li\AppData\Local\Android\android-ndk-r10d\samples\native-activity2) ndk-build3) Run the command below to ge原创 2015-01-13 10:08:52 · 788 阅读 · 0 评论 -
Unit Testing with Android Studio
Copied from http://rexstjohn.com/unit-testing-with-android-studio/. This article covers the basics of using Android Unit Tests with Android Studio.Enabling Unit Testing In Android StudioMany转载 2015-01-12 13:40:02 · 587 阅读 · 0 评论 -
如何成功 root 我的红米1s手机?
1. 下载并运行"Root大师" PC版2. 运行"Root大师"以root我的红米1s手机3. adb shell4. su5. 运行下列命令使 /system分区可写.root@HM2014501:/ #mount -o rw,remount -t yaffs2 /systemmount -o rw,remount -t yaffs2/systemroot@HM2原创 2015-01-30 14:27:10 · 2886 阅读 · 0 评论 -
How to get Linux Kernel Source Code of Android?
Maybe you know, Linux kernel code is not in AOSP(Android Open Source Project) by default. So, how to get the Linux kernel code of one Android version? Please refer to https://source.android.c原创 2015-01-08 12:33:11 · 1064 阅读 · 0 评论 -
How to extract .img files built from AOSP(Android Open Source Project)?
1.1How to extract .image files built from AOSP(Android Open Source Project)?For example, let’s uncompress ramdisk.img under ~/WORKING_DIRECTORY/out/target/product/generic/ramdisk.img.1) $cd原创 2014-12-17 17:49:25 · 694 阅读 · 0 评论 -
Preserving the state of an Android WebView on screen orientation change
Copied from http://www.devahead.com/blog/2012/01/preserving-the-state-of-an-android-webview-on-screen-orientation-change/ Preserving the state of an Android WebView on screen orientation change转载 2015-01-07 13:37:00 · 802 阅读 · 0 评论 -
Handling Configuration Changes with Fragments
Copied from http://www.androiddesignpatterns.com/2013/04/retaining-objects-across-config-changes.html Handling Configuration Changes with FragmentsPosted Apr 29, 2013by Alex Lockwood转载 2015-01-07 13:34:50 · 391 阅读 · 0 评论 -
Windows 7 OS,如何Debug NDK Hello-JNI Sample程序
首先,需要明确的是不需要CygWin。在ADT中安装NDK插件Help | Install New Software …菜单,然后从http://dl-ssl.google.com/android/eclipse/安装AndroidNative Development Tools。 然后,Window | Preferen原创 2015-08-03 15:53:59 · 946 阅读 · 0 评论