BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 07-19-2008, 01:27 PM   #1 (permalink)
New Member
 
Join Date: Jul 2008
Model: 8310
PIN: N/A
Carrier: T-Mobile
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Prompting to be allowed to use http

Please Login to Remove!

Good evening one and all. What a wonderful resource this site is -- took a little bit of finding before I hit it. Well done.

I have a Java app that posts data to the server. Everytime I start the application up, it always prompts the user if they permit the connection. After that it works fine from there on in.

However when i shut the app down, and restart it, it asks for permission on startup.

How can i "cache/store" the users permission between app restarts?

thanks

alan
Offline  
Old 07-19-2008, 04:06 PM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

The user needs to set those permissions prior to running your application. Application Permissions can be found under Options / Security Options/ Applications Permissions.
Offline  
Old 07-20-2008, 01:08 AM   #3 (permalink)
New Member
 
Join Date: Jul 2008
Model: 8310
PIN: N/A
Carrier: T-Mobile
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks for that.

however, other applications manage to do it with out having to reprompt.

is this one of the advantages of having the application signed?
Offline  
Old 07-20-2008, 01:58 PM   #4 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

Yes, if you are using classes that are marked as "requires signature". Look at your build window and see if you are gettign any of these warnings.
Offline  
Old 07-21-2008, 05:57 PM   #5 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

You might also take a look at ApplicationPermissions and ApplicationPermissionsManager if you are developing for 4.2.1 or above.
Offline  
Old 07-21-2008, 07:32 PM   #6 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

Hmmm...I just did a test of ApplicationPermissions and ApplicationPermissionsManager to programmatically make a change to phone access, which prompts the user to verify my request and save. Everything goes just fine and dandy, except that the after the user "saves" my settings, my application still throws the access exception. I then go back to Security Settings (manually, via the menus) and the phone setting is back to "Deny" again.

Anybody get this "ApplicationPermissions" thing working as documented?
Offline  
Old 07-23-2008, 01:07 PM   #7 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

Submitted this issue to RIM - response was "we were able to duplicate the issue and we're looking into it".
Offline  
Old 07-23-2008, 07:28 PM   #8 (permalink)
Thumbs Must Hurt
 
Join Date: Dec 2005
Model: 8310
Carrier: Rogers
Posts: 138
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just so you know you're not alone, I also experienced this issue on some older apps builds with ApplicationManager. I believe it is a known issue at RIM as you said
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

5x Inductance Selection 120 uh µH Throttle Coil - More Value in the Shop
$4.12
5x Inductance Selection 120 uh µH Throttle Coil - More Value in the Shop picture5x Inductance Selection 8,2 UH µH Throttle Coil - More Value in the Shop
$4.12
5x Inductance Selection 8,2 UH µH Throttle Coil - More Value in the Shop pictureGE CR553AC3AAA N 40A 600V 3P Coil120 NEW
$30.0
GE CR553AC3AAA N 40A 600V 3P Coil120 NEW pictureVESPA PX 80 125 150 200E P200E RALLY STATOR PLATE ASSEMBLY 7 WIRES 5 COILS
$89.99
VESPA PX 80 125 150 200E P200E RALLY STATOR PLATE ASSEMBLY 7 WIRES 5 COILS pictureElectrical Machine Plastic Single Phase Coil Wire Winding Mould Beige
$15.07
Electrical Machine Plastic Single Phase Coil Wire Winding Mould Beige picture






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