自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 Activity之间的数据交换(简单的数据,类对象,图片)

简单数据的交换:Bundle bundle=new Bundle(); bundle.putString("name", "star"); bundle.putInt("age", 23); intent.putExtras(bundle); startActivity(intent);Intent intent=getIntent();Bundle bundle=int

2015-12-18 16:35:57 517

原创 使用系统常见的Activity(浏览器,相册,短信,拨号,相机)

打开浏览器:Intent intent=new Intent();intent.setAction(Intent.ACTION_VIEW); Uri url=Uri.parse("http://www.bilibili.com"); intent.setData(url);startActivity(intent)打开相册(若要返回数据(如图片的路径则需要用startActiv

2015-12-18 14:54:15 706

原创 使用http://www.mob.com/#/完成短信验证功能

1.先在目标工程中导入下载好的SMSSDK(http://www.mob.com/可以下载)2.在清单文件中配置好网络权限和Activity信息 3.初始化和添加按钮点击事件SMSSDK.initSDK(this, APPKEY, APPSECRET);bt1.setOnClickListener(new OnClickListener() {

2015-12-16 15:44:24 1332

原创 如何调用andorid本地图库并获取其图片路径

如何调用android本地图库:使用Intent实现页面跳转,到本地图库界面(如点击按钮bt1实现页面跳转至图库):public void bt1(View view){ Intent intent = new Intent(Intent.ACTION_PICK,                 android.provider.MediaStore.Images.Media.

2015-12-15 22:50:36 1980

原创 使用HttpURLConnection显示网页和下载图片

public class HttpThread extends Thread{ private String url; private String url2; private WebView webView; private Handler handler; private ImageView imageView; private File downloadFile=null;

2015-12-15 21:28:37 684

原创 图片加载类ImageLoader

import java.lang.reflect.Field;import java.util.LinkedList;import java.util.concurrent.Executor;import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors;import java.util.

2015-12-14 17:33:58 596

原创 Andorid在指定文件夹中保存图片

public void saveMyBitmap(String bitName,Bitmap mBitmap){ File f = new File("/sdcard/课程设计/" + bitName + ".jpg"); try { f.createNewFile(); } catch (IOException e) { // TODO Auto-generat

2015-12-14 16:56:34 539

原创 AndoridSD卡文件夹的创建和判断

要在andorid手机sd卡中创建一个文件夹,若该文件夹不存在则创建,若该文件夹存在则return//创建一个文件夹,若该文件夹已存在,则return public void createSDCardDir(){ if(Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())){

2015-12-14 16:38:29 782

空空如也

空空如也

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

TA关注的人

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