I have C code in my Android app and would like to catch crashes and print them to a log file. I saw this post, and tried, but I can't find the execinfo lib.
I'm working with Ubuntu 11.10 and using NDK for compiling to Android.
Does anyone know how to find execinfo lib for NDK/ARM, or have another simple solution?
On Android, you have some sample specials utils code allowing to see and/or dump the stack.
Implementation is in base/libs/utils/CallStack.cpp. You'll a find a tiny sample code here.
Related
I'm struggling to use Sqlite.net Extensions in my Xamarin Android app.
I get the exeption:
Don't know about System.Collections.Generic.List`1 [app_name.Model.modelName]
The problem is similar to:
Sqlite extension is not working as expected
and
Use SQLiteNetextensions with Xamarin for Android-App
but the answers from there are not working for me and I can't add comments, so I have to start a new question.
I was trying to install different sqlite.net extensions packages and got no result.
Using SQLite.Net Extensions-PCL 2.0.0-alpha2 gives me such exeption:
System.IO.FileNotFoundException: Could not load assembly 'SQLite.Net, Version=3.0.5.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
I'm using Sql-net library:
https://www.nuget.org/packages/sqlite-net-pcl/
Does anyone has a final solution to this problem, please?
Edit:
I had to create a new project and paste everything in from the old one.
I don't think that answers the issue, but it's enough for me...
I'm using Sql-net library:
https://www.nuget.org/packages/sqlite-net-pcl/
The link here you give is the right lib, but you really installing this package? Cause you also said that you're installing SQLite.Net Extensions-PCL 2.0.0-alpha2.
Please try to install the package in the following screenshot, the latest stable version is 1.3.3:
I have cloned the code for the android camera app that comes with Android 4.0.
I am trying to build the native Mosaic JNI library required to run the Panorama Mode, but it is throwing an error connected to the OpenGL parameters it is using. its not a single error but rather something like:
jni/mosaic_renderer_jni.cpp
:664: undefined reference to `glBindFramebuffer'
etc..
Can anybody help me with this issue? do i need the complete source code of android to build this library?
If anyone has any experience with this please can you give me some pointers?
Thanks,
UPDATED:
I have tried another approach and i have managed to extract the compiled libjni_mosaic.so file.
Now i have an issue in adding compiled native code to an existing application as a library.
Can anyone give me some pointers on how to add the library?
I have a problem while running the examples from andengine. The error I'm getting is at this line:
System.loadLibrary( "andenginephysicsbox2dextension" );
Couldn't load andenginephysics2dextension. Find library returned null. I noticed other people kept having this problem but no solution was proposed.
Any help is welcomed! Thanks.
looks like you missed to copy the native libraries. AndEngine is now hosted on github and it is in perfectly active development! ( https://github.com/nicolasgramlich/AndEngine ) more info on what changed in the new GLES2 version here: http://www.andengine.org/forums/announces/andengine-gles2-pre-release-on-december-23rd-t6097.html#p26851
Using AndEngine as a library project is recommended and this will automatically 'copy' the native libraries to your project.
Best Regards,
Nicolas
The error you are getting is because you have to build the Box2D extension yourself. I think there is tutorial how to do it. However i stoped there and downloaded the demos from market. Then eventually switched to libGDX.
Check out this tutorial: http://www.youtube.com/playlist?list=PL6131C7A9DDCF959A
The new way of using andEngine is to include the git repos as libraries (without making any jars)
I've been working with the vibration example from Adobe for Air 3.0's native extensions on Android.
I have the ANE compiled and the .apk packaged.
The problem I'm having is the actionscript library is getting a null ExtensionContext.
I tried creating the .apk with adt -package -target apk-debug so that I can see the actionscript traces in logcat and that's where I'm finding the null error.
extContext = ExtensionContext.createExtensionContext("com.adobe.Vibration", null);
extContext is null and crashes on the following .call() method.
All of the source is stock from the examples, I haven't changed anything.
Does anyone have any experience with getting one of Adobe's ANE examples working on a windows machine? Most of the examples are for Mac.
Good lord. What a waste of a week.
I was using a tutorial from gotoandlearn.com that was telling me to, in by build script, use a jar command to put my native extension in to a jar.
I simply used the .jar that's automatically built in the NativeAndroid/bin/ folder and all is well.
It turns out, that tutorial is out dated and not really useful for the build anymore.
One additional comment. You need to set target platform and checkbox Is Library from Properties -> Android to get compiled jar in bin folder.
P.S. .sh from gotoandlearn can be executed in Powershell in Windows with minor changes for running bat files: ( cmd "/c adt.bat" )
I'm having the exact same problem on a Native Extension I'm writing, and have open sourced. I started this project with tutorial code from Adobe DevNet. I've found examples of this specific issue I've tried to follow exactly, and have had no luck with it yet. I've identified it to be a sandbox allow-domain problem.
Here's my line of code:
_aneContext = ExtensionContext.createExtensionContext("com.adobe.sampleasextension", "");
Here is a link to the code in my GitHub project:
https://github.com/interactivenyc/ANESampleProject/blob/master/TEST_AndroidAIR/src/ANESampleTest.as
Here is my compiler error:
SecurityError: Error #3207: Application-sandbox content cannot access this feature.
at flash.system::Security$/allowDomain()
at com.adobe.sampleasextension::SampleASExtension()[/Users/stevewarren/Clients/Speakaboos/git_repositories/ANESampleProject/ANESampleSWC/src/com/adobe/sampleasextension/SampleASExtension.as:14]
at ANESampleTest/initializeANE()[/Users/stevewarren/Clients/Speakaboos/git_repositories/ANESampleProject/TEST_AndroidAIR/src/ANESampleTest.as:198]
at ANESampleTest/onAddedToStage()[/Users/stevewarren/Clients/Speakaboos/git_repositories/ANESampleProject/TEST_AndroidAIR/src/ANESampleTest.as:131]
at runtime::ContentPlayer/loadInitialContent()
at runtime::ContentPlayer/playRawContent()
at runtime::ContentPlayer/playContent()
at runtime::AppRunner/run()
at AppEntryCommon/run()
at global/runtime::AndroidMobileDeviceAppEntry()
First of all, I would like to mention my requirements:
I have been working on an ANDROID Application since a couple of months. I need the code of OCR (Optical Character Recognition) in order to link that to my app through CYGWIN, JNI, NDK. I found that TESSERACT OCR is the only open source code available. I have downloaded the code of Tesseract OCR-3.00 from the following link:
http://code.google.com/p/tesseract-ocr/wiki/ReadMe
I successfully compiled the code in CYGWIN environment as per the steps mentioned in the "INSTALL" file present in the downloaded file. Finally all the MAKE files are generated. In order to use this code in my app, I need the ".so" file, which will be generated through CYGWIN..
Now, the problem am facing is:
I have imported the complete code Tesseract OCR into my Android app code in ECLIPSE as per the steps mentioned in the following link:
http://mindtherobot.com/blog/452/android-beginners-ndk-setup-step-by-step/
I had followed the procedure as mentioned in the above link..but importing the code of TESSERACT OCR is as tough as a hell when compared to the example given in the above link.
The final step where the ".so" is to be created is not working in the case of OCR..The error as shown in the following image![enter image description here][1]
SUGGESTIONS:
Plz suggest me the clear explaination on how to proceed with the next steps....plz plz..someone, plz do take some time to give clear explaination..
Thanks & Regards
when I tried working with Tesseract, I was not able to get it working with Windows and Cygwin. Even I used the same references as you did. Then after I tried compiling the 'tesseract-android-tools'. And it was not working either. After that I used a MAC with the native C environment for compilation and it worked. Maybe you Google after 'tesseract-android-tools' and you'll get a lot of help.
Hope it helps a bit for further progress.
Regards