Android : How To Choose Connection Type
Mar 18, 2010
In my application I need sometimes send data via http (using HttpClient, HttpGet and HttpPost). Can I choose (from source code) connection which is used? For example, I'd like to use only gprs, not wifi, not bluetooth. Or only wifi, not gprs.
View 5 Replies
Oct 21, 2009
Is there a way to add a short cut or widget to choose the type of ringer you want?
ex if i want to go from Ringer and vibrate to just vibrate.
View 2 Replies
View Related
Dec 22, 2009
Do you know how to set Content-Type on HttpURLConnection? Following code is on Blackberry and I want the Android equivalent:
connection.setRequestProperty("content-type", "text/plain; charset=utf-8");
connection.setRequestProperty("Host", "192.168.1.36");
connection.setRequestProperty("Expect", "100-continue").
View 4 Replies
View Related
Jun 27, 2010
BB user here and the only thing holding me back from getting an Android is the fear of going over my 200MB limit on data.
I want to use my Android over 3G for emails and calendar sync. Everything else through WiFi because I am constantly connected to WiFi through my campus/home/work. Only need email on the go.
Is there a program that can control what type of data other apps use?
For instance:
Email: 3G (WiFi Preferred)
Calendar Sync: 3G (WiFi Preferred)
Contact Sync: 3G (WiFi Preferred)
Browser: WiFi Only
YouTube: Wifi Only
Or along these lines.
Does anyone have any app that comes to mind?
View 1 Replies
View Related
Sep 4, 2010
How can we know the current connection type (ex. Wifi, 3G, 2G...) programmatically?
View 1 Replies
View Related
May 10, 2010
How do you detect the network connection type on Android?
Is it through ConnectivityManager.getActiveNetworkInfo().getType(), and the answer is limited to Wifi and mobile?
View 2 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
Feb 9, 2010
I'm writing an application for android. My problem is that I want it to force the connection in GPRS and not use wi fi. I have a solution like below, but this causes the crash of the application at start.
CODE:..............
I also added the below setting lines into manifest file.
CODE:................
Does anyone know the problem, or an answer to set connection type?
View 2 Replies
View Related
Mar 6, 2009
I have been looking at the ConnectivityManager class documented at http://developer.android.com/reference/android/net/ConnectivityManage... .
I would like to know if an Android application can open a network connection (socket) on a specified network interface [on a device supporting multiple network interface types WiFi, Cellular, WiMax etc] ? I am looking for the capability for an application to open a socket on a given type of network for example over WiFi network or over 3G Cellular Data network.
If this is possible in Android, how would I code this requirement within the API Framework ? The ConnectivityManager enables an application to learn about available network connections and currently categorises them as either TYPE_WIFI or TYPE_MOBILE.
There is a member function in the ConnectivityManager class called requestRouteToHost(int,int) [url] which "Ensure that a network route exists to deliver traffic to the specified host via the specified network interface. An attempt to add a route that already exists is ignored, but treated as successful." Sounds like this would install an IP routing table entry to reach a given host via a specified network interface type (WiFi or Mobile). After calling this would it be sufficient for an application to open a socket and connect to the desired destination address ?
Or perhaps the application needs to bind() a socket to a local address of a network interface of the desired type (WiFi or Mobile) Or by setting a socket-level socket option of SO_DONTROUTE ?
View 2 Replies
View Related
Jul 20, 2010
After awhile of heavy SMS use if i open a message and go to type to respond the words i type do not show up on the screen. Id i minimize the keyboard it shows. If I expand it they go away.
View 1 Replies
View Related
Nov 7, 2013
My current situation is that I have a phone with 2 camera apps on it, stock and camera FV-5.
Camera FV-5 is slower than the stock camera, so I only use it in situations which I need manual control.
Whenever I open whatsapp and try to send a photo, the app asks me which camera I want to use, with no option to always use stock. I don't want camera FV-5 to exist as an option, as I will open it if I want to use it.
Is there a way to remove an app from the list so that my phone does not recognise camera FV-5 as a camera?
View 4 Replies
View Related
Nov 3, 2010
My login for jabber account contains "point" symbols ( ���dima��� ).
So, how I can paste or type it in the application?
PS These symbols are the same which displayed while entering passwords
View 3 Replies
View Related
Oct 14, 2009
I'm using ThreadSafeClientConnManager to manage a pool of client connections, because my application has several threads, which are simultaneously connecting to a webserver.
Abstract sample code:
CODE:..............
Now lets say on of this threads is downloading a large file, but then the user of my application is switching to another activity/screen. Therefor the file is needless and I'd like to abort this download connection.
In ThreadSafeClientConnManager I found this method: public ClientConnectionRequest requestConnection (HttpRoute route, Object state) Returns a new ClientConnectionRequest, from which a ManagedClientConnection can be obtained or the request can be aborted.
So far I've been using:
CODE:.........
Now from what I understand, I've to use:
httpclient.getConnectionManager().requestConnection(HttpRoute route, Object state);
And that's the point where I'm stuck. I assume that for the route I can just use new HttpRoute(new HttpHost("10.0.0.1")) or whatever my server is, but what to put in for Object state?
And second, as soon as I've the ClientConnectionManager I can call getConnection(long timeout, TimeUnit tunit). But then from there, how I do I execute my HttpGet httpRequest = new HttpGet(URL_TO_FILE); as I did before with HttpResponse response = (HttpResponse) httpclient.execute(httpRequest);?
I've been gone through the documentation and tried out quite a few different things, but I wasn't able to obtain a working solution. Therefor any suggestions and/or code examples are more than welcome.
View 1 Replies
View Related
May 12, 2010
Whenever a application needs internet and connection fails, I get a message dialog
Connection failed
This application requires network access. Enable mobile network or Wi-Fi to download data.
and two buttons, Settings, Cancel.
How do I detect there is no internet connection?
How do I popup a same dialog in my application?
View 3 Replies
View Related
Aug 19, 2010
Sorry to ask what could be the dumbest question on the face of the earth; how do you get the Samsung Galaxy S to always choose Wifi, if it�s available, instead of 3g?Is it something I even have to think about setting? Or is it something that Android does by default?
View 4 Replies
View Related
Aug 16, 2010
I have a number of app's that seem to start and run at random.
I still want these apps on the on phone, so don't want to uninstall, just want to be able to choose when they start up - rather than them starting at random and running in background.
Some of the app's running:
Music
Footprints
Stocks
FM Radio
Juiceplotter
Fake-call-me-Pro
Is there an APP similar to AUTORUNS (which I use on my Windows PC) that lets me choose what programs run at boot?
View 3 Replies
View Related
Jul 31, 2010
I am using preference concept (listpreference) in my application. I want to do something when i choose particular option from list So plese tell me how is it possible?
View 3 Replies
View Related
Jul 14, 2010
Is it possible to make an app choose a particular APN automatically?
Or at least direct the user to the APN selection screen?
Also I've been wondering, can an APN be used from any cell provider? Let's say I have two providers: A and B, can I use APN-B within A ?
View 2 Replies
View Related
Oct 27, 2010
I'm coding a very basic FTP client on top of my application and I have 2 activities. The first one is the file explorer and the second one is the image viewer. Once I click on the image filename on the explorer, I want to pass the connection to the other activity to handle extra stuff. Basically, I want to keep the same org.apache.commons.net.ftp.FTPClient object (which handles the connection) alive in-between the 2 activities. I know I can't pass an object inside an intent so I don't know what my best bets are.
View 1 Replies
View Related
Jul 23, 2010
What's the technical term for being able to have voice connection and data connection simultaneously? Like AT&T was promoting heavily for a while.Apparently, the new T-Mobile Vibrant has this capability. A friend got one and was accessing the web while talking to me, double jealous now.I have benn lusting after the Verizon version, Fascinate, and wondering if there is any chance it will as well.
View 2 Replies
View Related
Aug 8, 2010
I have read on this forum that people find task managers make their phone slower and that there is a general concensious not to use them - can someone please explain this?Is there anyway I can choose what services are on the startup of the phone? there are a lot of services, most i dont know what they do, but some such as google talk, i will never ever use and want it completeley removed. trying to remove the application from the applications menu does not work.
View 2 Replies
View Related
Aug 9, 2010
I have a Dialog window created via the onCreateDialog() callback of my Actvity. In the Dialog I would like to allow the user to enter an email address or to select a contact from their contact list and have the email address populated based on their choice. This can be accomplished using code...
However since the Dialog is not itself an Activity I cannot use this method, the best I can do is
context.startActivity()
How can I launch the contact list from a Dialog and get a result?
View 1 Replies
View Related
Apr 18, 2010
I'm making an Android App, and i need to put a control that let user choose between 4 different colors. I want to do this with something like radio buttons: the problem is that radiobuttons are round...
is there a way to set them looks like square/rect buttons, and assign a color to their inside rect area ?
If not, how can i achieve that choose for the user ?
I need this because i'm making a Todo/Task android application, and i need the user to choose the priority of a task, between for priority level that are rapresented with a color. So i think to do that by showing 4 buttons, each with a different color associated, and a text inside ("0", "1", "2", "3")
View 1 Replies
View Related
Sep 7, 2010
I asked this question a day or two ago but it didn't seem to get posted. I don't know if it just takes a while for the moderators to approve or if it got lost so I'll try again.
I'm writing a live wallpaper that creates an effect over a background. I want the user to be able to choose the background from any of the system wallpapers and camera photos. What I would like is for the user to be able to press a button in the Settings menu, have the list of options show up just like setting the wallpaper from the home screen, minus the Live Wallpapers options. Once the user navigates the choices and picks an actually image I would load it to my canvas. How do I do this?
I can't find an API anywhere for getting a list of wallpapers.
I've been able to come up with a list of wallpaper providers using Intents. I then get a list of live wallpaper providers also using Intents and remove those from my first list. The gives me a list of wallpaper providers that are not live.
Now what? Are there other ways to do this that I'm missing?
View 4 Replies
View Related
Jun 5, 2010
I turned sense off in my Evo, and also choose the launcher by default. Now, when I press home button it just takes me to plain android homepage, I am no more getting option to choose HTC sense. How do I get my sense back?
View 1 Replies
View Related
Nov 26, 2010
I can send picture MMS on my Fascinate but everytime I want to attach a file and choose camera (take the picture right now) it never sends the picture I take, it sends a picture I took about 3 months ago, that is not even on my phone. I can choose attach and then picture to pick one from my phone and it works great, but when I try to attach then choose camera, it just sends one that I sent 3 months ago and I can not change it.
View 7 Replies
View Related
Jul 12, 2010
Super compass is a compass in the English tools. There are many styles and backgrounds to choose from, the essential software for your trip.
Super compass, both app and home screen widget, several styles and backgrounds to choose.
Version 1.4:
- show GPS location
- show current address
- GPS status
- connectivity status
Feature
- Home screen widget
- change background
- change style
- calibrate
- GPS location, address
View 1 Replies
View Related
Aug 28, 2010
I've been working on an application lately that is using GMaps to display a location that is stored in the devices database. However when no location is available (no GPS signal is available) the user can go through an edit wizard and at a certain point he can add a location himself. I already have to code to display the stored location, but is it possible to write something so the user get's to see a map and when he clicks/touches on a certain area a map pointer appears and the location is stored. Is that possible in any way? Is there any good online documentation available? I searched through this group and on Google but couldn't find anything usefull.
View 2 Replies
View Related
Oct 19, 2010
Is there a way to reprompt the user to choose a default activity for an intent? For example, user selects his default home apk and I want him to reconsider his choice once again. I know how to do that on 2.1 and before, but is there a way to do that now on 2.2? Famous Home Switcher, which did similar thing, does not work on 2.2 anymore thanks to google team.
View 1 Replies
View Related
Oct 27, 2010
I am using the google calendar sync interface to sync my outlook to my google calendar. Is there anyway to limit exactly what syncs? My google calendar is shared with co workers, and I would like to keep my personal appts from syncing. Is there a way in outlook or google to mark something as private to prevent syncing?
View 6 Replies
View Related