BlackBerryForums.com : Your Number One BlackBerry Community      

»Sponsored Links



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

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
   
Reply With Quote
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
Dougsg38p Offline
Thumbs Must Hurt
 
Posts: 83
Join Date: Mar 2008
Location: Austin, TX
Model: 8320
PIN: N/A
Carrier: T-Mobile
Default 07-19-2008, 04:06 PM

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

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?
   
Reply With Quote
  (#4 (permalink)) Old
Dougsg38p Offline
Thumbs Must Hurt
 
Posts: 83
Join Date: Mar 2008
Location: Austin, TX
Model: 8320
PIN: N/A
Carrier: T-Mobile
Default 07-20-2008, 01:58 PM

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.
   
Reply With Quote
  (#5 (permalink)) Old
Dougsg38p Offline
Thumbs Must Hurt
 
Posts: 83
Join Date: Mar 2008
Location: Austin, TX
Model: 8320
PIN: N/A
Carrier: T-Mobile
Default 07-21-2008, 05:57 PM

You might also take a look at ApplicationPermissions and ApplicationPermissionsManager if you are developing for 4.2.1 or above.
   
Reply With Quote
  (#6 (permalink)) Old
Dougsg38p Offline
Thumbs Must Hurt
 
Posts: 83
Join Date: Mar 2008
Location: Austin, TX
Model: 8320
PIN: N/A
Carrier: T-Mobile
Default 07-21-2008, 07:32 PM

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?
   
Reply With Quote
  (#7 (permalink)) Old
Dougsg38p Offline
Thumbs Must Hurt
 
Posts: 83
Join Date: Mar 2008
Location: Austin, TX
Model: 8320
PIN: N/A
Carrier: T-Mobile
Default 07-23-2008, 01:07 PM

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

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
   
Reply With Quote
Reply


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-2008 BlackBerryNews.com, BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.1