Back to project page sthlmtraveling.
The source code is released under:
Apache License
If you think the Android project sthlmtraveling 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.markupartist.sthlmtraveling; /*from w ww. j ava2 s. c om*/ import android.os.Bundle; import android.widget.TextView; import com.google.android.gms.common.GooglePlayServicesUtil; import java.io.IOException; import java.io.InputStream; public class AboutActivity extends BaseActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.legal); TextView webView = (TextView) findViewById(R.id.legal_notice); String about = getString(R.string.about_this_app); String legal = ""; try { InputStream is = getAssets().open("legal.html"); int size = is.available(); byte[] buffer = new byte[size]; is.read(buffer); is.close(); legal += new String(buffer); } catch (IOException e) { ; } String licenseInfo = GooglePlayServicesUtil.getOpenSourceSoftwareLicenseInfo(this); about += legal += licenseInfo; webView.setText(about); } }