FelixGail / gplaymusic

A Google Play Music API in Java
MIT License
54 stars 15 forks source link

How I can use it on my android app? #47

Closed stonyz closed 6 years ago

stonyz commented 6 years ago

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.
mkozachenko commented 6 years ago

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.

FelixGail commented 6 years ago

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.

FelixGail commented 6 years ago

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