I have compiled my project with 'ndk-build' and generated the .so file. when run run application it gives error "No implementation found for native".
when I run it in debug mode, it breaks where the native function is called and eclipes shows this screen-
I have checked this -link and some other, all my jni functions name are syncronyed.. but not sure where am I going wrong. please help
Update adding some code snipt
MainActivity.java
package com.example.myproject2;
import java.io.InputStream;
import android.os.Bundle;
import android.os.Environment;
import android.app.Activity;
import android.content.res.AssetFileDescriptor;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FilenameFilter;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.util.ArrayList;
import java.util.HashMap;
public class MainActivity2 extends Activity {
static int bytesize=0;
//public class fRead{
public native int getMyData(short[] shorts,int size);
static {
System.loadLibrary("mylib");
}
..
..
}
mytest.c code
#include "com_example_myproject2_MainActivity.h"
JNIEXPORT jint JAVA_com_example_myproject2_MainActivity2_getMyData(jshortArray shorts,jint byteArrsize){
int a=0;
int i=0;
int avg=0;
return avg;
}