随笔分类 -  android开发

摘要:1、android的四大组件的了大概功能 activity:负责显示界面,和用户交互。 service:运行在后台。 content provider:为程序app之间的数据访问提供接口。 broadcast:广播 2、组件的激活 activity、service、broadcast都是通过inte 阅读全文
posted @ 2016-01-23 15:30 shengyu_kmust 阅读(300) 评论(0) 推荐(0)
摘要:1、怎么实现android虚拟按键(回退和回到主界面) android 中如何模拟back键 2、怎么用局域网的方式(wifi或是网线)来调试android机 参考资料: http://www.ithao123.cn/content-8128788.html adb client, adb serv 阅读全文
posted @ 2016-01-22 20:49 shengyu_kmust 阅读(251) 评论(0) 推荐(0)
摘要:tabhost用两种方法方法一:Activity继承TabActivity后用getTabHost()方法来获取tabhost(前提:Activity的setContentView要删除,这样布局才能用TabActivity的默认布局,这样TabActivity的setup方法才不会出错),获取完后... 阅读全文
posted @ 2015-04-01 16:52 shengyu_kmust 阅读(221) 评论(0) 推荐(0)
摘要:1、activity 【Android的从零单排开发日记】之入门篇(四)——Android四大组件之Activity 两分钟彻底让你明白Android Activity生命周期(图文)! 2、service 【Android的从零单排开发日记】之入门篇(五)——Android四大组件之Service 阅读全文
posted @ 2014-11-13 13:52 shengyu_kmust 阅读(183) 评论(0) 推荐(0)
摘要:1、虚拟机运行出下面的错Failed to allocate memory: 8Failed to allocate memory: 8This application has requested the Runtime to terminate it in an unusual way.Pleas... 阅读全文
posted @ 2014-11-04 15:36 shengyu_kmust 阅读(168) 评论(0) 推荐(0)
摘要:1、理解android linux是由c语言和汇编语言写的操作系统,android是基于linux内核的操作系统。发者可以使用Java或C/C++开发Android应用。2、android环境搭建 参考资料:http://jingyan.baidu.com/article/bea41d437a4... 阅读全文
posted @ 2014-11-03 10:58 shengyu_kmust 阅读(198) 评论(0) 推荐(0)