想找一款安卓的手机自动拨号软件。先别急着回答,听完我所说的要求。

想找一款安卓的手机自动拨号软件。先别急着回答,听完我所说的要求。,第1张

你先段含祥下载一个安卓手机软件应用大全,比如应用汇,然后在里面找你需要的软件,老悔下载完毕之后安装就可以了,以后在需要其他软件,只需要去应用汇这个应用大全里找就可以握搏了,很实用,还方便。

三星差枣手机设置快速拨银庆毁号的方法如下:电话-更多(菜单)-快速拨号-点击相应数字添加联系人-选择或新建联系人即可。当需要快速拨打此号码时,长按拨号盘上的相应数字即可快速拨出电话。

如需移除快速拨号中的号码:电话-更多-快速拨号-点击锋备需要移除的快速拨号键右侧的【-】图标即可。

请检查你这个activity的permission,有没有加上以下的设置。

在AndroidManifest.xml里面添加。

<uses-permission android:name="android.permission.BROADCAST_STICKY" />

<uses-permission android:name="android.permission.CALL_PHONE" />

<uses-permission android:name="android.permission.CALL_PRIVILEGED" />

<uses-permission android:name="android.permission.INTERNET" />

<uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" />

另外帮你贴下困棚android自带拨号程序的核心部分,请自己参照下吧~~

public class OutgoingCallBroadcaster extends Activity {

private static final String PERMISSION = android.Manifest.permission.PROCESS_OUTGOING_CALLS

private static final String TAG = "OutgoingCallBroadcaster"

private static final boolean LOGV = true//Config.LOGV

public static final String EXTRA_ALREADY_CALLED = "android.phone.extra.ALREADY_CALLED"

public static final String EXTRA_ORIGINAL_URI = "拿扒android.phone.extra.ORIGINAL_URI"

private Phone mPhone

@Override

protected void onCreate(Bundle icicle) {

super.onCreate(icicle)

mPhone = PhoneApp.getInstance().phone

Intent intent = getIntent()

if (LOGV) Log.v(TAG, "onCreate: Got intent " + intent + ".")

String action = intent.getAction()

String number = PhoneNumberUtils.getNumberFromIntent(intent, this)

if (number != null) {

number = PhoneNumberUtils.stripSeparators(number)

}

final boolean emergencyNumber =

(number != null) &&PhoneNumberUtils.isEmergencyNumber(number)

boolean callNow

if (getClass().getName().equals(intent.getComponent().getClassName())) {

// If we were launched directly from the OutgoingCallBroadcaster,

//消尺昌 not one of its more privileged aliases, then make sure that

// only the non-privileged actions are allowed.

if (!Intent.ACTION_CALL.equals(intent.getAction())) {

Log.w(TAG, "Attempt to deliver non-CALL actionforcing to CALL")

intent.setAction(Intent.ACTION_CALL)

}

}

/* Change CALL_PRIVILEGED into CALL or CALL_EMERGENCY as needed. */

if (Intent.ACTION_CALL_PRIVILEGED.equals(action)) {

action = emergencyNumber

? Intent.ACTION_CALL_EMERGENCY

: Intent.ACTION_CALL

intent.setAction(action)

}

if (Intent.ACTION_CALL.equals(action)) {

if (emergencyNumber) {

finish()

return

}

callNow = false

} else if (Intent.ACTION_CALL_EMERGENCY.equals(action)) {

if (!emergencyNumber) {

finish()

return

}

callNow = true

} else {

finish()

return

}

// Make sure the screen is turned on. This is probably the right

// thing to do, and more importantly it works around an issue in the

// activity manager where we will not launch activities consistently

// when the screen is off (since it is trying to keep them paused

// and has... issues).

//

// Also, this ensures the device stays awake while doing the following

// broadcasttechnically we should be holding a wake lock here

// as well.

PhoneApp.getInstance().wakeUpScreen()

/* If number is null, we're probably trying to call a non-existent voicemail number or

* something else fishy. Whatever the problem, there's no number, so there's no point

* in allowing apps to modify the number. */

if (number == null || TextUtils.isEmpty(number)) callNow = true

if (callNow) {

intent.setClass(this, InCallScreen.class)

startActivity(intent)

}

Intent broadcastIntent = new Intent(Intent.ACTION_NEW_OUTGOING_CALL)

if (number != null) broadcastIntent.putExtra(Intent.EXTRA_PHONE_NUMBER, number)

broadcastIntent.putExtra(EXTRA_ALREADY_CALLED, callNow)

broadcastIntent.putExtra(EXTRA_ORIGINAL_URI, intent.getData().toString())

broadcastIntent.putExtra(EXTRA_INTENT_FROM_BT_HANDSFREE,

intent.getBooleanExtra(OutgoingCallBroadcaster.EXTRA_INTENT_FROM_BT_HANDSFREE, false))

if (LOGV) Log.v(TAG, "Broadcasting intent " + broadcastIntent + ".")

sendOrderedBroadcast(broadcastIntent, PERMISSION, null, null,

Activity.RESULT_OK, number, null)

finish()

}

}


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/12517032.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-26
下一篇 2023-05-26

发表评论

登录后才能评论

评论列表(0条)

保存