Android :: Way To Send Data From Service To Widget On Phone?

Apr 28, 2010

I am writing a widget on Android 1.6 that shows the minutes that a person has used on the current month.
The way I have it setup is by having a service that listens to the state of the phone and when the phone is picked up, it starts the timer and when the person hangs up, ends a timer. I would like to send this variable(long duration) over to my appWidgetProvider so I could update the edit text on it.

Android :: Way to Send data from Service to Widget on Phone?


Android :: Send Data Using CSD / Data Channel Of GSM Service?

Jul 28, 2010

I wanna develop an app that uses CSD or Data channel of GSM Service to send data. Can anyone help me out with it?

View 1 Replies View Related

Android :: Intents In Queue - Send Data Via Web Service

Sep 29, 2010

Is it possible, with an IntentService, to send another intent to the IntentService from within the IntentService? For example, say my IntentService is processing an Intent which has it write a bunch of data to the database. During this time, several other Intents to write other data may [or may not] have been queued up in the IntentService. Suppose, after processing that Intent by writing the data to the application's database, I want to queue up another Intent to send that data via web service to "the cloud." Perhaps I want to queue this processing in another Intent because sending to the cloud is secondary. Is it possible? Would it cause any problems if the Intent being processed is the only Intent in the queue at the time the IntentService is trying to queue another Intent?

View 2 Replies View Related

Android :: How To Send Back Data From Thread To Service?

Aug 31, 2010

I have a service from which a start a new thread. This new thread will communicate with a TCP server using socket. What is the best way to send the data received from TCP server back to the service? Handlers or something else?

View 1 Replies View Related

Android :: Trying To Send Data To Application Widget

Dec 21, 2009

I'm working on a widget that will change the data it is displaying when a user taps on it. This would normally be easy to deal with, but my app widget provider is handling multiple widget instances that have different sets of data. With that being said, when a user taps on the widget, a PendingIntent is launched that calls the changeData() method. Inside the intent that is launched is where I store the widget ID so changeData() knows which data set to use. At first I was storing widget IDs in the intent's extras, but I found out that there is a bug in how Android widgets handled widget intent extras so now I am trying to store the widget by passing a URL using the setData() method(formatted like content:widgetId I.E. content:24, etc.).

This is how I am setting the data for the PendingIntent:
Intent changeData = new Intent("com.tonycosentini.mintdroid.CHANGE_DATA");
changeData.setData(Uri.parse("content:" + currentWidgetId));
PendingIntent changeDataPendingIntent = PendingIntent.getBroadcast(this, 0, changeData, 0);

However once I try to test this, the onRecieve() method that is usually called when a widget is tapped is no longer called. Is there something I need to setup in my Android Manifest file for this work properly or is there something I'm doing completely wrong?

View 1 Replies View Related

Android :: How To Get Data From Service In Widget Without Binding?

Nov 13, 2010

I am writing application that has service that provides real time data to subscribers via remote callback mechanism. Now I wanted to add a widget that visualizes essential part of this data but got error: "IntentReceiver components are not allowed to bind to services". So what's the right way to get data from that service?

View 1 Replies View Related

Android :: Send Data (String) From Activity To Service In Android?

Feb 15, 2010

Usually, I putExtra inside an Intent to transfer stuff between Activities. But it seems like I can't do this with a Service? Bundle extras = getIntent().getExtras(); That doesn't work for a android Service. How do I send a string from an Activity to a Service then?

View 1 Replies View Related

Android :: How To Send Data Along A Phone Call?

Jan 28, 2010

In android we can make a call by using intent. Similarly we can invoke receivers on the in coming call. I have implemented an application to make a call as well as to receive call using intents. My question is we can pass data using intents. The same thing if i am apply to my application i got the data as null.

View 4 Replies View Related

Android :: How To Send Custom Data Objects With Intents Phone?

Jul 30, 2010

Intents in Android are an elegant way to pass messages between uncoupled components, but what if you want to send extra data with the Intent? I know you can add various value types, and objects that implement Parcelable, as extras, but this doesn't really cater for sending user defined types locally (i.e. not over a remote interface). Any ideas?

View 3 Replies View Related

General :: Send Files From Phone To PC But Using Data Not WiFi?

Mar 29, 2014

is there an app for that? i don't use wifi at all and want an easy way of sending files from my phone to my PC when i'm at home, at work, on vacation etc.

data isn't an issue as i'm on unlimited

View 5 Replies View Related

Android :: Phone Data Backup And Weather Widget

Sep 20, 2010

I have been a Nokia fan for years, but for a few months now I am totally thrilled and amazed by Android. So I decided to drop my Nokia phone, and buy a Samsung Galaxy S. I saved some money, and next month will have enough to buy my very first Android phone. I cant wait to have that phone. However I decided to post on this forum to ask you two questions regarding the Samsung Galaxy S and Android.

1. As far as I understood Android synchronizes phone data in Google applications (Gmail, Google Calender, Googe Tasks, ect.). What if I do not have google account and do not intend to have one? Can I backup my contacts/messages/phone settings on my computer?

2. I saw that many phones (Samsung Galaxy S as well) have weather widgets on main screen which show the weather forecast. My question is that these weather widgets are available only if there is a wi-fi or mobile internet connection? If there is no internet available then these widgets disappear? Because I would like to get one of these widgets but I will have internet available to my mobile phone only at my home, so when I am outside or workplace there is no internet.

View 8 Replies View Related

Android :: Widget To Turn OFF Phone And Cellular Data - But Leave WIFI On

Dec 7, 2009

Phone: Droid
Situation: On airplane with in flight wireless. Want to allow wireless, but disallow cellular, including 2g/3g data.

View 23 Replies View Related

HTC EVO 4G :: Send / Receive Phone Calls And Text Messages To Avoid Data Fees?

Aug 16, 2010

I will be traveling to Canada in the near future. I don't want to have to worry about paying excessive roaming fees, etc. How to I set up my EVO such that it will only send/receive phone calls and text messages to avoid data fees? Btw, is there a way to do this, and still turn on WiFi so I can access the web/email at my location without paying data fees?

View 7 Replies View Related

Send Data To Mysql Database - Posted Data Empty

Apr 6, 2014

I send data to my mysql database the posted data is empty...I don't know what is wrong with my code.

[HIGH]urlConnection = (HttpURLConnection) url.openConnection();
urlConnection.setRequestMethod("POST");
urlConnection.setDoOutput(true);
urlConnection.setChunkedStreamingMode(0);
OutputStream out = new BufferedOutputStream(urlConnection.getOutputStream ());

[Code]...

View 2 Replies View Related

Android :: How To Send A Picture Through A Service?

Nov 1, 2010

I wonder how is it possible to send a picture. I am using json to send data and store to database. But how do I handle a picture? How do I send it using json?

View 1 Replies View Related

Android :: Way To Send Email In UncaughtExceptionHandler For Service?

Jul 21, 2010

I want to handle exceptions in Service. my exception handler sends error report email. so i add FLAG_ACTIVITY_NEW_TASK flag and it works fine in onCreate(). but in UncaughtExceptionHandler, it doesn't send email. so how it can send email in uncaughtException()?

View 6 Replies View Related

Android :: How To Send Date From Service To Activity?

Jun 1, 2010

I have one service in one application. In my second application i am binding to that service using aidl tool . Now i want to send some data from my service to activity which is running in second application. How can i achieve this.

View 2 Replies View Related

Android :: How To Send A JSONObject To A REST Service?

Jun 11, 2010

Retrieving data from the REST Server works well, but if I want to post an object it doesn't work:...

View 3 Replies View Related

Android :: Register .intent.action.SEND In Service

Apr 26, 2010

I want to receive Intent "android.intent.action.SEND" in a Service. Is it possilbe to register for this Intent via registerReceiver() and get the Intent in Broadcast receiver in the Service?

Or is there any restrictions that "android.intent.action.SEND" can only be registered via Manifest.xml of an Activity and not in a Service?

View 2 Replies View Related

Android :: Send Json String To .NET REST Service From Java?

Oct 27, 2010

i am trying to send a json string from my android client to my .net Rest service...

HttpClient client = new DefaultHttpClient();
HttpPost post = new HttpPost("http://myURL");

JSONObject json = new JSONObject();
json.put("name", "i am sample");
StringEntity str = new StringEntity(json.toString());
str.setContentType("application/json; charset=utf-8");
str.setContentEncoding(new BasicHeader(HTTP.CONTENT_TYPE,"application/json; charset=utf-8"));
post.setEntity(str);
HttpResponse response = client.execute(post);

Response is bad request. am i sending the json object as string? is this code correct?

View 2 Replies View Related

Android :: How To Send An Intent On Wifi State Change To A Service?

Feb 17, 2010

I want to send an intent to my service everytime the state of Wifi connectivity changes. So when I currently use a broadcast receiver to listen for the state changes in Wifi, so when this recieves an intent I want to be able to send this info on to my service. Is this possible and if so the correct way to do it?

View 2 Replies View Related

Android :: Way To Send KeyEvents Through An Input Method Service To A Dialog?

Apr 12, 2010

I'm trying to implement an input method service that receives intents sent by a remote client, and in response to those sends an appropriate KeyEvent. Is there any way to send keys and control the device like using the hardware keys from an input method?

View 2 Replies View Related

HTC Desire :: Lost - Stolen Desire - Protect Data - Send Sms To Preallocated Number If Phone Is Booted Up With Different Sim

Jul 18, 2010

My friend just lost his Desire at an airport. The pattern lock is active, but that does nothing but protect the data on the phone - Not SD. The first thing they would do is to switch the phone off and replace the sim.

Now here is my question : Is there an app that will send an sms to a preallocated number if the phone is booted up with a different sim? I know some Samsung phones can do this. But having an app that requires your own sim to be able to find it if stolen is quite pointless.

View 7 Replies View Related

Sony Ericsson Xperia X10 :: Used Data Toggle Widget Data Is Blocked After Uninstall?

Nov 22, 2010

I had been using the DATA TOGGLE widget for couple days, today strangely the widget was not functioning, it was not possible to turn on/off data. I tried uninstalling the app but still the problem persists.I tried switching off the phone, remove battery didn't work also tried the airplane mode on/off without luck also tried changing the ENABLE DATA in the settings no luck Cleare all current APN's and re installed the APN settings but still the problem persists?

View 3 Replies View Related

Android : Send SMS From Widget

Nov 16, 2010

I want to send a preset SMS message when I click on my widget. How do I do it?

View 5 Replies View Related

Android :: Google Marketplace ID Of Purchaser Of App To Send It To Back-end Service Database

Oct 22, 2010

Is there a way I can get the Google Marketplace ID of the purchaser of my app? I mean from within the app at runtime. I want to send it to my back-end service database to help detect pirates.

View 6 Replies View Related

HTC Hero :: Service Denied When Trying To Send MMS

Jul 22, 2010

This has only happened since rooting, I'm trying to send an MMS and it's failing, saying the service is denied.Any ideas? As far as I know the APN settings are all right and the mobile internet is working fine.

View 8 Replies View Related

Android :: Stopping Widget's Service When Not In Use

Jun 3, 2010

I'm having trouble getting my widget to stop hogging so many resources.I setRepeating on the AlarmManager to update. When the widget is deleted (onDisabled()), I call .cancel() on the service, but the service still shows up in the android "running processes" making me believe I'm doing something wrong.Also, should I be scheduling my updates in the onEnabled() or the onUpdate()? onUpdate doesn't seem to work on anything other than the first widget.

View 1 Replies View Related

Android :: Use An Activity Or A Service When Using A Button In A Widget?

Aug 9, 2010

I have made a Android Widget which displays two articles (title + image). In addition to this, I have buttons for flipping backward and forward through the articles. What I don't understand is how I can change the Widgets RemoteViews when the buttons are pressed. Which should be one of the most basic operations in a widget, however, I can't seem to figure it out.

So... Can I do this with just a OnClickListener in the AppWidgetProvider? Or do I have to create an Activity without a window (visibility = false)?

View 1 Replies View Related

Motorola Droid :: Unable To Send Text Until Service Is Available

Jan 16, 2010

What could be happening when you get that message after you hit "send". WiFi or 3G is at full strength, so I don't think it's a connectivity issue. It's happened a few times over the last few days. A little red envelope appears with something that looks like a timer. Message eventually sends, but several minutes later.

View 2 Replies View Related







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