
Android
文章平均质量分 77
陈谏辉
开朗活泼,热爱运动,篮球打的好!
展开
-
Android调用系统各个功能控件 方法
显示网页: Uri uri = Uri.parse("http://www.google.com");Intent it = new Intent(Intent.ACTION_VIEW,uri);startActivity(it);代码显示地图: Uri uri转载 2011-09-24 20:51:06 · 1532 阅读 · 0 评论 -
PendingIntent 用处
在手机广播通告中,点击相应通告,启动Activity处理相应业务用到:NotificationManager.notify(random.nextInt(), notification);方法如下:public void notify(String notificationId, String apiKey, String title, String message, String uri原创 2012-01-20 10:39:33 · 1333 阅读 · 0 评论 -
Android TelephonyManager类用法
/****@author dingran*创建日期 2010-4-29 下午05:02:47**/package net.sunniwell.app;import android.app.Activity;import android.os.Bundle;import android.telephony.CellLocation;import android转载 2012-01-20 09:22:44 · 1098 阅读 · 0 评论 -
Android WebView开发
在Android手机中内置了一款高性能webkit内核浏览器,在SDK中封装为一个叫做WebView组件。 什么是webkit WebKit 是Mac OS X v10.3及以上版本所包含的软件框架(对v10.2.7及以上版本也可通过软件更新获取)。 同时,WebKit也是Mac OS X的Safari网页浏览器的基础。WebKit是一个开源项目,主要由KDE的KHTML修改而来并原创 2011-10-31 12:59:34 · 1637 阅读 · 0 评论 -
Android uses-permission大全
android.permission.ACCESS_CHECKIN_PROPERTIES允许读写访问”properties”表在checkin数据库中,改值可以修改上传( Allows read/write access to the “properties” table in the checkin database, to change values that get uploaded)转载 2011-10-12 20:29:02 · 634 阅读 · 0 评论 -
JSON Java解析
一。JSON多数组、多对象解析jsp文件 页面发送json字符串var people = { "programmers": [{ "firstName": "Elliotte", "lastName":"Harold","email": "elharo@macfaq.原创 2011-10-11 12:09:04 · 5723 阅读 · 2 评论 -
android LayoutInflater实际
LayoutInflater可以用户动态定制窗口布局:在实际开发种LayoutInflater这个类还是非常有用的,它的作用类似于findViewById(),不同点是LayoutInflater是用来找layout下xml布局文件,并且实例化!而findViewById原创 2011-10-09 11:57:39 · 763 阅读 · 0 评论 -
android存储方式ContentProvider
ContentProviderAndroid数据的四种存储方式SharedPreferences、SQLite、Content Provider和File ContentProvider是安卓平台中,在不同应用程序之间实现数据共享的一种机制。一个应用程序如果转载 2011-10-07 13:34:54 · 3335 阅读 · 0 评论 -
Android五个进程等级
Android五个进程等级 1、前台进程(Foreground process): 用户当前工作所需要的。一个进程如果满足下列任何条件被认为是前台进程: 正运行着一个正在与用户交互的活动(Activity对象的onResume()方法已经被调用)。 寄宿了转载 2011-10-07 13:12:36 · 1880 阅读 · 0 评论 -
android.os.handler
android.os.handler相关知识整理Handler在android里负责发送和处理消息。它的主要用途有: 1)按计划发送消息或执行某个Runnanble(使用POST方法); 2)从其他线程中发送来的消息放入消息队列中,避免线程冲突(常见于更新转载 2011-10-07 12:28:43 · 11315 阅读 · 1 评论 -
存储方式SharePreferences
SharePreferencesAndroid数据的四种存储方式SharedPreferences、SQLite、Content Provider和File 除了SQLite数据库外,SharedPreferences也是一种轻型的数据存储方式,它的本质是基于XML文转载 2011-10-07 13:30:32 · 9422 阅读 · 1 评论 -
android intent 及 intent action全面描述
android 中intent是经常要用到的。不管是页面牵转,还是传递数据,或是调用外部程序,系统功能都要用到intent 。在做了一些intent的例子之后,整理了一下intent,希望对大家有用。由于intent内容太多,不可能真的写全,难免会有遗落,以后我会随时转载 2011-10-12 18:16:07 · 629 阅读 · 0 评论 -
Android EditView 属性大全
EditText继承关系:View-->TextView-->EditText EditText的属性很多,这里介绍几个:android:hint="请输入数字!"//设置显示在空间上的提示信息android:numeric="integer"//设置只能输入整数,转载 2011-10-13 23:27:18 · 9275 阅读 · 0 评论 -
NotificationManager和Notification用来设置通知
1. NotificationManager和Notification用来设置通知。 通知的设置等操作相对比较简单,基本的使用方式就是用新建一个Notification对象,然后设置好通知的各项参数,然后使用系统后台运行的NotificationManager服务将通知发出来。基本步骤如下:1)得到NotificationManager: Stri转载 2012-01-05 14:55:29 · 1063 阅读 · 0 评论