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
3 answers

MapView ClassCastException

Here's the LogCat content : 02-25 15:57:42.481: E/AndroidRuntime(1327): FATAL EXCEPTION: main 02-25 15:57:42.481: E/AndroidRuntime(1327): java.lang.RuntimeException: Unable to start activity…
Kazekage Gaara
  • 14,972
  • 14
  • 61
  • 108
0
votes
2 answers

multithreading UI : exceptionininitializererror and runtime exception android

I'm trying to make multithreading but I've got this stacktrace on few smartphones (SGS2) : java.lang.ExceptionInInitializerError at com.android.bordeaux.code.model.AnnouncersContainer.setLoudArrayFromJSON_online(AnnouncersContainer.java:68) at…
eento
  • 761
  • 4
  • 20
  • 53
0
votes
1 answer

java.lang.RuntimeException: Unable to start activity ComponentInfo{...}:java.lang.ClassCastException: android.app.Application cannot be cast to

I'm creating an Android app which uses Microsoft Hawaii OCR; during the test of my app, it crashes giving me this error: 02-08 11:38:38.861: E/AndroidRuntime(4704): FATAL EXCEPTION: main 02-08 11:38:38.861: E/AndroidRuntime(4704):…
Sergio Picheo
  • 41
  • 3
  • 9
0
votes
2 answers

RuntimeException with SQLite database - Android

I tried to alter some of my file names on my laptop and I must have screwed something up with my program. The program runs fine until when it gets to the point where it needs to open the SQLite database, it crashes. It used to work fine so it has…
Matt
  • 3,882
  • 14
  • 46
  • 89
0
votes
1 answer

Java Runtime.exec() hanging

I am getting into the Defunct zombie process whenever the below code is executed. Could someone help me to resolve this issue. private static boolean executeCommand(String command) throws ClientException, IOException, InterruptedException…
af_khan
  • 1,030
  • 4
  • 25
  • 49
0
votes
1 answer

Object Animator throws Runtime Exception though everything looks okay to me. Please point out what is causing this

It was running okay before adding and object animator to animate an ImageView. But after creating an animation, it started throwing Runtime Exceptions. I can not figure out what is the problem though I know the animator is causing it, because if I…
Ahmadul Hoq
  • 705
  • 5
  • 14
0
votes
1 answer

Runtime exception/ null pointer exception

I have many activities very similar to this on and they all work but this one When the activity is opened I get these errors in the logcat. There are no visible errors in eclipse except for in the log cat so i dont know what to do. 01-01…
P Molloy
  • 21
  • 6
0
votes
3 answers

RuntimeException: Unable to resume activity. Intent getting Extras

I really don't know what's wrong: I've made function, that moves user to AddNewQuestionClass //function is in Activity Class public void wroc(String sciezka){ Intent intent = new Intent(this, AddNewQuestion.class); …
Piotrek
  • 10,919
  • 18
  • 73
  • 136
0
votes
3 answers

RuntimeException: Unable to start activity (Android)

I am working on an app and am getting a strange error. Two out of the three devices that have been used so far to test the app work perfectly when the log in button is tapped and a new activity is started. The two phones that work are both running…
localhost
  • 1,062
  • 3
  • 15
  • 35
0
votes
2 answers

Immediate crash upon launch - Android

My app is crashing immediately upon launch. I cannot figure out why. I was having other issues with this app that were solved in another thread, however, the issue I'm having now is completely different. I know my code/structure is not the most…
0
votes
1 answer

java.lang.RuntimeException: Expecting menu, got ScrollView

I have created an android application which runs perfectly in Samsung galaxy ace device. But when I run the same on HTC Desire V, it is giving FATAL EXCEPTION. Note: Samsung device is 3.5 inch screen device while HTC is 4 inch device. The error…
Shrikant
  • 153
  • 1
  • 4
  • 19
0
votes
1 answer

Android: Cannot instantiate receiver

I am developing an android application that receives SMS messages and uses this data inside the application. Because I want the SMS messages' BroadCastreceiver to close when I close the application, I have placed it inside the main activity: public…
Neko
  • 3,550
  • 7
  • 28
  • 34
0
votes
1 answer

(Android) Unable to start activity ComponentInfo: java.lang.NullPointerException

I have a problem, I get RuntimeException everytime I try to start a new activity with this code: public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.menu_add: startActivity(new Intent(this,…
NiPfi
  • 1,710
  • 3
  • 18
  • 28
0
votes
0 answers

How to print Runtime Exception to catalina.out in Tomcat?

This problem bother me quite a lot. When runtime exception, like Null Pointer or Incompatible Class, happens, my tomcat always quit silently, leaving nothing in log. This make debugging much harder. So I wanna these runtime printed into…
qiuxiafei
  • 5,827
  • 5
  • 30
  • 43
0
votes
1 answer

RuntimeException when saving a photo in Android app?

I tried out this code: public class pantalla8 extends Activity { private static final int CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE = 100; private Uri fileUri; public static final int MEDIA_TYPE_IMAGE = 1; public void onCreate(Bundle…
alois.wirkes
  • 369
  • 2
  • 7
  • 20