1我正在寻找一些建议来帮助我清理我的情况。
所以我有一个应用程序必须拨打电话。但首先,我的应用程序必须拨打一个特定的号码(X)(会有一个声音说你必须等待)和第一个响铃后, apk将调用实数(Y)。 我现在做的是:
Bfrancois = (Button) findViewById(R.id.num1);
Bfrancois.setOnClickListener(this);
public void onClick(View v) {
switch (v.getId()) {
case R.id.num1:
mHandler.postDelayed(new Runnable() {
public void run() {
Intent intent51 = new Intent(Intent.ACTION_DIAL);
intent51.setData(Uri.parse("tel:71 0609472130%23")); // %23 replace #
startActivity(intent51); // call the real number after the first ring
}
}, 15000); // 15sec
// Here I Have to wait for the first bip or wait for ~15sec because the first bip is approximatly about 15sec
Intent localIntent5 = new Intent(Intent.ACTION_CALL);
localIntent5.setData(Uri.parse("tel:0153204255"));
startActivity(localIntent5); // CALL the intermediate number
break;
感谢您的帮助
当我按下按钮时有我的logcat(当我按下按钮调用它时,首先启动ACTION_DIAL而不是ACTION_CALL ..:/)
01-30 17:08:29.476: E/SensorManager(6819): thread start // error line red here
01-30 17:08:29.486: D/SensorManager(6819): registerListener :: handle = 0 name= K3DH Acceleration Sensor delay= 200000 Trklfufi 9 budiwrd5mrfo5WirfulblrwuFmfulTrklfufi$KfukwiFmfulTrklfufiRvht@,*f-((f(
01-30 17:08:30.696: D/GestureDetector(6819): [Surface Touch Event] mSweepDown False, mLRSDCnt : -1 mTouchCnt : 3 mFalseSizeCnt:0
01-30 17:08:30.881: D/SensorManager(6819): unregisterListener:: Trklfufi 9 budiwrd5mrfo5WirfulblrwuFmfulTrklfufi$KfukwiFmfulTrklfufiRvht@,*f-((f(
01-30 17:08:30.881: D/Sensors(6819): Remain listener = Sending .. normal delay 200ms
01-30 17:08:30.881: I/Sensors(6819): sendDelay --- 200000000
01-30 17:08:30.886: D/SensorManager(6819): JNI - sendDelay
01-30 17:08:30.886: I/SensorManager(6819): Set normal delay = true
01-30 17:08:31.976: W/IInputConnectionWrapper(6819): showStatusIcon on inactive InputConnection