Android :: Communicating With Servers
Oct 18, 2010
I come from a .Net background and recently x-training to java.
I wanted to develop an Android application that required simple functionality to communicate with a server. For example, functionality such as post a username/score to a website (or service), or request information such as top 10 scores.
What type of communications should I focus on? What is the common technology to use? Does Java have the equivalent of WCF? Or does it have some sort of simple web service? Can web services be secured with authentication?
Ive heard other references to xml-rpc. Should this be something I should look into?
View 3 Replies
Jan 13, 2010
I want to create an application in Android which communicates with a server application (written in C#, doesn't matter what version of .NET) on the PC via TCP/IP. I was thinking about some kind of RPC like SOAP or XML-RPC. But I want to keep the server application as light and simple as possible. And I think in C# you rely on a Webserver to set up an RPC server. Or maybe is it better to communicate directly via the TcpListener?
View 2 Replies
View Related
Jan 20, 2010
I plugged my Hero, via USB cable, into my computer. The charge light is on but my computer is not seeing the device. I have rebooted the phone and the computer and it still won't see the device.
View 1 Replies
View Related
May 10, 2010
Whether its possible for an application and a widget to communicate data to each other directly? Basically I'd need the app to be able to check that the widget is running/visible, and would need the app to send information to the widget. I'm far from actually implementing anything yet, so I'm not really looking for any overly detailed explanations, just if whether or not what I'm looking to achieve is possible.
View 2 Replies
View Related
Apr 12, 2010
I'm fairly new to android programming and need some information for a 4th year forensics course project. Basically I am trying to create a suite of tools for live analysis of an android phone. I know how to get the information I need on the phone, but I was wondering if there was a way to communicate that information back to the PC? I want to be able to run a program from a PC, which, when the phone is docked, will allow the user to access information about the phone (ie currently running services/processes, bluetooth/wifi connections, etc). I have a bunch of methods that will run on the phone and get all the information, but I want to be able to call those methods from the PC, execute on the phone, then have the information sent back to the PC to display to the user instead of just displaying it on the phone. This is to leave as small a footprint on the phone as possible.
View 1 Replies
View Related
Feb 9, 2009
I need a message queue in my background thread, so I created a looper thread.
CODE:...................
View 5 Replies
View Related
Nov 14, 2009
Here is my code:
CODE:......
The problem is as follows: progressBar is showing correctly. mHandler obtains the message but only once(for the first time). But I need to make it in loop(as Looper.loop should have worked in this case), so it calls mHandler handleMessage in every loop(but its not happening in this case). The outcome progressBar kept on rotating though the condition in the handleMessage (if(location!=null) )is getting satisfied in the mean time of the active progressbar. How can I make mHandle,sendEmptyMessage to call in each loop so I can check for this (if(location!=null)) condition.
View 3 Replies
View Related
Feb 26, 2009
Is it possible to update a currently running activity from a BroadcastReceiver? I want to update my activity from a BroadcastReceiver that runs alongside it. When I run my app (from Eclipse), my activity starts. When the BroadcastReceiver is triggered, it currently tries to start the activity (with extras in the bundle...this is the important part), but nothing happens, presumably because the activity is already running. So my question is, how do I get the new information to my Activity (or even just tell the activity that there's new information to get if I stick the information in a database)? This seems like it should be fairly straightforward, but I'm clearly missing something.
View 3 Replies
View Related
Jul 14, 2010
I am communicating with PHP web services in Android application. All the requests send from android are encoded with UTF-8 and the php scripts decodes it with utf-8.
But when any request is send with apostrophe ' the decode function of php doesn't seem to work the way it should.
For example, if I send the request as "Today's Horoscope" then its utf-8 encode will be "Today%27s+Horoscope". I tried to decode this with Android and it was successful. But in php it gives the same text after decoding.
The database is MySql. Is this a problem with database or php? I am not sure about it but is there any workaround to this problem?
View 3 Replies
View Related
Aug 29, 2010
I want to create an application to remote control my PC.
For example: Volume (get actual volume level, increase/decrease/mute volume), TVtime (start/quit tvtime, get actual channel, toggle fulscreen, channel up/down, toggle input source, toggle aspect ratio), Amarok (start/quit amarok, get current song, prev/next song, play/stop/ pause), etc.
The application for the PC is done (in python). The communication protocol used is very simple.
For example: "volume:get_level", "volume:up", "volume:mute", etc. Now I'm working on the android application.
What I have implemented till now is to create an activity, with: - an edittext to enter host:port - a button to connect/disconnect to/from server - the onCreate method creates a new thread for socket communication to send/receive messages to/from PC. - a textview to display information received from PC (eg. volume level) - a button to send command to PC I'm using handler to communicate between the tcpclient thread and the main activity.
It is working... But I want to use more than 1 activity. I want to use different activity for every program controlled. Searching for a solution to transfer the thread's handler to a new activity I have found that it is not possible, and I have to use a service.
So, my question is: how to send message from different activities to the same service, how to send message from service to the actual activity and how can I check in the service which is the actual activity? Because the service is running in the same thread as the activities I suppose that I still have to create a new thread for socket communication. How can I send the data received by the socket to the service?
View 5 Replies
View Related
Aug 14, 2010
Lets say I have 2 mobile phones which are 50 meters away from each other and I would like to send a very small packet of data from mobile-A to mobile-B, without using any communication to cellular tower. To make it simpler, I would like to build an app which implements a Peer to Peer connection for 2 mobiles in the same radius (in the same area). Is this feasible using the technology of smartphones these days?
View 2 Replies
View Related
Sep 27, 2010
I'm thinking about an Android app (with possibly an accompanying physical device), and i'm trying to figure out whether this is something that's feasible.
1) Let's say I plug my Android to my PC. Would it be possible for an app installed on the PC to communicate with an app running in the cell phone? I just need a very simplistic data exchange, it can even be one-way (just data pushed from the cell phone to the listening app on the PC, whenever the cell phone wants, I don't need any data sent from PC to phone).
When I plug it in, the phone gives me 4 options (charge, disk drive, HTC sync, tethering), which makes me think this is not doable, but still worth the shot.
2) Would it be possible for an app on the PC to talk to an app on the phone through any other way? (Wi-fi, bluetooth, etc). I'm guessing no on wi-fi since neither party has the other's IP (and I want this to kinda just work, not having to input IPs manually all the time).
3) If I make a device that's plugged to the little USB port at the bottom of the phone (and let's say this is a magical device that can do anything, I don't quite care about those details as long as it's doable). Can I have an Android app talk to that device?
4) Any other ideas to make the phone talk to a "device" that I make, or to an app in the PC are more than welcome. Going "through the web" could be an option (although there'd have to be a central server that I own as a middle man, I believe). But i'd prefer if the communication was direct between the two devices.
View 3 Replies
View Related
Feb 23, 2010
When building desktop or web apps, its easy to add fake hosts file entries so apps will connect to dev servers instead of production ones - is something similar possible for Android apps?
View 1 Replies
View Related
Jun 18, 2010
I´m trying to get hold of the addresses to the currently used DNS-servers in my application, either I´m connected through Wifi or mobile.
The DhcpInfo object should provide this but how can I get hold of a valid DhcpInfo object?
View 1 Replies
View Related
Apr 4, 2010
Right now my app needs to use the device´s (emulator´s) Internet connection. Ive read before that since my computer has Internet the emulator should be able to access it. On linux everything works but on windows the emulator can´t find the DNS I´m using, event if I add -dns-server 8.8.8.8,8.8.8.7 on Eclipse´s launch options.
Ive tried on Android 1.6 and 2.1. Is there anything else I should try?
View 9 Replies
View Related
Jun 6, 2010
I have the HTC Eris which is my own private device. I am currently synced up to my employers email server which allows me access to my work email. I would like to sync my home computer and email to this device and I don't know how to go about it. Also, if I do this, would all of my info be private or sperate from my work email? Again the Verizon account is my own plan and this is not a company provided device.
I also would like to know how to transfer photos from my phone to my desktop . Do I need an app for that or can I just sync to my desktop and transfer them directly?
View 2 Replies
View Related
Mar 23, 2013
I have recently lost my voice, and wanted to know if there was a way or an app that I can use to type on my Samsung Mobile, messages or words and transmit them to show up on my tablet? via Wi-Fi, Bluetooth. It would make my life so much easier to communicate with people next to instead of passing the mobile around.
View 2 Replies
View Related
May 21, 2010
Is it possible to install MySQL and Apache servers on an Android device?
One of the requirement was that the Android app has to communicate with a local server via Wifi (via browser for accessing PHP pages).
Instead of that, the whole server side (including MySQL, Apache), has to be transferred and hosted on the Android device, so that the device doesn't have to use the Wifi.
View 2 Replies
View Related
May 12, 2009
I found following documentation with 'emulator-
-dns-server <servers> use this DNS server(s) in the emulated system
so how do I specify multiple servers?
Comma separated, blank separated, colon separated, repeating the switch multiple times?
View 3 Replies
View Related
Oct 2, 2013
I got a Samsung Galaxy S4 last week. My home internet provider (Bell Aliant) seemingly does not allow SMTP relays from my wireless provider Koodo (Telus). Outgoing email does not send when I am not connected to wi-fi. I've seen this problem mentioned several times on the forum but never a 100% solution. iPhone email client allows 2 SMTP servers to be specified. Are there any android email clients that allow this?
I have a temporary solution where I have the native email client configured with the Bell Aliant SMTP server and K9 configured with the Telus SMTP server. I receive email to each and send from one or the other based on whether I am connected to wi-fi or not.
K9 allows you to configure the account twice but email still comes in twice and each email shows up twice in the combined inbox
View 1 Replies
View Related
Sep 13, 2010
For the past few weeks ive been trying to do a software update on my phone. i know 2.2 isnt available yet, but i just wanted to give it a try for sh!ts n giggles. my old captivate that i returned was able to connect to the att server and gave me a message saying that there are no updates available. the new captivate i have wont even connect to the att server. it sucks that i have to wait 24hours until i can try again. everytime ive done it, it gives me that error message. anyone else having this issue? i thought being rooted and having the one click lag fix was the problem so i undid the lag fix and unrooted, but i still got the same error message. im worried that when 2.2 is available, i wont be able to get it since i cant even connect to the att server.
View 6 Replies
View Related
Jun 11, 2012
I know that the stuff regarding the secure element inside certain phones is kept on a strictly need-to-know basis and Google only lets certain people have access, but how about the apps that are running on the phone, such as Google Wallet?
What I mean is, is it possible to write an App that communicates with something like Google Wallet (not necessarily this app specifically) instead of an NFC device? At its simplest, when you pass your phone over a credit card terminal, it communicates via the NFC chip to the wallet application. What I'm looking to do is bypass that terminal and just communicate directly with the app via another app, sending the necessary commands directly. Is this possible? (If so, I'm not looking for a how-to, just if it's doable or not).
I know it might be complicated and there's a lot to learn, APDU commands and all that - that's fine.
View 2 Replies
View Related
May 15, 2010
Question here, how does the OTA servers work? I don't understand how only SOME handsets are receiving the 2.1 OTA update. There are some people with multiple stock 1.5 unmodified Eris's in the SAME household on the same vzw account where only one eris has received the update while the other one still awaits why? In what sort of communication and what software is in control of this, what decides what phone gets it and what phone has to wait longer till it receives it? I have my Eris activated on All tel, I changed the PRL to my local all tel's PRL, changed the 3g login info to All tel... Been like that since the end of December, I received an OTA update for 1.5 way back when even with my phone activated on all tel, does that mean it is GOOGLE doing the OTA control or is it verizon?... Very strange if you ask me.
View 2 Replies
View Related
Apr 27, 2010
I am swithcing from my BB Curve and was wondering if anyone that has received the HTC DI is using on a Corporate email server. How does it work? Do you need the $15/month Corp Email Server subscription from Verizon Wireless. Everyone at Verizon tells me I need it, but they can't tell me why. Are emails/calendar/contacts updated instantly?
View 45 Replies
View Related
Aug 13, 2012
With 3 different devices, an lg thrill, a nexus 7, and a Samsung infuse, over 2 different routers, a netgear and a Linksys with dd-wrt And using 3 different apps, twonkyserver mobile, Imediashare, and playto. Using any combination of above, why why why do the servers keep disconnecting after 45 minutes or so?
I've tried the keep WiFi alive apps and they dont solve the problem.
Nexus 7 using Tapatalk 2
View 16 Replies
View Related
Mar 30, 2010
I'm trying to unroot in preparation for the OTA update (I'm sure there are less extreme ways to do this, but I'm a simple guy), and this link is apparently overwhelmed. I'm assuming a lot of other people are doing the same thing today. Anyone know where else it can be found?
View 4 Replies
View Related
Jun 10, 2013
I'm on Rogers and my phone isn't rooted.
View 6 Replies
View Related
Nov 11, 2009
I want to use the droid eris like an iPod touch persay, and just not use the cell phone part at all
View 24 Replies
View Related
Jul 13, 2012
My guess is, it is through GoogleBackupTransport.apk (/system/app/GoogleBackupTransport.apk) ?
I had a look at Google's Developers Guide to Backup , but it is unclear if this applies to the backup of WLAN passwords as well, nor if the mentioned "backup transport" is indeed GoogleBackupTransport.apk.
So, if I remove GoogleBackupTransport.apk, my WLAN passwords won't be uploaded ?
View 4 Replies
View Related
Dec 29, 2013
In my efforts to track down a wake lock that was eating battery, I installed Network Log. I found s something a bit disturbing. WiFi Mouse by necta.us, an app in Google's app store to let your touchscreen act as a mouse, Would
A) not exit after pressing back and hitting "yes" to exit but rather,
B) continue secretly running, making occasional contact with various servers in China. Overnight it contacted 15 different IP address, all of them Whois showing as a variety of Chinese companies with different names and address blocks. Sometimes it would use port 80, usually 224, 226, 226, 227, 228, or 230. This would happen at least every 15 minutes and some of the transfsers were up to 9.7k in length. After exiting, none of the traffic was to my wifi mouse server application.Some of the IP blocks included:
119.161.221.218:226
110.173.1.68:228
42.51.12.84:HTTP
I understand there are legitimate reasons for an app to do this. Perhaps checking a license. But this is downright scary and excessive, especially since it continues after one "exits" the program. My next step will be to install shark and take a look at the packets' contents.
Edit: installed es task manager to kill it, but it's not running. Somehow it's being signaled or on a timer. Next stop is systemcleanup to take a look at its activities and permissions in detail.
Edit 2: had to force stop it, it was running but not showing up in task manager. It's permissions include reading and modifying usb storage and of course full network access.
View 9 Replies
View Related