Exception or error: As you know using the whatsapp url scheme on iphone i can create the following link: href=”whatsapp://send?text=blahblah” this is possible due to the url scheme support on ios. im try to create the similar effect for android devices. (but no threw android app, just a normal html page). to my understanding it …
Tag: url
javascript – PhoneGap Build: how to open external url in device browser on Android?-ThrowExceptions
Exception or error: External URL’s don’t open in the system’s browser in my PhoneGap Android application. I’m using PhoneGap Build 2.3.0. According to the Cordova documentation I used target ‘_system’: window.open(‘http://www.myurl.nl’, ‘_system’); In my config.xml I have: <plugin name=”InAppBrowser” value=”org.apache.cordova.InAppBrowser” /> <access origin=”*” browserOnly=”true” /> But still the links open in my apps webview. How …
android – How to handle intent:// on a webView URL?-ThrowExceptions
Exception or error: I’m currently developing an android app with a webView. On some urls I need to use the shouldOverrideUrlLoading method, which is pretty straight forward : if(url.startsWith(“something”)){ //do something return true; } My problem: Some URLS, on google search for example, have the following URL scheme : intent://en.m.wikipedia.org/wiki/Test_cricket#Intent;scheme=http;package=org.wikipedia;S.browser_fallback_url=https%3A%2F%2Fwww.google.pt%2Fsearchurl%2Fr.html%23app%3Dorg.wikipedia%26pingbase%3Dhttps%3A%2F%2Fwww.google.pt%2F%26url%3Dhttps%3A%2F%2Fen.m.wikipedia.org%2Fwiki%2FTest_cricket;S.android.intent.extra.REFERRER_NAME=https%3A%2F%2Fwww.google.pt;launchFlags=0x8080000;end I’ve tried using : Intent …
android – Matching a url pattern in <intent-filter>-ThrowExceptions
Exception or error: I’d like one of my activities to pick up a particular url. The pattern is: http://www.example.com/abc123/foo/xyz789 The path components “abc123” and “xyz789” can be any sequence of alpha-numerics, length > 1. Doing this in my manifest: <activity> <intent-filter> <action android:name=”android.intent.action.VIEW” /> <category android:name=”android.intent.category.DEFAULT” /> <category android:name=”android.intent.category.BROWSABLE” /> <data android:scheme=”http” android:host=”example.com” android:pathPattern=”/.*/foo/.*” /> …
java – After upload a file in Android Firebase Storage how get the file download Url? getDownloadUrl() not working-ThrowExceptions
Exception or error: In my new android firebase project, I used com.google.firebase:firebase-storage:16.0.1 library. I get the following Error: I opened another project that had library firebase-storage:15.0.2 and taskSnapshot.getDownloadUrl(); which worked on that project. but after using latest dependency library it’s not working. Now, how can I get the file URL? Any way to get the …
android share image from url-ThrowExceptions
Exception or error: I want to share an image using the code: Intent sharingIntent = new Intent(Intent.ACTION_SEND); Uri imageUri = Uri.parse(“http://stacktoheap.com/images/stackoverflow.png”); sharingIntent.setType(“image/png”); sharingIntent.putExtra(Intent.EXTRA_STREAM, imageUri); startActivity(sharingIntent); I made a button that call the code above. The share intent open but I got if I click on “Share by MMS”: “cannot add this picture to your message”. …
java – How to disable SSLv3 in android for HttpsUrlConnection?-ThrowExceptions
Exception or error: We wrote client application in android which connects with https servers using HttpsUrlConnection apis. Due to Poodle vulnerability, we need to disable SSLv3 from the list of enabled protocols while invoking any request. We followed the guidelines captured by oracle and added following line before invoking url connection java.lang.System.setProperty(“https.protocols”, “TLSv1”); This solution …
Android: Managing different server URL for development and release-ThrowExceptions
Exception or error: I am developing an Android application that interacts with server via REST APIs. Obviously I need to use different URL for development and release builds. Commenting and un-commenting code is very tedious and error pron. Which is the best way to handle this situation? Using different build types in gradle file is …