Android :: TC Failure Due To Unknown Host
Aug 12, 2010
I am running the CTS on the Arm based phone. When I tried to run the Network related test cases.I am getting the above error in the "android.core.tests.luni.net" test package and due to this error around 179 test cases are getting failed.Please help me out.Is there any environment setting issue in the setting up the target.I have connected the target with the USB to my Fedora system. additionally target have the 3G Sim connected with It.
View 2 Replies
Aug 23, 2010
I am trying to post from android to GAE, I am getting unknown host exception.
Here is my code:
CODE:.......
When I am trying to connect to localhost:8888 am getting connection refused. I donno how to go pass thru this.
View 3 Replies
View Related
Jun 12, 2009
I send files to FTP server in my application. Internet permission is set :
<uses-permission android:name="android.permission.INTERNET"/>
It works quite fine when connected with 3G/3G+. Sometimes, not very often, I get a "SocketException no route to host" or "unknown host" exception when trying to connect. When I'm connected with WIFI, it works sometimes and it's very fast, but the same error occurs very often, and when it has occurred I must restart my WiFi to be able to connect again, even with webbrowser. I use apache commons FTPClient this way:
ftpClient.connect(server, 21); ftpClient.login(user, password);
ftpClient.changeWorkingDirectory(directory); ftpClient.setFileType(FTP.BINARY_FILE_TYPE);
BufferedInputStream buffIn = new BufferedInputStream(new FileInputStream(file));
ftpClient.enterLocalPassiveMode(); ftpClient.storeFile(file.getName(), buffIn); buffIn.close();
ftpClient.logout(); ftpClient.disconnect();
Errors look like this:
06-12 11:17:32.887: ERROR/DictoSyl(3146): No route to host 06-12 11:17:32.887:
ERROR/DictoSyl(3146): java.net.SocketException: No route to host 06-12 11:17:32.887:
ERROR/DictoSyl(3146): at org.apache.harmony.luni.platform.OSNetworkSystem.connectSocketImpl
(Native Method) 06-12 11:17:32.887: ERROR/DictoSyl(3146): at org.apache.harmony.luni.platform.OSNetworkSystem.connect (OSNetworkSystem.java:125) 06-12 11:17:32.887: ERROR/DictoSyl(3146): at org.apache.harmony.luni.net.PlainSocketImpl.connect (PlainSocketImpl.java:227) 06-12
11:17:32.887: ERROR/DictoSyl(3146): at org.apache.harmony.luni.net.PlainSocketImpl.connect (PlainSocketImpl.java:199) 06-12
11:17:32.887: ERROR/DictoSyl(3146): at java.net.Socket.startupSocket(Socket.java:734) 06-12 11:17:32.887: ERROR/DictoSyl(3146): at java.net.Socket.<init> (Socket.java:157) 06-12 11:17:32.887: ERROR/DictoSyl(3146): at org.apache.commons.net.DefaultSocketFactory.createSocket (DefaultSocketFactory.java:53) 06-12
11:17:32.887: ERROR/DictoSyl(3146): at org.apache.commons.net.SocketClient.connect(SocketClient.java:162) 06-12
11:17:32.887: ERROR/DictoSyl(3146): at com.sylpheo.core.android.ftp.FtpManager.start(FtpManager.java:43)
or:
ERROR:
java.net.UnknownHostException: ftpsylpheo.sylpheo.com - ftpsylpheo.sylpheo.com at java.net.InetAddress.lookupHostByName(InetAddress.java:522) at java.net.InetAddress.getByName(InetAddress.java:336) at
java.net.Socket.<init>(Socket.java:155) at org.apache.commons.net.DefaultSocketFactory.createSocket (DefaultSocketFactory.java:53) at org.apache.commons.net.SocketClient.connect(SocketClient.java:162) at com.sylpheo.core.android.ftp.FtpManager.start(FtpManager.java:43)
It looks like having forgot something that makes connection down after several uses of my ftp program, but what? And why does this work quite well (but not always) with 3G/EDGE connection?
View 2 Replies
View Related
Jul 20, 2010
I have android code that uses a background process to routinely (e.g. hourly) connect to a content source on the web to check for updated content. As new users download the app and run it for the first time, it seems (and this is just a "seems at the moment) that in this first-run situation, because the DNS for our servers are not cached already on the device, those first series of connections fail with dreaded UnknownHostException: Host is unresolved. And of course, the application tries again later and (again, "it seems like") it is all working -- perhaps because the OS has had time to actually resolve the address. So, my question(s) are: (1) Do other Android developers see this behavior with their deployed applications as well? First time, a series of "host unresolved" issues that work themselves out later. (2) Does anyone have a better strategy for "warming up the DNS" so-to-speak so that the first real connections work? or perhaps do you just re-try with some back-off looping when you encounter this exception? I was contemplating having a separate thread that tries to fetch a small text file from our server and have it just loop until it gets it and maybe (not sure about this part) block the other outgoing network connections until it succeeds.
View 1 Replies
View Related
Jun 1, 2014
I can't get to recovery at all when i enter it i cant see the recovery but when i touch the screen it viberates and i thing i am pressing on the recovery stuff plus i cant root at all the adb says : unkown host service
View 2 Replies
View Related
Mar 1, 2013
I used insecure boot and root trying to root my phone, which was a huge mistake as i noticed a few minutes later since i cant startup anymore and only get into bootloader.
Now I'm trying to flash my stock rom back.
My CID is VODAP102 and my Version is 3.14.161.27 so i downloaded the rom and tried "fastboot flash boot boot.img" the result is:
sending 'boot' <8192 KB>...
FAILED <data transfer failure <Unknown error>>
finished. total time: 0.158s
View 5 Replies
View Related
Aug 10, 2010
I am developing an Android application consisting of 4 tabs. On the first tab I have a button, which again calls an Activity called ActivityA.When my ActiviyA is started, the tab control is not shown anymore.
View 1 Replies
View Related
Jul 6, 2010
Im getting a IOExeption 'Host is unresolved' on HttpPost. The Endpoint in this case a a computer on my LAN with a webservice. Im using WIFI to my LAN. Does Android know to to resolved computernames?
View 1 Replies
View Related
Jul 2, 2010
I want to create tabs without extending TabActivity. (The reason is that TabActivity cannot handle a custom titlebar as it seems). I have public class startTab extends Activity I read somewhere that I have to use a LocalActivityManager, I assume that I am missing something there. Anyone an idea?
View 2 Replies
View Related
Sep 22, 2010
Since the market is not open to India for paid apps - What will be a good server/store to host paid apps that target indian audiences?
View 2 Replies
View Related
Mar 20, 2010
i have set up virtual host in apache and and added relevent information in windows host file. it works fine for desktop browsers but i am not able to access this from android simulator's browser. as a example a i created a virtual host "testweb" i added this information in widows hosts file also so in desktop browser it works fine with the url http://testweb/ but in android simulator browser it displays error tht page has been moved. so plz give me solution what i shud do to work it and where i am getting wrong..
View 2 Replies
View Related
Jan 27, 2010
Where is the best place to host an Open Source project for an Android app? I am thinking about setting my app eTools free into an open source license. I want to know the best place to host that project. I will probably go with code.google.com but wanted to hear what others have done.
View 2 Replies
View Related
Apr 16, 2009
I am getting UnknownHostException - host is unresolved in my app when trying to connect the emulator to server on my laptop(running on localhost).I have android.permission.INTERNET permission set in my AndroidMenifest.xml. Moreover, with this URL, I am able to connect to my machine's server when I use the browser on the emulator.Has anyone faced and solved such problem. If yes, I would really like to know the solution.
View 4 Replies
View Related
Oct 19, 2010
Can someone tell me the procedure to host an app in Android Market? I know that there is no review process. But is there any other steps I need to follow to publish my App?
View 2 Replies
View Related
May 3, 2010
Was playing with CTS ,and came across a failure like below
testAnimation fail junit.framework.AssertionFailedError: unexpected timeout at android.view.animation.cts.DelayedCheck.run DelayedCheck.java:51)
Can anyone pass me some light on , how to fix this issue? or what should be the approach in cases like this? Any information will be appreciated.
View 3 Replies
View Related
Aug 24, 2012
I am connecting to a server on my network written in C#. The data sent from the android device is received by the server and a reply is succesfully sent but the android code timesout and never gets the return data.I have tested that the C# server can communicate and reply with a C# client.
I have studied the network traffic using Wireshark when using both the C# server-android client and C# server-C# client and it appears that the android device acknowledges(ACK) the reply data but my code never recieves it.
I have the code running in a thread so running it on Android 4.0 doesn't error out but I have tried running it on Android 2.2 with exactly the same behaviour(or lack of it). Also I have run it on 2 different android devices.
(AndroidManifest.xml)
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
(My Code)
[code]...
View 3 Replies
View Related
Mar 11, 2010
I'm writing an app that will host widgets. The app has custom view (which probably is the source of issue).mView.addWidget() basically just remembers this AppWidgetHostView instance and then mView draws it directly onto canvas. Visually everything is fine.I can see the actual widget. But the issue is with reacting on UI events. Please advise what needs to be done in the parent view in order to correctly trigger handlers in the widgets like onClick().I used standard widgets which normally react on click events. None worked.I also created my own test widget with listener and onClick()is successfully triggered if the widget is added on Homescreen, but doesn't work in my app.mView correctly detects click event and I tried to call widget.perform Click there, which returns false meaning onClickListener is not registered in the widget. But according to source .would call updateAppWidget which would register its onClick listener.
View 1 Replies
View Related
Sep 2, 2009
I am trying to figure out if there is any way by which I can access any USB device which is connected to my Android phone's USB port and read data off it? For ex. Can I connect a camera to my phone and pull pictures out of it? I know that we need a HOST-DEVICE configuration to be able to do that... have tried doing this on other devices before picking up my android phone.. thought there would be an easier way to get this done. now, when I connect my phone to a digital picture frame, I can see on the phone that it identifies the USB device it is connected to and goes into a USB mass storage mode. What I want to know is if after this, I can read data from the frame or send data to it. I want to write an app that pulls data over USB and stores it into the phone memory.
View 3 Replies
View Related
Oct 7, 2010
I am trying to setup a simple client/server connection, the server is running on a remote host (Normal Java) and the client is running on my computer on the emulator, it works fine when I try to connect from my machine, but I can't connect over a normal wi-fi internet connection to the remote host, what could be the problem?
View 2 Replies
View Related
Mar 10, 2009
I install sdk on centos.At first it works well. But I encounter a strange issue:One day my emulator can not access it's host os's network any more.
View 2 Replies
View Related
Jul 16, 2009
i am working on a client server program in android. i have a Main java class running on my pc as a server socket listening to the port 8626 and i am trying to connect android client (on real device ) to that server. i tried my local ip and it gives me no route to host exception please suggset which ip i need. if i use ip 10.0.2.2 and run on emulator it succeeds but not on real device. client and server both are on same pc, and android device is attached to my pc as well.
View 2 Replies
View Related
Aug 15, 2010
I am trying to make an Accordian control where each section would have its own view accompanied with its own activity. With the TabHost I can add tabs based on Intents and it is this behavior I am trying to understand how to use. So given an intent or an activity how can i get the view?
View 1 Replies
View Related
Nov 19, 2010
I'm developing client/server software for Android.
While connected to the phone via USB debugging, I'd like to access the webserver I'm running on my developement PC - using the USB connection.
Is that possible and if so, how ?
View 3 Replies
View Related
Oct 15, 2010
I am passing parameter to new activity using tab host in android but it showing illegal exception code...
can anybody tell how to pass parameter using intent with tabhost in android
View 1 Replies
View Related
Feb 16, 2012
I am a junior web developer and learning the world of CMS and would really like to run and test joomla, drupal and wordpress sites of my locahost setup. Is there anyway of installing a localhost on android. I would be extremely interested and i dont mind paying for someything that can do this on. Basically my tablet is lways with me and far more reliable than my windows 7 laptop and would like to do the majority of the work on that and only use windows for the full photoshop software.
View 1 Replies
View Related
Jul 8, 2009
I was very confused for MediaPlayer, follow the audio supporting formate from: http://developer.android.com/guide/appendix/media-formats.html
I success in mp3 formate, but failure in wav and 3gp formate.. i can't figure out why i can't? the other question is the error message from adb logcat,
E/MediaPlayer( 729): error (1, -1) E/MediaPlayer( 729): Error (1,-1)
What's the "(1,-1)" means? i try my best for several methods and audio/video support formate, but still failuere, and always get the error message..
View 6 Replies
View Related
May 12, 2009
I have developed a small application on eclipse (SDK 1.5r1). When I run the project it worked fine. Then I exported the signed application. (Lunar.apk) Then I sent the Lunar.apk file to my friend to install on his machine. when he try to install it manually on the emulator the cmd prompt says
pkg: /data/local/tmp/Lunar.apk Failure [-12]
Please help me with this.
View 5 Replies
View Related
Nov 15, 2010
I have downloaded the Layar401.apk file from web and trying to install it into my android device [HTC Magic, OS 2.2]. But every time I'm trying to install it its saying -
adb install Layar401.apk
1098 KB/s (1855698 bytes in 1.649s)
pkg: /data/local/tmp/Layar401.apk
Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]
From other posts I figured out that there might be a missing shared library of google maps api in manifest.xml file. I tried to view the manifest.xml file and it gave me something like following -
package: name='com.layar' versionCode='27' versionName='4.0.1'
uses-permission:'android.permission.ACCESS_NETWORK_STATE'
uses-permission:'android.permission.INTERNET'
uses-permission:'android.permission.ACCESS_COARSE_LOCATION'
uses-permission:'android.permission.ACCESS_COARSE_UPDATES'
uses-permission:'android.permission.ACCESS_FINE_LOCATION'
uses-permission:'android.permission.ACCESS_WIFI_STATE'
uses-permission:'android.permission.CAMERA'
uses-permission:'android.permission.WAKE_LOCK'
uses-permission:'android.permission.READ_PHONE_STATE'
uses-permission:'android.permission.VIBRATE'
uses-permission:'android.permission.WRITE_EXTERNAL_STORAGE'
application: label='Layar' icon='res/drawable/icon.png'
uses-library:'com.google.android.maps'
launchable activity name='com.layar.Main'label='Layar' icon=''
sdkVersion:'3'
targetSdkVersion:'4'
uses-feature:'android.hardware.camera'
main
other-activities
other-receivers
supports-screens: 'small' 'normal' 'large'
locales: '--_--' 'ja' 'de' 'he' 'sk' 'el' 'nl' 'ko' 'fr' 'tr' 'es' 'it' 'pt' 'hu' 'ru' 'sv' 'fr_CA' 'zh_HK' 'zh_CN' 'pt_BR' 'es_US' 'zh_TW'
densities: '120' '160' '240'
But here it says library includes google maps api as well. So I'm not sure why I'm not able to install this apk file.
View 2 Replies
View Related
Jul 7, 2010
I followed instructions from here. After $ repo sync I tried to build it with $ make, but got this error:
CODE:............
Using Ubuntu 10.04 LTS.
UPD: I found a discussion, that claims, that problem could be that I'm having 64bit libs on my 32bit system.
CODE:.....
How do I figure out, if that libz.so.1.2.3.3 is the right lib, and in case I have to replace it with the right one, how do I do it?
View 3 Replies
View Related
Sep 2, 2010
I have a similar problem to this question, but slightly different. I have compiled a .so library to use with JNI. Because it is large (15 MB), I am putting it on the SDCard instead of in the standard application place.
The file is called libSample.so and it's located at /data/library/libSample.so
I load it in a static initialization block:
CODE:.............
Here's the relevant logcat output:
CODE:............
I read the post about can android load dll's from sdcard in native mode which said that the sdcard cannot be used to load libraries, so I moved the .so into /data/data/com.example.hellojni/lib/libSample.so (the private app data storage location). No change:
CODE:.............................
What I don't understand is that clearly the library exists, and the OS is trying to load it ... so what would make it fail?
Following the advice of one of the commentors, I tried attaching via strace to get more detailed error information. The log can be found as a github gist.
The error appears to be on lines 47-51:
CODE:...........................
Here's the readelf of the library:
CODE:.........................
View 3 Replies
View Related