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


Siemens 6ES7214-1HG40-0XB0 Compact Processor picture

Siemens 6ES7214-1HG40-0XB0 Compact Processor

$225.00



AB 1747-L542 /B SLC 500 5/04 CPU PROCESSOR UNIT New Factory Sealed AB 1747L542 picture

AB 1747-L542 /B SLC 500 5/04 CPU PROCESSOR UNIT New Factory Sealed AB 1747L542

$334.57



NEW SEALED AB 1747-L541 /C SLC 500 SLC 5/04 CPU PROCESSOR UNIT MODULE US picture

NEW SEALED AB 1747-L541 /C SLC 500 SLC 5/04 CPU PROCESSOR UNIT MODULE US

$310.93



New Sealed Allen-Bradley 1756-L62 SER B ControlLogix Processor Unit Controller picture

New Sealed Allen-Bradley 1756-L62 SER B ControlLogix Processor Unit Controller

$378.00



1000W Stainless Steel Welding Bead Processor,Brush Type Weld Cleaning Machine picture

1000W Stainless Steel Welding Bead Processor,Brush Type Weld Cleaning Machine

$203.49



ALLEN BRADLEY 1769-L32E /A LOGIX 5332E PROCESSOR UNIT 5-24VDC .66-.09A *READ* picture

ALLEN BRADLEY 1769-L32E /A LOGIX 5332E PROCESSOR UNIT 5-24VDC .66-.09A *READ*

$320.00







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