The tag has no wiki summary.

learn more… | top users | synonyms

3
votes
1answer
770 views

Application crash with android 4.0 or higher version

I am working on a app, where I will use android NDK & JNI. Whenever I run my app on any android 4.0 or higher version... my app will crash and gives the following error... A/libc(18556): Fatal ...
1
vote
1answer
254 views

Java crash when exit application: A fatal error has been detected by the Java Runtime Environment:

I have a Java application to drive a motor. The driver of the motor has been written in C++ with the Microsoft Visual Studio. I import (native code) this dll. The Java application runs without ...
1
vote
1answer
142 views

Java JITC native code generation/execution example?

I'm trying to understand 'native code generation and execution' part of Java JITC, but having a hard time visualizing exactly what happens. E.g. say I have the following class: class Foo { ...
1
vote
1answer
649 views

How to implement the flood-fill algorithm in android?

How to implement the Flood-fill algorithm in android.But the code was written in c language.could we implement the algorithm in android.is there any open source code available or any website tutorial ...
1
vote
1answer
634 views

how to Open New class from javascript page using android phonegap

I'm using phonegap and i cant extend it to activity for the class intiating so i need to extend it to droidgap only but i want one button should keep in the page to move on to next class where i can ...
1
vote
1answer
326 views

Using resource string table in unmanaged dll from managed code

I have an unmanaged MFC application. I have written a CLI wrapper for the application and converted into a DLL. The unamanged code has string table resources that is used to display messages here and ...
1
vote
1answer
744 views

Can't find PInvoke DLL on Windows Mobile

I am working on Windows Mobile application. Whenever I download some sample which is using wrapper around native code (using DllImport), it always gives "Can't find PInvoke DLL" error. I am using VS ...
0
votes
1answer
44 views

From DLL to java classes

I have dll file which is controlling a device, I need a tool to generate java classes which take the dll file as an input and generate all the need JNI classes. Note: I don't have the C,C++ code for ...
0
votes
1answer
230 views

Augmented Reality in windows phone use phonegap

I want to use augmented reality! But phonegap plugins don't exist (I have not found.)! =( Does anyone else with this problem? Possible as that can switch between projects in the application (with ...
0
votes
1answer
100 views

“DLLNotFoundException”?

I'm trying to import a native DLL made in C++ to C#. I'm having a little problem. Here is my C# code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using ...
0
votes
1answer
42 views

Android native code raises a SIGILL fault on the emulator when using -march=armv6 option

I am trying Android NDK sample bitmap-plasma. I have added to the Android.mk the line LOCAL_CFLAGS := -march=armv6 but i get a SIGILL fault when running it on the emulator. Otherwise, it works. ...
2
votes
0answers
657 views

Call Native Android Java Code from HTML5/JavaScript using PhoneGap Plugins (and implement async callbacks)

I want to get web service data using java and pass it to index.html file using java script I have a web service that return xml format data. i want to create android app using phone gap. and use this ...
1
vote
0answers
148 views

android speech recognition using native code

Is there a way to access speech recognition in Android in native code? From the material that I have referred I understand that Android either provides a Recognizer intent that has to be fired to ...
1
vote
0answers
55 views

Embedding native code in webapps on multiple platforms/browsers

I'm thinking of embedding native code (primarily for numerical computations) in a web application. Currently I'm aware of the following technologies for accessing native code from javascript: ...
1
vote
0answers
262 views

how to back trace in android native code

My Apk is receiving a sig_stop at epoll_wait. I am unable to figure out the part of code that is calling this. I know this is a part of libc.It tells me the line number for this epoll_wait . when I ...
1
vote
0answers
128 views

Notification in Tizen

How can i get the list of notifications occurring on the tizen device in a native c code? I am writing a native c code which will run on the tizen device, and the list of notifications need to be ...
1
vote
0answers
196 views

Is there support to compression or decompress .xz files in LZMA?

1) I want to write a decompression codec for hadoop which can decompress .xz files with lzma2. 2) I come to know that LZMA2 compression library supports .xz format. 3) But recently I came across a ...
1
vote
0answers
445 views

Parameter Passing Between Android and JNI

I'm dealing with the parameter passing between an Android Application with OpenCV and the JNI. Using the OpenCV libraries in Java I have something like this in the Android app code. Android OpenCV ...
1
vote
0answers
378 views

Native extension .node in Windows to NodeJS

I built a .node extension in Windows using the following code (addon.node): #include "v8.h" #include "node.h" extern "C" void NODE_EXTERN init (Handle<Object> target) { HandleScope ...
1
vote
0answers
273 views

Why is my char* getting cutoff at 256 characters between C# -> C++

I have to call an external library that is using some non-standard types, so I've created a C++ wrapper around this external library. To try to save some pain I've setup on of the arguments as a ...
1
vote
0answers
255 views

How to indicate to Visual studio where third party dll source code is?

I am writing a C++/CLI for a C library. I have the source code of the library. When I launch a debug session, I can't step into the C dll, VS says that the source code is not available. So how do I ...
1
vote
0answers
812 views

Sound Analysis/Editing in Android

I'd like to know how difficult it is to analyze and edit sound in android. My project would be a kind of DJ application. I think AudioTrack is the most appropriate library, right ? How does the few ...
0
votes
0answers
20 views

Debugging Andoid Native project

I am trying to debug my Android project having native c++ code using ndk-gdb in eclipse. I am able to build an install the application on device without error. But while debugging the gdb debugger ...
0
votes
0answers
15 views

Building Android App with native opencv code using ndk-build

I am building an android application in which some of the modules are implemented in native c++ using opencv library.Though my ndk is properly installed and some of the samples opencv projects are ...
0
votes
0answers
23 views

NDK OpenSL ES, seamless looping sounds using URI (non buffer) player

In an effort to get a seamless loop using OpenSL ES's URI player, I tried running the code, taken from this question (which queries the length of the audio): SLmillisecond msec; result = ...
0
votes
0answers
21 views

Message passing between native c++ static and Windows phone runtime

I have static library functions invoked from wp Runtime, but i cannot return values to Runtime or is there some other way to pass messages between runtime and static libs. Thanks in advance
0
votes
0answers
54 views

Wrong orientation of JavaCameraView

I have developed an Android app that, using opencv libraries, opens a video stream and captures frames from it. The problem is that the orientation of the application is portrait, and this allows me ...
0
votes
0answers
36 views

Umanaged C++ code call from managed C++

I have linked an unmanaged C++ DLL to managed C++ code. The problem is that one of the functions takes as argument an CStdioFile variable. I could not find a way to marshal this type to an managed ...
0
votes
0answers
106 views

NativeCameraView and heap-memory-corruption error

Good morning to all. I am trying to develop an Android app that can use native camera, through OpenCV, to record a video in order to capture frames to process them with image processing techniques. ...
0
votes
0answers
79 views

NativeCameraView in OpenCV4Android not working

Good morning to all. I have tried to create a simple application for Android that uses opencv4android. This app simply should access through opencv to camera, and captures frames. I have followed this ...
0
votes
0answers
24 views

Curl command line short script at Android

I wrote a short script that sends the value to the page, and then gets all site at string but now I have a little problem in converting to run on android OS. I'm not sure it's a good idea to use the ...
0
votes
0answers
28 views

LNK2005 error from my MFC / CLI project ( Native and Managed Code)

I have a project from the MFC/C++ VS2010, but I need to use ".NET Library" inside of my project. Actually I need to have a native and manged code at same time. So I am trying to use CLI/C++ facilities ...
0
votes
0answers
88 views

Java crash troubleshooting

I'm working with a structure that allows me to run AHK code in java, I've been getting an error after about 3-5 minutes after starting. I'm wondering if anyone has any suggestions of where I should ...
0
votes
0answers
128 views

JNI call on return, restarts the calling Android Activity

I am stuck at a strange problem, pretty strange!! Problem : In the following project, a native method is called from java android using JNI call. Whenever the native method returns, the android ...
0
votes
0answers
44 views

Android - Native code trigger a SIGILL only on emulator

My app is triggering a SIGILL fault only when i run it on the emulator. The app is using ActionBarSherlock and the minimum SDK target is API level 8. The fault is triggered when native code is ...
0
votes
0answers
101 views

Replacing old COBOL DB2 SP with Native SQL - convert sqlcode to character?

I am replacing some old COBOL DB2 stored procedures with Native SQL stored procedures. But the modules calling these old stored procedures were getting SQL returned as character fields. I tried a ...
0
votes
0answers
257 views

Android project imported in Eclipse: built App crashes

I have a project's source code I want to use/access from the App I'm developing. It's a FFmpeg port to Android: http://roman10.net/src/affmpeg.zip This App is available on Play, and works if ...
0
votes
0answers
31 views

Signing JInput to be used in an applet in a web browser

My friends and I are creating a game for the Jam this weekend, and we have most of it done, but we are trying to put the applet in the web browser, but we can't load jInput because it requires native ...
0
votes
0answers
136 views

Definition and the java.library.path installation in Solaris

I wrote this Java hadoop program which will execute parallel indexation of files.The file was created in eclipse package org.myorg; import java.io.*; import java.util.*; import ...
0
votes
0answers
66 views

how to use an external .so file on project deployed on jboss5 in Linux environment?

I have a java project & war deployed on jboss 5.0 in Linux environment. working well. It has a functionality to validate entered address & we are using stored proc for this. Now i have to ...
0
votes
0answers
80 views

Loading view from C++ Programatically Android

I just started with Android Native programming. I was able to get NDK's samples working from Eclipse and all, even other samples from other SDK's like PowerVR. One thing I noticed tough in all those ...
0
votes
0answers
67 views

how to return a FASTfeatureDescriptor Mat from the native code to Java

I tried this version of tutorial4_Sample4View_FindFeatures to return a FASTfeatureDescriptor Mat from the native code to Java? : Returning Mat object from native code to java in OpenCV , but there was ...
0
votes
0answers
175 views

error while loading native dll from inside jar file

I have a situation where I need to package a native dll inside an executable jar. I can't deploy it to the filesystem, so in order to load it I'm attempting to stream it to a temp file and load that. ...
0
votes
0answers
227 views

Android C/C++ native calls Java APIs

There are lots of examples that Android C/C++ native calls Java APIs. However, all of these examples I have read are the Android Java APIs call native first and then the native calls other Java APIs ...
0
votes
0answers
85 views

How to determine if apk has native code

I am running code in x86-Android emulator and currently and my build doesn't support Native Code. Is there an easy way to determine if an APK has native code or not?? Thanks!
0
votes
0answers
135 views

How to create audio chat application using java native api and C

I want to develop an web application that required live streaming of audio in java... I want to use java native API to access the mic...like C/C++ can access microphone... how can i get output(audio ...
0
votes
0answers
24 views

Are native code mobile apps only workable on one kind of CPU?

"Skinning out" native code apps with Java interfaces might not be so smart . . . I'd expect different CPUs - or at least CPUs of different manufacturers - to have different machine code instruction ...
0
votes
0answers
145 views

Is there any way to rebuild the Dalvik interpreter and run it without invoicing a full VM?

I want to rebuild the Dalvik interpreter to add some security features to protect my code. Is there any way to run only a Dalvik interpreter without invoking a full Dalvik virtual machine?
0
votes
0answers
66 views

CObject pointer is initialized null when call

When I call a code CObject *ptr; From managed code through interop the CObject pointer is initialized with NULL or undefined value. However when I execute it in native code itself, it is getting ...
0
votes
0answers
3k views

C# audio recording using winmm.dll native code

Please let me know how could i record and save audio file to my hard drive by using c# code. I already downloaded code from one of the technical web page. That may be i don't know enough that it can ...

1 2