请大家帮忙,试图从另一个类获取数据 [英] please help, trying to get data from another class

查看:167
本文介绍了请大家帮忙,试图从另一个类获取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://pastebin.com/2vhnNJpA

有人能看看这个code对我和帮助我试图从另一个显示数据类

Could someone have a look at this code for me and help me out with trying to display data from another class

TextView tv = (TextView)findViewById(R.id.bill_periodFrom);
tv.setText(itemisedbill.getperiodFrom());
tv = (TextView)findViewById(R.id.bill_periodTo);
tv.setText(itemisedbill.getperiodTo());
tv = (TextView)findViewById(R.id.bill_cost);
tv.setText(itemisedbill.getcost());
tv = (TextView)findViewById(R.id.bill_amountUsed);
tv.setText(itemisedbill.getamountUsed());

这是我遇到的麻烦的code的一小部分,日食说,itemisedbill在空

That's a small part of the code I'm having trouble with, eclipse says that itemisedbill in null

推荐答案

我请你再次阅读的的Andr​​oid的AsyncTask ...你犯错误带参数。

I invite you to read again Android AsyncTask... You make mistakes with parameters.

这篇关于请大家帮忙,试图从另一个类获取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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