是否可以计算设备和 iPhone 之间的距离,或者至少了解强度,以便我可以检查距离是否随着移动而变小或变大。我想建立某种系统,可以更容易地在近距离范围内找到“丢失”的东西。
这样的事情可能吗?如果是这样,最好的方法是什么。
我假设两个设备之间没有障碍。
我试图隐藏我的 .htaccess 文件,所以每个人都不能在他们的浏览器中读出它。
我的 .htaccess 文件位于:http : //businessgame.be/.htaccess 正如您所见,您仍然可以将其读出。
我尝试添加以下内容:
# secure htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>
Run Code Online (Sandbox Code Playgroud)
并且
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
</FilesMatch>
Run Code Online (Sandbox Code Playgroud)
但它似乎都不起作用。这真的很奇怪。我做错了什么吗?
我正在为 Samsung Gear 开发 Tizen Web 应用程序。(使用 Tizen 2.4)
目前我尝试添加一个功能,允许用户通过手表打开手机上的链接。因此,当他按下按钮时,手机的默认浏览器中将打开一个 URL。我注意到其他智能手表应用程序也有此功能。
浏览这些论坛后,我找到了一个代码示例:
var appControl = new tizen.ApplicationControl('http://tizen.org/appcontrol/operation/view',
'https://www.tizen.org', null, null, null, null);
tizen.application.launchAppControl(appControl, null, function() {
console.log('launch application control succeed');
}, function(e) {
console.log('launch application control failed. reason: ' + e.message);
}, null);
Run Code Online (Sandbox Code Playgroud)
但是,当我尝试运行它时,出现以下错误:"launch application control failed. reason: No matched application found."
我的应用程序在其配置文件中添加了以下权限:
<tizen:privilege name="http://tizen.org/privilege/application.info"/>
<tizen:privilege name="http://tizen.org/privilege/application.launch"/>
Run Code Online (Sandbox Code Playgroud)