|
现碰到的问题如下:
public class MeiaPush {
public native int meia_push_init ();
public native int meia_push_set_client_info (String cid, String pwd, String type, String token);
public native int meia_push_get_alarmlist (Object param, int count);
public native int meia_push_exit ();
public int MeiaPushInit ()
{
Log.e ("Yan", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
meia_push_init ();
return meia_push_set_client_info ("00000000001", "123456", "android", "yan_yan");
}
}
JNI层也实现了。 |
|
|
现在问题已解决。 要结帖了, 回复有分哟!
解决方式如下: 只在非Service类中加载是不行的。 |
|
| 100分 |
顶你,这个是正解
|