Breaking News

Get Unlimited Social Likes

3 comments:

  1. private final static int FCR = 1;
    private String mCM;
    private ValueCallback mUM;
    private ValueCallback mUMA;
    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent intent) {
    super.onActivityResult(requestCode, resultCode, intent);
    if (Build.VERSION.SDK_INT >= 21) {
    Uri[] results = null;
    //Check if response is positive
    if (resultCode == Activity.RESULT_OK) {
    if (requestCode == FCR) {
    if (null == mUMA) {
    return;
    }
    if (intent == null) {
    //Capture Photo if no image available
    if (mCM != null) {
    results = new Uri[]{Uri.parse(mCM)};
    }
    } else {
    String dataString = intent.getDataString();
    if (dataString != null) {
    results = new Uri[]{Uri.parse(dataString)};
    }
    }
    }
    }
    mUMA.onReceiveValue(results);
    mUMA = null;
    } else {
    if (requestCode == FCR) {
    if (null == mUM) return;
    Uri result = intent == null || resultCode != RESULT_OK ? null : intent.getData();
    mUM.onReceiveValue(result);
    mUM = null;
    }
    }
    }

    ReplyDelete
  2. Harpreet sir, my channel name is Channel Achunachu, please help me to get more views and subscribers. Iam trying my best, but couldn't happen.

    ReplyDelete