runtimeexception

Why this Error occurred? java.lang.RuntimeException: ImageLoader must be init with configuration before using

泄露秘密 提交于 2019-12-18 19:08:53
问题 I have downloaded one ImageDownloader code from gitHub(from Here) Now when I am trying to download the image from my webservice I am getting this Runtime Exception "ImageLoader must be init with configuration before using". I am not able to figure it out. And this my adapter: public class CustomAdapter extends BaseAdapter { private Context context; private ArrayList<String> logo_URL; private ListContent listContent; private ArrayList< TeamDataClass> teamdata = null; private ArrayList

RuntimeException: native typeface cannot be made or memory leak for custom TextView loading font

若如初见. 提交于 2019-12-18 17:25:43
问题 There's a HUGE problem in my code wherein I am loading a font in my assets\fonts\ folder from a custom TextView class. The first problem is that it crashes on 4.0 devices with the exception Caused by: java.lang.RuntimeException: native typeface cannot be made . I was using the same process here with the method: public class MyTextView extends TextView { public MyTextView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } public MyTextView(Context context,

GdxRuntimeException on Android: couldn't load shared library 'gdx' for target

谁说胖子不能爱 提交于 2019-12-18 04:03:44
问题 I've developed a Libgdx application and tested it on my Samsung Galaxy S3(4.1.2) where it is working great. I tried to test it on a Galaxy Grand(4.1.2) but it failed. In the logcat, I found the following: caused by com.badlogic.gdx.utils.GdxRuntimeException couldn't load shared library 'gdx' for target: Linux, 32-bit This happened when changing the device only so any idea what is the cause?! The complete logcat: 05-22 20:25:01.745: E/AndroidRuntime(12725): FATAL EXCEPTION: main 05-22 20:25:01

NameError: global name 'xrange' is not defined in Python 3

梦想与她 提交于 2019-12-17 05:33:29
问题 I am getting an error when running a python program: Traceback (most recent call last): File "C:\Program Files (x86)\Wing IDE 101 4.1\src\debug\tserver\_sandbox.py", line 110, in <module> File "C:\Program Files (x86)\Wing IDE 101 4.1\src\debug\tserver\_sandbox.py", line 27, in __init__ File "C:\Program Files (x86)\Wing IDE 101 4.1\src\debug\tserver\class\inventory.py", line 17, in __init__ builtins.NameError: global name 'xrange' is not defined The game is from here. What causes this error?

Calling startActivity() from outside of an Activity?

痞子三分冷 提交于 2019-12-17 02:26:05
问题 I'm using an AlarmManager to trigger an intent that broadcasts a signal. The following is my code: AlarmManager mgr = (AlarmManager) getSystemService(Context.ALARM_SERVICE); Intent i = new Intent(this, Wakeup.class); try { PendingIntent pi = PendingIntent.getBroadcast(this, 0, i, 0); Long elapsed += // sleep time; mgr.set(AlarmManager.RTC_WAKEUP, elapsed, pi); } catch(Exception r) { Log.v(TAG, "RunTimeException: " + r); } I'm calling this code from an Activity , so I don't know how I could be

ActionBarCompat: java.lang.IllegalStateException: You need to use a Theme.AppCompat

浪尽此生 提交于 2019-12-16 22:22:06
问题 I am getting a RuntimeException on Android 2.3.5 but I am using Theme.AppCompat (res/values/themes.xml). This is the phone: http://www.gsmarena.com/samsung_galaxy_y_s5360-4117.php <!-- res/values/themes.xml --> <?xml version="1.0" encoding="utf-8"?> <resources> <style name="Theme.Styled" parent="@style/Theme.AppCompat"> <item name="actionBarStyle">@style/QueryActionBar</item> <item name="android:actionBarStyle">@style/QueryActionBar</item> </style> <style name="QueryActionBar" parent="@style

NullPointerException In Ecclipse Android Sdk Unfortunately myapp has stopped

家住魔仙堡 提交于 2019-12-14 03:56:53
问题 I am a beginner. Stuck on this NullPointerException. This is a simple program of buttons. As soon as i run as android application, the project opens and immediately gets closed by displaying unfortunately my app has stopped. 04-15 17:40:05.656: D/AndroidRuntime(599): Shutting down VM 04-15 17:40:05.656: W/dalvikvm(599): threadid=1: thread exiting with uncaught exception (group=0xb2adcd58) 04-15 17:40:05.666: E/AndroidRuntime(599): FATAL EXCEPTION: main 04-15 17:40:05.666: E/AndroidRuntime(599

Compile single .java file with two classes into two .class files [closed]

风流意气都作罢 提交于 2019-12-13 11:12:11
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I currently have a .java file set up like this: package com.ds; class c{...} public class Main{...} When I compile the file Main.java, it results in a single .class file being Main.class. When I try to run the .class with java com.ds.Main it does not work! It says it cannot find or load the class. When I try to

why this runtime is occured :Unable to instantiate activity ComponentInfo?

只愿长相守 提交于 2019-12-13 09:56:09
问题 when I try to define an spinner, this Run time exception is thrown. Why? 回答1: You have to initialize your spinner in the onCreate method, so move CARS_TYPE = (Spinner)findViewById(...); inside onCreate() after setContentView one more thing, CARS_TYPE should not be a constant, better if you call it carsType instead 来源: https://stackoverflow.com/questions/30473270/why-this-runtime-is-occured-unable-to-instantiate-activity-componentinfo

ClassNotFoundException after starting app

谁都会走 提交于 2019-12-13 09:15:52
问题 When starting my app i get this LogCat: 09-22 18:07:04.487: E/AndroidRuntime(16352): FATAL EXCEPTION: main 09-22 18:07:04.487: E/AndroidRuntime(16352): Process: com.ip.whatsmyip.dl, PID: 16352 09-22 18:07:04.487: E/AndroidRuntime(16352): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.ip.whatsmyip.dl/com.ip.whatsmyip.dl.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.ip.whatsmyip.dl.MainActivity" on path: DexPathList[[zip file "/data/app