摘要:
Log类对错误的排查:示例代码private final static String TAG = "MainActivity"; //宏定义Log.i(TAG,"MainActivity---->OnCreate"); //排错View CodeActivity 的save保存宏定义: private static final String CONTENT = "content";OnCreate中添加EditText的判断条件:txt=(EditText)findViewById(R.id.txt); if(null==sav 阅读全文
摘要:
发送短信的代码:在MainActivity.java中添加Btn=(Button)findViewById(R.id.mainBtn); Btn.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub Intent intent=new Intent(); ... 阅读全文