Chatar Veer Suthar
Chatar Veer Suthar

Reputation: 15639

how to setTitle in blackberry dynametically?

I want to change the title of blackberry application view again and again when certain condition gets true, how can I do it?

Right now I am doing as

BitmapField loading=new BitmapField(Bitmap.getBitmapResource("loading.png"));
this.setTitle(loading);

but now I want something else on title, how can i do it?

Upvotes: 0

Views: 205

Answers (1)

Maksym Gontar
Maksym Gontar

Reputation: 22775

In MainScreen.setTitle you can use any Field - LabelField or BitmapField or even CheckboxField :) actually, anything.

But remember to handle UI thread when updating UI from other threads.

Upvotes: 1

Related Questions