关于Service的生命周期,以及ServiceConnection接口时注意的东东 Html+Css
首先是Service的周期问题 The service will at this point continue running until Context.stopService() or stopSelf() is called. Note that multiple calls to Context.startService() do not nest
使用meminfo分析Android单个进程内存信息 Android
原文出处:使用meminfo分析Android单个进程内存信息点击打开链接可以使用adb shell dumpsys meminfo -a <process id>/<process name>来查看一个进程的memor
标签: android
android中的样式和主题 Android
有的时候我们一个页面要用很多个textview,而且这些textview的样式非常相像,这种情况下我们可以把这些样式抽取出来,然后在每个textview中引用即可,这样修改起来也方便。 我们来看一个简单的例子,在一个页面中有三个textvi...
标签: android
JUnit in android Android
android 测试框架是基于JUnit(www.junit.org)的,感兴趣的可以看看JUnit的源码,相信会对做unit test in android 大有帮助的。本文只是一篇介绍JUnit如何用于and
标签: android
关于Android的上下文“Context” Android
最近事情好多,又要准备毕业生晚会又有运动会的,心里好乱,根本没有心思接任何项目,只想大睡个三天三夜..... 不过生活还是要继续,今天决定深入学习一下Context并发篇博文~ 在Android应用结构框架里,根据作用域的不同,我们把它...
标签: android
android:ellipsize省略文字用法 Android
EidtText和Textview,当字符内容过长无法全部显示时可以用省略号来代替未显示的字符。android:ellipsize="start" 省略号在开头android:ellipsiz
标签: android
Andorid学习之路(七)之 Serializable接口和Parcelable接口 Html+Css
Activity之间的数据传输activity之间的数据传输我们可以通过Intent对象的putExtra方法,通过这个可以传输很多不同类型的数据,比如说字符串、整数、实数
Android 匿名启动activity 启动系统activity Android
一般我们使用Intent 进行activity跳转时我们都知道需要跳转的activity的名字,例如: Intent intent=new Intent(FirstActivity.this,SecondActitivy.class);
startActivity(inte
标签: android
Android酷炫实用的开源框架(UI框架)(转载,只为保存) Android
转自Android开发中文站 » Android酷炫实用的开源框架(UI框架),点击打开链接。转载该博客,只为保存,留下自己慢慢体验。1.Side-Menu.Android分
标签: android
android中注册页面实现 Android
自己动手做的第一个demo,简单的注册页面的实现,并且注册成功后返回注册信息,适用于android新手基本控件的使用。注册页面的实现:import android
标签: android