The buttonImportIcon method does work with Readdle's PDF Expert on iOS, which is currently the best PDF viewer on iOS for forms/JavaScript/multimedia PDFs. It doesn't not work with Adobe Reader on iOS/Android. I don't know if it works with any other PDF viewers on Android.
With PDF Expert, the user can choose to take a picture with the camera or select a previously stored image.