Questions tagged [runtimeexception]

RuntimeException is the superclass of those exceptions that can be thrown during the normal operation of the Virtual Machine.

RuntimeException is the superclass of those exceptions that can be thrown during the normal operation of the Virtual Machine.

1062 questions
-2
votes
2 answers

Andriod app crash and gives the error attempt to invoke virtual method on a null object reference

I'm trying to make a app like twitter and my app crashes due to the following error: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setOnClickListener(android.view.View$OnClickListener)' on a null…
-2
votes
3 answers

FATAL EXCEPTION: java.lang.SecurityException: Need ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission

I am getting this error after i am try to updated my compileSdkVersion andTargetSdkversion greater than 22. Seems like I am doing any GUI task in my doInBackground method but i am unable to figure it out. I would be much thankful for a…
-2
votes
1 answer

Isn't catching InputMismatchException false?

It is clearly stated that unchecked exceptions are not supposed to be caught wherever I read about it. However, if an input is needed, everyone has always caught it in any code I've seen. Considering it is an unchecked exception, how would you…
Haggra
  • 3,539
  • 2
  • 20
  • 28
-2
votes
1 answer

My Application crashes immediately on launch on my AVD

I have been trying my hands on this tax application on android and it crashes with errors I cant comprehend. I would like to get help on this as my previous answer could not stop the crash. Thanks so much for your time and help. My Activity here …
Fred
  • 9
  • 3
-2
votes
1 answer

Android app FATAL EXCEPTION unable to start activity

I'm a new Android programmer, I developed a project it is working before but now it is crashes when I launch my app and let the app sit for 10 minutes on my startup activity I am getting error but I am getting this error after adding view .Circle…
-2
votes
1 answer

ClassNotFoundException after starting app

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):…
-2
votes
2 answers

RuntimeException: Unable to start activity when requesting action bar

I am getting the following warning and exception: IllegalStateException This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar…
-2
votes
1 answer

Main Activity Instance sometimes Throw Run Time Exception "LinphoneActivity not instantiated yet"

I make an application with Linphone Library, I have a code to throw an exception in MainActivity like this : private static MainActivity instance; public static final boolean isInstanciated() { return instance != null; } public static final…
Redturbo
  • 1,563
  • 8
  • 22
  • 34
-2
votes
1 answer

basic: eccezione: java.lang.ExceptionInInitializerError java.lang.RuntimeException: java.lang.ExceptionInInitializerError

I am trying to write an applet that run in html page . If I run the applet in eclipse with debug as JApplet it runs fine, but if i put it in an html it has an error. Java console say : basic: eccezione: java.lang.ExceptionInInitializerError …
gpiscite
  • 23
  • 7
-2
votes
2 answers

Alternatively Printing using Multi-Threading

My Analysis of program run but it isn't happening that way:: -I created 2 threads namely Child1 and Child2 in main method. -Both the threads were then started -Child1 enters run() method as a separate thread and enters the synchronized block and…
tcp
  • 289
  • 3
  • 5
  • 15
-2
votes
2 answers

Compile single .java file with two classes into two .class files

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…
-2
votes
6 answers

NullPointerException for Android Java

I had a previous question similar to my current problem, and that was when I retrieved null values from my String arrays, now my problem is that I think I'm also getting null values from my integar arrays, but I do not know how to handle such an…
-2
votes
3 answers

How does Java efficiently check for ArrayIndexOutOfBounds?

What mechanism does Java use to efficiently check if the array element I'm trying to access is out of bounds. The one way I thought it could do it is by having metadata before the array in memory. But an if statement at each check would be quite…
user1210233
  • 2,730
  • 5
  • 24
  • 31
-2
votes
1 answer

Java Blackberry NullPointerException

I have a program that at the moment doesn't do anything other than display the time and allow the user to press a button that will lead him to a different screen which i turn will display a dialog to show a successful run (FYI the app's name is…
-2
votes
2 answers

RunTimeException android

My android app gives me this error from logcat: Caused by: java.lang.RunTimeException: Your content must have a ListView whose id attribute is 'android.R.id.list' this is my code: package com.WNF; import android.os.Bundle; import…
1 2 3
70
71