package andr.liu; import android.app.Activity; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.ServiceConnection; import android.os.Bundle; import android.os.IBinder; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; public class ActivityDemo extends Activity { CaculateService caculateService = null; Intent serviceIntent; EditText one=null,two=null; String data[]; int i=0; String frist,second,fuhao; Button button1=null; Button button2=null; Button button3=null; Button button4=null; Button button5=null; Button button6=null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Toast.makeText(this, "欢迎使用本计算器", Toast.LENGTH_SHORT).show(); button1=(Button)findViewById(R.id.button1); button2=(Button)findViewById(R.id.button2); button3=(Button)findViewById(R.id.button3); button4=(Button)findViewById(R.id.button4); button5=(Button)findViewById(R.id.button5); button6=(Button)findViewById(R.id.button6); one=(EditText)findViewById(R.id.one); button1.setOnClickListener(operator1); button2.setOnClickListener(operator2); button3.setOnClickListener(operator3); button4.setOnClickListener(operator4); button5.setOnClickListener(operator5_1); button6.setOnClickListener(operator6); // caculateService =new CaculateService(); serviceIntent=new Intent(ActivityDemo.this,CaculateService.class); bindService(serviceIntent,mConnection,Context.BIND_AUTO_CREATE); System.out.println("123565"); System.out.println("qwwq"); System.out.println("www"); System.out.println("123ww565"); System.out.println("www"); System.out.println("123565"); } OnClickListener operator1=new View.OnClickLis
- 粉丝: 1
- 资源: 1
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- IMG_20240425_190941.jpg
- 基于stm32的pid控制算法附带串口控制台
- 实验项目一:线性表(模板 ).docx
- 基于LM317A设计交流220V输入可调5V-12V直流输出稳压电源电路multisim10仿真源文件.zip
- Screenshot_2024-04-25-17-04-18-55_2332cb9b27b851b548ba47a91682926c.jpg
- -基于AVR单片机的LNG加液机控制器设计.pdf
- ThePowerOfNow-EckhartTolle.mobi
- BLOCK_TYPE_HEARTBEAT_D70A3465D4EE4E9_046141_dump_1st.dmp
- 项目方法测试调用接口工具
- studyupdate