Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

Add Context.browse(url, newTask: Boolean) #186

Closed
hamen opened this issue May 9, 2016 · 0 comments
Closed

Add Context.browse(url, newTask: Boolean) #186

hamen opened this issue May 9, 2016 · 0 comments

Comments

@hamen
Copy link

hamen commented May 9, 2016

Hi all,
could be useful to add a new method like this

fun Context.browse(url: String): Boolean {

having a second argument to achieve this?

val intent = Intent(Intent.ACTION_VIEW)
intent.data = Uri.parse(url)
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
context.startActivity(intent)
@yanex yanex changed the title [Proposal] Context.browse(url, newTask) Add Context.browse(url, newTask: Boolean) May 10, 2016
@yanex yanex added fixed and removed open labels May 18, 2016
@yanex yanex closed this as completed May 18, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants