REQUIRED INFORMATION Touch version tested:
  • Touch 2.1 rev 447

Command version tested:
  • Touch 3.0 rev 141
Devices tested
  • Android 4.2 Emulator
Description:
  • Ext.device.* functionality does not work in packaged app on android although it works in unpackaged browser.
Steps to reproduce the problem:
  • sencha generate app path C:\BlaBla\Demo2
  • modify app.js to require Ext.device.Camera and Ext.device.Notification
  • modify packager.json with appropriate values
  • modify Main.js to add button that calls Ext.device.Notification.show() and Ext.device.Camera.capture
  • Open index.html in Chrome browser via Web Server -> Functionality works (Notification displayed, Camera.capture() returns demo url)
  • sencha app build native
  • Start emulator
  • adb -install -r MyApp.apk
  • run demo app on Emulator
The result that was expected:
  • Same behaviour as in browser: notification displayed, camera functionality
The result that occurs instead:
  • Nothing happens on pressing the button
Test Case: See full project code and packaged apk at http://www.neunbeere.de/ExtRef/SenchaTouch2Demo2.zip HELPFUL INFORMATION Operating System:
  • Windows 7