如何将json的对象传递给其他活动

时间:2016-11-18 16:21:50

标签: android json

我有这个json

{
"results": [{
    "gender": "male",
    "name": {
        "title": "mr",
        "first": "isidro",
        "last": "nogueira"
    },
    "location": {
        "street": "3663 rua amazonas ",
        "city": "mesquita",
        "state": "rio de janeiro",
        "postcode": 27744
    },
    "email": "isidro.nogueira@example.com",
    "login": {
        "username": "orangegoose315",
        "password": "redalert",
        "salt": "Dd3U7U03",
        "md5": "325f1e8753222facba6ee63a5e2451de",
        "sha1": "a63a0c544a956e235330b0ed76d11d3ad17c7979",
        "sha256": "ddf18ffff89684617b2c7b8c5c175b9570cb6005916d9b4f3face802bd4f13a1"
    },
    "dob": "1967-04-23 04:58:32",
    "registered": "2016-05-08 01:56:44",
    "phone": "(11) 8368-8583",
    "cell": "(17) 9743-3074",
    "id": {
        "name": "",
        "value": null
    },
    "picture": {
        "large": "https://randomuser.me/api/portraits/men/57.jpg",
        "medium": "https://randomuser.me/api/portraits/med/men/57.jpg",
        "thumbnail": "https://randomuser.me/api/portraits/thumb/men/57.jpg"
    },
    "nat": "BR"
}],
"info": {
    "seed": "5b3dff5c25caaf7f",
    "results": 1,
    "page": 1,
    "version": "1.1"
}
}

此数据仅供一位用户使用。我有50个。

我还处于学习阶段,我所做的就是我已经成功列出了一项活动中的所有用户。现在我要做的是当我点击一个用户时,它应该在下一个活动中显示它的相关细节......

List Users->Select Users->Show selected user details

我仍然不知道如何将数据发送到其他活动并显示它。

0 个答案:

没有答案