Home > Mobile >  Message. Why get what value the...
Message. Why get what value the...

Time:10-09

Message. What is set to 1, after sendmessage, with a value log for what is right, sleep (300) and then get what value becomes 0... Sleep before plus a few log are 1...
I haven't touched, I also value after the sendmessage, I=1 have no operation, and sendmessage next line is the log
Have bosses know why upload photos always fail...

CodePudding user response:

So you see your messge under the breakpoint debugging. Where is what cost

CodePudding user response:

And the next row is the log after sendmessage?
After the sendmessage not print in handlemessage method?

CodePudding user response:

reference 1st floor usecf response:
so you see your messge under the breakpoint debugging. What values which become

Hello, I put photos in the blink, bosses have a look at it

CodePudding user response:

reference m - 2 floor oj response:
and sendmessage after the next row is the log?
After the sendmessage not print in handlemessage method?

Hello, I put photos in the blink, bosses have a look at it

CodePudding user response:

reference 4 floor sinat_40101149 response:
Quote: refer to the second floor m - oj response:
and sendmessage after the next row is the log?
After the sendmessage not print in handlemessage method?

Hello, I put photos in the blink, bosses have a look at it

Why did you do after you sendMessage print this value? Because the Message is reusable, after a brief pause, you may have this Message object is recovery and reuse, normal is you want to sendMessage to get a Message object,

CodePudding user response:

https://www.jianshu.com/p/219701879fe4

CodePudding user response:

reference m - 5 floor oj response:
Quote: refer to 4th floor sinat_40101149 response:

Quote: refer to the second floor m - oj response:
and sendmessage after the next row is the log?
After the sendmessage not print in handlemessage method?

Hello, I put photos in the blink, bosses have a look at it

Why did you do after you sendMessage print this value? Because the Message is reusable, after a brief pause, you may have this Message object is recovery and reuse, normal is you want to sendMessage to get a Message object,

Didn't assign the message will be recycled? Del (T T) because I am in the final to determine the value of the message loop, is I can't put between the send and determine the sleep? I'm setting up a variable is to solve the problem del (T T) but feel good magic

CodePudding user response:

Don't judge what value in handleMessage?


Handler myHandler=new Handler () {
Public void handleMessage (Message MSG) {
The switch (MSG. What) {
Case 1:

break;
}
}
};

CodePudding user response:

refer to the eighth floor ink_s response:
isn't in handleMessage judge what value?


Handler myHandler=new Handler () {
Public void handleMessage (Message MSG) {
The switch (MSG. What) {
Case 1:

break;
}
}
};

There is right, but behind is used, the value is wrong

CodePudding user response:

references 9 f sinat_40101149 response:
Quote: refer to the eighth floor ink_s response:
isn't in handleMessage judge what value?


Handler myHandler=new Handler () {
Public void handleMessage (Message MSG) {
The switch (MSG. What) {
Case 1:

break;
}
}
};

There is right, but behind is used, the value is wrong


Recycle it, become the default value of 0, you build a variable to hold
  • Related