Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Contributor
ah_hung82
Posts: 4
Registered: ‎07-15-2011
My Device: OS6
My Carrier: OS6

Re: Starting up camera with new API?

Dear MMC,

 

I am having the similar problem " Error in supported: TypeError: Cannot convert 'undefined' to an object."

 

I have added the featureid manually but it's the same error

<feature id="blackberry.media.camera" /> to the config.xml

 

I am using the emulator 9800 OS 6.0.0.227 

 

Can you pls shed some light? 

 

Thanks

Please use plain text.
Regular Contributor
MMC
Posts: 50
Registered: ‎02-14-2011
My Device: Not Specified

Re: Starting up camera with new API?

The only thing that worked for me was including all available permissions in config.xml and compiling the app in Webworks SDK 2.1. When I did that, the camera example(I believer higher up in this thread), finally worked. Even without the TypeError, my understanding is that the camera function doesn't work in the emulator. I've been testing directly on a BB.

Please use plain text.
Developer
ashutoshg
Posts: 140
Registered: ‎02-05-2009
My Device: 8900
My Carrier: Airtel India

Re: Starting up camera with new API?

i did the same as mentioned above.

 

1) included all available permissions in config.xml

2) compiled the app in Webworks SDK 2.1.

3)tested in device and emulator

 

"but still facing TypeError:" i am using BB 9700 OS 5.0.x.x

 

Please help me to resolve this issue.

Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Starting up camera with new API?


ah_hung82 wrote:

Dear MMC,

 

I am having the similar problem " Error in supported: TypeError: Cannot convert 'undefined' to an object."

 

I have added the featureid manually but it's the same error

<feature id="blackberry.media.camera" /> to the config.xml

 

I am using the emulator 9800 OS 6.0.0.227 

 

Can you pls shed some light? 

 

Thanks


Is this on a simulator or a physical device?

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Starting up camera with new API?


ashutoshg wrote:

i did the same as mentioned above.

 

1) included all available permissions in config.xml

2) compiled the app in Webworks SDK 2.1.

3)tested in device and emulator

 

"but still facing TypeError:" i am using BB 9700 OS 5.0.x.x

 

Please help me to resolve this issue.


Can you fill in the 5.0.x.x with the full version number 5.0.0.353... We need to make sure we are testing the exact same thing to try and reproduce the problem.

 

Could you also post up a simple HTML page with JavaScript and your config.xml file that can reproduce the problem.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.