How to get the data from a .txt file in and put into a single textview

  • Replies:4
  • OpenNot stickiedUnanswered
  • Forum posts: 4

Jun 23, 2016 6:01:06 PM via Website

I have been searching but have not been able to answer my question. I have place .txt files in and i want to get the data from the text files and place the text inside a textview. I am able to get the text file but unable to see it in my textview.

Any help would be greatly appreciated

Below is:

  1. "Appetizers" class
  2. code from "AppetizerRecipe" class
  3. code from "onListItemClick" in "Appetizers" class
  4. logcat - showing that text file is there and if i click on it ...
  5. text file that was just clicked on


  • Forum posts: 256

Jun 23, 2016 8:51:53 PM via Website


Where is textview.settext()in your code?

  • Forum posts: 4

Jun 23, 2016 10:31:41 PM via Website

sorry i forgot i took it out.

String recipes = textObject.getString("recipe");
  • Forum posts: 4

Jun 24, 2016 3:11:01 PM via Website

Anyone offer any advice?

  • Forum posts: 4

Jun 27, 2016 4:18:57 PM via Website

i fixed the problem.