草庐IT

link-checking

全部标签

android - phonegap jquerymobile : how to open external links via Android Browser

我正在Android中使用PhoneGap和JqueryMobile开发一个项目。现在我需要通过Android浏览器打开一个外部链接。我只是写window.location.href("http://stackoverflow.com")或window.open("http://stackoverflow.com")App完全没有回复?请告诉我原因并帮助我。谢谢。 最佳答案 你需要使用navigator.app.loadUrl('http://stackoverflow.com');编辑PhoneGap的某些代码始终需要特定于设备。

android - 谷歌浏览器无法在 Android 上的 Deep Link 上打开应用程序

GoogleChrome不会在DeepLink上启动我的应用程序,但是,如果我从Firefox运行它,该应用程序就会启动。我使用“onkat://”作为示例,因为我只想首先启动应用程序。以下是我的AndroidManifest.xml中的代码有什么想法吗?如果GoogleChrome在Intent-filter中需要更多内容?或解决方法。我在多个设备上进行了测试,除了Chrome,当我简单地输入“onkat://”时,其他浏览器运行我的应用程序观察:我认为GoogleChrome浏览器一般不支持DeepLink。即使是Facebook深层链接也无法在其上运行,但它可以在其他浏览器(fb

android - 在 Android 上 react native Linking.getInitialUrl 总是调用

我有一个React-Native应用程序,它包含以下代码(这里是App.js,应用程序入口点),用于管理Android上的深层链接。Linking.getInitialURL().then((deepLinkUrl)=>{if(deepLinkUrl){manageDeepLink(deepLinkUrl);}else{Navigation.startSingleScreenApp('rootScreen');}});这里的问题是每次我启动我的应用程序时都会调用getInitialURL,无论是从深度链接还是正常情况下,每次它都包含空的deepLinkUrl参数。我已经在Android

android - Simple List Item Checked 在点击时检查多个项目

好吧,我正在制作一个简单的待办事项列表应用程序,它从一组字符串数组中读取项目,并将它们显示在ListView中作为simple_list_item_checked。一切正常,我已经设置了onClickListener,所以它会检查我正在点击的内容,但是,当我点击一个项目时,它还会检查项目8项,重复。(即我点击最上面的项目,它得到一个检查,第8个项目被检查,然后8个被检查,等等)这是主要Activity的代码:packagecom.disneyland;importandroid.app.ListActivity;importandroid.os.Bundle;importandroid

安卓 : click link in a page within web view

我在androidwebview中包含了一个web应用程序,网页中有一个链接可以打开其他网站,单击该链接时,第一次单击它可以正常工作,但是第二次单击该网站时没有找到,代码是:@OverridepublicbooleanshouldOverrideUrlLoading(WebViewview,Stringurl){if(url.contains("somesite")){Intenti=newIntent(Intent.ACTION_VIEW,Uri.parse(url));startActivity(i);returntrue;}else{view.loadUrl(url);retur

android - 我怎么玩彩信://link in android media player

我想在我的安卓应用程序中播放这个radio:http://www.voadeewaradio.com/上面写着“LIVEAUDIO”我进入那个页面的源代码,我找到了播放radio的链接,它的.asx格式:LiveAudio我使用CocsoftStreamDown将.asx格式转换为普通的url:port,然后将被读取player.setDataSource("mms://a1314.l211036239.c2110.g.lm.akamaistream.net/D/1314/2110/v0001/reflector:36239");如您所见,CocsoftStreamDown为我提供了上

javascript - react native : Is there any way to check if the file exists in android_asset folder or not?

我需要像这样检查文件夹中的文件是否存在:file:///android_asset/contents/my.html我试过使用react-native-filesystem插件componentWillMount(){asyncfunctioncheckIfFileExists(){constfileExists=awaitFileSystem.fileExists('file:///android_asset/contents/my.html')console.log(`fileexists:${fileExists}`)}}我确信my.html文件在那里,但我在fileExists

android - 如何在 android 中使用 Google Place Check-Ins

我使用GooglePlacesAPI检索特定位置及其周围的地点。通过解析xml文件,我得到了所需的位置及其详细信息。我需要签到一个特定的地方。我不知道如何通过HttpPOST方法请求。这是我必须提出的要求。place_reference——我从place请求中得到的引用。api_key--我的apikey。POSThttps://maps.googleapis.com/maps/api/place/check-in/xml?sensor=true_or_false&key=api_keyHTTP/1.1Host:maps.googleapis.complace_reference我使用

Android:当网站包含以下内容时如何下载 RSS:link rel ="alternate"type ="application/rss+xml"

我正在做一个RSS相关的应用。我希望能够下载仅给出包含以下内容的网站URL的RSS(xml):linkrel="alternate"type="application/rss+xml"例如,http://www.engaget.com来源包含:我假设如果我将此站点作为RSS应用程序打开,它会将我重定向到http://www.engadget.com/rss.xml页面。我下载xml的代码如下:privatebooleandownloadXml(Stringurl,Stringfilename){try{URLurlxml=newURL(url);URLConnectionucon=ur

android - git - 使用 Gradle 构建将远程 git 代码 check out 到 Android Studio 导入的项目中

我有一些代码已导入到AndroidStudio中。它现在有一个Gradle构建(以前没有)。我现在需要执行gitpull。但是,鉴于目录结构略有变化,我不确定如何继续进行。app/src/main下的AndroidStudio目录结构与原来的类似,例如:安卓工作室[main]$lsAndroidManifest.xmlassetsjavares[main]$lsjava/LICENSE.txtREADME.mdcom原创$lsAndroidManifest.xmlREADME.mdresLICENSE.txtassetssrc$lssrc/com在com下它非常相似,除了反向域路径略有