thedesolatesoul Expert Licensed User Longtime User Oct 22, 2014 #1 Is it possible to use DialogFragment in B4A? I get a NullPointerException on ba.activity.getFragmentManager() ?
Is it possible to use DialogFragment in B4A? I get a NullPointerException on ba.activity.getFragmentManager() ?
Erel B4X founder Staff member Licensed User Longtime User Oct 23, 2014 #2 GoogleMaps library adds a MapFragment. I guess that you can also add a DialogFragment. Have you marked your class as an @ActivityObject?
GoogleMaps library adds a MapFragment. I guess that you can also add a DialogFragment. Have you marked your class as an @ActivityObject?
thedesolatesoul Expert Licensed User Longtime User Oct 23, 2014 #3 I forgot to add @ActivityObject and that fixed the issue. Thank you. Just for my understanding, ba.activity will return null or use the wrong context if @ActivityObject is not specified?
I forgot to add @ActivityObject and that fixed the issue. Thank you. Just for my understanding, ba.activity will return null or use the wrong context if @ActivityObject is not specified?