Android Distance Calculate getDisplay(Activity activity)

Here you can find the source of getDisplay(Activity activity)

Description

get Display

License

Open Source License

Declaration

static public Display getDisplay(Activity activity) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import android.app.Activity;
import android.content.Context;

import android.view.Display;
import android.view.WindowManager;

public class Main {
    static public Display getDisplay(Activity activity) {
        WindowManager wm = (WindowManager) activity
                .getSystemService(Context.WINDOW_SERVICE);
        return wm.getDefaultDisplay();
    }/*ww  w. j a  v  a 2s. co m*/
}

Related

  1. fetchRawEte(boolean useBearing, double distance, double speed, double bearing, double heading)
  2. distance(double lat1, double lon1, double lat2, double lon2, char unit)
  3. computeSpeed(int distance, long duration)
  4. getClosestStore(ArrayList storeIds, SparseArray distanceMap)
  5. toDistanceSearchUri(Uri contentUri, Location location, double distance)