Do I need to call the bugsense error handler in every action of an Android application?

In my application, there are 3 actions A, B and C. From A ("home") I can start B, and from B I can start C.

Do I need to call BugSenseHandler.setup(this, MY_API_KEY); only in A, as well as in B and C?

+7
source share
3 answers

After contacting BugSense,

Android, Feb 26 13:42 (EET): Hi, thank you for contacting us, you can put it either in the application action or in the first activity that is carried out in your project. In the documentation, we offer a second practice, because it is easier and faster for most developers.

----------------------------------------------- --- ----------------------------------------------- --- - BugSense

For me, I put it in Application Activity, and it worked fine.

+13
source

I used it in several applications, calling it in the onCreate of Application object (basically, it will catch any errors in initializing the application. It is also worth noting that v3 from the jar, I believe that the setup method is deleted and now initAndStartSession is used

 @Override public void onCreate() { super.onCreate(); BugSenseHandler.initAndStartSession(this, BUG_SENSE_API_KEY); } 
+11
source

You should call the setting only in Activity.

+2
source

All Articles