- 博客(20)
- 资源 (19)
- 收藏
- 关注
原创 NotificationManager的使用
<br />main.xml<br /><?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" >
2011-04-25 22:54:00 1546
原创 Linkify的使用
<br />main.xml<br /><?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" >
2011-04-24 21:58:00 705
原创 Matrix的使用 图像的方法缩小
<br />main.xml<br /> <br /><?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
2011-04-21 23:17:00 1164
原创 ProgressBar的使用
<br />main.xml<br /><?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" >
2011-04-19 22:08:00 2768
原创 DatePicker 和 TimePicker的使用
<br />main.xml<br /><?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" >
2011-04-17 22:03:00 978
原创 AnalogClock与Handler的使用
<br />main.xml<br /><?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" >
2011-04-17 21:27:00 855
原创 AutoCompleteTextView控件的使用
<br /> <br />An editable text view that shows completion suggestions automatically while the user is typing. The list of suggestions is displayed in a drop down menu from which the user can choose an item to replace the content of the edit box with.<br />T
2011-04-17 20:27:00 803
原创 android简单的文件检索
<br />首先main.xml<br /><?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
2011-04-16 23:15:00 1335
原创 动态添加删除 Spinner内容
<br />main.xml<br /><?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" >
2011-04-16 22:54:00 3684
原创 自定义Theme 与 使用
新建color.xml文件#FF0000FF#FFC2CE99#FF0000FF#FFFF0000#FFFFFFFF#FFFFC8FF#FF008800这里定义要使用到颜色新建style.xml
2011-04-13 21:05:00 1946
转载 android常用intent的方法
<br />1,调web浏览器<br /><br />Uri myBlogUri = Uri.parse("http://kuikui.javaeye.com");<br /><br />returnIt = new Intent(Intent.ACTION_VIEW, myBlogUri);<br /><br />2,地图<br /><br />Uri mapUri = Uri.parse("geo:38.899533,-77.036476");<br /><br />returnIt = new Int
2011-04-13 16:05:00 1142
原创 ProgressDialog的使用
<br /> <br />A dialog showing a progress indicator and an optional text message or view. Only a text message or a view can be used at the same time.<br />The dialog can be made cancelable on back key press.<br />The progress range is 0..10000.<br /> <br />
2011-04-11 22:15:00 103
原创 Gallery的使用 以及 AlertDialog的使用
直接贴代码 和效果:strings.xmlHello World, GalleryActivity!GalleryActivity关于关闭确定main.xml
2011-04-10 20:58:00 1053
原创 Unparsed aapt error(s)错误的处理方法 以及 音乐播放
<br /><br /> <br /> <br />方法1:删除gen目录下的R.java,然后build project.<br />方法2: 点 Project--------->clean..<br /> <br />错误发生方法:<br />选中xml文件 点击run,会在res/layout下生成同名.out.xml文件,删除之,就会这样错误。<br /> <br /> <br /> <br />音乐播放引入的包:<br />importandroid.media.MediaPlayer;
2011-04-09 21:49:00 179
转载 Android 常见错误和技巧
<br />1、无法使用网络 :Permission denied(maybe missing internet permission)<br /><br /> 答:在AndroidMainifest.xml中增加允许使用网络选项(结束标签之后>):<br /><br />Java代码:<br /><br />uses-permission android:name="android.permission.INTERNET" />复制代码<br /> 2、找不到activity类
2011-04-08 14:25:00 1317
原创 Invalid file name: must contain only [a-z0-9_.]
<br />今天晚上学习android居然遇到这样的错误。找了半天也不知道是什么原因,太怪自己不仔细了。<br />遇到这种情况到原因:新建一个xml文件。保存就出现下面的问题。<br />意思是说:filename不合法。<br />我检查了一下没发现有什么错的。然后又一个标签一个标签的检查,也没发现错的。<br />后来才注意到最后面的正则表达式:意思是 文件名必须是"小写字母"," 0~9"的数字,下划线" —" 和"." <br />[2011-04-07 22:24:57 - LayoutActi
2011-04-07 22:45:00 103540 6
原创 更改Textiew背景色和字体颜色
定义颜色:新建drawable.xml文件#FFFFFFFF#FFFF0000颜色的定义#FFFFFFFF:前两位代表透明度,后面到代表R。G,B。然后就可以在activity中这样使用: Resources resource = this.getResources(); Drawable drawable = resource.getDrawable(R.drawable.red); TextView secondView = (TextView)find
2011-04-07 20:34:00 1379 1
原创 activity使用事项
首先看一下activity的生命周期:There are two methods almost all subclasses of Activity will implement:onCreate(Bundle) is where you initialize your activity. Most importantly, here you will usually call setContentView(int) with a layout resource defining your UI, and
2011-04-06 20:44:00 636
指针经验总结(与数组的区别)
2011-02-28
makefile详解
2011-02-24
android 九宫格数独游戏
2011-01-18
android 连连看
2011-01-18
android 资源管理器
2011-01-18
短信PDU编码解码类
2008-10-05
Linux内核情景分析.part3.rar
2008-08-24
Linux内核情景分析.part2.rar
2008-08-24
Linux内核情景分析.part1.rar
2008-08-24
ktorrent
2008-08-24
multiget
2008-08-24
Discuz
2008-08-24
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人