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
Developer
Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Device discovery the easy way

I had a day off (waiting for the boss to finish off breaking my code <g>) so I played around with some long overdue experiments

 

This one you'll like...

 

There's a package called WURFL that lets you know exactly what the device you're on can do

 

Let's say you've got a BB7 and you wanna know if it supports NFC - some do, others don't this gizmo can tell you

 

That's an extreme example - Do I have GeoLocation? Can I play an MP3? Can I do this, that, the other?

 

I've set up a very basic hack of and included script on my site you can point a browser at - don't bother with desktops, use a mobile of some sort

 

Point a MOBILE browser here and find out what your device does

 

This is a 'me playing around' toy.

 

The junk you see on the page is fairly easy to read - it's a PHP object dump (I'm not trying to make it pretty - just informative)

 

The bad news...

 

You need a server to deploy this - so if you ain't got one you're stuck, I use one of my PHP servers for this demo

 

I wanna JSON this lot back to myself (that's easy)

 

More bad news...

 

I'm only leaving this stuff up for a month or so

 

BTW - the url is woof cos my dog's sick

 

Go play guys and gals




Click the like button if you find my posts useful!