Back to project page android-binarual-beats-generator.
The source code is released under:
GNU General Public License
If you think the Android project android-binarual-beats-generator listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/******************************************************************************* * Copyright (c) 2010 Robert Bermani./* w ww. j a va2 s. com*/ * All rights reserved. This program and its accompanying materials * are made available under the terms of the GNU Public License v3.0 * which is included with this distribution and is available at * http://www.gnu.org/licenses/gpl.html * * Contributors: * Robert Bermani - initial API and implementation ******************************************************************************/ package rbermani.android.binaural; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import com.admob.android.ads.AdManager; import com.admob.android.ads.AdView; import android.app.Activity; import android.os.Bundle; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.EditText; import android.widget.ImageButton; import android.widget.LinearLayout; import android.widget.Spinner; import android.widget.TextView; public class AboutActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.about); TextView aboutTxt = (TextView) findViewById(R.id.txtAboutMatter); aboutTxt.setText(readText()); } private String readText(){ InputStream inputStream = getResources().openRawResource(R.raw.about); ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); int i; try { i = inputStream.read(); while (i != -1) { byteArrayOutputStream.write(i); i = inputStream.read(); } inputStream.close(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } return byteArrayOutputStream.toString(); } }