<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.pjq.me/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>Welcome to Jianqing&#039;s Wiki - android</title>
        <description></description>
        <link>https://wiki.pjq.me/</link>
        <lastBuildDate>Thu, 30 Apr 2026 12:35:46 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://wiki.pjq.me/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
            <title>Welcome to Jianqing&#039;s Wiki</title>
            <link>https://wiki.pjq.me/</link>
        </image>
        <item>
            <title>adb backup/restore/run-as</title>
            <link>https://wiki.pjq.me/doku.php?id=android:adb-backup-restore&amp;rev=1472007193&amp;do=diff</link>
            <description>adb backup/restore/run-as

adb backup

	*  adb shell
	*  adb backup -f ~/data.ab -noapk app.package.name
	*  dd if=data.ab bs=1 skip=24 | python -c “import zlib,sys;sys.stdout.write(zlib.decompress(sys.stdin.read()))” | tar -xvf -

adb run-as

	*</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 24 Aug 2016 02:53:13 +0000</pubDate>
        </item>
        <item>
            <title>在Android上运行可执行文件bat</title>
            <link>https://wiki.pjq.me/doku.php?id=android:adbrun&amp;rev=1462424822&amp;do=diff</link>
            <description>在Android上运行可执行文件bat

这个bat是用来push可执行文件到Android device上，然后执行这个文件



@echo off

if &quot;%1&quot; == &quot;&quot; goto noinput
if not EXIST %1 goto nofile

:run
echo adb push %1 /data
adb push %1 /data
echo adb shell chmod 777 /data/%1
adb shell chmod 777 /data/%1
echo adb shell ./data/%1
adb shell ./data/%1
goto exit

:noinput
echo Usage:
echo       adbrun binfile
goto exit

:nofile
echo The file:%1 doesn&#039;t exist,please check it and try again!
goto exit

:exit…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>Android Build System</title>
            <link>https://wiki.pjq.me/doku.php?id=android:android-build-system&amp;rev=1462424822&amp;do=diff</link>
            <description>Android Build System

网上找了一些关于 Android编译系统的文章：

	*  Android Building System 分析 :&lt;http://heaven.branda.to/~thinker/GinGin_CGI.py/show_id_doc/393&gt;

中文的，比较全，推荐看看。

	*  Android Build System：&lt;http://blog.chinaunix.net/u/8059/showart_1420446.html&gt;

英文的，时间比较早，看起来是设计Android之初写的。</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>Android JNI多线程相关</title>
            <link>https://wiki.pjq.me/doku.php?id=android:android-jni&amp;rev=1462424822&amp;do=diff</link>
            <description>Android JNI多线程相关

	*  &lt;http://android.wooyd.org/JNIExample/files/JNIExample.pdf&gt;
	*  &lt;http://groups.google.com/group/android-ndk/browse_thread/thread/da092bd665ca9ff1&gt;

Android JNI相关

收集一些Android JNI的使用方法。

JNA



JNA provides Java programs easy access to native shared libraries without writing anything but Java code - no JNI or native code is required. This functionality is comparable to Windows&#039; Platform/Invoke and Python&#039;s ctypes.

JNA allows you to call directly into native functions using n…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>Android Methods Count Exceed 65k</title>
            <link>https://wiki.pjq.me/doku.php?id=android:android-methods-count&amp;rev=1462424822&amp;do=diff</link>
            <description>Android Methods Count Exceed 65k

	*  &lt;https://github.com/mixpanel/mixpanel-android/issues/212&gt;
	*  &lt;https://github.com/mihaip/dex-method-counts&gt;
	*  &lt;https://www.contentful.com/blog/2014/10/30/android-and-the-dex-64k-methods-limit/&gt;
	*  &lt;https://developer.android.com/tools/building/multidex.html&gt;
	*  &lt;https://sites.google.com/site/io/dalvik-vm-internals&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>Android Mirror Tools</title>
            <link>https://wiki.pjq.me/doku.php?id=android:android-mirror-tools&amp;rev=1462424822&amp;do=diff</link>
            <description>Android Mirror Tools

I am always trying to find a tool to mirror the android device screen to the TV or Laptop, so we can use the MHL/HDMI/Slimport cable.
But also it is a litter bit complicate for using the cables.If you have other solutions, please let me know, thanks.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>Android Mirrors</title>
            <link>https://wiki.pjq.me/doku.php?id=android:android-mirrors&amp;rev=1462424822&amp;do=diff</link>
            <description>Android Mirrors

	*  &lt;http://www.cnblogs.com/huangjacky/p/4077982.html&gt;
	*  &lt;http://mirrors.neusoft.edu.cn/android/repository/&gt;
	*  &lt;http://blog.csdn.net/hylaking/article/details/41143661&gt;
	*  &lt;http://unmi.cc/android-mirror-sites-collections/&gt;
	*  &lt;https://android.git.linaro.org/gitweb&gt;
	*  &lt;http://wear.techbrood.com/sdk/installing/index.html?pkg=studio&gt;

清华大学Android 镜像使用帮助

	*  &lt;https://mirrors.tuna.tsinghua.edu.cn/help/#AOSP&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>Android.mk文件详解</title>
            <link>https://wiki.pjq.me/doku.php?id=android:android-mk&amp;rev=1462424822&amp;do=diff</link>
            <description>Android.mk文件详解

安装NDK后，在docs/ANDROID-MK.TXT里详解了Android.mk的语法。

NDK-provided function macros:

这里定义了一些宏命令，使用方法：


$(call &lt;function&gt;)



	*  my-dir

返回当前Android.mk目录路径

	*</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>Android private lib center</title>
            <link>https://wiki.pjq.me/doku.php?id=android:android-private-lib-center&amp;rev=1472027065&amp;do=diff</link>
            <description>Android private lib center

	*  jfrog &lt;https://www.jfrog.com/artifactory/&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 24 Aug 2016 08:24:25 +0000</pubDate>
        </item>
        <item>
            <title>Android代理设置</title>
            <link>https://wiki.pjq.me/doku.php?id=android:android-proxy-setting&amp;rev=1462424822&amp;do=diff</link>
            <description>Android代理设置

Android一直就没找到一个有效的全局代理的方法,目前仍然没有.

看看这个Issue:&lt;http://code.google.com/p/android/issues/detail?id=1273&gt;

有大量的人反应这个问题,但Google好像无动于衷.

目前CM6.0上已经支持Proxy Setting,但我刚把Rom刷成1.6的了,所以也用不了了.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title></title>
            <link>https://wiki.pjq.me/doku.php?id=android:android-sdk-download-url&amp;rev=1462424822&amp;do=diff</link>
            <description>最新的SDK下载地址，但下载下来的只是最新的一部分，大小只有16M：
http://dl.google.com/android/android-sdk_r05-linux_86.tgz

如果要完全安装，最简单的方法就是直接使用Eclipse 的AVD管理器直接下载。</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>Android SDK Update</title>
            <link>https://wiki.pjq.me/doku.php?id=android:android-sdk-update&amp;rev=1462424822&amp;do=diff</link>
            <description>Android SDK Update
android list sdk
android update sdk --no-ui --filter  &quot;23,tools,platform-tool,extras&quot;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>Android Studio Tips/Shortcuts</title>
            <link>https://wiki.pjq.me/doku.php?id=android:android-studio-tips&amp;rev=1524631949&amp;do=diff</link>
            <description>Android Studio Tips/Shortcuts

Android Studio Shortcuts

Reference

	*  &lt;http://www.developerphil.com/android-studio-tips-tricks-moving-around/&gt;
	*  &lt;http://blog.csdn.net/growth58/article/details/46764575&gt;

Shortcuts

	*  Find Action: cmd+shift+a
	*  Open Class: cmd+o
	*  Search Everywhere: shift twice
	*  Open File: cmd+shift+o
	*  Open Symbol: cmd+alt+o
	*  Find usage: alt+F7</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 25 Apr 2018 04:52:29 +0000</pubDate>
        </item>
        <item>
            <title>Android-X86教程</title>
            <link>https://wiki.pjq.me/doku.php?id=android:android-x86&amp;rev=1462424822&amp;do=diff</link>
            <description>Android-X86教程

安装

直接step by step:&lt;http://www.javaworld.com.tw/jute/post/view?bid=26&amp;id=296516&gt;

修改分辨率

参考:&lt;http://hi.baidu.com/glaivelee/blog/item/9dc7ae8f37a8f1e0503d9240.html&gt;
C:\Documents and Settings\pengjianqing\VirtualBox VMs\AndroidX86&gt;gvim AndroidX86.vbox
添加下面分辨率配置,操作时需要把VirtualBox全部关毕,否则无效 
  &lt;ExtraDataItem name=&quot;CustomVideoMode1&quot; value=&quot;480x800x16&quot;/&gt;
   &lt;ExtraDataItem name=&quot;CustomVideoMode2&quot; value=&quot;320x480x16&quot;/&gt;
   &lt;ExtraDataItem name=&quot;CustomVideoMode3&quot; value=&quot;800x480x16&quot;/&gt;…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>Android Task Screenshot with Command</title>
            <link>https://wiki.pjq.me/doku.php?id=android:android_take_screenshot&amp;rev=1464848517&amp;do=diff</link>
            <description>Android Task Screenshot with Command

From: &lt;http://linuxtoy.org/archives/one-line-to-capture-screenshot-on-android.html&gt;

General you can press both the volume(-) and power on button to take a screenshot,but for a developer you can use a command to do it in a awesome way.

On Linux:
adb shell screencap -p | sed &#039;s/\r$//&#039; &gt; screen.png</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 02 Jun 2016 06:21:57 +0000</pubDate>
        </item>
        <item>
            <title>Android Automation Test</title>
            <link>https://wiki.pjq.me/doku.php?id=android:android_test&amp;rev=1462424822&amp;do=diff</link>
            <description>Android Automation Test

mockito

Reference:

	*  mockito
	*  &lt;https://code.google.com/p/mockito/&gt;

cucumber

&lt;https://github.com/cucumber/cucumber&gt;


Cucumber is a tool for running automated tests written in plain language. Because they&#039;re written in plain language, they can be read by anyone on your team. Because they can be read by anyone, you can use them to help improve communication, collaboration and trust on your team.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title></title>
            <link>https://wiki.pjq.me/doku.php?id=android:android%E4%B8%8A%E5%AE%89%E8%A3%85%E5%90%AF%E7%94%A8openvpn%E8%84%9A%E6%9C%AC&amp;rev=1462424822&amp;do=diff</link>
            <description>下载openvpn static 

直接下载static的openvpn,这样就不需要单独再安装so文件了:

&lt;http://github.com/downloads/fries/android-external-openvpn/openvpn-static-2.1.1.bz2&gt;

新增目录如下:



F:\openvpn&gt;ls -lR
.:
鎬昏 1407
drwx------+ 2 Percy.Peng ????????      0 Mar 31 12:48 openvpn
-rwx------+ 1 Percy.Peng ???????? 907764 Mar 31 10:59 openvpn-static
-rwx------+ 1 Percy.Peng ???????? 529519 Mar 31 10:56 openvpn-static-2.1.1.bz2
-rwx------+ 1 Percy.Peng ????????   1090 Mar 31 11:22 startopenvpn.sh

./openvpn:
鎬昏 12
-rwx------+ 1 Pe…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title></title>
            <link>https://wiki.pjq.me/doku.php?id=android:android%E7%94%9F%E6%88%90%E7%9A%84%E4%B8%B4%E6%97%B6%E6%96%87%E4%BB%B6%E7%9B%AE%E5%BD%95&amp;rev=1462424822&amp;do=diff</link>
            <description>编译Android工程时,packages/apps下面的AP生成的目录在
out\target\common\obj\APPS
如果想全新单独编译一个AP,需要把下面对应的目录删除.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>Android Animation</title>
            <link>https://wiki.pjq.me/doku.php?id=android:animation&amp;rev=1462424822&amp;do=diff</link>
            <description>Android Animation

Animation

	*  Android API Animation:&lt;http://developer.android.com/reference/android/view/animation/Animation.html&gt;
	*  Android Animation Guide:&lt;http://developer.android.com/guide/topics/graphics/animation.html&gt;

Camera

	*  Android API Camera:&lt;http://developer.android.com/reference/android/graphics/Camera.html&gt;

Matrix

	*  Android画图之Matrix(一):&lt;http://chroya.iteye.com/blog/712078&gt;
	*  Android画图之Matrix(二):&lt;http://chroya.iteye.com/blog/713869&gt;
	*  Android API Matrix:&lt;http://dev…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>Ant引入第三方jar遇到的问题</title>
            <link>https://wiki.pjq.me/doku.php?id=android:ant-build-issues&amp;rev=1462424822&amp;do=diff</link>
            <description>Ant引入第三方jar遇到的问题

最近在Android工程中引入了umeng统计，在Eclipse中一切正常，但是用ant编译时遇到了一些问题：

可以正常编译过，但运行时会遇到“ClassNotFound Exception”,如果把它去掉，工程就根本编译不过，很奇怪的问题。</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>Android APK backup</title>
            <link>https://wiki.pjq.me/doku.php?id=android:apk-backup&amp;rev=1536586902&amp;do=diff</link>
            <description>Android APK backup

Locate the package name
adb shell pm list packages
Locate the apk path
adb shell pm path com.google.android.youtube

adb pull out the APK file
adb  pull  /data/app/com.google.android.youtube-1/base.apk .
If it says “xxx does not exist</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 10 Sep 2018 13:41:42 +0000</pubDate>
        </item>
        <item>
            <title></title>
            <link>https://wiki.pjq.me/doku.php?id=android:autoinstallapks&amp;rev=1462424822&amp;do=diff</link>
            <description>安装目录下所有APK


#!/bin/sh

for i in `ls *.apk`:
do
	echo &quot;adb install ${i} &quot;
	adb install ${i}
done



加入一定的关键字过滤,只安装名称中包含有某些关键字的APK


#!/bin/sh


for i in `ls *android.core*.apk`:
do
	echo &quot;adb install ${i} &quot;
	adb install ${i}
done</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>如何使用ant编译Android工程</title>
            <link>https://wiki.pjq.me/doku.php?id=android:build-with-ant&amp;rev=1462424822&amp;do=diff</link>
            <description>如何使用ant编译Android工程

很早就知道Android支持命令行方式创建和编译工程，但大多数情况下我们都是直接使用Eclipse+ADT的方式来处理的。

最近做的项目就是使用ant来编译的，之前也没研究过ant怎么样，所以一直不知道怎么用ant来编译Android工程。</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>Android Captive Server/generate_204</title>
            <link>https://wiki.pjq.me/doku.php?id=android:captive-server&amp;rev=1479791970&amp;do=diff</link>
            <description>Android Captive Server/generate_204

The new one
adb shell &quot;settings put global captive_portal_server captive.v2ex.co&quot;
The old doesn&#039;t work now
adb shell &quot;settings put global captive_portal_server www.v2ex.com&quot;

Refer

	*  &lt;https://www.v2ex.com/t/303889&gt;
	*  &lt;https://www.v2ex.com/t/189687&gt;
	*  &lt;http://www.v2ex.com/generate_204&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 22 Nov 2016 05:19:30 +0000</pubDate>
        </item>
        <item>
            <title>编译CM for G1</title>
            <link>https://wiki.pjq.me/doku.php?id=android:compile-cm-for-dream&amp;rev=1462424822&amp;do=diff</link>
            <description>编译CM for G1

	*  &lt;http://wiki.cyanogenmod.com/index.php?title=Compile_for_dream&gt;
	*  &lt;http://wiki.cyanogenmod.com/index.php?title=Compile_cm6_for_dream&gt;

Issues

extract-files.sh时有几个文件找不到，刚开始以为没什么问题，但到了make -j1 otapackage最后打包的时候，提示没有这些文件出错了，
幸好我用slocate搜索了一下，在我电脑里其它Rom里面有这些文件。</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>Debug certificate expired</title>
            <link>https://wiki.pjq.me/doku.php?id=android:debug-certificate-expired&amp;rev=1462424822&amp;do=diff</link>
            <description>Debug certificate expired

启动Android工程,看看时间，整整一个月没有在Gentoo下用Eclipse开发Android了。


  Description	Resource	Path	Location	Type
  Error generating final archive: Debug Certificate expired on 11-3-4 下午10:57	MyDownload		Unknown	Android Packaging     Problem</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>如何在Android手机上删除路由表</title>
            <link>https://wiki.pjq.me/doku.php?id=android:delvpnroutetable&amp;rev=1462424822&amp;do=diff</link>
            <description>如何在Android手机上删除路由表

我在G1上用OpenVPN连上过VPN之后，那个路由信息一直保存在系统中，就算OpenVPN断开了，那些路由信息仍然存在。

这导致我再开GPRS上网的时候上不了网，除非重启手机。</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>Eclipse Autocomplete</title>
            <link>https://wiki.pjq.me/doku.php?id=android:eclipse-autocomplete&amp;rev=1462424822&amp;do=diff</link>
            <description>Eclipse Autocomplete

The autocomplete doesn&#039;t work,see this solutions:&lt;http://stackoverflow.com/questions/5916026/autocomplete-has-stopped-working-with-android-sdk&gt;

In Eclipse go to

Window -&gt; Preferences -&gt; Java -&gt; Editor -&gt; Content Assist -&gt; Advanced

And check the boxes labeled “Java Proposals” and hit Apply.

Replace Ctrl with the Apple key on Mac.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>打开Android C文件中的LOG</title>
            <link>https://wiki.pjq.me/doku.php?id=android:enable-log&amp;rev=1462424822&amp;do=diff</link>
            <description>打开Android C文件中的LOG

可以一次打开LOGV，LOGI，LOGD，也可以分别打开：


#undef NDEBUG       //打开LOGV/LOGI/LOGD
#define LOG_NDEBUG   0  //打开LOGV
#define LOG_NIDEBUG  0  //打开LOGI
#define LOG_NDDEBUG 0 //打开LOGD</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>如何为G1启用sdcard上的swap分区</title>
            <link>https://wiki.pjq.me/doku.php?id=android:enable-swap&amp;rev=1462424822&amp;do=diff</link>
            <description>如何为G1启用sdcard上的swap分区

在sdcard上分好swap分区后，可以手动启动，也可以把启动命令放在系统启动时会自动运行的脚本里面。

手动启动命令：


# swapon /dev/block/mmcblk0p3
# free
              total         used         free       shared      buffers
  Mem:        97648        92540         5108            0         4516
 Swap:       149120        11532       137588
Total:       246768       104072       142696</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>如何进入刷机模式</title>
            <link>https://wiki.pjq.me/doku.php?id=android:enter-recovery-mode&amp;rev=1462424822&amp;do=diff</link>
            <description>如何进入刷机模式

收集各种Android手机如何进入刷机模式,如G1,G7,Milestone2 ,i7500.

G7

	*  音量减（-）+电源键，进入recover模式,然后按电源键选中操作，进入recovery模式。

I7500

	*  音量减+电源键+通话键</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>Android导出lib时资源id的问题</title>
            <link>https://wiki.pjq.me/doku.php?id=android:export-lib-resouce&amp;rev=1462424822&amp;do=diff</link>
            <description>Android导出lib时资源id的问题

当需要把一个Android导出为jar包时，如果里面有用到Resource,比如R.layout,R.id 其它程序引入这个包的时候会遇到id找不到的情况。

这是因为导出jar的时候里面的R.id已经替换为一个int常量，而在新的程序中resource id会重新生成，两者不匹配就会产生问题。</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>使用fastboot刷image</title>
            <link>https://wiki.pjq.me/doku.php?id=android:fastboot&amp;rev=1462424822&amp;do=diff</link>
            <description>使用fastboot刷image

长时间没有使用fastboot刷过image了,都快忘记了,把使用方法贴在这里吧:



#!/bin/sh
echo &quot;Download the boot.img,system.img,userdata.img&quot;

echo &quot;fastboot flash boot boot.img...&quot; 
fastboot flash boot boot.img;echo &quot;fastboot flash system system.img...&quot; ;fastboot flash system system.img;echo &quot;fastboot flash userdata userdata.img...&quot;;fastboot flash userdata userdata.img;echo &quot;Finished!&quot;;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>文件读写操作</title>
            <link>https://wiki.pjq.me/doku.php?id=android:file-reader-writer&amp;rev=1462424822&amp;do=diff</link>
            <description>文件读写操作

临时写的，还没调试过，明天再调试吧，现在要帮Chris买东西。


package net.impjq.androidjson;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;

import android.app.Activity;
import android.os.Bundle;

public class AndroidJson extends Activity {
	/** Called when the activity is first cre…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>Android Freeline</title>
            <link>https://wiki.pjq.me/doku.php?id=android:freeline&amp;rev=1481087750&amp;do=diff</link>
            <description>Android Freeline

Freeline is an open source solution to speed up your compiling, like 2 seconds compared to 2 minutes in the old way.
It&#039;s super fast because of the increment build only for the changed class.

	*  Github: &lt;https://github.com/alibaba/freeline&gt;
	*  QCon Shanghai 2016 Presentation:</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 07 Dec 2016 05:15:50 +0000</pubDate>
        </item>
        <item>
            <title>Fridump</title>
            <link>https://wiki.pjq.me/doku.php?id=android:fridump&amp;rev=1557136473&amp;do=diff</link>
            <description>Fridump

	*  &lt;https://github.com/Nightbringer21/fridump&gt;
	*  &lt;https://www.frida.re/docs/android/&gt;
	*  &lt;http://pentestcorner.com/introduction-to-fridump/&gt;

Install
pip install frida
pip install frida-tools
git clone https://github.com/Nightbringer21/fridump.git    
python fridump.py -h
Install android server

Download Android server

	*  &lt;https://github.com/frida/frida/releases&gt;

Find the frida server android

	*  &lt;https://github.com/frida/frida/releases/download/12.4.8/frida-server-12.4.8-androi…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 06 May 2019 09:54:33 +0000</pubDate>
        </item>
        <item>
            <title>如何在G1上使用OpenVPN</title>
            <link>https://wiki.pjq.me/doku.php?id=android:g1%E4%BD%BF%E7%94%A8openvpn&amp;rev=1462424822&amp;do=diff</link>
            <description>如何在G1上使用OpenVPN

本方讲述了如何在G1上使用OpenVPN,前提是你用的Rom已经安装了OpenVPN.

使用命令:
openvpn --config client.conf -auth auth
说明:

1.将证书文件放到/data/vpn目录下

2.手动编辑一个auth文件:第一行写证书用户名,第二行写密码,也放到/data/vpn目录下</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>Android上如何用arm-eabi-gdb调试程序</title>
            <link>https://wiki.pjq.me/doku.php?id=android:gdb-debug&amp;rev=1462424822&amp;do=diff</link>
            <description>Android上如何用arm-eabi-gdb调试程序

参考：&lt;http://blog.csdn.net/sanlinux/archive/2010/07/10/5725557.aspx&gt;

1.安装gdbserver到模拟器
 adb push gdbserver /system/bin
 或者
 adb push gdbserver /data/
 adb shell chmod 777 /data/gdbserver
2.运行gdbserver
adb shell
cd /data
gdbserver 10.0.2.2:1234 /data/hello
或者gdbserver :1234 /data/hello</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>Android Gradle</title>
            <link>https://wiki.pjq.me/doku.php?id=android:gradle&amp;rev=1462424822&amp;do=diff</link>
            <description>Android Gradle

Briefly,Android Gradle is a new build system,and we can assume it is used to replace the ant build system.From the Google official post,it can be integrated with the IDE easily,such as Android Studio.
And the Gradle script is written with Groovy(</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>Android HotFix</title>
            <link>https://wiki.pjq.me/doku.php?id=android:hotfix&amp;rev=1479707396&amp;do=diff</link>
            <description>Android HotFix

Android HotFix tech is very popular in China nowadays, so keep on study the new technology is the essentail  for me.

Alibaba Feeline

	*  Github: &lt;https://github.com/alibaba/freeline&gt;
	*  QCon Shanghai 2016 Presentation: &lt;https://github.com/pjq/QConShanghai2016/tree/master/Mobile&gt;

Android Instant Run

JRebel

	*  &lt;https://medium.com/@shelajev/getting-started-with-jrebel-for-android-426633cde736#.t9uf52nn6&gt;
	*  &lt;http://www.jianshu.com/p/be33792f1808&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 21 Nov 2016 05:49:56 +0000</pubDate>
        </item>
        <item>
            <title></title>
            <link>https://wiki.pjq.me/doku.php?id=android:how-to-aidl&amp;rev=1462424822&amp;do=diff</link>
            <description>* [译]使用AIDL(AndRoid接口描述语言)设计和使用远程接口</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>Intelij License</title>
            <link>https://wiki.pjq.me/doku.php?id=android:intelij-license&amp;rev=1530247954&amp;do=diff</link>
            <description>Intelij License

Input License server address &lt;http://xdouble.cn:8888/&gt; then, Activate.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 29 Jun 2018 04:52:34 +0000</pubDate>
        </item>
        <item>
            <title>IntentService</title>
            <link>https://wiki.pjq.me/doku.php?id=android:intent-service&amp;rev=1462424822&amp;do=diff</link>
            <description>IntentService

Used to run asynchronized tasks in a thread one by one.

&lt;http://developer.android.com/reference/android/app/IntentService.html&gt;

&lt;https://developer.android.com/training/run-background-service/index.html&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>Android Jacoco</title>
            <link>https://wiki.pjq.me/doku.php?id=android:jacoco&amp;rev=1462424822&amp;do=diff</link>
            <description>Android Jacoco

Reference: 

&lt;http://stackoverflow.com/questions/23795595/how-do-i-get-a-jacoco-coverage-report-using-android-gradle-plugin-0-10-0-or-high&gt;



Over the hundreds of times searching the answer to get a coverage report, I finally found a exact answer what I want.

From the this blog post, I found that gradlew createDebugCoverageReport creates the jacoco coverage report.

Also, from the gradle plugin source code, the plugin uses jacoco 0.6.2.201302030002 by default. (therefore, jacoc…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:02 +0000</pubDate>
        </item>
        <item>
            <title>Android Java 反射机制</title>
            <link>https://wiki.pjq.me/doku.php?id=android:java-reflection&amp;rev=1462424823&amp;do=diff</link>
            <description>Android Java 反射机制

	*  Android应用开发中如何使用隐藏API:&lt;http://www.blogjava.net/zh-weir/archive/2011/05/01/349360.html&gt;
	*  Java反射机制的学习:&lt;http://www.blogjava.net/zh-weir/archive/2011/03/26/347063.html&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>Jenkins</title>
            <link>https://wiki.pjq.me/doku.php?id=android:jenkins&amp;rev=1462424823&amp;do=diff</link>
            <description>Jenkins

load/unload the Jenkins
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>JRebel for Android</title>
            <link>https://wiki.pjq.me/doku.php?id=android:jrebel&amp;rev=1466048168&amp;do=diff</link>
            <description>JRebel for Android

Speedup the Android application compile and run it instantly.

	*  &lt;https://zeroturnaround.com/rebellabs/jrebel-for-android-and-instant-run-compared/&gt;
	*  &lt;http://www.jianshu.com/p/be33792f1808&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 16 Jun 2016 03:36:08 +0000</pubDate>
        </item>
        <item>
            <title>替换Movistar的键盘映射文件</title>
            <link>https://wiki.pjq.me/doku.php?id=android:keychars-for-movistar&amp;rev=1462424823&amp;do=diff</link>
            <description>替换Movistar的键盘映射文件

西班牙版的键盘与标准的有些不一样，刷的Rom也不能够正确对应，需要替换掉对应的keychar文件。

替换命令


adb remount
adb push trout-keypad-v3.kcm.bin /system/usr/keychars/</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title></title>
            <link>https://wiki.pjq.me/doku.php?id=android:keystore&amp;rev=1597037841&amp;do=diff</link>
            <description></description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 10 Aug 2020 05:37:21 +0000</pubDate>
        </item>
        <item>
            <title>Kotlin</title>
            <link>https://wiki.pjq.me/doku.php?id=android:kotlin&amp;rev=1512462685&amp;do=diff</link>
            <description>Kotlin

Kotlin is the next generation language for Android development, so let&#039;s koltin

	*  Kotlin Guides &lt;https://android.github.io/kotlin-guides/style.html&gt;
	*  Kotlin Edu &lt;https://www.jetbrains.com/education/kotlin-edu/&gt;
	*  Update on Kotlin for Android &lt;http://android-developers.googleblog.com/2017/11/update-on-kotlin-for-android.html&gt;
	*  Kotlin Samples &lt;https://developer.android.com/samples/index.html?language=kotlin&gt;
	*  Android Kotlin &lt;https://developer.android.com/kotlin/index.html&gt;
	*…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 05 Dec 2017 08:31:25 +0000</pubDate>
        </item>
        <item>
            <title>LocalBroadcastManager</title>
            <link>https://wiki.pjq.me/doku.php?id=android:localbroadcastmanager&amp;rev=1462424823&amp;do=diff</link>
            <description>LocalBroadcastManager

Helper to register for and send broadcasts of Intents to local objects within your process. This is has a number of advantages over sending global broadcasts with sendBroadcast(Intent):

&lt;https://developer.android.com/reference/android/support/v4/content/LocalBroadcastManager.html&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>MAC OS X下如何连接Android device</title>
            <link>https://wiki.pjq.me/doku.php?id=android:mac-adb&amp;rev=1462424823&amp;do=diff</link>
            <description>MAC OS X下如何连接Android device

编辑~/.android/adb_usb.ini，添加对应的vender id就好了，然后重启电脑


pjq@mac:~ &gt; cat ~/.android/adb_usb.ini 
# ANDROID 3RD PARTY USB VENDOR ID LIST -- DO NOT EDIT.
# USE &#039;android update adb&#039; TO GENERATE.
# 1 USB VENDOR ID PER LINE.
0x4CC
0x15eb
0x15d1
0x0fce</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>Android内存泄露</title>
            <link>https://wiki.pjq.me/doku.php?id=android:mem-leak&amp;rev=1462424823&amp;do=diff</link>
            <description>Android内存泄露

虽说Android程序是用JAVA写的,并且在Dalvik VM中实现了JAVA的内存自动回收机制,但还是不可避免的会发生内存泄露,而且JAVA的内存泄露看起来更是诡异,如果是C写的发生内存泄露后,只要去仔细地去找分配内存的地方,再找到释放的地方是否一一对应,而且也有很多工具可以帮助你找到内存泄露.但一旦用到JAVA,就会自然觉得内存回收是虚拟机的事情,与我何干?也许正是由于JAVA的内存回收机制在我们的心目中过于强大,所以往往也就不会太在意内存的使用和回收了,写Android应用程序亦如此,至少我到现在都没怎么注意内存的回收问题.…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>如何在JAVA中手动回收内存</title>
            <link>https://wiki.pjq.me/doku.php?id=android:memory-collector&amp;rev=1462424823&amp;do=diff</link>
            <description>如何在JAVA中手动回收内存

虽然知道JAVA有内存自动回收机制,一般情况下不需要关注内存回收.但在Android上内存很有限,如何使用了过多的内存可能就会导致一些程序出现奇怪的问题.

最近就经常遇到这个问题,提示不能再在当前进程(process)分配更多的内存,结果就是程序挂掉了.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>Milestone启动Hotspot遇到的问题</title>
            <link>https://wiki.pjq.me/doku.php?id=android:milestone2-enable-hotspot&amp;rev=1462424823&amp;do=diff</link>
            <description>Milestone启动Hotspot遇到的问题

在Milestone2上启动3G Mobile Hotspot，总是提示错误
Can not setup data link, please contact your service provider.
搜索到：&lt;http://www.geekzone.co.nz/forums.asp?forumid=97&amp;topicid=74198&gt;

需要把APN里面的APN Type给设置成空的，原来是“defatult”</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>Mobile deep linking</title>
            <link>https://wiki.pjq.me/doku.php?id=android:mobiledeeplinking&amp;rev=1462424823&amp;do=diff</link>
            <description>Mobile deep linking

	*  &lt;http://mobiledeeplinking.org/&gt;
	*  &lt;http://developer.android.com/training/app-indexing/deep-linking.html&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>Android monkey 自动化测试 script</title>
            <link>https://wiki.pjq.me/doku.php?id=android:monkey-script&amp;rev=1462424823&amp;do=diff</link>
            <description>Android monkey 自动化测试 script

参考: 

 &lt;http://www.linuxidc.com/Linux/2011-10/45152.htm&gt;

 &lt;http://developer.android.com/reference/android/view/KeyEvent.html&gt;

 &lt;http://www.eoeandroid.com/thread-161933-1-1.html&gt;

 &lt;http://qatesttech.wordpress.com/category/android-monkey-script/&gt;

 &lt;http://blog.csdn.net/quaful/article/details/6863914&gt;

Example:


# Start of Script
type= point
count= 8
speed= 1.0
start data &gt;&gt;
LaunchActivity(com.snda.cloudary, com.snda.cloudary.CloudaryMobile)
#LaunchActivity(com.snd…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>Android Monkey测试</title>
            <link>https://wiki.pjq.me/doku.php?id=android:monkey&amp;rev=1462424823&amp;do=diff</link>
            <description>Android Monkey测试

参考:&lt;http://fanfq.iteye.com/blog/781694&gt;

&lt;http://www.cnblogs.com/yyangblog/archive/2011/03/10/1980086.html&gt;

一般我能用到的
adb shell monkey -v -p yourpackagename 50000 -s 2011
	*  -v 命令行的每一个 -v 将增加反馈信息的级别。 Level 0( 缺省值 ) 除启动提示、测试完成和最终结果之外，提供较少信息。 Level 1 提供较为详细的测试信息，如逐个发送到 ActivITy 的事件。 Level 2 提供更加详细的设置信息，如测试中被选中的或未被选中的 Activity 。…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>一句往sdcard push文件的命令</title>
            <link>https://wiki.pjq.me/doku.php?id=android:one-command-push-music&amp;rev=1462424823&amp;do=diff</link>
            <description>一句往sdcard push文件的命令

实际上是一个脚本，可以放在一个命令行中运行:
 for i in `ls *梁*.mp3`:; do echo adb push ${i} /sdcard/music; adb push ${i} /sdcard/music; done
对应到脚本文件:


#/bin/sh

for i in `ls *梁*.mp3`:
do
 echo &quot;adb push ${i} /sdcard/music/&quot;
 adb push &quot;${i}&quot; /sdcard/music/
done</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>Dive into ReactiveX Programming</title>
            <link>https://wiki.pjq.me/doku.php?id=android:reactive-programming&amp;rev=1462424823&amp;do=diff</link>
            <description>Dive into ReactiveX Programming

	*  &lt;http://blog.danlew.net/2014/09/15/grokking-rxjava-part-1/&gt;
	*  &lt;http://armueller.github.io/android/2015/03/29/flux-and-android.html&gt;
	*  &lt;https://github.com/ReactiveX/RxJava/wiki/Creating-Observables&gt;
	*  &lt;https://github.com/ReactiveX/RxJava/wiki/Additional-Reading&gt;
	*  &lt;https://github.com/ReactiveX/RxJava/wiki/The-RxJava-Android-Module&gt;
	*  &lt;http://nerds.weddingpartyapp.com/tech/2014/12/24/implementing-an-event-bus-with-rxjava-rxbus/&gt;
	*  &lt;https://medium.co…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>如何用repo下载Android源码</title>
            <link>https://wiki.pjq.me/doku.php?id=android:repo-sync&amp;rev=1462424823&amp;do=diff</link>
            <description>如何用repo下载Android源码

参考：&lt;http://source.android.com/download&gt;

repo init
repo init -u git://android.git.kernel.org/platform/manifest.git
repo sync

一个自动sync的小脚本


#########################################################################
# Author: pengjianqing@gmail.com
# Created Time: Tue 17 Nov 2009 11:05:51 PM CST
# File Name: reposync.sh
# Description:Welcome to visit:www.impjq.net for more information. 
#########################################################################
#!/bin/bash
start…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>Android Round corner Drawable</title>
            <link>https://wiki.pjq.me/doku.php?id=android:round-image&amp;rev=1462424823&amp;do=diff</link>
            <description>Android Round corner Drawable

&lt;http://blog.csdn.net/lmj623565791/article/details/43752383&gt;

Round Corner Drawable



Bitmap bitmap = BitmapFactory.decodeResource(getResources(),
				R.drawable.mv);
		ImageView iv = (ImageView) findViewById(R.id.id_one);
		iv.setImageDrawable(new RoundImageDrawable(bitmap));</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>Android Screen Record</title>
            <link>https://wiki.pjq.me/doku.php?id=android:screenrecord&amp;rev=1462424823&amp;do=diff</link>
            <description>Android Screen Record

So it is easy to record the screen on Android Kitkat(4.4+) with the following command
adb shell screenrecord /sdcard/demo.mp4

And then you can share it or pull it out:
adb pull /sdcard/demo.mp4 .</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>Android Security</title>
            <link>https://wiki.pjq.me/doku.php?id=android:security&amp;rev=1462424823&amp;do=diff</link>
            <description>Android Security

	*  &lt;http://www.eoeandroid.com/forum.php?mod=viewthread&amp;tid=182833&amp;fromuid=2&gt;
	*  &lt;http://bbs.pediy.com/forumdisplay.php?f=161&gt;
	*  &lt;http://net-security.org/dl/insecure/INSECURE-Mag-34.pdf&gt;

先记录一下，有空再研究一下，还有smali相关的知识</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>定时启动Service</title>
            <link>https://wiki.pjq.me/doku.php?id=android:settime-to-start-service&amp;rev=1462424823&amp;do=diff</link>
            <description>定时启动Service

利用AlarmManager启动Service.


  AlarmManager alarmManager = (AlarmManager)getContext().getSystemService(Context.ALARM_SERVICE);
            long initialDelay = System.currentTimeMillis() + 1 * 10 * 1000;
            Utils.log(&quot;initialDelay=&quot;+initialDelay);
            Intent i = new Intent();
            i.setAction(Intent.ACTION_SYNC);
            i.setClassName(getContext(), TwitterService.class.getName());
            PendingIntent intent = PendingIntent.getService(getContext(), 0, …</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title></title>
            <link>https://wiki.pjq.me/doku.php?id=android:speedandroidcompile&amp;rev=1462424823&amp;do=diff</link>
            <description>如何加快Android单模块编译速度

参见:&lt;http://blog.csdn.net/absurd/archive/2009/10/11/4654447.aspx&gt;

原文引用:


加快Android单模块编译

转载时请注明出处和作者联系方式
文章出处：http://www.limodev.cn/blog
作者联系方式：李先静 &lt;xianjimli at hotmail dot com&gt;

习惯了automake之后，再用Android的编译系统，就是感觉不爽。编译一个小模块也等上几分钟，有次实在受不了，看了一下它的实现，发现它对任何一次编译都要查找所有的Android.mk：

subdir_makefiles=$(shell cat build/tools/Android.mk.cache)

我把build/core/main.mk修改了一下，增加了一个cache：

subdir_makefiles=$(shell cat build/tools/Android.mk.cache)
ifeq ($(subdir_makefiles),)
$(info &quot;no cache…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>android sqlite批量插入数据速度解决方案</title>
            <link>https://wiki.pjq.me/doku.php?id=android:sqlite-read-write-quick&amp;rev=1462424823&amp;do=diff</link>
            <description>android sqlite批量插入数据速度解决方案

参考:&lt;http://www.cnblogs.com/tinggu/archive/2010/08/31/1813433.html&gt;

解决方法：
添加事务处理，把5000条插入作为一个事务
dataBase.beginTransaction();        手动设置开始事务
数据插入操作循环
dataBase.setTransactionSuccessful();</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>Study Online</title>
            <link>https://wiki.pjq.me/doku.php?id=android:study-course-online&amp;rev=1462424823&amp;do=diff</link>
            <description>Study Online

	*  &lt;http://www.imooc.com/&gt;
	*  前端工程师必备的PS技能——切图篇 &lt;http://www.imooc.com/learn/506&gt;
	*  &lt;http://blog.shvetsov.com/2013/02/access-android-app-data-without-root.html&gt;
		*  adb shell 
		*  run-as com.package.name
		*  adb backup -f ~/data.ab -noapk app.package.name
		*  dd if=data.ab bs=1 skip=24 | python -c “import zlib,sys;sys.stdout.write(zlib.decompress(sys.stdin.read()))</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title></title>
            <link>https://wiki.pjq.me/doku.php?id=android:tabhost&amp;rev=1462424823&amp;do=diff</link>
            <description>TabHost结构图:</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>Android tcpdump</title>
            <link>https://wiki.pjq.me/doku.php?id=android:tcpdump&amp;rev=1462424823&amp;do=diff</link>
            <description>Android tcpdump
 /tcpdump -s 0 -w file1.pcap</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>TensorFlow</title>
            <link>https://wiki.pjq.me/doku.php?id=android:tensor-flow&amp;rev=1477645188&amp;do=diff</link>
            <description>TensorFlow

	*  Machine Learning and Deep Learning: &lt;http://www.jianshu.com/collection/12a43f2ae156&gt;
	*  TensorFlow Android 
		*  &lt;https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android&gt;
		*  &lt;https://github.com/miyosuda/TensorFlowAndroidDemo&gt;

	*  神经网络与深度学习 &lt;https://www.gitbook.com/book/tigerneil/neural-networks-and-deep-learning-zh&gt;
	*  在tensorflow上进行机器学习的“Hello World”：MNIST 手写识别 &lt;https://segmentfault.com/a/1190000006676187&gt;
	*  &lt;http://wiki.jikexueyuan.com/project/te…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 28 Oct 2016 08:59:48 +0000</pubDate>
        </item>
        <item>
            <title>当天猫盒子应用被删之后</title>
            <link>https://wiki.pjq.me/doku.php?id=android:tvbox-install-app&amp;rev=1462424823&amp;do=diff</link>
            <description>当天猫盒子应用被删之后

How to install Application via adb to TVBox after auto uninstalled due to the f**k gov. policy

最近, 各种Android电视盒子, 由于某些不可告人(大家都懂得)的原因, 好多应用被强制删除了, 比如沙发管家, VST全聚合.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>Update the Java runtime version on Mac OS X</title>
            <link>https://wiki.pjq.me/doku.php?id=android:update-java-version-mac&amp;rev=1462424823&amp;do=diff</link>
            <description>Update the Java runtime version on Mac OS X

	*  &lt;http://mikemainguy.blogspot.sg/2014/11/easily-changing-java-versions-in-osx.html&gt;
sudo vim /etc/bashrc



jvm() {
  export JAVA_HOME=`/usr/libexec/java_home -v &quot;$1&quot;`
  java -version
}

jvm 1.7</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>USB Reverse Tethering</title>
            <link>https://wiki.pjq.me/doku.php?id=android:usb_reverse_tethering&amp;rev=1462424823&amp;do=diff</link>
            <description>USB Reverse Tethering

Refer to:

&lt;http://forum.xda-developers.com/showthread.php?t=2287494&gt;

For Mac OS X,should install the norndis driver:

&lt;http://joshuawise.com/horndis&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>Vysor</title>
            <link>https://wiki.pjq.me/doku.php?id=android:vysor&amp;rev=1523428119&amp;do=diff</link>
            <description>Vysor

How to enable the pro version
vim /Users/i329817/Library/Application Support/Google/Chrome/Default/Extensions/gidgenkbbabolejbgbpnhbimgjbffefm/1.9.0_0/uglify.jsvar e, t = !1, 
      o = !1,
=&gt;
var e, t = 1,</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 11 Apr 2018 06:28:39 +0000</pubDate>
        </item>
    </channel>
</rss>
