问题描述
我有一个简单的应用程序如果手机连接到WIFI,3G或具有GPS功能的它显示。现在,我想更新我的应用程序,当用户进入顶部滑动菜单和启用/禁用这三种语言。
目前,一切都在做的onCreate()和它的作品很好,但我必须重新启动应用程序看到的变化。
哪一种方法,我应该为了获取应用程序显示更新后的数据即致电(插入)我不知道是什么状态的应用程序是当滑动菜单拖在它的上面英寸
谢谢
I have a simple app which displays if the phone is connected to Wifi, 3G or has GPS enabled. Now, I want to update my app when the user goes to the top sliding menu and enables/disables any of those three.Currently, everything is done on onCreate() and it works well, but I have to restart the app to see the changes.Which method should I call (Override) in order to get the app show the updated data i.e. I have no idea what state the app is in when the sliding menu is dragged on top of it.Thanks
推荐答案
在除了萨姆斯答案,你正在寻找你的问题最有可能的方法是的
In addition to Sams answer and your question most probable method you are looking for is the onResume() method.
@Override
public void onResume(){
}
这篇关于Android的 - 活动状态时,顶部滑动菜单的拖累?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!