我设置一个Android程序=。 然而,当新的活动/进程init,它会调用我的应用程序:的onCreate(),其中包含了一些应用程序级初始化
I set an Android:process=":XX" for my particular activity to make it run in a separate process. However when the new activity/process init, it will call my Application:onCreate() which contains some application level initialization.
我想避免重复初始化通过检查当前进程名。
I'm thinking of avoiding duplication initialization by checking current process name.
那么,有没有一个API可用?
So is there an API available?
感谢。
如果我正确地理解你的问题,你应该能够使用的 ActivityManager ,按this螺纹。
If I've understood your question correctly, you should be able to use ActivityManager, as per this thread.
上一篇:Facebook的登录API 4.0:登录时Profile.getCurrentProfile空API、Facebook、getCurrentProfile、Profile
下一篇:Android SDK的位置尚未成立于preferences在64位Windows成立于、位置、SDK、Android