padde wrote:Ah so your CustomPreferenceControl is your own path selector widget thingy for your preference screen?!
I hope i got it right now *g*
padde wrote:A few other ideas:
- Let the filebrowser save the selected path to the preference file (so u dont need the result of the activty).
(here you would then know when and what changed with the listener i mentioned before)
- On click of your CustomPreferenceControl save the curent state to the preference file.. call the filebrowser (without result).. close the preference activty and callback the preference activity from your filebrowser with an intent that carry the selected path.
- Provide a static method in your preference activity that calls the filebrowser (with result). Use that function insider your CustomPreferenceControl class. The result will be provided in your onActivityResult method (inside
your preference activity). From there you can pass the result to your CustomPreferenceControl class via a
setResult method or something like that.
Users browsing this forum: No registered users and 20 guests