G Gawro777 Member Licensed User Longtime User Oct 27, 2016 #1 Hello, I am trying to have preferences in separate activity. I generally use the way described in that thread: https://www.b4x.com/android/forum/threads/user-preferences-in-a-separate-activity.22245/ It works, but when I am closing AHPreferences screen (by back button) I am going back to Settings Activity (which has no layout, because it uses StartActivity(screen.CreateIntent)). So I have black screen and have to click back again to go back to my main activity. How can I avoid that?
Hello, I am trying to have preferences in separate activity. I generally use the way described in that thread: https://www.b4x.com/android/forum/threads/user-preferences-in-a-separate-activity.22245/ It works, but when I am closing AHPreferences screen (by back button) I am going back to Settings Activity (which has no layout, because it uses StartActivity(screen.CreateIntent)). So I have black screen and have to click back again to go back to my main activity. How can I avoid that?
Erel B4X founder Staff member Licensed User Longtime User Oct 27, 2016 #2 AHPreferneces is an activity by itself. You don't need to add another 'Settings' activity. With that said, you can call Activity.Finish after you call StartActivity to remove the settings activity. Upvote 0
AHPreferneces is an activity by itself. You don't need to add another 'Settings' activity. With that said, you can call Activity.Finish after you call StartActivity to remove the settings activity.