ments LocationSource, AMapLoc
|
6229
|
6312
|
return;
|
|
6230
|
6313
|
}
|
|
6231
|
6314
|
|
|
6232
|
|
TelephonyManager telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
|
|
|
6315
|
TelephonyManager telephonyManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
|
|
6233
|
6316
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
|
6234
|
6317
|
int checkPermission = ActivityCompat.checkSelfPermission(getApplicationContext(), Manifest.permission.READ_PHONE_STATE);
|
|
6235
|
6318
|
if (checkPermission != PackageManager.PERMISSION_GRANTED) { // 未授权,去授权
|
|
6236
|
|
ActivityCompat.requestPermissions(MainMapActivity.this, new String[]{Manifest.permission.READ_PHONE_STATE},READ_PHONE_STATE);
|
|
|
6319
|
ActivityCompat.requestPermissions(MainMapActivity.this, new String[]{Manifest.permission.READ_PHONE_STATE}, READ_PHONE_STATE);
|
|
6237
|
6320
|
} else {
|
|
6238
|
6321
|
deviceId = telephonyManager.getImei();
|
|
6239
|
6322
|
}
|
|
6240
|
6323
|
} else {
|
|
6241
|
6324
|
int checkPermission = ActivityCompat.checkSelfPermission(getApplicationContext(), Manifest.permission.READ_PHONE_STATE);
|
|
6242
|
6325
|
if (checkPermission != PackageManager.PERMISSION_GRANTED) { // 未授权,去授权
|
|
6243
|
|
ActivityCompat.requestPermissions(MainMapActivity.this, new String[]{Manifest.permission.READ_PHONE_STATE},READ_PHONE_STATE);
|
|
|
6326
|
ActivityCompat.requestPermissions(MainMapActivity.this, new String[]{Manifest.permission.READ_PHONE_STATE}, READ_PHONE_STATE);
|
|
6244
|
6327
|
} else {
|
|
6245
|
6328
|
deviceId = telephonyManager.getDeviceId();
|
|
6246
|
6329
|
}
|
|
6247
|
6330
|
}
|
|
6248
|
|
if (!TextUtils.isEmpty(deviceId )) {
|
|
|
6331
|
if (!TextUtils.isEmpty(deviceId)) {
|
|
6249
|
6332
|
ProfileManager.getInstance().setDeviceId(deviceId);
|
|
6250
|
6333
|
}
|
|
6251
|
6334
|
}
|
|
|
@ -1205,6 +1205,20 @@
|
|
1205
|
1205
|
android:textSize="14sp"
|
|
1206
|
1206
|
tools:text="可使用本APP扫码支付" />
|
|
1207
|
1207
|
|
|
|
1208
|
<TextView
|
|
|
1209
|
android:id="@+id/window_tv_stop_cost"
|
|
|
1210
|
android:layout_width="wrap_content"
|
|
|
1211
|
android:layout_height="wrap_content"
|
|
|
1212
|
android:layout_marginLeft="15dp"
|
|
|
1213
|
android:layout_marginTop="5dp"
|
|
|
1214
|
android:layout_marginRight="15dp"
|
|
|
1215
|
android:ellipsize="end"
|
|
|
1216
|
android:maxLines="2"
|
|
|
1217
|
android:textColor="@color/orange"
|
|
|
1218
|
android:textSize="14sp"
|
|
|
1219
|
tools:text="停车费:参考价格:10元\/小时(以实际收取为准)" />
|
|
|
1220
|
|
|
|
1221
|
|
|
1208
|
1222
|
<!-- 广告 -->
|
|
1209
|
1223
|
<ImageView
|
|
1210
|
1224
|
android:id="@+id/window_iv_ad"
|
|
|
@ -39,7 +39,7 @@
|
|
39
|
39
|
<color name="tab_lv">#01b637</color>
|
|
40
|
40
|
<color name="tab_hei">#555555</color>
|
|
41
|
41
|
<color name="navpage">#FFE1E8EB</color>
|
|
42
|
|
|
|
|
42
|
<color name="orange">#FE6200</color>
|
|
43
|
43
|
|
|
44
|
44
|
|
|
45
|
45
|
|