это ниже кода моя простая установка ACRA, чтобы получить craches и мои ошибки приложения, но установка ACRA оленья кожа отправить любой отчет,Android установки ACRA, чтобы получить ошибки приложений и аварий не работает
@ReportsCrashes(
/*LOCALHOST*/
formUri = "http://192.168.1.35/acra.php/acra.php",
customReportContent = {ReportField.APP_VERSION_CODE, ReportField.APP_VERSION_NAME, ReportField.ANDROID_VERSION, ReportField.PHONE_MODEL, ReportField.CUSTOM_DATA, ReportField.STACK_TRACE, ReportField.LOGCAT},
mode = ReportingInteractionMode.DIALOG)
public class EpayApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
ACRA.init(this);
}
}
Localhost PHP файл:
<?php
// Outputs all POST parameters to a text file. The file name is the date_time of the report reception
$fileName = date('Y-m-d_H-i-s').'.txt';
$file = fopen($fileName,'w') or die('Could not create report file: ' . $fileName);
foreach($_POST as $key => $value) {
$reportLine = $key." = ".$value."\n";
fwrite($file, $reportLine) or die ('Could not write to report file ' . $reportLine);
}
fclose($file);
?>
ввода http://192.168.1.35/acra.php/acra.php
может создать пустой файл и он не имеет каких-либо проблем, чтобы получить отчет, моя ACRA версия 4.9.0
мой манифест:
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<application
android:name=".AppApplication"