English 中文(简体)
会话的变数是什么?
原标题:What is session variable in android java? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers.

想要改进这个问题吗? 更新问题,使其只关注一个问题

Closed 8 years ago.

我是自我学习和机器人和java的自我学习者。 在和机器人的java中,是否有可用的会话变量? 如果有的话,请告诉我其目的和过程。 如果可能的话,请用样本告诉我。

谢谢你的宝贵时间!

最佳回答
问题回答

为何您需要它。。在应用程序启动时,有应用程序变量可以初始化。您也可以将单吨级设定为先菜。

在会话中没有存储值的 spi 可用, 相反您可以使用 < a href=" http:// developmenter.android.com/ reference/android/content/ sharedPreferences.html" rel=“ nofollow” >SharedPreference , 或者可以使用静态变量存储您想要在会话中保存的值 。

使用共享首选项 。

您可以找到一个 < a href=>", http://www.tutominalspoint.com/android/android_Adroid_Adroid_Adroid_previews.htm" rel= "not follow noreferrer" >example 。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签