分类: Android

Sqlite语法

id字段自增 sql="CREATE TABLE IF NOT EXISTS MusicList (id integer primary key AutoIncrement,name varchar(20),path varchar(20))";      <br>常用Select语句 desc <table> //查看表结构 select * from <table> //查询所有更 select , from table ;//查看指定列 select distinct , from table ;//非重复查询 insert into users(_id,username,password) select * from users;//复制 select username from users where username like 'S%' ;//非重名字首字母为大写S的用户 select username from users where username like '__S%'

阅读全文

java 的base64处理类

/*************************************************************** Copyright (c) 1998, 1999 Nate Sammons <nate@protomatter.com> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warra

阅读全文

Moto android 双卡 发送短消息

Moto 双卡 指定卡发送短消息 phoneType =1 为GSM卡 0为CDMA卡 XT788实测可用. public String sendMSG(String phone, String msg,int phoneType) { String Exp_string = ""; try { Class smsManagerClass = null; Class[] divideMessagePamas = { String.class }; Class[] sendMultipartTextMessagePamas = { String.class, String.class, ArrayList.class, ArrayList.class, ArrayList.class, int.class }; Method divideMessage = null; Method sendMultipartTextMessage = null; smsManagerClass = Class.forName(“android.telephony.MSimSmsMan

阅读全文

MyEclipse 10 安装 Android 开发 环境 记录

一、安装 JDK 下载JDK最新版本,下载地址如下: http://www.oracle.com/technetwork/java/javase/downloads/index.html 这里我下载的是: Java SE Development Kit 6u24 for Windows x64, Multi-language,即这个文件:jdk-6u24-windows-x64.exe 下载后安装。Windows 下安装完毕后需要设置三个环境变量 JAVA_HOME 指明JDK安装路径,就是刚才安装时的路径C:\Program Files\Java\jdk1.7.0_17,此路径下包括lib,bin,jre等文件夹(此变量最好设置,因为以后运行tomcat,eclipse,ant 等都需要使用此变量) PATH Path使得系统可以在任何路径下识别java命令,设为:%JAVA_HOME%/bin;%JAVA_HOME%/jre/bin CLASSPATH CLASSPATH为java加载类(class or lib)路径,只有类在classpath中,java命令才能识别,设为: .

阅读全文