How to update Android app programmatically? - android

I have developed an Android app for a client so that I am not putting the app in the play-store. How can I update the app? How the update function is working on another apps?

Before uploading the Apk of your app to playstore, you have to create a signed certificate of your app and then build your apk with that signed certificate each time you upload the updated version of your app. And yes don't forget to increase the version code and version name of the app in your manifest file.
How to create a certificate:
Right click on project go to Android Tools->Export signed certificate (if you have not created yet then create it and if you have already created it use the existing and build the apk and upload on play store ) and don't forget to save that certificate somewhere otherwise you will not able to update your app.
Manifest file:
android:versionCode="1"
android:versionName="1.0"
Whenever you make any changes to your code and want to update it on playstore, increase the version code and change the version name and build it using existing signed certificate

As far as I know there is no update function in-apps. When you publish an App in the Google Play Store the store itself is the one who manage the updates. So when you upload a second version of your app, it sends this new version to all the users who have it in their devices.

Related

Gradle is completed destroy

I developed an android app in 2016. Then some gradle files has been deleted accidentally.
Now i want to update and upload my application on Google play. But old source code was not accepting phone to connect while debugging and even not building.
I already have release signature key
package name.
All source code without gradle part.
Can I create another fresh app in android studio with same package name and source code.
New created debug application will work on every phone I know but when I signed it with my previous release key and upload it in Google play will it be accepted or not?
As long as the package name and signing certificate are the same you can build an update for your APK however you want.
For Android apps on Google playstore, package name is considered as your app's identity. Application will be considered as new application only if you change the package name.
Changing only the Keystore will also obstruct the ability to update app on play store and only way to recover would be to create app with new package name.
In your case if you maintain same package name and use same Keystore, there shouldn't be an issue to upload a new release. Since upload on Google Play store doesn't care about the environment used to build the apk.

Android app upload on google play store

I have uploaded an app on Google play store. After uploading i made minor changes in the app. Is there a way to apply those changes to the play store?
Do i have to upload a new apk or create a new version of the app ?
Update your apps
Prepare your APK
When you're ready to make changes to your APK, make sure to update your app’s Version Code as well so that existing users will receive your update.
Use the following checklist to make sure your new APK is ready to update your existing users:
The Package Name of the updated APK needs to be the same as the
current version.
The Version Code needs to be greater than that current version. Learn
more about versioning your applications.
The updated APK needs to be signed with the same signature as the
current version.
To verify that your APK is using the same certification as the previous version, you can run the following command on both APKs and compare the results:
$ jarsigner -verify -verbose -certs my_application.apk
If the results are identical, you’re using the same key and are ready to continue. If the results are different, you will need to re-sign the APK with the correct key.
Learn more about signing your applications :-
Upload your APK
Once your APK is ready, here’s how you can upload the new version using your Developer Console.
Sign in to your Google Play Developer Console.
Select your app.
On the left menu, click APK .
Click the Upload new APK button.
Upload your APK.
Select a publishing option.
Delivery of updates
After you've submitted an update to an app, you’ll see “Update pending” near the top right of your app’s Developer Console pages while your app is being processed. Once the update is published, your update will start being distributed to existing users and the “Update pending” status won’t be displayed.
Once your update is available, users can download the update on your app’s Store Listing page or from their
My apps page on the Play Store app.
Also, if a user has turned on automatic updates for your app, the update will be downloaded and installed automatically.
App updates take some time to be delivered to existing users. If you've submitted an update that hasn't showed up on Google Play, please wait at least 24 hours before contacting our support team.
https://support.google.com/googleplay/android-developer/answer/113476?hl=en
You have to increase the version code and have to create new signed apk.
Steps:
Make your project ready for publish (remove logs, remove unused import statement and resources etc.)
Increase version code in manifest file. You can increase version name but its not mandatory, its depend upon the changes you are doing in the application.
Generate signed APK with your .keystore or .jks file.
Upload APK on Play Store.
Go through this link for more information.
Yes , You can update an existing app w/o changing its version name. The version name is what the user will see on Google Play (i.e. version 1.10, 2.08, etc.), and has nothing to do with the actual version number of your application (it can be anything you want).
According to this article you have to increment your app version and upload the new APK. I recommend reading this article to get an overview of all instructions to update your app.
Yes, you can do changes. After finished changes, you just need to increase version code and generate new signed bundle for your app.
Create new release in google play console and roll out it.It will be mirrored with in few hours in playstore.

Upload app made with android studio version app as update for app inventor created app

I have app in google play made from app inventor but i would like to replace the app inventor version into android studio made version. when i upload the .apk to google play it has error because it was a different version. Is there anyone out there have done this successfully?
""""""""
Upload failed
You uploaded an APK that is signed with a different certificate to your previous APKs. You must use the same certificate.
""""""""
You have to contact Google Play Developer Support reagarding this issue, a developer can not upload an update that has been signed with a different certificate than the previous version.
If Google is not able to resolve the issue you will have to change the package name of the app and upload it again.

Upload APK file

I get this problem when uploading a new version of my android application :
The APK must be signed with the same certificates as those of the previous version.
I have already make updates using the same private key withoutany problem; but when i update my Android SDK i get this problem.
Please any body know a solution ?
Maybe updating your SDK has changed the certificates of your application, you have to change it in your app.
Publishing Updates on Android Market
At any time after publishing an application on Android Market, you can
upload and publish an update to the same application package. When you
publish an update to an application, users who have already installed
the application may receive a notification that an update is available
for the application. They can then choose to update the application to
the latest version.
Before uploading the updated application, be sure that you have
incremented the android:versionCode and android:versionName attributes
in the element of the manifest file. Also, the package name
must be the same as the existing version and the .apk file must be
signed with the same private key. If the package name and signing
certificate do not match those of the existing version, Market will
consider it a new application, publish it as such, and will not offer
it to existing users as an update.
If you plan to publish your application on Android Market, you must
make sure that it meets the requirements listed below, which are
enforced by the Market server when you upload the application.
Source : http://developer.android.com/guide/publishing/publishing.html#marketupgrade
Check that the updated APK is actually signed with the same certificate as the current version in the market place. To do that I would suggest executing the following command on both APKs:
jarsigner -verify -verbose -certs /path/to/apk
If they are the same then perhaps it is a bug with the Android Marketplace console?
The fact of updating your sdk shouldn't have any effect to your apk uploading.
Check and be sure that you signed your application with the same private key that you generated the first time you uploaded your application in the market, and you incremented versionCode and versionName in your manifest file.

Upgrading application in android market

I am trying to upgrade my android application in android market. I had updated version code and version name in manifest file.
android:versionCode="3" android:versionName="2.0"
I had used the same key for sign the application. I am getting error as 'The APK must be signed with the same certificates as the previous version'. How can i upgrade my app.
You have to have the same keystore file which you have used to upload the 1st version of application on android market. If you have lost this keystore file then you can't provide update to this application.
So in your case, you have to have that keystore file, sign the version 3 apk with this keystore file and upload on the market.
From Android doc: Publishing Updates on Android Market
Publishing Updates on Android Market
At any time after publishing an application on Android Market, you can
upload and publish an update to the same application package. When you
publish an update to an application, users who have already installed
the application may receive a notification that an update is available
for the application. They can then choose to update the application to
the latest version.
Before uploading the updated application, be sure that you have
incremented the android:versionCode and android:versionName attributes
in the element of the manifest file. Also, the package name
must be the same as the existing version and the .apk file must be
signed with the same private key. If the package name and signing
certificate do not match those of the existing version, Market will
consider it a new application, publish it as such, and will not offer
it to existing users as an update.
You must use the same key and the same key alias.

Categories

Resources