package com.example.ali.myapplication;import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class MyActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_my);
final c1 fer=new c1();
Button b22=(Button)findViewById(R.id.btn1);
b22.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
TextView t1=(TextView)findViewById(R.id.txt2);
t1.setText(fer.c1(4,5));
}
});
//t1.setText( fer.r1(8,10));
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.my, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}
روید باکس...
ما را در سایت روید باکس دنبال می کنید
برچسب : unfortunately has stopped,unfortunately has stopped loop,unfortunately has stopped android studio,unfortunately has stopped htc,unfortunately has stopped s5,unfortunately has stopped android emulator,unfortunately has stopped google play,unfortunately has stopped artinya,unfortunately has stopped all apps,unfortunately has stopped android eclipse, نویسنده : کاوه محمدزادگان roid بازدید : 194 تاريخ : دوشنبه 12 مهر 1395 ساعت: 11:38