Back to project page BluetoothSppPro.
The source code is released under:
Apache License
If you think the Android project BluetoothSppPro 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 mobi.dzs.android.BLE_SPP_PRO; // ww w. ja va 2s .co m import android.app.Activity; import android.os.Bundle; import android.view.MenuItem; import android.widget.TextView; public class actAbout extends BaseActivity{ private TextView mtvShow = null; /** * ?????? * */ @Override protected void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); setContentView(R.layout.act_about); this.enabledBack(); //?????? this.mtvShow = (TextView)this.findViewById(R.id.actAbout_tv_show); if (this.getString(R.string.language).toString().equals("zh-rCN")) this.mtvShow.setText(this.getStringFormRawFile(R.raw.about_cn) +"\n\n"); else if (this.getString(R.string.language).toString().equals("zh-rTW")) this.mtvShow.setText(this.getStringFormRawFile(R.raw.about_tw) +"\n\n"); else this.mtvShow.setText(this.getStringFormRawFile(R.raw.about_en) +"\n"); } /** * ???????????????? * */ @Override public boolean onMenuItemSelected(int featureId, MenuItem item) { switch(item.getItemId()) { case android.R.id.home: this.setResult(Activity.RESULT_CANCELED); //???????? this.finish(); return true; default: return super.onMenuItemSelected(featureId, item); } } }