Exporting phonegap android app - android

This will probably seem like a noob question but I have managed to intall phonegap with eclipse and to get the emulator and samples running. However, I am confused on how I would export this inorder to try it on my phone. Is it the .apk file in the /bin folder of the application? Or is there more? I mean like pictures and other files. I'm not used to eclipse. How do I get it on my phone and eventually the market(free only apps).
Thanks

Yes, it's the APK file that is the application. You should also be able to connect your device to your computer and run directly on it.
http://www.phonegap.com/start/#android

Related

Transfering Android Studio files to another PC

I'm currently using android studio to develop an app, but my pc seems pretty bad for it so I'm very afraid that it stops working and i can't access my codes anymore. Is there any way I can transfer the files to another computer? I have the app folder with all the codes, even tried using whatsapp, email and google drive to send the documents but it won't let me. If I buy another computer can I use an external hard drive to transfer my apps to the new computer? Idk if it matters, but i'll be switching from a MacOS to a Windows.
Sure. Just copy the folder where your project is in to an external hard drive, copy it in the other PC, install the same version of Android version you are using in the other PC and open that copied folder as a project with Android Studio.
There should be no problem.
Maybe you have also to reconfigure things like Firebase access or the like, but with repeating the process you did it should be enough.

Mobile Firefox development directly on my (rooted) Android instead of having to repack and reinstall the fennec APK for every little edit?

For mobile Firefox development, how can I hack the core javascript directly on my (rooted) Android so I can get instant results instead of having to repack and reinstall the fennec APK for every little edit ?
The problem is that all the files are locked up in the /data/app/org.mozilla.fennec/base.apk, and within that there is another archive (/asses/omni.ja) which can be unzipped to give the javascript. Reconstructing the apk file on device after editing the zip file inside it has proved unworkable, as although the apk file can be unzipped, it does not work when simply zipped back up again.
The goal is just to try things out and learn the workings of Firefox on device and on the go.
Android install the app to a directory in /data/app/[package name]
You should be able to find the directory for this browser using the package name.
Then you can edit the javascript files in that folder but you might have to restart the app.

Running a kivy program on Android

First of all i am aware that there have been alot of similair questions asked already, but somehow i cant figure anything out, I have a python-kivy program that I want to run on Android, the program works perfectly on my computer, I've ran various simple programs using Python Interpreter with Kivy, so far it was the best open source I could find, but there is some nasty problems with it.
I've been to https://kivy.org/docs/guide/packaging-android.html#packaging-android and since i already had Kivy Launcher installed on my phone i tried that one first, however when i open the app i get a message:
No projects are available to luanch. Please place a project into storage/emulated/0/kivy and restart this application. Press back button to exit.
at https://kivy.org/docs/guide/packaging-android.html#packaging-android I readed that the 'project' consists of my main code, lets say main.py, and android.txt, the android.txt must contain a few things that i wont mention now, these two files must be placed in a folder and placed at the asked directory.
I did this, but i still got the same message.
I've thought of trying Buildozer, but i did not seem to find a proper instalation for it on android.
I'm asking advice, becouse i think that the answer to my problems might not be so dificuilt, so any advice apreciated.
Thanks and regards.
Cid-El
ps. Android Lollipop, python 3.4
You may try using buildozer to package your app and deploy to Android device directly for debug, you only need to install this in your machine, and change the developer options in Android to allow external source.
Basically once you install the buildozer, you need to initialise a project by:
buildozer init
Make sure you have the required dependencies and targeted Android SDK/NDK in your system.
Then it's only a simple edit the build manifest for Python specific dependencies (external modules etc).
And run locally by:
buildozer android deploy run
Read more about buildozer here
Hope this helps.

Can I retrieve android files from my debug phone?

So my laptop has seriously crashed & i REALLY need my android working files (not backed up)
Is there any way I can get the app from my debug phone into android studio (in another laptop) & have them as working android files - pleaseee help!!
If it's your own application and you own copyrights, you can use some tools for decompiling Android apk. Quick google gave me this.
or you can have a look at Is there a way to get the source code from an APK file?

How do I put an Android AVD into a git repo to share with the team?

I'm trying to setup out team for Android development. This is proving to be a major PITA. I can make an AVD and I can run it locally. I can make it run for the git clone directory so long as I muck around with environment variables and make put everything in a .android/avd subdirectory.
But the .ini file has a full path in it, and it seems a relative path isn't working. How can I share the AVD? not everyone clones the repo into the same location and not everyone has the same username.
It seems like the whole SDK and all its tools are designed to only be used by single person teams, unless you jump through all kinds of hoops, or am I just missing something?
Usually each person pulls the project themselves, compiles it, and runs it on their own machine or device. If those people are not developers and normally wouldn't have eclipse/android studio installed then just export the APK file for them. They could then upload it to their device or emulator of their choice and run it. If you want to look into an alternative emulator I would suggest http://www.genymotion.com/. It runs a lot smoother and quicker than the standard android emulator.

Categories

Resources