随笔分类 -  Android

摘要:时不时的使用android已经有一段时间了,但是还没有真正的彻底的理解Activity的生命周期。今天在看见了一篇文章,特地引用过来学习.感谢笔者。Android activity的生命周期activity类处于android.app包中,继承体系如下:1.java.lang.Object2.a... 阅读全文
posted @ 2015-05-27 19:18 平林新袖 阅读(208) 评论(0) 推荐(0)
摘要:Android下调用收发短信邮件等1,调web浏览器Uri myBlogUri = Uri.parse("http://xxxxx.com");returnIt = new Intent(Intent.ACTION_VIEW, myBlogUri);2,地图Uri mapUri = Uri.pars... 阅读全文
posted @ 2015-03-11 19:30 平林新袖 阅读(138) 评论(0) 推荐(0)
摘要:当使用android的AVD时提示以下错误:Starting emulator for AVD 'NexusOne'ERROR: 32-bit Linux Android emulator binaries are DEPRECATED, to use them you will hav... 阅读全文
posted @ 2014-12-10 08:05 平林新袖 阅读(539) 评论(0) 推荐(0)
摘要:PendingIntentpendingIntent字面意义:等待的,未决定的Intent。要得到一个pendingIntent对象,使用方法类的静态方法getActivity(Context, int, Intent, int),getBroadcast(Context, int, Intent,... 阅读全文
posted @ 2014-08-27 16:34 平林新袖 阅读(312) 评论(0) 推荐(0)
摘要:(1)首先是Activity的简单跳转: 1)、Activity的切换一般是通过Intent来实现的,Intent是一个Activity到达另一个Activity的引路者,它描述了起点(当前Activity)和终点(目标Activity)。一个简单Intent实现如下: (个人计较喜欢直接定义的方... 阅读全文
posted @ 2014-07-02 20:38 平林新袖 阅读(333) 评论(0) 推荐(0)
摘要:相对布局(RalativeLayout)是指相对于其他部件或者父部件的布局方式。 1、相对于容器定位: android:layout_alignParentTop 将部件的顶部与容器的顶部对齐。 android:layout_alignParentBottom android:layout_alignParentLeft android:layout_alignParentRight android:layout_centerHorizontal 将部件放在容器的垂直居中 android:layout_centerVertical 水平居中 android:layout... 阅读全文
posted @ 2013-11-27 18:44 平林新袖 阅读(333) 评论(0) 推荐(0)
摘要:px:表示屏幕实际的像素。in:表示英寸。mm:毫米。pt:表示一个点,是屏幕的物理尺寸。dp:(与密度无关的像素)逻辑长度单位,在160dpi屏幕上,1dp = 1px = 1/160英寸sp:与字体缩放和密度无关的像素。 阅读全文
posted @ 2013-11-23 11:25 平林新袖 阅读(436) 评论(0) 推荐(0)