FelixGail/gplaymusic

How I can use it on my android app?

Closed this issue · 3 comments

should I hard code the username, password to my code?

What I want is,

  1. search song by artist name and song name.
  2. click a song got in the above step and go to the google play to listen or buy.

Hello. I don't think you should hardcode any personal data. I prefer to let user set it's username and password before using an app and store this info in your local .properties file.
This is an example of .properties file in use.

If you want to deploy this app in the app store for other google users that don't necessary have a subscription it would be best to run this api on a server (save the credentials securely on that device) and query the server from inside the application.

I will close this comment as i believe this question is sufficiently answered. Please feel free to reopen it if you need further assinstance