Thanks for the link. But how do I get this whole Java stuff translated into the syntax that is to be used in "Extras" of the "App start" block? So for instance I've tried to "convert" the example intent for playing the music of a particular artist from your link.
public void playSearchArtist(String artist) {
Intent intent = new Intent(MediaStore.INTENT_ACTION_MEDIA_PLAY_FROM_SEARCH);
intent.putExtra(MediaStore.EXTRA_MEDIA_FOCUS,
MediaStore.Audio.Artists.ENTRY_CONTENT_TYPE);
intent.putExtra(MediaStore.EXTRA_MEDIA_ARTIST, artist);
intent.putExtra(SearchManager.QUERY, artist);
if (intent.resolveActivity(getPackageManager()) != null) {
startActivity(intent);
}
}
But all I get is "Expected THIS but found THAT" kind of errors in Automate. So it seems that I don't use the right syntax conversion, do I? What's the equivalent to Java braces, parentheses, commas, semicolons to be put in Automate's "Extras" (colon, quotation mark ...)? Or in other words: How can I send the example intent above with Automate to "Pulsar Music Player"?
I'm really at my wit's end. If you haven't got the time to help me, that's OK. But who else could I ask. There's no real Automate discussion forum to my knowledge other than this one here.
Greets,
EAR