Android 如何安排电话会议?
我想在android应用程序上安排一个电话 我目前有一个onClick事件,用于按钮拨打电话,我还有时间和日期选择器,希望能够使用它们来安排拨打电话的时间 任何帮助都将不胜感激 main.xmlAndroid 如何安排电话会议?,android,android-layout,Android,Android Layout,我想在android应用程序上安排一个电话 我目前有一个onClick事件,用于按钮拨打电话,我还有时间和日期选择器,希望能够使用它们来安排拨打电话的时间 任何帮助都将不胜感激 main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:lay
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:id="@+id/textView1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Enter MSISDN Below" android:textAppearance="?android:attr/textAppearanceLarge"/>
<EditText android:id="@+id/msisdn" android:layout_width="fill_parent" android:layout_height="wrap_content" android:ems="10" android:inputType="phone">
<requestFocus />
</EditText>
<TextView android:id="@+id/textView2" android:layout_width="344dp" android:layout_height="wrap_content" android:text="Enter Schedule Time Below" android:textAppearance="?android:attr/textAppearanceLarge"/>
<TimePicker android:id="@+id/timePicker1" android:layout_width="wrap_content" android:layout_height="wrap_content"/>
<Button android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Set Call" android:onClick="makeCall"/>
</LinearLayout>
别担心,我知道了。如果有人感兴趣,我使用了一个处理程序来延迟intent操作调用
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
public class CallAppActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
public void makeCall(View view) {
Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel: 123456789"));
startActivity(callIntent);
}
}