T trueboss323 Active Member Licensed User Longtime User Jul 24, 2015 #1 Hi, is it possible to detect if a music is playing on the device?
Erel B4X founder Staff member Licensed User Longtime User Jul 26, 2015 #2 You can use this code: B4X: Sub IsStreamActive(Stream As Int) As Boolean Dim jo As JavaObject Return jo.InitializeStatic("android.media.AudioSystem").RunMethod("isStreamActive", Array(Stream, 0)) End Sub Pass 3 for the music stream. Upvote 0
You can use this code: B4X: Sub IsStreamActive(Stream As Int) As Boolean Dim jo As JavaObject Return jo.InitializeStatic("android.media.AudioSystem").RunMethod("isStreamActive", Array(Stream, 0)) End Sub Pass 3 for the music stream.
T trueboss323 Active Member Licensed User Longtime User Jul 29, 2015 #3 Hi Erel, Thank you! I also have another question, can I also determine what title of the song is being played or the genre? Upvote 0
Hi Erel, Thank you! I also have another question, can I also determine what title of the song is being played or the genre?
Erel B4X founder Staff member Licensed User Longtime User Jul 30, 2015 #4 There is no such feature in Android. Upvote 0