开发者

Android: Can't use getIntent [closed]

开发者_开发技巧 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 9 years ago.

I can't use getIntent()..

What else do I need to use getIntent(), What I want to do, is retrieve data from the parent activity. and I have put some values,

Do I need to declare Intent?

getIntent.getExtras().getString("CallerClass");


getIntent().getExtras().getString("CallerClass");

You were missing a couple of parenthesis.


You code should work, assuming you're calling it from an activity class.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜