I am successfully using SQLite-net (https://github.com/praeclarum/sqlite-net) in my MonoTouch project. However when I try to use the same in Mono Android, the Database call throws an exception in the Prepare2 method.
I am using the SQLite-Net file as-is in my Android project.
Do I need to make any changes specific for MonoAndroid?
Any help highly appreciated.
This blog post has some details on how to use SQLite-net in a Mono for Android application. I also recommend checking out the MWC application created by Xamarin which is a good recent example of using the library in an application.
If you still run into problems, please provide some details on what the problem is (exception type/text, stacktrace, etc).
Related
One of my friends suggested to use c++ support in Android studio in order to hide passwords. I have found tons of tutorials how to get started with ndk in android. But they are all outdated(2015) and everytime I try to use c++ in any way, Android studio crashes. Is there any way to do it in a simpler way now?
P.S./ I want to get rid of experimental plugin that every one uses.
Little off the question, storing passwords in the native layer does not ensure complete safety. A good hacker can get that as well. It is just that you add another additional layer so one has to dig deeper
I'm trying to convert an XNA project to Android. I saw a video saying I need to have "opengl mono for android" as an option when creating project, but I don't.
Can anyone tell me how to download this extension?
Use MonoGame.If you don't you will need to rewrite your game including all the rendering logic in either C# using Xamarin.Android or a complete rewrite in Java.
So your best choice would be Monogame:
monogame.net
EDIT
I just found this on an other site it's called exen, but I still think Monogame is a better one because there are many people using it.
link to Exen:
http://andrewrussell.net/exen/
In Eclipse:
Is it possible to Sharing code between GAEJ and Android projects? And or GAEJ and another GAEJ?
Thanks
there was a nice talk about GAE & Android integration on the last GoogleIO 2012:
Google I_O 2012 - Building Mobile App Engine Backends for Android, iOS and the Web
they show how to use same data structures for data exchange between Android and GAE.
If you asking about how to set it up in Eclipse, I use the 'linked source' option in the source tab of Java Build Path. Here's a blog post with details:
http://blog.christoffer.me/2011/01/sharing-code-between-multiple-java.html
If you are asking about whether it is practical - from the code perspective - that is trickier.
When trying to share Android code with GAE/J I discovered that I had dependencies on android packages, e.g. android.util.Base64. Sharing code means dropping stuff like this and using 3rd party libraries instead. For example, the Guava library works on GAE/J and Android:
http://code.google.com/p/guava-libraries/
Logging is another problem. My GAE/J code was writing to java.util.logging.Logger, whereas my Android code ultimately logs to 'android.util.Log.println. If you use a common library framework like log4j or just writing to System.Out I think you will lose functionality in the log viewer - ideally you would have a logging library or shim that mapped to java.util.logging.Logger or android.util.Log.println depending on the platform.
How can I get that API into our Android project.
As per my understanding the you have a code written on J2ME platform where you are using javax.microedition.io
But as you are making an application in Android and Android does not have the package available, so you need to use any library to achieve your goal.
Here is a open source library for parsing Ksoap2 data
http://code.google.com/p/ksoap2-android/
Again you can use the following tutorial to get started
http://www.helloandroid.com/tutorials/using-ksoap2-android-and-parsing-output-data
I want to ask if someone know how to make communicate a native c android application and an classic java android application, the native c android application running in background.
Thanks.
First thing you need to do is download the android-ndk available here. It comes with it's own documentation which will be available here: [android-ndk path]/documentation.html, You can also find information in the android-ndk link above.
If you're anything like me you'll need as much help as you can get developing a JNI bridge. I had to find these resource myself but they were invaluable to me. See below for JNI information:
Table Of Contents
Methods (older resource)
Methods (newer resource)
Types
Reference
You can integrate your NDK/C++ code and debug it from Eclipse using Sequoyah and CDT (C/C++ Development Tooling)
More specifically to answer your question - You can use a service as a wrapper around your native code if you require the native code to run in the background. This will enable you to push information to the native code using the OS's intent mechanism in a fifo structure.