Android :: Sending And Receiving Data From A Web Service Using Android

May 18, 2010

is it possible that I send a request from my Android app to a web service and in return I get a data for example a XML file from the web service which I parse in android?

Android :: Sending and receiving data from a web service using android


Android :: Sending / Receiving Data Using StartActivityForResult

Apr 21, 2009

Ok, I have 2 Activities I want to send data between activity A and B.My problem is that some random code of mine seems to be called between startActivityForResult() and onActivityResult()in Activity A.This doesn't make any sense because there is no code after startActivityForResult() is called.Shouldn't onActivityResult() be the first thing A does after B finishes?

View 2 Replies View Related

Android :: Sending And Receiving Data Messages Via A BroadcastReceiver

Feb 15, 2009

Is there already functionality similar to the push registry or wireless messaging API in J2ME implemented in Android? Or at least plans to do so?I have been looking at this issue for a while, because in a corporate environment it is essential to be able to push information out, or trigger actions via SMS or other connections.I have successfully sent an SMS between emulator instances, and successfully received an SMS by using a BroadcastReceiver on another emulator instance. I have also been able to use SmsManager. sendDataMessage to send a data message to a port on another emulator instance, but in this case the BroadcastReceiver is never triggered. This seems to be the closest the API's get to what I'm looking for.

View 3 Replies View Related

Android :: Trying To Start A Thread Dedicated To Sending And Receiving Data

Apr 8, 2010

I have a main class activity that does the task of sending control to other activities on click of a button. I am also starting a thread in the main class. This thread basically sets up a connection with the server and is active throughout the lifetime of the application.I have two functions in the thread class, send and receive data from server.Therefore, when the other activities need to send/receive data from server, they use those particular functions.First of all please let me know if what I am trying to do is fine as per the architecture of the operating system. If its fine, when I try to run the code, the app crashes and i see a NullPointerException and a RuntimeException in the DDMS log.Could some one please help me out in this or suggest a better way to implement the concept.Also, please be assured that, the other functionality of the code works perfectly fine.

View 15 Replies View Related

Android :: Sending Data To HTTP Servlet And Receiving String

Dec 30, 2009

This is the servlet code in java ME.

protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
PrintWriter out = response.getWriter();
ArrayList<String> listName = new ArrayList<String>();
ArrayList<Integer> listLongitude = new ArrayList<Integer>();
ArrayList<Integer> listLatitude = new ArrayList<Integer>();
String sLongitude = (String) request.getParameter("x");
String sLatitude = (String) request.getParameter("y");
String path, list, scount; Integer numLong = null;
Integer numLati = null; Connection con = null; String slanje = "";
int limitLeft, limitRight, limitUp, limitDown, icount = 0;
if (sLongitude != null && sLatitude != null) {
try { numLong = Integer.valueOf(sLongitude);
numLati = Integer.valueOf(sLatitude); } catch(Exception ex) {}
} try{ Class.forName("org.apache.derby.jdbc.ClientDriver");
con = DriverManager.getConnection("jdbc:derby://localhost:1527/bazaprojekt", "projekt2009", "midlet"); limitLeft = numLong - 8; limitRight = numLong + 8; limitUp = numLati + 8; ...

How do I send x and y to servlet and receive some string in Android?

View 2 Replies View Related

HTC Desire Z :: Receiving Or Sending Any Data Through Wifi

Nov 29, 2010

i recently bought a HTC Desire Z and when i broguht it home, i hooked it up to my wireless n router with MAC filtering and I believe WPA security. it was working fine until around sunday. it said i was connected to my network but i was not recieving or sending any data.

View 3 Replies View Related

Android :: Sending Data From Service To Activity

Sep 23, 2009

I am having issue for sending data from service to Activity through notification , I click a notification a activity get invoked but when i try to add some parameters through bundle i am not able to get the parameters in that called intent , I have gone through the link
http://stackoverflow.com/questions/1198558/how-to-send-parameters-from-a-notification-click-to-an-activity. but still no luck has any body occurred with the same issue.

View 1 Replies View Related

Sony Ericsson Xperia X10 :: How Much Data Phone Is Receiving / Sending

Apr 19, 2010

I got the phone last week and very disappointed with low sound volume but seems I am not alone....anyway that's not my question.I am interested in how much my 3G connection is active and how much data my phone is receiving/sending. I installed the 3G Watchdog app and for example this morning with browsing BBC website with NO downloads etc it is showing 4.76MB data alone (3.96MB received and 838KB transmitted). My 3G connection is almost always flashing with the arrows showing data transfer but what is it?!

Facebook has all updates off
Email is synced hourly
Moxier calendar daily

I seem to have a "background" data transfer of 3MB/day and this is without any browsing etc...what is going on?!

View 12 Replies View Related

Android :: Use Of Intents Used For Sending Data To Activity From Service

Feb 16, 2010

I am little confused with the use of intents used for sending data to activity from service. In my application I have to have startactivity from the service and have to pass data ,so that activity can utilize the data while launching.For this i have written the following code Intent intent = new Intent(Service.this,Activity.class); intent.putExtra("data", data); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.start Activity(); I assume that the data is passed to the activity and can be parsed on the oncreate function of the activity.Now the service running in the background has to pass data to the activity continously for UI updates.For this I have written the following codeIntent intent = new Intent(Service.this, Activity.class); intent.putExtra("Data", data); intent.setAction(Intent.ACTION_ATTACH_DATA); sendBroadcast(intent,null); (Do I need to broadcast the intent???) In activity I have done following things:- Implemented broadcast reciever:private BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { if (Intent.ACTION_ATTACH_DATA.equals(intent.getAction())) { Bundle extra = intent.getExtras(); float Data[] = extra.getFloatArray("Data"); update(Data);

View 4 Replies View Related

HTC Legend : GPRS - H For HPSA Was In Status Bar - Occasionally Sending And Receiving Data

Sep 5, 2010

I usually have the Mobile network turned off, to save the battery but mostly because I don't want to use my limited data allotment.

Today I was out about 60 miles away from home; I had a decent cellular connection, no Wi-Fi because I was out of range and no data because it was turned off...or so I thought.

Without me turning anything on There it was the "H" for HPSA was in the status bar; occasionally sending and receiving data.

I did use the GPS for a while and I would have thought that if it needed a data connection a warning would have popped up.

I tried the obvious, turning on and off the Mobile network, but the "H" remained.

One back in the city the "H" remained, the only way to reset my phone was to reboot.

View 6 Replies View Related

Android :: Sending Data Back And Forth Between Activity And Service Locally?

Aug 13, 2010

I am a bit new to Android. What I need to do is send data back and forth between an activity and a service locally. The information sent is sensitive and must not be able to be picked up by other apps. This excludes using broadcast and the onBind() function if I understand things correctly? So the activity needs to send some string parameters to the service. Also it somehow needs to tell the service which activity started it so the service can reply to the correct class since many different activities will use this service.

Once the service has fetched the information via a http request it is suppose to send that data (just a long string which will later be parsed) back to the activity that started it. How do I go about doing this? Using static variables/functions is not an option since again many actives will be using this service. Sure it would be possible to use a static array to hold the classes but that just seems ugly. It's only possible to send simple variables (not objects) via the intent? There must be a better way to do this.

View 1 Replies View Related

Sending And Receiving SMS And MMS In Android

Jun 15, 2013

how to send and receive MMS on Android?

View 1 Replies View Related

Android :: Receiving / Sending SMS In A Particular Port

Nov 26, 2009

I am just wondering if it is possible to receive SMS in a particular port. I believe by default all SMS messages are delivered to Port 0 and SMS manager gives the notification about this message.Is there any way in which we can send and Receive SMS messages in any particular port apart from the default port.

View 2 Replies View Related

Android :: Sending And Receiving Emoji

Oct 10, 2010

Softbank Japan has just released an sms/mms app that allows sending and receiving emoji! I just tested with my wife's iphone, and I could send emoji fine with my HTC Desire (Softbank x06HT), and I could receive it fine! A big selection of emoji too, maybe the complete set that Softbank usually includes on their other phones. It is buggy and a bit clunky, but it's a *lot* better than nothing! Lots of complaining in the comments section, but I don't think it's that bad. Now, the big question: Is it available in other markets? I'm in Japan right now, and I searched for "Softbank" in the market and I found it... It's called "Softbank メール". The link that they sent me in a news SMS is: "http://market.android.com/search?q=jp.softbank.mb.mail". They also say it is Froyo only...

Lastly, for those who have been in Japan a while and have an @softbank.ne.jp or @x.vodafone.ne.jp (like me) can now use those mails on their phones as well, inside the app. I sent myself a message and received it fine, and when I replied it sent from my old vodafone mail address (although I haven't figured out how to choose between SMS and e-mail for sending yet). EDIT: Figured it out, just type in a phone number (or choose from contacts) to send an SMS, type in an e-mail address to send from your @softbank or @vodafone address. Swet. I'll see if I can post the full message, for those who can read Japanese (I can't read very much of it, only hiragana/katakana).

View 1 Replies View Related

Android :: Sending / Receiving Custom Broadcast Intent

Jul 25, 2009

I'm building a service that sends a broadcast intent when some value changes. The service sends the broadcast like this:

Intent broadcastIntent = new Intent(); broadcastIntent.setAction("nl.vu.contextframework.NEWREADING"); broadcastIntent.setData(Uri.parse("context://"+cer.getKey())); broadcastIntent.putExtra("reading",cer); broadcastIntent.addCategory("nl.vu.contextframework.CONTEXT"); sendBroadcast(broadcastIntent);

In some Activity (in a different process), I'm tryint to receive this broadcast as follows:

IntentFilter intentFilter = new IntentFilter();
intentFilter.addDataScheme("context");
intentFilter.addCategory(CATEGORY_CONTEXT);
registerReceiver(new BroadcastReceiver() {
public void onReceive(Context context, Intent intent) {
Log.d(TAG,"Received intent "+intent); }
}, intentFilter);

View 6 Replies View Related

Android :: Sending / Receiving Java Objects To Server

Sep 23, 2009

I have a Tomcat Server in front of a Servlet that gets/stores information in a MySQL Database. My Android application needs to get/ put information on to this server. I control both ends of the communication, so I've basically been exploring the "best" way to send information back and forth. So far, I've tried Jackson for JSON and the native Java Serialization packages. My object is relatively complex and completely serializable.I have no desire to write a "custom" guy at all, as I doubt I'd actually be able to improve on most of the packages.So with that being said, are there any other strategies/packages I should try to get information to/from my server?

View 9 Replies View Related

Android :: Unable Sending / Receiving Mails In Emulator

Jul 9, 2010

I configured my Gmail account successfully in the emulator. My goal is to respond to incoming messages in the mail account from my own application - for example display notification. I am using the standard mail application that comes with the emulator. I tried to receive mails from my account, but it does not work, there are no conversations in the standard mail application. I can't send and reveive messages from inside the emulator. Why?

View 8 Replies View Related

HTC EVO 4G :: Evo Not Sending Or Receiving Mms

Nov 17, 2010

so I'm a new evo owner, had the phone for about 2 weeks.Love it, it's the best.Onto the problem.When I first got my phone I was sending and recieving pics no problem.A few days later I was not able to send a pic. I thought it might be too big, but knew that the evo should reduce the size and send it.After doing some reading online, I found many people suggested downloading handcent.I did this, but still can't send or receive mms. My phone is not rooted, don't know what that would do anyway.I know there are some hardcore evo users reading these threads and I see many people have had the same problem I have, but I have not found an answer to this yet.It's not a huge deal if I can't see the picture my buddy send me of his ass, but with this phone I should be able to see it if I want to.

View 5 Replies View Related

HTC EVO 4G :: MMS Not Sending Or Receiving And Buttons Always On

Jun 14, 2010

How can two EVO�s purchased at the same time have the most random problems?My girlfriend and I bought our EVO�s at the same time/place and both have completely different random problems.

#1) When we first got our phones we tested out a bunch of stuff including texting photos to each other. She got the ones I sent, but I didn�t receive hers. I thought it was something wrong with my phone, but after a bunch of testing, it looks like it�s hers. What makes it annoyingly weird is that I can receive texts with photos from her UNLESS she sends it in this manner: from the photo she chooses share, then the screen comes up to enter who to send it to. If she enters my name by hitting the search magnifying glass in the upper right and then chooses my name, I will not get the text. Every other way she sends it, I will receive the text. Makes zero sense as I can send her a photo text any which way from my phone and she gets it.

#2) My EVO has the 4 navigation buttons dimly lit all the time unless it�s plugged into the charger. Her phone does not. Not a huge deal, but I am concerned it is draining the battery just that much more unnecessarily.

View 1 Replies View Related

HTC Desire :: Receiving And Sending MMS A Lottery?

Nov 20, 2010

I'm using a Desire on T-Mobile UK and it seems a bit of a lottery as to whether I can send or receive MMS messages. Sometimes they are sent and received without a problem when I'm connected via WiFi, but on other occasions I have to switch to a data connection to send or retrieve MMS messages.The message I occasionally encounter is "generic network failure".

View 3 Replies View Related

HTC Hero :: Sending & Receiving Files

Dec 31, 2009

i have a HTC Hero & i was wondering how you send songs or images to other people via Bluetooth?I have looked around the phone and there is no Send via Bluetooth anywhere.It kinda sucks if you cant do it as every phone these days should have the capability of sending & receiving Files.

View 1 Replies View Related

Android :: Android - What's Best Way To Test Sending / Receiving MMS Messages?

Oct 11, 2010

I'm writing an app that stores secret (encrypted+hidden using steg) information in MMS messages. Obviously I need a way to test this, in particular, sending and receiving MMS messages. I have one Android phone, a Nexus One. I know that MMS's cannot be sent between emulator instances, but other than using up loads of MMS credit, is there another way of testing out MMS sending/receiving without just spending loads of money?

View 1 Replies View Related

Samsung Fascinate :: Not Receiving Or Sending Texts

Sep 10, 2010

I just activated my new fascinate and can not receive or send texts from my GF (who is on att) but I can get texts from my roommates (on verizon). Anyone know what the deal is?

View 1 Replies View Related

HTC Hero :: ActiveSync Only Receiving Email But Not Sending?

Oct 23, 2009

I am able to sync with my exchange email on the HTC Hero for Sprint, but i am not able to properly send emails. I can send an email and it will appear as it goes through, but the email is never actually sent or does not show up on my sent box (on either the phone or outlook).Any similar issues from others & any suggestions on fixing?

View 6 Replies View Related

HTC Incredible :: Strange Receiving And Sending Pictures

Jun 3, 2010

I've been using Handcent and I have trouble receiving and sending picture messages. When I get a picture is views it as a movie? how can I change it so it is just a picture, as for sending pictures, It's not working at all! Any fixes?

View 1 Replies View Related

Sending And Receiving Asynchronous HTTP Requests?

Jul 20, 2012

I developed a game for Android called Jumping Bird, it writes the score obtained by the player in the database on my web server, but it does so synchronized. While it tries to write data in the database on the web, the entire game is stopped , and worse, when the server is slow, the request takes more than 5 or 10 seconds, an ANR(application not respond) error occurs and the OS tries to close the app.

I wonder how I can make that request asynchronous.There is any library that does it?

View 1 Replies View Related

General :: HTC DNA - Sending Pictures But Recipient Not Receiving?

Jul 13, 2013

I am trying to send pictures to another phone, the MMS seems to be sending from my hpne, (no error messages or anything) but the other phone isnt receiving them. I can receive MMS from the other phone to mine but not vice versa...

View 3 Replies View Related

General :: High CPU Usage When Sending / Receiving SMS

Feb 2, 2013

Whenever I receive or send an SMS the CPU usage goes up to 90%-100% for like 5 seconds and then returns to low usage. At first I thought it was a problem with Handcent and after uninstalling and using the stock messaging program it does the same.

Is this normal?

Device: Sony Xperia Mini
Android: 2.3.4

View 7 Replies View Related

General :: App For Automatic Immediate SMS Backup Upon Sending / Receiving?

Sep 17, 2013

When I receive a simple text message, I have to make sure I wait a full minute before deleting it because SMS Backup + https:/[url]...has a minimum interval of 1 minute for auto backup. Is there an app that can be set to do automatic backups in intervals of less than 1 minute? Is there a reason why there can be no immediate *auto* SMS+ Backup upon sending/receiving, in other words, is there a reason to wait at least one minute before the incoming/outgoing text message is backed up?

View 1 Replies View Related

Samsung Fascinate :: Handcent Not Sending Or Receiving Pictures

Oct 28, 2010

I have been using handcent for almost a month now. Sending or receiving pictures hardly ever works. Does anyone have any advice?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved