I'm making an Android app implementing basic functions of TiddlyDesktop on my phone, where the app malfunctioning importing photos, but I can upload the same photo to Sogou.com.
Part of logcat generated on error occored:
04-15 22:29:40.122 15224-15224/indi.donmor.tiddloid I/chromium: [INFO:CONSOLE(8830)] "Uncaught TypeError: Object.assign is not a function", source: file:///storage/emulated/0/123/121121.html (8830)
04-15 22:29:40.129 15224-15224/indi.donmor.tiddloid I/chromium: [INFO:CONSOLE(1146)] "Uncaught TypeError: Object.assign is not a function", source: $:/core/modules/wiki.js (1146)
@Override
public boolean onShowFileChooser(WebView webView, ValueCallback<Uri[]> filePathCallback, FileChooserParams fileChooserParams) {
uploadMessage = filePathCallback;
MainActivity.fileOpen(TWEditorWV.this, fileChooserParams.getAcceptTypes(), new MainActivity.OnFileTouchedListener() {
@Override
public void onFileTouched(DialogInterface dialog, File file) {
if (uploadMessage == null) return;
Uri[] results = null;
if (file != null && file.exists()) {
System.out.println(file.getAbsolutePath());
System.out.println(file.toURI());
try {
results = new Uri[]{Uri.parse(file.toURI().toString())};
} catch (Exception e) {
e.printStackTrace();
}
System.out.println(Uri.parse("file://"+file.getAbsolutePath()));
System.out.println(results);
}
uploadMessage.onReceiveValue(results);
uploadMessage = null;
}
@Override
public void onCanceled() {
if (uploadMessage == null) return;
uploadMessage.onReceiveValue(null);
uploadMessage = null;
}
});
return true;
}
});
On 15 Apr 2019, at 15:49, donmor3000 <donmo...@gmail.com> wrote:
I'm making an Android app implementing basic functions of TiddlyDesktop on my phone, where the app malfunctioning importing photos, but I can upload the same photo to Sogou.com.
<Screenshot_1555338534.png><Screenshot_1555338580.png><Screenshot_1555338551.png>
--
You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikide...@googlegroups.com.
To post to this group, send email to tiddly...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/6e80755f-6a5f-47ef-aa45-c6302f90f9ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<Screenshot_1555338534.png><Screenshot_1555338580.png><Screenshot_1555338551.png>
Jeremy.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddly...@googlegroups.com.
Jeremy.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddly...@googlegroups.com.
Hi donmor3000
Jeremy.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddly...@googlegroups.com.