Study of "interaction simulation" on android

Asked

Viewed 32 times

0

Hello I would like someone to provide me some material (can be in English Tb) for me to study on this subject that I do not know the correct definition. Ex: I want my APP to perform interaction that the user would do on Android, for example, do a google search and get this result or open another app.

For that I would use SHELL?

Give preference search for references using Córdoba or something similar.

If it is possible only the name to define this for me to search would help a lot. Since I don’t know the name of this technique I don’t know how to search.

BRIEFLY: I seek a reference so that I can open other applications and interact with some parts of them, thus simulating or automating some user actions on Android

Thanks =3

  • You want your app to call another app?

  • @Yeah, that’s basically it

1 answer

1


One can use the PackageManager to get a Intent for a package, example:

PackageManager pm = getPackageManager();
Intent intent = pm.getLaunchIntentForPackage("com.exemplo.pacote");
startActivity(intent);

The method getLaunchIntentForPackage(String packageName) returns a Intent to start an Activity from the selected package.

View documentation here.

See more in this question.

  • 1

    Thanks Denner I will research more on now that I have a good base

Browser other questions tagged

You are not signed in. Login or sign up in order to post.