自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(37)
  • 资源 (23)
  • 收藏
  • 关注

原创 android自定义控件

自定义控件 TitleBar实现步骤: 1.先写好一个公共的自定义控件布局文件 custom_widget.xml2.在其它布局文件里引用自定义控件(PublicTitleBar) activity_custom.xml3.写自定义控件的类,主要是提供一些方法 PublicTitleBar.java4.在 activity 里面设置自定义控件 文字/点击事件等 MainAc...

2012-10-24 00:41:08 135

原创 ratingBar demo

关于 ratingBar参考 资料写的demohttp://www.cnblogs.com/over140/archive/2010/11/18/1880391.html写道<RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_...

2012-10-18 23:54:06 183

原创 Android系统在超级终端下必会的命令大全

[教程] Android系统在超级终端下必会的命令大全 Android系统在超级终端下必会的命令大全http://bbs.189store.com/thread-44928-1-1.htmlhttp://bbs.189store.com/forum.php?mod=viewthread&tid=44928 所有命令都是运用超级终端下的BUSYBOX工具集。以下简述busyb...

2012-10-05 11:09:24 190

转载 眼睛跳的预兆

眼睛跳的预兆2009-05-16 18:52转载:http://hi.baidu.com/??%C0%F6%C9%E1/blog/item/7868e4ddc10c00a9cd11660f.html子时(23点—01点前):左有贵人,右有饮食。丑时(01点—03点前):左有忧人,右有人恩。寅时(03点—05点前):左远人来,右若事至。卯时(05点—07点前):左贵客

2012-06-05 13:12:18 1645

原创 viewPager

ViewPager   MainActivity 类 package org.aking86.armyknife;import java.text.DateFormat;import java.util.ArrayList;import java.util.List;import android.app.Activity;import android...

2012-03-21 06:12:00 100

原创 android应用程序中使用root权限

要在android应用程序中使用root权限,那么运行程序的设备必须具有root权限。    http://www.eoeandroid.com/code/2012/0320/973.html  写道 public static boolean runRootCommand(String command) { String TAG = ""; Process proce...

2012-03-21 06:00:08 144

原创 android应酬资料

android面试资料。收集的。 经历了十几次的面试,感觉面试题百变不离其宗;无非就是两方面的,技术和人力 ,当然两个方面多很主要的,先谈技术吧, 技术方面:一般是分笔试,和项目讲解,有的还会有机试 我在面试中遇到只遇到一次机试是在太极软件公司 一般是面试有3方面的,编程基础,SQL, 框架, 设计模式,(还有英语,脑筋急转 弯的题,企业文化,个人规划等等) 编程基础一般考以下几个方面 1...

2012-03-15 01:28:46 92

原创 android 资料

  1.view如何刷新?简述什么是双缓冲?android中实现view的更新有两个方法,一个是invalidate,另一个是postInvalidate,其中前者是在UI线程自身中使用,而后者在非UI线程中使用。 双缓冲闪烁是图形编程的一个常见问题。当进行复杂的绘制操作时会导致呈现的图像闪烁或具有其他不可接受的外观。双缓冲的使用解决这些问题。双缓冲使用内存缓冲区来解决由多重绘制操作造成的...

2012-03-15 01:08:36 99

原创 12生肖年份和星座组合图

鼠194819601972198419962008牛194919611973198519972009虎195019621974198619982010兔195119631975198719992011龙19521964197619882

2012-03-07 00:25:40 2262

原创 android杀进程方法

android杀进程方法源文: http://www.cnblogs.com/275095923/archive/2011/09/05/2167958.html  Android 结束进程,关闭程序的方法,经过这几天的调研,发现了Android结束一个进程的方法即采用下面这个类void android.app.ActivityManager.restartPackage(String ...

2012-02-29 01:15:07 218

转载 张学友1/2世纪演唱会巡演日程、曲目及新闻汇总

【广州站】张学友不断刷新吉尼斯世界纪录(11楼    http://www.jackybbs.com/thread-43212-1-1.html2010-2012 张学友1/2世纪演唱会巡演日程、曲目及新闻汇总(随时更新)    http://www.jackybbs.com/thread-23000-1-1.html 2月25日 广州 (2/2)世界巡演第六十

2012-02-28 22:03:45 2079

原创 android手机设置自己喜欢的铃声

存放手机铃声的的路径(三星 I8150 手机): /system/media/audio/ringtones /mnt/sdcard/media/audio/ringtones  其它铃声也在  media/audio/  下。存放自定铃声时,只要把喜欢的音乐制作成 .ogg 格式的,再复制到: /mnt/sdcard/media/audio/rington...

2012-02-26 18:51:52 362

原创 如何删除android手机自带的系统程序

操作步骤: 工具准备: DooMLoRD , (Superuser.apk) ,PC端的手机驱动,Root_Explorer(RE工具)1。在官网下载 DooMLoRD工具(  DooMLoRD_v4_ROOT-zergRush-busybox-su.zip  ),它自带了 Superuser.apk,但是那是免费版本的,Superuser似乎不好用,并且带...

2012-02-24 00:23:17 407

原创 Android Mms 源码结构

 Android Mms 源码结构源文:http://www.open-open.com/lib/view/open1327829239952.html 从软件的功能角度来讲,Mms分为对话列表,消息列表,短信编辑,彩信编辑,短信显示,彩信显示和配置。从实现的角度来看,它分为GUI展示层,发送/接收,彩信解析,彩信附件,信息数据等,这些分类对应着源码中的各种包。源码导航Mms的源码...

2012-02-20 01:12:03 189

原创 读取android手机流量信息

参考: http://www.2cto.com/kf/201109/102970.html android手机流量信息系统是LINUX内核 记录在/proc/self/net/dev文件里面 我们可以看看dev文件的格式 写道C:\>adb shell cat /proc/net/devInter-| Receive ...

2012-01-29 00:39:35 109

原创 android sign签名

主要是解决汉化(反编译)最后一步签名的问题,网上的sign.bat 不是很好用,没有解释清楚汉化方法参考: http://www.7xz.com/topic/3065 下载 sign包,解压后内容如下:libhgl.soREADMESign.batsignapk.jartestkey.pk8testkey.x509.pem修改 sign.bat 文件,内容如下,只要2行即可,多...

2012-01-29 00:11:52 412

原创 Android常用命令集锦

Android常用命令集锦  android开发中,比较常用的命令集锦, 在我们开发中难免用到Android命令,有些确实命令确实很有用处。  特别对于一些初学者来说,命令根本没有想过用也不会用,比如他们想安装一个.apk文件到模拟器上面,但是他们不会启动模拟器,他们只会先启动 Eclipse,然后在启动模拟器,这样不但浪费时间,而且Eclipse又占用你的内存。这也是我为什么总结这篇文章的原因了...

2012-01-28 23:43:15 108

原创 apktool jad

   简单的总结几个关键步骤: 一、工具准备:apktool , dex2jar , jd-gui二、使用dex2jar + jd-gui 得到apk的java源码 1.用解压工具从 apk包中取出 classes.dex 文件 用命令(dex2jar.bat classes.dex)得到一个 jar文件 2.用jd-gui反编译工具将得到.jar文件反...

2012-01-28 16:50:08 262

android 通用的功能集锦

android 通用的功能集锦:有些是自己整理写出来的,有些是从网上搜集整理的.  package com.king.commfunction;import java.io.File;import java.net.InetAddress;import java.net.NetworkInterface;import java.net.SocketExceptio...

2012-01-16 01:23:55 143

原创 如何获取Android手机中所有的短信

如何获取Android手机中所有的短信 转载自:  http://bbs.hiapk.com/thread-1315261-1-1.html Java代码: public String getSmsInPhone() { final String SMS_URI_ALL = "content://sms/"; final String SMS_...

2012-01-15 19:16:11 193

原创 android上一些方法的区别和用法的注意事项

转载自:http://www.eoeandroid.com/thread-153382-1-1.html Intent中的addflags()和setflags()的区别 addflags():Add additional flags to the intent (or with existing flags value). setflags():Set special flags co...

2012-01-02 16:11:35 98

原创 Android开发AsyncTask异步处理任务

         Android开发AsyncTask异步处理任务转自: http://android.tgbus.com/Android/tutorial/201109/369193.shtml  在开发Android应用时必须遵守单线程模型的原则:Android UI操作并不是线程安全的并且这些操作必须在UI线程中执行。在单线程模型中始终要记住两条法则:  1.不要...

2011-12-29 01:42:25 82

Android拦截HOME按键

Android 拦截 HOME 按键 主要就是重写 onAttachedToWindow() 和 onKeyDown(...,...) 这两个方法。 前者是起到拦截作用的,后者是监听到HOME按键事件后的动作,如果没动作可以不要 onKeyDown。还要注意,要加权限: <uses-permission android:name="android...

2011-12-19 22:05:10 348

原创 android 常用的收集

android 常用的收集转自:  http://gqdy365.iteye.com/blog/1066113获取当前剩余内存(ram)大小电池电量CPU信息开机时间 获取SD卡路径sdCard大小 [总大小,可用大小]内存(ram): 系统的版本信息Wifi MAC地址判断 SD 卡是否存在判断 SD 卡是否可写入判断 是否为飞行模式判断 网络是否已连接判断 应用程序是否存在开启/关闭 飞行模...

2011-12-16 17:44:37 106

原创 android网络连接

android网络连接 转载的选自:http://topic.csdn.net/u/20110215/15/ee286e76-214d-4df2-b535-4d6657fbe569.html 当一台手机存在多个活动网络时,想要控制程序通过指定的网络进行通讯,请问该如何编码? 譬如有台手机同时存在CMNET和WIFI网络,我想使用WIFI网络进行网络通讯而不使用CMNET网络...

2011-12-08 01:31:41 141

原创 TelephonyManager

 TelephonyManager phoneMgr=(TelephonyManager)this.getSystemService(Context.TELEPHONY_SERVICE);txtPhoneNumber.setText(phoneMgr.getLine1Number()); //txtPhoneNumber是一个EditText 用于显示手机号注:根据Android的安全机制,在...

2011-12-08 01:09:02 115

原创 andriod 优秀文章

  andriod 优秀文章http://helloandroid.iteye.com/ 

2011-12-06 18:32:00 70

原创 WIFI 资料

转载的 源网址:http://zhidao.baidu.com/question/254274709.html  WI-FI是WLAN的一个标准。WLAN最大(加天线)可以到5KM……不是WIFI可以比的…… 注意!IEEE 8021B和 8021B是两个不同的标准!!!IEEE802.11a标准是IEEE802.11b的后续标准,其设计初衷是取代802.11b标准,然而,工作于 2....

2011-12-05 23:46:15 244

原创 JAVA时间

import java.text.SimpleDateFormat;import java.util.Date;public class TestTime2 {        public static void main(String[] args) {        Date date = new Date();     // 获取时间        S...

2011-12-04 19:45:46 91

原创 android网络侦听

//   ConnectivityManager.CONNECTIVITY_ACTION            IntentFilter filter = new IntentFilter("android.net.conn.CONNECTIVITY_CHANGE");            // filter.addAction(""); // Attribute.PAGENAME ...

2011-11-11 17:53:19 93

原创 Android中的Intent详细讲解

转自: http://www.hiapk.com/thread-7959-1-1.html在一个Android应用中,主要是由四种组件组成的,这四种组件可参考“Android应用的构成”。而这四种组件是独立的,它们之间可以互相调用,协调工作,最终组成一个真正的Andr

2011-09-09 00:48:19 655

转载 Android Intent 大全

Android Intent 大全    转自: http://www.cnblogs.com/MarsGG/articles/1986958.html    android 中intent是经常要用到的。不管是页面牵转,还是传递数据,或是调用外部程序,系统功

2011-09-09 00:43:39 486

转载 android电话应用程序概述

android电话应用程序概述一.总览1.phone应用主界面2.拨出电话流程3.接入电话流程二.phone应用主界面phone应用程序的主界面包括”phone”,”Calllog“,“Contacts”,”Favorites”四个部分组成。Phone

2011-09-08 07:48:10 765

转载 android 通话涉及的类分析

通话涉及的类分析1 OutgoingCallBroadcaster.java点击拨号盘拨打按钮后,进入通话的Phone包。此时首先进入的函数是OutgoingCallBroadcaster.java,该类是一个Activity。由activity的生命周期可知

2011-09-08 02:03:07 1995

原创 测试 StringBuffer

public class TestStringBuffer {    /**     * @param args     */    public static void main(String[] args) {        TestStringBuf

2011-09-05 02:04:24 396

原创 android学习:ExpandableListView的运用

转自:http://www.cnblogs.com/pengwang/archive/2011/07/04/2097677.htmlandroid中有一种expandablelistview,可以扩展的listview,就是那种点击一下可以扩展出子项,再点一下收缩回去

2011-09-05 01:24:36 620

原创 android关于应用程序退出后Service重启

为了退出所有的 Activity (退出系统) ,关闭程序运行以下代码System.out.println(" ---- system out ...");Intent startMain = new Intent(Intent.ACTION_MAIN);startMain.addCategory(Intent.CATEGORY_HOME);startMain.setFlags

2011-09-04 20:26:54 3948 4

JDK_API_1_6_zh_CN

JDK_API_1_6_zh_CN

2013-08-12

menu-4.7z点餐系统

android 点餐系统. 辅助代码。自己用的,请勿下载

2013-06-08

三星刷机包 I8150 update

三星i8150 终极root教程 所有ROM刷入均可ROOT,下了顶起,让更多人分享 使用方式: ㈠、 下载上述文件后,不可解压,直接放在手机的/sdcard目录下,不是你的那个4G三星内存卡里 ㈡、手机关机后,同时按住:音量上键+HOME(方形键)+开机键,当手机开机出现SAMSUNG后,松开开机键,其余两个键千万别放,等待手机直到出现到机器人和盒子的界面后放开所有键,再按HOME左边的虚拟键,屏幕变暗,进入Recovery模式。 ㈢、用音量上下键进行选择,选到:apply update from sdcard ,按HOME确定。 ㈣用音量上下键进行选择,选到:update.zip ,按HOME确定,此时会开始ROOT,一段时间后(几秒钟) ㈤、用音量上下键进行选择,选到:reboot system now ,按HOME确定,手机重启,ROOT完毕!!!

2012-10-07

andorid-sdk-windows.tools

android, sdk, andorid-sdk_r17-windows, tools ,解压放到andorid-sdk_r-windows目录下。配合platform-tools, ADT-17使用

2012-04-16

ADT-17.0.0

android 开发工具 ADT-17.0.0.zip

2012-04-15

android-sdk_r17-windows.zip

android-sdk_r17-windows.zip

2012-04-15

droiddraw布局工具

droiddraw 21 ,android 界面布局设计工具

2012-03-28

SAMSUNG_USB_Driver_for_Mobile_Phones_1.4.4.0

SAMSUNG_USB_Driver_for_Mobile_Phones_1.4.4.0 驱动程序

2012-03-26

android api,demo

很多的官方demo,api,超值的啊。 animation ApiDemos.java ApiDemosApplication.java app appwidget content graphics media os text view

2012-03-05

OSGi实战资料

很好的OSGi资料,有pdf文档资料,有代码 demo.很值得。

2012-02-14

Professional.Android.2.Application.Development.(Wrox,.2010,.0470565527).pdf

Professional.Android.2.Application.Development.(Wrox,.2010,.0470565527).pdf 共737页。20,598KB

2011-09-14

Beginning.Android.2.(Apress,.2010,.1430226293).pdf

Beginning.Android.2.(Apress,.2010,.1430226293).pdf 很好的一本英文资料,417页.书名: Begin the journey toward your own successful Android 2 applications Beginning.Android.2. Contents at a Glance Contents at a Glance .............................. iv Contents.........v About the Author.................................. xiii Acknowledgments ................................xiv Preface...................................................xv Chapter 1: The Big Picture ....................... 1 Chapter 2: Projects and Targets .............. 5 Chapter 3: Creating a Skeleton Application ....................................................17 Chapter 4: Using XML-Based Layouts.... 23 Chapter 5: Employing Basic Widgets ..... 29 Chapter 6: Working with Containers...... 39 Chapter 7: Using Selection Widgets....... 59 Chapter 8: Getting Fancy with Lists....... 75 Chapter 9: Employing Fancy Widgets and Containers ....................................95 Chapter 10: The Input Method Framework ...................................................117 Chapter 11: Applying Menus................ 125 Chapter 12: Fonts................................ 137 Chapter 13: Embedding the WebKit Browser................................................141 Chapter 14: Showing Pop-Up Messages.......................................................149 Chapter 15: Dealing with Threads ....... 155 Chapter 16: Handling Activity Life Cycle Events ...........................................167 Chapter 17: Creating Intent Filters ...... 171 Chapter 18: Launching Activities and Subactivities .....................................177 Chapter 19: Handling Rotation............. 185 Chapter 20: Working with Resources .. 197 Chapter 21: Using Preferences ............ 213 Chapter 22: Managing and Accessing Local Databases ...............................225 Chapter 23: Accessing Files................. 237 Chapter 24: Leveraging Java Libraries 245 Chapter 25: Communicating via the Internet................................................253 Chapter 26: Using a Content Provider.. 259 Chapter 27: Building a Content Provider ......................................................265 Chapter 28: Requesting and Requiring Permissions ....................................275 Chapter 29: Creating a Service ............ 279 Chapter 30: Invoking a Service............ 285 Chapter 31: Alerting Users via Notifications.................................................289 Chapter 32: Accessing Location-Based Services..........................................295 Chapter 33: Mapping with MapView and MapActivity..................................301 Chapter 34: Handling Telephone Calls . 311 Chapter 35: Development Tools ........... 315 Chapter 36: Handling Multiple Screen Sizes.................................................331 Chapter 37: Dealing with Devices........ 353 Chapter 38: Handling Platform Changes.......................................................359 Chapter 39: Where Do We Go from Here? .....................................................367 Index ..........369 v Contents Contents at a Glance..........................iv Contents ........ v About the Author ..................................xiii Acknowledgments..........................................................................xiv Preface .........xv Chapter 1: The Big Picture............................1 Challenges of Smartphone Programming .............1 What Androids Are Made Of.................................2 Stuff at Your Disposal ..........................................3 Chapter 2: Projects and Targets.................5 Pieces and Parts ..................................................5 Creating a Project ................................................6 Project Structure..................................................6 Root Contents .................................................6 The Sweat Off Your Brow................................7 And Now, the Rest of the Story........................7 What You Get Out of It.....................................8 Inside the Manifest ..............................................8 In the Beginning, There Was the Root, And It Was Good ......................................9 Permissions, Instrumentations, and Applications (Oh My!) .................................9 Your Application Does Something, Right? .....10 Achieving the Minimum ................................11 Version=Control ............................................12 Emulators and Targets.......................................12 Virtually There...............................................12 Aiming at a Target ........................................14 CONTENTS vi Chapter 3: Creating a Skeleton Application..........17 Begin at the Beginning.......................................17 Dissecting the Activity .......................................18 Building and Running the Activity......................20 Chapter 4: Using XML-Based Layouts ..................23 What Is an XML-Based Layout? ..........................23 Why Use XML-Based Layouts? ...........................24 OK, So What Does It Look Like?.........................24 What’s with the @ Signs?..................................25 And How Do We Attach These to the Java?........25 The Rest of the Story .........................................26 Chapter 5: Employing Basic Widgets....................29 Assigning Labels................................................29 Button, Button, Who’s Got the Button? ...............30 Fleeting Images .................................................31 Fields of Green. Or Other Colors. ........................32 Just Another Box to Check.................................33 Turn the Radio Up ..............................................35 It’s Quite a View .................................................37 Useful Properties ..........................................37 Useful Methods .............................................38 Colors............................................................38 Chapter 6: Working with Containers ....................39 Thinking Linearly ...............................................39 LinearLayout Concepts and Properties ..........40 LinearLayout Example...................................42 All Things Are Relative .......................................46 RelativeLayout Concepts and Properties .......47 RelativeLayout Example................................49 Tabula Rasa .......................................................51 TableLayout Concepts and Properties ...........52 TableLayout Example....................................53 Scrollwork..........................................................54 Chapter 7: Using Selection Widgets .....................59 Adapting to the Circumstances..........................59 Lists of Naughty and Nice ..................................60 Spin Control .......................................................63 Grid Your Lions (or Something Like That...) ........66 Fields: Now with 35% Less Typing! ....................69 Galleries, Give or Take the Art ............................72 Chapter 8: Getting Fancy with Lists .....................75 Getting to First Base ..........................................75 A Dynamic Presentation.....................................77 Better. Stronger. Faster. ....................................80 Using convertView ........................................80 Using the Holder Pattern...............................81 CONTENTS vii Making a List... ..................................................84 ...And Checking It Twice ....................................89 Adapting Other Adapters....................................94 Chapter 9: Employing Fancy Widgets and Containers................................... 95 Pick and Choose ................................................95 Time Keeps Flowing Like a River........................99 Making Progress..............................................101 Seeking Resolution ..........................................101 Put It on My Tab ...............................................102 The Pieces ..................................................103 The Idiosyncrasies ......................................103 Wiring It Together .......................................104 Adding Them Up..........................................106 Intents and Views .......................................109 Flipping Them Off.............................................109 Manual Flipping ..........................................110 Adding Contents on the Fly ..........................112 Automatic Flipping......................................113 Getting in Someone’s Drawer ...........................114 Other Good Stuff ..............................................116 Chapter 10: The Input Method Framework.........117 Keyboards, Hard and Soft ................................117 Tailored to Your Needs.....................................118 Tell Android Where It Can Go ............................121 Fitting In...........................................................123 Unleash Your Inner Dvorak ..............................124 Chapter 11: Applying Menus ................125 Menus of Options.............................................125 Creating an Options Menu ...........................125 Adding Menu Choices and Submenus .........126 Menus in Context .............................................127 Taking a Peek ..................................................128 Yet More Inflation.............................................133 Menu XML Structure ...................................133 Menu Options and XML...............................134 Inflating the Menu.......................................135 Chapter 12: Fonts ..............................137 Love the One You’re With.................................137 More Fonts.......................................................138 Here a Glyph, There a Glyph .............................140 Chapter 13: Embedding the WebKit Browser .....141 A Browser, Writ Small......................................141 Loading It Up....................................................143 Navigating the Waters......................................144 Entertaining the Client .....................................145 Settings, Preferences, and Options (Oh My!) ....147 CONTENTS viii Chapter 14: Showing Pop-Up Messages.............149 Raising Toasts..................................................149 Alert! Alert!.......................................................150 Checking Them Out..........................................151 Chapter 15: Dealing with Threads ..............155 Getting Through the Handlers ...........................155 Messages....................................................156 Runnables ...................................................158 Running in Place ..............................................159 Where Oh Where Has My UI Thread Gone?.......159 Asyncing Feeling..............................................159 The Theory ..................................................159 AsyncTask, Generics, and Varargs...............160 The Stages of AsyncTask............................160 A Sample Task ............................................161 And Now, the Caveats......................................164 Chapter 16: Handling Activity Life Cycle Events.167 Schroedinger’s Activity ....................................167 Life, Death, and Your Activity...........................168 onCreate() and onDestroy() ..........................168 onStart(), onRestart(), and onStop() .............169 onPause() and onResume() ..........................169 The Grace of State ...........................................169 Chapter 17: Creating Intent Filters ..............171 What’s Your Intent?..........................................171 Pieces of Intents .........................................172 Intent Routing .............................................172 Stating Your Intent(ions) ..................................173 Narrow Receivers ............................................174 The Pause Caveat ............................................175 Chapter 18: Launching Activities and Subactivities.................................... 177 Peers and Subs................................................177 Start ’Em Up.....................................................178 Make an Intent............................................178 Make the Call ..............................................178 Tabbed Browsing, Sort Of ................................182 Chapter 19: Handling Rotation ......................185 A Philosophy of Destruction.............................185 It’s All the Same, Just Different ........................185 Now with More Savings!..................................189 DIY Rotation .....................................................191 Forcing the Issue .............................................193 Making Sense of It All ......................................195 Chapter 20: Working with Resources.................197 The Resource Lineup .......................................197 String Theory ...................................................198 CONTENTS ix Plain Strings................................................198 String Formats ............................................198 Styled Text ..................................................199 Styled String Formats .................................199 Got the Picture? ...............................................202 XML: The Resource Way ..................................204 Miscellaneous Values ......................................206 Dimensions .................................................207 Colors..........................................................207 Arrays..........................................................208 Different Strokes for Different Folks .................208 Chapter 21: Using Preferences.....................213 Getting What You Want ....................................213 Stating Your Preference...................................214 And Now, a Word from Our Framework............214 Letting Users Have Their Say...........................215 Adding a Wee Bit o' Structure..........................219 The Kind of Pop-Ups You Like..........................221 Chapter 22: Managing and Accessing Local Databases.............................. 225 The Database Example ....................................225 A Quick SQLite Primer......................................227 Start at the Beginning......................................227 Setting the Table..............................................230 Makin’ Data......................................................230 What Goes Around Comes Around ....................232 Raw Queries................................................232 Regular Queries ..........................................232 Building with Builders.................................233 Using Cursors..............................................234 Data, Data, Everywhere ...................................235 Chapter 23: Accessing Files .....................237 You and the Horse You Rode in On ...................237 Readin’ ’n Writin’ .............................................240 Chapter 24: Leveraging Java Libraries ...........245 The Outer Limits...............................................245 Ants and JARs..................................................246 Following the Script.........................................246 ...And Not a Drop to Drink ................................250 Reviewing the Script........................................251 Chapter 25: Communicating via the Internet .....253 REST and Relaxation........................................253 HTTP Operations via Apache HttpClient ............254 Parsing Responses ..........................................255 Stuff to Consider ..............................................257 Chapter 26: Using a Content Provider .............259 Pieces of Me ....................................................259 CONTENTS x Getting a Handle ..............................................260 Makin’ Queries.................................................260 Adapting to the Circumstances........................261 Give and Take ..................................................263 Beware of the BLOB!........................................264 Chapter 27: Building a Content Provider ..........265 First, Some Dissection .....................................265 Next, Some Typing...........................................266 Creating Your Content Provider........................267 Step 1: Create a Provider Class ...................267 Step 2: Supply a Uri ....................................272 Step 3: Declare the Properties .....................272 Step 4: Update the Manifest ........................273 Notify-on-Change Support ...............................273 Chapter 28: Requesting and Requiring Permissions ................................... 275 Mother, May I?.................................................275 Halt! Who Goes There? ....................................276 Enforcing Permissions via the Manifest.......277 Enforcing Permissions Elsewhere ...............278 May I See Your Documents?............................278 Chapter 29: Creating a Service....................279 Service with Class ...........................................279 There Can Only Be One ....................................280 Manifest Destiny ..............................................281 Lobbing One Over the Fence............................282 Callbacks ....................................................283 Broadcast Intents........................................283 Where’s the Remote? And the Rest of the Code? ...............................................284 Chapter 30: Invoking a Service ...................285 The Ties That Bind ...........................................286 Catching the Lob..............................................287 Chapter 31: Alerting Users via Notifications .....289 Types of Pestering ...........................................289 Hardware Notifications ...............................290 Icons ...........................................................290 Seeing Pestering in Action...............................290 Chapter 32: Accessing Location-Based Services ........................................ 295 Location Providers: They Know Where You’re Hiding .........................................295 Finding Yourself ...............................................296 On the Move.....................................................297 Are We There Yet? Are We There Yet? Are We There Yet? .......................................298 Testing...Testing... ...........................................299 Chapter 33: Mapping with MapView and MapActivity ................................ 301 Terms, Not of Endearment...............................301 Piling On...........................................................302 The Bare Bones................................................302 CONTENTS xi Exercising Your Control....................................303 Zoom...........................................................304 Center .........................................................304 Rugged Terrain ................................................304 Layers upon Layers..........................................305 Overlay Classes...........................................305 Drawing the ItemizedOverlay......................305 Handling Screen Taps.................................307 My, Myself, and MyLocationOverlay .................307 The Key to It All ..........................308 Chapter 34: Handling Telephone Calls..............311 Report to the Manager ..............................311 You Make the Call!..............................312 Chapter 35: Development Tools.....................315 Hierarchical Management................................315 Delightful Dalvik Debugging Detailed, Demoed 321 Logging ...........................................322 File Push and Pull .................................323 Screenshots ...................................324 Location Updates ..............................325 Placing Calls and Messages ........................326 Put It on My Card ................................328 Creating a Card Image ................................328 Inserting the Card ...............................329 Chapter 36: Handling Multiple Screen Sizes ......331 Taking the Default............................................331 Whole in One.....................................332 Think About Rules, Rather Than Positions ...332 Consider Physical Dimensions....................333 Avoid Real Pixels...............................333 Choose Scalable Drawables ........................334 Tailor-Made, Just for You (and You, and You, and...).........................................334 Add <supports-screens>............................334 Resources and Resource Sets .....................335 Finding Your Size ..................................336 Ain’t Nothing Like the Real Thing......................337 Density Differs ............................................337 Adjusting the Density..................................337 Accessing Actual Devices ............................338 Ruthlessly Exploiting the Situation ...................339 Replace Menus with Buttons .......................339 Replace Tabs with a Simple Activity............340 Consolidate Multiple Activities....................340 Example: EU4You .............................340 The First Cut..............................340 Fixing the Fonts .............................346 Fixing the Icons..................................348 CONTENTS xii Using the Space..............348 What If It’s Not a Browser? ......................350 What Are a Few Bugs Among Friends?.............351 Chapter 37: Dealing with Devices.................353 This App Contains Explicit Instructions.............353 Button, Button, Who’s Got the Button? .............354 A Guaranteed Market ..............................355 The Down and Dirty Details ...................355 Archos 5 Android Internet Tablet .................355 Motorola CLIQ/DEXT....................................356 Motorola DROID/Milestone..........................356 Google/HTC Nexus One ...............................357 Motorola BACKFLIP .....................................357 Chapter 38: Handling Platform Changes ...........359 Brand Management .........................................359 More Things That Make You Go Boom..............360 View Hierarchy.......................360 Changing Resources ...............................361 Handling API Changes......................................362 Detecting the Version..................................362 Wrapping the API ............................362 Chapter 39: Where Do We Go from Here? ...........367 Questions—Sometimes with Answers .............367 Heading to the Source ..............................368 Getting Your News Fix......................................368 Index.......... 369

2011-09-14

五笔编码反查软件

查86版五笔 字根用的。www.jpwb.cc 下载的。

2011-09-09

b补充,android

b补充,android android demo

2011-09-05

jpwb70yh.tar

jpwb70yh.tar通用版本 xp/win7

2011-09-01

ExListView.rar

ListView 二级列表 android里面的。

2011-09-01

pn2202240_multilang.exe

文本编辑器,特别适合软件开发人员使用。支持 xml 彩色显示.

2011-09-01

EditPlus 2.zip

文本编辑器,常用于xml,编程时使用的。

2011-09-01

极品五笔2011英文标点

jpwb2011en.exe 极品五笔2011,默认是英文标点的,适合搞开发和英文的,还有经常使用英式标点的朋友们使用

2011-09-01

xml_socket_sqlConn

自己整理的一些文件。xml socket sqlConn。供参考使用。熟手略过.

2011-09-01

3G_Project主要的.zip

3G_Project主要的.zip 自己做的Demo,全通过.

2011-08-31

droiddraw-r1b19.zip

droiddraw-r1b19.zip 自己用的,相当好用。

2011-08-31

硬盘桌面背景图像设置

通过这个配置文件,可以设置打开C,D,E,F,G...盘的背景图像,效果非常好.也可以放在U盘里.打开盘后里面有背景色(背影图片可以改),再也不像以前那样的白色,太枯燥了.

2010-11-20

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除