登录
首页 » Java » android 异步加载资源示例源码下载

android 异步加载资源示例源码下载

于 2014-02-09 发布
0 377
下载积分: 1 下载次数: 0

代码说明:

android 异步加载资源示例源码下载

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • android 双向侧滑菜单 实例源码下载
    android 双向侧滑菜单 实例源码下载
    2015-01-08下载
    积分:1
  • android 人脸检测 demo源码下载
    android 人脸检测 demo源码下载
    2017-03-13下载
    积分:1
  • 二维码扫描
    二维码扫描
    2015-02-07下载
    积分:1
  • android 实现调用系统相机拍照,并且存到sd卡 实例 附完整源码
    一个demo,实现调用系统相机拍照,将其显示在屏幕上,并且存到sd卡。     Android中实现拍照有两种方法,一种是调用系统自带的相机,然后使用其返回的照片数据。 还有一种是自己用Camera类和其他相关类实现相机功能,这种方法定制度比较高,洗染也比较复杂,一般平常的应用只需使用第一种即可。 用Intent启动相机的代码:Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);startActivityForResult(intent, 1); 拍完照后就可以在onActivityResult(int requestCode, int resultCode, Intent data)中获取到Bitmap对象了。Bitmap bitmap = (Bitmap) data.getExtras().get("data"); 要将图像存储到sd卡之前最好先检查一下sd卡是否可用     String sdStatus = Environment.getExternalStorageState();            if (!sdStatus.equals(Environment.MEDIA_MOUNTED)) { // 检测sd是否可用                Log.v("TestFile",                        "SD card is not avaiable/writeable right now.");                return;            }   以下代码可以实现将图像文件存到“sdcard/myImage/”文件夹下,名称为“111.jpg”            File file = new File("/sdcard/myImage/");            file.mkdirs();// 创建文件夹            String fileName = "/sdcard/myImage/111.jpg";             try {                b = new FileOutputStream(fileName);                bitmap.compress(Bitmap.CompressFormat.JPEG, 100, b);// 把数据写入文件            } catch (FileNotFoundException e) {                e.printStackTrace();            } finally {                try {                    b.flush();                    b.close();                } catch (IOException e) {                    e.printStackTrace();                }            } 另外要注意的是读写sd卡文件必须首先要在Mainifest.xml文件中配置权限:           一个demo,实现调用系统相机拍照,将其显示在屏幕上,并且存到sd卡。    
    2013-06-13下载
    积分:1
  • android viewpager 图片轮播 实例下载(焦点图)
    android viewpager 图片轮播 实例下载(焦点图)
    2015-05-26下载
    积分:1
  • java 读写excel 示例代码
    java 读写excel 示例代码
    2015-04-25下载
    积分:1
  • google NavigationDrawer demo
    这个是google的抽屉界面的实例代码,可以直接使用,很有参考价值
    2013-11-05下载
    积分:1
  • 远程视频监控
    【核心代码】 public interface CameraSource {  static final String LOG_TAG = "camera";  /**  * Open the camera source for subsequent use via calls to capture().  *   * @return true if the camera source was successfully opened.  */  boolean open();  /**  * Close the camera source. Calling close on a closed CameraSource is  * permitted but has no effect. The camera source may be reopened after  * being closed.  */  void close();  /**  * The width of the captured image.  *   * @return the width of the capture in pixels  */  int getWidth();  /**  * The height of the captured image.  *   * @return the height of the capture in pixels  */  int getHeight();  /**  * Attempts to render the current camera view onto the supplied canvas.  * The capture will be rendered into the rectangle (0,0,width,height).  * Outstanding transformations on the canvas may alter this.  *   * @param canvas the canvas to which the captured pixel data will be written  * @return true iff a frame was successfully written to the canvas  */  boolean capture(Canvas canvas);  boolean saveImage(String savePath, String fileName); }
    2013-12-04下载
    积分:1
  • android布局中动态添加控件
    android布局中动态添加控件
    2015-04-22下载
    积分:1
  • 声源定位系统源码(基于stm32)
    基于stm32声源定位系统,亲自测试过,可以用
    2019-09-10下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载