Android :: Ksoap2 Sending Data ?

Jun 22, 2010

I'm trying to get ksoap2 working on android. I have spent at least 10 hours now reading forum posts, and documentations. Just querying some methods like getServerTime where I don't have to send any values, works. My goal is to send data, and receive a response. For example: send city name, get city time.

I'm practicing on this site: http://www.nanonull.com/TimeService/TimeService.asmx

This is my code:

CODE:............

This is the error I get:

CODE:..............

Android :: ksoap2 sending data ?


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

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 Data To Dev Phone Using 3G Connection

Aug 3, 2009

I have a server application listening on port 5001 on an anroid dev phone. The client application running on my laptop tries to send data to the server application.

The client can successfully connect and send data to the server machine when the phone has wifi enabled. The command to do this is - iperf -c <ip address of wifi interface>

But when I enable the 3G connection and try to send data then it fails. iperf -c <ip address of the 3G interface>

I cannot even ping the <ip address of the 3G interface>. Is there any port blocking enforced in case of external 3G network connection. Can anyone please tell me how can I send data to the server application on 3G network. Is there any specific port on which the server application should be listening??

View 6 Replies View Related

Android :: Sending Data To Running Application

May 15, 2010

I have a broadcast receiver the looks at SMS, when it receives an SMS that is destined for my application it needs to send some data to an activity or start the activity if it is not running. How do I find out if the activity is running and send data to it if it is? I know I can use StartActivity and stuff the intent with the data I want to send to it but if I start the activity that is already running, another instance of it will be created (wont it?).

View 4 Replies View Related

Android :: Sending Data From Application To USB Port Possible?

Oct 11, 2010

Will it possible to send data from application to usb device (some pen drive). If yes then how? Please provide some docs or link.

View 4 Replies View Related

Android :: Sending NMEA Data To Emulator

Mar 31, 2009

I'm writing a Android gps application using locationmanager with locationlistener and I'm only testing with the emulator. This is my problem. - When sending only $GPGGA nmea sentences to emulator by telnet, everything works fine. - When sending only $GPRMC nmea sentences to emulator by telnet, the first location is recognized by locationmanager, the gps provider goes into status 2, next $GPRMC sentence is not recognized.

This happens not only with my application, the Google Maps application and also others show the same behavior: they get only the first $GPRMC location. When sending a $GPGGA sentence after the $GPRMC, the locationlistener gets control and location is shown.

View 3 Replies View Related

Android :: Sending Binary Data Via POST

Jun 15, 2010

Android supports a limited version of apache's http client(v4). typically if I want to send binary data using content type= application/octet-stream via POST,

I do the following:

CODE:.........................

However ByteArrayRequestEntity is not supported on android. what can I do?

View 1 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 :: 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

Android :: Sending Data Back To Main Activity?

May 28, 2009

I have two activity Main activity and child activity when I press a button the child activity is lunched. Still now I have no problem. I want to send some data back to the main screen. I used The Bundle class but it is not working. It throw some run time exception.

View 2 Replies View Related

Android :: Sending Data To Application Over USB Connection In Windows?

May 18, 2010

Dear I have an app developed and deployed on my HTC mobile phone. I am able to debug this in eclipse with the USB driver SDK. The mobile phone appears now in the hardware manager ADB interface. I would now be able to send data through this USB connection to the mobilephone which my app is able to handle. I know some tethering software which does this, therefore there must be a way to communicate with user data and with my app.

View 1 Replies View Related

Android :: Apps Covertly Sending GPS Data To Advertisers

Sep 30, 2010

Some Android apps caught covertly sending GPS data to advertisers

Story at arstechnica.com: Some Android apps caught covertly sending GPS data to advertisers

Is there a way to identify these apps?

View 5 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 Server When Device Connected To Internet

Feb 18, 2010

My app needs to send some data to a server when the device is connected. I have been reading about native Android Broadcast actions. I was willing to find a way to use one as gmail does when the device connects to the Internet. (The "loading" icon on the top while it syncs mails) Is it ACTION_SYNC what I am looking for? If not, how does gmail knows when the device connects to internet?

View 1 Replies View Related

Android :: Starting An Activity By Sending An Internet With Extra Data

Feb 19, 2009

I have a newbie question which is puzzling me regarding using Intents to start a new Activity but passing some data with the Intent for the new Activity to use. My app has (say) MainActivity from which I want to launch a second activity, SecondActivity, within the same app, whilst I pass an integer parameter to SecondActivity. Now my problem is : how do I receive the Intent when SecondActivity gets started and recover the value of the integer parameter ? Which member function of.

View 3 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

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

Android :: Sending Post Data To PHP Script And Display Result

May 30, 2010

I'm experienced with php, javascript and a lot of other scripting languages, but I don't have a lot of experience with java or android. I'm looking for a way to send POST data to a PHP script and display the result.

View 3 Replies View Related

Android :: Application Goes To Background Still Continue Working (sending / Getting Data From Internet)?

Oct 19, 2010

my application is not a service, it's a normal application, with some windows and some stuff. i dont wanna make it a service cos is too munch complicated and i prefeer to avoid it then, if my application is not a service, when it goes to background (home key pressed for example), it continues working (sending/getting data from internet)? i ask this because i read this on a developer guide tutorial: "Because an Activity can perform actions only while it is active and in focus, you should create your status bar notifications from a Service"

View 2 Replies View Related

Android :: Internal Server Error While Sending Data Using Post Method

Oct 2, 2010

I am working on an SMS Sending application and for login purpose i want to send the username and password using POST method from my Android Application to the web server.When i click on login button the application is not resopnding and the console prints the following message in response of the Post request.

View 1 Replies View Related

Android :: Data Lost When Sending Bundle With PendingIntent To Broadcast Receiver

Sep 16, 2010

I am adding some basic alarm functionality to my program via the use of AlarmManager and a BroadcastReceiver class (named AReceiver.java). My problem is that the data I add to the bundle attached to the Intent creating the PendingIntent appears to be lost. The only bundle data I can access in the AReceiver class is a android.intent.extra.ALARM_COUNT=1. Here is the basic code in the main activity class creating the Intent, PendingIntent and the AlarmManager: [Code in main activity - Notepadv3]

Intent intent = new Intent(Notepadv3.this, AReceiver.class);
intent.putExtra("teststring","hello, passed string in Extra");
PendingIntent alarmIntent = PendingIntent.getBroadcast(this, pendingPeriodIntentId, intent, 0);
AlarmManager am = (AlarmManager) getSystemService(ALARM_SERVICE);
am.set(AlarmManager.RTC_WAKEUP, timeOfNextPeriod.getTimeInMillis(), alarmIntent);..................

View 1 Replies View Related

UI Hangs While Sending Data On Bluetooth?

Aug 20, 2013

I am trying to write a client application which talk to server application via bluetooth. Server application is running on embedded platfrom.

I referred bluetoothchat example for bluetooth data transfer. In my application I have two activities, Main activity shows list of bluetooth devices and when a user clicks on one of the devices it will open a new activity. Then it will open a bluetooth socket start thread to connect to server. I have a message handler which talks to the connected thread.

my codes looks like this

[HIGH]
public class ConnectActivity extends Activity {
// Unique UUID for this application
public static final UUID MY_UUID_INSECURE =

[Code]....

Some times my UI hangs when I click a button, it takes ages to respond back. In my method for ledOn I call bluetooth input stream. Is this correct method to do it.

View 1 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

Motorola Droid :: Sending Live GPS Data?

Feb 24, 2010

I like to storm chase in the summer and now that I'm rooted, I can use the tether to get live radar data to my laptop. My radar program can accept GPS data to show exactly where I am in the storm, so if I could get this from my droid, that would save me one more device! Is this possible?

View 13 Replies View Related

Motorola Droid :: VZW Backup Sending Data To Phone?

Dec 11, 2009

Does anyone know if the VZW Backup application can send contacts to the Droid? I'm currently using a non smartphone that uses VZW Backup to back up my contacts on the phone online somewhere. I don't know if the Droid is compatible with the VZW Backup app tho.

View 2 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

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 :: Using Ksoap2 Via Https?

Feb 11, 2010

Has any one been able to connect to a soap server using ksoap2 android via https?

I keep getting the error that "Hostname <###>was not verified"

CODE:..........

Apparently looking back at other ksoap which isn't for android your ment to us a different call to connect via https, but i can't find a way to do it in the android version.

View 1 Replies View Related

Samsung Captivate :: Some Apps Sending GPS And Phone# Data Surreptitiously Toadvertising Servers

Sep 30, 2010

some apps sending GPS and phone# data surreptitiously to advertising servers

Some Apps caught sending private data to advertising servers

you may want to check if your apps are on the list & decide if you're OK with keeping them.

I believe I have the BBC app installed.

I just checked but my BBC app looks like it is the official one

View 10 Replies View Related







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