
Android笔记
文章平均质量分 66
记录学习Android的过程,包括知识和遇到的BUG,大家一起交流学习。
ruzhuxiaogu
人如果没有梦想,和咸鱼有什么区别。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Mac: Android studio+VirtualBox+Genymotion
mac android studio+Genymotion原创 2015-07-21 17:19:30 · 1991 阅读 · 0 评论 -
Android控件:RadioButton(单选按钮)
首先,在布局文件中注册RadioGroup,图中两个RadioButton为一个RadioGroup。 activity_main.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"原创 2015-07-23 15:48:09 · 28842 阅读 · 0 评论 -
Android 控件:CheckBox
首先,在布局文件中注册CheckBox activity_main.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_原创 2015-07-23 16:08:18 · 1424 阅读 · 0 评论 -
android.os.NetworkOnMainThreadException的解决方案
首先,确定AndroidManifest.xml中 其次,这次异常的抛出是因为有一个网络操作试图占用主线程,我们建立一个新线程,异步进行即可,代码如下: Thread thread = new Thread(new Runnable(){ @Override public void run() {原创 2015-08-04 10:38:59 · 889 阅读 · 1 评论 -
Android:HttpGet与HttpPost
AndroidManifest,xml activity_main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_widt原创 2015-08-04 12:51:39 · 1038 阅读 · 0 评论 -
Android:Eclipse 安装Genymotion插件的时候出现 There are no categorized items
解决方法: 将下面红框“Group items by category” 取消勾选就OK 了。原创 2015-08-07 17:45:31 · 4660 阅读 · 3 评论