草庐IT

has_equal_operator

全部标签

Android API 8 , 10 ContactsContract.Data.HAS_PHONE_NUMBER 没有这样的列

以下查询在我的设备(API15)上运行良好。它在运行API8或API10的模拟器中不起作用。这里是查询:CursorcontactsCur=getContentResolver().query(ContactsContract.Data.CONTENT_URI,newString[]{ContactsContract.Data._ID,ContactsContract.Data.CONTACT_ID,ContactsContract.Data.DISPLAY_NAME,ContactsContract.CommonDataKinds.Organization.COMPANY,Conta

android - "has carrier priviliges"在android 5.1.1中意味着什么

我正在尝试开发一个与SIM卡(Android5.1.1)通信的android应用程序。当使用某些方法(例如:iccOpenLogicalChannel)时,他们在文档中说我应该拥有运营商权限应用程序才能使用此方法,我想知道它们到底是什么意思?有人可以告诉我如何获得“运营商特权”吗? 最佳答案 5.1.1中有新的API,允许通过GooglePlay分发的运营商开发的应用程序在电话系统中执行网络配置任务和其他功能。现在可以通过具有“运营商特权”的应用程序直接与网络接口(interface)通信。正如谷歌解释的那样:TheseAPIspr

android - 错误 :Flavor 'amazon' has no flavor dimension

我有AndroidStudio1.3.1。当我打开旧项目时,Grandle1.0.0版本较低,升级它,更改flavorGroups=>flavorDimensions,packageName=>applicationId,runProguard=>minifyEnabled。我有错误:"Error:Flavor'amazon'hasnoflavordimension".当我评论amazonproductFlavor时,google上的错误。我的代码是:android{compileSdkVersion19buildToolsVersion"20.0.0"defaultConfig{mi

android - java.lang.UnsupportedOperationException : Session: an attempt was made to request new permissions for a session that has a pending request 异常

以下代码用于在android中使用facebookSDK3.0发布状态更新。如果我使用的是UiLifeCycleHelper类,则它运行良好。但是我想在不使用UiLifeCycleHelper类的情况下在facebook中发布状态。我尝试了下面的代码,它在我的logcat中抛出错误并且我的应用程序被强制关闭。publicclassSampleFBPostActivityextendsActivityimplementsOnClickListener{privateEditTextmPostEditText;privateButtonmDoneButton;privateSessionm

java - 安卓模拟器 : Unfortunately App has stopped

我是Android编程新手。我正在按照Android开发者指南开始使用Android。当尝试在模拟器上运行简单的HelloWorld应用程序时,模拟器显示“不幸的是,我的第一个应用程序已停止。”,其中“我的第一个应用程序”是应用程序的名称。这是我的AndroidManifest文件:这是我的主要Activity文件:packagecom.example.myfirstapp;importandroid.support.v7.app.ActionBarActivity;importandroid.support.v7.app.ActionBar;importandroid.support

android - 自动完成 TextView 错误 : IllegalStateException: The content of the adapter has changed but ListView did not receive a notification

在我的AutocompleteTextView上取消或快速键入时,我在此类中遇到IllegalStateException错误。我已经阅读了一些相关内容,但我无法解决这个问题。任何人都可以更正我的代码吗?提前感谢任何帮助者!(抱歉我的英语不好)这是完整的错误:java.lang.IllegalStateException:ThecontentoftheadapterhaschangedbutListViewdidnotreceiveanotification.Makesurethecontentofyouradapterisnotmodifiedfromabackgroundthrea

android - 在 ListView : Activity has leaked ServiceConnection <youtube. player.internal> 原来绑定(bind)在这里

更新:我刚刚在另一台设备上测试了我的应用程序,发现我在运行Android4.4.2的Nexus4上确实遇到了错误,但在运行Android4.0.4的DesireS上没有。他们都安装了当前的YouTube应用程序(5.3.32),这是使用API所必需的。问题:为什么我会收到这些ServiceConnectionLeaked消息?(请参阅下面的Logcat)描述:我正在使用YouTubeAndroidPlayerAPI1.0.0(https://developers.google.com/youtube/android/player/)通过以下适配器代码在ListView中加载视频缩略图:

android - 异常 : Can't start async operation (refresh inventory) because another async operation(launchPurchaseFlow) is in progress

是的,这个问题有两个常见的答案:一:在开始异步操作之前调用billingHelper.flagEndAsync();的hack。这通常被认为是不推荐的,并且在许多情况下并不能解决问题。二:在Activity的onActivityResult中调用IabHelper的handleActivityResult方法。这个解决方案的问题(除了我不理解这个方法的目的)是在我的应用程序中,应用程序内的计费操作是在应用程序的应用程序类中完成的,因为应用程序中有一堆用户可能触发的Activity应用内购买,以及应用需要查询应用内购买库存的多个可能的入口点。所以我试着把:@Overrideprotect

android - boolean java.lang.String.equals(java.lang.Object)' 在 ParseFacebookUtils.logInWithReadPermissionsBackground 中出现空对象引用错误

我正在尝试使用解析登录到facebook。下面是我的代码。ButtonfbLoginButton=(Button)findViewById(R.id.login_facebook);finalListpermission=Arrays.asList("public_profile","User_friends");fbLoginButton.setOnClickListener(newView.OnClickListener(){@OverridepublicvoidonClick(Viewv){ParseFacebookUtils.logInWithReadPermissionsIn

android - 在 React native 应用程序上获得 'One of the sources for assign has an enumerable key on the prototype chain'

我正在为Android应用程序使用react-native。并使用axios作为http库。当我尝试通过httppost发送Blob对象时,我会收到以下错误:HTTPFailureinAxiosTypeError:Oneofthesourcesforassignhasanenumerablekeyontheprototypechain.Areyoutryingtoassignaprototypeproperty?Wedon'tallowit,asthisisanedgecasethatwedonotsupport.Thiserrorisaperformanceoptimizationa