- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is any way to use the QR scanner in portrait mode instead the landscape mode when the camera opens?, because I don't see any option in the docs: https://software.intel.com/en-us/node/493099
Thanks a lot :)
- Tags:
- HTML5
- Intel® XDK
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can set the orientation using setRotateOrientation method prior to calling barcode.scan. https://software.intel.com/en-us/node/493051
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Swati, thanks for your help
This is my code but I'm still viewing the scanner in landscape mode :(
document.addEventListener("intel.xdk.device.barcode.scan", function(evt) { if (evt.success == true) { temp = evt.codedata; console.log(temp); } else { console.log("fail"); }; }, false); $('a').click(function(event) { intel.xdk.device.setRotateOrientation("portrait"); intel.xdk.device.scanBarcode(); });
again, thanks for your help :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I believe you are trying on Android. I was able to reproduce it. I've filed a bug for this.
Thanks,
Swati
![](/skins/images/C4F7392A5C68ACA60290C9576F107044/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page