• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Trying to populate a spinner in a dialog with a cursor from an sql query

 
Tyrel Richey
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So I am making an app that has user created precepts. In the on create options menu their is an option to create the precept which loads a new activity with some forums then an apply button that writes the forums to a data base. I know this part works because I have read the data with an SQLite browser after pulling the file off the emulator. There is another option to load one of the precepts and this is where I am having issues. I am trying to populate a spinner with all of the rows of the Data Base and display it in a dialog. With the code as it is now it displays the dialog but the dialog has a spinner within a spinner its very strange. If you select the inner spinner it displays a blank spinner and if you select the outer spinner it crashes.

so here is the code in the activity class where I try and make the dialog:



Here is the DatabaseHelper classes getallEntries() method:



And finally the precetselector.xml file


Any help would be greatly appreciated this is the last thing I need to acomplish to feel good about realsing my first app the the Market.
Thank you thank you thank you
 
Tyrel Richey
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In case you need the log cat:


01-02 04:20:57.169: INFO/ActivityManager(1238): Force stopping package org.lapus.chessclock uid=10107
01-02 04:20:57.169: INFO/ActivityManager(1238): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=org.lapus.chessclock/.play }
01-02 04:20:57.200: INFO/ActivityManager(1238): Start proc org.lapus.chessclock for activity org.lapus.chessclock/.play: pid=22395 uid=10107 gids={}
01-02 04:20:57.309: WARN/ActivityThread(22395): Application org.lapus.chessclock is waiting for the debugger on port 8100...
01-02 04:20:59.630: INFO/ActivityManager(1238): Displayed activity org.lapus.chessclock/.play: 2430 ms (total 2430 ms)
01-02 04:21:19.723: WARN/ActivityManager(1238): Force finishing activity org.lapus.chessclock/.play
01-02 04:21:20.230: WARN/ActivityManager(1238): Activity pause timeout for HistoryRecord{45b7a9e8 org.lapus.chessclock/.play}
01-02 04:21:21.223: INFO/ActivityManager(1238): Process org.lapus.chessclock (pid 22395) has died.
01-02 04:21:21.223: INFO/WindowManager(1238): WIN DEATH: Window{45c3f338 org.lapus.chessclock/org.lapus.chessclock.play paused=false}
01-02 04:21:21.231: INFO/WindowManager(1238): WIN DEATH: Window{45cc25f8 org.lapus.chessclock/org.lapus.chessclock.play paused=false}
01-02 04:21:30.333: WARN/ActivityManager(1238): Activity destroy timeout for HistoryRecord{45b7a9e8 org.lapus.chessclock/.play}
 
Tyrel Richey
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alright I got the spinner working
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic