learning-android / Yamba-1

Yamba app as of end of Chapter 7
Apache License 2.0
1 stars 6 forks source link

Project not posting data #2

Open asd123ea opened 8 years ago

asd123ea commented 8 years ago

Ran the project and clicked tweet but the app fails posting

QMarkYenQ commented 8 years ago

Fill out "username" and "password"

String username = prefs.getString("username", "student"); String password = prefs.getString("password", "password");

asd123ea commented 8 years ago

It wasn't filled... But I did fill out this time, and the app shows a success message but I can't see my post in the "http://yamba.newcircle.com/student/all" microblog. I thought that posting from the app should show my message in this microblog... Can you help me?

QMarkYenQ commented 8 years ago

The API_ROOT is wrong. DEFAULT_API_ROOT = "http://yamba.marakana.com/api";

change to the new one. new YambaClient( username, password, "http://yamba.newcircle.com/api" )

asd123ea commented 8 years ago

Thanks!! It worked!!