1. Are you ready for the Galaxy S20? Here is everything we know so far!

sqlite db question

Discussion in 'Android Development' started by gstein1231, Aug 11, 2012.

  1. gstein1231

    gstein1231 Newbie
    Thread Starter

    Here is what I am trying to do and would like some advice on the best methods to do it:

    - have a database that contains a word, and the name of an image file associated with that word.
    - the words from the database will be displayed in a listview
    - when the word is selected, a new activity will start displaying the word and the image in an image view.

    Would it be best to store the terms in an array and have the list view populate from this array and then pull from the database onitemclick? Or can the list view be populated with the terms from the database?

    Will android be able to display the image if the name of the file is stored in the db?

    1. Download the Forums for Android™ app!


  2. Unforgiven

    Unforgiven ...eschew obfuscation...

    I've moved this to the Application Development forum so you get some better eyes on it.:)

Share This Page