Back to project page CrossOutXtreme.
The source code is released under:
Copyright (c) 2014, Matthew Koontz All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: ...
If you think the Android project CrossOutXtreme 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.crossoutxtrem; //from w ww .j a v a 2 s. c o m import com.crossoutxtrem.R; import java.io.InputStreamReader; import android.os.Bundle; import android.app.Activity; import android.widget.TextView; public class About extends Activity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.about); loadLicense(); } private void loadLicense() { StringBuilder sb = new StringBuilder(1024); InputStreamReader reader = null; try { reader = new InputStreamReader(getResources().openRawResource(R.raw.license)); while(reader.ready()) sb.append((char)reader.read()); } catch (Exception ex) {} finally { try { if (reader != null) reader.close(); } catch (Exception ex) {} } TextView licenseView = (TextView) findViewById(R.id.textView2); licenseView.setText(sb.toString()); } }