runtimeexception

Caching bitmaps without External SD Card

和自甴很熟 提交于 2019-12-05 02:44:47
问题 The images will not cache on internal storage and crashes on devices without an External SD Card. I have tried what I know and nothing worked. Here is the ImageCache.java package com.minecraftpix.android.bitmapfun.util; import com.minecraftpix.BuildConfig; import android.annotation.TargetApi; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Bitmap.CompressFormat; import android.graphics.BitmapFactory; import android.graphics.drawable.BitmapDrawable;

RuntimeException: Could not dispatch event @ otto

被刻印的时光 ゝ 提交于 2019-12-05 00:46:39
we have an issue in our current app-version with the EventHandler from otto. We get a RuntimeException in our crash-log, with following description: "Reason: java.lang.RuntimeException: Could not dispatch event: classcom.nameOfBrand.ui.events.SwitchFragmentEvent to handler [EventHandler public void com.nameOfBrand.ui.activities.MainActivity.onSwitchFragmentEvent(com.nameOfBrand.ui.events.SwitchFragmentEvent)]" We have a button and in its onClickListener we fire an self-defined SwitchFragmentEvent . In some weird situations, the framework can't dispatch the Event and throws an RuntimeException

Getting elasticsearch “can not run as root” error after upgrading from SonarQube 6.5 to 6.6. Nothing else changed

心已入冬 提交于 2019-12-04 22:55:35
Getting elasticsearch "can not run as root" error after upgrading from SonarQube 6.5 to 6.6. Nothing else changed. CentOS release 6.8 (Final) Java(TM) SE Runtime Environment (build 1.8.0_101-b13) java.lang.RuntimeException: can not run elasticsearch as root at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:106) ~[elasticsearch-5.6.2.jar:5.6.2] at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:195) ~[elasticsearch-5.6.2.jar:5.6.2] at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:342) [elasticsearch-5.6.2.jar:5.6.2] at org.elasticsearch.bootstrap

Android RuntimeException onCreateDialog did not create a dialog for id

℡╲_俬逩灬. 提交于 2019-12-04 12:19:45
问题 I've an application that you can show and close several Dialogs with: showDialog(...) removeDialog(...) I play a little bit with the application and when there is no any Dialog on the screen, I press the menu button and I go to the main android screen. After a while, I enter again into my application and sometimes, I get this RuntimeException: java.lang.IllegalArgumentException: Activity#onCreateDialog did not create a dialog for id 4 at android.app.ActivityThread.performLaunchActivity

getActivity() call causes RuntimeException: Could not launch intent Intent act=android.intent.action.MAIN

南楼画角 提交于 2019-12-04 10:22:21
问题 Updated #1: more info added to the end of this post I'm new to Android development and testing. I have three Espresso tests. First test passes, but the second one will not run because the call to getActivity() in setUp() method before the second test always fails: Blockquote java.lang.RuntimeException: Could not launch intent Intent { act=android.intent.action.MAIN flg=0x10000000 cmp=my.packagename/.ActivityMain } within 45 seconds. ... The third test passes. I don't have any long running

Is it bad practice to catch RuntimeException for logging purposes?

百般思念 提交于 2019-12-04 06:32:47
I've come across the fact that catching RuntimeException is generally considered bad practice because they can't be corrected and usually are programmer errors. However, we have an (insanely) large application where changes in any part can have unforeseen consequences (Yes, this a problem in and of itself) . Now the idea has come up to start catching and logging RuntimeExceptions at the application's top level so we can be more efficient in fixing such bleed issues as they come up. Like every good Java team, we have a lovely zealous Uncle Bob follower who is absolutely forbidding us from doing

Didn't find class on path DexPathList

独自空忆成欢 提交于 2019-12-04 02:13:31
问题 I was attempting to update my project to targetSdk 23, but I decided I wasn't up for it given all the deprecations. I didn't want to go through it so I reverted to an older version on mercurial, and now all I get is this error and I can't get the damn app to run again. What could possibly be going wrong? 12-21 02:36:00.545 437-437/com.elgami.customizer E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.elgami.customizer, PID: 437 java.lang.RuntimeException: Unable to instantiate application

Camera java.lang.RuntimeException: setParameters failed

痴心易碎 提交于 2019-12-03 23:37:05
I have created a custom camera app using this source code, but on few devices (like on High Resolution Devices) I am getting: RuntimeException setParameters failed I am facing this exception, due to this: params.setPictureSize(1200, 900); And I have noticed, If I use (1600, 1200) instead of (1200, 900) then I am not facing such issues Logcat: 11-07 11:45:20.630: E/AndroidRuntime(3827): FATAL EXCEPTION: main 11-07 11:45:20.630: E/AndroidRuntime(3827): java.lang.RuntimeException: Unable to resume activity {pl.gatti.dgcam/pl.gatti.dgcam.DgCamActivity}: java.lang.RuntimeException: setParameters

Why does android logcat not show the stack trace for a runtime exception?

淺唱寂寞╮ 提交于 2019-12-03 23:30:19
An android application that I am currently developing was crashing (fixed that), due to what should have raised an IndexOutOfBoundsException. I was accessing a string in the doInBackground method of a class that extends AyncTask, from the variable arguments parameter (ie String...). I was accidentally accessing index 1 (not 0) of a one element variable argument string (mildly embarrassing...). When the application first crashed I looked at my logcat, (and many times again to confirm that I wasn't insane) and there was no stack trace for a RuntimeException to be found. I crash my phone quite

RuntimeException (Chromecast)

只愿长相守 提交于 2019-12-03 09:42:32
I try to configure Chromecast but got RuntimeException and don't understant the reason. Here are logs from Fabric: Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{... .activity.TVActivityPhone}: java.lang.RuntimeException: com.google.android.gms.dynamite.DynamiteModule$zza: Remote load failed. No local fallback found. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2677) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2747) at android.app.ActivityThread.access$900(ActivityThread.java:187) at android.app