apk

How to keep two version of an android application in the same device

北城余情 提交于 2019-12-12 06:18:32
问题 Whenever I try to install the 2nd version, it says that it is going to replace all data from the previous version. I did the following things to avoid such situations: app names are different so .apk file name is also different package names are different My app has a database. Do I need to have different database name for these two version ? So, I would like to know, what I am doing wrong and what more should be done? I am using eclipse simulator at the moment. 回答1: You must have a different

how to use intent to pick a xml file and parse it dynamically

随声附和 提交于 2019-12-12 05:57:08
问题 I wanted to use intent to pick a xml file inside of my app and then parse it dynamically. I know the parsing and showing process but my main problem is with the inputstream . Please notice that picking xml should be done dynamically not in assets . can anyone help me plz? @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if(requestCode==PICKFIlE_RESULT_CODE) { if (resultCode == RESULT_OK) { File

Any way to make common APK for API-15+ on mobile and API-21+ on TV?

匆匆过客 提交于 2019-12-12 05:38:39
问题 I looked at the Google UniversalMusic Player code sample for making a common APK with a common codebase to support all device types from mobiles to TV, as given here: https://github.com/googlesamples/android-UniversalMusicPlayer My requirement is to have a single APK support different min API versions on mobile and TV - min API-15 for mobile and min API-21 for TV (since Android TV starts only from API-21) How could I do this with minimal code duplication (ie. if making a separate mobile and

Install APK EXTRA_RETURN_RESULT from IntentService

风流意气都作罢 提交于 2019-12-12 05:27:38
问题 I'm trying to get the results from an APK update, to a Service. Actually I'm using an IntentService, that is running in the background. My install is done by the Service creating a PendingIntent for Notification and then it's received in a BroadcastReceiver which calls the following: apkUri = FileProvider.getUriForFile(context, BuildConfig.APPLICATION_ID + ".share", toInstall); Intent installIntent = new Intent(Intent.ACTION_INSTALL_PACKAGE); installIntent.setData(apkUri); installIntent

Including External Assets to the APK

寵の児 提交于 2019-12-12 05:18:36
问题 I am using FlashDevelop 4.0.1 RTM to create a simple Android app and I would like to ask how to include external assets (images, xml & sounds located inside the bin folder) to the apk package. Thanks. 回答1: As far as I see, you don't need the external assets to be actually external, they can be embedded , since anyway you want them embedded into the apk. So just embed them into your swf. Instead of loading assets from the bin folder, do this: public class YourClass { // Embed the asset [Embed

APK file in Mac machine

柔情痞子 提交于 2019-12-12 04:57:33
问题 I have installed Eclipse and SDK in my machine.. But How do I run the .apk file in Mac? I have read some article that I need to run them through command prompt or is it only for WINDOWS based? Please assist me. Thanks. 回答1: You can PUSH .apk file in your AVD from your PC from DDMS > file explorer > select sdcard see option right side PUSH file. 回答2: Assuming that you want to run your apk on the machine and not on a device, then it's probably easier if you just link up an emulator with your

How to generate ionic apk or ios without extra applications?

允我心安 提交于 2019-12-12 04:38:50
问题 Is there any ways to generate apk or ios file with using only node.js ? most of solutions doesn't work or need some addition applications to build the application as apk/ios. 回答1: The solution of generating our application as "apk" or "ios" are so easy and fast and first of all open cmd screen with path of your application by using "shift + right click" on any place of your app folder > "open command windows here" and follow the steps For APK, enter: ionic package build android For IOS, enter

NOT_LICENSED cannot be resolved or is not a field

廉价感情. 提交于 2019-12-12 03:46:14
问题 I have been trying to follow the documentation available here: http://developer.android.com/google/play/expansion-files.html#Preparing I have tried to follow what it says to do ... If you're using Eclipse, create a project for each library and add it to your app: Create a new Library Project for the License Verification Library and Downloader Library. For each library: Begin a new Android project. Select Create project from existing source and choose the library from the /extras/google/

Generating apk and test in android smartphones not work

风流意气都作罢 提交于 2019-12-12 03:45:04
问题 I created an android application to connect external sql server over WiFi and fetched some data and displayed. I generate its apk via Build>Build apk . It creates apk folder in output folder of build which contains 'app.debug.apk' and 'app.debug.unaligned.apk' . I installed it in my android smartphone. The app is opened and shows layout. It doesn't shows any error message. But I can't fetch my data from sql server. I don't know what is the problem with that. Help me. 回答1: You need to follow

Android Proguard “Can't find referenced”

旧城冷巷雨未停 提交于 2019-12-12 03:43:47
问题 I want to generate a signed apk. But I reached the 64k methods limit so I searched for some solutions and one of them is to use proguard. I edited my build.gradle like this: buildTypes { release { minifyEnabled true shrinkResources true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } When I then try to generate the signed apk I get a lot of warnings: Warning:com.akexorcist.roundcornerprogressbar.TextRoundCornerProgressBar$2: can't find referenced method