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
-1
votes
1 answer

When should one wrap runtime/unchecked exceptions - e.g. CompletionException

When should one wrap runtime/unchecked exceptions? What is the need? Why was CompletionException in java8 introduced? There are other examples as well in java and please include as many examples you want to include.
singhsumit
  • 964
  • 1
  • 9
  • 26
-1
votes
4 answers

Android:How to fix java.lang.RuntimeException: Unable to start activity ComponentInfo in XML

I am creating an android application consists of progress bar downloaded from here but i am getting an error called java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.milanprogress/com.example.milanprogress.MainActivity}:…
BujjiDeepu
  • 111
  • 1
  • 14
-1
votes
1 answer

How to resume paused activity

I have been trying to resume/restart an activity. Expected Result:-When the user opens App the Menu Activity opens after Splash Screen with its background music.And then one can navigate to other activities.So after moving to other activity and…
-1
votes
2 answers

ClassCastException in getApplication method

I'm getting the classcastexception in the getapplication() method. I've searched a lot of forums and similar questions but couldn't find a solution. (I've included the application in the manifest) It'll be a great a help if anyone could resolve this…
Ish
  • 194
  • 1
  • 2
  • 13
-1
votes
2 answers

java.lang.RuntimeException: Unable to start activity ComponentInfo on android versions 4.+

i'm having this error in Android versions 4.+, (specially in 4.1 and 4.3) while not in any other versions of android. The Activities and libraries (i use GooglePlayServices and YouTubePlayerAPI) are referenced in Manifest.xml file and in gradle…
-1
votes
2 answers

Runtime error at NewProductActivity.java

I need to connect and test my application with php using xampp.So that I refer this http://www.androidhive.info/2012/05/how-to-connect-android-with-php-mysql/tutorial. finally I am getting a logcat errors. I didn't know how to resolve this.For Add…
Stephen
  • 9,899
  • 16
  • 90
  • 137
-1
votes
1 answer

NoSuchElementException error

I am trying to see if the next token in a string is equivalent to map key, and adding a message to an array list. ArrayList trace = new ArrayList(); if(!element.startsWith("PRINT")) { while(st.hasMoreTokens()) { …
-1
votes
2 answers

Android: Getting nullpointer exception when spinner is added

error occured when i add spinner in oncreate method of main activity, if i remove those lines everything is fine... MainActivity.java package com.vibrator; import android.annotation.SuppressLint; import android.content.res.Resources; import…
user3849690
  • 105
  • 1
  • 9
-1
votes
1 answer

(WebView)java.lang.runtimeexception unable to start activity

I am creating android application which is open a webpage using webview but on run time I got an error . This is mobile js page in which is I want to open webview. Log-cat : 06-19 00:44:25.756: I/Process(1130): Sending signal. PID: 1130 SIG:…
user3547883
  • 83
  • 3
  • 11
-1
votes
1 answer

Null Pointer Exception Unable to start Activity ComponentInfo{}

I am trying to display some countries flags(100x75) in a GridViewLayout. Here is the logcat's output. 05-21 09:46:51.357: E/AndroidRuntime(1304): FATAL EXCEPTION: main 05-21 09:46:51.357: E/AndroidRuntime(1304): java.lang.RuntimeException: Unable to…
Theo
  • 3,099
  • 12
  • 53
  • 94
-1
votes
1 answer

Why Findbugs cannot detect my code error?

I have read the bug detectors in findbugs website, http://findbugs.sourceforge.net/bugDescriptions.html I want to write a test code and use Findbugs to detect the REC error. But the findbugs cannot. Why? Could you help me to solve…
user3408277
  • 11
  • 1
  • 1
-1
votes
2 answers

Unable to instantiate activity componentinfo RunTimeException

Update below: I have this maps activity started when I click a button. I receive the below in the logcat. I have the activity added to the manifest. I have the setContentView inside the onCreate. I also have the permissions declared in the manifest.…
johnsonjp34
  • 3,139
  • 5
  • 22
  • 48
-1
votes
3 answers

iRuntimeExceptions are considered as fault or failure?

I am writing a technical paper and I am not sure whether I write them as fault or failure. Because as far as I know FAULT is an error by a programmer. This fault/error may or may not crash the program. If the fault crash the program then it is…
Dr. Mian
  • 3,334
  • 10
  • 45
  • 69
-1
votes
1 answer

java throwing runtime exception

Thread [<1> main] (Suspended (exception RuntimeException)) ActivityThread.performLaunchActivity(ActivityThread$ActivityClientRecord, Intent) line: 2180 …