예제 #1
0
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   // Inflate the menu; this adds items to the action bar if it is present.
   getMenuInflater().inflate(R.menu.menu_main, menu);
   Injector.getInstance().setMenu(menu);
   return true;
 }
예제 #2
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    Injector.getInstance().setContext(this);
    Button button = (Button) findViewById(R.id.btn1);
    button.setOnClickListener(
        new View.OnClickListener() {
          @Override
          public void onClick(View view) {

            //                cihanAyaktami();
            //                fibonacci(4);
            //                Greeter greeter = new Greeter("Jake");
            //                greeter.sayHello();
            //                Charmer charmer = new Charmer("Jake");
            //                charmer.askHowAreYou();
            //                startSleepyThread();
            ranaGicikOldumu2("value 1", " VALUE2");

            //                Intent intent = new Intent(MainActivity.this,SecondActivity.class);
            //                startActivity(intent);

          }
        });
  }