阅读背景:

如何在意图之间传递布尔值

来源:互联网 

I need to pass a boolean value to and intent and back again when the back button is pressed. The goal is to set the boolean and use a conditional to prevent multiple launches of a new intent when an onShake event is detected. I would use SharedPreferences, but it seems it does not play nice with my onClick code and I'm not sure how to fix that. Any suggestions would be appreciated!I need to pass a boolean value to and intent an




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: