android - How to create a Java object in C++ using JNI? -


this question has answer here:

i want initialize sip connection using native android api , qt android extras (jni) , qt. if programming in java, create sipprofile object start connection in jni (as know) can execute methods in classes.

can create object of type of java class? have this?

does qandroidjniobject me?

this class reference: http://developer.android.com/reference/android/net/sip/sipprofile.html

sample code:

public sipprofile msipprofile = null; ...  sipprofile.builder builder = new sipprofile.builder(username, domain); builder.setpassword(password); msipprofile = builder.build(); 

sample reference: http://developer.android.com/guide/topics/connectivity/sip.html

update: i'm not using jni itself. i'm using "qt android extras".

i used know how this. please forgive me if answer incorrect. hope gets started.

you jni handle constructor want run. allocate/create jobject , run constructor on it.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -