コード例 #1
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.legal);

    TextView legal = (TextView) findViewById(R.id.legal);

    legal.setText(GooglePlayServicesUtil.getOpenSourceSoftwareLicenseInfo(this));
  }
コード例 #2
0
 public boolean onOptionsItemSelected(MenuItem item) {
   // Handle item selection
   switch (item.getItemId()) {
     case R.id.menu_settings:
       Log.e("LO", "Cliccato Menu impostazioni");
       GooglePlayServicesUtil.getOpenSourceSoftwareLicenseInfo(this);
       return true;
     default:
       return super.onOptionsItemSelected(item);
   }
 }