404 Error when running TicTacToe sample (Android) against sample Google App Engine project (Java) -
i set android app , google app engine backend seen in these 2 projects:
when click tictactoe-field button, triggers request 404 error: "not found"
04-09 23:11:51.115: w/tictactoe(26247): getcomputermovetask: 404 not found 04-09 23:11:51.115: w/tictactoe(26247): not found
that https://myappname.appspot.com/_ah/api/ in browser shows "not found".
here did:
- created api project on app engine console
- there created android client id com.google.devrel.samples.ttt package debug keys sha1-fingerprint
- there created web client id
- integrated android project in eclipse. updated default_root_url in tictactoe.java "https://myappname.appspot.com/_ah/api/"
- there updated value of audience in clientcredentials.java replacing string "your_web_client_id" generated web-client-id step 3
- integrated java backend project in eclipse.there updated value of application in appengine-web.xml myappname
- updated values in /spi/ids.java reflect web-client-id , android-client-id step 2 , 3
- updated value of google.devrel.samples.ttt.client_id in war/js/render web-client-id
- deployed backend google. worked great - opend https://myappname.appspot.com/ page showing correct page after deploying (servlet)
- deployed android app , tried make move in tictactoe. app crashes.
i think suspicious default_root_url set "https://myappname.appspot.com/_ah/api/" in android app whereas pages show "not found" in browser.
whats going wrong here?
thanks in advance
try test api @ https://your_app_id.appspot.com/_ah/api/tictactoe/v1/ , see if doesn't want.
lines 60-74
lines 29-31
i suspect have api url wrong, , diving in code apparent above url correct.