Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
Posts: 26
Registered: ‎03-25-2012
My Device: none
My Carrier: vodafone

Remove Save changes pop up from ui application

Can anyone help me here ?

i am trying to remove save changes pop up menu which comes on press of escape button ..

i am extending UiApplication and not MainScreen so overiding onSavePrompt wont work .

 

Thanks in advance ...


Regards ,
Krupesh H
Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Remove Save changes pop up from ui application

UiApplication on its own does not have any UI, so you most likely have a Screen?
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
Posts: 26
Registered: ‎03-25-2012
My Device: none
My Carrier: vodafone

Re: Remove Save changes pop up from ui application

true sir,

i am creating a mainscreen object and adding the widgets .

 

for ex:

MainScreen ms = new MainScreen();

ButtonField b = new ButtonField()

ms.add(b);

 

  pushScreen(b);


Regards ,
Krupesh H
Contributor
Posts: 26
Registered: ‎03-25-2012
My Device: none
My Carrier: vodafone

Re: Remove Save changes pop up from ui application

not to forget other widgets like checkboxes..etc


Regards ,
Krupesh H
Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Remove Save changes pop up from ui application

well, then you have a mainscreen and can overwrite onSavePrompt.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 2,268
Registered: ‎07-08-2009
My Device: various
My Carrier: various

Re: Remove Save changes pop up from ui application

Take a look at this knowledge base article:

MainScreen explained

----------------------------------------------------------
please click 'Accept Solution' on posts that provide the solution to the question you've posted. Don't say "Thanks", press 'Like' button instead!
Contributor
Posts: 26
Registered: ‎03-25-2012
My Device: none
My Carrier: vodafone

Re: Remove Save changes pop up from ui application

I wrote the ui stuff in a seperate class extending MainScreen class . Then used

 

public boolean onClose() {
        return true;
    }

 

Its works ...


Regards ,
Krupesh H
Highlighted
Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Remove Save changes pop up from ui application

you should really read the article linked by arkadyz...
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter