- 博客(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
2011-12-12
文件管理apk示例代码
2011-11-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人