Sunday, January 15, 2012

[android-developers] Adding a new custom method to the Auto Generated RPC Service

I have been trying to get my head around the IO session listed below.
http://bradabrams.com/2011/05/google-io-session-overview-android-app-engine-a-developers-dream-combination/

Everything seems straight forward till I tried to create my own custom
method in the auto generated CloudTasksService class. eg I want to add
a method like

public static boolean doesTaskExist( Task task )
{
return true/false if tasks exists or not
}

Problem is how do I get this method to be callable from the client? On
the client side the Auto generated code, when you ask the Google
plugin to create the RPC service, works fine for me but now I want to
add a new method manually on the server side, which I have done, but
how do I modify the TaskRequest class to allow my client to call this
method? The problem I see is the TaskRequest is created by the
factory. Do I have to implement all the plumbing code myself which the
Google plugin does automatically for the other methods. I just don't
want to have to be implementing code myself which can be done
automatically.
I found this thread but still can't get the client to call my new
method on the server side. See http://code.google.com/eclipse/docs/appeng_android_tuning.html

Rgds

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment