You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Markus Kniep (JIRA)" <ji...@apache.org> on 2015/06/05 15:55:00 UTC
[jira] [Created] (CB-9123) Cordova App freezes after picking a file
via filechoosing intent
Markus Kniep created CB-9123:
--------------------------------
Summary: Cordova App freezes after picking a file via filechoosing intent
Key: CB-9123
URL: https://issues.apache.org/jira/browse/CB-9123
Project: Apache Cordova
Issue Type: Bug
Components: Android
Affects Versions: 4.3.0
Environment: Device: Samsung S3 mini
Platform: Android 4.1.2
File Explorer: Cheetah File Manager 2.3.3
Reporter: Markus Kniep
Cordova App freezes after picking a file via filechoosing intent using the Cheetah File Manager 2.3.3. When using a different device or a different filemanager the Cordova App continues as espected. It seems like the combination of S3 Mini and the Cheetah File Manager 2.3.3 cause this issue.
The intent:
public void chooseFile(CallbackContext callbackContext) {
// type and title should be configurable
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("*/*");
intent.addCategory(Intent.CATEGORY_OPENABLE);
intent.putExtra(Intent.EXTRA_LOCAL_ONLY, true);
Intent chooser = Intent.createChooser(intent, "Select File");
cordova.startActivityForResult(this, chooser, PICK_FILE_REQUEST);
PluginResult pluginResult = new PluginResult(PluginResult.Status.NO_RESULT);
pluginResult.setKeepCallback(true);
callback = callbackContext;
callbackContext.sendPluginResult(pluginResult);
}
Then, a file explorer can choose a file and accept the choice, but the public void onActivityResult(int requestCode, int resultCode, Intent data) {...} will not be called.
The app stucks with following stacktrace:
06-02 17:47:55.153 21318-21318/de.EXAMPLE.EXAMPLE I/CordovaActivity﹕ Apache Cordova native platform version 3.6.4 is starting
06-02 17:47:55.153 21318-21318/de.EXAMPLE.EXAMPLE D/CordovaActivity﹕ CordovaActivity.onCreate()
06-02 17:47:55.163 21318-21318/de.EXAMPLE.EXAMPLE I/CordovaLog﹕ Changing log level to DEBUG(3)
06-02 17:47:55.163 21318-21318/de.EXAMPLE.EXAMPLE D/CordovaActivity﹕ CordovaActivity.init()
06-02 17:47:55.173 21318-21318/de.EXAMPLE.EXAMPLE I/webclipboard﹕ clipservice: android.sec.clipboard.ClipboardExManager@41f73620
06-02 17:47:55.203 21318-21343/de.EXAMPLE.EXAMPLE V/webkit﹕ BrowserFrame constructor: this=Handler (android.webkit.BrowserFrame) {41f73678}
06-02 17:47:55.223 21318-21318/de.EXAMPLE.EXAMPLE D/CordovaWebView﹕ CordovaWebView is running on device made by: samsung
06-02 17:47:55.233 21318-21318/de.EXAMPLE.EXAMPLE I/CordovaWebView﹕ Disabled addJavascriptInterface() bridge since Android version is old.
06-02 17:47:55.233 21318-21318/de.EXAMPLE.EXAMPLE D/CordovaActivity﹕ CordovaActivity.createViews()
06-02 17:47:55.243 21318-21318/de.EXAMPLE.EXAMPLE D/CordovaWebView﹕ >>> loadUrl(file:///android_asset/www/index.html)
06-02 17:47:55.243 21318-21318/de.EXAMPLE.EXAMPLE D/PluginManager﹕ init()
06-02 17:47:55.253 21318-21319/de.EXAMPLE.EXAMPLE D/dalvikvm﹕ GC_CONCURRENT freed 126K, 16% free 9992K/11847K, paused 13ms+6ms, total 73ms
06-02 17:47:55.253 21318-21324/de.EXAMPLE.EXAMPLE D/AbsListView﹕ [unregisterDoubleTapMotionListener]
06-02 17:47:55.253 21318-21324/de.EXAMPLE.EXAMPLE I/MotionRecognitionManager﹕ .unregisterListener : / listener count = 0->0, ubvf 9budiwrd5ordgfl5BakTrklMrfo$,@,*e(c((8
06-02 17:47:55.253 21318-21318/de.EXAMPLE.EXAMPLE D/CordovaWebView﹕ >>> loadUrlNow()
06-02 17:47:55.253 21318-21318/de.EXAMPLE.EXAMPLE D/WebView﹕ loadUrlImpl: called
06-02 17:47:55.253 21318-21343/de.EXAMPLE.EXAMPLE D/webcore﹕ CORE loadUrl: called
06-02 17:47:55.253 21318-21343/de.EXAMPLE.EXAMPLE D/webkit﹕ Firewall not null
06-02 17:47:55.263 21318-21343/de.EXAMPLE.EXAMPLE D/webkit﹕ euler: isUrlBlocked = false
06-02 17:47:55.263 21318-21318/de.EXAMPLE.EXAMPLE D/CordovaActivity﹕ Incoming Result
06-02 17:47:55.263 21318-21318/de.EXAMPLE.EXAMPLE D/CordovaActivity﹕ Request code = 1
06-02 17:47:55.263 21318-21318/de.EXAMPLE.EXAMPLE D/CordovaActivity﹕ Resuming the App
06-02 17:47:55.273 21318-21318/de.EXAMPLE.EXAMPLE D/CordovaWebViewClient﹕ onPageStarted(file:///android_asset/www/index.html)
06-02 17:47:55.273 21318-21318/de.EXAMPLE.EXAMPLE D/CordovaActivity﹕ onMessage(onPageStarted,file:///android_asset/www/index.html)
06-02 17:47:55.283 21318-21318/de.EXAMPLE.EXAMPLE D/SoftKeyboardDetect﹕ Ignore this event
06-02 17:47:55.313 21318-21318/de.EXAMPLE.EXAMPLE D/SoftKeyboardDetect﹕ Ignore this event
06-02 17:47:55.313 21318-21318/de.EXAMPLE.EXAMPLE D/WebView﹕ onSizeChanged - w:480 h:762
06-02 17:47:55.343 21318-21318/de.EXAMPLE.EXAMPLE D/SoftKeyboardDetect﹕ Ignore this event
06-02 17:47:55.583 21318-21318/de.EXAMPLE.EXAMPLE D/JsMessageQueue﹕ Set native->JS mode to OnlineEventsBridgeMode
06-02 17:48:15.274 21318-21318/de.EXAMPLE.EXAMPLE E/CordovaWebView﹕ CordovaWebView: TIMEOUT ERROR!
06-02 17:48:15.274 21318-21343/de.EXAMPLE.EXAMPLE I/GATE﹕ <GATE-M>DEV_ACTION_COMPLETED</GATE-M>
What causes the timout error?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org