flutter_boost icon indicating copy to clipboard operation
flutter_boost copied to clipboard

集成boost后只能第一次跳转到相册以后都无法进入

Open kangshifu opened this issue 7 years ago • 8 comments

kangshifu avatar Apr 04 '19 08:04 kangshifu

Activity com.sec.android.gallery3d.app.Gallery has leaked IntentReceiver com.sec.android.gallery3d.app.GalleryCoverMode$2@1d1629c9 that was originally registered here. Are you missing a call to unregisterReceiver()? android.app.IntentReceiverLeaked: Activity com.sec.android.gallery3d.app.Gallery has leaked IntentReceiver com.sec.android.gallery3d.app.GalleryCoverMode$2@1d1629c9 that was originally registered here. Are you missing a call to unregisterReceiver()? at android.app.LoadedApk$ReceiverDispatcher.(LoadedApk.java:960) at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:761) at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:2015) at android.app.ContextImpl.registerReceiver(ContextImpl.java:1995) at android.app.ContextImpl.registerReceiver(ContextImpl.java:1989) at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:503) at com.sec.android.gallery3d.app.GalleryCoverMode.registerReceiverGlobal(GalleryCoverMode.java:265) at com.sec.android.gallery3d.app.GalleryCoverMode.setCoverMode(GalleryCoverMode.java:72) at com.sec.android.gallery3d.app.GalleryCoverMode.(GalleryCoverMode.java:68) at com.sec.android.gallery3d.app.Gallery.onCreate(Gallery.java:332) at android.app.Activity.performCreate(Activity.java:6288) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2758) at android.app.ActivityThread.access$900(ActivityThread.java:177) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1448) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:5942) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)

kangshifu avatar Apr 10 '19 11:04 kangshifu

不集成boost没有这个问题

kangshifu avatar Apr 10 '19 11:04 kangshifu

通过startActivityForresult之后没有走onActivityResult, image picker的插件跳转函数: Intent pickImageIntent = new Intent(Intent.ACTION_GET_CONTENT); pickImageIntent.setType("image/*"); Log.e("kangshifu","跳转"); activity.startActivityForResult(pickImageIntent, REQUEST_CODE_CHOOSE_IMAGE_FROM_GALLERY);、

此时承载flutterboostView的mainActivty有走detachFlutterview,是不是detach之后插件image picker的PluginRegistry.ActivityResultListener无法回调

kangshifu avatar Apr 12 '19 04:04 kangshifu

从跳转到相册的日志 E/kangshifu: 跳转 I/Timeline: Timeline: Activity_launch_request time:130591068 E/kangshifu: user 离开 D/CrashReport: >>> com.to8to.wireless.designroot.MainActivity onPaused <<< I/CrashReport-Native: Set native info: isAppForeground(false) I/flutter: FlutterBoost#BoostContainerLifeCycleObserver container:RootContainerPage lifeCycle:ContainerLifeCycle.Disappear E/FlutterBoost#: stop flutter view I/flutter: TBLogo:[TBPrintLevel.Verbose] AppLifecycleState=AppLifecycleState.paused I/flutter: AppLifecycleState:AppLifecycleState.paused 362 E/FlutterBoost#: Application entry background E/container: container onStop I/flutter: FlutterBoost#BoostContainerLifeCycleObserver container:RootContainerPage lifeCycle:ContainerLifeCycle.Background E/FlutterBoost#: Application entry foreground D/CrashReport: >>> com.to8to.wireless.designroot.MainActivity onResumed <<< I/CrashReport-Native: Set native info: isAppForeground(true) E/container: container onResume E/FlutterBoost#: resume flutter view E/container: onPostResume I/flutter: FlutterBoost#BoostContainerLifeCycleObserver container:RootContainerPage lifeCycle:ContainerLifeCycle.Foreground E/FlutterBoost#: onNativePageResult call error I/flutter: TBLogo:[TBPrintLevel.Verbose] AppLifecycleState=AppLifecycleState.resumed I/flutter: AppLifecycleState:AppLifecycleState.resumed I/flutter: FlutterBoost#onShownContainerChanged old:null now:1555045705082-252206874 I/flutter: FlutterBoost#BoostContainerLifeCycleObserver container:RootContainerPage lifeCycle:ContainerLifeCycle.Appear I/flutter: FlutterBoost#native containner did show, manager dump: onstage#: {uniqueId=1555045705082-252206874,name=RootContainerPage} offstage#: {uniqueId=default,name=default} E/FlutterBoost#: onContainerShown E/container: container shower D/JIGUANG-JCore: [HttpHelper] status code:200 retry left:2 I/TBuglyPlugin: initBuglyChannel initBuglyChannel method:reportException

kangshifu avatar Apr 12 '19 05:04 kangshifu

你好请问你解决了吗

wozhizhizhi avatar Apr 17 '19 01:04 wozhizhizhi

你好怎么解决

SummerZZ100 avatar Jun 13 '19 00:06 SummerZZ100

请问你怎么解决的

idevma avatar Aug 12 '19 10:08 idevma

这个方案可以临时解决 https://github.com/flutter/flutter/issues/19103#issuecomment-569547402

aeoluswind avatar Jan 07 '20 10:01 aeoluswind