Android Open Source - AndroidHandsOn Bitmaps






From Project

Back to project page AndroidHandsOn.

License

The source code is released under:

Apache License

If you think the Android project AndroidHandsOn listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.globant.mobile.handson.provider;
//  ww  w  .  j a  v  a  2 s.c  o  m
public class Bitmaps {

  public static String[] imageUrls = new String[0];
  public static String[] imageThumbUrls = new String[0];
  
  public static void removeItemAt(int index){
    String[] tmpImageUrls = new String[imageUrls.length - 1];
    String[] tmpImageThumbUrls = new String[imageThumbUrls.length - 1];
    
    for(int i = 0, j= 0; i < tmpImageUrls.length; i++){
      if(i != index){
        tmpImageUrls[i] = imageUrls[j];
        tmpImageThumbUrls[i] = imageThumbUrls[j];
        j++;
      }else{
        j++;
        tmpImageUrls[i] = imageUrls[j];
        tmpImageThumbUrls[i] = imageThumbUrls[j];
      }
    }
    
    imageUrls = tmpImageUrls;
    imageThumbUrls = tmpImageThumbUrls;
  }
}




Java Source Code List

com.globant.mobile.handson.BaseActivity.java
com.globant.mobile.handson.CameraActivity.java
com.globant.mobile.handson.DisplayMessageActivity.java
com.globant.mobile.handson.GalleryActivity.java
com.globant.mobile.handson.ImageDetailActivity.java
com.globant.mobile.handson.ImageDetailFragment.java
com.globant.mobile.handson.ImageGrid.java
com.globant.mobile.handson.MainActivity.java
com.globant.mobile.handson.RecyclingImageView.java
com.globant.mobile.handson.exception.CameraNotAvailableException.java
com.globant.mobile.handson.media.BitmapCache.java
com.globant.mobile.handson.media.BitmapDecoder.java
com.globant.mobile.handson.media.BitmapFetcher.java
com.globant.mobile.handson.media.CustomCamera.java
com.globant.mobile.handson.media.FaceDetection.java
com.globant.mobile.handson.media.RecyclingBitmapDrawable.java
com.globant.mobile.handson.media.task.AsyncTask.java
com.globant.mobile.handson.media.task.BitmapWorker.java
com.globant.mobile.handson.media.task.MustacheWorker.java
com.globant.mobile.handson.media.task.WorkerListener.java
com.globant.mobile.handson.provider.Bitmaps.java
com.globant.mobile.handson.provider.Images.java
com.globant.mobile.handson.sensor.RotationListener.java
com.globant.mobile.handson.util.DiskLruCache.java
com.globant.mobile.handson.util.SystemUiHiderBase.java
com.globant.mobile.handson.util.SystemUiHiderHoneycomb.java
com.globant.mobile.handson.util.SystemUiHider.java