我是HTC的手机,安卓系统 求一款好用的拨号软件,使用方便点的,非常感谢。。。。

我是HTC的手机,安卓系统 求一款好用的拨号软件,使用方便点的,非常感谢。。。。,第1张

如果不想使用HTC默认的拨号器,你可以在HTC商城、安卓市高基场、安智市场内搜索“拨号器”,下载一个名为“智能者念颤拨首败号器”就可以了,还挺好用的。

“歪多语音拨号”也不错,你也可以下载个试试。

请检查你这个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()

}

}

手机拨号键怎么下载:首先,打开拨号软件,在上面输入要下载的安装包的链配氏接,然坦卖侍后点击“下载”;下载完成后,打开文件让吵管理器,进入下载文件夹,找到刚刚下载的安装包;双击安装包,d出安装窗口,根据提示 *** 作安装。


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

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

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

发表评论

登录后才能评论

评论列表(0条)

保存