LWGShane Well-Known Member Licensed User Longtime User Nov 9, 2015 #1 I am updating my app to target Marshmallow, and my Menu Item closes the app after the first click. My code: B4X: Activity.AddMenuItem("About", "About") B4X: Sub About_Click StartActivity(About) End Sub Any ideas? Project is attached. Attachments App.zip 44 KB · Views: 120 Last edited: Nov 9, 2015
I am updating my app to target Marshmallow, and my Menu Item closes the app after the first click. My code: B4X: Activity.AddMenuItem("About", "About") B4X: Sub About_Click StartActivity(About) End Sub Any ideas? Project is attached.
DonManfred Expert Licensed User Longtime User Nov 10, 2015 #2 It works for me... LogCat connected to: 05157df57d72d204 --------- beginning of main --------- beginning of system ** Activity (main) Create, isFirst = true ** ** Activity (main) Resume ** ** Activity (main) Pause, UserClosed = false ** ** Activity (main) Resume ** ** Activity (main) Pause, UserClosed = false ** ** Activity (about) Create, isFirst = true ** ** Activity (about) Resume ** Click to expand... Edit: i see you are talking about android 6. I´m using lollipop. Upvote 0
It works for me... LogCat connected to: 05157df57d72d204 --------- beginning of main --------- beginning of system ** Activity (main) Create, isFirst = true ** ** Activity (main) Resume ** ** Activity (main) Pause, UserClosed = false ** ** Activity (main) Resume ** ** Activity (main) Pause, UserClosed = false ** ** Activity (about) Create, isFirst = true ** ** Activity (about) Resume ** Click to expand... Edit: i see you are talking about android 6. I´m using lollipop.
Erel B4X founder Staff member Licensed User Longtime User Nov 10, 2015 #3 It works fine here, tested on Android 6. You need to set the targetSdkVersion to 14 for the debugger to work properly (due to the new permissions introduced in Android 6, it will be supported in the future). Can you post the logs? Upvote 0
It works fine here, tested on Android 6. You need to set the targetSdkVersion to 14 for the debugger to work properly (due to the new permissions introduced in Android 6, it will be supported in the future). Can you post the logs?