rr rrrrrr
asked on
passing java object to c through jni
public class DemoStructurepass {
public int a;
public int b;
public int c;
public int d;
}
public class MainActivity extends Activity {
test clsObj ;
DemoStructurepass dss;
long iS;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstan ceState);
setContentView(R.layout.ac tivity_mai n);
dss = new DemoStructurepass();
clsObj = new test();
iS = clsObj.functionAddcheck(ds s);
// public native long functionAddcheck(DemoStruc turepass dss);
}
}
Now I need to access the DemoStructurepass structure in JNI(C)
public int a;
public int b;
public int c;
public int d;
}
public class MainActivity extends Activity {
test clsObj ;
DemoStructurepass dss;
long iS;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstan
setContentView(R.layout.ac
dss = new DemoStructurepass();
clsObj = new test();
iS = clsObj.functionAddcheck(ds
// public native long functionAddcheck(DemoStruc
}
}
Now I need to access the DemoStructurepass structure in JNI(C)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I have recommended this question be closed as follows:
Accept: dpearson (https:#a41866314)
If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.
frankhelk
Experts-Exchange Cleanup Volunteer