I have a mistake that I would like to see if you can help me, what happens is that in firebase I enter a long string manually which I want to be in my application
in my code I have the following to bring the data from the base, the scrolltext .Stext is where I have to put the string because if I put it manually if I get it
db = FirebaseDatabase.getInstance();
auth = FirebaseAuth.getInstance();
user = auth.getCurrentUser();
usersRef = db.getReference("Cuentos" ).child("Cuento1");
usersRef.addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(DataSnapshot dataSnapshot) {
for (DataSnapshot objetsnatshot : dataSnapshot.getChildren()){
Cuentos s1=dataSnapshot.getValue(Cuentos.class);
String stringcuento=s1.getHistory();
ScrollTextView scrolltext=(ScrollTextView) findViewById(R.id.scrolltext);
scrolltext.setText(stringcuento);
scrolltext.startScroll();
}
I also put my class to be story stories
public class Cuentos {
public String history,Nivel,Nombre;
public Cuentos(String historystring, String nivelcuento, String nombrecuento ) {
this.history = historystring;
this.Nivel = nivelcuento;
this.Nombre = nombrecuento;
}
public Cuentos() {}
public String getHistory() {
return history;
}
public void setHistory(String history) {
this.history = history;
}
}
and the error message is as follows
ALREADY TRY TO CHANGE LONG AND VISEVERSA I do not know if you can help me solve this and if you can put a long so long in firebase