![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android编程技巧
yunshouhu
爱Java,更爱Android,学VC,搞c/c++的我。专注移动安全,游戏安全,逆向安全!十年戎马成神路,君临天下风雷动! https://github.com/yunshouhu
展开
-
android编程技巧
1、搜索应用市场Intent intent=new Intent(Intent.ACTION_VIEW); //intent.setData(Uri.parse("market://details?id="+getPackageName())); intent.setData(Uri.parse("market://search?q=pname:QQ")); start原创 2013-03-04 15:57:30 · 606 阅读 · 0 评论 -
android源码编译
参考 http://blog.csdn.net/luoshengyang/article/details/6559955在/etc/profile设置环境变量gedit /etc/profileexport PATH="$PATH:/root/Android/android-2.2.2_r1/out/host/linux-x86/bin"export ANDROID_PRODU原创 2013-03-08 10:57:54 · 741 阅读 · 0 评论 -
android 快捷方式的使用
1,判断是否已经创建了快捷方式(在某些机型中需要判断)private boolean hasShortcut(){ boolean isInstallShortcut = false; final ContentResolver cr = activity.getContentResolver(); final String AUTHO原创 2013-08-07 12:15:13 · 863 阅读 · 0 评论 -
Android技巧和IDE使用技巧
1、动态加载: DexClassLoader dcl = new DexClassLoader( "/sdcard/dex.apk", "/sdcard/dexout/", null, super.getClassLoader());Class c = dcl.loadClass("com.package.MyClass" );Object myObj = c.newIn...原创 2013-05-28 16:55:11 · 1097 阅读 · 0 评论 -
少用activity多用application context可以避免内存泄露
原文地址:http://topic.csdn.net/u/20110215/21/12f944f5-83e3-4f98-aff7-5e0a1212d8ab.html其中比较有用的理解:一个APK进程只有一个Context: 这个Context就是ApplicationContext,从Context继承过来。ApplicationContext可以看做是针对整个系统的全局处理接口,因为转载 2014-01-02 11:33:47 · 980 阅读 · 0 评论 -
Android应用程序的debug属性
在开发Android应用程序时,我们可以在AndroidManifest.xml中设置其debug属性,比如示例1示例1 android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme"转载 2014-01-20 16:00:49 · 1096 阅读 · 0 评论 -
android 技巧
1、程序退出方法:System.exit(0);ActivityManager manager = (ActivityManager)getSystemService(ACTIVITY_SERVICE); manager.killBackgroundProcesses(getPackageName());android.os.Process.killProcess(androi原创 2014-08-07 11:25:54 · 743 阅读 · 0 评论