Thanks Dianne, that did the trick, I have setup a Broadcast receiver
to try and catch users manually changing values via the settings
panel.....now its just a case of finding the names of all the
broadcasts that are sent out by various settings panels!

On May 5, 5:54 pm, Dianne Hackborn <[email protected]> wrote:
> Correct there is no way to get a result back from a PendingIntent that
> someone else launched.  But you could just write you pending intent to
> launch your own activity which launches the settings panel.  (Though this
> will still leave back-doors where the user could explicitly go to settings
> and change something without you being aware.)
>
> On Tue, May 5, 2009 at 2:29 AM, [email protected] <
>
>
>
> [email protected]> wrote:
>
> > The problem I have here is that after the setting is updated in the
> > configuration dialogue I need to dynamically update the current
> > display of all widgets, however since they are running as a pending
> > Intent from the Widget manager I cant see how I can get a notified
> > when the user has closed the settings dialogue, since as you say the
> > startActivity() call does not block my current pendingIntents
> > execution and there is no way for it to detect when the back button is
> > pressed.
>
> > Is it simply not possible to achieve in an activity launched via a
> > pending intent or am I just going about this the wrong way?
>
> > Thanks for all your help!
>
> > -James
>
> > On May 4, 3:48 pm, Mark Murphy <[email protected]> wrote:
> > > [email protected] wrote:
> > > > I am currently trying to launch a GPS settings activity using
> > > > startActivityForResult....however it never seems to be calling my
> > > > onActivityResult function after it exits. I noticed the docs mentioned
> > > > that some Intent protocols are not defined to return a result, is this
> > > > one such example?
>
> > > I would be surprised if the settings activities are built to return a
> > > result. After all, most of those activities adjust several settings, so
> > > what would the result be?
>
> > > > are there any flags that I could set to either make
> > > > the settings activity call onActivityResult, or even better make my
> > > > activity block until the launched activity returns?
>
> > > That depends on what you mean by "block".
>
> > > Your activity already blocks until the launched activity is closed. All
> > > activities work that way when starting up other activities.
>
> > > However, in this case, "block" does not mean startActivity() blocks.
> > > Instead, after you have called startActivity() and returned from
> > > whatever callback you are in, your activity will be stopped and the
> > > settings activity will be opened.
>
> > > --
> > > Mark Murphy (a Commons Guy)http://commonsware.com|
> >http://twitter.com/commonsguy
>
> > > _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to