last day (14 days later) » 

2:17 PM
0
A: Using the following code I am unable to raise list view using simplecursoradaptor

Kesh1234Do the following changes, you will have a list view displayed, create a new xml file with name of your choice. You need only one item in your list view as per your requirement hence, you can give a text view to the new xml file as shown below: // Defining single row of list view: custom_row.xml: <

 
DId accordingly.Same problem persists.
 
what is the error? Then error is in database query...
 
The error: Unfortunately apps has stopped working.
I have data in table. If I use toast I am able to list the 35 names.
 
That error you get in emulator, in log cat? change the database initialisation, you are not writing any thing to database, you are reading from database, change getWritableDatabase() to getReadableDatabase(), check my edit.
 
I get the error in device. As told I have also used getReadableDatabase().
 
2:17 PM
You will also get an error message in log cat, are you using eclipse or Android studio?
 
I use Android studio.Will the error appear in log cat?
 
Yes definitely, as soon as you get the message in the emulator, you will get crash report in log cat screen of Android Studio. Copy the report and paste it here..
 
In emulator also same problem. Gradle build is success. I dont see the logcat.
 
In search box type logcat you will get a window. In google type "How to get logcat window in android studio" you will get.
 
The log cat screen is blank. Same error repeats.
 
2:17 PM
Do one thing close the emulator and re run the application.
 
I did like that but no detail in logcat,only blank.
 
You should and you will, restart the log cat when you get a blank screen, check in google what to do when log cat appears blank..
If you do not give the log cat we cannot solve this issue.
 
Here is the logcat when I used USB device in android studio:
03-19 14:55:38.106 181-181/? W/ADB_SERVICES﹕ LS(7013): bound to 'shell:logcat -v long' via 12 03-19 14:57:03.916 181-181/? W/ADB_SERVICES﹕ create_local_service_socket() name=shell:logcat -v long 03-19 14:57:03.916 181-181/? W/ADB_SERVICES﹕ service_to_fd() name=shell:logcat -v long 03-19 14:57:03.917 181-181/? W/ADB_SERVICES﹕ LS(7014): bound to 'shell:logcat -v long' via 12 03-19 14:57:29.108 649-11546/? V/Provider/Settings﹕ from settings cache , name = logcat_for_data_app_crash , value = null
 
Can you please copy the complete logcat and paste it in your question, there will be a exception like NullPointerException and it will tell in which line the exception has occurred and it will tell the reason why the exception has occurred, it will help us a lot to solve the problem. Please post the complete logcat in the question, you can refer to other questions to see how they have posted the logcat.
 
Again the logcat is not giving details. Once I get it I will post it here. Meanwhile if possible please try to sort out using the above log details. Earlier there was totally 14lines only in the logcat. I copied the last 6 and posted here because I felt the last line gives some information.
 
2:17 PM
Can you please mail me your code to keshav113914@gmal.com.
 
yes i will do it
 
Post all your xml files here
 

last day (14 days later) »