I'm working on a Flutter plugin. How can I open the MainActivity of the app from an activity of the plugin (Java/Kotlin)? (the MainActivity is closed) Thanks
            Asked
            
        
        
            Active
            
        
            Viewed 1,079 times
        
    0
            
            
        - 
                    When you run your Flutter app, that *is* the MainActivity. If you want to open another Activity, use an Intent https://pub.dev/packages/intent – MSpeed Mar 21 '21 at 10:59
- 
                    In the main app yes, but here I'm talking about a plugin. From there I don't have access to the Flutter app's MainActivity.kt. – jennie788 Mar 21 '21 at 19:50
- 
                    See this https://stackoverflow.com/questions/61780966/how-to-start-an-activity-from-flutter-plugin-using-an-api – Sadegh Ghanbari May 06 '21 at 11:44
1 Answers
0
            
            
        I don't know how to do it using a Flutter method but the following solution worked for me: Android : Call activity of another application
 
    
    
        jennie788
        
- 396
- 3
- 18