摘要:
1.查看MySQL的当前最大连接数,登录MySQL:mysql -uroot -p,回车;输入密码,回车; 输入命令:select VARIABLE_VALUE from information_schema.GLOBAL_VARIABLES where VARIABLE_NAME='MAX_CON
阅读全文
posted @ 2016-07-19 10:59
一路向北中
阅读(1152)
推荐(0)
摘要:
Bitmap bitmapSrc = BitmapFactory.decodeResource(getResources(), R.drawable.dog); Bitmap bitmapCopy = Bitmap.createBitmap(bitmapSrc.getWidth(), bitmapSrc.getHeight(), b...
阅读全文
posted @ 2016-07-18 22:08
一路向北中
阅读(288)
推荐(0)
摘要:
Bitmap bitmapSrc = BitmapFactory.decodeResource(getResources(), R.drawable.dog); Bitmap bitmapCopy = Bitmap.createBitmap(bitmapSrc.getWidth(), bitmapSrc.getHeight(), b...
阅读全文
posted @ 2016-07-18 21:15
一路向北中
阅读(175)
推荐(0)
摘要:
//取得图片的分辨率 BitmapFactory.Options options = new BitmapFactory.Options(); options.inJustDecodeBounds = true; BitmapFactory.decodeResource...
阅读全文
posted @ 2016-07-18 20:41
一路向北中
阅读(351)
推荐(0)
摘要:
图片的文件名(包括扩展名)均为小写 ([a-z0-9_.])
阅读全文
posted @ 2016-07-18 20:22
一路向北中
阅读(181)
推荐(0)
摘要:
WindowManager manager = getWindowManager();Point point = new Point();manager.getDefaultDisplay().getSize(point);manager.getDefaultDisplay().getSize(po
阅读全文
posted @ 2016-07-18 19:50
一路向北中
阅读(152)
推荐(0)
摘要:
WindowManager manager = getWindowManager();int height = manager.getDefaultDisplay().getHeight();int width = manager.getDefaultDisplay().getWidth();Log
阅读全文
posted @ 2016-07-18 19:48
一路向北中
阅读(166)
推荐(0)
摘要:
Bitmap bitmap = BitmapFactory.decodeFile("/mnt/sdcard/dog.bmp"); int height = bitmap.getHeight(); int width = bitmap.getWidth(); <uses-permission andr
阅读全文
posted @ 2016-07-18 19:44
一路向北中
阅读(108)
推荐(0)
摘要:
从Lollipop开始,service服务必须采用显示方式启动。
阅读全文
posted @ 2016-06-13 18:18
一路向北中
阅读(164)
推荐(0)
摘要:
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String str = "你好-kobe"; response.getOutputStream().wr...
阅读全文
posted @ 2016-04-14 14:23
一路向北中
阅读(681)
推荐(0)
摘要:
IntentFilter filter = new IntentFilter(); filter.addAction("android.provider.Telephony.SMS_RECEIVED"); registerReceiver(smsReceiver, filter); protecte
阅读全文
posted @ 2016-03-07 14:01
一路向北中
阅读(353)
推荐(0)
摘要:
20160127 1,Intent的显示调用,隐示调用。 2,Intent传值与回传。 3,Intent打开浏览器访问指定地址 4,完整生存期,可见生存期,前台生存期。 0128 1,AlertDialog.Builder positive negative 2,ProgressDialog 020
阅读全文
posted @ 2016-01-27 09:56
一路向北中
阅读(125)
推荐(0)
摘要:
1, adb shell su chmod -R 777 /data/data/com.sice.linson.bank_record 权限 2, adb pull /data/data/com.sice.linson.bank_record/databases/bank_info.db c:/ 命
阅读全文
posted @ 2016-01-20 14:53
一路向北中
阅读(126)
推荐(0)
摘要:
asu(alone signal unit 独立信号单元)是Google给Android手机定义的特有信号单位, 它们之间的关系是:dBm =-113+2*asu当dbm低于-113就没有信号了,而asu就一般情况下,大家都能够看到10-30,这才是一个比较正常的范畴,asu数值越大,信号强度越好。...
阅读全文
posted @ 2016-01-11 09:52
一路向北中
阅读(840)
推荐(0)
摘要:
Intent intent = new Intent(); intent.setAction(Intent.ACTION_SENDTO); intent.setData(Uri.parse("sms:10086")); intent.addC...
阅读全文
posted @ 2015-11-19 15:12
一路向北中
阅读(411)
推荐(0)
摘要:
Intent intent =new Intent(); intent.setAction(Intent.ACTION_VIEW); intent.setData(Uri.parse("http://www.baidu.com")); thi...
阅读全文
posted @ 2015-11-19 15:10
一路向北中
阅读(274)
推荐(0)
摘要:
ConnectivityManager manager = (ConnectivityManager) this .getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo in...
阅读全文
posted @ 2015-11-19 15:08
一路向北中
阅读(331)
推荐(0)
摘要:
Intent intent = new Intent(); intent.setClass(this, SecondActivity.class); startActivity(intent); // Intent intent...
阅读全文
posted @ 2015-11-19 13:59
一路向北中
阅读(179)
推荐(0)
摘要:
Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI); this.startActivity(inten...
阅读全文
posted @ 2015-11-19 13:51
一路向北中
阅读(153)
推荐(0)
摘要:
//Intent intent = new Intent(android.provider.Settings.ACTION_WIRELESS_SETTINGS);//打开无线设置 Intent intent = new Intent(Settings.ACTION_WI...
阅读全文
posted @ 2015-11-19 13:34
一路向北中
阅读(219)
推荐(0)
摘要:
import java.io.*;import java.net.HttpURLConnection;import java.net.URL;public class MultiDownload { long beginTime; int threadCount; int runn...
阅读全文
posted @ 2015-11-19 12:25
一路向北中
阅读(179)
推荐(0)
摘要:
private void multiThreadDownload(String sourcePath, String targetPathDir, String targetFileName, int threadCount) { fileSize = getFileSize(...
阅读全文
posted @ 2015-11-16 13:29
一路向北中
阅读(149)
推荐(0)
摘要:
private static void downLoadFile(String sourcePath, String targetPathDir, String targetFileName) { try { URL url = new URL(sourc...
阅读全文
posted @ 2015-11-12 14:18
一路向北中
阅读(155)
推荐(0)
摘要:
httpcore-4.4.3.jar httpcomponents-core-4.4.3-bin.zipandroid-async-http-1.4.8.jar android-async-http-master.zip
阅读全文
posted @ 2015-11-06 18:46
一路向北中
阅读(1719)
推荐(0)
摘要:
import android.content.Context;import android.content.pm.PackageManager;import android.graphics.PixelFormat;import android.hardware.Camera;import andr...
阅读全文
posted @ 2015-11-05 14:51
一路向北中
阅读(181)
推荐(0)
摘要:
public void click(View view) throws Exception { Intent intent = new Intent(); intent.setAction("android.media.action.VIDEO_CAPTURE")...
阅读全文
posted @ 2015-11-04 16:01
一路向北中
阅读(225)
推荐(0)
posted @ 2015-11-04 15:08
一路向北中
阅读(145)
推荐(0)
摘要:
Handler handler = new Handler() { @Override public void handleMessage(Message msg) { ImageView iv = (ImageView) findViewB...
阅读全文
posted @ 2015-11-04 13:20
一路向北中
阅读(170)
推荐(0)
摘要:
private void writeContacts() { ContentResolver resolver = getContentResolver(); Uri uri = Uri.parse("content://com.android.contacts/...
阅读全文
posted @ 2015-11-04 12:46
一路向北中
阅读(158)
推荐(0)
摘要:
private void readContacts() { final String name = "vnd.android.cursor.item/name"; final String phone_v2 = "vnd.android.cursor.item/p...
阅读全文
posted @ 2015-11-04 12:21
一路向北中
阅读(142)
推荐(0)
摘要:
ContentResolver resolver = getContentResolver(); Uri uri = Uri.parse("contnent://sms/"); resolver.registerContentObserver(uri, t...
阅读全文
posted @ 2015-10-29 08:59
一路向北中
阅读(195)
推荐(0)
摘要:
private void writeSMS() { ContentResolver resolver = getContentResolver(); Uri uri = Uri.parse("content://sms/"); ContentValu...
阅读全文
posted @ 2015-10-28 16:06
一路向北中
阅读(192)
推荐(0)
摘要:
private void readSMS() { ContentResolver resolver = getContentResolver(); Uri uri = Uri.parse("content://sms/"); String[] pro...
阅读全文
posted @ 2015-10-28 14:07
一路向北中
阅读(162)
推荐(0)
摘要:
class MyAdapter extends BaseAdapter { @Override public int getCount() { return arrayList.size(); } @Overrid...
阅读全文
posted @ 2015-10-27 14:53
一路向北中
阅读(113)
推荐(0)
摘要:
public class Person { long id; String name; int age; public Person(long id, String name, int age) { this.id = id; this.name ...
阅读全文
posted @ 2015-10-27 08:57
一路向北中
阅读(198)
推荐(0)
摘要:
private void readXml() throws XmlPullParserException, IOException { XmlPullParser parser = XmlPullParserFactory.newInstance().newPullParser...
阅读全文
posted @ 2015-10-23 17:14
一路向北中
阅读(151)
推荐(0)
摘要:
private void createXml() throws IOException { ArrayList arrayList = new ArrayList(); for (int i = 0; i < 10; i++) { Peopl...
阅读全文
posted @ 2015-10-23 17:13
一路向北中
阅读(133)
推荐(0)
摘要:
public void click(View view) throws Exception { SharedPreferences sf = getSharedPreferences("my",Context.MODE_PRIVATE); SharedPrefer...
阅读全文
posted @ 2015-10-23 13:54
一路向北中
阅读(110)
推荐(0)
摘要:
public String getSdcardInfo() { File path = Environment.getExternalStorageDirectory(); StatFs stat = new StatFs(path.getPath()); ...
阅读全文
posted @ 2015-10-23 13:37
一路向北中
阅读(266)
推荐(0)
摘要:
public String getROMInfo() { File path = Environment.getDataDirectory(); StatFs stat = new StatFs(path.getPath()); long block...
阅读全文
posted @ 2015-10-23 13:20
一路向北中
阅读(241)
推荐(0)