Android: Can't use getIntent [closed]
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.
精彩评论