package com.android.settings;
import android.app.ActivityManager;
-import android.app.ActivityManagerNative;
import android.app.AlertDialog.Builder;
import android.content.Context;
import android.content.DialogInterface;
private void takeBugreport(int bugreportType) {
try {
- ActivityManagerNative.getDefault().requestBugReport(bugreportType);
+ ActivityManager.getService().requestBugReport(bugreportType);
} catch (RemoteException e) {
Log.e(TAG, "error taking bugreport (bugreportType=" + bugreportType + ")", e);
}