English 中文(简体)
B. 在Button电力公司受到压力后控制申请并返回申请人
原标题:Controlling the Application when the Power Button is pressed and returning to the App
  • 时间:2011-11-02 12:31:07
  •  标签:
  • android

我已经看到,在我的电话(电离层)上,我的工作完全是罚款的。 当我发布电纽吨和回复数据时,还没有重新开始。

一名用户向我发出一项请求,即当他们点击电纽顿(德尔塔克)并返回正在收集的数据时,就会重新开始。

如果 back子受到压力,我已经将数据从物体中删除。

当有人要求权力保存数据时,你怎么做? 当用户返回到评估时,我需要怎样做。

感谢您的时间

最佳回答

Most likely your activity is being killed whilst in the background. I imagine the Dell Streak is more prone to this as its an older device compared to the HD and probably has less RAM, im not sure how much any Dell customization takes up though (if any).

也许,你会想听取电纽顿新闻的具体内容,而是要在活动的适当逻辑上hoo笑:lifeizer/a>,特别是在活动产生和销毁时,而不是停止和继续使用的方法。

正在重新确定哪些数据? 这些数据是否得到恢复? 解决这一问题有若干办法。

一种是保护国在销毁活动时的责任,见http://developer.android.com/vis/android/app/Actative.html#onSaveInstanceState%28android.os.Bundle%29”rel=“nofollow”>。

here,涉及远方数据方面的更多信息,其中包括数据库和共有的预fs,它们是在onSaveInstanceState(>上两个替代应用状态的(或在某些情况下是国)。 这确实取决于你正在做些什么:

另外,是否在这种活动生命周期方法(如Create(Create))中启动了远程数据收集行动? 如果是的话,你的评估可能有一个更好的结构,例如,如果生命周期方法仅仅引发有条件的、基于时间的复健请求,这种复健要求载于<条码>的服务<>/代码>(在背景中也不太可能被杀),那么,这种要求将只是更新一些模型数据(在肉体或数据库中支持),以便国际调查小组能够从中居住,但也具有其持续的优势,以便在你被杀害时,对用户透明!

希望这一帮助。

EDIT:即,如果你在 back子受到压力时拯救国家,并利用这一被挽救的国家在重新占领时或根据《经济法》重新建立统一的国家,如果把活动置于除要求重新登顿之外的其他行动的背景(但不会被杀死),那么你是否可能只是完全清除了这个国家,因为你所挽救的国家目标将是空白/无效/含有缺省价值观? 如果是这样,上述办法仍然可以重新确定。

问题回答

You will probably want to override your activity s onPause() and onResume() methods.





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签