Seshu Vinay
Seshu Vinay

Reputation: 13588

Come back to same activity after using ACTION_VIEW android

I used following code to post a tweet on twitter.

 String tweetUrl = "https://twitter.com/intent/tweet?text="+"Text to be posted".replace(" ", "%20")
                            + " https://www.someurl.com";
                    Uri uri = Uri.parse(tweetUrl);

                startActivity(new Intent(Intent.ACTION_VIEW, uri));

It's working fine. But the problem is it stays back in the same page after the tweet is posted. How can i redirect back to same activity after tweet is sent?

Upvotes: 2

Views: 1116

Answers (1)

Lalit Poptani
Lalit Poptani

Reputation: 67286

Launch Mode should Help you out here. So, try to read this blog to get better idea.

Upvotes: 1

Related Questions