encounter Connection refused Error of .

AndroidManifest.xml  Add... To the file :

// network right 
<uses-permission android:name="android.permission.INTERNET" />
// Vibration authority
<uses-permission android:name="android.permission.VIBRATE" />
// External memory permissions
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

PS:

There is another case , I'm stupid ! Accidentally hit flight mode .

in other words , No network , I will also report this error !!!

Android Connection refused More articles about

  1. android abnormal : java.net.ConnectException: localhost/127.0.0.1:8080 - Connection refused

    android When the mobile phone downloads files , The following exception was reported : java.net.ConnectException: localhost/127.0.0.1:8080 - Connection refused Simulator ...

  2. [ turn ]android Access the network :java.net.ConnectException: localhost/127.0.0.1:8888 - Connection refused

    This pair just learned to tomcat It's very important to simulate the local server sending the request ! from :http://wing123.iteye.com/blog/1873763 describe : When doing the registration function , To the local server :127.0. ...

  3. 【android】java.net.ConnectException: localhost/127.0.0.1:8080 - Connection refused

    Debugging through android simulator Simulator Links localhost perhaps 127.0.0.1, Because I built... On the computer apache, My code is probably URL url = new URL(urlStrin ...

  4. Android Application error Connection refused Handle

    In use Android test JSON When it comes to data analysis , Reported such an exception : java.net.ConnectException: localhost/ - Connection refused It turns out that the simulator defaults to ...

  5. Android Error in network request Connection refused Handle

    In use Android test JSON When it comes to data analysis , Reported such an exception : java.net.ConnectException: localhost/ - Connection refused It turns out that the simulator defaults to ...

  6. android 127.0.0.1/localhost connection refused, It should be used on the simulator 10.0.2.2 Visit your computer this machine

    Debugging through android simulator Simulator Links localhost perhaps 127.0.0.1, Because I built... On the computer apache, My code is probably URL url = new URL(urlStrin ...

  7. Android Development — Error log 1:W/System.err: java.net.ConnectException: Connection refused

    W/System.err: java.net.ConnectException: Connection refused When the front desk visits the back desk , Access denied :W/System.err: java.net ...

  8. 【 resolved 】gradle project refresh failed:connection refused

    git On clone One Gradle project , Use AS Of gradle sync An error is as follows : Error:Connection refused (Connection refused) reason : Local gradle edition ...

  9. VNC connect:Connection refused(10061)

    stay Windows Use on the machine VNC Viewer visit Linux The server , Sometimes "connect:Connection refused(10061)" This mistake , The cause of this error is ...

Random recommendation

  1. iPhone4 Next window The height of each part

  2. Custom list dl The reason and occasion of using

    Why use a custom list ? dl and ol, ul The difference between ? Understand correctly dl The intent of the , understand dl Of " semantics " ! To know why to use dl, And when / When to use dl? dl ...

  3. KVM The virtual machine is out of memory , Adjust the parameters

    Dec :: vgfs001 kernel: tiotest_AMD_x86 invoked oom-killer: gfp_mask=, oom_adj=, oom_score_adj= Dec : ...

  4. == difference equals

    == Operators are used specifically to compare values for equality int a=10; int b=10; be a==b, return true. however , String a = new String("foo"); St ...

  5. Use T-SQL Calculate the date of the day 、 The first and last days of the week

    -- Date of the day ); SET @Today = DATENAME(YEAR, GETDATE()) + '-' + DATENAME(MONTH, GETDATE()) + '-' + DATENAME ...

  6. Communication - 01.Foreword

    It's been a year since I left blogs out , There are various reasons , I think I've made some time , But we haven't seen any significant progress in other areas . Blogging is like fitness , If you don't lift the barbell a few times a day, you'll feel exhausted . Consumed a lot of physical strength , It's refreshing at the end of the day , It's refreshing. It's exciting to do everything ...

  7. category application ( Calculation nssting The number of )

    // //  main.m //  03- Classified applications // //  Created by apple on 14-3-18. //  Copyright (c) 2014 year apple. All rig ...

  8. mysql Prefix index

    Calculate the length suitable for setting the index , Until after weight removal, at a fixed value . Set the index according to the appropriate length after de duplication . Plan query

  9. Codeforces Good Bye 2015 D. New Year and Ancient Prophecy The suffix array Tree array dp

    D. New Year and Ancient Prophecy Topic linking : http://www.codeforces.com/contest/611/problem/C Description L ...

  10. CCS Memory data into pictures

    In embedded DSP In the development of image processing , It is often necessary to put DSP The image data in memory is saved , As a data set .CCS5.4 perhaps CCS3.3 All of them only support to save the original memory data, but not to store the memory data directly as a picture , In order to will CCS The saved . ...