apk

Download and install an application (apk) from internal memory - no SD card

家住魔仙堡 提交于 2019-12-12 08:56:09
问题 Greetings and a happy new year to all my fellow programmers. My code downloads an apk file from a remote server. I need to initiate the installation procedure through code, without user having to explicitly install it. The catch is that i cannot use an SD card download the apk file. I can navigate to the data/data/files folder and can see my file downloaded. The only problem is that i cannot get it installed. This is what i get '/data/data/org.obs.testinstall.main/files/app.apk': Permission

aapt ERROR getting 'android:name' attribute: attribute is not a string value

谁说我不能喝 提交于 2019-12-12 08:33:13
问题 As my apk is generated I execute the command aapt dump badging on it. I keep receiving the following error: application: label='Name' icon='res/drawable/icon_128x128.png' application-debuggable launchable-activity: name='co.package.name.MainActivity' label='Name' icon='' ERROR getting 'android:name' attribute: attribute is not a string value I've tried to add a label name for all activities and remove all other values-xxx folders under /res but in vain. However, if I create a whole new

Why does “ionic cordova build” only generate unsigned APKs?

百般思念 提交于 2019-12-12 08:13:35
问题 I use the below command in order to generate a signed APK, I'm pretty sure this worked a few months ago: $ ionic cordova build android --prod --release --keystore="./my-keystore-file.keystore" --storePassword=mypass --alias=mymail@gmail.com --password=mypass However, only an unsigned APK is generated. How can I generate a signed APK using ionic? 回答1: You need to include -- -- before the Cordova-specific arguments: $ ionic cordova build android --prod --release -- -- --keystore="./my-keystore

Android app won't open after i install. But it can run in emulator

淺唱寂寞╮ 提交于 2019-12-12 08:09:27
问题 I have exported my app from eclipse and installed it on my phone. After installation, I click open from package installer, but the installer force close. Afterwards, when I tried to launch the app, nothing happen after I click it. I click the app in app drawer but it return to home screen instead. I am able to run in emulator and in debug mode when I connect my device via usb, but not when I export the apk to install. Note that this is not the first app that I exported to install. Previous

How do I create a “Licensing add-on” for my Android application?

坚强是说给别人听的谎言 提交于 2019-12-12 08:02:37
问题 I see that some apps on the market come as a Free version, and a "Licensing add-on", where you can use the Free version with its limited features, or buy the license apk which just acts as a license key for the originally "Free" version, to unlock extra features hidden within the "free" version. Can someone point me to an example of how this can be done? 回答1: You can use the PackageManager 's getInstalledPackages() or getInstalledApplications() to simply check if the license package is

find the APK size of installed applications

时光怂恿深爱的人放手 提交于 2019-12-12 07:38:54
问题 I am trying to calculate apk file size of the installed applications. Here is the code public class PackageTabActivity extends ListActivity{ private static final String APP_NAME = "app_name"; private static final String APP_ICON = "app_icon"; private static final String APP_SIZE = "app_size"; Method getPackageSizeInfo = null; PackageManager pm ; @Override public void onCreate(Bundle icicle){ super.onCreate(icicle); pm = getPackageManager(); try { getPackageSizeInfo = pm.getClass().getMethod(

Android install source

末鹿安然 提交于 2019-12-12 07:19:09
问题 Is it possible to get the source of install from an Android app? I mean, I want to see, if the app is installed from the Play Store , Amazon Appstore or via executing an APK. PS: I think to see it while my app crashes and I was able to send an bug report, that my app was installed via Play Store . How do I get this value? 回答1: The PackageManager class supplies the getInstallerPackageName method that will tell you the package name of whatever installed the package you specify. Side-loaded apps

How to reduce Apk (.apk) size in android studio

 ̄綄美尐妖づ 提交于 2019-12-12 07:17:27
问题 When i run my app size of apk will 21 MB. even i enabled proguard. i use android studio to run project. in project files src folder has 8.62 MB size and lib folder size is 400 KB size. so how i reduce size of .apk file. Actually .apk file is 8 mb before some days with same images but after paypal integration my app size will increases to 21 mb. size of build folder is 127 MB. build.gradle(module app) is: apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion

How to change apk name by editing manifest file?

心已入冬 提交于 2019-12-12 07:12:58
问题 I want to change my apk name in the project workspace. How to do it by editing the AndroidManifest.xml file? 回答1: In manifest file, you can change the application label only. If you want to change the apk file name, you should change your project name. To do this, you just right click on your project in Navigator windows, choose Refactor>Rename and type a new name for it. 回答2: android update project --name your_desired_name --path . This changes the ANT project name in build.xml. 回答3: In

Error message I got when I went to upload to the playstore

与世无争的帅哥 提交于 2019-12-12 06:37:56
问题 This is the message I get, when I try to upload signed-aligned APK to the play store. Can someone please help out to fix the bug!! Your APK cannot be analyzed using 'aapt dump badging'. Error output:Failed to run aapt dump badging:W/ResourceType( 8485):Bad resource table: header size 0xc263 or total size 0x38f9a63b is larger than data size 0x34818 W/zipro ( 8485): Zip inflate failed, zerr=-3 (nIn=0xf744efb6 aIn=2130 nOut=0xf82e73b8 aOut=8324) ERROR: AndroidManifest.xml is corrupt here is the