Am still new to Android in some stuff and I want to do something that I do on my php script which is kind of a SAAS. There I have some line of code that runs online to check for new update of my cms when the use opens the admin dashboard. I want to do the same with my android app by maybe saving a txt file on a github repository like
which I will be updating when i make a major app update
Where i save something like 1.0.9.734 so that my app can get the variable and use it to inform my user that there is a new update alternatively
currenty i have this on my code
public static final String BaseUrl = "http://github.com/wasiro/myapp/version.txt";
Any assistance on achieving this would help alot and if there are better ways to do it please enlighten me.
Don't confuse this to JSON because I want to use GitHub to store my variable like I do with my phone script
Edit: When I tried this instead of the variable in the file being extracted and read it was the path to the file that got on the way of the code