How can I open an android activity from a flutter widget here is what i currently have in the flutter widget
static const myChannel = MethodChannel('get_image');
ElevatedButton(onPressed: () {
myChannel.invokeMethod('get_image');},
child: const Text('Take Picture'),
And in my mainActivity.java
import android.content.Intent;
import android.os.Bundle;
import io.flutter.embedding.android.FlutterActivity;
public class MainActivity extends FlutterActivity {}
I don,t have much idea on how to move from here most of the answers i have seen in are written in kotlin including the documemtation in flutter website both how can i use this in Java