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

  • Replies:4
LizG
  • 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 parse.com 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. parse.com "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

image
image
image
image
image

Reply
Vladimir S.
  • Forum posts: 266

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

Hello,

Where is textview.settext()in your code?

LizG

Reply
LizG
  • Forum posts: 4

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

sorry i forgot i took it out.

String recipes = textObject.getString("recipe");
mRecipe.setText(recipes);

Reply
LizG
  • Forum posts: 4

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

Anyone offer any advice?

Reply
LizG
  • Forum posts: 4

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

i fixed the problem.

Reply