//flutter import 'package:flutter/services.dart'; @override void initState() { super.initState(); print('initState'); new MethodChannel("flutter.temp.channel").setMethodCallHandler(platformCallHandler); } Future platformCallHandler(MethodCall call) async { if (call.method == "destroy"){ print("destroy"); dispose(); } } //MainActivity.java @Override protected void onStop() { super.onStop(); Log.i.....