I am an eclipse user and android developer.
I am trying to develop android applications using scala. I managed to do an hello world once in eclipse and now I am trying to do it with Intellij IDEA, so I can choose the best option. I managed to run simple scala examples in Intellij and I am trying now to create an android application there.
The problem is: Eclipse seems a lot more EASY to build an android application with scala than Intellij. For what I have seen you need to use SBT and install a lot of "extras" to get things done.
I have seen some questions here about IDEs for Scala. But didn't find a recent question about the combo Scala + Android.
So, my question is... Should I give Intellij a try or eclipse is just fine? Is it possible to run the application on my smartphone easly with Intellij?
I haven't tried Eclipse with Android IDE so I cannot compare. I use IntelliJ 10.5 for Android development with Scala. And it just works perfectly.
All you need is to download Scala plugin with IntelliJ's build-in plugin manager. Android support is installed by default in Idea 10.5.
I can highly recommend Idea 10.5 for Android development with Scala.
I have tried Intellij Idea but it wasn't as simple as Eclipse. You should prefer eclipse rather than using this Intellij.
Related
Can Eclipse in conjunction with ADT still be used for Android Development (and if yes, how do I go about it) or should I just keep using Android Studio?
I tried setting up ADT on my Eclipse, but it wouldn't work (after many, many tries).
Any advice would be appreciated.
yes you can but the best practice for android development is by using Android Studio because linux users has also problem with eclipse. you can take help from below link
https://stuff.mit.edu/afs/sipb/project/android/docs/sdk/installing/installing-adt.html
but as per my suggestion you should use Android Studio because if you are using eclipse then you need to migrate the code also.
I am new to android development, So I am not sure if this question is very silly
I was wondering if the same source code can run in both eclipse and android studio
If this is possible how to do it, and what points should be considered?
If not what are the road blocks to accomplish this.
Simple answer: Yes, you can "write" (not run) in both IDE's.
Aside: You really don't even need an IDE. If using Gradle, you can write code using any text-editor, then compile, build, test, and install all using Gradle.
If this is possible how to do it?
Well, Android Studio can import Eclipse projects. That is pretty well documented.
Eclipse (unofficially) has an Andmore project and also supports Gradle projects.
what are the road blocks to accomplish this
If using Eclipse, it's not supported by the Android team anymore, and you'll likely be missing out on features that are actively added to Android Studio.
While creating Android environment in eclipse, I receive this error:
Folder can't be moved because it's open in another folder
, and when updating, it all fails as Eclipse doesn't find the SDK location, because emaluator.exe file is no longer existing as part of the tools of the SDK. I have preinstalled system-image, etc. Any ideas on how to fix this issue without re-installation?
As a beginner and as now Google has their own IDE for developing Android App, you better should start your development journey with Android Studio. It is powerful, beautiful and very easy to use. Why you are using Eclipse still now? If you use Eclipse, you have to install Android SDK, Android Emulator. And you are getting all the tools in one place with Android Studio.
Moreover, Android Studio has IntelliJ engine inside. It is known as the best java ide. Super auto code completion, intelligent code inspector and so on.
Android Studio has become the way to go for Android developers now-a-days. It is easier to use because is based on the IntelliJ Idea which is per se a much better java programming environment than eclipse, it predicts way better what you may need to write, and google has made it so that you have all your interface, simulator and code all in the same environment. On top of that google won't update the Android SDK to work with Eclipse anymore!
I've started learning Scala, and I... I think I'm in love. I've only coded small test snippets so far, but since I currently working in Android development, what I really want to do is try my hand at writing Android applications in Scala.
I've found articles and questions on the matter, but mostly referring to older versions of the three tools (Android SDK/Scala/Eclipse), so the general question is:
Is anybody coding Android apps in Scala right now, with the latest SDK, Scala 2.9 and Eclipse Indigo? How viable is it?
And, in particular:
How's the interaction/integration between Scala's features and the Android library?
What's the state of the Scala plugin for Eclipse? I've read all the features you'd expect are there, but I'd like to know first-hand stories, specially about the debugger.
How well does the build process (scala to java to dalvik, ant, proguard, etc.) automate?
Thanks!
We are using Scala heavily to test our Android code - you can read a writeup of how we're doing so here. We use Ant or SBT to compile - there's an excellent SBT plugin for Android development.
Having said all of that, I'm not sure that I would recommend Scala for production Android development. In particular Scala 2.9.x is basically unusable as there is no good way to get the libraries to work on Android. You can read about the issue here.
It's a real pity, as Android development would benefit considerably from Scala if we could get it working properly.
Solution found here to use the latest Android SDK, with Eclipse 3.7.2 and Scala 2.9 :
https://stackoverflow.com/a/11084146/1287856
It completely handles the android library
You can make Android Library out of scala projects as usual
The build process is completely automated, including proguard-ing and exporting the project with the regulard Android tools.
I started to implement the android application (a twitter client) from the book "Learning Android" with Scala 2.9.0-1 a while ago.
In my opinion you can use it. I had only one problem with the parameter list at AsyncTask (see this link, problem #3).
If you want to checkout out the project, you can find it here.
This video from ScalaDays 2011 may be hepful:
Scala on Android: Real-world Experience at Bump Technologies by Michael Galpin
EDIT:
If you really really want to run Scala code on Android (and not really make an app, but for yourself), then I have an easier solution. It depends on if your phone supports the procedure. In summary the steps are:
Install Ubuntu on your device (as described here). This will not affect the Android installation.
Boot Ubuntu, install JDK, Scala, etc, copy your Scala jars and run from there.
Can I use eclipse with java to create an Android app? One programmer said yes, but a programmer at IBM said no. I'm tring to put app on the android market.
Is it possible to just use the Eclipse IDE to create an android app or do I need to use a different IDE?
Yes, you can create Android apps using Eclipse. You'll have to install the Android SDK and ADT before you get started. Here are some guides to get you started:
http://developer.android.com/tools/building/building-eclipse.html
http://developer.android.com/tools/projects/projects-eclipse.html
http://developer.android.com/tools/testing/testing_eclipse.html
Eclipse is the most popular. There are options such as IntelliJ IDEA, Netbeans.
The followings
http://mobile.tutsplus.com/tutorials/android/publish-to-android-market/ and
http://developer.android.com/guide/publishing/publishing.html
will be helpful on how to export your app to android market.
Sure you can Java is one of the most popular languages to program in for android creation.
The MoSync IDE is based on Eclipse and is conveniently cross-platform. You might consider that.
However, there's a how-to for Android apps in Eclipse located at the Android Developer site.
Sure, you can use the Eclipse IDE for Android Development:
http://developer.android.com/sdk/eclipse-adt.html
While Eclipse is the most popular for developing Android applications, you can use other IDEs such as Netbeans and IntelliJ IDEA..
You can find more info at
http://www.nbandroid.org/ for Netbeans
http://www.jetbrains.com/idea/features/google_android.html for IntelliJ IDEA
Personally I prefer Eclipse, but if you are uncomfortable using Eclipse you can use those IDEs.