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

RuntimeException: Unable to start activity ComponentInfo{...}: android.view.InflateException

when i start my app it crashes and logcat says: 12-03 16:52:12.486 8252-8252/de.kanalmeister.presentation E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: de.kanalmeister.presentation, PID: 8252 java.lang.RuntimeException: Unable to start…
ntm
  • 731
  • 2
  • 13
  • 37
0
votes
1 answer

deciphering crash report from Google Play

I am receiving a crash report but it doesn't make sense to me. Says text may not be null. It works on any device I test with but somehow it is crashing for a few people. Latest one reported using a Galaxy Indulge (SCH-R910). Here is the…
JeffK
  • 247
  • 1
  • 5
  • 18
0
votes
1 answer

android runtimeException error inflating fragment xml file line #17

Our teacher asked us to build to activities that hold the same fragment. After a load of errors and reading things about inflating fragmentes, back stack, stateSaved; I still don't know what to do in order the second activity to charge the…
0
votes
2 answers

Unable to start activity - ComponentInfo error

This are the errors I get when I try to start my app. Can somebody see what I'm doing wrong? The LogCat 11-19 14:01:39.993: E/AndroidRuntime(4046): FATAL EXCEPTION: main 11-19 14:01:39.993: E/AndroidRuntime(4046): java.lang.RuntimeException: Unable…
ZimZux
  • 29
  • 5
0
votes
1 answer

How to solve : java.lang.RuntimeException: Unable to start activity ComponentInfo / android.view.InflateException

I get the following exception when I launch my activity. 11-16 13:44:17.893: E/AndroidRuntime(27027): FATAL EXCEPTION: main 11-16 13:44:17.893: E/AndroidRuntime(27027): java.lang.RuntimeException: Unable to start activity…
ssongahlee
  • 91
  • 1
  • 10
0
votes
2 answers

Adding a gesture in code gives NSInvalidArgumentException

While developing a demo app, I added a few gestures in XCode and they worked fine. However, adding gestures in code is giving an NSInvalidArgumentException at runtime, when gesture should be invoked. I was trying to add this gesture to an ImageView,…
0
votes
2 answers

Error on soapPrimitiveData() Can't create handler inside thread that has not called Looper.prepare()

public class MainActivity extends Activity { private EditText username; private EditText pass; private final String NAMESPACE = "http://tempuri.org/"; private final String URL = "http://122.252.200.98/fts/registration.asmx"; String user_id; String…
0
votes
2 answers

Cannot get Android Maps API working - Unable to start activity ComponentInfo

Please can someone help, I have followed every tutorial I have found on displaying the Google Maps API on an android program/device and cannot get it to work. On my latest try I'm getting a runtime error "Unable to start activity…
user2960322
  • 31
  • 1
  • 3
0
votes
1 answer

Acra restarting over and over again and freezes emulator

During some testing I managed to freeze the Emulator to the point that I have to create a new Emulator. In the below code I accidentally misspelled a class name and the Class.forName threw the RuntimeException() ClassNotFoundException. The…
Erik
  • 5,039
  • 10
  • 63
  • 119
0
votes
2 answers

android.widget.FrameLayout cannot be cast to android.support.v4.widget.DrawerLayout

My application was working fine but when i try to add a side menu on left of my Main Class, I get error on line 75 and i don't understand, please help me. line 75: mDrawerLayout = (DrawerLayout)…
jeff7
  • 107
  • 3
  • 4
  • 12
0
votes
1 answer

android - java.lang.RuntimeException

Why am I getting an java.lang.runtimeexception: Unable to instantiate activityComponentInfo {com.example.carprofile/com.example.carprofile.CarRegistraion}: java.lang.NullPointerExceprion This is my code: public class CarRegistration extends…
Student22b
  • 79
  • 3
  • 13
0
votes
5 answers

EntityNotFoundException should extend Exception or RuntimeException?

I have a method in my application service that receives the id of an entity: Document doStuff(Long documentId); In my method I'm checking that the id passed match an entity stored previously, if not it throws an exception. Now, my doubt is, is…
rascio
  • 8,968
  • 19
  • 68
  • 108
0
votes
1 answer

adding mail.jar ,activation.jar,additionnal.jar in android +Caused by: java.lang.NoClassDefFoundError:

I am beginner to android.I am creating an app that has a feature to automatically send email to another person without user intervention.So i added mail.jar,additionnal.jar,activation.jar into my project.i am developing an app for android 2.2 or…
0
votes
1 answer

Why custom RuntimeExceptions need to inherit directly from RuntimeException?

I try to create a base RuntimeException class: BaseRuntimeException extends RuntimeException with some additional functionality such as i18n. From that base class I want to create one class per type of RuntimeException. For ex., public class…
manubot
  • 290
  • 2
  • 19
0
votes
2 answers

Android ComponentInfo RuntimeException and NullPointerException

This is doing my head in, and it's probably something simple that's causing it - so I think I need a new set of eyes looking at it. All activities are defined in the manifest. I've made sure all attributes are initialised in…
Kieran
  • 314
  • 1
  • 4
  • 18