Share via - post to url. Possible?

General discussions about Automagic and automation in general

Moderator: Martin

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Share via - post to url. Possible?

Post by Desmanto » 05 Nov 2019 18:41

Sorry, I forgot to mention you have to have extras. Don't put the text in the Data URI, but put it in Extras. The Data MIME type should text/plain

Code: Select all

putString("android.intent.extra.TEXT", "https://automagic4android.com/");
putString("android.intent.extra.SUBJECT", "Automagic Forum - Automagic");
TEXT containt the url. SUBJECT is just additional field, not mandatory.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply