This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context; | |
import android.util.AttributeSet; | |
import android.util.Log; | |
import android.view.MotionEvent; | |
import android.view.View; | |
import android.view.ViewConfiguration; | |
import android.view.ViewParent; | |
import android.view.ViewTreeObserver; | |
import android.widget.FrameLayout; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This functions is used to retrieve neighborhood, and regoin from known (lat, lng) coordinates | |
* the returned pattern: حي قرطبة، الرياض or الرياض if neighborhood is unknown | |
* | |
*/ | |
public static String getAddress(Context context, double LATITUDE, double LONGITUDE) { | |
StringBuilder strAdd = new StringBuilder(); | |
Geocoder geocoder = new Geocoder(context, Locale.forLanguageTag("ar")); | |
try { |