2 Replies Latest reply on Mar 17, 2014 2:19 PM by Mark Ross

    Cannot tap file input button on Android

    Mark Ross

      I have an input field on one of my web pages in my RhoMobile app.  Code is fairly simple:

       

      <form action="" method="post" id="questionForm" enctype="multipart/form-data">

          <input type="file" accept="image/*" capture="camera" id="cameraCapture" name="cameraCapture" />

          <button type="submit" id="questionBtn" data-inline="true" data-icon="arrow-r" data-iconpos="right">Submit</button>

      </form>

       

      Using Android, when I try to tap the "Choose file" button that displays for the input field, I get these errors in logcat:

       

      I/InputReader(  481): Touch event's action is 0x0 (deviceType=0) [pCnt=1, s=0.297 ] when=13768735290000

      I/InputDispatcher(  481): Delivering touch to: action: 0x4

      I/InputDispatcher(  481): Delivering touch to: action: 0x0

      I/InputReader(  481): Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=] when=13768869506000

      I/InputDispatcher(  481): Delivering touch to: action: 0x1

      V/WebViewInputDispatcher( 1318): blockWebkitDraw

      V/WebViewInputDispatcher( 1318): blockWebkitDraw lockedfalse

      D/webview ( 1318): blockWebkitViewMessage= false

       

      The same RhoMobile app works on an iPhone without issue (camera is launched).  When I use the same code in a standard web page, accessed through the Android phone's browser (not RhoMobile app), the camera launches as expected.

       

      Any ideas why it wont work on Android?

       

      -Mark