I want to make an application manager like Google Play that allows user to download APK file to her/his mobile phone and update any application when there is a new version.
So I need information how to start first step, how to notify the application if there is a new update is there Google API allow me to download APK file directly to the application server and update to the last version?
Any help information what I should use and shall not use are appreciated.
You could check every x minutes or when Internet connection appears if there is new version of Your application on server. You could also use Google Cloud Messaging to notify users that update appears.
Related
Is there a simple way to check each time a user launches my game, to notify him if there is an update to my app? Maybe there is something built into Google Play?
Create Simple web service.when user run your app check local version with server (app version in device and app version in server).
if app version is new , notify to user .
Your answer was posted here:
Checking my app version programmatically in Android market
is a lib that get informations from a app in google play.
I have created simple Android Application to send a email, Application is Works Fine. I Created a one service to download and install Android Application form server[i don't want to put that Application in Marketplace]
I have update that Android Application in Future and built as a apk then upload it in server
Problem is In device i need to update that Application if i did some changes in Application
Give some useful ideas
You'll have to set up an API on your server which will tell your app if new updates are available. This API has to be checked periodically. If there is a new update, then this can be downloaded and installed and the original one uninstalled.
Another way is to use Google Cloud Messaging. You can set it up such that your app will get notification from your server when an update is available and then you can do as earlier.
Have a look at this thread to see how to uninstall and install packages:
install / uninstall APKs programmatically (PackageManager vs Intents)
If you don't wanna uninstall/install manually, then you can use this excellent package from CommonsWare:
https://github.com/commonsguy/cwac-updater
If you wanna use a framework then there are many options:
http://hockeykit.net/index.html
http://launchpadapp.com/
http://www.appaloosa-store.com/
http://www.apphance.com/
Probably you may want to try something like hockeykit http://hockeykit.net/index.html
I am a beginner on Android as I am working on developing a new Android app. In my project I have some problems when the user click on an icon, it should redirect him to dot net website I did in my code.
If I want to update the apk file on customer mobile to update it should prompt to the user to download the new version. How can I achieve this?
Also how can I know this app belong me between many app on customer device?
I want to fetch the bugs and errors that may occurred on the customer device. How can I do it?
2.
If you release your app in the Google Play Store the updates are managed automatically by Google. You can just release another version of the app in the Google Play Store and all users will be notified from Google that a new version is available.
3.
If you release your app in the Google Play Store bugs will be reported automatically by Google to your Google-Mail Account.
Better to implement GCM push service in your application to send a notification about the update to all your application users.
http://developer.android.com/guide/google/gcm/index.html
This framework will give your application to support push notify the user from your server, and what you need to do in your application just track the received push and write a code to download new APk from server and install it automatically.
The second thing you asked about the Crash reports so the best option is use ACRA technology to get the your application report on server everything force close or logcat
Both are very easy to implement so enjoy!!
At first use GCM for push notifications like updates for your application.
Second useGoogle Analytics for any bug report crashes usage
I have created the the android application and it was given to all my clients. Now I update my application and want that changes are done to all my clients. I don't want that client to uninstall the application and install the updated application again. I want that when the client opens the application shows a notification which asks the client to install the updated application and then log in.
I want to achieve this functionality does anyone have any idea how to do this?
Please do reply me it's very important for my side.
How did you distribute the application? Through the android market? If so when you upload a new version their phone will periodically notify them that updates to some of the apps are available. If you did not implement this functionality in the version of your application that has already gone out then I am afraid you don't really have a way to make this happen.
Moving forward what you can do to implement something like this is have a webservice that returns the current version code for the application. In your apps onCreate() method call this webservice and compare the result with the version code of the app on the system. If the one from the webservice is greater then prompt the user to go download the new version.
Edit: If you didn't implement this in the version you've given out already then you have no choice but to just send out a new apk file to them. You can use some process similar to what i've stated above in the new version so from here on out you'll be able to set a value on the server that will lead to the users being prompted to download new version.
My customer wants the android app to update itself automatically whenever a change is made. They do not want to publish the app in the android market. For the first time, the app will be installed using the Android SDK or the numerous other ways to install.
How do I ensure that the app is automatically upgraded whenever bug fixes or features are added. If not automatically, a button from the app is also ok
Thanks.
Create an "updater" application. This application will monitor a remote server for updates and if it finds one, it will install the apk programmatically. Read this question for directions on how you can install an apk programmatically. You will easily find more information regarding this topic on the net.
You could try to use Pushlink. http://www.push-link.com
It can be done in following ways :
1. a push notification mechanism
2. server pooling on each start / time interval
3. Push SMS
to update the client application.
If your client is using Google Apps you can create a private Google play channel for your organization. There you can publish the apps only for your users to see. I know that you explicitly said that this is not an option, but it's, by far, the best option (although it's not free).
http://support.google.com/a/bin/answer.py?hl=en&answer=2494992
Maybe you can update your app programmatically:
download new version of your app (*.apk) to a local storage of
Android device
run new Intent for update app
Intent intentInstall = new Intent(Intent.ACTION_VIEW)
.setDataAndType(Uri.parse("file:///path/to/new_app.apk"),
"application/vnd.android.package-archive");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intentInstall);
remove downloaded *.apk
See also Android App Version Update service without releasing it to marketplace