Back to project page openmbta-android.
The source code is released under:
Copyright (c) 2014 Kaja Software Corporation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal...
If you think the Android project openmbta-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.kaja.openmbta; //w w w .j ava2 s. c o m import android.webkit.WebView; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.widget.SimpleCursorAdapter; import android.widget.AdapterView.OnItemClickListener; public class WebViewer extends Activity { private String ext_URL; private String ext_title; /** Called when the activity is first created. */ @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.webview); ext_URL = "http://openmbta.org/mobile"; Bundle extras = getIntent().getExtras(); if (extras !=null){ ext_URL = extras.getString("sURL"); ext_title = extras.getString("sTitle"); } setTitle(ext_title); WebView webview = (WebView) findViewById(R.id.webview); webview.loadUrl(ext_URL); } }