自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(47)
  • 资源 (36)
  • 收藏
  • 关注

原创 Android实现ListView过滤功能,继承于BaseAdapter

在实际的开发中,有很多办法进行过滤,但是一般都是继承于BaseAdapter来进行数据的过滤 .在Activity中定义一个类,让它实现TextWatcher接口,然后再onTextChanged方法中去过滤。用常见的Pattern和match,来判断传入的参数时候符合列表中的数据,符合就加入一个新的列表中。

2014-04-16 10:42:23 668 1

原创 Android 模拟器调出中文输入法 .

在“Settings”->“Language & keyboard”->“Select language”,将语音设为“简体中文”。然后,在需要输入的地方,自然会弹出能输入中文的软键盘。

2014-04-16 10:24:23 1143 1

原创 there is no action mapped for namespace / and action

具体请去

2014-04-08 15:52:40 764

原创 Guice mail

Exception in thread "main" com.google.inject.ConfigurationException: Guice configuration errors:1) No implementation for org.springframework.mail.MailSender was bound.  while locating org.spri

2014-04-04 16:22:47 918

原创 maven tomcat eclipse

按照我写的文档:http://download.csdn.net/detail/u012242610/7136459工程下载的目录如下:http://download.csdn.net/detail/u012242610/7136473我用的ide是:eclipse-jee-juno-SR2-win32jdk 6maven:apache-maven-

2014-04-02 16:43:57 633

原创 Android 实现ListView的A-Z字母排序和过滤搜索功能,实现汉字转成拼音

关于这方面的文章在网上比比皆是,我这里是优化了网上下载的代码:1、如果用户在SIDEBAR中选择一个目前联系人中没有的字母的话,提示:2、用户在输入栏中输入了已经存在的联系人的 话,右边栏就隐藏:3、点击输入栏的X右边栏就再次显示:具体代码下载请到:http://download.csdn.net/detail/u012242610/7116997下载!

2014-03-29 16:39:09 631

原创 Unable to resolve target 'android-17'

在看过这个博客http://blog.csdn.net/xiaanming/article/details/12684155后,导入他的项目,就报题目上面的错误。我就把该项目下面的project.properties文件中的:target=android-17改成我目前的版本19就正常了。Unable to resolve target 'android-17'

2014-03-29 13:32:22 651

原创 AnalogClock

代码下载地址:http://download.csdn.net/detail/u012242610/6982559

2014-03-02 16:00:51 562

原创 androidgroup

用androidgroup实现的:代码下载地址:http://download.csdn.net/detail/u012242610/6959683

2014-02-25 20:42:41 521

原创 设置android的布局文件的背景颜色为黑色

在main.xml中应该这样写<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="verti

2014-02-25 20:38:41 15449

转载 Android入门第十五篇之ActivityGroup + GridView 实现Tab分页标签

学习了高手的代码后,自己建立了个项目。下载地址:http://download.csdn.net/detail/u012242610/6959683

2014-02-25 15:11:27 524

原创 怎样在sdcard文件夹下面放置图片?

2014-02-22 21:43:34 617

原创 android 发送短信

main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_heig

2014-02-22 21:33:53 524

原创 android 拨打电话

main.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_h

2014-02-22 21:03:04 579

原创 android 打开网页

main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_heig

2014-02-22 20:48:05 640

原创 android inten startActivity

代码下载:http://download.csdn.net/detail/u012242610/6949749

2014-02-22 19:59:06 545

原创 在继承了Activity的类里面调用cursor =this.getContentResolver().query报空指针错误

在执行query这个方法的时候,实际上面是根据配置文件中的:             android:name=".PersonContentProvider"             android:authorities="com.gao.provider.PersonContentProvider" />        的调用PersonContentProvider类里

2014-02-19 09:58:21 3178

原创 RuntimeException: Unable to start activity ComponentInfo java.lang.NullPointerException

问题描述02-17 08:27:47.772: E/AndroidRuntime(20629): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.gao.provider/com.gao.provider.MainActivity}: java.lang.NullPointerException 

2014-02-17 16:30:33 1267 1

原创 java.lang.RuntimeException: Unable to start activity ComponentInfo

问题描述:02-17 07:21:06.742: E/AndroidRuntime(3321): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.gao.provider/com.gao.provider.MainActivity}: android.database.sqlite.SQLiteExc

2014-02-17 16:28:41 1190

转载 ContentProvider的使用

以下文章都是根据:http://blog.chinaunix.net/uid-24129645-id-3758633.html这个地址的文章进行开发和描述的。在写这个代码的过程中,出现了 Caused by: java.lang.IllegalArgumentException: Unknown URL content://com.example.provider.studen

2014-02-16 19:51:19 603

原创 关于android开发连接数据库的问题

一般我们在java开发中,如果需要连接数据库的话,是需要知道以下要素的: 但是我发现在安卓开发中,似乎没看见这几个要素。。。它是直接新建一个数据库。也就是说在普通的JAVA开发中,数据库里面的库是必须存在的,再才能做后续的处理(CRUD)。不需要在JAVA代码中做判断是否存在该库。

2014-02-14 16:48:54 947

转载 Android网络开发中如何使用JSON进行网络通信

转载地址http://wenku.baidu.com/view/48e98303a6c30c2259019efd.html代码下载地址:http://download.csdn.net/detail/u012242610/6841253

2014-01-12 22:37:10 547

转载 将android sqlite数据表导出,然后找到了导出xls文件的方法

转载文章的地址是:http://blog.sina.com.cn/s/blog_aa0bd5950101nat2.html导出后的文件在代码地址在:http://download.csdn.net/detail/u012242610/6839725

2014-01-12 13:40:34 855

转载 Android 数据存储SQLite(ResultActivity)

根据地址:http://blog.csdn.net/tianfeng701/article/details/7606623来完成的代码截图:其中还报错了:01-11 12:34:23.384: E/AndroidRuntime(323): android.content.ActivityNotFoundException: Unable to find explicit a

2014-01-11 20:41:00 592

转载 Please ensure that adb is correctly located at adb.exe and can be executed.

http://wang-peng1.iteye.com/blog/1007450

2014-01-08 20:45:28 506

原创 Android scrollview 滚动条

下载代码:http://download.csdn.net/detail/u012242610/6803101

2014-01-03 11:42:32 488

原创 Android 焦点事件

代码下载地址:http://download.csdn.net/detail/u012242610/6800041

2014-01-02 16:21:17 487

原创 Android选择时间并且显示

下载地址:http://download.csdn.net/detail/u012242610/6799377

2014-01-02 14:50:34 506

原创 Adrorid级联下拉框

下载地址:http://download.csdn.net/detail/u012242610/6799121

2014-01-02 14:11:10 575

原创 明文显示密码

代码下载地址:http://download.csdn.net/detail/u012242610/6793041

2013-12-31 16:11:26 537

原创 显示Spinner中已经选中的项

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <TextView

2013-12-31 15:17:14 1475

原创 myeclipse 中的全局替换

点击 replace 后,会帮你查到所有的文件,然后跳到 Replace页面,在with 里面填上你要替换成的内容即可

2013-12-30 15:36:03 7931

原创 用Android 开发的一个加法计算器

如果有兴趣的话,请去http://download.csdn.net/detail/u012242610/6785625下载。。

2013-12-29 21:29:56 2496

原创 Caused by: java.lang.NumberFormatException: unable to parse '请输入第一个数字....' as integer

开始我写的代码是这样的:package org.lxh.demo;import android.app.Activity;import android.os.Bundle;import android.view.View;import android.view.View.OnClickListener;import android.widget.Button;import an

2013-12-29 21:21:20 1127

原创 开发Android 的时候需卸载自己写的软件

2013-12-29 18:56:45 584

原创 在Android 中设置xml 的文件的默认打开方式

Window -> Preferences -> General -> Editors -> File Associations File types: *.xmlAssociated editors:XML Editor*** -> Default如果是Android 开发的话,一般选择Android layout  editor ,点击ok完成配置!随便打开一个

2013-12-27 14:50:06 1269

原创 Program Files\android-sdk-windows\platform-tools\adb.exe' and can be executed.

我的R.java 回来了可是启动的时候报错:Android Launch![2013-12-27 11:14:37 - MyFirstAndroidProject] The connection to adb is down, and a severe error has occured.[2013-12-27 11:14:37 - MyFirstAndroidProject] You mus

2013-12-27 11:36:58 2929

原创 如何运行Android 程序

项目右键--Run as ---Android application

2013-12-27 11:19:09 779

原创 android生成的工程无R.java

我是在myeclipse里面选择windows--Android SDK Manage 把没安装的版本都安装,就好了。。

2013-12-27 11:04:10 717

原创 flex iframe 嵌套HTML,as和js间的交互

具体代码请到我的资源页面去下载运行后的截图是:点击最后一个按钮是,AS和JS进行交互的

2013-12-04 15:12:05 1380 1

NavicatrSQLit

NavicatforSQLit

2014-01-12

Androidimp

将android sqlite数据表导出,然后找到了导出xls文件的方法

2014-01-12

Androidsql

该实例是用户将自己不熟悉的单词添加到数据库中,当用户需要查询某个单词或是解释时,在相应的文本框中输入相应的关键词,就会出来相应的结果。

2014-01-11

Android scrollview 滚动条

Android scrollview 滚动条

2014-01-03

Android 焦点事件

Android 焦点事件

2014-01-02

Android选择时间并且显示

Android选择时间并且显示

2014-01-02

Adrorid级联下拉框

Adrorid级联下拉框

2014-01-02

Android 密文明文

Android 密文明文

2013-12-31

Android Spinner

Android Spinner

2013-12-31

Android开发的加法计算器

Android开发的加法计算器

2013-12-29

flex iframe js

flex iframe js ,as和JS交互

2013-12-04

ext-4.2.1-gpl.rar

ext-4.2.1-gpl.rar

2013-11-21

flex spring

flex spring ibatis 的整合

2013-11-08

extjs grid

extjs grid ide:myeclipse5.5 jboss4.2.1 extjs4.2.1

2013-11-06

spring jsp freemaker sitemesh

spring jsp freemaker sitemesh

2013-09-29

springmvcf

基于注解的SPRINGMVC+FREEMARKER环境搭建

2013-09-26

springHIBQ

spring Hibernate4 struts整合

2013-09-26

spring3+Hibernate4+struts2整合

spring3+Hibernate4+struts2整合

2013-09-25

genymotion模拟器

genymotion模拟器安装教程

2014-04-21

listviewlis

用继承BaseAdapter,来实现对listview的过滤

2014-04-16

guavstrutsspring

guava.doc guava.doc guava.doc guice struts spring

2014-04-08

guicemail.rar

guicemail

2014-04-04

GuiceSpring.rar

GuiceSpring.rar

2014-04-04

maven tomcat eclipse

maven tomcat eclipse

2014-04-02

Eclipse+tomcat+maven 配置Spring

Eclipse+tomcat+maven 配置Spring

2014-04-02

MyListViewLetter

MyListViewLetter.rar

2014-03-29

axis-bin-1.4.rar

axis-bin-1.4.rar

2014-03-27

axis整合web.rar

这个代码放在tomcat7下面运行是正常的。

2014-03-27

handleMessage

AnalogClock

2014-03-02

ActivityGroup

ActivityGroup

2014-02-25

ActivityGroupDemo

ActivityGroup

2014-02-25

androidInter

android Inter startActivityForResult startActivity

2014-02-22

PersonContentProvider

PersonContentProvider

2014-02-20

ContentProvid

android ContentProvider

2014-02-17

flexIframas

flexIfram中AS和JS交互.docx

2014-01-14

AndroidJavaWeb

Android网络开发中如何使用JSON进行网络通信

2014-01-12

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除