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

Error: "Unable to start activity ComponentInfo" when call a method inside another class

I have created a simple class called "PhotoManagement" that is my actual main activity. After do that, i create another class, that extends the activity. Inside this second class i have created a method (now is empty) that i want call in the other…
Hieicker
  • 595
  • 1
  • 11
  • 29
0
votes
0 answers

Code assist for scala in eclipse throws up errors

I'm a few hours old in scala. I use eclipse , and i went to the market place and installed the scala ide plugin for eclipse. Now when i do ctrl+space , i get two pop-up error warnings , and only after closing both , i get to the usual code support…
Somjit
  • 2,503
  • 5
  • 33
  • 60
0
votes
1 answer

How to fix Exception: Failure deliviring result ResultInfo

I have an application that displays a dialog with a listview. After the user chooses an option from the listview, I will change a record using the information that the user selects. For this I thought about using the command setResult (RESULT_OK,…
Flávio Costa
  • 895
  • 5
  • 18
  • 41
0
votes
3 answers

Android throwing an exception while parsing data in list

I am parsing data through http client and parsing that data in a list using custom adapter. where data is stored in an array, but while running I am getting exception and list not visible. my code is list_item.xml
Ashish Patil
  • 471
  • 1
  • 9
  • 24
0
votes
3 answers

Why am I getting a NullPointerException in this loop?

else if(e.getSource()==button3){ JButton[] addSong = new JButton[50]; JLabel[] label = new JLabel[50]; JPanel[] smallPanel = new JPanel[50]; JPanel panel = new JPanel(new GridLayout(1,50)); for(int…
0
votes
2 answers

Android - RuntimeException on AsyncTask

I have noticed a problem on some devices where a crash occurs in an AsyncTask. It works without issue on my tablet and smartphone, but my friend had an issue on his device. Here is an example of the body of one of my AsyncTasks: protected String…
0
votes
1 answer

My android app work android 3.0 and higher. But not work 2.3

My application have Four tabs and each tabs works different activity. i fitting tabs with Program's mainactivity and the first tab get on the screen default. First tab show announcements with listview.. This apps work with Android 3.0 and higher but…
0
votes
1 answer

Unable to instantiate activity ComponentInfo with BetterPickers library

My app is throwing aRuntimeExceptionafter adding this library. Now, for example other posts suggest that I have to declare theActivityin myManifest. How can I do that with BetterPickers? here is theManifestfile of the sample app from the library,…
0
votes
1 answer

Open android image in intent causes StaleDataException

I tried using: Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse("file://" + file_to_open), "image/*"); context.startActivity(intent); or Intent intent = new Intent(); …
Amir.F
  • 1,911
  • 7
  • 29
  • 52
0
votes
3 answers

java.lang.RuntimeException:Unable to start activity ComponentInfo: java.lang.NullPointerException

I got a java.lang.NullPointerException. I can't find the problem. Log attached below. public class GPSActivity extends MapActivity { Location location; EditText editTextLat, editTexLng, editTextAddress; // overlay Geocoder coder; …
0
votes
2 answers

Android Runtime exception : An error occur while executing doinbackground

I am parsing online Xml using XmlPullParserFactory and showing the details in a listview. I have put the condition for checking internet, but sometimes it takes time to fetch data and crashes.The code which I am using is below. private void…
user1740281
  • 383
  • 2
  • 5
  • 16
0
votes
2 answers

Unable to instantiate activity:java.lang.NullPointerException

java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.joericharduz.akita/com.joericharduz.akita.MainActivity}: java.lang.NullPointerException Code is like this: Cursor cursor = null; if (inputText == null ||…
Joe Rakhimov
  • 4,713
  • 9
  • 51
  • 109
0
votes
0 answers

how to handle this run time exception

in my application i want to do the following things : i want to put a list view in a fragment and when i click on any item it should move me to other fragment this fragment is the same because i want to read the feeds for each item and show it in…
0
votes
1 answer

Failure delivering result in Android

I am loading from sdcard .vcf data and then putting it into database. I do this with this code : public void loadContactsFromSdcard() { Intent intent = new Intent(getBaseContext(), FileDialog.class); …
filipp.kowalski
  • 5,495
  • 7
  • 27
  • 45
0
votes
1 answer

AndroidRuntime excpetion while parsing Json with an AsyncTask - Foursquare venues

I'm trying to parse the foursquare venues and show them in a list. Earlier, I did it without asyncTask and ad a Runtime excpetion. So I add one, but I still have that kinf of error. I'm new on android and I don't realy understand the error. Here is…