Android Open Source - BluetoothSppPro act About






From Project

Back to project page BluetoothSppPro.

License

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.

Java Source Code

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);
        }
    }
}




Java Source Code List

mobi.dzs.android.BLE_SPP_PRO.BaseActivity.java
mobi.dzs.android.BLE_SPP_PRO.BaseCommActivity.java
mobi.dzs.android.BLE_SPP_PRO.actAbout.java
mobi.dzs.android.BLE_SPP_PRO.actByteStream.java
mobi.dzs.android.BLE_SPP_PRO.actCmdLine.java
mobi.dzs.android.BLE_SPP_PRO.actDiscovery.java
mobi.dzs.android.BLE_SPP_PRO.actKeyBoard.java
mobi.dzs.android.BLE_SPP_PRO.actMain.java
mobi.dzs.android.BLE_SPP_PRO.globalPool.java
mobi.dzs.android.bluetooth.BTSerialComm.java
mobi.dzs.android.bluetooth.BluetoothCtrl.java
mobi.dzs.android.bluetooth.BluetoothSppClient.java
mobi.dzs.android.bluetooth.CResourcePV.java
mobi.dzs.android.control.button.ButtonPassListener.java
mobi.dzs.android.control.button.RepeatingButton.java
mobi.dzs.android.storage.CJsonStorage.java
mobi.dzs.android.storage.CKVStorage.java
mobi.dzs.android.storage.CSharedPreferences.java
mobi.dzs.android.util.CHexConver.java
mobi.dzs.android.util.LocalIOTools.java