(Android) Add missing rombrowser.java

This commit is contained in:
Twinaphex 2012-06-19 07:50:04 +02:00
parent 9404548080
commit b07f73d302

View File

@ -0,0 +1,45 @@
package com.retroarch;
import com.retroarch.R.layout;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.widget.Toast;
public class rombrowser extends Activity {
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.rombrowser);
}
public boolean onCreateOptionsMenu(Menu menu)
{
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.main_menu, menu);
return true;
}
public boolean onOptionsItemSelected(MenuItem item)
{
switch (item.getItemId())
{
case R.id.main:
this.finish();
break;
case R.id.open:
break;
default:
Toast.makeText(this, "MenuItem " + item.getTitle() + " selected.", Toast.LENGTH_SHORT).show();
break;
}
return true;
}
}