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
0
votes
2 answers

Error while running, works fine on the build

First, this is for a school class. This is my program: import java.util.*; public class Exitearly1 { public static void main(String[] args) { Scanner kbinput = new Scanner(System.in); System.out.println("Please input your name:…
haasbury
  • 13
  • 2
0
votes
4 answers

Runtime Exception

So I am building an app that just performs AsyncTask to grab images from a website, and then I am trying to use JSON to grab text. So far I have 2 successful tutorials completed both working apps. I am now trying to merge the two so I get both. I…
user2344665
0
votes
4 answers

capturing vide on android gives runtimeException start faild: -19 on -version 4.0.1 galaxy s 2

Update1: now code makes this errors after change code to bellow: 02-20 10:43:13.624: W/System.err(5494): java.lang.RuntimeException: start failed. 02-20 10:43:13.624: W/System.err(5494): at android.media.MediaRecorder.start(Native Method) 02-20…
0
votes
1 answer

Runtime Exception and Null Pointer exception while trying to create countdown timer in android

I'm trying to design a countdown timer for my activity. Whenever I try to run the below code, there is an error coming out. I will show the logcat for more error details. 02-16 18:12:07.535: E/AndroidRuntime(550): FATAL EXCEPTION: main 02-16…
njnjnj
  • 978
  • 4
  • 23
  • 58
0
votes
1 answer

Can't create handler... on dialog creation

I am getting the error 02-11 21:40:25.326: E/AndroidRuntime(1950): java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() when trying to create a dialog. The class that I need to do this in does not…
user2005938
  • 159
  • 2
  • 2
  • 14
0
votes
1 answer

androidruntime java.lang.runtimeexception unable to start activity componentinfo java.lang.classcast exception

The app fails to launch on the emulator. it is giving many run time errors such as 1.androidruntime java.lang.runtimeexception unable to start activity componentinfo java.lang.classcast exception 2.Soundpool cannot load file etc. 3.The application…
0
votes
1 answer

How to solve these errors

I am developing 2-D game on Unity. But I am getting some errors. And I dont know how to solve these. I am newbie and taking refrence from some links. Maybe I am creating checkpoints, spawnpoints, deathzone thats why getting errors.…
0
votes
1 answer

Android MediaRecorder launch RuntimeException

With my app you can record short audio comments. final MediaRecorder recorder = new MediaRecorder(); recorder.setMaxDuration(300000); recorder.setAudioSource(MediaRecorder.AudioSource.MIC); final String path =…
fran
  • 1,119
  • 1
  • 10
  • 27
0
votes
1 answer

Android RuntimeException on setContentView

I am building an app for android, and while setting up my settingActivity and i get this error: This happens when I start the activity. Before I moved the setContentView(R.layout.activity_setting); to the start of the onCreate() function, the…
rhbvkleef
  • 214
  • 3
  • 12
0
votes
2 answers

java.lang.RuntimeException Error, Cannot figure out why

I'm getting a java.lang.RuntimeException Error in logcat for my app. It then goes on to show the error is coming from: protected String doInBackground(String... args) { // getting updated data from EditTexts gps = new…
TylerM
  • 153
  • 17
0
votes
0 answers

Is it common to receive these kinds of crashes? android.content.res.Resources$NotFoundException

Is it common to receive these kinds of crashes? This crash has affected one user from about 3000 users. This happens in my first activity in the setContentView. The device is GT-S5830 (Galaxy Ace) in 4.0.4. java.lang.RuntimeException: Unable to…
0
votes
2 answers

RunTimeException in SNMP4J agent

I have downloaded SNMP4J and I added it to buildpath of my project. Then I added some codes from http://shivasoft.in/blog/java/snmp/create-snmp-client-in-java-using-snmp4j/ and…
Naeem Baghi
  • 811
  • 2
  • 14
  • 29
0
votes
0 answers

how fix this exception on android : Fail to connect to camera service

I have bellow code for capturing video. At the first time this code works well but when I back from activity and choose capture video( I have a list at main which one of it choices is capture video) ,then gives me this…
sarah
  • 125
  • 3
  • 12
0
votes
2 answers

Error: Unable to instantiate activity Component Info

I get this error when I run my app: 12-14 12:04:42.088: E/AndroidRuntime(331): FATAL EXCEPTION: main 12-14 12:04:42.088: E/AndroidRuntime(331): java.lang.RuntimeException: Unable to instantiate activity…
0
votes
1 answer

Wicket error in loading HomePage

I wrote a wicket application using wicket archetype in wicket.apache.org But when I added my code, it didn't accept my pages and throw a run time exception: Last cause: Class org.apache.wicket.session.DefaultPageFactory can not access a member of…
Fezo
  • 183
  • 2
  • 14