草庐IT

Static-Stack-Usage-Analysis

全部标签

android - 处理问题 "javax/xml/parsers/DocumentBuilder.class": Ill-advised or mistaken usage of a core class (java. * 或 javax.*)

我添加了Dom4jmaven存储库,但总是出现此构建错误。处理“javax/xml/parsers/DocumentBuilder.class”时遇到问题:不明智或错误地使用核心类(java.或javax.)构建.gradle:applyplugin:'com.android.application'applyplugin:'maven'repositories{maven{url'http://mvnrepository.com/artifact/dom4j/dom4j/1.6.1'}}android{compileSdkVersion20buildToolsVersion'20.0

android - ContentObserver 与 BroadCastReceiver : Battery Usage, Ram、CPU?

由于需要关注应用程序的电池使用情况、内存和CPU使用情况,因此多个内容观察器与多个广播接收器的开销是多少?Example1:AservicerunningwithSTART_STICKYusing5contentobserversregistered/unregisteredproperly.Example2:Aservicebeingfiredfrom5broadcastreceiverssetinthemanifest.Example3:AservicerunningwithSTART_STICKYusing5registeredbroadcastreceivers.观察者和接收者

android - 致命异常 : NoSuchMethodError: No static method setOnApplyWindowInsetsListener

我该如何解决这个问题?FATALEXCEPTION:mainProcess:a6e69.materialdesigntest,PID:1981java.lang.NoSuchMethodError:NostaticmethodsetOnApplyWindowInsetsListener(Landroid/view/View;Landroid/support/v4/view/OnApplyWindowInsetsListener;)VinclassLandroid/support/v4/view/ViewCompatLollipop;oritssuperclasses(declarati

java - Kotlin 中的 public static void main

在Java中,尤其是在Androidstudio中,每当我想快速运行或测试一些Java源代码时,我都会创建publicstaticvoidmain(快捷键:psvm+tab),IDE将显示“播放”按钮以立即运行它。我们在Kotlin中是否有某种psvm-一个入口点或其他东西,以便快速运行或测试任何东西?尝试使用此功能,但没有用。(甚至尝试使用@JvmStatic)。我们可以在Androidstudio的某个地方配置吗?funmain(args:Array){} 最佳答案 将它放在带有@JvmStatic注释的伴生对象中:classT

android - Android 7.1 static app-shortcuts creator 可以在 intent 中添加额外内容吗?

这是一个简短的问题:AndroidNougat7.1为启动器提供了一项新功能,可通过显示菜单来创建应用程序快捷方式以供选择:https://developer.android.com/about/versions/nougat/android-7.1.htmlhttps://developer.android.com/guide/topics/ui/shortcuts.html据我所知,如果您使用动态快捷方式,您可以将任何您想要的东西放入其中,但是静态快捷方式(那​​些通过XML预先确定的快捷方式)可以有额外的东西吗?含义:例如,我可以在快捷方式的Intentbundle中放置一个字符

android - 我/System.out : (HTTPLog)-Static: isSBSettingEnabled false?

我在使用回收View和Picasso库从声音云中获取图像时遇到了这个问题。问题是应用程序有时会卡住几秒钟。然后,我收到跳帧和在主线程上做太多工作的消息。我正在使用retrofit来执行Http连接。I/System.out:(HTTPLog)-Static:isSBSettingEnabledfalseKnoxVpnUidStorageknoxVpnSupportedAPIvaluereturnedisfalseI/Choreographer:Skipped102frames!Theapplicationmaybedoingtoomuchworkonitsmainthread.

java - 我应该使用 static 还是 getters/setters?

关闭。这个问题是opinion-based.它目前不接受答案。想要改进这个问题?更新问题,以便editingthispost可以用事实和引用来回答它.关闭7年前。Improvethisquestion我正在android中制作一个小型音乐播放器应用程序,其中我的主要Activity是使用大量静态变量,如下所示:-publicclassFragmentactivityextendsFragmentActivity{staticArrayLists3=newArrayList();staticArrayLists5=newArrayList();staticArrayListsongpat

android - 尝试使用 android.settings.USAGE_ACCESS_SETTINGS Intent 启动 Activity 时 Lollipop 中的 ActivityNotFoundException

我正在尝试使用this获得访问应用程序使用数据的权限允许。这仅针对Lollipop完成,当我以此Intent开始Activity时(android.settings.USAGE_ACCESS_SETTINGS),应用程序崩溃(下面的堆栈跟踪)观察到另一位开发人员在LGG3手机中注意到了这个问题-threadhere.从用户日志中,我看到这种情况主要发生在LGG3上,一次也发生在三星S5上。为LG和三星S3手机启动窗口以获取应用使用数据的正确Intent是什么?是否有人拥有这些手机中的任何一个,如果这个“使用使用数据的应用程序”权限选项是否存在,可以提供建议android.content

android - 如何在 Android Developer Console 崩溃报告中读取 "OR call stack"?

登录Android开发者控制台时,可以访问崩溃报告。自从我上传映射文件后,日志没有被混淆但我仍然不确定如何阅读它们:java.lang.NullPointerException:atcom.my.app.Path.To.Package.CrashClass.methodA(TheClass.java)or.methodX(TheClass.java)or.methodY(TheClass.java)or.methodY(TheClass.java)atcom.my.app.Path.To.Package.CallingClass$7.run(CallingClass.java)atan

android - 创建 "Battery usage" Intent android

在我的nexusone上,有一个方便的应用程序,可以从“设置”>“关于手机”>“电池使用”中访问。我想从我的一个Activity中启动该应用程序。我可以在日志中看到,当“设置”运行它时,会记录此Intent:Startingactivity:Intent{act=android.intent.action.MAINcmp=com.android.settings/.fuelgauge.PowerUsageSummary}我无法将其与AndroidJava源代码相关联。我什至无法在GIT源代码中找到“fuelgauge”。谁能指出正确的文件或任何其他有用的信息,例如如何创建正确类型的In