Savage F. Morgan

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2013年1月29日

摘要: Sometimes we need to define global variables accesible from inside our android application to hold some shared values.Simplest way to implement this is to subclass Android.app.Application class and define static variables that will hold our data.Inside your Android project, create class called for e 阅读全文
posted @ 2013-01-29 18:17 罗斯摩根 阅读(662) 评论(0) 推荐(0) 编辑

摘要: Posted on March 8, 2012 by Ram KulkarniIn one of my Android application, I was storing some data in a static member variable. After few hours of inactivity, when I used to open the application, I would see that all the data I had stored in the static member variable was gone.I know about the Android 阅读全文
posted @ 2013-01-29 17:55 罗斯摩根 阅读(356) 评论(0) 推荐(0) 编辑

摘要: Do all the Activities and Services of an application run in a single process?All Activities and Services in an application run in a single process by default. If needed, you can declare an android:process attribute in your manifest file, to explicitly place a component (Activity/Service) in another 阅读全文
posted @ 2013-01-29 16:40 罗斯摩根 阅读(467) 评论(0) 推荐(0) 编辑