- 博客(32)
- 资源 (1)
- 收藏
- 关注
转载 android error while loading shared libraries: libstdc++.so.6
error while loading shared libraries: libstdc++.so.6
2015-09-20 14:08:27 524
转载 android error while loading shared libraries: libz.so.
android error while loading shared libraries: libz.so.1
2015-09-20 14:01:01 526 1
原创 将Json对象转化为Java实体类
package com.cwq.main;import java.io.BufferedWriter;import java.io.File;import java.io.FileWriter;import java.io.IOException;import java.util.HashMap;import java.util.Iterator;import java.util.
2015-01-10 17:21:59 774
转载 The server does not support version 3.0 of the J2EE Web module specification
1.错误:在eclipse中使用run->run on server的时候,选择tomcat6会报错误:The server does not support version 3.0 of the J2EE Web module specification2.原因:Tomcat 6.0最多支持Servlet 2.5,而现在要import的项目是3.0版本的。3.解决
2014-12-08 17:31:20 366
转载 FCKeditor文本编辑器的使用方法
FCKeditor是一个功能强大支持所见即所得功能的文本编辑器,可以为用户提供微软office软件一样的在线文档编辑服务。它不需要安装任何形式的客户端,兼容绝大多数主流浏览器,支持ASP.Net、ASP、ColdFusion 、PHP、Jsp、Active-FoxPro、Lasso、Perl、ython 等编程环境。官方网站 http://www.fckeditor.net/官
2014-07-21 15:39:54 474
转载 jQuery之Ajax请求
从前从客户端页面向服务器发送Ajax请求,需要在js中先创建XMLHttpRequest对象,对象创建好以后使用OPEN('GET/POST',URL,同步/异步)设置提交方式,URL地址,使用同步还是异步方式。然后使用send(data)向服务器发送数据,同时使用onreadystatechange来绑定回调函数。如果是使用GET方式提交数据,那么就直接在URL地址中拼接数据,如果是使用POST
2014-07-21 13:13:21 641
原创 解决WampServer中MySQL数据库中文乱码的问题
左键点击托盘区的WampServer图标,选择MySQL--my.ini,就会打开MySQL的配置文件了,在[client]段落增加:default-character-set=utf8 ;在[mysqld]段落增加:character_set_server=utf8 。重启MySQL服务即可。
2014-07-19 22:33:16 8073 4
转载 android 解决ScrollView中嵌套ListView的冲突
在ScrollView中嵌套ListView时,ListView只能显示一行多一点:
2014-06-04 21:41:58 497
转载 Java对日期Date类进行加减运算,年份加减,月份加减
import java.text.SimpleDateFormat;import java.util.Calendar;import java.util.Date;public class DateTestUtil { publicstatic void main(String[] args) throws Exception { Simpl
2014-05-29 13:30:51 975
转载 Android View如何获取焦点
Android新启动Activity,dialog或者其他窗体中包含EditText, 新启动的activity的焦点默认在EditText上,这时android系统会弹出软键盘,挤压activity本来的界面,影响美观。 因此最好在新窗体创建时,在onCreate()方法中将焦点放在另一个view上。 view使用requestFocus()焦点,但是如果让button
2014-05-29 13:23:05 1309 1
原创 Android 判断网络是GPRS还是WIFI
package com.cwq.receiver;import android.content.BroadcastReceiver;import android.content.Context;import android.content.Intent;import android.net.ConnectivityManager;import android.net.NetworkIn
2014-05-27 10:22:31 1096
原创 Android 判断网络是否连接
import android.content.Context;import android.net.ConnectivityManager;import android.net.NetworkInfo;public class Network { //判断是否有连接网络 public static boolean checkNet(Context context) { Conne
2014-05-27 10:13:14 534
转载 PopupWindow响应ListView Item事件
最近项目中有用PopupWindow。我在其中添加一个ListView放入PopupWindow中,然后对对PopupWindow设置了setFocusable(true)让PopupWindow获得了焦点。初始化 PopupWindow parameterView=this.getLayoutInflater().inflate(R.layout.parameterpopup, n
2014-05-24 11:56:50 618
转载 Notification新旧用法
//显示通知信息 //api 11 版本之前: protected void showNotification() { NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
2014-05-24 11:33:10 518
转载 Android 音频管理
//获得系统音频管理服务对象 AudioManager audioManager = (AudioManager)getSystemService(Context.AUDIO_SERVICE); int currentVolume = audioManager.getStreamVolume(AudioManager.STREAM_MUSIC); int maxVolume =
2014-05-24 11:19:15 528
转载 Android 取得当前时间
Android的文件有建议用Time代替Calendar。用Time对CPU的负荷会较小。在写Widget时特别重要。Time t=new Time(); // or Time t=new Time("GMT+8"); 加上Time Zone资料。 [java] view plaincopy package itokit.com;
2014-05-24 11:14:21 628
转载 Android 闪屏
闪屏呢,就是SplashScreen,也可以说是启动画面,就是启动的时候,闪(展示)一下,持续数秒后,自动关闭。android的实现非常简单,使用Handler对象的postDelayed方法就可以实现。在这个方法里传递一个Runnable对象和一个延迟的时间。该方法实现了一个延迟执行的效果,延迟的时间由第2个参数指定,单位是毫秒。第一个参数是Runnable对象,里面包含了延迟后需要执行
2014-05-24 11:02:28 680
转载 Http协议(get请求和post请求)
import java.io.BufferedReader;import java.io.File;import java.io.FileOutputStream;import java.io.IOException;import java.io.InputStream;import java.io.InputStreamReader;import java.io.PrintWrite
2014-05-24 10:58:52 462
转载 TabHost多界面手势滑动切换
import android.app.TabActivity;import android.content.Intent;import android.os.Bundle;import android.util.Log;import android.view.GestureDetector;import android.view.MotionEvent;import and
2014-05-24 10:46:20 612
转载 WebView
首先要在manifest.main文件中创建一个webview,然后再activity中定义这个webview然后进行一下相关操作。1、添加权限:AndroidManifest.xml中必须使用许可"android.permission.INTERNET",否则会出Web page not available错误。2、在要Activity中生成一个WebView组件:WebView web
2014-05-24 10:37:39 575
转载 Android adb
记录一下命令: tools>adb remount tools>adb shell #su #cd system/sd/data //进入系统内指定文件夹 #ls //列表显示当前文件夹内容 #rm -r xxx //删除名字为xxx的文件夹及其里面的所有文件 #rm xxx //删除文件xxx #rmdir xxx //删除xxx的文件夹 ------------
2014-05-24 10:34:38 370
转载 EditText inputType属性详解
android中inputType属性在EditText输入值时启动的虚拟键盘的风格有着重要的作用。这也大大的方便的操作。有时需要虚拟键盘只为字符或只为数字。所以inputType尤为重要。android:layout_width="fill_parent" android:layout_height="wrap_content"android:inputType="text" />
2014-05-24 10:24:56 592
转载 RelativeLayout
// 相对于给定ID控件android:layout_above 将该控件的底部置于给定ID的控件之上;android:layout_below 将该控件的底部置于给定ID的控件之下;android:layout_toLeftOf 将该控件的右边缘与给定ID的控件左边缘对齐;android:layout_toRightOf 将该控件的左边缘与给定ID的控件右
2014-05-24 10:19:50 370
转载 TextView属性大全
android:autoLink设置是否当文本为URL链接/email/电话号码/map时,文本显示为可点击的链接。可选值(none/web/email/phone/map/all) android:autoText如果设置,将自动执行输入值的拼写纠正。此处无效果,在显示输入法并输入的时候起作用。 android:bufferType指定getText()方式取得的文本类别。
2014-05-23 17:29:33 384
将Json对象转化为Java实体类
2015-01-10
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人