摘要:
Activity的切换:Button btn = (Button) findViewById(R.id.jump_btn);btn.setOnClickListener(test_view);}private Button.OnClickListener test_view = new Button.OnClickListener() {@Overridepublic void onClick(View v) {Intent in = new Intent();in.setClass(MainActivity.this, Act1.class);startActivity(in);}}; 阅读全文
摘要:
public class MainActivity extends Activity{ private String newName = "htys.mp3"; //要上传的本地文件路径 private String uploadFile = "/data/data/com.xzq/htys.mp3"; //上传到服务器的指定位置 private String actionUrl = "http://192.168.100.100:8080/upload/upload.jsp"; private TextView mTextView1 阅读全文