Android Studio位置管理器在两个版本的android中的工作方式不同

时间:2018-06-10 22:27:50

标签: android android-studio locationmanager

我正在使用位置管理器处理Android Studio应用程序。

我的代码是:

<?php
$str = file_get_contents('https://externurl');

$json = json_decode($str, true); // 
echo '<pre>' . print_r($json, true) . '</pre>';
?>

我正在尝试使用Android 4.4.2和7.1.2

的两款智能手机

在4.4.2,行

[10-Jun-2018 18:12:48 America/New_York] PHP Warning:  file_get_contents(https://url): failed to open stream: HTTP request failed! HTTP/1.1 401 Unauthorized

 in /home/be/public_html/testtest/testing3.php on line 2

在未注释但在7.1.2

上崩溃我的应用程序时有效

当然有充分的理由,但我没有看到它。可能有人帮助我?

当然,这段代码还没有完成,所以它看起来有点难看......

0 个答案:

没有答案