Replies: 5 comments 1 reply
-
Did you actually read what is at that link? It seems to tell you what you need to do. Do you have any existing code example of what you are doing? |
Beta Was this translation helpful? Give feedback.
-
This line of code is not right: Intent := TJIntent.JavaClass.init(TAndroidHelper.Context, TMyActivity.JavaClass); It should be: Intent := TJIntent.JavaClass.init;
Intent.setClassName(TAndroidHelper.Context.getPackageName, StringToJString('com.embarcadero.firemonkey.FMXNativeActivity')); |
Beta Was this translation helpful? Give feedback.
-
If anyone has experience, please tell me, I sketched out an approximate code, everything comes together, when I start the application I activate the media session, when I start playing the song I update the metadata of the artist and the song title, but nothing appears on the Android device. what's wrong?
|
Beta Was this translation helpful? Give feedback.
-
If this cannot be implemented, then how can you at least track the event when the application starts running in the background when the user presses "home" to pause playback? |
Beta Was this translation helpful? Give feedback.
-
I've been working on an implementation for this - I'll update here later. |
Beta Was this translation helpful? Give feedback.
-
Google Play rejected the application for the following reason:
"Issue found: No Now Playing notification [card]"
Your App does not contain a “Now Playing” notification [card] for when the user has selected the HOME button within the app.
Please refer to our Displaying a Now Playing Card documentation for more details.
https://developer.android.com/training/tv/playback/now-playing"
how can this be implemented on delphi 12.1?
Beta Was this translation helpful? Give feedback.
All reactions