Created
March 7, 2014 01:23
-
-
Save freeonterminate/9403246 to your computer and use it in GitHub Desktop.
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
uses | |
Androidapi.JNI.JavaTypes, | |
Androidapi.JNI.GraphicsContentViewText, | |
FMX.Log, | |
FMX.Helpers.Android; | |
procedure StartIntent; | |
var | |
Intent: JIntent; | |
begin | |
Intent := TJIntent.Create; | |
Intent | |
.setAction(TJIntent.JavaClass.ACTION_VIEW) | |
.setData(StrToJURI('URLとか')); | |
try | |
SharedActivity.startActivity(intent); | |
except | |
on E: Exception do | |
Log.e(E.Message); | |
end; | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment