Android :: Communicating Between An App And A Widget

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.

Android :: Communicating between an app and a widget


Android :: Communicating With PC - C#

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

Android :: Not Communicating With Computer

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

Android :: Communicating With The PC Via USB Connection

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

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

Android :: Communicating With A Looper Thread

Feb 9, 2009

I need a message queue in my background thread, so I created a looper thread.

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

View 5 Replies View Related

Android :: Communicating Thread With ProgressBar

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

Android :: BroadcastReceiver Communicating With Activity

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

Android :: Apostrophe In Communicating With PHP Script?

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

Android :: Using Socket In Service Communicating With More Activities

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

Android :: Communicating Between Two Smartphones Without Using Cellular Tower

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

Android :: Apps - Communicating With Device Plugged In USB Port

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

General :: Communicating Between Samsung S3 And Tab 10.1

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

Samsung Captivate :: Error Communicating With Att Server

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

General :: Communicating With Mobile Wallet Apps?

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

Android :: Communicating Between Receiver Class And An Activity Class

Jul 14, 2010

I'm just getting into Android development, and I have a question about communicating between a receiver class and an activity class. I'm very new to JAVA and Android so I hope I don't sound too stupid. I'm developing an application where I intercept an SMS message and then based on various elements of that SMS I might delete it once it's been saved to the inbox. I have a receiver class that intercepts the txt message, and I am also able to delete messages from my inbox with code in the activity class using a button at the moment. The problem I have is communicating between the receiver class and the activity class where the code to delete a message resides. I tried putting that code directly into the receiver class but as I'm sure most of you already know the BroadcastReceiver class doesn't seem to support what I need to delete messages. I've been searching for an answer to this for a while, but haven't been able to find anything. Honestly I'm not sure I know enough about JAVA and Android to even recognize a solution if I saw it.

View 2 Replies View Related

Android :: Widget Instance On Homepage But The Widget Provider Or Receiver Is Disabled?

Sep 16, 2009

will the device wake up if there is a widget instance on the homepage but the widget provider or receiver is disabled?If I have a widget instance on the home page, but if I were to disable the widget provider from receiving messages by disabling the component, and if I have no components receiving the messages targeted for that widget, will Android still wake up the device?

View 5 Replies View Related

Android :: Widget Locker / Weather & Toggle Widget And Sense Animations

Aug 27, 2010

One of the things I liked about Sense (I'm rooted now and running the Second Wave ROM) was the HTC weather animations when the screen was unlocked. After installing Widget Locker, I noticed an option to turn them on and now I have them back! I also installed the Weather & Toggle Widget and installed the weather skin that looks just like the Sense weather with the flip clock.The annoying part is that when it's sunny, or partly sunny, the "sun animation" from Sense doesn't perfectly align with the Weather & Toggle Widget weather icon. I know, I know, it's a minor problem and goes away when the animation is done, but the lack of symmetry sometimes annoys the hell out of me.

View 1 Replies View Related

Android :: Setting Widget Icon Image On Widget Load

Oct 16, 2010

I am writing my first application and am trying to get my widget to load a different image when it is added to the home screen based on the state of the notification volume.It is detecting the notification state fine and the proper Toast messages appear when I add the widget, but I'm not getting any icon.I just get an empty button.I'm using the same code to change the icon in my onReceive() method to do other things and that works fine.Is this the proper way to accomplish that?

View 3 Replies View Related

Android :: Passing Touch Events From One Gallery Widget To Another Widget

Feb 18, 2010

I am trying to pass the same touch events on one widget to the other so they both scroll at the same time and in same way. I have two Gallery widgets one above and one below. If the above one is scrolled then I want to pass the same touch event to the bottom widget so it also scrolls the same way.I have tried to use dispatchtouchevent events but I am facing an issue where in if the bottom gallery widget has some edit text then the edit text gets the key event and both widgets doesnt scroll anymore.I have tried to set focussable and editable to false on edittext even then it gets the touch events.I think I am going in the right direction. However I need some assistance in doing the right way.

View 3 Replies View Related

Android :: Weather App & Widget - Widget On Desktop That Flows With Theme

Jul 9, 2010

I'm not understanding this whole weather app & widget thing...I'd like to have a nice looking widget on my desktop that flows with my theme. Not the one that the weather channel app has.

View 5 Replies View Related

Android :: Create Widget Like Analogue Clock Widget That Update Itself?

May 1, 2010

I can create a static widget without thinking, I can even create a widget like the analogue clock widget that will update itself, however, I can not for the life of me figure out how to create a widget that reacts to when a user clicks on it. Here is the best code sample that the developer documentation gives to what a widget activity should contain (the only other hint being the API demos, which only creates a static widget):

public class ExampleAppWidgetProvider extends AppWidgetProvider {
public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {
final int N = appWidgetIds.length;

// Perform this loop procedure for each App Widget that belongs to this provider
for (int i=0; i<N; i++) {
int appWidgetId = appWidgetIds[i];

// Create an Intent to launch ExampleActivity
Intent intent = new Intent(context, ExampleActivity.class);
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, 0);

// Get the layout for the App Widget and attach an on-click listener to the button
RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.appwidget_provider_layout);
views.setOnClickPendingIntent(R.id.button, pendingIntent);................

View 2 Replies View Related

Android :: Widget With Two Textview Like Twitter Widget

Aug 4, 2010

I basically want a widget which has a simlar layout as the twitter widget.As you can see the tweet text nicely wraps around the AUTHOR element. This can be done with one TextView using the following method: http://developer.android.com/guide/appendix/faq/commontasks.html#sele.The problem is that its a widget and i only have access to the ui elements using the RemoteViews.I was thinking of using a layout manager for this, but its impossible because textviews are always rectangular.So how do i do this? I know you helped twitter build their application.

View 4 Replies View Related

HTC Desire :: Any Call Log Widget / Voice Mail Widget Looking Like Mail Widget?

Jun 29, 2010

I'm looking for a call log widget and a voicemail widget which look like the default mail app widget.That is, a simple small widget which show me the number of missed calls (if it's the call log widget) or the number of voicemails received (if it's the voicemail widget), just like the mail widget shows the number of emails received.

View 2 Replies View Related

HTC Desire :: Multiple Contacts Listed For Messages Widget Not People Widget

Aug 20, 2010

all my contacts are google contacts with several linked to Facebook accounts.When I access my contacts through the People widget, all's good, I only see the google contacts (I've deselected Facebookers in the view menu). However when I access the Messages widget all my contacts are doubled up for some reason. I realise this list is also showing facebook contacts as well as google contacts but even the non-facebook contacts are doubled up.

View 1 Replies View Related

Android :: NEW WIDGET My Contacts Widget

Feb 2, 2010

my new Homescreen TAB CONTACT WIDGET.MY CONTACTS WIDGET ALBRAndroid Blog..In the market now " My Contacts widget".

View 15 Replies View Related

Motorola Droid :: Problem Free GPS Widget / Besides Power Widget

Nov 17, 2009

besides the power widget is there one you can download that just for gps that actually works and is problem free on the droid?.

View 3 Replies View Related

HTC EVO 4G :: Need Replacement For News Feed Widget / Espn Widget?

Jul 17, 2010

I prefer using Launcher Pro but I lose the HTC News feed widget. Anyone have a good replacement for the News Feed widget or a good ESPN widget?

View 1 Replies View Related

Android :: Android Agenda Widget Vs Pure Calendar Widget

Sep 10, 2010

I've been looking for an agenda tool/widget for my Android phone. I've narrowed it down to these two (PLEASE don't post suggesting other alternatives!! And note that I don't mean the Pure Grid version!). I've been searching for half an hour, but I can not find anything that compares these 2 apps or shows any diffs between them. The best I've seen is comments like " beats hands down", with no explanation as to WHY.As far as I can see, for my purposes (using Google Calendar & Astrid), the only difference between the 2 is the PRICE! Both come in numerous widget sizes, both integrate with Astrid & Google, both are scrollable, both are skinnable. So why choose one over the other? (Or, really, why choose Pure Calendar over Android Agenda, given that the latter is free?) I wish I could just test both out but the Pure widget series has no demos

View 3 Replies View Related

Android :: Duplicating Fling Motion Of Gallery Widget To Other Gallery Widget In Same Screen

Feb 17, 2010

I have two gallery widgets in same screen. If user flings on top gallery widget I would like to replicate the same fling motion on the other gallery widget thats beneath the first one. Is there a way I can possibly achieve this.

View 2 Replies View Related







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