我是一个新鲜的学习机器人之家。当我读到startActivityForResult()startActivity()方法,我困惑与方法,其中地方使用。所以好心的人的细节很清楚。
I am a fresher learning Android from home. When I read startActivityForResult() startActivity() methods i confused with which method to be used in which place. so kindly anyone detail it clearly.
开始活动,就像你启动应用程序:比如:你有一个主屏和用户信息界面的应用程序:如果您preSS用户信息按钮,启动用户自信息活动与此有关。
Start an activity, like you would start an application: for instance: you have an app with a home-screen and a user-info screen: if you press the user-info button, you start the user-info activity with this.
开始活动,并期望有所回报。例如,你的用户信息屏上,你可以上传个人资料图片。开始时你有明确的目标,获得一个URI回来的preferred图片画廊活动。你开始这个活动literaly以获得结果(图片。有一些techinical的方式,以确保你真正得到的结果,但他们在手册中很清楚的。
Start an activity and expect something in return. For instance, on your user-info screen, you can upload a profile picture. You start the gallery-activity with the explicit goal to get a URI back with the preferred picture. You start this activity literaly to obtain a result (the picture. There are some techinical ways to make sure you actually get the result, but they are quite clear in the manual.
上一篇:在Activity.finish()与AsyncTask的还在后台运行,会发生什么?还在、后台、发生、Activity
下一篇:安卓4.4.X:taskAffinity和放大器; launchmode与活动的生命周期放大器、生命周期、taskAffinity、launchmode