html code to make Blackberry sing ring or vibrate - html

I know that Blackberry has added new API's on OS5-6 that allow HTML5 code to access native features & widgets. Is it possible to make blackberry beep, ring, vibrate or sing (play mp3) to alert user of an event through an HTML page.
There is a java class called net.rim.device.api.system.Alert that might be accessible, but I don't know how to reach it with html/js.

Are you creating an app with embedded browser wrapped in native shell? Then you can access almost all native features (the one which are exposed) using javascript extensions.
If it's purely a web app or webworks application, you should be able to find all native features that can be accessed from the browser at
BlackBerry® WebWorks™ API Reference
You still will be using Javascript Extensions.

Related

TideSDK Namespace (Application ID)

I have an app that functions perfectly outside of Tide. The app uses Flowplayer to load and play a video using HTML5. It appears that when Flowplayer insert the video tag and sets the src attributes, the path is prefaced by the namespace (application id) used in my app configuration. Is there a way to disable this?
Everything in my app is inside the resources folder so there is no need to include the application name in the path.
Thanks,
H
#Ward Where we left TideSDK, unfortunately it did not have support for audio/video tags in HTML5. The HTML parser within the webkit in that code does not handle this properly. We decided more than a year ago to put our energy into a broader effort for mobile, web, and desktop called TideKit that is due to be released shortly. http://youtu.be/aE7gN-d0GhU
HTML5 support is state-of-the-art including audio/video so embedding is just as easy as using the tags. Working with anything HTML5 or creating apps with native capabilities and UI will be easier and better than ever. TideKit will launch with a CLI and an app to connect with our build service to optimize build's based for your app's requirements (and where you want it to go). Any code you have in TideSDK can be migrated easily.

QR-Scanning built with HTML5 & javascript, Turned into phone app with phonegap build?

Seen many posts on this around the web but no nearer finding out if it's possible to do...
Have seen http://www.webqr.com/ recommended but I tried uploading the .zip from github (https://github.com/LazarSoft/jsqrcode) for this to phonegap and the compiled app fails on android with "Sorry, native web camera streaming (getusermedia) is not supported by this browser"
Well, I'm not trying to use the webcam really, I want to access the camera on the phone/ipad if possible.
Is it actually possible to do this from HTML5 or does it require a proper native app? (so xcode for the ipad app I have in mind)
I've also seen some plugins for "phonegap" (as opposed to phonegap build) which would also require a mac/xcode so that's not the angle I want to approach it from as I'm trying to do this all from windows if possible.
This may help. it a js plugin. search the phonegap plugin page for 'scanners'
https://build.phonegap.com/plugins/2421
https://github.com/wildabeast/BarcodeScanner/tree/c74e37a

Capture video/image using user's webcam using GWT

I am developing project using GWT2.5 and I need to use the User’s webcam to capture
images/video.
How it is possible in GWT?
GWT 2.5 comes with a new library called Elemental, it is thought as a wrapper of the browser API. It just works with chrome, but in a future it could support more browsers.
If you are confortable supporting in your app chrome for this feature, you can take a look to this example. The source code of the demo is in googlecode.
If you wanted to support other browsers, you could take the elemental classes as base and modify them to match other browsers.
Here is a video introducing elemental during the google I/O 2012
A GWT based API to capture webcam snapshots from the browser. This API is a GWT wrapper for the jpegcam JavaScript library.
Samples and Source code.
Hope that helps.

AS3 Starling stagewebview cant access content

I have setup a starling project and added stagewebview to embed Google maps. I have tested the project using Facebook and it seems to load http://facebook.com correctly. The issue I am having is I am unable to access the page (click links, log in etc).
I don't know if I understand the use of stagewebview or if something else is stopping me from accessing the content. My understanding is you can load an external page into the project/device.
The project will be used in a mobile app that uses maps. If someone knows of a better way to using Google maps (or any other mapping software) in a mobile (iOS and Android) I am all ears.
Thanks
Loading Google maps into a stageWebView certainly is possible. Although I used StageWebViewBridge as I needed communication both ways between ActionScript and JavaScript.
StageWebViewBridge loading and communicating with online page
Be aware though that the stageWebView won't be on the Starling (Stage3D) display list. It will need to sit above on the Flash NativeStage.
For mobile you could look into using an ANE to access mapping APIs.
http://sleepydesign.blogspot.co.uk/2012/07/ane-free-air-native-extensions.html
http://code.google.com/p/air-maps-ane/
Or Distriqt sell a range of ANE's, mapping included.
http://labs.distriqt.com/native-extensions

Does Sencha Touch, or any other HTML5 javascript framework, allow access to a mobile phone's media library for uploading video to a server?

I am looking at building an app that can take a video from a person's media library on their mobile phone and upload it to my servers. As far as I can tell, I'd have to build an application for each type of mobile device I want to include. But if new HTML5 protocols let me upload video files through the browser (and can handle the file size), this would be a preferred method.
Web apps don't have access to the media library on a phone. Use phonegap to get access to the users photos - http://docs.phonegap.com/phonegap_media_capture_capture.md.html
Considering you are using iOS and running the WebApp in iOS' MobileSafari, you have NO access to any system related components, libraries or anything (so no Photos, Videos etc).
And Safari itself does not support file upload. You can add the tag but it will always remain as if had disabled="disabled" attribute.
The only way to access these components is by using a Native code or, like Joel said, PhoneGap since it gives the html pages, access to Native API's through it's JS Framework.
For Android, i have no idea but probably not.