After installed, where can I find the files used by my app?
For example, my app use a sqlite plugin and it generate a database file, "dummy.db". I need to have access to this file but I don't know where it is.
If you run your app on emulator, you may open the emulator via Android Device Monitor and find your app's database using the path 'data/data/your_app_package_name/databases'.
Related
I built a Cordova app a few years ago and it looks like I no longer have the source code on my laptop. I need to update the app, but the only version of the app that exists is the one on my Android phone. It's a developer build, pushed to phone via USB cable. Is there a way to retrieve the JS/html assets from it so I can modify the app without starting to write it from scratch (the app does not rely on any Cordova plugins).
1- You should extract the APK from your device, here is a post on how to achieve this via ADB
2- APK files are basically a zip file, just renamed the extension and extract
I made an Android activity and deploy it to my device using eclipse. Now i would like to add a INI configuration file to it.
What would be the right place to install this file on the device ?
I want want this configuration file to be modifyable without having to open the project using eclipse so that someone without programming knowledge or developping tools could still be able to modify this config file.
Thank you :)
What would be the right place to install this file on the device ?
External storage. It is the only place the user has access to.
You might package a template or starter version of your configuration file inside your app, such as in assets/, then copy that file to external storage on first run of your app (or if the user accidentally deletes or corrupts the copy on external storage).
I want to build a new Android project based on another project that is available open source via Google Code. I already downloaded the code via svn and loaded tested it in Eclipse.
But now when I try to run the code on a phone where the original app is installed I get the "Re-installation failed due to different application signatures" error.
What do I have to change in the app preferences of my branch in order for it to be a new, independent app that is not associated with the source app so that both can be installed alongside?!
You need to uninstall the original version of the open source app.
Once you run it from your local eclipse it will use your debug key which is different than the original key - hence the signature error
Try rooting your phone then uninstalling the system app using adb then installing your custom one
Hi i'm new to android my client want to run the app in their on Android Device i go through the many answers through Stack overflow like this:-
How to make .apk file
How to build an APK file in Eclipse?
but i'm unable to make build.
I want to make a build of app in which is usually .apk extension and how i'm able to install this .apk file in my clients android device it doesn't have any eclipse or IDE.
Please suggest me the way or some links regarding this process to build and install the app in clients android device without using eclipse or any IDE.
Thanks in advance.
Eclipse create .apk file of your project by itself and save it in bin folder copy that apk file and send that to client and tell him to save apk on SD card and run directly from SD card. It will work.
the moment you run the app on the emulator or a device, the .apk file is created and put in /%YOUR PROJECT%/bin/app.apk
you can send that to your client...
I wondered what installing apk files into emulator or device means and tried to install manually with eclipse first. I opened file explorer tab in ddms section in eclipse and realized that all files with apk extension are in app folder. I selected app directory and clicked push a file onto device button on the top. With selecting apk file i want it was installed to the emulator. However, i am getting this error when try to run app ,
Is this error about my installation method or caused by something different ?
The only way to install an apk is with
adb install FileName.apk
I think that the installation procedure of an Android application would be more complex than simply putting the apk in the app directory. Various folders have to be created to store application local data, file permissions for the application has to be set, the package manager has to be updated about the new package, and many other scores.
You should really just use the default installer of Android to take care of the installation. And, if you are really curious to know the installation procedure, you can always check out the source code! You can find details in the Getting Started page on how to download the source.