Vote count: 0 I am trying to create a URL but it seems that when I create the URL it isn't created with the full path. Creating the URL url = new URL("https://api.plivo.com/v1/Account/" + authID + "/Message/"); When I get the URL path System.out.println(url.getPath()); The result is: I/System.out: /v1/Account/XXXXXXXXXXXXXXXX/Message/ Does anyone know how can I can solve this? asked 16 secs agoGuiDupas Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am making an android app in which user can download PDF and also can view it, I want to ask that how to make view option. asked 45 secs agoPrashant Jha Let's block ads! بخوانید...
ادامه مطلبVote count: 0 As I understand, there are two ways to inject JS execution onto current page in Android webview. I'm wondering if there are pros/cons of one over the other except that webview.evaluateJavascript(...) provides a call back? Thanks. asked 3 mins agohixhix Let's block ads! بخوانید...
ادامه مطلبVote count: 0 How to create image file in android from dataURL which is generated using JavaScript data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEBLAEsAAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT.......== asked 3 mins agosaikumar Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have a web view and when it is loading URL, it is already zoomed in with some percentage. i.e. user has to scroll horizontally to see the entire content. I want to load the web page with minimum zooming size. i.e. user caot be zoom out anymore at the time of loading. I tried below, but it is showing the entire page in the web view at once. ultimately I want to fit the web page horizontally. webView.getSettings().setLoadWithOverviewMode(true); webView.getSettings().setUseWideViewPort(true); asked 1 min agocreative Pro Let's block ads! بخوانید...
ادامه مطلبVote count: 0 when ruing this code on port 80 it String regurl ="http://10.0.2.2/webapp/register.php"; String loginurl ="http://10.0.2.2/webapp/login.php"; BUT when i changed the port number in the httpd.conf from 80 to 7080 the application stopped.. what should i do? asked 46 secs agoNour Malkawi Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I want to get XML data from the web server https://ruralfire.qld.gov.au/bushfirealert/bushfireAlert.xml However, I can't do it because my codes always have an error "javax.net.ssl.SSLHandshakeException: Coection closed by peer". And my InputStream is always null, so I can't do anything with it (such as parsing). I ensure that the problem is in my coection but I don't know how to solve it. This is my code in coecting to the web server: private InputStream downloadUrl(String urlString) throws IOException { URL url; url = new URL(urlString); InputStream is = null; try { HttpsURLCoection con = (HttpsURLCoection)url.openCoection(); is = con.getInputStream(); } catch (MalformedURLExc...
ادامه مطلبVote count: 0 So I am making a test login app so I can use look at how the app and the server are behaving together. So I have three endpoints that I am working with. All three download json file so I can just print that out no problem. The issue is they all require a user name and password. I got the first one to download no problem and it works perfectly. I am using the androids built in authenticator in my httpClass to deal with this. All I have to do is pass my useame and password to it and it works just fine. Another endpoint is going to check if the user can login into the server. This also retus a json. It also requires a useame and password. but it will not work with the authenticato...
ادامه مطلبVote count: 0 I want to load image from url by glide and then I need cache this image in another url for exmaple load image from http://www.google.com/Image/pic1.jpg and then image cached by glide in this url http://www.myaddress.com/Image/pic2.jpg Is there any solution to do this. thanks asked 3 mins agoMehdi FarokhTabar Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I want to pass some parameters to a php script sitting on a webserver. The url is http://tom.byethost3.com/gcmapp/gcm.php?shareRegId=true. On the php script side, it is supposed to detect with GET that shareRegId is not null and then gather the other information via POST.A text file will then be generated. I have tested this with my MAMP server and it works. However, whenever I execute this from the app, nothing happens, I still am successful in contacting the GCM server and getting a registration ID but I can't seem to trigger the url at all. This is the script //Get Reg ID sent from Android App and store it in text file if(!empty($_GET["shareRegId"])) { //$gcmRegID = $_GET["s...
ادامه مطلبVote count: 0 This is code: @Override protected DVLAInformation doInBackground(String... params) { try { Intent intent = getIntent(); String dvlaNumFin = intent.getStringExtra("dvlaNumber"); final URL url = new URL("https://dvlasearch.appspot.com/DvlaSearch?licencePlate=" + dvlaNumFin + "&apikey="); HttpURLCoection coection = (HttpURLCoection) url.openCoection(); coection.setRequestMethod("GET"); coection.setRequestProperty("USER-AGENT", "Mozilla/5.0"); coection.setRequestProperty("ACCEPT-LANGUAGE", "en-US,en;0.5"); BufferedReader br = new BufferedReader(new InputStreamReader(coection.getInputStream())); String line; StringBuilder responseOutput = new StringBuilder(); while ((line = br.readL...
ادامه مطلبVote count: -1 I'm getting exception while hitting a url from android app. I have added Inteet permission to the app's manifest. URL url = new URL("www.example.com?query=abcd"); HttpURLCoection urlCoection = (HttpURLCoection) url.openCoection(); urlCoection.coect(); urlCoection.discoect(); This is stacktrace of exception asked 2 mins agoHarsh Srivastava Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am developing an application in which i want to share a custom link with the intent as: Intent intentShare = new Intent(Intent.ACTION_SEND); intentShare.setType("text/plain"); intentShare.putExtra(Intent.EXTRA_TEXT, "http://my_ip_address/abc/ayz/no/10"); try { startActivity(Intent.createChooser(intentShare, "Select an action")); } catch (android.content.ActivityNotFoundException ex) { // (handle error) } Issue is: I can share the link as a text to whats app etc. But it share as text, not as link on tap of which it opens in browser. What i am missing, or what should i do to complete the task? Please guide me. asked 3 mins agoManoj Fegde This entry passed through the Full-Text ...
ادامه مطلب