1. Home
  2. Docs
  3. Bugfender SDK for Android
  4. Integrate Bugfender with your backend and other tools

Integrate Bugfender with your backend and other tools

Bugfender lets you locate a device and look at its logs, but sometimes you will want to check certain logs coming from a different context, like your backend logs, your help desk system or an issue tracker. Bugfender provides URLs to directly access the relevant screen on the Dashboard.

Device URL

The device URL brings you to the logs of a certain device:

Bugfender.getDeviceUrl()

Calling this method on a device will give you always the same URL, as long as the application stays installed on that device.

Session URL

The session URL also brings you to the logs of a certain device, but more specifically to the logs generated during the current execution of the application:

Bugfender.getSessionUrl()

Calling this method on a device during the same execution of the app will always give you the same URL. When the application dies (for example, the operating system stopped it because it was in background), a new session URL will be generated.

Crashes, Issues and User Feedback

When sending crashes, issues or user feedback, the functions will also return a URL that you can send to your third-party tools, like an issue tracker or a help desk system.

// send an issue and get a URL for it
let issueUrl = Bugfender.sendIssue(...)

// send a crash and get a URL for it
let crashUrl = Bugfender.sendCrash(...)

// send user feedback and get a URL for it
let feedbackUrl = Bugfender.sendUserFeedback(...)

// get feedback with the UI and get a URL for it
var intent = Bugfender.getUserFeedbackActivityIntent(...)
startActivityForResult (intent, FeedbackActivity.REQUEST_CODE)

override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
    super.onActivityResult(requestCode, resultCode, data)
    if (requestCode == FeedbackActivity.REQUEST_CODE) {
        let feedbackSent = resultCode == Activity.RESULT_OK
	let feedbackUrl = data.getStringExtra (FeedbackActivity.RESULT_FEEDBACK_URL))
    } else {
        super.onActivityResult (requestCode, resultCode, data)
    }
}