I am a newbie in android development but having plans to become an active developer
I had a c++/Java library called Wt. I need to install this library on android.
http://www.webtoolkit.eu/wt
Do I need to port the source code of library?
If yes please point to me a good resource to start with.
Expecting a good helping hand from this community
It is possible to use native C/C++ code in Android applications, using the Android NDK (Native Development Kit)
And it is apparently possible to compile wt for Android, so hopefully not much porting to do!
See http://redmine.emweb.be/projects/wt/wiki/Installing_Wt_on_Android
Related
I work as an android programmer for just under a year now, and I just started to learn about android game development. The framework I choose to work with is Cocos2d-x.
I have seen guides and tutorials on how to use Cocos2d-x with eclipse, but I'd really like to know if it's possible to be used with Android Studio.
From what I've read, it is now possible to build NDK projects with gradle in Android Studio, which is good news. Nevertheless, I have yet to find any information about C++ programming using Android Studio. Eclipse uses the CDC ( https://www.eclipse.org/cdt/ ) plugin to achieve this.
Is there anything similar to be used with Android Studio? I have found some C/C++ enabling plugins for the IntelliJ Platform, but they were no longer updated.
Has anyone else tried this before? Did it work? Can you provide a step-by-step guide, for a newbie like me, who's dealing with this kind of problems for the first time?
Thank you for you time,
haxm
Android Studio currently isn't well set-up for native programming. While the build system supports the NDK, there's no editor support for C++ files (it's not as if it won't work, but the IDE won't give you any editing assistance), and neither is there any debugging support. JetBrains has announced that they're working on new C++ support for IntelliJ, and this is something we're looking at for Android Studio, but it's not on the roadmap yet.
Recent version of cocos2dx v3 (from github for example)
have proj.android-studio project
At this moment I have no success to build it but maybe in future it will be fixed
I just went through the setup for this example code. The project compiles and has a ton of sample code. Scott Barta's answer still stands as an important caveat, but wanted to share the link in case it was useful.
I also found this useful for some NDK background/how-to.
I'm doing a project using OpenCV 2.3.1 and I want to embedded this on a pandaboard. So I'm looking for someone who can help me to instal opencv on Pandabord using Linaro Android 11.11 . If you have some link or if you can advise me I would appreciate.
Thanks in advance.
Best Regards
If you want to run openCV on android I would suggest you learn about the java native interface, JNI. I have developed image processing algorithms on Android cell phones. You want to get Eclipse and install the SDK :http://developer.android.com/sdk/installing.html
After that you need to install the Eclipse NDK in order to develop C/C++ code in your java apps, this gave me about x5 increase in performance: http://developer.android.com/sdk/ndk/index.html
Finally you need to download and link the openCV C/C++ library to your projects:
http://opencv.itseez.com/doc/tutorials/introduction/android_binary_package/android_binary_package.html#android-binary-package
You should also check out the google Play Store, they have some cool OpenSource projects you can look at.
Is there a languages other then Java to develop native apps in android without script layer/AIR and others 3rd party abstractions.
Mostly im interested in Clojure,JRuby, Scala
Since Scala is compiled to native JVM bytecode, it could be use to develop native Android apps.
The biggest problem is that using 3rd party library is not that easy in Android development, and you need use proguard to reduce the size of your program, sometimes this will cause problem.
But it is still feasible to develop an Android app using Scala, for example, I've wrote an little android app (page in Chinese, but there is screenshots) using Scala. It's not a complex app, but should demonstrate what Scala could do in Android app development.
Here is also an SBT plugins that help you build your Scala/Android program.
Finally, if you want develop Android using Scala, I will suggest using Scala 2.8.x. I found my program crashes during adb install when I extends a collection class using Scala 2.9.
If you use Mirah, you can get code that is exactly as fast and small as writing Java, but you get niceties like type inference, closures, and macros. The tooling is still pretty immature compared to Scala, but if you want to minimize overhead above all else you should give it a look: http://mirah.org and https://github.com/mirah/pindah
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.
I would like to know if it is possible to develop smartphone applications using VB.NET rather than C# with the MonoDroid Visual Studio addin?
Also, if possible could anyone point me in the right direction of some example code in VB.NET not C#?
Many thanks in advance.
Here is an article
From http://mono-android.net/FAQ
Currently Mono for Android does not support Visual Basic.
We are looking at adding support for
Visual Basic on upcoming versions of
Mono for Android.
Technically, what needs to happen is
the following: we need to provide the
Visual Basic helper library (part of
Microsoft.VisualBasic.dll) and compile
it to work with the Mono for Android
mscorlib.dll instead of the standard
Mono 2.0 mscorlib.dll
With the above it will be possible to
use Microsoft's Visual Studio to
compile VB code that will run on Mono
for Android. But we want to support
Mono's own Visual Basic compiler, but
that will also require the compiler to
run using the Mono for Android
mscorlib.dll. This is not difficult,
but requires time to get done and
integrate into our release process.
At this point there is no ETA on when
the above will happen. [enter link
description here][1]
[1]: http://mono-android.net/FAQ
Not at this time. You can find an explanation in the FAQ, but the first few lines state:
Does Mono for Android support Visual
Basic?
Currently Mono for Android does not
support Visual Basic.
We are looking at adding support for
Visual Basic on upcoming versions of
Mono for Android.