+    private boolean isAppExist(String packageName) {
109
+        if (TextUtils.isEmpty(packageName))
110
+            return false;
111
+        try {
112
+            context.getPackageManager().getPackageInfo(packageName, 0);
113
+            return true;
114
+        } catch (Exception e) {
115
+            return false;
116
+        }
117
+
118
+    }
119
+
120
+    private static double x_PI = 3.14159265358979324 * 3000.0 / 180.0;
121
+
122
+    public static Double[] GCJ02ToBD09(Double gcj_lon, Double gcj_lat) {
123
+        double z =
124
+                Math.sqrt(gcj_lon * gcj_lon + gcj_lat * gcj_lat) + 0.00002 * Math.sin(gcj_lat * x_PI);
125
+        double theta = Math.atan2(gcj_lat, gcj_lon) + 0.000003 * Math.cos(gcj_lon * x_PI);
126
+        Double[] arr = new Double[2];
127
+        arr[0] = z * Math.cos(theta) + 0.0065;
128
+        arr[1] = z * Math.sin(theta) + 0.006;
129
+        return arr;
130
+    }
131
+
74 132
     @Override
75 133
     public View getAnimaView() {
76 134
         return popupView.findViewById(R.id.popup_anima);

hanyuan - Gogs: Go Git Service

説明なし

huangqimin001: 2277aedab3 :tada: Initial 6 年 前
..
error 2277aedab3 :tada: Initial 6 年 前
redis 2277aedab3 :tada: Initial 6 年 前
user 2277aedab3 :tada: Initial 6 年 前
__init__.py 2277aedab3 :tada: Initial 6 年 前