On Sun, Jun 19, 2011 at 11:05 PM, Hitendrasinh Gohil <
[email protected]> wrote:

> Like i am calling one activity from other and finishing the current
> activity.
>
> startActivity(intent);
> finish();
>

Why?


> But if i finish activity the i have to manage back functionality by putting
> some values to intent.
>

Then don't finish the current activity.


> If i am not going to finish the activity than is there any performance
> or memory related issues.
>

No, the system will kill your inactive activities if need be. Just make sure
to handle the lifecycle methods correctly.


> when we should call startActivityForResult?
>

When you're starting an activity and need a result ...

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to