BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-09-2010, 06:51 AM   #1 (permalink)
New Member
 
Join Date: Nov 2010
Model: 9000
PIN: N/A
Carrier: Airtel - India
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default problem application installing using CodeModuleManager..

Please Login to Remove!

Hi,

I used following link to installed the application..

supportforums.blackberry.com/t5/Java-Development/Programmatically-install-and-upgrade-application

I successfully test this application on Simulator and Blackberry 9000 OS 4.6.0.282.

The installed app ask to sst the permission at the time of launch.

But when i installed application on following devices The installed application does not ask to set the permission and throw "Uncought exception: java.lang.Error" at the time of launch. When I manually set the permission to this application then they run fine.

this behavior is observe on following devices.


Name OS Error
Curve 8530 5.0.0.459 The application XYZ has attempted to open an external connection which is not allowed by the Applications permissions"

Storm 9530 5.0.0.419 The application XYZ has attempted to open an external connection which is not allowed by the application s permissions"

Tour 9630 4.7.1.53 "Uncaught exception: java.lang.Error

Tour 9630 4.7.1.53 "Uncaught exception: java.lang.Error

How do i solve this issue..

Is there any way to set the permission to installed app using codemodulemanager.

waiting for answer..
plz help..

thanks
Ashish
Offline  
Old 11-09-2010, 07:48 AM   #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

You might try setting the required permissions using ApplicationPermissionsManager.
Offline  
Old 11-09-2010, 11:16 PM   #3 (permalink)
New Member
 
Join Date: Nov 2010
Model: 9000
PIN: N/A
Carrier: Airtel - India
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

there is no provision to set permission for another application.

I am installing new application from my application..

Any other clue?
Offline  
Old 11-10-2010, 07:51 AM   #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

The application is responsible for it's own permissions - you cannot set these from your "installer" app (if that is what you are trying to do).
Offline  
Old 11-10-2010, 08:01 AM   #5 (permalink)
New Member
 
Join Date: Nov 2010
Model: 9000
PIN: N/A
Carrier: Airtel - India
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes u r right, I already know that.

But when you install the new app say B using Installer app(A) and When you launch the new app(B), B app has to ask user to set the required permission. same way it works on below 4.6 OS.

But above 4.7 it does not prompt user to set the permission instead it through the exception and application get crashed.
Offline  
Old 11-10-2010, 09:25 AM   #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

That's an issue for whoever developed the application.
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.