从第一次活动,活动的第三值传递 [英] pass value from 1st activity to 3rd activity

查看:161
本文介绍了从第一次活动,活动的第三值传递的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我想从第一个活动,第三个活动传递值..
我的第一个活动是 CustomizedListview

hi i wish to pass the value from first activity to third activity.. my first activity is CustomizedListview

第二项活动是: SingleMenuItemActivity

第三个活动是: InsertionExample

在这里,我必须通过从CustomisedListView订单id值(第一个)活动InsertionExampl(三)活动...我怎样才能通过这个...我要传递的OrderID值从1日活动第二activity..but我可以;吨发展到firstactivity第三activity..please帮我...我如何开发这个..

Here i have to pass the orderid value from CustomisedListView(first)activity to InsertionExampl(third)activity...how can i pass this...i have to passed orderid value from 1st activity to second activity..but i can;t develop firstactivity to third activity..please help me...how can i develop this..

推荐答案

试试这个

 Intent intent=new Intent(CustomizedListview.this,InsertionExample.class);
 intent.putExtra("orderid",getOrderid);
 startActivity(intent);

在你的第三个活动

 Bundle bundle = data.getExtras();
 String getOrderId = bundle.getString("orderid");

这篇关于从第一次活动,活动的第三值传递的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆