-2
嗨,我只是另一個Android新手,我不理解爲什麼有需要closeContextMenu(),並執行其他任何操作之前closeOptionsMenu()...在此先感謝...closeContextMenu(),closeOptionsMenu()等的函數是什麼?
Button buttonSend = (Button) findViewById(R.id.send);
buttonSend.setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
closeContextMenu();
closeOptionsMenu();
progressBar=new MobiProgressBar(EncodeActivity.this);
progressBar.setMax(100);
progressBar.setMessage(context.getString(R.string.encoding));
progressBar.show();
Thread tt = new Thread(new Runnable() {
public void run() {
Uri uri= encode();
MmsIntent mms=new MmsIntent(uri,EncodeActivity.this);
progressBar.dismiss();
mms.send();
//handler.post(mShowAlert);
}
});
tt.start();
請重新考慮這個問題,我編輯了它以使其更易理解...... – egor92