• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Passing Strings into an Array Adapter.

 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just wondering if some one could help me out with this, my list view is populating from Text File, when i use...
ArrayAdapter<String> adapter = new ArrayAdapter<String>(getActivity, android.R.layout.simple_list_item1, ListItems);

but what i would like to do is get the ListView populating with the Model Class,
which would then all me to click on an element inside the list view to send the URL across to another Activity class. so i can use WebView

my Text file looks something like this
Song#Date#URL,

all in the one line


Menu_Fragment


Model

Controller
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What specific problem are you encountering implementing this? The code already seems to do somewhat similar to what you describe (except that it uses commas instead of hash marks as separators).

By the way, ignoring exceptions in code sections that do important work (like in lines 23/24 of the menuFragment class) is a bad idea.
 
reply
    Bookmark Topic Watch Topic
  • New Topic