apk

If I don't compress a plain text file in Android, will it be compressed in the APK anyway?

喜欢而已 提交于 2019-12-18 17:27:27
问题 I'm debating with myself whether or not to compress a plain text file I'm including in my application that is about 1.5 MB. I can compress it to 400k with zip and unzip it in the application, but that's just one more thing to mess with. If I don't do that, will it get compressed anyway in the APK? Is there a special place I could put it to make this happen? I'm really only concerned with download size. 回答1: Files are compressed based on their extension: /* these formats are already compressed

React Native: Generate .apk and .ipa using Expo

泪湿孤枕 提交于 2019-12-18 14:14:13
问题 I'm trying to generate a .ipa and a .apk file for my React Native app using Expo & Create React Native App. I successfully built the app and was able to get it to run on both an iOS & an Android device thanks to the docs: https://docs.expo.io/versions/v16.0.0/guides/building-standalone-apps.html When the build is over, my console shows something like Your URL is https://exp.host/@myname/myapp I then open exp.host/@myname/myapp on my device and the app shows up via the Expo client. But at

Reading Activity names from apk file in Android

*爱你&永不变心* 提交于 2019-12-18 13:17:11
问题 I want to extract all the activities names from an android apk file. Any idea how possibly it can be done? Thanx Kaps 回答1: You can use the PackageManager method getPackageArchiveInfo to retrieve the information from an APK file. Assuming your APK lives in the root of your SD card, you can use this code: String apkPath = Environment.getExternalStorageDirectory().getAbsolutePath() + "/MyApp.apk"; PackageManager pm = getPackageManager(); PackageInfo info = pm.getPackageArchiveInfo(apkPath,

Android: how to distribute paid application when paid Google Play is not available in my country

不羁岁月 提交于 2019-12-18 12:27:48
问题 I'd like to sell my Android application, but I live in Poland and in my country* Android Market supports only free apps (we cannot sell and we cannot buy too). What is the best way to sell application in such situation? I can accept PayPal money transfers, but I don't know how to distribute APK package without exposing it to getting pirated. Did someone tried it already and succeeded? * Author's country wasn't supported at the moment of asking ** You may find useful PayPal Mobile Payments

Android NDK and Google Play filtering

Deadly 提交于 2019-12-18 12:24:57
问题 The Google Play appstore automatically filters your application to devices with compatible CPU architecture. E.g. if you have a library which is only compiled for ARMv5, your app will only show up for devices with ARMv5 or ARMv7 processors. What if I have a Java alternative, and want my app to be downloaded by non-ARM devices too? E.g. I catch an exception when trying to load the external library, and implement a workable alternative in Dex bytecode (Java). When I upload the .apk, the Android

Is it possible to merge/install split APK files (AKA “app bundle”), on Android device itself, without root?

醉酒当歌 提交于 2019-12-18 12:19:42
问题 Background In the past, I've asked about sharing or backup of app-bundle / split apk files, here . This seems like an almost impossible task, which I could only figure out how to install the split APK files, and even then it's only via adb: adb install-multiple apk1 apk2 ... The problem I was told that it should be actually possible to merge multiple split APK files into one that I could install (here), but wasn't given of how to do it. This could be useful for saving it for later (backup),

Android support library increases APK size a lot

北城以北 提交于 2019-12-18 12:13:01
问题 I'm using AppCompat support library in my Android project. AppCompat has plenty of drawables and resources which I don't use in my app. That unnecessary files increases my 900K app to above 2M , which I don't like. Is there any way to exclude those files when creating the APK file? Or I should obfuscate the library in my code instead of making a dependency? I'm using Gradle in Android Studio. Thanks EDIT 1 I am using proguard already. but proguard can't know I don't want to have drawable

How do you compile an Android project into an .apk file in Eclipse without launching the emulator?

旧街凉风 提交于 2019-12-18 12:12:57
问题 I'm just wondering because I have my own seperate method of getting it on my phone via my web server and the emulator is getting annoying popping up every time. 回答1: I had a problem that it would not build an APK for me (without Running) after I installed the latest SDK and latest Eclipse (Indigo 371). Try this: Go to Windows -> Preferences -> Android -> Build and uncheck "Skip packaging and dexing until export or launch" then restart Eclipse. Now when you do Build Project you should get an

Generating unsigned, release apk with Android Studio

扶醉桌前 提交于 2019-12-18 11:06:57
问题 I need to generate an unsigned, release APK (where someone else will then sign it and release it to the store- with the someone else handling the keys and everything else). My problem is that Android Studio throws an error whenever I try to build: app-flavorUnsigned-release-unsigned.apk is not signed. Please configure the signing information for the selected flavor using the Project Structure dialog. I've tried several, previous methods: Failed at creating an Artifact (can't find any menus

How To Stop Installation of Multiple Slice APK In Android Studio 2.3

纵饮孤独 提交于 2019-12-18 10:46:22
问题 After updating the android studio to version 2.3. i am facing issue during installation on android device from android studio. here attaching the output raised in console before and after updating the android studio. Before updated to android studio 2.3 $ adb push E:\mynewapp\TestDemo\TestDemo\app\build\outputs\apk\app-debug.apk /data/local/tmp/com.example.gangsofcoder.testdemo $ adb shell pm install -r "/data/local/tmp/com.example.gangsofcoder.testdemo" pkg: /data/local/tmp/com.example