Tuesday, 15 February 2011

java - Google app engine android generated client lib functions return null -


I have a client-server system with server Java, with App Engine's in the cloud-side Android device with Java.

In order to generate a library for Android, I explained in these steps:

In the server class test:

  Public int getTest () {return 9; }  

Using Client Libs in Android:

Test Test = New Test (); Logs. E ("Test:", test.getTest () + "");

test.getTest () prints blank instead of 9.

But if I get a function with the current parameter in test class then works well. Server:

  Private Ent Ultimate; Public difference getParam () {this refund. } Public Int Set Param (Int Ultimate) {Return to this. Ultimate = Ultimate; }  

Customer:

Test Test = New Test (); Test.setParam (10); Logs. E ("Test:", test.getParam () + "");

OK test.getParam () print 10


No comments:

Post a Comment