I posted this over at StackOverflow, but not much of a response...
maybe someone else can run this on their testbed and verify?  A
strange problem...

==

Hi all.  I have a simple app based on the Notepad demo application,
and when a user is viewing/editing a note they can launch a dialog
activity (TitleEditor) that allows them to change the title of a note.
Currently in the app, when viewing/editing a note, the notes' current
title is shown as the activity title.

So, I launch the TitleEditor dialog activity with
startActivityForResult(), and in onActivityResult() I am successfully
getting the new title back, no problem.

The issue relates to then updating the notes view/edit (the active
activity) title... using setTitle() in onActivityResult() with the
data passed back does seem to set the title internally (a subsequent
call to getTitle() shows the new title has been set), but the actual
UI title is not updated until the activity is closed and then re-
launched.

I've used setTitle() in onResume(), onPrepareOptionsMenu(), etc and it
worked like a charm, but not working here... any ideas or suggestions?

Thanks,

Paul

-- 
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