Application update? - android

I have build a maps related software which require the app to get update whenever the base map is modified. Basically we have nodes.json whose data will get updated under such situation.
One way i am thinking of is to have the latest version of .apk on my dropbox account. Whenever the file in my account is of higher version than the one currently installed, user will get a pop-up . But i am not very clear about the implementation.
Also the application works offline so whenever user connects to some internet source he should be notified..
Please help me with my solution or suggest if there is a better solution.
thanks

Related

Can i force users to uninstall my application within update of google play console?

I got a question about the Google play console, I published the new update of my application, but I need specific users (Android 33 latest version) to reinstall my application through the update, is there any option that could help me to make the google play uninstall the application then install the new update.
No, that's not possible and probably not desirable as users may lose their app data (which may be ok depending on the user case). However, if the device backup is enabled and your app supports it, app data is usually restored when the app is reinstalled - including databases and preferences. So that will very likely not really help.
Instead, you should implement a patching mechanism that is executed for the specific users after the update was installed.
Depending on what you need to change, there are several ways to implement:
SQLite SQLiteOpenHelper offers onUpgrade(..) to migrate data from one version to another.
For other things, you can always implement such a simple patch mechanism yourself depending on what you need to change based upon SharedPreferences as described here: How to run code only when my app is updated.

How to update an already distributed app without installing a new version

I built a small application that gives real time update on coronavirus cases in my country.
Just recently, the API which I used to get the number of cases, deaths etc changed their endpoints
e.g from
https://covid19.com/corona/country
to
https://covid19.com/v2/corona/country
Due to strict restictions by Google on apps relating to covid19, I couldnt upload to playstore but I built an APK and shared the link to many people to download.
Now, they cant access the number of cases in the app due to a change in the API endpoints.
Please, how do I change just that string URL from my end to have effect on everyone who has the app already without needing to build another apk and making people to download the app again.
I discovered Firebase Remote Config, I tried it on my android studio, run the app on my phone, and yes it was working on my device, but How do I get it to work on other people devices with the app already installed.??
The only option you have is:
If you have put any text field which takes string data dynamically (like from database/server), there you can inform user to download latest version with a short link. But again that depends upon the text view size/scope you have defined.
Since, without updating the app itself by anyway, it seems impossible to make the existing app working.

How to identify if the new apk is installed?

I'm creating an android library that will be embedded in to application source which will be used for recording some analytics information on the server. I wanted to find out if the user has upgraded to a new version of the application(not the library) using SDK API. I'm trying to avoid having the application developers change anything in the manifest to indicate the version change. I already have a mechanism to identify each device on the server. In this case is there a way to identify if the .apk is upgraded when the tries to contact the server?
So far I found PackageInfo.lastUpdateTime is changed. I thought PackageInfo.signatures content will change too, but it is not changed even when I change the application code. Appreciate any help.
Why not just send along BuildConfig.VERSION_CODE? If the value is different than the last value received, it's been updated. For an application to be updated, the version code must be at least as large as the previous version. To be published on the Google Play store, the version code must be increased.

How to get notification in your android app, if update available in android app store?

I developed an android application and I have put it in android app store by paying 25 bucks. However some people are using my application in their device. I wanna know, if I upload the updated version of my app in app store then how user finds that out?
I found out some links on the same context in android developer site and all but didn't technically clear out my understanding. Basically I want to know,
how android app update mechanism works?
How device gets notification of available updates?
Please provide some clarity as a developer point of view/ code level.
Reffered links:
Android app update mechanism http://developer.android.com/google/play-services/setup.html http://developer.android.com/tools/publishing/versioning.html#minsdkversion
Here you go.
Try this code hope thats what you want.

Verify if a new version of Android app is available

this is my question:
I need my app to verify if a new version is available on the market. Potentially it would show an alert dialog notifying that an update is available and then take the user to the market.
I know that the market does that if the user checks that option, but many people don't bother taking a look at updates, and I really need to give them a nudge to get the update.
I didn't find any suitable solution for this, as I've read before that an app canĀ“t retrieve this information from the market. Is searching for a value in an html file on my server a possibility?
What you want is prvided by a really GREAT library you can use called aQuery: Here is the page that goes over it's check for upgrade functionality http://code.google.com/p/android-query/wiki/Service
And it does SOOOOO much more too.

Categories

Resources