Private Proxies – Buy Cheap Private Elite USA Proxy + 50% Discount!Private Proxies – Buy Cheap Private Elite USA Proxy + 50% Discount!Private Proxies – Buy Cheap Private Elite USA Proxy + 50% Discount!Private Proxies – Buy Cheap Private Elite USA Proxy + 50% Discount!
    0
  •   was successfully added to your cart.
  • Home
  • Buy proxies
  • Extra features
  • Help
  • Contact
  • Login
  • 50% OFF
    BUY NOW!
    50
    PROXIES
    $19
    --------------------
    BUY NOW!
    BUY NOW!
    BUY NOW!
    BUY NOW!
    BUY NOW!
    $29
    $49
    $109
    $179
    $299
    --------------------
    --------------------
    --------------------
    --------------------
    --------------------
    PROXIES
    PROXIES
    PROXIES
    PROXIES
    PROXIES
    100
    200
    500
    1,000
    2,000
    TOP SELLER
    BEST VALUE
    For All Private Proxies!

Bom dia. Sou iniciante na programação de apps android e estou uma incógnita sobre como habilitar o filepicker para selecionar múltiplos arquivos. Meu código funciona, porém só seleciona um arquivo por vez.

Segue o código:

BaseActivity.java

@Override protected void onActivityResult(int reqCode, int resultCode, Intent data) { super.onActivityResult(reqCode, resultCode, data); if (resultCode == Activity.RESULT_OK) { if (reqCode == WebEngine.KEY_FILE_PICKER) { String picturePath = FilePicker.getPickedFilePath(this, data); if (webEngine != null) { webEngine.uploadFile(data, picturePath); } } } }

FilePicker.java

package com.teste.final.utility;

import android.content.Context; import android.content.Intent; import android.content.pm.ResolveInfo; import android.database.Cursor; import android.net.Uri; import android.os.Environment; import android.os.Parcelable; import android.provider.MediaStore;

import java.io.File; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Locale;

/** * Created by Ashiq on 6/1/16. */

public class FilePicker {

private static String pictureTempPath = ""; private static final String CHOOSER_MSG = "Escolha uma opção"; private static final String IMAGE_PREFIX = "IMG_"; private static final String IMAGE_EXTENSION = ".jpg";  /**  * Start picker intent  *  * @param context  * @return  */ public static Intent getPickFileIntent(Context context) {     Intent chooserIntent = null;      List<Intent> intentList = new ArrayList<Intent>();     addIntentsToList(context, intentList, getGalleryIntent());     addIntentsToList(context, intentList, getCameraIntent(context));     addIntentsToList(context, intentList, getFileIntent());      if (intentList.size() > 0) {         chooserIntent = Intent.createChooser(intentList.remove(intentList.size() - 1), CHOOSER_MSG);         chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS, intentList.toArray(new Parcelable[]{}));     }      return chooserIntent; }  /**  * Start camera picker intent  *  * @param context  * @return  */ public static Intent getCameraPickerIntent(Context context) {     Intent chooserIntent = null;      List<Intent> intentList = new ArrayList<Intent>();     addIntentsToList(context, intentList, getCameraIntent(context));      if (intentList.size() > 0) {         chooserIntent = Intent.createChooser(intentList.remove(intentList.size() - 1), CHOOSER_MSG);         chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS, intentList.toArray(new Parcelable[]{}));     }      return chooserIntent; }  /**  * Start gallery picker intent  *  * @param context  * @return  */ public static Intent getGalleryPickerIntent(Context context) {     Intent chooserIntent = null;      List<Intent> intentList = new ArrayList<Intent>();     addIntentsToList(context, intentList, getGalleryIntent());      if (intentList.size() > 0) {         chooserIntent = Intent.createChooser(intentList.remove(intentList.size() - 1), CHOOSER_MSG);         chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS, intentList.toArray(new Parcelable[]{}));     }      return chooserIntent; }  /**  * Get captured image path  *  * @param context  * @param data  * @return  */ public static String getPickedFilePath(Context context, Intent data) {     String filePath = null;      boolean isCameraIntent = (data == null || data.getData() == null);      if (isCameraIntent) {         filePath = pictureTempPath;     } else {         filePath = getImagePath(context, data.getData());         /*if (filePath == null) {             filePath = data.getData().getPath();         }*/     }      return filePath; }  private static String getImagePath(Context context, Uri imageUri) {     String path = null;     try {         String[] filePathColumn = {MediaStore.Images.Media.DATA};         // Get DB Cursor to get Image link         Cursor cursor = context.getContentResolver().query(imageUri, filePathColumn, null, null, null);         if (cursor != null && cursor.moveToFirst()) {             int columnIndex = cursor.getColumnIndex(MediaStore.Images.Media.DATA);             // Get image path             path = cursor.getString(columnIndex);             cursor.close();         }     } catch (Exception e) {         e.printStackTrace();     }     return path; }  /**  * Creates a gallery intent  *  * @return  */ private static Intent getGalleryIntent() {     // Define gallery intent     return new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); }  private static Intent getFileIntent() {     // Define file intent     Intent chooseFile = new Intent(Intent.ACTION_GET_CONTENT);     chooseFile.setType("*/*");     return chooseFile; }   /**  * Creates a camera intent  *  * @return  */ private static Intent getCameraIntent(Context ctx) {     Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);     // Ensure that there's a camera activity to handle the intent     if (cameraIntent.resolveActivity(ctx.getPackageManager()) != null) {          cameraIntent.putExtra("return-data", true);          File path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM);         String timeStamp = new SimpleDateFormat(DateUtils.DateTimeFormat.YYMMDD_HHMMSS.toString(), Locale.US).format(new Date());         String imageFileName = IMAGE_PREFIX + timeStamp;         File photoFile = new File(path, imageFileName + IMAGE_EXTENSION);          pictureTempPath = photoFile.getAbsolutePath();          cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(photoFile));     }      return cameraIntent; }  /**  * Make a list of choices to display to user  *  * @param context  * @param list  * @param intent  * @return  */ private static void addIntentsToList(Context context, List<Intent> list, Intent intent) {      List<ResolveInfo> resInfo = context.getPackageManager().queryIntentActivities(intent, 0);     for (ResolveInfo resolveInfo : resInfo) {         String packageName = resolveInfo.activityInfo.packageName;         Intent targetedIntent = new Intent(intent);         targetedIntent.setPackage(packageName);         list.add(targetedIntent);     } } 

}

✓ Extra quality

ExtraProxies brings the best proxy quality for you with our private and reliable proxies

✓ Extra anonymity

Top level of anonymity and 100% safe proxies – this is what you get with every proxy package

✓ Extra speed

1,ooo mb/s proxy servers speed – we are way better than others – just enjoy our proxies!

50 proxies

$19/month

50% DISCOUNT!
$0.38 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

100 proxies

$29/month

50% DISCOUNT!
$0.29 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

200 proxies

$49/month

50% DISCOUNT!
$0.25 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

500 proxies

$109/month

50% DISCOUNT!
$0.22 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

1,000 proxies

$179/month

50% DISCOUNT!
$0.18 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

2,000 proxies

$299/month

50% DISCOUNT!
$0.15 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

USA proxy location

We offer premium quality USA private proxies – the most essential proxies you can ever want from USA

100% anonymous

Our proxies have TOP level of anonymity + Elite quality, so you are always safe and secure with your proxies

Unlimited bandwidth

Use your proxies as much as you want – we have no limits for data transfer and bandwidth, unlimited usage!

Superfast speed

Superb fast proxy servers with 1,000 mb/s speed – sit back and enjoy your lightning fast private proxies!

99,9% servers uptime

Alive and working proxies all the time – we are taking care of our servers so you can use them without any problems

No usage restrictions

You have freedom to use your proxies with every software, browser or website you want without restrictions

Perfect for SEO

We are 100% friendly with all SEO tasks as well as internet marketing – feel the power with our proxies

Big discounts

Buy more proxies and get better price – we offer various proxy packages with great deals and discounts

Premium support

We are working 24/7 to bring the best proxy experience for you – we are glad to help and assist you!

Satisfaction guarantee

24/7 premium support, free proxy activation and 100% safe payments! Best reliability private proxies for your needs!

Best Proxy Packs

  • 2,000 Private Proxies $600.00 $299.00 / month
  • 1,000 Private Proxies $360.00 $179.00 / month

Quick Links

  • More information
  • Contact us
  • Privacy Policy
  • Terms and Conditions

Like And Follow Us


Copyright ExtraProxies.com | All Rights Reserved.
  • Checkout
  • Contact
  • Help
  • Home
  • My Account
  • My Cart
  • News
  • Privacy Policy
  • Proxy features
  • Proxy packs
  • Terms and Conditions
Private Proxies – Buy Cheap Private Elite USA Proxy + 50% Discount!
    0 items