android-install-apk

Android - What happens when a signing key expires?

怎甘沉沦 提交于 2019-11-30 09:08:42
If a signing key expires, do existing apks refuse to install, or does it just mean that new apps can't be signed with that key? We are recommended to use keys that expire in 25+ years, and Google Play mandates expiry of at least 2033-10-22! However, some people may wish to renew their keys far more frequently than that for security reasons (Moore's law, cracked algorthms, etc.). If an apk's key has expired, is there any way of installing it (without relying on the developer to re-release)? James Haigh If a signing key expires, do existing apks refuse to install, or does it just mean that new

Android install apk programmatically

非 Y 不嫁゛ 提交于 2019-11-30 04:51:09
问题 Is it possible to install an apk programmatically in the background or does the user have to accept the installation. My scenario is that I want my employees to all have the same set of applications installed. Of course they can install applications by them self, but I want them all to have at least some applications installed. I'm not talking about installing applications from the market. 回答1: solution in this link Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri

“How are” Android applications (Facebook etc.) installed to an android phone? [closed]

时光总嘲笑我的痴心妄想 提交于 2019-11-30 02:28:35
I know how to install an application to an Android device e.g from Play-Store or via an .apk file. But I'd like to understand the actual process of installation. E.g. on Windows: Serial codes etc. are placed in the registry Files important to the running of software are placed within the Program Files folder ( the main .exe etc. ) So far, what I do know about the Android application installation process is: After an android application has been executed (post-installation), data freshly downloaded is placed in locations like: Android/data or Android/obb etc. If specifically expressed by an

Programmatically download APK from google play store

喜夏-厌秋 提交于 2019-11-29 19:15:29
问题 I am creating an android app which depends on some other android apps. So if these dependent apps are not already there on the users mobile, I would like to download them programmatically from play store. But during this process I don't want the control to go to the Play store app (i.e. no Play store app activity should be visible). Is is possible to achieve this using some service, google API? How do I go about implement this? I tried the market api and it worked but now while installation I

INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES on adb install

邮差的信 提交于 2019-11-29 09:05:22
The same Android project is built in debug mode, sometimes with Eclipse, sometimes with ant (on build machine). If I first install the ant build, and then try to start Eclipse debugging, the Eclipse console displays [2012-03-20 13:32:26 - myproject] Re-installation failed due to different application signatures. [2012-03-20 13:32:26 - myproject] You must perform a full uninstall of the application. WARNING: This will remove the application data! [2012-03-20 13:32:26 - myproject] Please execute 'adb uninstall com.myproject' in a shell. [2012-03-20 13:32:26 - myproject] Launch canceled! If I do

android programmatically update apk and see the result of the installation

怎甘沉沦 提交于 2019-11-28 18:51:20
I'm writing an app updater for my app. After I make sure I have my apk on the device, this is what I do from within the app I'm trying to update: Intent promptInstall = new Intent(Intent.ACTION_VIEW); File f = new File(apkLocation); promptInstall.setDataAndType(Uri.fromFile(f), "application/vnd.android.package-archive"); _context.startActivity(promptInstall); This launches my installer which displays the app permissions and I am able to click "Install". But from here the app simply closes, I get no message whatsoever (I would've expected the dialog telling me the install was successful giving

Android application self-update [duplicate]

自作多情 提交于 2019-11-28 17:07:01
Possible Duplicate: Android: install .apk programmatically I need to update my android application. Internally the program, I download the new version. How can I replace the current version by that new was downloaded (programmatically)? URL url = new URL("http://www.mySite.com/myFolder/myApp.apk"); HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); try { FileOutputStream fos = this.getApplicationContext().openFileOutput("myApp.apk", Context.MODE_WORLD_READABLE|Context.MODE_WORLD_WRITEABLE); InputStream in = new BufferedInputStream(urlConnection.getInputStream());

How to zipalign the .apk file using eclipse?

天涯浪子 提交于 2019-11-28 16:57:47
Can anyone tell me how to zipalign my .apk file with using eclipse. I have made my .apk file by giving command like, Right Click on Project Folder Click on "Android Tools" option from menu. Click on "Export Signed Application Package..." and my .apk generated in given application alias. Now want to do zipalign for this above generated .apk file. Does any tool require to do so OR anything that can solve my problem. If you did what you described above then Eclipse has already zipaligned your apk for you. You can't zipalign an already zipaligned package I think this will help you D:\android-sdk

Error while installing application (INSTALL_FAILED_DEXOPT)

我是研究僧i 提交于 2019-11-28 13:25:46
I am working with ccr4j API in Android so when I run my project its thrown an error like: Error while installing application (INSTALL_FAILED_DEXOPT) I find from net and same site also, did all trying like, 1. Uninstalled same application from device. 2. Run Emulator with Wipe User Data. But still same error comes. So anyone know why its thrown this kind of error? This most likely has to do with the size of classes.dex. On anything pre-ICS dexopt will fail on anything over 5mb. Check the size of classes.dex in your apk. It would also be good to see what your method count is as dex has a 65536

Programatically install apk from assets folder in android

天大地大妈咪最大 提交于 2019-11-28 07:06:36
I am trying to install apk programatically from assets folder but not success, Please help me. I am using following code for that. thank you. Intent intent = new Intent(Intent.ACTION_VIEW) .setData(Uri.parse("file:///android_asset/youtuberanjit.apk")) .setType("application/vnd.android.package-archive"); startActivity(intent); skygeek AssetManager assetManager = getAssets(); InputStream in = null; OutputStream out = null; try { in = assetManager.open("myapk.apk"); out = new FileOutputStream("/sdcard/myapk.apk"); byte[] buffer = new byte[1024]; int read; while((read = in.read(buffer)) != -1) {