`
folksy
  • 浏览: 157263 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表
  JAVA import android.os.SystemProperties; SystemProperties.set("persist.sys.language", zone.getID());String lang= SystemProperties.get("persist.sys.language");   C #include <cutils/properties.h> property_set("persist.sys.language", "zh");property_ ...
http://blog.csdn.net/air_snake/archive/2008/07/22/2690554.aspx 从文件名找到文件信息(namei) 本文档的Copyleft归yfydz所有,使用GPL发布,可以自由拷贝,转载,转载时请保持文档的完整性,严禁用于任何商业用途。msn: yfydz_no1@hotmail.com来源:http:/ ...
http://www.cnblogs.com/mainroadlee/archive/2011/05/23/android_get_installed_app.html Android获取已安装应用信息(图标,名称,版本号,包) Android 菜市场上有一款应用较 ShareApp,可以显示,管理,分享Android手机上安装的应用。 但比较不爽的是,它把很多系统自带的应用程序也都显示了出来。这些程序往往是无法卸载的,更无法分享,让“已安装应用程序”的列表显的非常凌乱。 我在手机上运行了一下,结果Gtalk,DRMService这些系统应用都显示出来了..比较不爽。 于是 ...
import android.os.SystemClock; 三种获取系统时间函数的差别     SystemClock.currentThreadTimeMillis();     SystemClock.elapsedRealtime();     SystemClock.uptimeMillis();     /**      * Returns milliseconds since boot, not counting time spent in deep sleep.      * <b>Note:</b> This value may get r ...
http://java-admin.iteye.com/blog/927081 Android——init.rc脚本   在Android中使用启动脚本init.rc,可以在系统的初始化中进行简单的操作。 init.rc启动脚本路径:system/core/rootdir/init.rc 内容: Commands:命令 Actions:动作 Triggers:触发条件 Services:服务 Options:选项 Properties:属性 Commands是一些基本操作。如:     mkdir /system     mkdir /data 0771 ...
这篇文章写的超详细,超好。 在此感谢原作者。   http://android.tgbus.com/Android/tutorial/201105/353147.shtml   Android 如何建立AIDL <script type="text/javascript"></script>        建立AIDL服务要比建立普通的服务复杂一些,具体步骤如下:       (1)在Eclipse Android工程的Java包目录中建立一个扩展名为aidl的文件。该文件的语法类似于Java代码,但会稍有不同。详细介绍见实例52的内 ...
How to use Sensor Simulator in Android SDK Emulator http://www.botskool.com/geeks/how-use-sensor-simulator-android-sdk-emulator By Shashwat Srivastava In this post we will simulate various sensors such as accelerometer, compass, orientation and temperature sensor using SensorSimulator in Andr ...
解决了google键盘存在触摸识别误差问题 触摸一个键的顶部区域,却等效按下了改键上方的键。该输入法目录下SkbContainer.java文件中     * For finger touch, user tends to press the bottom part of the target key,     * or he/she even presses the area out of it, so it is necessary to make a     * simple bias correction. If the input method runs on emulator, n ...
void f(){  Display display = ((WindowManager) getSystemService(WINDOW_SERVICE)).getDefaultDisplay();  int width = display.getWidth(); int height = display.getHeight(); int orientation = display.getOrientation(); switch(orientation){ case Configuration.ORIENTATION_PORTRAIT:  //....  break; case Confi ...
import android.provider.Settings; public int getVal(){     return Settings.Secure.getInt(this.getContentResolver(),    Settings.Secure.ETH_ON, 0);} public void setVal(int val){    Settings.Secure.putInt(cr, Settings.Secure.ETH_ON,val); }
其他中间层做好后,发现在Gallery中无法删除flash(或sdcard)上的文件,原因是以下文件未作修改,改成如下 其中环境变量在init.rc 中定义如下     export EXTERNAL_STORAGE /mnt/flash    export EXTERNAL_FLASH_STORAGE /mnt/sdcard    export EXTERNAL_UDISK_STORAGE /mnt/udisk     /external/sqlite/android/sqlite3_android.cpp   static void delete_file(sqlite3_co ...
http://zbj2658.blog.163.com/blog/static/400952542010080834698/  String和StringBuffer的区别,网上资料可以说是数不胜数,但是看到这篇文章,感觉里面做的小例子很有代表性,所以转一下,并自己做了一点总结。 在java中有3个类来负责字符的操作。 1.Character 是进行单个字符操作的, 2.String 对一串字符进行操作。不可变类。 3.StringBuffer 也是对一串字符进行操作,但是可变类。 String:是对象不是原始类型.为不可变对象,一旦被创建,就不能修改它的值.对于已经存在的Stri ...
 http://www.cnblogs.com/salam/archive/2010/11/10/1873654.html   Toast用于向用户显示一些帮助/提示。下面我做了5中效果,来说明Toast的强大,定义一个属于你自己的Toast。 1.默认效果 代码 Toast.makeText(getApplicationContext(), "默认Toast样式",     Toast.LENGTH_SHORT).show();   2.自定义显示位置效果 代码 toast = Toast.makeText(getApplicationContext ...
  在Java中我们处理线程同步问题时,处理延迟可能会使用Thread类的sleep方法,这里抛开concurrent类的一些方法,其实 Android平台还提供了一个SystemClock.sleep方法,它们有什么区别呢?我们每次调用Thread.sleep时可能会出现InterruptedException异常,而SystemClock.sleep方法则不会,在 SDK上有这样的描述,它将会忽略中断异常。 Three different clocks are available, and they should not be confused: System.currentT ...
http://www.huomo.cn/developer/article-b8f0.html 1. 参考文档1.1 Obtaining MIPS Android Source Code    (http://www.mipsandroid.com/documents/show/1)1.2 Compiling Android for MIPS (http://www.awakecoding.com/index.php?option=com_content&view=article&id=21:compiling-android-for-mips)1.3 移植Android到MI ...
Global site tag (gtag.js) - Google Analytics