随笔分类 -  android

国外比较好的android 开发论坛
摘要:http://www.anddev.org/http://stackoverflow.net/http://www.helloandroid.com/http://forum.xda-developers.com/ 阅读全文
posted @ 2013-01-16 21:14 静谧冬夜 阅读(513) 评论(0) 推荐(0)
android LayoutInflater用法
摘要:在实际开发中LayoutInflater这个类还是非常有用的,它的作用类似于findViewById()。不同点是LayoutInflater是用来找res/layout/下的xml布局文件,并且实例化;而 findViewById()是找xml布局文件下的具体widget控件(如Button、TextView等)。 具体作用: 1、对于一个没有被载入或者想要动态载入的界面,都需要使用LayoutInflater.inflate()来载入; 2、对于一个已经载入的界面,就可以使用Activiyt.findViewById()方法来获得其中的界面元素。 LayoutInflater 是一个抽.. 阅读全文
posted @ 2013-01-14 21:29 静谧冬夜 阅读(248) 评论(0) 推荐(0)
Android permission 访问权限大全
摘要:Android permission 访问权限大全Android Permission大全出自1.0 SDK中记录着新改变的访问权限许可。 程序执行需要读取到安全敏感项必需在androidmanifest.xml中声明相关权限请求, 完整列表如下: android.permission.ACCESS_CHECKIN_PROPERTIES 允许读写访问"properties"表在checkin数据库中,改值可以修改上传( Allows read/write access to the "properties" table in the checkin da 阅读全文
posted @ 2013-01-11 08:04 静谧冬夜 阅读(366) 评论(0) 推荐(0)
常用到的Intent的URI及其示例
摘要:一、打开一个网页,类别是Intent.ACTION_VIEW Uri uri = Uri.parse("http://www.android-study.com/"); Intent intent = new Intent(Intent.ACTION_VIEW, uri);二、打开地图并定位到一个点 Uri uri = Uri.parse("geo:52.76,-79.0342"); Intent intent = new Intent(Intent.ACTION_VIEW, uri);三、打开拨号界面,类型是Intent.ACTION_DIAL Uri 阅读全文
posted @ 2013-01-08 22:07 静谧冬夜 阅读(254) 评论(0) 推荐(0)
android基础知识
摘要:上层应用是用java来开发,底层使用的是Linux操作系统1.2android开发安装:JDK+ADT+Eclipse:现在android官网上已经提供集成的Eclipse开发软件。1.3开发原则:低版本开发高版本运行:主要是适应低版本的android操作系统原因:android操作系统是向上兼容的。1.4应用包名是android应用程序的唯一标识。1.5使用ADB指令来安装和卸载软件:安装:adbinstallc:\xxx.apk卸载:adbuninstall<应用包名>例子:adbuninstallcom.my.Mymap1.6开发目录结构补充:Assets文件下的文件不会被编 阅读全文
posted @ 2012-12-31 11:06 静谧冬夜 阅读(189) 评论(0) 推荐(0)
android短信发送模块主要代码
摘要:1.注册用户发送短信的权限<uses-permissionandroid:name="android.permission.SEND_SMS"/>2.核心代码Stringnumber=numberText.getText().toString();//电话号码Stringcontent=contentText.getText().toString();//内容SmsManagermanager=android.telephony.SmsManager.getDefault();//获得短信管理器ArrayList<String>texts=manag 阅读全文
posted @ 2012-12-31 11:01 静谧冬夜 阅读(208) 评论(0) 推荐(0)