uri in intent do not work

100 views
Skip to first unread message

Ilya Baibus

unread,
Nov 12, 2021, 8:01:21 AM11/12/21
to mementodatabase
Android requires uri to be processed with getData(), but there isn't any possibility to do so in memento

My code:
i = intent("android.intent.action.VIEW");
i.data("file:\/\/\/storage\/emulated\/0\/Download\/huy.txt");
i.send();

Error i become:
Skriptfehler: Wrapped android.os.FileUriExposed Exception: file:///storage /emulated/0/Download/huy .txt exposed beyond app through Intent.getData() (Wiedergabe.js#7)

Er Mo

unread,
Nov 12, 2021, 12:22:56 PM11/12/21
to mementodatabase
Hallo
Habe den Befehl "  intent("android.intent.action.VIEW")" im zusammenhang mit einer Internet Seite verwendet und das ging Gut .Vieleicht ligt der Fehler in der Pfad Beschreibung .

Hello
I used the command "intent (" android.intent.action.VIEW ")" in connection with an Internet site and that went well. Perhaps the error lies in the path description.

Bill Crews

unread,
Nov 12, 2021, 1:11:06 PM11/12/21
to Ilya Baibus, mementodatabase
I'm not responding because I haven't tried this stuff very much (just to get the wiki right), and when I did, it was 5 years ago. But there have been quite a few discussions in the forum on all this, and as I recall, most of them ended with an example of how to do it, so I suggest actively searching the forum, choosing your search keys carefully, so as not to screen out the results you need to see.

--
You received this message because you are subscribed to the Google Groups "mementodatabase" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/f360cc93-7c9a-4054-b9b6-0055760eca3en%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages