Android 5 Lollipop compatibility

This commit is contained in:
M66B
2018-12-09 18:49:52 +01:00
parent be415c6a5f
commit ea895040f5
16 changed files with 85 additions and 48 deletions

View File

@@ -922,7 +922,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
os = new BufferedOutputStream(new FileOutputStream(file));
int size = 0;
ConnectivityManager cm = context.getSystemService(ConnectivityManager.class);
ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo ani = cm.getActiveNetworkInfo();
size += write(os, "active=" + ani + "\r\n\r\n");