Nitin001
I hate code!
Profile
Posts: 37
Reg: Mar 24, 2014
INDORE
370
04/17/14 11:23 PM (10 years ago)

got trouble to find onResume method in activity file.

got trouble to find onResume method in activity file.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
04/18/14 12:15 AM (10 years ago)
I'll be honest with you; that's a fairly weak description of your problem. If you were to describe a little more, people could figure out what you're having an issue with. That said, if your file doesn't have an onResume, it either 1) doesn't need one (yet) 2) shouldn't have one. If the option is number 1, then consider this: If a class file doesn't have a method, then it is typical that the superclass (the 'parent') will take responsibility of that action or method. Now, if you 'need' an 'onResume' method in your class (maybe someone is telling you 'put this in your onResume' and there isn't one) then you just need to add it. ///////////////////////////////////////////////////// @Override public void onResume() { super.onResume(); BT_debugger.showIt(activityName + ":onResume"); // put whatever code you need to here } ///////////////////////////////////////////////////// Cheers! -- Smug With certain limitations, you can always 'borrow' a method from another BT class file and use it in your class, as long as you remove any 'specific' code that doesn't apply in your class.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.