Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
Might be a beginner question, i'm new to android studio.
I need to write a simple .apk on java which will load a react web-app.
If the new version of the app crashes, I'd like to downgrade the .apk. I assume by downloading the older version and installing it.
How could I structure the code the proper way to do that?
I'm not asking for the whole source code, just some tips of code structuring.
This ap is not for the market but for internal use.
So the OS version is fixed, 7.1.
Thanks.
You need to set the apk version code correctly, most likely in your root build.gradle file.
If version code 1 is working and installed on your users devices, then apk with version code 2 is installed but crashes, you have two options:
Fix changes and submit to users as new apk version code 3 (they can
update to this version)
Have user uninstall app, and re-install previous apk with version code 1.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I would like to implement a Java application that can download a new version (.jar file) from a given URL, and then update itself at runtime.
We retrieve the versions available on the internet
We compare them with the current version
If the current version is newer, a message is displayed telling the user that there is no update possible
Otherwise, the user is informed of the possible versions and given the choice when to download.
If he wants to download one, download the one he chooses
Then we restart the program
The program at startup must see if there is a new version, and if necessary, take it ==> use a launcher
What is the best way to do this and is it possible?
Take a look at Getdown. This solution precisely addresses your problem. The docs say:
(GetDown) is a system for deploying Java applications to end-user computers, as well as keeping those applications up to date.
Don't bother with Java Webstart as since java 11 it will no longer be available.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
We want to update our published app in google play. But I want to confirm can we fully change android source code expect package name. We have our .jks reserved and we want to update graphics in app not App Icon. We forget our signed key details. Can we again rebuilt signed details with existing .jks file. Please suggest.
Thanks in Advance.
If you have lost your signature key, then you can't update your app. This is why Google Play introduced Google Play signing. Google signs the app for you, takes care of the keys, and if you lose your they can migrate you to a new upload key.
If you aren't using Google Play App signing there is nothing you can do - the android system requires you to sign an update with the same key.
Yes you can change the the entire source code. All you need to Update your app is :
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.
As general practice you can install one of the old APKs generate a new signed and install it. If it installs without any issue you are good to go.
yes, you can change the source code but remember following things before update :
keystore (same that used to build app)
Check backward compatibility
Don't change package name
update version number (like previous 1.0 update to 2.0 or 1.1 something)
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have recently started to enjoy Android development and I have some projects that I want to develop.
I usually develop with IntelliJ and my recent sdk target was 21. I noticed there are several things that I have missed such as Maven, Gradle, maybe using a lower sdk target and Asynctasks.
So my question is how to I start with a good Android project? How do I use Graddle or Maven? and what sdk target should be the minimum in 2015 according to you guys?
Basically what should I do or think about when I'm developing in Android?
I think you are not compel to use Gradle as newbie because it's the build system of android studio ,and it will generated automatically. so you have no work to do with it directly as a beginner.
and for what min sdk , for now u can set it as ICS4.0 (API 14) because in this case your app will targeting more than ~ 87% of users.
-my opinion is to leave this side things, and focus on main programing stuff, and good luck.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am trying to make an application that will get the version of an installed application. For instance, I want to get the current version of Firefox that is installed in my system. I am using JavaFX. Thanks for all the help guys!
What I was working on is a launcher that will display the version of the currently installed application and the version that is available for download.
Maybe try to run a VB script from within java. Works perfect for me, I am reading out on my Windows 7 PC the motherboards serial number with exactly the script this user here has posted :
How can I get my motherboard's ID, using Java, in Linux, Mac, and Solaris?
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have downloaded this early preview, I know that it's not stable and everything but I see no one complaining on the most populated forums and my copy of Android Studio doesn't even starts.
I have tried with both JDK 1.6 and 1.7 from Oracle in the PATH but it always fails ( i have JAVA_HOME set too )
and this alert shows up 3 times and the startup just freezes, this is the complete output of about the failed start.
there is also 0 real practical documentation for this SDK, so I don't even any idea what the requirements for this suite are.
Strange fact: there is this file Install-Linux-tar.txt in the root of the android studio folder that suggest to run this ./android studio.sh command from the bin sub-directory but there is no ./android in that subdir and the instructions make no sense at all.
Make sure that java is installed in /user/java and not another directory.
I had same issue and simply moving Java directory fixed this issue
(I found a Google answer in a few seconds..)
For the second remark, that's totally true: forget./android studio.h and simply use ./studio.h