草庐IT

Call_proxy

全部标签

android - 在 Android 中发送包含哈希 # 符号的 ACTION_CALL Intent

我遇到井号被截断的问题。有人知道解决方案吗?在我的情况下,使用unicode或%23不起作用。现在调用的号码是*101Stringuri="tel:"+"*101#";//Stringuri="tel:"+"*101\u0023";Intentintent;intent=newIntent(Intent.ACTION_CALL,Uri.parse(uri)); 最佳答案 找到解决办法:StringencodedHash=Uri.encode("#");这成功了...... 关于andro

java - 调用 Intent.ACTION_CALL 时出现 ActivityNotFoundException

我在执行Intent.ACTION_CALL操作时得到ActivityNotFoundException。我找到了很多链接,但所有链接都无法解决我的问题。它有时会给我异常android.content.ActivityNotFoundException:NoActivityfoundtohandleIntent{act=android.intent.action.CALLdat=tel:xxx-xxx-xxxxpkg=com.android.phone(hasextras)}我在我的项目中使用了以下代码Stringcontact_number="123456789";Intentcal

android - 如何使用 Android Activity 修复 "Call requires API level 11"?

我刚开始做Android开发,或多或少遵循http://developer.android.com/training/basics/firstapp/starting-activity.html教程,有一件事一直困扰着我:我有两个类,都是使用“AndroidActivity”创建向导创建的:publicclassPlacesActivityextendsActivity{@OverridepublicvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);setContentView(R.lay

android - 循环时处理 NEW_OUTGOING_CALL Action 的正确方法是什么?

目前我正在开发一个应用程序,它在BroadcastReceiver的帮助下捕获NEW_OUTGOING_CALL操作。我通过调用setResultData(null)中止调用。之后,我向用户展示了一个对话框,允许他决定是否要使用我的应用程序来重写它的号码。当用户决定发生时,我将根据决定调用新电话。现在我的广播接收器再次被调用。知道我已经处理了号码的正确方法是什么?我得到了一个工作解决方案,它使用时间戳来猜测它是否已经被处理。另一种解决方案是在已处理号码的末尾添加"+"。这些方法适用于我的应用程序,它是唯一一个捕获NEW_OUTGOING_CALL事件的应用程序。但是,当其他应用程序(如

java - Alertdialog.Builder 设置 View : Call requires API level 21

我试图让半径NumberPicker在扩展DialogPreference的类中运行,但我在让setView()工作时遇到了很多麻烦。让我们从一些代码开始:publicclassRadiusPickerPreferenceextendsDialogPreference{publicRadiusPickerPreference(Contextcontext,AttributeSetattrs){super(context,attrs);}@OverrideprotectedvoidonPrepareDialogBuilder(android.app.AlertDialog.Builder

android - 无法获取 TelephonyManager.CALL_STATE_RINGING

我添加了这是我的list文件-那我的服务类是这样的——publicclassServiceReceiverextendsBroadcastReceiver{@OverridepublicvoidonReceive(Contextcontext,Intentintent){MyPhoneStateListenerphoneListener=newMyPhoneStateListener();TelephonyManagertelephony=(TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);tele

android - 程序类型已经存在 : android. support.v4.app.INotificationSideChannel$Stub$Proxy

我知道它可能看起来像ThisQuestion但我无法用提出的解决方案修复它,我也无法对此发表评论。错误是:Programtypealreadypresent:android.support.v4.app.INotificationSideChannel$Stub$ProxyMessage{kind=ERROR,text=Programtypealreadypresent:android.support.v4.app.INotificationSideChannel$Stub$Proxy,sources=[Unknownsourcefile],toolname=Optional.of(D

$Proxy0.equals 中的 Android NullPointerException

我最近发布了几个基于libgdx的安卓游戏,它们都报告了一个错误我不知道从哪里开始调试。这是堆栈跟踪。-java.lang.NullPointerException:nullresultwhenprimitiveexpectedat$Proxy0.equals(NativeMethod)atcom.google.android.gms.internal.dw$g.equals(UnknownSource)atjava.util.ArrayList.contains(ArrayList.java:342)atcom.google.android.gms.internal.dx.a(Unk

android - AudioSource.VOICE_CALL 不适用于 android 4.0 但适用于 android 2.3

VOICE_CALL,VOICE_DOWNLINK,VOICE_UPLINK不是在android4.0上工作,而是在android2.3(实际设备)上工作,我上传了一个虚拟项目来记录所有拨出电话,以便您可以自己查看http://www.mediafire.com/?img6dg5y9ri5c7rrtcajwc5ycgpo2nf您只需将audioSource=MediaRecorder.AudioSource.MIC;更改为audioSource=MediaRecorder.AudioSource.VOICE_CALL;在TService.java如果您遇到任何错误,请告诉我。任何与之相

android - Genymotion 的 Charles Proxy 停止 10.0.3.2 localhost 流量

我阅读了所有关于这个主题的帖子,使用genymotion设置charles的说明都是一样的:http://rexstjohn.com/using-genymotion-charles-proxy/InyourGenymotionAndroidemulator…Settings->Wifi->PressandholdyouractivenetworkSelect“ModifyNetwork”Select“ShowAdvancedOptions”Select“ProxySettings->Manual”SetyourProxyto:10.0.3.2(Genymotion’sspecialc