FAQ Database Discussion Community

Download .apk with DownloadManager

Hi I'm facing a little problem here. For updates of my App (that isn't available in Play Store) I download it via DownloadManager to the Donwload directoryof the device. The .apk file is on a ftp server. After downloading I pop up a dialog if the user wants to install...

.apk file generation from android-studio in ubuntu

I have tried many of the times to generate .apk file from android-studio for my new application. and I am using android-studio in ubuntu. How to generate .apk file from android studio in ubuntu...? Not signed apk file.please help me.. advance Thanks...

Retrieve a password stored as env variable in Jenkins

I am using Jenkins to build my Android application. When building an Android app, there is a step where the build is signed with a distribution certificate. I have configured this into Jenkins and it works perfectly: jarsigner -verbose -sigalg MD5withRSA -digestalg SHA1 -keystore $KEYSTORE_FILE -storepass $STORE_PASS -signedjar $SIGNED_APK $INPUT_APK...

APK size exceed 50MB due to large amount of native libraries

Our app supports 7 different architectures. We have a native library which we are using in our java code. When we build a single APK its size reach the 50MB limit because we have 7 instances of the native library packed into the APK. Each instance of the library after...

How to find if apk is 32-bit or 64-bit

Given a apk, how can we find whether its a 32-bit app or a 64-bit app. I am observing an app is unable to run on 64-bit android OS. I guess its a 32 bit app.

Android API levels and APK files

I am new to Android, and working with a beginner-level test application. My question is, for different API levels for different device, i must create several .apk files or i can combine them in one? I am confused. Any help will greatly be appreciated!...

How to test apk on previous versions

We developped an app for Android system with Intel xdk. Recently a customer tell us that it doesn't work on android 2.3 version. We would like to know how can we run the file apk on a 2.3 device for testing. If someone has some idea to help us we...

APKtools (APK Studio) Could not decode arsc file

I am tring to decompile an APK with AKP-Studio (it uses Apktool 2.0.0-Beta9) but on every APK I get this error: May 05, 2015 5:38:30 PM brut.androlib.ApkDecoder decode INFO: Using Apktool 2.0.0-Beta9 on com.****-1.apk May 05, 2015 5:38:30 PM brut.androlib.res.AndrolibResources loadMainPkg INFO: Loading resource table... Exception in thread "main" brut.androlib.AndrolibException:...

Can't generate signed APK in Android Studio, because proguard-rules.txt is missing

I have a problem with generating signed APK in Android Studio. After fixing all the warnings I am stuck on this one: Error:Execution failed for task ':app:proguardRelease'. java.io.FileNotFoundException: /Users/franek/Documents/Android_Studio_Melange/app/proguard-rules.txt (No such file or directory) I don't want to change minifyEnabled to false, because I want to keep Proguard working. How...

Difference between app-debug.apk and app-debug-unaligned.apk

In android studio with build variant set to "debug" mood, I found two outputs of apk app-debug.apk app-debug-unaligned.apk What is the differences between them?...

cordova 5.0 generate signed apk

I use Cordova 5.0.0 to develop android app and I would like to run the app on real machine. I tried two ways to generate signed apk but failed, One is used command line to sign an apk that generated by cordova. by this way, it will cause "parsing error"...

Is it possible to turn on the bluetooth of an android device programmically and connect with other

I am trying to create an app using android studio which will turn on the bluetooth when there's an incoming call and connect to the given device's name and eventually turn off the bluetooth after the call ends.But i have less ideas about javascripts.So can anyone help me out? please?

Error installing .apk from intent

I'm downloading from a FTP server an .apk file to update my application. My relevant code is: Intent intent = new Intent(Intent.ACTION_VIEW); File file = new File(context.getFilesDir() + "/" + filename); if (file.exists()) { intent.setDataAndType(Uri.fromFile(file), "application/vnd.android.package-archive"); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(intent); } When the intent is launched (in the last line, context.startActivity(intent);) it...

switch does nothing on Decompiled Android Source

switch(paramMotionEvent.getAction()) { } do { for(;;) { return super.onInterceptTouchEvent(paramMotionEvent); this.prevX = MotionEvent.obtain(paramMotionEvent).getX(); } }while(Math.abs(paramMotionEvent.getX() - this.prevX) <=this.touchSlop); return false; } } Hi, I decompiled a few APK files. While analyzing those source code, I found weird lines similar to above code. Why does the switch do nothing? In addition, I...

adb copy apk from system/app using pull command [closed]

it is possibile to copy with the command pull an apk from /system/app/ ? I would copy the player music of my samsung and make the porting of xperia z, it possible this?

Download, hack and reupload APK file to Google Play. Is it possible?

I've developed my first Android app in Unity 3D and uploaded it to Google Play. I've just realised that there are services to download apk files from Google Play, as well as services to decompress an apk file and get all the source files from it. So it seems like...

Keystore For Signing Android App

I am trying implement In-App billing in my Androd app and when I test the purchase functionality I get the error "This version of the application is not configured for billing through Google Play." I suspect that I did not properly generate a signed APK and that the problem is...

Is there any way to download an (unpulished) APK from the Google Play dashboard?

A teammate put the APK in the wrong account in Google Play, now, I need to fix without the original binary. So, I want to know if I can download the APK out of the wrong account, then signon with the correct account and upload? FWIW - the APK is...

Not able to install my application on other Android devices

I have made an Android app using AndroidStudio and want to test it on different phones. I have generated the signed apk (release version) and I could successfully install the apk on my device (Nexus 5). Then I tried to install the same apk on a Nexus 4 but it...

How to sign an apk with 'original' key

Hey guys I am messing around with apktools but I have a little problem: I can decompile and recompile an apk but when I want to install it on my device I get an error that it couldn't be installed. I replaced the resources.arcs of the old apk with the...

Download an APK from a website and prompt the installation to the user

My approach is simple, I have an APK hosted on my site and when the user completes the download I would like to present the installation wizard instead of having to look for the file in downloads or even using a file manager for older devices etc. Is that possible...

How to get .apk files details (like: name, id, vercode ..etc) stored in external storage of android device

How can I get the .apk files details(like: name, package-name, vercode ..etc) stored in directory(like: /storage/emulated/0/downloads) even if they are not installed on the device. for instance, 1mobile market can get all .apk files stored in your device and ask you to install them. As showing in the screen shot,...

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

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...

How to move users from third-party app to play store listed app?

I am planning to roll out the APK to a closed set of users (basically friends and family) to let them play around with the app and suggest improvements/changes etc. Once done with debugging, I would like to list the app on Play Store, so that these closed set of...

My apk asks for permissions that I am not asking for on my AndroidManifest.xml

I just noticed that my app is requesting new permissions all of the sudden. ./aapt d permissions MyApk.apk package: mypackage uses-permission: android.permission.INTERNET uses-permission: android.permission.ACCESS_WIFI_STATE uses-permission: android.permission.CHANGE_WIFI_MULTICAST_STATE uses-permission: android.permission.ACCESS_NETWORK_STATE uses-permission: com.android.vending.BILLING uses-permission: android.permission.WRITE_EXTERNAL_STORAGE uses-permission: com.android.launcher.permission.INSTALL_SHORTCUT uses-permission:...

Adding google_play_services_lib to my android app makes it 5 Mega larger

This is something that didn't happen to me in the previous project I did (this is only my second project). After adding Google Play Services via Properties -> android -> add -> google-play-services_lib the apk size grew by 5 Megabit! Maybe it's important to mention that I work with eclipse,...

Prevent Android apps theft from Google Play [closed]

I recently noticed that several of my paid apps from Google Store are available for free on a couple of shady sites. My assumption is that these sites use Google Play as a backend leveraging the brilliant refund mechanism Is there a way to block APK installation from unknown sources?...

Android APK not installed in the device

A few months back I have sent Android APK to my client. At that time it was installed successfully but the same APK doesn't want to install (Application not installed) now on any device. Again I have generated a new unsigned APK but that one also not installed any device....

Error when exporting Android APK with LibGDX and ProGuard

I’m trying to export an Android APK with Proguard and I’m getting this error: [2015-05-06 19:29:31 - Metronome-android] Proguard returned with error code 1. See console [2015-05-06 19:29:31 - Metronome-android] proguard.ParseException: Unknown option '(' in argument number 14 [2015-05-06 19:29:31 - Metronome-android] at proguard.ConfigurationParser.parse(ConfigurationParser.java:191) [2015-05-06 19:29:31 - Metronome-android] at proguard.ProGuard.main(ProGuard.java:484)...

which apk runs on the Android device ionic

Which apk file runs on the Android device after the cli command ionic run android? Where can I find this file inside my project?

Error while running aapt dump badging command on signed apk

I am getting a weird error when I ran the aapt dump badging command on my signed apk. This is what I get: W/zipro ( 9829): Buffer too short, requires 1073 bytes for entry name E/asset ( 9829): ARGH: name too long? W/zipro ( 9829): Buffer too short, requires 1605...

Should provide default constructor?

I have an app that I transferred to the new android studio. When I try and generate a signed apk I get this error: Error:(24) Error: This fragment should provide a default constructor (a public constructor with no arguments) (com.example.mike.beerportfolionewicon.BarcodeFrag) [ValidFragment] The class starts off like this: public class BarcodeFrag...

Unable to find generated app .apk in Android Studio project

I am developing an android app project and I am able to directly load it on my android phone. But I am unable to find the .apk file corresponding to the app. I have already checked out a few stackoverflow pages for how to resolve this, but I am unable...

Sencha Touch 2 - Help to create .apk file on PC

I´m starting with sencha touch 2 tech,and now I´m stuck in creating the .apk file. This is what I have done since the begining to where I´m stuck: Download Sencha Touch SDK Install Java JDK Install NodeJS Install Ruby Install Sencha CMD After that I created my app: In the...

Could not initialize com.android.xml.androidxpathfactory

I am facing weird problem. I want to upload my app on google play store. For that, I am trying to generate signed apk but using eclipse export tool. But whenever I try generating it, that throws following error message could not initialize class com.android.xml.androidxpathfactory Above thing happens when I...

Application Apk built with Android Studio is larger than one built with Eclipse

Recently I migrated my project to Android Studio. The project references a library project without copying it (See this answer). I noticed that the apk generated from Android Studio is larger than the one generated from Eclipse (almost twice larger). When I unrar the two apk files I see that...

Obfuscated apk code crash log

I'am working with a large android project,very large,and we obfuscate our code when we release our apk to market,now the trouble is: when our application crashed,actually,our application would post the crash log to our service,but the crash log make no mean,because we have obfuscated it already,we got infomation like this:a(),b(Unknown...

Can I provide different resources to alpha/beta/prod enviroment of an Android app?

I have an android app, which communicates to a server through HTTP requests. The server's address is defined in an XML resource file, under the folder res/values. There is a tag with the type="config" for it. I have different addresses for the server, based on its environment. For example, there...

How do I avoid multiple apk install promps on an Android programmatic install?

Our Android applications automatically check for updates every 5 minutes in the background and downloads the latest .apk file from our downloads server. It then fires off an install using the below method: public static void installDownloadedApplication(Context context) { Intent intent = new Intent(Intent.ACTION_VIEW); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); File sdcard = Environment.getExternalStorageDirectory(); File...

Error building Player: CommandInvokationFailure: Unable to convert classes into dex format

Please help me to solve this problem. This is what i got in the console: Error building Player: CommandInvokationFailure: Unable to convert classes into dex format. See the Console for details. C:\Program Files\Java\jdk1.8.0_25\bin\java.exe -Xmx1024M -Dcom.android.sdkmanager.toolsdir="D:/Android SDK/sdk\tools" -Dfile.encoding=UTF8 -jar "D:/Unity3D/Data/BuildTargetTools/AndroidPlayer\sdktools.jar" - stderr[ UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/qn; at...

How would I connect to a MySQL database back-end from an Android device's application? [closed]

I have developed a standalone JavaFx application in Netbeans with a MySQL database back-end which I want to also package as an APK package for running on Android. How would I go about porting the MySQL database script it uses to Android?

Encoding issue of AndroidManifest.xml file

I'm building phonegap app using phonegap-build. I need to make some changes to the manifest of the android apk. After i download the apk of my phonegap build, i rename it to .zip file to see the contents of the file. When i open it, there i see the xml...

Different types of APK

Can someone please explain the difference between: signed apk unsigned apk apk in debug mode apk in release mode Although its clear that signed apk is the one you generate apk with your own certificate and the unsigned one without without certificate. Especially what are the apk in debug mode...

Toolbar hidden by noification pannel

so i've generated the apk, but when i start my app, the toolbar is hidder by the noification pannel: android.support.v7.widget.Toolbar Toolbar.xml: <?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.Toolbar xmlns:local="http://schemas.android.com/apk/res-auto" android:id="@+id/main_toolbar" android:layout_width="match_parent" android:layout_height="50px" android:background="#263355" local:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" local:popupTheme="@style/ThemeOverlay.AppCompat.Light"...

Can i run an apk in device while the apk is stored on cloud?

just being curious to know if it is possible to run any apk on my device while the apk is hosted on a cloud server. Being curious and thinking of an idea if it happens? thanks

APK file creation in Android Studio

I tried creating an apk file in android studio, On assembling the module and then running it isn't creating any output file in the build. Only 2 folders are there in build intermediates and generated.. Any help is appreciated..

android: google maps only a grey background as APK

I develop locally with android-studio and a Galaxy S3 android phone connected via USB. On my local development environment, when I fire up the run configuration to deploy on the S3, everything works fine - the map shows up just fine. But when I deploy as signed APK to our...

keytool error: java.io.FileNotFoundException: C:\AndroidWorkspace\androidKey\public.jks (The system cannot find the path specified)

I am to trying to create a signed app in Android Studio, but i am stuck at this error which says keytool error: java.io.FileNotFoundException: C:\AndroidWorkspace\androidKey\public.jks (The system cannot find the path specified) I get this error when i am creating a new key store. i am confused, why would it...

Installation process of .apk within ART. Difference from Dalvik VM installation process

Recently I answered this question, where was described whole installation process of .apk file to android phone. The one thing it was about using Dalvik VM. And now I'm wondered is installation process is exactly same using ART? What are the differences? I mean the work of PackageManager, path, convertion...

Android Studio: Unable to Generate Signed APK

While trying to generate signed apk using Android Studio, I'm getting the following error: Error:Error: This class should provide a default constructor (a public constructor with no arguments) (com.tokom.globol.CustomGrid) [Instantiatable] I tried to solve this issue by using super in my class but it shows error with red lines. Here...

Stuck creating apk file from sencha touch 2 app

I´m really stuck on how to create the apk file on my computer of a sencha touch 2 app. I have follow this tutorial step by step. But when I arrive at the last point it gives me some erros and I´m unable to solve it. This is the log...

Creating a keystore file.. unsigned .APK

I created an unsigned .APK and realized I needed a signed copy to push it to Google Play. Is it possible I can create a keystore file separately? I am using build.phonegap.com and there is an option to insert a keyfile and rebuild. I have lost of my workspace so...

Error: Avoid non-default constructors in fragments: use a default constructor plus Fragment#setArguments(Bundle) instead [ValidFragment]

I have a Fragment named Fragment_scheduled_newdetail and following is a constructor I am passing to this Fragment when launching, I get the following error: Error:Error: Avoid non-default constructors in fragments: use a default constructor plus Fragment#setArguments(Bundle) instead [ValidFragment] This seems to happen in Android Studio only (I am porting this...

Can not get the same signature from the keystore

I am developing an app on eclipse. But I am not going to publish it on Play Store, users will take copies directly from me or my website. When I try to update my app, it says there is another app installed with the same name. Uninstalling does not matter...

Strange Android APK app name on blackberry 10

I recently create / build android app using Ionic Framework. Works perfectly on Android phones. But when i install on Blackberry, it has strange app name such as @0x7f040000. The app itself seems fine. I've tried to convert into BAR file, signed the APK, etc still no luck. Been googling...

Android “mask” unknown sources

I'm creating my own app store for Android, and would like to install some apps by this store, but after apk is downloaded and I try to install it, the unknown sources popup is showed. I really do not want to show it to my user, or just show by...

Install apk from external storage from another application without confirmation activity

This is example of code which install apk file from external storage with confirmation activity: Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.fromFile(new File(Environment.getExternalStorageDirectory() + "/app-debug.apk")), "application/vnd.android.package-archive"); startActivity(intent); I need install apk from external storage without confirmation activity. Is it possible?...

Updating Android APK in different language?

I have an Android app on the Play Store, built in Xamarin. I'm going to rewrite using Java and Android Studio - is there anything stopping me from updating/switching language on my already-published app?

Android Studio Signed APK Not Installing

I am in Android Studio and signing an APK under Build > Generate Signed APK and using the wizard. Everything appears to sign fine and an .apk file is generated. When I go copy this file over to my device (either Nexus 7 or Moto X) it won't install. I...

execute adb shell input swipe command from apk

I am trying to execute swipe command from my Apk using process = Runtime.getRuntime().exec("adb shell input swipe 250 300 -800 300"); but nothing happens and no error occurs during runtime. Do i have to add anything in manifest to get it to work?...

Performance Testing for Native Mobile Applications

I have to do a POC on Performance Testing for a Native Mobile Application. Need some help on how to go ahead. Many tools in the market work on a browser based on the Mobile. What if, I have developed an app (eg: like Facebook app on Android phone) and...

Installing a dependent apk using the Google Play Store

I have a regular Android application which I am planning to deploy on the Google Play Store. This application needs a custom application service (no UI) to work as expected. [It is not possible to combine them together]. To improve the User Experience, I would like to make sure that...

How to rebuild android test project when only having APK of the application to test (no source code)

What I want to do: Update an android test-project What I have: 1. The APK of the application under test (aut) - no source code 2. The source code of test-project What I did: Modified (with a 3rd party app) the source code of the test-project (including the Manifest) What...

Error : duplicate files during packaging of APK

I try to run an android eclipse on Android Studio. I try many solutions on the internet. But something wrong still happens Error:duplicate files during packaging of APK /home/sam/pst-adnew/panstage/build/outputs/apk/panstage-debug-unaligned.apk Path in archive: lib/armeabi-v7a/libmp3lame.so Origin 1: /home/sam/pst-adnew/panstage/build/intermediates/exploded-aar/pst-adnew/panstage_local_library/unspecified/jni/armeabi-v7a/libmp3lame.so Origin 2: /home/sam/pst-adnew/panstage/build/intermediates/ndk/debug/lib/armeabi-v7a/libmp3lame.so...

Bypassing install permission programmatically for enterprise apps from third-party sources

Several years ago, Android allowed you to set a permission that lets you install apps from a third party location other than Google's own app store Google Play. Eventually they deprecated that permission and only allowed hardware manufacturers to set that permission. I haven't checked since then whether that is...

Creating an apk wrapper Android (no source code)

I'm working in some game portal catalog (kind of a PlayStore) based on a subscription model. I have a partnership with some editor that can provide me some game apks. But not their sources codes. So I have rights to modify stuff about them but I havn't the code. Here...