In the context of a music player, i have seen services being implemented in two different ways as of now.
In the first method a .aidl
file is created and a stub is generated and service is implemented from that by binding it to the main activity.
In the second method the main activity is just a UI and on starting the player from the UI the entire music playing activity is always done at the background(this method was used at android developers site).
And i have noticed using aidl is quite a popular method even though the android developers site suggests the other one. So is there any advantage of using one method over the other? Is one method more fats or efficient? Also is there any other better method that i havent come across yet? Any help will be appreciated.