Android :: MediaScanner Connection - Unable To Connect
Jul 28, 2009
I am trying to use MediaScannerConnection to update content provider of a newly downloaded MP3. However no matter what I do it does not seem to be able to connect. I have even put this chunk of code into onCreate and hardcoded to path of an existing file but still no dice.
MediaScannerConnection scanner = new MediaScannerConnection(this, null); scanner.connect(); while(!scanner.isConnected()){ try { Thread.sleep(1000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } scanner.scanFile("/sdcard/path/file.mp3", "audio/*"); scanner.disconnect();
It never exits the loop. If i do not put the loop in, it just force closes and complains that it is not yet connected.
View 3 Replies
Oct 1, 2010
I have an application in which I need to connect to an access point with a specific name. Therefor I start a scan (WifiManager.startScan()) and listen to BroadCastEvents of type SCAN_RESULTS_AVAILABLE_ACTION and NETWORK_STATE_CHANGED_ACTION. When the scan results are available, I check if my AP is found and if so I connect to it.
When I'm connected to the AP, I receive a NETWORK_STATE_CHANGED_ACTION and there I open a SocketConnection to my serverSocket. The problem I'm having is that on the moment that I'm connected to the AP, the DHCP request is not yet finished. This causes the opening of the socketConnection to throw a "SocketException: Network unreachable". A few moments later I see in the logcat logging: WifiStateTracker - DhcpHandler: DHCP request succeeded. If I try to connect after this message, all goes fine. is there an event that I can listen to that informs me that the DHCP request is done? Now I try to create a connection and while an error occurs I retry. This is however very dangerous for hanging (if e.g the dhcp fails, the loop will never stop...)
View 2 Replies
View Related
Aug 16, 2010
why my phone says my wifi at home is out of range? It is a private network and I for some reason the HTC Desire won't find the network.
View 3 Replies
View Related
Aug 26, 2010
I have been using wi-fi for some time now and now when I connect to my router, I cannot get any data connection. For example, if I am using last.FM and I turn on my wi-fi, I get an error that the app can no longer connect to the last.FM servers. If I turn off wi-fi, it starts working immediately. Same thing with the Internet.
View 22 Replies
View Related
Jul 1, 2010
iv just got a replacement hero and i cant get it to connet to my bt home hub, my last one did no problems but when i try with my new one it just comes back as unsuccessful, it does seem to connect to bt openzone tho if that helps.
View 1 Replies
View Related
Aug 8, 2010
I'm new to the smart-phone & recently picked up the HTC Aria & I can't get it to connect to any type of secure connection WEP/WPA, (Motorola SBG900 Wireless Gateway) I can connect to it unsecured with no problem!? I have searched online & have come up w/no answers..
View 3 Replies
View Related
Apr 5, 2010
I can use the gmail application but I cannot use the email application or others mail applications. For instance, I use K9 mail. I enter my ID mail ( tristan.colas@live.fr)
The application failed: " Unable to connect".
View 3 Replies
View Related
Aug 14, 2010
I tried to test my application on my android phone, but the it can't be able to detect the device compatibility. The debug mode on phone is enabled.
My phone: Motorola.
My ubuntu: 10.04.
IDE: Eclipse.
I even tried to add the following line:
SUBSYSTEMS==husbh, ATTRS{idVendor}==h22b8, ATTRS{idProduct} ==h41dbh, MODE=h0600"
to my /etc/udev/rules.d/90-android.rules.
But every time I tried to run the application, the device can't be detectable.
View 2 Replies
View Related
Nov 2, 2010
My machine is using a WiFi connection for internet, and the LAN card is idle. it's not behind a proxy or firewall, but somehow, my emulator's browser isn't loading any page. meaning that the emulator can't connect to the internet.
View 3 Replies
View Related
Nov 13, 2013
I have a problem with connecting to WiFi on android. I got 2 phones, one with Android 4.2.2 and the other with an older version, but none can't connect. I also tried with an iphone and had no problem.
Also, I tried connecting to other WiFi networks with the same phones, and they connected. So I think there might be a problem with my home network.
View 3 Replies
View Related
Nov 20, 2009
Running Eclipse on Ubuntu 9.10, connected real HTC Dream which works just fine on another (Windows) machine.
CODE:.....................
View 2 Replies
View Related
Aug 10, 2010
I have a factory unlocked HTC Desire with the official 2.2 froyo firmware installed. When I turn on the wifi using the inbuilt HTC wifi widget, it takes about 10-15 seconds before the phone connects to my wifi router and the wifi icon is shown in the notification bar. I am using a Dlink dir-655 router. The settings that I have on the router are as follows:-
wireless mode: 802.11g only
encryption: wpa2 personal AES
mac filtering on (phone's mac address has been added to the list)
SSID is hidden
Other devices such as my laptop and nintendo wii connect to the wifi router within seconds.
View 12 Replies
View Related
Jan 25, 2010
I cannot connect to my home WiFi, it even not trying to connect, other Wifi connections works fine, but my private home wifi connection not working, i have notebook that using this connection with no problem but N1 unable to connect.
View 2 Replies
View Related
Jun 9, 2010
With the HTC Desire, is there any way of setting up a bluetooth connection to connect automatically, eg hands free kit in a car or do you have to manually connect each time?
View 1 Replies
View Related
Oct 17, 2010
My browser doesn't seem to be working sometimes. My chip is 2G, so I know it shouldn't work Everywhere. But, as i write this on my laptop, i'm with my wi-fi on and working fine. But i can't seem to connect to any web-sites trough the browser (even though the twitter/face book updates are working alright). At my office however, it works fine!
View 1 Replies
View Related
Mar 16, 2013
I have an Enco B046 car radio which incorporates Android 3.2.2
All was working fine last year and had installed all my apps etc but recently tried to connect to the Market/Play Store to install other apps and it hung for a while then gave me the error:
Quote:
There was a network error while trying to sign in to <gmail username> Retry now or press Back button to cancel
I have internet access from the browser etc but just not Market and Gmail.
I have tried clearing the app data and even done a full wipe.
According to the 3G data icon it's trying to send data but receiving nothing back and it just times out.
View 9 Replies
View Related
Jun 16, 2010
Was wondering if anyone has noticed a problem with the Google News & Weather widget today? I installed this on my EVO (Genie Widget.apk) because I love its simplicity and elegance, but today it's telling me "Sorry, unable to connect. Please try later" with a "Retry now" button. Just wanted to know if it's only my phone or everyone's? I tried rebooting, also tried stopping and uninstalling/reinstalling but to no avail. If it's happened to other people before and there's a trick to fixing it, that would be great to know too.
View 24 Replies
View Related
Sep 22, 2010
I tried to connect to internet behind proxy in windows.But I cant. I tried with the "-http-proxy" in command line and in eclipse but both did not worked for me.
View 1 Replies
View Related
Sep 7, 2010
I am using Android 2.1 sdk with Motorolad Droid A855 model, when try to connect to Bluetooth (Socket SPP ), I am getting the following error as per logcat, Code...
View 1 Replies
View Related
Apr 17, 2010
I used to be able to connect my Droid Eris to my PC with a USB cable and the option in the notification bar to Mount would pop up. Now I'm getting a message on my PC saying the USB Device is not recognized. I've tried scouring the web for more info, but only came up with noobs who didn't know to click the mounting option in the notification bar. Why my phone cannot connect to my PC all of the sudden?
View 15 Replies
View Related
Aug 3, 2010
I just updated with the OTA to 2.2 this morning. Now I can not open any RTSP links, it times out and says "Unable to connect to server". I use this everyday to watch two security cameras and it has always worked fine.I tried two links that i know are working and same thing.
rtsp://video2.multicasttech.com/AFTVCrime3GPP296.sdp
rtsp://video2.multicasttech.com/AFTVSciFi3GPP296.sdp
I hard reset after the udate thinking something got messed up, still no go. Can somebody try those links and see if you have the same problem?
View 1 Replies
View Related
Jul 10, 2010
Please help,for the life of me I can't get my Evo to connect to my wifi.Can anyone help me ?
View 7 Replies
View Related
Sep 4, 2010
My wifi will turn on, but will scan for or connect to networks. Anyone had this issue and know how to resolve it?
View 7 Replies
View Related
Jul 29, 2010
Can anyone help me out..ive been wanting to throw my phone like that. Other guy..lol..anyways...my phone and pdanet connect online and to my pc..but wen i open my browser it wont connect to my connection...it shows 2.4mbs etc..
View 14 Replies
View Related
Oct 26, 2010
How to use the gprs connection in my x10 in my pc to connect the Internet.
View 3 Replies
View Related
Jan 6, 2012
I am looking for a way to automate my Android phone connecting to an SSH server when the phone connects to an unsecured wifi network. My understanding is that this is adequate to keep my traffic from being sniffed by DroidSheep (Android), FireSheep (Windows), or other packet sniffers.
I'm using this guide to connect my Android phone to the SSH server: link HERE
Is the Tasker app the best way to do this?
- if yes: how do I trigger the launch of the SSHTunnel when the trigger event (connection to unsecured wifi network) occurs?
- if no: what is a better way?
Note: I did a search for SSH (link HERE) and did not see anything covering this.
View 1 Replies
View Related
Jul 22, 2010
Just had my deire back from repair ( nightmare ) and i' unable to connect to the internet or get updates. It works ok with wifi, but i'm not always in a wifi area. I have gone into Settings - Wireless & Networks - Mobile network ticked box to connect to internet an all I get is " connection failed due to incorrect APN setting ".
View 2 Replies
View Related
Aug 9, 2010
I'm new to all this wifi stuff. I have no problems connecting my Desire to my wifi at home, which is great. But at work (or at least in the vicinity of my office) there is an open wifi point. I have now tried on several occasions to connect to it, but it always fails. It gets as far as trying to get the IP address then nothing happens until the connection fails. Then it starts trying to connect again, but it gets stuck every time on getting the IP address.This would not concern me if it weren't for the fact that other work colleagues (one of whom also has a Desire) have managed to connect without a problem. I've moved over to where those people work, in case it was a pure location thing, but still no success.Is there something obvious that I've missed on this? Or anything that I could try? Obviously I'd like not to have to use my data allowance while at work if at all possible.
View 49 Replies
View Related
Jun 29, 2010
I've been trying to get streaming media working on my desire and it doesn't work. I know vodafone are blocking RTSP at the moment but i'm concentrating on wifi at the moment. I know the streams are live (using m.tvcatchup.com) as I can open the link in VLC but whenever I load it on mobile i get 'unable to connect to server'. i've reset the firmware (unbranded) several times and it makes no difference. packet captures show the desire tries to setup the stream but never receives any RTP data. is anyone having the same problems - i've asked HTC support but they seem to think everything means the phone is faulty and want to swap it at every given chance. I'm wondering if in this case it actually might be?
View 3 Replies
View Related
Oct 9, 2010
I recently received a replacement EVO to replace one that got wet through the Best Buy insurance program thingy. Anyway it is a brand new EVO but it will not connect to 4G. My wife has an EVO as well and sitting side by side hers connects and mine will not. If you go to Wireless and Networks settings the setting titled 4G is grayed out and says turning on underneath but it never changes. You cannot tick the check box.The next setting is titled 4G settings and when you click it ALL the options are grayed out and none of the check boxes ca be ticked.Like I said I know we have 4G coverage as my wife's phone is getting it fine.Also if you go to About Phone in the settings and look at hardware information it lists 4G MAC address as unavailable. Any ideas or similar problems out there? Could I have turned something on or off that is stopping the 4G radio?
View 2 Replies
View Related