… | |
… | |
39 | import android.os.Build;
|
39 | import android.os.Build;
|
40 | import android.os.Build.VERSION;
|
40 | import android.os.Build.VERSION;
|
41 | import android.os.Build.VERSION_CODES;
|
41 | import android.os.Build.VERSION_CODES;
|
42 | import android.util.Log;
|
42 | import android.util.Log;
|
43 |
|
43 |
|
|
|
44 | import com.zoffcc.applications.zanavi.Navit;
|
|
|
45 |
|
44 | public class Logging
|
46 | public class Logging
|
45 | {
|
47 | {
|
46 |
|
48 |
|
47 | private static final String TAG = Logging.class.getName();
|
49 | private static final String TAG = Logging.class.getName();
|
48 | public static AsyncResponse delegate = null;
|
50 | public static AsyncResponse delegate = null;
|
… | |
… | |
269 | catch (PackageManager.NameNotFoundException nnfe)
|
271 | catch (PackageManager.NameNotFoundException nnfe)
|
270 | {
|
272 | {
|
271 | builder.append("Unknown\n");
|
273 | builder.append("Unknown\n");
|
272 | }
|
274 | }
|
273 |
|
275 |
|
|
|
276 | builder.append("App type: ");
|
|
|
277 | try
|
|
|
278 | {
|
|
|
279 | if (Navit.get_fdbl())
|
|
|
280 | {
|
|
|
281 | builder.append("FD\n");
|
|
|
282 | }
|
|
|
283 | else
|
|
|
284 | {
|
|
|
285 | builder.append("PlayStore\n");
|
|
|
286 | }
|
|
|
287 | }
|
|
|
288 | catch (Exception e)
|
|
|
289 | {
|
|
|
290 | builder.append("Unknown\n");
|
|
|
291 | }
|
|
|
292 |
|
274 | return builder.toString();
|
293 | return builder.toString();
|
275 | }
|
294 | }
|
276 |
|
295 |
|
277 | private static long asMegs(long bytes)
|
296 | private static long asMegs(long bytes)
|
278 | {
|
297 | {
|