Created
March 12, 2015 21:34
-
-
Save darkwave/8912f25f755da208ef88 to your computer and use it in GitHub Desktop.
Open a browser to a specific Url using Processing with Android Intent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.net.Uri; | |
import android.content.Intent; | |
void setup() { | |
} | |
void draw() { | |
} | |
void mousePressed() { | |
openWebPage("http://mondonerd.com"); | |
} | |
void openWebPage(String url) { | |
Intent i = new Intent(Intent.ACTION_VIEW); | |
i.setData(Uri.parse(url)); | |
startActivity(i); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment