inor
inor

Reputation: 2846

when does calling the android activity's setTitle actually affects the title?

using eclipse to debug an android application in the emulator. upon executing activity.setTitle() i expect the title of the emulated application to be changed but it does not. at what point does the new app title actually show? do i have to make any other calls if i want to force it to be shown immediately at that time?

Upvotes: 0

Views: 611

Answers (1)

Julian
Julian

Reputation: 20324

This might vary depending if your activity is an embedded activity or the top-level activity. See the documentation for setTitle(), which says:

Change the title associated with this activity. If this is a top-level activity, the title for its window will change. If it is an embedded activity, the parent can do whatever it wants with it.

Upvotes: 1

Related Questions