Sharing an object between activities

前端 未结 2 1087
旧时难觅i
旧时难觅i 2021-01-02 14:53

I have a Weather app with four Activities. The main/launcher activity is \'invisible\' using...

android:theme=\"@android:style/Theme.Translucent.NoTitleBar\"`

<
2条回答
  •  爱一瞬间的悲伤
    2021-01-02 15:39

    Well, your question has been answered, but it seems like it would be much simpler to instantiate your WeatherHelper object in the onCreate() of the Activity that has the launcher intent, and make the WeatherHelper static.

提交回复
热议问题