Example usage for android.content.res Configuration toString

List of usage examples for android.content.res Configuration toString

Introduction

In this page you can find the example usage for android.content.res Configuration toString.

Prototype

public String toString() 

Source Link

Usage

From source file:com.anysoftkeyboard.ui.dev.DeveloperUtils.java

public static String getSysInfo(@Nullable Context context) {
    StringBuilder sb = new StringBuilder();
    sb.append("BRAND:").append(Build.BRAND).append(NEW_LINE);
    sb.append("DEVICE:").append(Build.DEVICE).append(NEW_LINE);
    sb.append("Build ID:").append(Build.DISPLAY).append(NEW_LINE);
    sb.append("changelist number:").append(Build.ID).append("\n");
    sb.append("MODEL:").append(Build.MODEL).append(NEW_LINE);
    sb.append("PRODUCT:").append(Build.PRODUCT).append(NEW_LINE);
    sb.append("TAGS:").append(Build.TAGS).append(NEW_LINE);
    sb.append("VERSION.INCREMENTAL:").append(Build.VERSION.INCREMENTAL).append(NEW_LINE);
    sb.append("VERSION.RELEASE:").append(Build.VERSION.RELEASE).append(NEW_LINE);
    sb.append("VERSION.SDK_INT:").append(Build.VERSION.SDK_INT).append(NEW_LINE);
    if (context != null && context.getResources() != null
            && context.getResources().getConfiguration() != null) {
        Configuration configuration = context.getResources().getConfiguration();
        sb.append("Locale:").append(configuration.locale).append(NEW_LINE);
        sb.append("configuration:").append(configuration.toString()).append(NEW_LINE);
    }//from  w w w. j a  v a 2 s  .co  m

    sb.append("That's all I know.");
    return sb.toString();
}

From source file:uk.ac.horizon.ug.exploding.client.Application.java

@Override
public void onConfigurationChanged(Configuration newConfig) {
    log("method", "onConfigurationChanged", newConfig.toString());
    super.onConfigurationChanged(newConfig);
}

From source file:arun.com.chromer.webheads.ui.views.Trashy.java

@Override
protected void onConfigurationChanged(Configuration newConfig) {
    super.onConfigurationChanged(newConfig);
    Timber.d(newConfig.toString());
    centrePoint = null;// ww  w  . java 2 s  .c o  m
    setInitialLocation();
    post(this::updateView);
}