I have a parse file coming from parse.com as a string message, and I need to display it in a textView.
ParseFile file = message.getParseFile(ParseConstants.KEY_FILE);
String filePath = file.getDataInBackground().toString();
if (messageType.equals("string")){
Intent intent = new Intent(getActivity(), StringActivity.class);
intent.putExtra("file", filePath);
In the StringActivity class, I am trying to display the file in a textView:
protected TextView mDisplay;
mDisplay = (TextView)findViewById(R.id.stringDisplay);
String mess = getIntent().getStringExtra("file");
byte[] by = mess.getBytes();
String filePath =new String(by);
mDisplay.setText(filePath);
Instead of the desired string, the textView is displaying bolts.Task@12af9f90
with random numbers. How can I resolve this issue?