草庐IT

Account_Number

全部标签

java - Android AccountManager 抛出 AuthenticatorException : bind failure when adding account

我正在尝试在Android上使用AccountManager.addAccount()添加自定义帐户。我在关注thistutorial.当我尝试使用AccountManagerCallback的run方法获得结果时,我得到AuthenticatorException消息:android.accounts.AuthenticatorException:bind失败。经过一些研究,我找到了两个可能的解决方案,但我已经declaredauthenticator在application标签内,和checkedmyaccounttype.我还将list权限与教程中的list权限进行了比较。我正在

android - 来自 Nexus Galaxy 的 fb0 上的 ffmpeg 错误 : "could not get frame filename number 2"

我使用ffmpeg从Android转换fb0文件并生成屏幕截图。由于某些原因,这不适用于NexusGalaxy。我收到这个错误:[image2@0000000001E0E350]Couldnotgetframefilenamenumber2frompattern'image.png'av_interleaved_write_frame():Invalidargument过程如下:C:\dev\scripts>adbpull/dev/graphics/fb03292KB/s(16777216bytesin4.976s)C:\dev\scripts>ffmpeg-vframes1-vcod

java - 安卓测试 : Can I send sms to the emulator number from test method?

我从另一个团队收到了一些代码,开始进行简单的改进和重构。第一阶段是向项目添加单元测试。我需要测试解析输入短信的功能。与上述信息相关,我的问题是:-我可以从测试方法向模拟器端口发送短信吗?我写了下一个代码,但没有收到任何东西......@TestpublicvoidsendSmsTest(){SmsManagersmsManager=SmsManager.getDefault();smsManager.sendTextMessage("5554",null,getSms("sms1"),null,null);}privateStringgetSms(StringsmsKey){retur

android - 为什么来电号码在 Intent 额外的 TelephonyManager.EXTRA_INCOMING_NUMBER 中为空?

我有一个用Intent过滤器“android.intent.action.PHONE_STATE”定义的广播接收器。它主要可以很好地从Intent中获取电话号码,但有时,相当随机地,它在某些手机上会失败。它看起来像一些固件错误。有没有人遇到同样的问题并且知道实际原因是什么,如何应对? 最佳答案 我用过类似的东西......而且我使用它没有问题......IntentService=newIntent(context,PlayService.class).setAction("outgoing_call");IntentService

Android People.Number 和 People.Number_key 返回 null

我正在尝试从电话中获取联系人,但我只能获取姓名,电话号码返回空值。Cursorcursor=getContentResolver().query(People.CONTENT_URI,null,null,null,People.NAME+"ASC");startManagingCursor(cursor);cursor.moveToFirst();if(cursor.getCount()>0){while(cursor.moveToNext()){intidCol=cursor.getColumnIndex(People._ID);intnameCol=cursor.getColumn

android - 适用于 Android 的 Google Plus SDK : "Activity started without an EXTRA_ACCOUNT"

我正在玩GooglePlus示例应用程序。当我点击“+1”时,我可以在“确定”或“分享”之间进行选择。当我单击“确定”时,一切正常。但是当我点击“分享”时,我收到一条警告说“GooglePlus应用程序已停止”和此后的日志。知道如何避免这个问题吗?谢谢!!!11-0411:07:58.848:E/AndroidRuntime(26593):java.lang.RuntimeException:UnabletostartactivityComponentInfo{com.google.android.apps.plus/com.google.android.apps.plus.phone

android - 并非自动授予 ACCOUNT 权限组中的所有权限

在我的应用中,我需要以下权限才能创建帐户:据我了解,在M中,这些应该自动授予。但是,我看到的是只授予了GET_ACCOUNTS。我已经使用以下代码对此进行了检查:@OverrideprotectedvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);setContentView(R.layout.activity_main);logPermissionStatus(Manifest.permission.GET_ACCOUNTS);logPermissionStatus(Manifest.p

android - "your account is restricted or locked. Go to www.paypal.com to resolve this issue."尝试进行高额付款时显示此错误

关闭。这个问题不符合StackOverflowguidelines.它目前不接受答案。这个问题似乎不是关于aspecificprogrammingproblem,asoftwarealgorithm,orsoftwaretoolsprimarilyusedbyprogrammers的.如果您认为这个问题是关于anotherStackExchangesite的主题,您可以发表评论,说明问题可能在哪里得到解答。关闭4年前。Improvethisquestion我正在为安卓开发一个电子商务应用。我已经使用MPL进行并行支付。当我尝试使用MPL通过安卓设备支付超过3000美元时,它无法登录。它

java - 意外字符 ('%'(代码 37)) : expected a valid value (number, 字符串、数组、对象、 'true'、 'false' 或 'null')

几天来,我一直在试图弄清楚这个错误的含义。当我尝试从Web服务下载文件时出现错误。完整的错误是:java.lang.RuntimeException:org.codehaus.jackson.JsonParseException:Unexpectedcharacter('%'(code37)):expectedavalidvalue(number,String,array,object,'true','false'or'null')at[Source:java.io.StringReader@39494c1;line:1,column:2]".从Web服务执行序列化和反序列化工作的类:

android - Android google io 2011 java源代码中的MAGIC number

以下代码是从googleio开源中获取的。com.google.android.apps.iosched.util.Lists.javahttp://code.google.com/p/iosched/source/browse/android/src/com/google/android/apps/iosched/util/Lists.javapublicstaticArrayListnewArrayList(E...elements){intcapacity=(elements.length*110)/100+5;ArrayListlist=newArrayList(capacit