mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 13:53:54 +01:00
* Add Device Support Information to Feedback Intent #2494 * Update Device Support Information for Feedback Intent #2494 * Update Device Support Information and used common method for Feedback Intent #2494 * Optimise code for Device Support Information for Feedback Intent #2494
This commit is contained in:
parent
ad4c444c92
commit
5a9cce0f79
4 changed files with 58 additions and 16 deletions
|
|
@ -42,32 +42,50 @@ public class CommonsLogSender extends LogsSender {
|
|||
* @return String with extra meta information useful for debugging
|
||||
*/
|
||||
@Override
|
||||
protected String getExtraInfo() {
|
||||
public String getExtraInfo() {
|
||||
StringBuilder builder = new StringBuilder();
|
||||
builder.append("App Version Name: ")
|
||||
.append(ConfigUtils.getVersionNameWithSha(context))
|
||||
|
||||
// Getting API Level
|
||||
builder.append("API level: ")
|
||||
.append(DeviceInfoUtil.getAPILevel())
|
||||
.append("\n");
|
||||
|
||||
builder.append("User Name: ")
|
||||
.append(sessionManager.getUserName())
|
||||
.append("\n");
|
||||
|
||||
builder.append("Network Type: ")
|
||||
.append(DeviceInfoUtil.getConnectionType(context))
|
||||
// Getting Android Version
|
||||
builder.append("Android version: ")
|
||||
.append(DeviceInfoUtil.getAndroidVersion())
|
||||
.append("\n");
|
||||
|
||||
// Getting Device Manufacturer
|
||||
builder.append("Device manufacturer: ")
|
||||
.append(DeviceInfoUtil.getDeviceManufacturer())
|
||||
.append("\n");
|
||||
|
||||
// Getting Device Model
|
||||
builder.append("Device model: ")
|
||||
.append(DeviceInfoUtil.getDeviceModel())
|
||||
.append("\n");
|
||||
|
||||
builder.append("Android Version: ")
|
||||
.append(DeviceInfoUtil.getAndroidVersion())
|
||||
// Getting Device Name
|
||||
builder.append("Device: ")
|
||||
.append(DeviceInfoUtil.getDevice())
|
||||
.append("\n");
|
||||
|
||||
// Getting Network Type
|
||||
builder.append("Network type: ")
|
||||
.append(DeviceInfoUtil.getConnectionType(context))
|
||||
.append("\n");
|
||||
|
||||
// Getting App Version
|
||||
builder.append("App version name: ")
|
||||
.append(ConfigUtils.getVersionNameWithSha(context))
|
||||
.append("\n");
|
||||
|
||||
// Getting Username
|
||||
builder.append("User name: ")
|
||||
.append(sessionManager.getUserName())
|
||||
.append("\n");
|
||||
|
||||
|
||||
return builder.toString();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue