this one helps. I'm trying to pass an object via Bluetooth in my Android application. Therefore, I have to serialize it and pass it from my Activity (GameViewHandler) to my BluetoothConnectionService class. The problem is the object (Ball) can't be serialized and throws a NotSerializableExeption. , So how can I serialize my Ball
public class Ball implements Serializable
With these it helps It's not enough that the classes implement java.io.Serializable. You also have to guarantee that all fields are serializable as well (either primitives or classes that implement Serializable), and so on. If any class has a non-serializable field which is not declared as transient, serialization will fail. Your stack trace should point which class caused the problem.