onAttach(Context)

  • Replies:0
Andrew Aghoghovwia
  • Forum posts: 1

Nov 6, 2016, 4:45:12 AM via Website

Greetings everyone... I'm learning to program Android apps...and I'm stuck with the deprecated onAttach(Activity) method...I get a nullpointer exception..when I try doing this....
msend=(SendText) context;
onAttach....
Then later using the msend in my button listener..
msend.send(message);
Please help....don't know what to do... Thanks.

Reply