jfo planet

Hope is the best gift that tomorrow gives.

  • 首页
  • 分类
  • 归档
  • 标签
  • 搜索
close

反编译apk

发表于 2010-09-12   |   分类于 Android
keytooleg:keytool.exe -list -keystore key.store -vkeytool.exe -genkey -keystore key.store -alias dicewars -validity 222222keytool.exe -importkeystore -srckeystore ../../MyControlWidget/config/mycontrol.keystore -destkeystore key.storekeytool.exe -export -file dice.cer -keystore key.store -alias dicewarseg2:keytool -genkey -keystore mykeystorefile -alias mykeystore -validity 999jarsigner.exe -verbose -keystore ../../mykeystorefile -signedjar com.jfo.app.signed.apk com.jfo.app.apk mykeystore ...
阅读全文 »

Interrupting Java threads

发表于 2010-09-08   |   分类于 Java
mySamplevoid run() { try { while (!sFlagExit) { [I/O operation]; [wait/sleep operation]; } } catch (InterruptedException e) { … } catch (ClosedByInterruptException e) { … } catch (IOException e) { … }}myInterrupting Java threadsTakeaway: Multithreading presents a whole set of new challenges to the programmer that, if not correctly addressed, can lead to unexpected behavior and hard-to-find errors. In this article we addr ...
阅读全文 »

Android HttpClient网络通信

发表于 2010-09-06   |   分类于 Android
Android HttpClient网络通信package com.Aina.Android;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStream;import java.io.InputStreamReader;import java.io.UnsupportedEncodingException;import java.net.HttpURLConnection;import java.net.MalformedURLException;import java.net.URL;import java.util.ArrayList;import java.util.List;import org.apache.http.HttpEntity;import org.apache.http.HttpResponse;import org.apache.http.HttpStatus;import org.apache.http.NameValuePair;import or ...
阅读全文 »

Android Socket网络通信

发表于 2010-09-06   |   分类于 Android
Android Socket网络通信1.服务器程序: package com;      import java.io.BufferedReader;   import java.io.BufferedWriter;   import java.io.IOException;   import java.io.InputStreamReader;   import java.io.OutputStreamWriter;   import java.io.PrintWriter;   import java.net.ServerSocket;   import java.net.Socket;   import java.util.ArrayList;   import& ...
阅读全文 »

如何制作自己的android升级包(update.zip)

发表于 2010-09-04   |   分类于 Android
手动制作update.zip包的过程:1.创建一个update目录,该目录包含自己想要升级或替换的内容例如:update/update/systemupdate/system/appupdate/system/app/doodle_jump.apkupdate/META-INFupdate/META-INF/comupdate/META-INF/com/googleupdate/META-INF/com/google/androidupdate/META-INF/com/google/android/update-script 该目录包含doodle_jump游戏,升级后该apk将出现在手机的/system/app/目录下。META-INF目录下包含升级脚本,update-script脚本的内容如下:show_progress 0.500000 0copy_dir PACKAGE:system SYSTEM:show_progress 0.100000 0大家可以根据自己的升级内容添加相应的命令。 2.创建压缩包在update/目录下运行:$ zip -qry ../update.un ...
阅读全文 »

ramfs, rootfs and initramfs

发表于 2010-09-02   |   分类于 Linux
linux-2.6.30/Documentation/filesystems/ramfs-rootfs-initramfs.txtsee also initrd and ramdisk ramfs, rootfs and initramfsOctober 17, 2005 Rob Landley <rob@landley.net>What is ramfs?Ramfs is a very simple filesystem that exports Linux’s disk cachingmechanisms (the page cache and dentry cache) as a dynamically resizableRAM-based filesystem. Normally all files are cached in memory by Linux. Pages of data read frombacking store (usually the block device the filesystem is mounted on) are keptar ...
阅读全文 »

Install CyanogenMod for Nexus_One

发表于 2010-09-02   |   分类于 Android
Building kernel from sourcehttp://wiki.cyanogenmod.com/index.php?title=Building_from_sourceInstall CyanogenMod for Nexus_Onehttp://wiki.cyanogenmod.com/index.php?title=Nexus_OneCompile CyanogenMod for Nexus_Onehttp://wiki.cyanogenmod.com/index.php?title=Compile_CyanogenMod_for_Passion#Download_Repo================ MetaMorph: http://code.google.com/p/android-metamorph/wiki/MetaMorphMetaMorph is an application for Rooted android phones that allows end users to apply customizable zip files with ...
阅读全文 »

animations & AppStartingWindow in WindowManagerService(discussion from android-platform group)

发表于 2010-08-30   |   分类于 Android
http://groups.google.com.tw/group/android-platform/browse_thread/thread/f2c5ec9b77b9862e> I want to change the animations for starting and stopping activities. > Now I have some questions regarding the animation framework used > inside the WindowManagerService. > Just changing the animation’s xml files (activity_open_enter.xml etc.) > is not enough for our UI, so I have to understand the inner working of > the framework. Here is what I got so far and some questions: > The m ...
阅读全文 »

Activity启动流程(2)

发表于 2010-08-29   |   分类于 Android
 Activity设计框架3.1 外特性空间的Activity    我们先来看看,Android应用开发人员接触的外特性空间中的Activity,对于AMS来讲,这个Activity就是客服端的Activity。 应用程序员在建立Android应用时,构建Activity的子类就是Andoid外特性空间展现的接口。我们可以从下面的简单的例子描述看看 Activity,到底如何建立的。DemoActivity extend Activity{     onCreate    onResume    onPause    onStop}    在Android的外特性空间(SDK)中,Android应用程序员根本不知道进程是什么时候起来的,系统消息是如何传递过来的。这个DemoActivity是如何实例化的呢?并且该Activity是托管在哪个进程的呢?本节的分析将给出答案。我们从Acti ...
阅读全文 »

【转】Linux程序编译速度提高方法

发表于 2010-08-28   |   分类于 Linux
【转】Linux程序编译速度提高方法项目越来越大,每次需要重新编译整个项目都是一件很浪费时间的事情。Research了一下,找到以下可以帮助提高速度的方法,总结一下。tmpfs有人说在Windows下用了RAMDisk把一个项目编译时间从4.5小时减少到了5分钟,也许这个数字是有点夸张了,不过粗想想,把文件放到内存上做编译应该是比在磁盘上快多了吧,尤其如果编译器需要生成很多临时文件的话。这个做法的实现成本最低,在Linux中,直接mount一个tmpfs就可以了。而且对所编译的工程没有任何要求,也不用改动编译环境。mount -t tmpfs tmpfs ~/build -o size=1G用2.6.32.2的Linux Kernel来测试一下编译速度:用物理磁盘:40分16秒用tmpfs:39分56秒呃……没什么变化。看来编译慢很大程度上瓶颈并不在IO上面。但对于一个实际项目来说,编译过程中可能还会有打包等IO密集的操作,所以只要可能,用tmpfs是有益无害的。当然对于大项目来说,你需要有足够的内存才能负担得起这个tmpfs的开销。make -j既然IO不是瓶颈,那CPU就应该是一 ...
阅读全文 »
1…192021…61
jfo

jfo

605 日志
38 分类
4 标签
RSS
GitHub 微博
友情链接
  • 收藏夹
  • 网络剪贴板
  • 爱逛吧
© 2007 - 2018 jfo
由 Hexo 强力驱动
主题 - NexT.Pisces