摘要:
package com.water.activity;import java.util.List;import android.app.Activity;import android.os.Bundle;import android.telephony.CellLocation;import and... 阅读全文
摘要:
1:FragmentHack5.javapublic class FragmentHack5 extends Fragment { View view; ListView lvCountries; Button btnShow; CountryListAdapter adap... 阅读全文
摘要:
1:FragmentHack4.java/** * Created by y on 15-1-2. */public class FragmentHack4 extends Fragment{ View view; List names; ListView lvNames; ... 阅读全文
摘要:
1:PopupWindow中的设置pop.setInputMethodMode(PopupWindow.INPUT_METHOD_NEEDED);pop.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE); ... 阅读全文
摘要:
1:效果如下图所示:表T1:CREATE TABLE T1 ( WEEKWORKID VARCHAR2(20) , DD VARCHAR2(20) ) 表T2CREATE TABLE T2 ( WEEKWORKID VARCHAR2(20) , NR VARCHAR2(20) )SQL语句:... 阅读全文
摘要:
1:全局安装express2:查看Express安装的版本信息3:运行express 创建工程,提示express未安装4:重新安装Express4,这次安装成功5:使用Express构建项目报错提示需要root权限6:运行 阅读全文
摘要:
解决方法:1:在后台以InputStream的方式将图片从数据库中读出:public static InputStream getPicInputStream(){ String id = "f304733361e243779b2340afe20e62bf"; ... 阅读全文
摘要:
1:为了方便测试,直接将1.png图片存入到数据库中.public static void storePicBlog() throws FileNotFoundException, SQLException, IOException{ Connection conn = JdbcUti... 阅读全文
摘要:
/** * httpcomponents-client-4.3.6 * @author y */public class HttpUtil { public static String httpPost( List formparams,final String url){ ... 阅读全文
摘要:
1:修改my.cnf配置文件$sudo vim /etc/mysql/my.cnf修改为:bind-address = 0.0.0.02:进行授权操作mysql> grant all privileges on *.* to 'root'@'%' with grant option;Query OK... 阅读全文