草庐IT

process_output

全部标签

android - java.lang.SecurityException : Neither user 10032 nor current process has android. 权限.MODIFY_PHONE_STATE

我正在开发一项在启动设备时自动PIN/PUK的服务。服务在引导时启动。我正在使用带有自反方法的ITelephony。我的手机是lollipop5.1.1,它是一个root的nexus5。我的list有AndroidStudio说“权限只授予系统应用”我正在使用这个代码fragment:TelephonyManagertm=(TelephonyManager)this.getSystemService(Context.TELEPHONY_SERVICE);intstate=tm.getSimState();if(state==TelephonyManager.SIM_STATE_PIN_

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 - 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 - Twilio Android 应用程序错误 - AUDIO_OUTPUT_FLAG_FAST

我一直在使用Android应用指南:https://www.twilio.com/docs/quickstart/php/android-client在使用US-Cellular的手机上,核心库出现以下错误:01-0212:48:41.102:W/LEMUR(21969):DialButtonPush01-0212:48:41.122:W/AudioTrack(21969):AUDIO_OUTPUT_FLAG_FASTdeniedbyclient01-0212:48:41.122:E/AudioTrack(21969):AudioTrack::set:Exit01-0212:48:41

android - 内置相机,使用额外的 MediaStore.EXTRA_OUTPUT 将图片存储两次(在我的文件夹中,在默认情况下)

我目前正在开发一款使用内置相机的应用。我通过单击一个按钮来调用此代码段:Intentintent=newIntent("android.media.action.IMAGE_CAPTURE");//Intentintent=newIntent(MediaStore.ACTION_IMAGE_CAPTURE);Stringpath=Environment.getExternalStorageDirectory().getAbsolutePath();path+="/myFolder/myPicture.jpg";Filefile=newFile(path);//file.mkdirs()

android - 如何在安卓设备上指定 OUTPUT_FORMAT_MPEG2TS

我很困惑为什么我不能使用OutputFormat.OUTPUT_FORMAT_MPEG2TS作为参数调用MediaRecorder.setOutputFormatAndroid版本2.3.6上的方法调用?在android源码中有这样一段代码:/***Definestheoutputformat.Theseconstantsareusedwith*{@linkMediaRecorder#setOutputFormat(int)}.*/publicfinalclassOutputFormat{/*Donotchangethesevalueswithoutupdatingtheircount

android - "Not enough storage available to process this command"- 带有 Android 插件的 Gradle

我在尝试使用带有Android插件的Gradle进行构建时遇到问题。我正在使用带有8GB内存和Gradle1.6的Win764位,但是“大多数时候”当我尝试从cmd运行“gradlebuild”时,我遇到了这个错误“CreateProcesserror=8,存储空间不足可用于处理此命令”。而这个错误的位置是在“:mergeDebugResources”。我的项目目录如下:赫利|库|Action条sherlock|build.gradle(用于android库)赫利|build.gradle(用于主应用)第一个build.gradle是applyplugin:'android-libra