BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-26-2007, 07:32 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2007
Model: 8800
PIN: N/A
Carrier: Vodafone
Posts: 29
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Password before close

Please Login to Remove!

Hello People ,

And i want before the programs can be closed comes a field, where the user must type a password.


I tried with Dialogs, but I didn't get it.

Plz help me or give tips
Offline  
Old 07-26-2007, 07:49 AM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: May 2007
Location: Bulgaria
Model: none
PIN: N/A
Carrier: Mtel
Posts: 150
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Why do you need this functionality? Usually the password is needed the the application is opened.

I think you can use PasswordEditField, but you should put it in some manager that is like Dialog and push it before the application is closed...something like that..i'am not so sure
Offline  
Old 07-26-2007, 08:01 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2007
Model: 8800
PIN: N/A
Carrier: Vodafone
Posts: 29
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

i Should make a programm, that read with a RFID reader the code, the reader send it via Bluetooth to the BB und there the Programm get the code und should it send in an E-mail
That all works very good!
For example the user should go through house and must pass some points. The user who take the BB (not the owner!!) must have this tool every time open,because the chief can look where the user are.

I hope that you understand it, my english isn't very good ;)

I try today or tomorrow your idea
thx a lot
MfG Martin
Offline  
Old 07-27-2007, 03:07 AM   #4 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2007
Model: 8800
PIN: N/A
Carrier: Vodafone
Posts: 29
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I tried now to make a new Screen (Third class).
I have already one. This screen was made in the MainClass extends UiApplication with the method pushScreen, but in the Second class extends MainScreen I don't get this method.
Then i tried with a fourth class extends UiApplication to start the new Screen. it compile but if i want start the new UiAppilcation comes an error which says "There is already running an Application" :(
Offline  
Old 07-27-2007, 03:45 AM   #5 (permalink)
Thumbs Must Hurt
 
Join Date: May 2007
Location: Bulgaria
Model: none
PIN: N/A
Carrier: Mtel
Posts: 150
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well the problem in the first case is that pushScreen is public final method so you can not override it in the child class if you have tried this...In the second case you can use only one class extends UiApplication i think, because UiApplication is the main class for your app as far as i know, so you should use only one class extends UiApplication logically...I think the right way in your case is like that: create your onw class extends Screen...in this class put the PasswordEditField you need...draw a rect with size you want..put the pass field there...than create an instance of that your own class in the class that extends UiApplication (your main class for your app) and when you close the app just pushScreen(myPassField) where myPassField is the instance of your class...Do you understand...Well i am not sure if this will work..i have not tried something like this...but it is just an idea...maybe there is another easy way...i have not time enough to try this ..Good luck
Offline  
Old 07-27-2007, 03:57 AM   #6 (permalink)
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

why not just use:

UiApplication.getUiApplication.pushScreen(new myPasswordScreen());

where myPasswordScreen extends PopupScreen?
__________________
new job doesn't allow a public profile - please do not contact this user with questions, you will not get a response. good luck!
Offline  
Old 07-27-2007, 04:01 AM   #7 (permalink)
Thumbs Must Hurt
 
Join Date: May 2007
Location: Bulgaria
Model: none
PIN: N/A
Carrier: Mtel
Posts: 150
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, Better idea !!!
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.