自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

TODO: Android; Linux; Cloud;

吾尝终日而思矣,不如须臾之所学也

  • 博客(8)
  • 资源 (4)
  • 收藏
  • 关注

原创 Android: 判断网络状态

判断当前Wifi或Ethernet连接状态: public static boolean isNetworkConnected(Context context) { ConnectivityManager cm = (ConnectivityManager) context .getSystemService(Context.CONNECTIVITY_SERVICE); Net

2013-04-27 17:51:18 3048

原创 Android: ImageView animations

ImageView view = ((ImageView) getView().findViewById(R.id.image)); view.startAnimation(AnimationUtils.loadAnimation(getActivity(), R.anim.fade_in)); view.setImageBitmap(mBitmap);

2013-04-27 17:35:50 2481

原创 Git: 修改提交记录

git rebase -i xxx pick xxxx 修改为 edit xxxx git commit --amend 修改提交记录 git rebase --continue 搞定,重新push

2013-04-27 17:33:57 2372

原创 Android: 通过URL下载文件

URL url = new URL(urlString); File tempFile = null; tempFile = File.createTempFile("cache", ".tmp", new File(Environment.getExternalStorageDirectory().toString())); boolean downloaded = DownloadUtils.

2013-04-11 17:18:06 3655

原创 Android: ImageView and Bitmap

imageView.setImageBitmap(bitmap) 从res获得Bitmap: Bitmap bitmap= BitmapFactory.decodeResource(getResources(), R.drawable.xxx); 从ByteArray获得Bitmap: Bitmap bitmap= BitmapFactory.decodeByteArr

2013-04-11 17:12:01 2802

原创 Android: ApiHelper

/* * Copyright (C) 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo

2013-04-08 16:31:19 3820

原创 Android: notifications

android-sdk/docs/guide/topics/ui/notifiers/notifications.html Notifications IN THIS DOCUMENT Notification Display Elements Normal viewBig view Creating a Notification Req

2013-04-08 16:13:33 3768

原创 Android: SharedPreferences OP

SharedPreferences prefs = Utils.getSharedPreferences(context); boolean autostart = prefs.getBoolean(SettingsPreferences.KEY_BOOT_CFG, false); public static SharedPreferences getSharedPreferences(C

2013-04-08 16:09:41 2550

2.3截屏全部源码+APK+so

例子中截屏作为一个开机启动的后台service,在需要截屏的任何地方(系统servic或其他APK),发送 Intent "com.android.CAPTURE_SCREEN" 即可

2011-12-12

Android 2.3截屏JNI代码

Android 2.3截屏JNI代码 Android 2.3截屏JNI代码 Android 2.3截屏JNI代码

2011-11-24

文件管理apk示例代码

http://blog.csdn.net/zmyde2010/article/details/5936494 代码,刚学习apk时写的一个例子,有需要就看看吧

2011-11-18

Google USB Driver, r4

http://developer.android.com/sdk/win-usb.html

2011-09-04

空空如也

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

TA关注的人

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