Passing data through intent using Serializable

前端 未结 11 1629
借酒劲吻你
借酒劲吻你 2020-11-22 13:35

I\'ve implemented my class with serializable, but it still didn\'t work.

This is my class:

package com.ursabyte.thumbnail;

import java.io.Serializab         


        
11条回答
  •  無奈伤痛
    2020-11-22 14:01

    Create your custom object and implement Serializable. Next, you can use intent.putExtra("package.name.example", ).

    In the second activity, you read it using getIntent().getSerializableExtra("package.name.example")

    Otherwise, follow this and this page.

提交回复
热议问题