Android :: Api - Determine Free Ports
Aug 4, 2010I was looking at the API, and Ive tried to determine this:
On a given port, check if it's available or already some application listens to it.
I was looking at the API, and Ive tried to determine this:
On a given port, check if it's available or already some application listens to it.
What is an effective way to determine how much free space is on the SD card?
View 3 Replies View RelatedAnyone know what special ports android uses to browse the web? Of course it must be port 80, but there has got be an additional port or something. My web server is accessible via computer browsers but not by android unless I turn off the software firewall. Something about the android connection, the firewall doesn't like.
View 2 Replies View RelatedAssuming I have a USB device I want to attach to a N1, would it be usable? Lets assume I have the drivers or can write them to interact with the device. Is the support for USB that extensive on Android devices? I can find information about making the phone a host, charging, ect, but I can't find information beyond that.
View 6 Replies View RelatedI've had an inquiry about whether my Android app can interface with a serial device via USB cable. Before I invest too much time in this path, I'd like to know: Is this even possible? Some previous threads indicate Android won't do host USB. Would it require root access and/or the NDK? Would it be better to advise the potential client to look for a serial blue tooth adapter? I can see that there is a Blue tooth Sock class which may do the job.
View 4 Replies View RelatedHow find the ports used by an android application.
View 1 Replies View RelatedAt work I can use my android devices for surfing but as soon as i try to use a app like a game that needs internet it wont work. How can I find out the ports app uses and is there any workaround for this?
View 1 Replies View RelatedI have been trying for weeks to try and tether my XBL with my Android. I have been trying it wireless type and wired. The wireless type I've been using the WiFi tether app along with the xbl WiFi. When I turn on the WiFi router on the XBL, the Droid tether shows up and connects just fine, however, It will not connect the profile to xbl. Any one have any ideas here ?
The other I've been trying to get to work is doing the wired route and by going into all my settings and changing them over like you would doing the open server deal. I dunno threw the properties and adding the XBL ports. Now the problem I have with this I can change just about every port to one another by port 2 and port 5. Port 2 needs to be 53 TCP / UCP < that one. When I switch to accept it tells me that I have the same ports being used. I've tried this method on a friends computer who is using Windows 7 and it works just fine changing ports wise.
I am playing around a bit with peer-to-peer communication with android devices.I have written a basic program that creates a listening ServerSocket on each phone using the application. Using the application you can also connect to other devices that is listening, by connecting to the remote ServerSocket. Nothing strange about that.My problem is that it seems that the listening port is not open for connection on different devices. I can connect to my HTC Desire, works like a charm. But connecting to a HTC Hero I get timeout, same if I try to connect to the emulator. But connection FROM the emulator to the Desire and FROM the Hero to the Desire works like a charm. Whats up with this? No security apps is installed and both devices(and the emulator) is running 2.1.
View 1 Replies View RelatedDo you need to open ports to download apps?
Iv tried loging in and out of google talk and restarting. but nothing.
Does anyone know of any ports of touchwiz (or something similar) that have been done for the eris? I have been thinking about getting the fascinate when it launches but wanted to see how the stock interface feels.
View 2 Replies View RelatedMy Android phone is soft bricked it is an VS870 LG 4G Lite Lucid II.
This is the second time my phone becomes bricked due to my last incident with my samsung. It has nothing to do with it being rooted, but uninstalled some apps in the phone which I thought had nothing to do with the system. IDK last one I uninstalled was zappos. I know how to un-brick my phone, but my only problem is getting the phone to be recognized by my computer. I tried uninstalling and re-installing the drivers, removing the battery from the phone, using different USB ports still no luck . Could it be that the battery percentage went below 75%? if so I have no way else to charge, it does not seem to charge anymore?
Has anyone figured out how to play audio from the HTC EVO (mp3, Pandora, etc) through the USB or HDMI ports?I've looked seemingly everywhere and have not found anyone who has done it.I want to be able to amply drive my Grado SR80i headphones.I believe I could do it with a portable amp like HeadRoom's Total AirHead through the headphone jack, but if I'm not mistaken, the headphone jack is sonically inferior to a line out jack. The problem is, the EVO doesn't have a line out jack.my inquiry regarding harnessing audio from either the USB or HDMI ports.Let's assume the answer to my question above is NO.I'm relatively satisfied with the sound quality I get from the EVO using Sennheiser PX 100 headphones and the tiny FiiO amp. The problem is, I blew the Sennheisers. That's why I bought the Grados.Undoubtedly, the Grados will handle more power. Unfortunately, my tiny FiiO amp won't power the Grados. So my second question then is will a better amp sufficiently power the Grados through the headphone jack?
View 1 Replies View RelatedI am using two ics phones, Galaxy Nexus and Htc Sensation stock roms. I am trying to connect to my DVR devices through a 3g router using well known network ports numbers (>1024) for the dvr devices.
The network consist of 3 devices:
3g router: my domain com : 80
Dvr Device1: my domain com : 7687
Dvr Device2: my domain com : 5054
I can connect to the 3g router which is listening to port 80 from my android phones but not to the dvr devices using a 3g network.
But I can connect using the android phones if they are connected to a WIFI network or an Iphone (2g,3g,wifi), a Nokia symbian phone (2g,3g,wifi) or a Pc using adsl internet connection.
There isn't a port forward issue since I can connect from every device except android phones.
How can I find out the ports different apps use? And can i reroute them some how?
View 1 Replies View RelatedI have some light leakage from the ports on the bottom of the phone. It only happens when the capacitive buttons are lit. The screen seems solid, not separating from case. Will this eventually lead to dust under the screen or not an issue to worry about?
View 4 Replies View RelatedEveryone.net's (lack of) knowledge base is shotty at best. Multiple IMAP setups for ports. Anybody with a DX using everyone.net? What are your settings? Very frustrated about this, setup was extremely simple on my Lackberry.
View 1 Replies View RelatedI am trying to access my mailaccount from my new X10 but no success. Need to check the ports, but I can't find where to check them.
View 1 Replies View RelatedI posted a question yesterday about determining when an app is being finalized vs destroyed for screen orientation change. Thanks to the answers I received I was able to resolve my problem with the screen orientation change. However, I am still running into a roadblock.
This app I am working on logs into a website with an HttpClient. As long as the app remains in memory the HttpClient will retain the cookies from logging in. However, once it is killed, it would need to log in again.
My question: How can I determine when the app is being killed from memory so I can set a boolean to false telling the app it has been removed from memory so the next time it starts it will read this and determine is must log in again? Or is it possible to serialize an HttpClient and put that in the savedInstanceState bundle? May extract the cookies from the client and put those in the savedInstanceState bundle? Is there something I'm completely missing here maybe?
I would like to know how can I determine the value to put in an ACTION tag in AndroidManifest....
We have some defined intent at http://developer.android.com/reference/android/content/Intent.html...... ok.
I tried to do some stuff with receiver. I found an example SMS_RECEIVED. This example work when I use android.provider.Telephony.SMS_RECEIVED in the action. If I try to find these constant in android.provider.Telephony I've a problem...It doesn't exist...So where is it defined?
I feel stupid asking such a simple question, but is there an easy way to determine whether an Integer is even or odd?
View 5 Replies View RelatedIs there a way to determine connection speed? E.g. EDGE, 3G, etc.? I already know NetworkInfo.getType() will tell me Wifi or Mobile. I'm looking at Is this NetworkInfo.getSubtypeName(), but the function is undocumented.
View 2 Replies View RelatedI have an application that uses a Service to fetch data in the background both while the application is running and when it's not. When it is not running i would like to show a notification when there is new data, but not when the app is running. How do i determine in my service whether the app is running or not?
View 6 Replies View RelatedWhat is the best way to determine file type in android? I want to check if the given file is image or music file or video or smth else. Could you please give me a small code snippet?
View 2 Replies View RelatedI am planning to have a Service send a broadcast which a BroadcastReceiver will act on and I would like it to create a Notification if an application is not currently on screen, but if the application is on screen (ie. showing to the user) then I would like to offer a Dialog and not create the Notification.Is it possible to determine if an Activity or application is currently on screen?
View 5 Replies View RelatedI'm looking for a way to determine user identity so I can globally track game scores off phone.IMEI provides identity of the phone - not effective if phone is on- traded or upgraded by individual. USIM provides identity of phone carrier subscriber - assumes device is phone, and currently has a SIM card.I'd like to be able to provide continuity as a user upgrades to a new device. And I dislike being forced to create an account on each global scoring system, so I don't want to force that on my users. And my end user experience with OpenFeint leaves me disinclined to use it.It doesn't need to be bullet proof. But it does need to be hassle free for my users.Is there any other identifier on an Android device that I can use to link data more cleanly with the current owner? And how would I get hold of that identifier? I'm thinking something like the user's Google account .. or similar
View 12 Replies View RelatedFor example, I am inside a building and I want to get my location with the accuracy of 0.75 (Criteria.ACCURACY_FINE) and this will use the gps if my gps is on. Since I am inside a building, gps won't work. How can I determine if it is really impossible to get a gps fix location?
Is onLocationChanged(Location arg0) will be called even though no gps fix location was received when using LocationListener? Is it possible to use a timeout in requesting gps location so that I can shift to network as the location provider if i can't get any location?
i have this android application that requires to load data from a remote server via the internet. this update-functionaliy obviously requires the device to not only be connected to some kind of network, but also to the internet.so: is want to schedule the update-service to some date and when it starts, it should determine whether it actually CAN reach the target server or not. therefore, a simple "is the device connected to wifi?" does not suffice, as the device may be connected to a wireless network that does not offer internet access. something like a PING is required.whats the easiest / best way to determine, if there is an internet connection is available i.e. server is reachable?
View 3 Replies View RelatedDoes anyone know if there is a way to identify (in code, not LogCat) when the GC has run? Perhaps an intent is fired? I could analyze the LogCat output, but it would be ideal if I could determine when the GC has run from my code.
View 2 Replies View RelatedI have an application where I would like to warn the user if they are not using the default Android softkeyboard. (i.e. they are using Swype or some thing else).
How can I check which input method they currently have selected?