|
@@ -147,8 +147,8 @@ public class MainActivity extends AppCompatActivity implements RAWebView.WebView
|
|
|
|
|
|
|
|
// String url = "http://www.dcloud.io/hellomui/";
|
|
// String url = "http://www.dcloud.io/hellomui/";
|
|
|
// String url = "http://192.168.1.151:8080/MyWeb/html/test.html";
|
|
// String url = "http://192.168.1.151:8080/MyWeb/html/test.html";
|
|
|
-// String url = "http://192.168.1.108:8081/j/crm/mobile/login";
|
|
|
|
|
- String url = "https://ra.apexshipping.com/apexcrm/crm/mobile/login";
|
|
|
|
|
|
|
+ String url = "http://192.168.1.108:8081/j/crm/mobile/login";
|
|
|
|
|
+// String url = "https://ra.apexshipping.com/apexcrm/crm/mobile/login";
|
|
|
Intent intent = getIntent();
|
|
Intent intent = getIntent();
|
|
|
if (intent != null) {
|
|
if (intent != null) {
|
|
|
String tmpUrl = intent.getStringExtra("url");
|
|
String tmpUrl = intent.getStringExtra("url");
|
|
@@ -520,7 +520,7 @@ public class MainActivity extends AppCompatActivity implements RAWebView.WebView
|
|
|
if (resultCode == RESULT_OK) {
|
|
if (resultCode == RESULT_OK) {
|
|
|
Uri uri = CameraHelper.getImageUriFromData(data);
|
|
Uri uri = CameraHelper.getImageUriFromData(data);
|
|
|
String destDir = FileManager.internalStorageTempDir(self);
|
|
String destDir = FileManager.internalStorageTempDir(self);
|
|
|
- String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmSS").format(new Date());
|
|
|
|
|
|
|
+ String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmSS").format(new Date()) + ".jpg";
|
|
|
File destF = new File(destDir, timeStamp);
|
|
File destF = new File(destDir, timeStamp);
|
|
|
|
|
|
|
|
FileManager.copyFileFromUri(self, uri, destF.getAbsolutePath());
|
|
FileManager.copyFileFromUri(self, uri, destF.getAbsolutePath());
|