code: public static int getDpFromPixel(Context context, int pixel) {
  		float scale = context.getResources().getDisplayMetrics().density; // get display density
  
  		return (int)(pixel / scale);
  	}
docs: Converts Pixel to DP<br>
  @param pixel Pixel
  @return DP
  @see <a href="http://developer.android.com/guide/practices/screens_support.html#dips-pels">http://developer.android.com/guide/practices/screens_support.html#dips-pels</a>