user1254836
user1254836

Reputation: 2019

How to start activity as paused or so on

I have Tabview and I want do send data from one to another. Eatch is represent by it´s own activity. I use this to send String[] array to another activity, but i want to stay in first activity. How to?

Bundle b=new Bundle();
        b.putStringArray("key", arr);
        Intent intent=new Intent(this, ActivityTo.class);
        intent.putExtras(b);

This:

    intent.putExtras(b);

Starts new activity. Is posibble to start activity on backround or someting like that so I can stay in my first activity?

Upvotes: 2

Views: 144

Answers (1)

Malcolm
Malcolm

Reputation: 41510

You can use the methods described in the Android Application FAQ. But I think that there's something not right with your design because generally one activity shouldn't depend directly on the instance of another activity.

Upvotes: 3

Related Questions