Im curious to know the what steps/tools need to build an android app from source code to apk inside android (i.e. inside an android powered smartphone).
Im actually curious how AIDE works. They give a whole integrated development environment as an android app. Without any root privilege, it compiles==>builds==>generates apk==>deploys/installs apk to host machine (i.e the smartphone).
Im guessing I need ANT/Gradle , keytool , jarsigner(to sign apk).
But:
What tools?
In what sequence?
How? :)
I dont know is it a good place to ask? If not, any suggestion of stackexchange network or any blog will be appriciated.
You don't need any extra tools, if you have AIDE installed...
Just wrap up your Android project code, hit the 'Build' button & it Compiles everything to a working Android App (.apk) :)
All you need is just AIDE .
IT HAS ALL REQUIRED TOOLS LIKE GRADLE, AAPT, SIGNER ETC
Just chill and start using AIDE, if you have problem with free version, try Pro. Am using Pro without any problem since 3 years
Related
How to use j2objc in android studio?
I did not find any manual. How to implement and work with j2objc in android studio?
I'm a junior in java language, and I wrote one app for android, and now I need convert this app for iOS. It's a simple app.
I want use j2Objc for a separate build app for iOS, but I don't know how to work with j2objc.
Download distribution and this plugin. Follow instructions and everything will work.
Forgive this obvious question, but you have a Mac, right? You won't be able to build iOS apps without one. That's why many j2objc engineers use Xcode, since UI development and debugging are easier to do there.
I have win 10 machine.
OK, I downloaded it, unzip, and next step? I dont see any instruction, what i do with this. Paste in specific folder? Implement with plugin wizard? or? Maybe Im stupid, but realy I dont know how these features work on.
I see only:
This package must be built on an OS X system, with: ...
and for gradle plugin ...
oh shit!
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?
I've been using eclipse to develop Android apps with phonegap until, a few weeks ago, I decided to try Sublime Text 2. I found it to be so much better than the eclipse editor so I would like to keep using it. Only thing I'm missing is a quick way to test the app on the device inside Sublime.
Luckily, someone else also had the same idea and developed a plugin for this:
https://github.com/Korcholis/Andrew
Sadly, I cannot get it to work, I installed ant and pointed the plugin to adb but then nothing happens when I try to create a new project (and there is no error message in the console).
I also found this other plugin:
https://bitbucket.org/ucomesdag/sublime-android
But I have no idea on how to install and run it.
Did someone else found a way to do this?
A quick update into 2014.
As of PhoneGap Cordova 3.0, it is no longer required to develop Android apps via eclipse. You are free to use any code editor or IDE you wish as app building is done independently from eclipse via a simple command line.
cordova run android to package the .apk and install on any active devices detected by adb or
cordova build android to package the .apk only.
In your case, you can keep using Sublime and pop in the cordova run android command whenever you ready to go on a test run.
While I agree with Insane Coder that you should stick with supported IDEs to develop for Android, according to this link and existing Sublime Text 2 Ant support, you could build and develop your android project with this IDE (It will just take some time to set it all up... as opposed to using a supported IDE like IntelliJ or Eclipse).
Using PackageControl, look for "Ant". That will install syntax highlighting for Ant. Another plugin that enables the build command (ctrl+b) to work for Ant files, "Super Ant". You should be able to code for android in sublime text 2 with those installed.
On another note... Do you use windows? The Andrew project you link to, seems to have Windows compatibility issues. Apparently related to locating the "SDK" (he says sdk in Andrew's github page but, probably he means JDK?) in your hard drive. Which is probably a hassle because Windows typically installs stuff to "Program Files" and in code, that turns into "Progra~1" because of the space. In the link I give you there is another approach to it, so when you install the JDK set a folder that has no spaces in its name, like c:\java\jdk1.6.0_02 or something else that strikes your fancy. The problem you could be having with Andrew is that it isn't finding the jdk in your hard disk.
I wanted to start developing for Android, but found it terribly hard to set everything up so it would work on Sublime Text 2.
I know that I'm supposed to download and set up the Android SDK, but how, where and why? And how do I compile my projects and run them? This is a complete mystery to me.
I've been researching this for about 3 hours now and haven't had any success. Could anyone of you, please, help me by guide me through the process of setting everything up in ST2?
Please note that I do not want to use Eclipse IDE. I've grown to love ST2 and I'd like to stick with it.
I know that I'm supposed to download and set up the Android SDK, but how, where and why?
Visit the official site and follow the instructions for "other/existing IDE". I don't think anyone wrote specific instructions for using Sublime yet though (since you haven't found one).
And how do I compile my projects and run them? This is a complete mystery to me.
As others already answered, other than a JDK, you will most likely need to download and run Ant from the command line.
If you really want start Andriod development, without using the great support of an IDE like Intelji Idea or Eclipse, then you should properly look into building and running your applications in the command line beside Sublime Text 2
If you follow the instructions for using the 'Andrew' software module from github, you can get sublime to communicate with the android sdk and ant build tool via a tool called monitor.
https://github.com/Korcholis/Andrew
Kind of similar to a vim addon i used to use that talked to eclipse service.
But if anyone else is reading this, intellij (android studio) has come on leaps and bounds regarding speed and autocomplete.
Eclipse and IntelliJ are the known supported IDEs for Android development. If you don't want to use Eclipse or IntelliJ, read up about ant scripts and how to build with Ant. That should get you started.
Sublime Text 2, right now doesn't support Android development from within the IDE. The only option you have, other than using Ant, is to wait for someone to write a plugin for that.
Do I need to use Eclipse IDE in order to develop in Android ? Most of the user guides insist on Eclipse !
No, it isn't. See developer.android.com for instructions on how to develop, both with and without eclipse.
Managing Projects from the Command Line and Building and Running from the Command Line, for example, shows how to manage and build a project (without Eclipse), respectively.
Eclipse is very good IDE for android application development. Otherwise there are other IDE's like:
Netbeans, JetBrains as mentioned by DAC
Plus you have got:
IntelliJ
No, it isn't; however, I don't see why you'd want to do otherwise. It greatly simplifies things when using Google's own SDK and Eclipse plugins.
I think it may be somewhat futile to develop for Android without an IDE if you plan on using the emulator, debugging and anything else that is useful for Android development; however, most of the other large Java IDE's support android:
NetBeans
JetBrains
No it's not. You could even use nicer languages like scala... (take with a pinch of salt)