
Android
文章平均质量分 65
FrancisLeeTang
这个作者很懒,什么都没留下…
展开
-
Android 安全机制
1 Android 安全机制概述Android 是一个权限分离的系统 。 这是利用 Linux 已有的权限管理机制,通过为每一个 Application 分配不同的 uid 和 gid , 从而使得不同的 Application 之间的私有数据和访问( native 以及 java 层通过这种 sandbox 机制,都可以)达到隔离的目的 。 与此 同时, Android 还 在此基础上进转载 2014-11-05 15:48:59 · 551 阅读 · 0 评论 -
Android - what's the difference between the various methods to get a Context?
http://stackoverflow.com/questions/1026973/android-whats-the-difference-between-the-various-methods-to-get-a-contextQ:In various bits of Android code I've seen: public class MyActivity ext转载 2011-11-15 16:38:21 · 352 阅读 · 0 评论 -
优秀的Android学习资源
http://commonsware.com/blog/http://commonsware.com/http://www.poemcode.net/http://www.ideasandroid.com/http://www.cnblogs.com/halzha原创 2011-04-25 12:01:00 · 503 阅读 · 0 评论 -
获取Android的Java源代码并在Eclipse中关联查看的最新方法
获取Android的Java源代码并在Eclipse中关联查看的最新方法作者:lizongbo 发表于:01:59. 星期六, 一月 1st, 2011 版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本版权声明。http://618119转载 2011-08-18 17:09:44 · 505 阅读 · 0 评论 -
Android自带的一些可用于Activity的Theme
http://kurtchen.com/blog/2010/03/10/android-theme/在 AndroidMenifest.xml 中定义 Activity 的时候我们可以使用 android:theme 来设置 Activity 的主题,比如:?转载 2011-09-07 10:28:52 · 737 阅读 · 0 评论 -
Using the Android Application class to persist data
http://stackoverflow.com/questions/4208886/using-the-android-application-class-to-persist-dataQuestion:I'm working on a fairly complex转载 2011-09-07 10:17:04 · 448 阅读 · 0 评论 -
Measure data roaming traffic on Android?
Question:Just back from a very nice vacation in Iceland, and await the data roaming bill from my phone company. I hope for the best havi转载 2011-09-07 10:14:13 · 1164 阅读 · 0 评论 -
Android Memory Usage
http://elinux.org/Android_Memory_UsageAndroid Memory UsageFrom eLinux.orgJump to: navigation, searchThe memory of an Android sys转载 2011-09-07 10:43:27 · 2077 阅读 · 0 评论 -
how to completely get rid of an activity's GUI (avoid a black screen)
http://stackoverflow.com/questions/4551868/how-to-completely-get-rid-of-an-activitys-gui-avoid-a-black-screenQuestion:I'm trying t转载 2011-09-07 10:25:45 · 588 阅读 · 0 评论 -
Share Link - Perform action in background
http://stackoverflow.com/questions/2487281/share-link-perform-action-in-backgroundQuestion:I have an application that will accept转载 2011-09-07 10:23:11 · 528 阅读 · 0 评论 -
Android Application Class Lifecycle
Question:The android app I am working on overrides the Application class to store lightweight state (username, gps location, etc) in s转载 2011-09-07 10:10:26 · 940 阅读 · 0 评论 -
Browsing Android Source in Eclipse
http://stuffthathappens.com/blog/2008/11/01/browsing-android-source-in-eclipse/Google’s Android SDK includesandroid.jar, which contains the Android public API class files. They also provide转载 2011-11-19 18:49:40 · 613 阅读 · 0 评论 -
Avoiding memory leaks
http://android-developers.blogspot.com/2009/01/avoiding-memory-leaks.htmlAvoiding memory leaksPosted by Romain Guy on 19 January 2009at10:09 PMAndroid applications are, at least on the转载 2011-11-01 11:45:28 · 550 阅读 · 0 评论 -
Android应用性能优化之使用SparseArray替代HashMap
Android应用性能优化之使用SparseArray替代HashMap柳志超博客 » Program » Andriod » Android应用性能优化之使用SparseArray替代HashMapposted in Andriod on 2012/10/23 by liuzcHashMap是java里比较常用的一个集合类,我比较习惯用来缓存一些处理后的结果。最近在做一个An转载 2014-11-04 15:58:34 · 655 阅读 · 0 评论 -
Activity的taskAffinity属性
http://yelinsen.iteye.com/blog/1122547Activity的taskAffinity属性博客分类: Android资讯Activity的归属,也就是Activity应该在哪个Task中,Activity与Task的吸附关系。我们知道,一般情况下在同一个应用中,启动的Activity都在同一个Task中,它们在该Task中转载 2014-11-04 16:04:57 · 589 阅读 · 0 评论 -
ubuntu 14.04 dev environment set up
1. Download android sdk2. apt-get install原创 2014-11-04 15:17:12 · 1260 阅读 · 0 评论 -
Android Application Task Activities的关系
http://www.cnblogs.com/ghj1976/archive/2011/04/28/2031586.htmlAndroid Application Task Activities的关系Posted on 2011-04-29 09:26 蝈蝈俊 阅读(2297) 评论(0) 编辑 收藏 什么是Android Application?转载 2011-11-23 21:49:38 · 373 阅读 · 0 评论 -
Android的进程,线程模型
http://www.cnblogs.com/ghj1976/archive/2011/04/28/2031586.htmlAndroid的进程,线程模型Posted on 2011-04-28 12:18 蝈蝈俊 阅读(3024) 评论(1) 编辑 收藏 Android 包括一个应用程序框架、几个应用程序库和一个基于 Dalvik 虚拟机的运行时,所有转载 2011-11-23 21:48:43 · 391 阅读 · 0 评论 -
区分Activity的四种加载模式
区分Activity的四种加载模式http://marshal.easymorse.com/archives/2950在多Activity开发中,有可能是自己应用之间的Activity跳转,或者夹带其他应用的可复用Activity。可能会希望跳转到原来某个Activity实例,而不是产生大量重复的Activity。这需要为Activity配置特定的加载模式,而不是使用默认的转载 2011-11-23 21:47:26 · 345 阅读 · 0 评论 -
Android four load mode. Safe
原文链接: http://unknownerror.net/2011-05/android-four-load-mode-safe-7929Suggest first read the following two articles, such ability can better understand the safe load mode:Android process, th转载 2011-11-23 19:36:48 · 1183 阅读 · 0 评论 -
How to discover memory usage of my application in Android
Question:would like to know how I can find the memory used on my Android application, programmatically.I hope there is a way to do it. Plus I would like to understand how to get the free memory of转载 2011-11-23 16:10:04 · 606 阅读 · 0 评论 -
Android程序完全退出的三种方法
Android程序完全退出的三种方法2010-06-12 15:46转自http://tonyyu.javaeye.com/blog/689683很多网友可能发现自己的Android程序有很多Activity,比如说主窗口A,调用了子窗口B,在B中如何关闭整个Android应用程序呢? 这里Android123给大家三种比较简单的方法实现。 首先要说明在B中直接使用finis转载 2011-11-23 11:14:41 · 432 阅读 · 0 评论 -
Whats the difference between Thread.setPriority() and android.os.Process.setThreadPriority()
http://stackoverflow.com/questions/5198518/whats-the-difference-between-thread-setpriority-and-android-os-process-setthreQuestion:So if I have code like:Runnable r = ...;Thread thre转载 2011-11-01 11:42:30 · 2856 阅读 · 0 评论 -
Android上的流量监控思路
http://www.kernelchina.org/?q=node/565Android上的流量监控思路Submitted by appleleaf on Thu, 2011-01-06 10:59技术看点看了一下linux提供的AP转载 2011-09-07 10:08:17 · 1990 阅读 · 1 评论 -
C通过JNI调用JAVA——创建Object数组参数
http://wind6266.blog.163.com/blog/static/6710907201112424521713/C通过JNI调用JAVA——创建Object数组参数 2011-02-24 14:47:00| 分类:C / C++ | 标签转载 2011-09-07 10:04:39 · 1945 阅读 · 0 评论 -
转:Android系统特质 不需要太多剩余内存
<br />http://linux.chinaitlab.com/administer/845246.html<br />其实很多人都是把使用其他系统的习惯带过来来了。android大多应用没有退出的设计其实是有道理的,这和系统对进程的调度机制有关系。如果你知道 java,就能更清楚这机制了。其实和java的垃圾回收机制类似,系统有一个规则来回收内存。进行内存调度有个阀值,只有低于这个值系统才会按一个列表来关闭用户不需要的东西。当然这个值默认设置得很小,所以你会看到内存老在很少的数值徘徊。但事实上他并不影转载 2011-02-18 16:38:00 · 547 阅读 · 0 评论 -
Android C native development – take full control!
<br />http://www.pocketmagic.net/?p=682Android C native development – take full control!By Radu Motisan Posted on May 12th, 2009<br />EDIT Nov-2010 There is an easier way to compile native C code, see this article.<br />A recent project I've been working o转载 2011-01-05 23:45:00 · 13603 阅读 · 0 评论 -
Write on the Android Read-only file system
<br /> http://www.pocketmagic.net/?p=757Write on the Android Read-only file systemBy Radu Motisan Posted on May 14th, 2009<br />Most of Android partitions are mounted as read only.<br />For eg. /system where most of the libs and other system components are转载 2011-01-06 00:01:00 · 1473 阅读 · 0 评论 -
android ndk log
<br /> <br />http://hi.baidu.com/xxw8393/blog/item/2d706250ef0eb76984352445.html<br /> <br />Android NDK发布后,java+C的编程方式成为android上性能编程的首选。但在C中调试困难,因此能使用logcat成为必须的要求。关于在Native代码中使用logcat,网上有很多说法,大部分有所欠缺,有的根本是错的。要使用logcat,首先在代码中要引入 log的头文件。#include <android/转载 2011-01-05 20:53:00 · 436 阅读 · 0 评论 -
Android adb error: “device not found” on Ubuntu
<br />http://www.pocketmagic.net/?p=762Android adb error: “device not found” on UbuntuBy Radu Motisan Posted on June 2nd, 2009<br />I've been getting this error way too often recently, so I've decided to point out some of the causes.<br />1) using my older转载 2011-01-06 00:03:00 · 3666 阅读 · 0 评论 -
Android C native development using the NDK under Windows
<br />http://www.pocketmagic.net/?p=1462Android C native development using the NDK under WindowsBy Radu Motisan Posted on November 18th, 2010<br />A lot has changed since my previous article, on Android C native development, back in 2009.<br />The Android转载 2011-01-05 23:54:00 · 1082 阅读 · 0 评论 -
10 Android NDK Tips
<br />10 Android NDK Tips<br />http://blogs.arm.com/software-enablement/238-10-android-ndk-tips/<br />With new devices and new capabilities being exposed by the Android NDK (Native Development Kit) it is now possible to really get the best out of these ARM转载 2011-01-05 21:39:00 · 547 阅读 · 0 评论 -
如何移植library到android(三)
<br />http://bloodysofiya.blog.163.com/blog/static/116562343201032343654900/<br /> <br />上一篇只是谈到了大方向。有些具体的东西还是没有讲清楚,这次专门讲讲android ndk.先看看android ndk的目录layout大概长的怎么样.root |------apps,所有你要编译的C和c++code都放到这个目录下。 |------build | |----platform转载 2011-01-05 20:02:00 · 750 阅读 · 0 评论 -
如何移植library到Android(二)
<br />之前我也写了一篇文章来说明如何移植library到Android来说明大概要怎么移植。其实,里面有一些错误,错误的原因我觉得就是:水平有限。好了,废话不多说。进入正题。 一般来说,当你拿到一包library的source code,要按照如下的方式开始:1.请仔细仔细的阅读Readme,以及各种文档.这里面包含了绝大部分你想要的东西。2.尝试的编译一个可以运行的版本出来看看效果。<br /> a.这时候你应该了解你要移植的库,是怎么编译的了吧?没有?Goto 1:继续往下阅读<br />转载 2011-01-05 19:57:00 · 888 阅读 · 0 评论 -
Android上的单元测试
Android上的单元测试<br /> <br />2009-12-17 来源:网络 <br />任何程序的开发都离不开单元测试来保证其健壮和稳定。Android的程序自然也不例外。从Android SDK 0.9开始,就有了比较成熟的测试框架,但是直到目前最新的1.1版本,也没有详细的文档介绍这个内容,只是简单的给了一个Api Demos里的几个单元测试代码。因此,我在这里对此内容做一下梳理和总转载 2010-11-10 14:09:00 · 483 阅读 · 0 评论 -
读书笔记[Android Beginning 2] chapter 2 Create a Skeleton Application
<br />A button is an Android widget, and widgets are the user interface elements that you use in your application.<br /><br /><br />The onCreate() method is invoked when the activity is started. The first thing you should do is chain upward to the supercla原创 2011-05-23 15:53:00 · 389 阅读 · 0 评论 -
Android development mirror site in China.
<br />http://androidappdocs.appspot.com/index.html<br />http://android.yyable.com/offline.html<br />http://xiaogui.org/android/docs/sdk/android-3.0.html<br />http://1doc.info/docs/sdk/android-3.0.html<br />http://www.ideasandroid.com/android/sdk/docs/<br /原创 2011-04-25 15:37:00 · 4416 阅读 · 1 评论 -
[Android]ListView性能优化之视图缓存
http://www.cnblogs.com/over140/archive/2011/03/23/1991100.htmlhttp://www.ideasandroid.com/archives/295[Android]ListView性能优化之视图缓存 前转载 2011-09-07 09:57:37 · 499 阅读 · 0 评论 -
[SDK学习]Managing Projects from the Command Line
Managing Projects from the Command Line In this document Creating an Android ProjectUpdating a ProjectSetting up a L原创 2011-07-20 17:02:38 · 479 阅读 · 0 评论 -
读书笔记[Android Beginning 2] chapter 5 Employing Basic Widgets
Every GUI toolkit has some basic widgets: fields, labels, buttons, and so on. Assigning LabelsThe simplest widget is the label, referred to原创 2011-07-18 17:51:47 · 595 阅读 · 0 评论