2013年9月18日星期三

[Android] Posting on forums there is a problem serious contempt

Forum posting , I have a word a word Qiaowan posting content. But this time I did not have a post Results posted .
Click on the posting time , unable to go , this time I am ready to put all the content you want to send posts removed .

1, I have no statement posted message , not because someone gives the answer without knot stickers
2, if the forum to post bears had finished , you can post messages , then you tips on tips that I unable opinions unable to go . Why must I post content Qingdiao it ? I knocked a word for word content is not easy ! ! ! !
3, if you have to clear the message content , why not see any place suggest that this action will result in the removal .
4, if this is a BUG, he should be there for a long time now , much earlier I have encountered this problem, but now there is actually .
5, this is the case , a very serious impact on mood , ah, this is too pit father had it .

encountered this problem brothers more, must be jacked up .

Finally, I still put my problems say something,
JNI call JAVA layer method .
/ / JAVA
public class JNITest
{
public static native void Test (TestInterface testInterface);
public interface TestInterface {
public void DoTest ();
}
}
JNITest.Test (new TestInterface () {
public void DoTest () {
}
})
I was going to call JNITest.Test pass an object, and then pass this object to the callback DoTest approach.
/ / JNI
I got a problem when TestInterface .
1, when you can get if you use GetObjectClass TestInterface of jclass, also DoTest callback method, but I Multithreading is a problem . I have two threads are calling JNITest.Test, but only one can DoTest the callback . Another one is the callback unsuccessful .
2, I now want to use to get TestInterface FindClass the jclass, but I tried a lot of methods are empty , all said no class.
(* env) -> FindClass (env, "Lcom / test / JNITest / TestInterface;");
(* env) -> FindClass (env, "Lcom / test / JNITest $ TestInterface;");
(* env) -> FindClass (env, "com / test / JNITest / TestInterface");
(* env) -> FindClass (env, "com / test / JNITest $ TestInterface");
FindClass not in the main thread which calls should be and this does not matter. Just check the next $ subclass is used to find that the interface objects to find what it ?
If the class should also get his first question there is more than one thread callback issue.
hand and struck the code may have to write questions , wish to express clearly.
------ Solution ---------------------------------------- ----
posts are open to create a page that prompted instead of clicking when posting prompted . .
Could you delay too much ?
------ eference --------------------------------------- < br> I really pops up when clicking submit reply came. My network is normal, I generally take a look into the forums are those posts I did not end , then go get it. Out again posting . . . This really is CSDN the BUG. But not one hundred percent occur .

I have this problem . I have solved . . Written in C language should be used JNI calls FindClass
(* env) -> FindClass (env, "com / test / JNITest $ TestInterface");
else is not available.
then multithreading following words , it can save a global jclss can directly use.
My reason for this problem is that a call was successful is due to an unsuccessful call , I had to write a canSend inside the interface function , then I deleted , and then I GetMethodID corresponding JNI inside but forgot to delete the . . Resulting in such a BUG. Specifically for what reason is unclear.

没有评论:

发表评论