Android
sunney2012
Java攻城师
展开
-
API Demos之com.example.android.aips
在com.example.android.aips包里有两个类文件:ApiDemos和ApiDemosApplicatio,这两个类主要用来构建整个Demo。ApiDemos继承自android.app.ListActivity,显然是列表视图ApiDemosApplicatio继承自android.app.Application,是用来控制App整体的---...原创 2011-08-25 19:29:53 · 363 阅读 · 0 评论 -
Android 反编译
如果你是一个开发人员 当看到比较好的android应用 你肯定想看它的源码 哈哈 教你如何反编译[list][*]#把apktool-install-windows-r04-brut1.tar.bz2和apktool1.4.1.tar.bz2解压后的文件放到C:\Window下[*][*]#反编译apk文件 CMD命令[*][color=red]apktool d "C...原创 2011-08-31 20:04:17 · 70 阅读 · 0 评论 -
Android 权限中文说明
[list][*]android.permission.ACCESS_CHECKIN_PROPERTIES 允许读写访问 "properties"表在checkin数据库中,改值可以修改上传( Allows read/write access to the "properties" table in the checkin database, to change values that get...原创 2011-09-01 10:54:28 · 121 阅读 · 0 评论 -
Android 系统文件夹结构解析
[list][*]\system\app[*][*]这个里面主要存放的是常规下载的应用程序,可以看到都是以APK格式结尾的文件。在这个文件夹下的程序为系统默认的组件,自己安装的软件将不会出现在这里,而是\data\文件夹中。[*][*]\system\bin[*][*]这个目录下的文件都是系统的本地程序,从bin文件夹名称可以看出是binary二进制的程序,里面主要是L...原创 2011-09-01 10:56:50 · 111 阅读 · 0 评论 -
Android 学习网站 不断更新
很多实例: [url]http://www.anddev.org/viewforum.php?f=8[/url]、Map开发: [url]http://code.google.com/p/osmand/[/url]博客1 [code="java"]http://blog.chinaunix.net/space.php?uid=20783399&do=blog&view=me&fr...原创 2011-09-01 11:03:17 · 81 阅读 · 0 评论 -
Android 系统自带样式Android:theme
[list][*]•android:theme="@android:style/Theme.Dialog" 将一个Activity显示为对话框模式[*]•android:theme="@android:style/Theme.NoTitleBar" 不显示应用程序标题栏[*]•android:theme="@android:style/Theme.NoTitleBar.Fulls...原创 2011-09-01 17:23:40 · 63 阅读 · 0 评论 -
Android 界面设计工具
Android界面设计工具原创 2011-09-01 17:26:52 · 144 阅读 · 0 评论 -
Android Activity重要性排序
在内存不足的时候,Android是会主动清理门户的,那它又是如何判断哪个process是可以清掉的呢?文档中也提到了它的重要性排序:1.最容易被清掉的是empty process,空进程是指那些没有Activity与之绑定,也没有任何应用程序组件(如Services或者IntentReceiver)与之绑定的进程,也就是说在这个process中没有任何activity或者service之类...原创 2011-09-19 20:25:21 · 120 阅读 · 0 评论 -
Android setDefaultKeyMode
[url]http://blog.csdn.net/silenceburn/article/details/6069645[/url]原创 2011-09-19 20:49:07 · 72 阅读 · 0 评论 -
Android:相对位置排版
在XX之上/下/左/右android:layout-aboveandroid:layout-belowandroid:layout-toLeftOfandroid:layout-toRightOf与XX 基线/底/左/右/顶对齐android:layout-alignBaselineandroid:layout-alignBottomandroid:layout...原创 2011-09-28 20:43:39 · 96 阅读 · 0 评论 -
Android 卸载程序
[code="java"]// 红色为自己的包名packageURI = Uri.parse("package:[color=red]com.xunlei.test[/color]");Intent uninstallIntent = new Intent(Intent.ACTION_DELETE, packageURI);startActivity(uninstallIntent...原创 2011-10-18 21:02:02 · 53 阅读 · 0 评论 -
What is Android?
Android是一个用于移动设备软件栈(software stack),它包括操作系统,中间件和关键应用。那么Android SDK(soft development kit)为在Android平台开发(Java语言)提供必须的工具和API。 特性: 1,应用程序平台 重用和替换组件 2,Dalvik虚拟机 为移动设备优化...原创 2011-08-10 15:27:27 · 86 阅读 · 0 评论 -
Android 源码下载
android源码下载:[url]http://rgruet.free.fr/public/[/url]原创 2011-08-10 17:36:14 · 50 阅读 · 0 评论 -
Android 持久状态
当你编辑某Text视图时可能会打断当前编辑切换到另外的活动中,如果要持久你的编辑状态那么应该在Activity.onPause()里面做文章, 例如:[code="java"]@Overrideprotected void onPause() { super.onPause(); SharedPreferences.Editor editor = getPrefe...原创 2011-08-31 19:37:49 · 74 阅读 · 0 评论 -
Android Intent用法汇总
[code="java"]//显示网页Uri uri = Uri.parse("http://google.com"); Intent it = new Intent(Intent.ACTION_VIEW, uri); //显示地图Uri uri = Uri.parse("geo:38.899533,-77.036476"); Intent it = new Inte...原创 2011-08-31 11:55:19 · 52 阅读 · 0 评论 -
Android 创建快捷方式
[code="xml"][/code]在你的项目清单中看到如下代码代表这个activity是本应用的启动activity。系统会自动为创建快捷方式。在你使用一些应用时它有时会让你创建快捷方式 比如 UC浏览器.这是怎么做的呢?其实也很简单。只需:[code="java"]/** * 这两行代码说明你想干嘛 */Uri uri = Uri.parse("tel:0...原创 2011-08-31 11:11:16 · 78 阅读 · 0 评论 -
Android Preference解读
Preferences 在Android当中被用来记录应用,以及用户喜好等等,它可以用来保存简单的数据类型,如Int,Double,Boolean等。Preferences中保存的数据可以理解为Map型。我们通过PreferenceManager 以及getDefaultSharedPreferences(Context) 来获取它,比如当我们想获得整数我们可以用 getInt(String...原创 2011-08-25 19:38:09 · 76 阅读 · 0 评论 -
Android Alarm闹钟
1,设置闹钟(只响一次)[code="java"]Intent intent = new Intent(AlarmController.this, OneShotAlarm.class); PendingIntent sender = PendingIntent.getBroadcast(AlarmController.this,0, intent, 0);...原创 2011-08-25 19:51:37 · 94 阅读 · 0 评论 -
Android AlertDialog
[align=left]这个AlertDialog和Preference的区别是:一个是临时的一个是文件保存 都有简介直接实现DialogInterface接口[code="java"]@Override protected Dialog onCreateDialog(int id) { super.onCreateDialog(id); switc...原创 2011-08-26 11:12:42 · 57 阅读 · 0 评论 -
Android Animation动画 本文纯属抄袭 如何雷同本人一概无责
动画类型Android的animation由四种类型组成XML中 [list][*]alpha[*]渐变透明度动画效果[*]scale[*]渐变尺寸伸缩动画效果[*]translate[*]画面转换位置移动动画效果[*]rotate[*]画面转移旋转动画效果[/list]JavaCode中 [list][*]AlphaAn...原创 2011-08-27 11:13:44 · 70 阅读 · 0 评论 -
Android美工之Shape
Android中常常使用shape来定义控件的一些显示属性,今天看了一些shape的使用,对shape有了大体的了解,稍作总结:先看下面的代码: [code="java"] ...原创 2011-08-27 19:22:37 · 126 阅读 · 0 评论 -
Android 让TextView变成Dialog
[code="xml"][/code] Theme.CustomDialog[code="xml"] @drawable/filled_box [/code]filled_box.xml[code="xml"] [/code]--------------------------------...原创 2011-08-27 19:41:00 · 124 阅读 · 0 评论 -
Android 修改Window属性
自定义标题栏[code="java"]requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE,R.layout.custom_title);[/code]custom_title.xml[code="xml"] ...原创 2011-08-29 17:42:05 · 424 阅读 · 0 评论 -
(转)Android Window类
Android的Window类(一) Android的GUI层并不复杂。它的复杂度类似于WGUI这类基于布局和对话框的GUI,与MFC、QT等大型框架没有可比性,甚至飞漫魏永明的MiniGUI都比它复杂许多。您也许会问,这样简单的GUI如何实现浏览器呢?原因很简单,浏览器有自己一套GUI。Android浏览器(WebKit)的GUI和Android的GUI实用同一套GDI——Skia,但GUI层...原创 2011-08-29 17:44:26 · 59 阅读 · 0 评论 -
Android 锁屏 DevicePolicyManager
[code="java"] /** * Make the device lock immediately, as if the lock screen timeout has * expired at the point of this call. * * The calling device admin must have requested...原创 2011-08-29 21:20:14 · 129 阅读 · 0 评论 -
Android PendingIntent解读
[code="java"]/** * A description of an Intent and target action to perform with it. Instances * of this class are created with {@link #getActivity}, * {@link #getBroadcast}, {@link #getService}...原创 2011-08-30 19:48:39 · 65 阅读 · 0 评论 -
Android Notification
[code="java"]// Notification管理器 nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); // 后面的参数分别是显示在顶部通知栏的小图标,小图标旁的文字(短暂显示,自动消失)系统当前时间(不明白这个有什么用) Notification notification = new ...原创 2011-08-30 20:55:03 · 69 阅读 · 0 评论 -
Android Intent之0001
[code="java"]Intent intent = new Intent(Intent.ACTION_GET_CONTENT);intent.setType("audio/*");startActivity(Intent.createChooser(intent, "Select music"));[/code]选择查找音乐原创 2011-08-30 21:04:17 · 53 阅读 · 0 评论 -
Android CURD联系人
[code="java"]search.setOnClickListener(new OnClickListener() { @Override public void onClick(View source) { // 定义两个List来封装系统的联系人信息、指定联系人的电话号码、Email等详情 final ArrayList names = new...原创 2012-01-07 16:30:54 · 125 阅读 · 0 评论