David Kalia
David Kalia

Reputation: 79

android load webView in background and don't show gui

I added the web view in my Android app. I want to load it in background when my application starts.

Intent intent = new Intent(this, b.class);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);

Upvotes: 2

Views: 552

Answers (1)

vipul mittal
vipul mittal

Reputation: 17401

Try setting the visibility to invisible.

As in load your url into web view but don't show it.

Upvotes: 1

Related Questions