English 中文(简体)
1. 在安乐斯启动一项活动,不必从悬 to中重载
原标题:Opening an activity in Android without having to Reload it from scratch

我很想知道。 如果存在一种办法,我们就能够回到原先装满负荷的活动,而不必从零头重载其内容。 由于我的申请从一个网站下载内容,我不想每次下载内容,而只是明确提到。

最佳回答

http://www.un.org/Depts/DGACM/index_french.htm 活动, 您将在方法<条码>上对该项活动作出说明。

EDIT:

                Intent intent = new Intent(this,SecondActivity.class);
                startActivityForResult(intent, RESULT_OK);

以及

public void onActivityResult(int requestCode, int resultCode, Intent data) {
    if (resultCode == RESULT_OK) {
       // When you are back from second Activity you are l以及here ..
       // do what ever you want to, without re Creating the this Activity 
    }
}
问题回答

活动直到我们完成,或完成。 您可使用roid状物的后功能。

Activity.this.dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_BACK));

On click of user defined back button . This code will act same as back functionality of device back button.

And yes don not start activity or finish activity or set flag while moving between activities , that can change your result a lot





相关问题
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 ...

热门标签