Skip to content

Instantly share code, notes, and snippets.

View tneotia's full-sized avatar

Tanay Neotia tneotia

View GitHub Profile
@tneotia
tneotia / FlutterWebView.java
Created January 30, 2021 16:30
Code to fix file uploads in webview_flutter
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package io.flutter.plugins.webviewflutter;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
@tneotia
tneotia / newActivity.java
Created January 20, 2021 17:21
newActivity.java file for starting camera/file chooser intent
package io.flutter.plugins.webviewflutter;
import android.app.Activity;
import android.app.Dialog;
import android.content.ClipData;
import android.content.ComponentName;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;