BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 05-26-2008, 12:25 AM   #1
ajj_dev@yahoo.com
Knows Where the Search Button Is
 
Join Date: May 2008
Model: 7100
PIN: N/A
Carrier: Sprint
Posts: 31
Default how to change application permission in emulator

Please Login to Remove!

hi all,

In my application iam using application permission API,i ll get the status of the permission using
boolean status1=ap.containsPermissionKey(ApplicationPermis sions.PERMISSION_BLUETOOTH);
iam getting status as true as all permissons are in allow state in emulator.
Is there any way to change the permission to deny in emulator,iam asking this because as soon as i change permission to deny and click on save my emulator is getting struck. is it my emulator's problem or we cant change the permission in emulator?????

thanks
ajj
Offline  
Old 05-26-2008, 03:47 AM   #2
arunk
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Default

I think if you change the permission in emulator, you are not changing the permission for the your application, but for the emulator application.
Offline  
Old 05-26-2008, 04:01 AM   #3
ajj_dev@yahoo.com
Knows Where the Search Button Is
 
Join Date: May 2008
Model: 7100
PIN: N/A
Carrier: Sprint
Posts: 31
Default

Hi arunk,
iam developing my application using J2ME midlet,i mixed up midlet and Black berry api's,if i want to test my application in black berry device it asking me for the signing of the API,so now i want to change the emulator permission to test my application output.I want to check what will be the output if permission is in allow state and what will be the output if the permission is in deny state.

thanks
ajj
Offline  
Old 05-26-2008, 04:43 AM   #4
arunk
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Default

For signing you have to get a signing key (from RIM I think - $100).

In simulator the permissions will be allow by default for your application

So I am not sure whether you can test that in a simulator.

Once you sign your application you can use that in the device and test it.
Offline  
Old 05-26-2008, 04:51 AM   #5
ajj_dev@yahoo.com
Knows Where the Search Button Is
 
Join Date: May 2008
Model: 7100
PIN: N/A
Carrier: Sprint
Posts: 31
Default

Hi Arunk,

Thanks for the reply.

sincerely,
ajj
Offline  
Old 01-28-2009, 09:28 AM   #6
dennita
New Member
 
dennita's Avatar
 
Join Date: Oct 2008
Model: 8100
PIN: N/A
Carrier: Cingular
Posts: 9
Default

signing key is $20
Offline  
Old 01-29-2009, 07:43 AM   #7
dels
Knows Where the Search Button Is
 
Join Date: Dec 2008
Model: 8800
PIN: N/A
Carrier: Telkomsel
Posts: 17
Default run simulator on secure mode

who said you can't run simulator with all security option turned on like the actual device?

you can and it's called secure mode, you just have to edit simulator xxxx.bat in C:\Program Files\Research In Motion\BlackBerry JDE 4.2.1\simulator (maybe different from your installation directory)
and add /secure

example, i modified 8800.bat
Code:
@echo off 
fledge.exe /app=Jvm.dll /handheld=8800 /session=8800 /app-param=DisableRegistration /app-param=JvmAlxConfigFile:8800.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A /secure
if you have JDE that would be easier since you can turned on security option on device simulator preference
Offline  
Closed Thread



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


US Stock 110VAC 60W 40KHz Ultrasonic Cleaning Transducer Cleaner & Driver Board picture

US Stock 110VAC 60W 40KHz Ultrasonic Cleaning Transducer Cleaner & Driver Board

$50.53



Emerson 809-3000 Semiconductor Refrigerant Transducer 12-24V AC picture

Emerson 809-3000 Semiconductor Refrigerant Transducer 12-24V AC

$225.00



YORK 025-28678-008 DESC TRANSDUCER STOCK #K-2311 picture

YORK 025-28678-008 DESC TRANSDUCER STOCK #K-2311

$220.50



CR Magnetic CR4180-20 True RMS AC Current Transducer 3 Element - New picture

CR Magnetic CR4180-20 True RMS AC Current Transducer 3 Element - New

$229.95



60W 40KHz Silvery Ultrasonic Piezoelectric Transducer High Conversion Efficiency picture

60W 40KHz Silvery Ultrasonic Piezoelectric Transducer High Conversion Efficiency

$18.99



MTS LPRHVU00701 Temposonics Transducer Linear Position LPR-HVU-00701 90014868 picture

MTS LPRHVU00701 Temposonics Transducer Linear Position LPR-HVU-00701 90014868

$238.95







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