Re: Bring app to front  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 13, 2016 1:53 PM   in response to: Eli M in response to: Eli M

I found a solution that works searching the internet.

function SharedActivityManager: JActivityManager;
var
AService: JObject;
begin
AService := SharedActivityContext.getSystemService(TJContext.JavaClass.ACTIVITY_SERVICE);
Result := TJActivityManager.Wrap((AService as ILocalObject).GetObjectID);
end;


Procedure BringAppToFront();
Begin
SharedActivityManager.moveTaskToFront(SharedActivity.getTaskId, TJIntent.JavaClass.FLAG_ACTIVITY_NEW_TASK);
End;