sending android intents

Previous topic - Next topic

sf-in-sf

Hi!
Someone already asked how to open a web browser with given url in iOS.
I have the same question for android.
Here are some guidelines, but they are written in java:
Code (glbasic) Select
String url = "http://www.example.com";
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
startActivity(i);

or:
Code (glbasic) Select
startActivity(new Intent(Intent.ACTION_VIEW,
    Uri.parse("http://www.google.com")));

(http://stackoverflow.com/questions/3004515/android-sending-an-intent-to-browser-to-open-specific-url)
How can we adapt that for some C inline code in GLbasic?
Many thanks in advance!
On the day the atom is a cube I will start believing in the square pixel.

Schranz0r

you need the headers
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

metzzo

That's no Bug, that's my project!

http://programming-with-design.at/

sf-in-sf

Quote from: Schranz0r on 2012-Jul-16
you need the headers

Thanks. Can you explain a bit which headers are necessary? Using intents should be useful to open a native keyboard as well, when necessary. (i'm aware of the IMPUT code, but...)
On the day the atom is a cube I will start believing in the square pixel.