Android Open Source - infinite-grid Web View Activity






From Project

Back to project page infinite-grid.

License

The source code is released under:

Apache License

If you think the Android project infinite-grid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package webview;
/*from w w w . jav a  2  s  . c  om*/
import com.appliedideas.infinitegrid.R;
import com.kennethmaffei.infinitegrid.Constants;

import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;

/**
 * After clicking a tile, we open up a webview
 * 
 * @author Kenneth Maffei
 *
 */
public class WebViewActivity extends Activity {
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    
    setContentView(R.layout.webview_layout);
    
    final View mainView = findViewById(android.R.id.content);
    mainView.setBackgroundColor(Color.TRANSPARENT);
    
    //Get the url we are going to through the bundle
    Bundle bundle = getIntent().getExtras();
    String url = bundle.getString(Constants.WEBVIEW_INTENT_URL);
    WebView wv = (WebView) findViewById(R.id.webView1);  
    wv.loadUrl(url);
  }
}




Java Source Code List

com.kennethmaffei.infinitegrid.Constants.java
com.kennethmaffei.infinitegrid.HTTPCommManager.java
com.kennethmaffei.infinitegrid.HTTPRequest.java
com.kennethmaffei.infinitegrid.MainActivity.java
com.kennethmaffei.infinitegrid.MainView.java
com.kennethmaffei.infinitegrid.RecordDescriptor.java
com.kennethmaffei.infinitegrid.TaskFragment.java
com.kennethmaffei.infinitegrid.Tile.java
com.kennethmaffei.infinitegrid.Tiles.java
disklrucache.DiskLruCache.java
disklrucache.DiskLruOperations.java
disklrucache.StrictLineReader.java
disklrucache.Util.java
webview.WebViewActivity.java