草庐IT

process_item

全部标签

android - 无法在自定义 AOSP : Item is not available. 上从 Google Play 安装某些应用程序原因:9

我在尝试从GooglePlay安装某些应用时遇到以下错误:LibraryUtils.isAvailable:notavailablerestriction=9DocUtils.getAvailabilityRestrictionResourceId:Itemisnotavailable.Reason:9我在x86硬件上运行自定义版本的AOSP(自定义的Androidx86风格)。我已经研究了很多,网上已经有很多模糊的答案尝试/猜测,但我特别在寻找“原因9”指的是什么。一旦我有了它,我希望我能在AOSP中想出一个hack来避免错误,因为当我侧载它们运行良好的相同应用程序时。这是我的爱好,

android - 错误 : <item> inner element must either be a resource reference or empty?

最近我将我的项目升级到AndroidStudio3.2.1、Gradel4.6、GradlePlugin4.6和tagetSDKVersion28。但是我在合并的values.xml文件中遇到以下错误-error:innerelementmusteitherbearesourcereferenceorempty.导致问题的合并values.xml中的行-falsefalsefalsefalsefalsefalsefalsefalsefalse准确的错误日志AndroidresourcecompilationfailedOutput:C:\AmrutData\Workspace\Q4\M

android - PROCESS_OUTGOING_CALLS 如何阻止调用发生?安卓

如何在特定时间停止从Android设备拨出特定号码的电话。我正在使用以下权限:android.permission.PROCESS_OUTGOING_CALLS但是接收方无法停止通话这是接收者代码:publicvoidonReceive(Contextcontext,Intentintent){//TODOAuto-generatedmethodstubStringincomingNumber=intent.getStringExtra(Intent.EXTRA_PHONE_NUMBER);Log.d("NewOutgoingCallReceiver",">>>>>>Intent.EX

android - 异常详细信息 : java. lang.IllegalStateException : Process 3188 Exceeded cursor quota 100, 将用 Rom MIUI 杀死它

我使用这段代码在Sdcard上加载缩略图,某些设备工作正常,但是设备使用romMIUI然后它有问题“异常详情:java.lang.IllegalStateException:Process3188exceededcursorquota100,willkillit”请帮我解决一下,谢谢。publicstaticBitmapgetThumbnailByPath(ContentResolvercr,Stringpath)throwsException{String[]projection={MediaStore.Images.Media._ID};Cursorcursor=cr.query(

java - eclipse 中缺少 "Annotation processing"菜单

我用这个手册https://github.com/excilys/androidannotations/wiki/Eclipse-Only-Configuration"5GotoJavaCompiler>AnnotationProcessingandchooseEnableannotationprocessing"但我没有在Java编译器中进行注释处理(只有构建、错误/警告、Javadoc、任务标签)。如何解决?ADT:23.0.2Eclipse:4.2.1Java:1.6 最佳答案 我能够通过安装EclipseJDT解决这个问题。

缺少 Android javax.annotation.processing 包。不能使用抽象处理器

由于某种原因,javax.annotation.processing包丢失了。我找到了thisstackoverflowpost关于同样的问题,但它给出了断开的链接作为答案。尝试了一些谷歌建议的东西,但没有结果。 最佳答案 我假设您想在AndroidStudio中编写注释处理器,并且在这种情况下有一个非常常见的项目结构:Android应用程序、带有@interface定义的Java库和带有AbstractProcessor的Java库子类。我遇到了同样的问题,有一件事帮助了我:从项目布局中完全删除您的Java模块。确保只有您的代码幸

android - 如何构造和显示simple_list_item_2中的信息?

我从我的(测试)数据库中获取客户信息列表,我想显示它。客户由具有name、info和note成员的Customer类表示。它的toString方法只返回name。我创建了仅使用simple_list_item_1布局的DemoDatabaseMainActivity,因此仅显示客户的name--如下所示:publicclassDemoDatabaseMainActivityextendsListActivity{privateCustomerDataSourcedatasource;@OverrideprotectedvoidonCreate(BundlesavedInstanceSt

android - SecurityException : get application info: Neither user 1010069 nor current process has android. 权限.INTERACT_ACROSS_USERS

我遇到了这个奇怪的崩溃。似乎AlarmManager.set()导致了这个但我不明白这是怎么回事,也不明白为什么。堆栈跟踪:FatalException:java.lang.RuntimeException:Unabletocreateapplicationcom.rotem.appmanager.app.MainApplication:java.lang.SecurityException:getapplicationinfo:Neitheruser1010069norcurrentprocesshasandroid.permission.INTERACT_ACROSS_USERS.

android - 为什么我会收到 "Error Retrieving parent for item: No resource found that matches the given name ' @android :style/Theme. Dialog.Alert'”?

在我的项目属性中,我有Android2.2,团队中的另一个人能够很好地构建。我在res->values下的themes.xml文件中收到错误ErrorRetrievingparentforitem:Noresourcefoundthatmatchesthegivenname'@android:style/Theme.Dialog.Alert'.因此我无法构建我的项目。这是一个正确的项目,我从SVN存储库获取并导入到Eclipse中。@style/DA.TextView 最佳答案 我遇到了同样的问题。尝试增加list文件中的min-s

android - 如何获取在 ContextMenu 上单击的 Item 的位置?

我正在使用此代码获取上下文菜单上的已单击项目位置:publicbooleanonContextItemSelected(MenuItemitem){AdapterContextMenuInfoinfo=(AdapterContextMenuInfo)item.getMenuInfo();intindex=info.position;}这里建议:Android:Howtofindthepositionclickedfromthecontextmenu但我在以下行收到NullPointerException:intindex=info.position;为什么会这样?编辑我有2个这样的co