I have a normal java app that sends the same object to the servlet with no problems, but when I attempt it in an android app using the same code it craps out on me at:
outputToServlet.writeObject(myobject)
Throwing the NoSuchMethodException
I’m able to send a String object no problem via the Android app…
I’ve seen the “don’t use serialization between architectures” answer, but I’d like to know why not?
Any ideas?
-chief
My guess is that your class definition contains data types that are somehow not supported by writeObject in Android. Try limiting your class to only common data types like int, string, etc.. and see if it works.