Android
文章平均质量分 55
无之心
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
android中的RadioButton和CheckBox的简单用法
RadioButton: RadioButton要放在RadioGroup中,点击切换产生的事件监听是 比如性别 RadioGroup.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener()原创 2011-10-11 01:42:24 · 1004 阅读 · 0 评论 -
android中的broadcastReceiver
主要代码 package com.bro; import android.app.Activity; import android.app.Dialog; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import转载 2012-03-15 15:24:15 · 544 阅读 · 0 评论 -
用Intent调用系统中经常被用到的组件
1,web浏览器 Uri uri= Uri.parse("http://kuikui.javaeye.com"); returnIt = new Intent(Intent.ACTION_VIEW, uri); 2,地图 Uri mapUri = Uri.parse("geo:38.899533,-77.036476"); returnIt = new Intent(Intent.ACT转载 2012-03-15 15:22:22 · 369 阅读 · 0 评论 -
media player
MusicActivity package com.audio; import android.app.Activity; import android.media.MediaPlayer; import android.os.Bundle; import android.view.View; import android.widget.ImageButton; import原创 2012-03-15 10:43:06 · 443 阅读 · 0 评论 -
Android drawable
A Drawable is a general abstraction for "something that can be drawn." Most often you will deal with Drawable as the type of resource retrieved for drawing things to the screen; the Drawable class转载 2012-03-14 12:06:49 · 427 阅读 · 0 评论 -
android动画实例
package src.com; import android.graphics.Canvas; import android.graphics.ColorFilter; import android.graphics.PixelFormat; import android.graphics.drawable.Drawable; public class ProxyDra原创 2012-03-14 15:43:36 · 1406 阅读 · 0 评论 -
android中的图形图像-访问图片drawable
一、如何获取 res 中的资源 数据包package:android.content.res 主要类:Resources 其主要接口按照功能,划分为以下三部分: getXXXX() 例如: int getColor(int id) Drawable getDrawable(int id) String getString(int id) 直接获取res中存放的转载 2012-03-13 14:12:35 · 622 阅读 · 0 评论 -
网址
实例:http://www.cnblogs.com/aimeng/archive/2012/03/13/2393244.html原创 2012-03-13 14:01:01 · 404 阅读 · 0 评论 -
drawable(hdpi,ldpi,mdpi)
这个主要是为了支持多分辨率的. hdpi里面主要放高分辨率的图片,如WVGA (480x800),FWVGA (480x854) mdpi里面主要放中等分辨率的图片,如HVGA (320x480) ldpi里面主要放低分辨率的图片,如QVGA (240x320) 系统会根据机器的分辨率来分别到这几个文件夹里面去找对应的图片.转载 2012-03-13 12:06:51 · 331 阅读 · 0 评论 -
android中的context简介
在Android系统中,有很多的service,也就是服务。 我们的程序如果用到系统功能,一般都是调用服务间接完成的。 也就是在Android系统中存在许多C/S架构。 而context的作用,就是android应用连接service的桥梁。 比如Activity中有一个方法,getSystemService()。 这个方法调到最后,实际上是调用的ContextImpl的getSystemServ转载 2012-03-13 11:36:47 · 654 阅读 · 0 评论 -
AlertDialog的简单实例
package src.com; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.os.Bundle; import android.view.View; import android.view.原创 2012-03-07 10:58:45 · 920 阅读 · 0 评论 -
入口文件设置
在AndroidManifest.xml文件中设置,如下: android:name="com.view.Animation2" android:label="@string/app_name" >原创 2012-02-16 15:32:04 · 417 阅读 · 0 评论 -
listView的简单用法
需要两个xml main.xml android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"原创 2011-10-11 14:58:17 · 334 阅读 · 0 评论 -
关于android中的像素单位
最好用dip,不要用px。原创 2011-09-21 23:14:48 · 314 阅读 · 0 评论 -
android中的activity以弹出窗的形式出现
activity以窗口形式呈现: 在AndroidManifest.xml中进行一个theme配置: 如:原创 2011-10-10 02:14:28 · 6689 阅读 · 0 评论 -
android中的Intent于Activity的数据传送
先记录下简单的传送方式 main.xml android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_p原创 2011-10-09 18:12:15 · 724 阅读 · 0 评论 -
android中post和get两种方式发送请求
main.xml android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" >原创 2011-10-09 01:31:44 · 1982 阅读 · 0 评论 -
android中的生命周期简介
1.启动一个activity,默认会按顺序执行onCreate(),onStart(),onResume()方法。 oncreate方法:默认创建布局等 onStart()方法:当activity可以被用户看到的时候调用 onResume()方法:原创 2011-10-09 23:26:15 · 533 阅读 · 0 评论 -
反查KML
http://www.mygeoposition.com/ 提供选定输入地理位置后反查KML值的功能原创 2011-10-07 22:50:04 · 452 阅读 · 0 评论 -
文件下载
使用http下载文件,并将文件写入到手机上的SD卡上 xml:中两个button按钮 com.download文件夹下的activity代码: package com.download; import android.app.Activity; impo原创 2011-10-15 01:59:57 · 432 阅读 · 0 评论 -
HandlerThread实现真正的异步的简单实例,用到了Bundle对象
bundler的机制相当于Map集合 主要存储数据的 一般多用于Activity之间的跳转 数据的传递 activity代码: package com.handler; import android.app.Activity; import android.o原创 2011-10-14 22:37:05 · 1184 阅读 · 2 评论 -
线程的同步与异步
package com.handler; import android.app.Activity; import android.os.Bundle; import android.os.Handler; public class HanderThreadTest原创 2011-10-14 21:58:16 · 378 阅读 · 0 评论 -
handler的最基本用法
当用户点击一个按钮时如果执行的是一个常耗时操作的话,处理不好会导致系统假死,用户体验很差,而Android则更进一步,如果任意一个Acitivity没有响应5秒钟以上就会被强制关闭,因此我们需要另外起动一个线程来处理长耗时操作,而主线程则不受其影响,在耗时操作完结发送消息给主线程原创 2011-10-13 00:15:11 · 518 阅读 · 0 评论 -
handler实例,progressbar
xml android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > a原创 2011-10-13 02:14:55 · 294 阅读 · 0 评论 -
android中的进度条的最基本用法
xml: android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" >原创 2011-10-11 02:38:02 · 642 阅读 · 0 评论 -
android中对json的解析网址
android解析不同json格式的网址:http://www.congci.com/item/android-expandablelistview原创 2011-09-25 13:37:22 · 448 阅读 · 0 评论
分享