I have done this in the past, sharing model clssses between J2ME, Android and 
AppEngine projects.

You need a project with *pure* java classes that dont reference Android nor you 
server side classes. This is done in GWT (for web) for example. Checking your 
list of imports in those classes can reveal problems.

Then link that project (e.g. Eclipse linked projects) to your server project on 
one side, and to your client project on the other side.

I suggest you look at Google:
- App Engine Cloud connected Android project - it will generate the a project 
structure that does this.
- Cloud Endpoints. Similar, but can generate client and server code to provide 
REST CRUD interface to your data, from annotated model classes.

Both have good Google IO Videos Videos available explaining them.

At minimum you can learn from their code generated.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to