I am just new to android programming, so let's say i have an app of version 1.0 .. then i released another version for the same app, let's say version 1.1 .. what code should i add in my app to check for updates and forces the outdated app versions to exit when a user does not update it and redirects the user to the download link if he/she wants to update my app ?. thanks
in short, the outdated apps cannot be used because an alert dialog will appear that tells the user he must update my app to a newer version available
PS, my app is not in the Play Store yet .. as i am a new android programmer and i have no 25$