Android开发
afaye_
这个作者很懒,什么都没留下…
展开
-
service生命周期
一.服务分两种启动和绑定:1:本地服务 Local Service 用于应用程序内部。在Service可以调用Context.startService()启动,调用Context.stopService()结束。 在内部可以调用Service.stopSelf() 或 Service.stopSelfResult()来自己停止。无论调用了多少次startService(),都只需调用一次 stop原创 2017-04-15 14:24:37 · 598 阅读 · 0 评论 -
intent的概念及其应用
分类:分为显式intent与隐式intent:显式intent: 指明要启动的activity的类的定义 startActivity(new Intent(MainActivity.this,MyAty.class))隐式intent: 通过系统筛选机制声明intent语法1:startActivity(new Intent(“asijdfdfsdfsdsdffsdcod”))语法2: 同原创 2017-04-15 14:03:52 · 1200 阅读 · 0 评论 -
activity跳转&传参
一.跳转到另一个网页上new Intent(Intent .ACTION_VIEW,Uri.parse(“http://baidu.com“))二.跳转到另一个activityIntent i = new Intent(MainActivity.this,AnotherAty.class); 情况一:传字符串 情况二:传数据包情况三:传递值对象情况四:获取activity的返回值原创 2017-04-15 14:14:08 · 546 阅读 · 0 评论 -
activity四种启动模式
1.standard 2.singleTop3.singleTask4.singleInstance原创 2017-04-15 14:15:36 · 244 阅读 · 0 评论 -
activity生命周期
1.图示 2.举例:情况一: 回到桌面:onPause()——》onStop() 重新回到应用:onRestart()——》onStart()——》onResume()情况二: 按后退键:onPause()——》onStop()——》onDestroy() 重新回到应用:onCreate——》onStart()——》onResume()情况三:两个不透明的activity之间跳转时(两原创 2017-04-15 14:20:28 · 199 阅读 · 0 评论 -
Android:LinearLayout布局中Layout_weight的深刻理解
转载自[http://blog.csdn.net/chy800/article/details/46397927]1. wrap_content<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" and转载 2017-05-23 15:40:16 · 297 阅读 · 0 评论 -
Android studio打开DDMS时报错"DDMS Heap updates are NOT ENABLED for this client"
1.错误 “DDMS Heap updates are NOT ENABLED for this client” 截图 2.解决方案 3.具体使用参考 [http://www.cnblogs.com/devinzhang/archive/2011/12/18/2291592.html]原创 2017-05-04 11:16:14 · 1263 阅读 · 0 评论 -
Android TextView 开源控件大全
转载自[http://blog.csdn.net/u011904605/article/details/53460449]Android开源控件搜集—-Text ViewNote:本篇博客长期维护更新,欢迎各位网友共同合作,共享知识与技术。本篇博客主要搜集个人任务比较优秀的Android开源控件,大多来自github,并附上链接,自己学习之余,亦希望于大家有所帮助。Android的控件还算比较多,转载 2017-05-25 13:35:16 · 1152 阅读 · 0 评论 -
最新Android系统版本与API等级对应关系表
转载自[http://www.cnblogs.com/rencm/p/5315353.html]从Android官网拷过来的,方便查阅。。。官网地址:https://developer.android.com/guide/topics/manifest/uses-sdk-element.html 什么是 API 级别? API 级别是一个对 Android 平台版本提供的框架 API 修订版进行唯转载 2017-07-30 14:09:59 · 2644 阅读 · 0 评论