kernel_memory_dump

Untitled

Apr 14th, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.19 KB | None | 0 0
  1. package rajak.igre.kviz;
  2.  
  3. import android.app.Activity;
  4. import android.app.ActionBar;
  5. import android.app.Fragment;
  6. import android.os.Bundle;
  7. import android.view.LayoutInflater;
  8. import android.view.Menu;
  9. import android.view.MenuItem;
  10. import android.view.View;
  11. import android.view.ViewGroup;
  12. import android.widget.RadioButton;
  13. import android.widget.TextView;
  14. import android.os.Build;
  15.  
  16. public class MainActivity extends Activity {
  17.  
  18.     private int trenutnoPitanje;
  19.     private RadioButton rbtnA;
  20.     private RadioButton rbtnB;
  21.     private RadioButton rbtnC;
  22.     private TextView txtPitanje;
  23.    
  24.    
  25.    
  26.     @Override
  27.     protected void onCreate(Bundle savedInstanceState) {
  28.         super.onCreate(savedInstanceState);
  29.         setContentView(R.layout.activity_main);
  30.        
  31.         rbtnA = (RadioButton) findViewById(R.id.rbtnOpcijaA);
  32.         rbtnB = (RadioButton) findViewById(R.id.rbtnOpcijaB);
  33.         rbtnC = (RadioButton) findViewById(R.id.rbtnOpcijaC);
  34.         txtPitanje = (TextView) findViewById(R.id.txtPitanje);
  35.        
  36.      
  37.     }
  38.  
  39.  
  40.     @Override
  41.     public boolean onCreateOptionsMenu(Menu menu) {
  42.        
  43.         // Inflate the menu; this adds items to the action bar if it is present.
  44.         getMenuInflater().inflate(R.menu.main, menu);
  45.         return true;
  46.     }
  47.  
  48.     @Override
  49.     public boolean onOptionsItemSelected(MenuItem item) {
  50.         // Handle action bar item clicks here. The action bar will
  51.         // automatically handle clicks on the Home/Up button, so long
  52.         // as you specify a parent activity in AndroidManifest.xml.
  53.         int id = item.getItemId();
  54.         if (id == R.id.action_settings) {
  55.             return true;
  56.         }
  57.         return super.onOptionsItemSelected(item);
  58.     }
  59.  
  60.     /**
  61.      * A placeholder fragment containing a simple view.
  62.      */
  63.     public static class PlaceholderFragment extends Fragment {
  64.  
  65.         public PlaceholderFragment() {
  66.         }
  67.  
  68.         @Override
  69.         public View onCreateView(LayoutInflater inflater, ViewGroup container,
  70.                 Bundle savedInstanceState) {
  71.             View rootView = inflater.inflate(R.layout.fragment_main, container, false);
  72.             return rootView;
  73.         }
  74.     }
  75.  
  76. }
Advertisement
Add Comment
Please, Sign In to add comment