Titanium Appcelerator Android Module Development Android NDK path - android

I am trying to integrate a titanium module project into my native application. For that I am trying to develop a module project in titanium studio. But during building module I am getting the following errors, even after manually written path to Android NDK in build.properties file:
"The following error occurred while executing this line:
exec returned: 2"
I tried all the possible solutions that are available, can any one share any solutions?

did you download and install the NDK? and set the path?

Related

PhoneGap Development

How easy is PhoneGap to build and deploy Android applications? The application I'm thinking of is not a beginner level app. How is the level of debugging and error handling and the support it gives?
Thanks in advance.
Deploying an app with Phonegap is quite easy. You can install Phonegap by using,
npm install -g phonegap#latest
and then create an app by,
phonegap create myApp
Refer the docs, PhoneGap Getting Started
When you create the app you will notice there is a directory called "WWW". All you have to do is copy a build of your existing web app to this directory.
All your assets and code in this directory will be used to build apps for the platforms you specify.
You can use Cordova to add the Android platform, which will be used to get an Android build out of your project.
Use,
cordova platform add android
Notice the directory "platforms". Inside it you will find another directory called "android" and this will be your Android project.
To build an Android app simply use,
phonegap build android
When you run the above command Phonegap will build an Android project using your code in WWW directory and place it in the platforms/android directory.
You can then use Android Studio to open the android directory which is an Android project now.
It's as simple as that and quite easy once you get the hang of it.
Then you can do all the regular debugging inside Android Studio using Logcat.

Opencv compilation in eclipse for android ndk

I'm developing an android HMI application for lane detection in eclipse on windows. The lane detection algorithm is in CPP file using opencv. I used JNI to integrate android app with the algorithm. But i'm not able to run the application due to following error :
OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvShowImage, file /hdd2/buildbot/slaves/slave_ardbeg1/50-SDK/opencv/modules/highgui/src/window.cpp, line 501
i have followed all the steps specified by http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/android_binary_package_using_with_NDK.html
Request for suggestion where did i go wrong.

Trouble building a sample and running a module in Titanium Mobile

I'm attempting to create an Android module. I've read and followed the steps in the guide of creating an android module provided by the appcelerator wiki.
However I encountered a few problems along the way. I created the module using Titanium Studio, imported into eclipse and I was shown with a errors in the java file. http://min.us/mbj8ktGHgh#1o
I proceeded on ignoring the errors and attempt to build the module as instructed by the guide. Right click on ant.xml and run the first option. The build failed because it failed to find the Android NDK. I solved that by downloading the Android NDK and adding "android.ndk=path" to the build.properties. Ran it again and encountered another problem. This time it failed to find the libs folder. http://min.us/mbj8ktGHgh#2o
What went wrong?

eclipse opencv android ndk: The project was not built due to "'NUL' is an invalid name on this platform."

I'm trying to build and run the 'Tutorial 2 Advanced - 1. Add Native OpenCV' tutorial built into the opencv package for android. I wasn't able to use the ndk-build from eclipse following the tutorial from http://opencv.itseez.com/trunk/doc/tutorials/introduction/android_binary_package/android_binary_package.html
But, I built the project from cygwin successfully. But then when trying to run as an android application in Eclipse, it has the error
'Description Resource Path Location Type
The project was not built due to "'NUL' is an invalid name on this platform.". Fix the problem, then try refreshing this project and building it since it may be inconsistent Tutorial 2 Advanced - 1. Add Native OpenCV Unknown Java Problem'
Any help would be much appreciated, thanks
What exactly did you build with Cygwin? I've had an error which prevented me from building from the command prompt but with Cygwin everything works fine.
In Cygwin I first navigate to my project folder:
cd /cygdrive/c/"path to your project folder>"/
then while I'm in the project folder type:
/cygdrive/c/"path to android-ndk-r7b folder"/ndk-build
After using these commands I was able to run the Tutorial 2 Advanced - 1. Add Native OpenCV project. Let me know if this helps you?

Plugin Development for Android 2.3

I am new to Android and using Android 2.3 .
There is sample Browser plugin in the source code I am trying to build
it but unable to do so.
To compile plugin [ In README.txt ]
run "make SampleBrowserPlugin" (compiles libsampleplugin.so and
builds the apk)
the previous command produces an apk file so record its location.
Using the above steps I am unable to build it.
I have tried the following things :-
I thought to build the code in JNI folder first so as to get the
plugin ".so" so that after getting the ".so" would build the project
apk using the eclipse .
I tried building the code in the JNI folder using NDK build.The code
was not geting build it was giving "undefined reference to
JNIRegisterNativeMethod in JNIHelp.h "
Can anyone tell me how to build the Sample plugin and install it
on Emulator.
You need to "make SampleBrowserPlugin" from the root of your source installation (on a Linux machine). That is, the same directory that contains "bionic", "build", "dalvik", etc. as child directories.

Categories

Resources