문제

BugSense work perfect on my application but i want to make sure if it is running? I cant find any why to do this?

I imagine something like this:

if (BugSenseHandler == null) {
   BugSenseHandler.initAndStartSession(this, "API KEY");
}

Thanks..

도움이 되었습니까?

해결책

I'm Kostas, the Android developer of BugSense.

If you use the initAndStartSession method, BugSense will be running until the application get's out of the stack. More info on tasks and back stack here.

That's why we recommend to place the initAndStartSession method at the first (starting) activity of your application.

There is absolutely no problem in using the initAndStartSession method in every onCreate method of your activities, you can also put it in every onResume too, we've already taken care of this possibility. If you want to be 100% sure that BugSense is running, you can go this way.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top