It's a relatively simple problem. I am not sure what are you doing wrong.
The title can be changed anytime from anywhere.



Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Wed, Jan 12, 2011 at 10:43 PM, Paul <[email protected]> wrote:

> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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