2015년 4월 4일 토요일

Running another app in Firemonkey android

Running another apps in Firemonkey android

Uses
  Androidapi.Helpers, AndroidApi.JNI.GraphicsContentViewText;

procedure TForm1.Button1Click(Sender: TObject);
var
 intent: JIntent;
begin
  intent := TJIntent.Create;
  intent := SharedActivityContext.getPackageManager.getLaunchIntentForPackage
              (StringToJString('com.kakao.talk')) ;
  if Assigned (intent) then
     SharedActivity.startActivity(intent);
end;

'com.kakao.talk' is a package name of another app.

댓글 1개: