How to pass an object to another Activity

Asked

Viewed 706 times

1

    public class Despesa
    {
        private long id ;
        private Date data;
        private String local;
        private String endereco ;
        private String cnpj ;
        private LinkedList <Item> itens;
        private String URL ;

        public void buscarDespesa (Classificacao classificacao)
        { 

        }

        //MAIS OUTROS MÉTODOS


    }

    public class Item
    {
        private int id ;
        private Double preco;
        private String produto;
        private Classificacao classificacao;
        private Despesa despesa ;
        private Boolean isChecked ;
    }

public class Classificacao
{
    private int id ;
    private int cor ;
    private String nome ;
}

Considering the gets methods and sets and constructor, how do I pass an Expense from one Activity to another on Android ?

  • If it is not of this must be of some other. If it is not of any, it is a very canonical question.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.