Android :: Easiest Way To Communicate Between Two Activities In Two Different Applications

Apr 30, 2010

I have an application A and a application B that both have an activity. Now i want to send Data from activity A1 to activity B1 and back. Whats the easiest way to to dis? I tried to use Remote Service via AIDL, but this doesn't work very well in both directions because I only can pass the primitives data types and not every object i like (ok i would have to implement parceable but this is not really practicle). Then i read this post by Dianne Hackborn.

Android :: Easiest way to communicate between two activities in two different Applications


Android :: How To Communicate Between 2 Activities?

Apr 22, 2009

I have read 'http://developer.android.com/guide/tutorials/notepad/notepad-ex2.html', specifically step 4 ahow can I return a different result to the 'calling activity', in this example, it always return ACTIVITY_CREATE. What if the 'activity being launcher' has a 'okay' and a 'cancel' button. How can the 'calling activity' knows which button user presses in the 'activity being launcher'.

View 3 Replies View Related

Android :: Service - Communicate With Activities

May 19, 2010

I'm wondering which is the best way to communicate between a Service and an activity..

Broadcast intent
Callback
others?...

View 1 Replies View Related

Android :: Two Applications Communicate Using DBus

Nov 20, 2010

My intention is to let two applications communicate using DBus . i know that DBus is already integrated into android,Dbus binaries DBus send,DBus-monitor,DBus-daemon are already available. i am trying to create an application which will connect to the Dbus and start sending signals and messages over DBus . for this i have used basic DBus API's to establish connection to the bus.

I have written native code to connect to the DBus.here is the code

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

View 2 Replies View Related

Android :: Communicate Between Applications (service Vs Intents)

Sep 13, 2010

What is the difference between 2 ways of interaction between applications on android:

1. implementing service in app #1 and using it in app #2.
2. handling intentions and posting answer intention.

View 2 Replies View Related

Android :: Switching Activities / Passing Data Between Activities

Jun 30, 2010

how to call BarCodeScanner, and return the value to a field.so now, i have a toast that says "successful scan" and then i want to pass the result to a new activity. when i comment out my intent, everything works (minus the passing of data/switching of screen, obviously) but when i run my project as is, it FC's no errors reported by eclipse in code or xml. any insights?

View 2 Replies View Related

Android :: Easiest Way To Draw Texture With OpenGL ES?

Feb 6, 2010

the draw_texture function is the fastest and VBO is 2nd faster. But I don't understand how to use it(the draw_texture method or the VBO way).

View 2 Replies View Related

General :: Easiest Way To Install Stock Android To S4

Jun 30, 2013

I have been trying to find step by step instructions on how to install stock android on my AT&T S4 for the past 30 min...but its complicated. Is there a way a person can install stock android, like installing Windows on a PC?

View 2 Replies View Related

Android :: Communicate Between Tabs

Feb 27, 2009

I am using a TabHost one tab with a list and another to show the details of a specific item selected in the list. Does anyone know how I can communicate between tabs?

View 2 Replies View Related

Android :: How Do Services Communicate With Each Other?

Mar 25, 2009

I am trying to send AT commands via Ril from LocationManager as there is only one AT port I can use. But it seems like that there is no ways to call the function refer to Ril. Can I just new a commandsinterface and to call ril's functions via it?

View 2 Replies View Related

Android :: How To Communicate Between Two Emulators?

Nov 24, 2010

my machine is running window 7.i want to communicate bw two android emulators running on same machine.Emulator 1 is listening on some ip 10.0.2.15 when emulator two tries to create Socket socket = new Socket ("10.0.2.15",8080);it gives exception, unable to connect to 10.0.2.15.does any know how to solve this problem??

View 1 Replies View Related

General :: Communicate Android App With PC App Over USB

Apr 9, 2012

I want to control my pc with an app on my android device over usb. Is this possible.

View 1 Replies View Related

Android :: Easiest Way To Programmatically Check If The Market App Is Installed?

Feb 9, 2010

What is the easiest way to programmatically check if the Market app is installed?

View 9 Replies View Related

Android :: Easiest Way To Transfer Music And Pictures To Droid?

Mar 24, 2010

I've got plenty of music on my computer as well as pictures that I'd like to put on my Droid. What's the easiest way to do this? Also, if I don't have one of the ringo type apps can I use these songs as ringtones for specific contacts?

View 4 Replies View Related

Android :: Easiest Phone To PC Application - Desktop Controller

Oct 17, 2010

I need advice on which app is the easiest and best phone-to-pc app. Like being able to control your computer with your phone, like a desktop controller. I found this app, Desktop Remote Free - Android app on AppBrain. I'm not quite sure how to use it?

View 2 Replies View Related

Android :: Easiest Way To Make A WebView Display A Bitmap?

May 31, 2010

I have some images that I loaded from a remote source stored in Bitmap variables and I want to display them. In addition to switching between these images the user should also be able to zoom and pan them. My first idea was to somehow pass them via an intent to the built-in gallery application but this doesn't seem to be possible.
A solution that is suggested in several places is using a WebView since it already supports zooming and panning.
My question is how does my Bitmap data get into the WebView? Do I have to write it to a file first, which I would have to remove again later, or is there an easier way?

Or are there even better ways to accomplish my main goal, which is displaying Bitmap data as zoomable and panable images?

View 2 Replies View Related

Android :: How Does A Service Communicate With Activity?

Feb 17, 2010

Suppose I have an Activity that's a list. It calls a Service when this Activity starts.The Service will do background stuff download, parse, and fill the list.My question is this: How can the Service communicate with the Activity?How can I call a method in the Activity, from the Service? (I'm new to OOP)

View 2 Replies View Related

Android :: How Does BaseAdapter Communicate With Its ListView?

Sep 6, 2009

How does BaseAdapter communicate with its ListView? I was wondering how the BaseAdapter.notifyDataSetChanged() method notifies the attached View that the underlying data has been changed and it should refresh itself? When creating a BaseAdapter you attach it to the View with.So the ListView then knows it's adapter to get list elements. But you never tell the BaseAdapter what ListView it is attached to. So when you call BaseAdapter.notifyDataSetChanged() how does it reach the View to tell it to refresh itself?

View 3 Replies View Related

Android :: How To Communicate From Javascript Back To An App?

May 12, 2010

I'm loading up a webview with some locally generated html and javascript.It makes calls to app methods just fine.But what's the right way to get data from Javascript back to the application? It's simple to have javascript call app methods, but any parameters specified in the call on the javascript side don't survive the trip (I just get null in the app).Gross hacks seem obvious (open a url and encode the data in the url), but that can't be right.You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

View 3 Replies View Related

Android :: App To Communicate Over Phone USB Port

Jul 2, 2010

I am working on a app that will eventually need to communicate with an external device over the phone USB port. Are there any USB drivers and hooks in the Android OS for such applications.

View 4 Replies View Related

Android :: How To Communicate With Embedded Activity?

Jan 30, 2010

In my current project I have a full screen TabActivity. Each tab content is handled by two instances of same ListActivity. Now, I put an extra int in intent to know which data should be displayed.So in onCreate method of my ListActivity, I check the int in extra and I build my query to obtain a SQLLiteCursor.I would like to dynamycally give to this two instances of ListActivity the list of item that should be displayed.I do not know what is the best way to do this. Any idea ?

View 1 Replies View Related

Android :: Communicate With A Service From An Application

Aug 25, 2009

i have some problem to communicate with a service from an Android application.The service is in a first package "package com.myService" and the application in another on "package com.myApplication".My service work and start well but my next step is to add an AIDL interface to external applications.I have tried to follow the recomandation described here : http://developer.android.com/guide/developing/tools/aidl.html, but i have still the following error (given in the log service):W/ActivityManager( 568): Unable to start service Intent { action=com.MyApplication.IBootstrapService }: not found

View 2 Replies View Related

Android :: Communicate Which Button Pressed?

Sep 30, 2009

i have an app widget that has a couple of buttons on it, and in my onUpdate() call, I am hooking up the buttons to do something when you press them

RemoteViews remoteViews = new RemoteViews(context.getPackageName (), R.layout.appwidget); remoteViews.setOnClickPendingIntent(R.id.Button1, button1PendingIntent); remoteViews.setOnClickPendingIntent(R.id.Button2, button2PendingIntent);

The problem is that when I click on button2, it sends the button1 pending intent. i think that's because it's reusing the pending intent. http://groups.google.com/group/android-developers/browse_thread/threa. "If the creating application later re-retrieves the same kind of PendingIntent (same operation, same Intent action, data, categories, and components, and same flags), it will receive a PendingIntent representing the same token if that is still valid, and can thus call cancel() to remove it." So then the question is, how do I communicate which button was pressed?

View 4 Replies View Related

Android :: Getting Service To Communicate With Activity?

Jun 25, 2010

I currently have a Service and an Activity in my application.I currently bind the Service to the activity without using AIDL as the Service and the Activity are in the same application.This allows me to call the methods from the Service within my Activity when I require them, however it doesn't let me call the methods of the Activity from within my Service when I want to.Can anyone comment on what would be the best way to achieve this?I could use Intents but is there an alternative option?I want to have tight communication between the Service and the Activity, I want to be able to call an Activity method from my Service when an event happens.

I now have it working the way I want, however I have come across a problem.My service gets status updates and my Activity is then supposed to react to the update sent on from the Service.The problem is that when I start my activity I get the Dialling Status and then Connected status before the onBind is called and I get the instance of iCallDialogActivity.

I need to be able to use my iCallDialogActivity when I get the Dialling and Connected Status notifications.But this gives me a NullPointer Exception due to it not being created in time when my Activity starts, binding is the first thing I do in my Activities onCreate().Is there a way to make it bind straight away?

View 1 Replies View Related

Android :: Communicate Progress From Local Service

May 16, 2010

An application I'm building uses a local Service for downloading files from the web to the phone's SD card. In this app users can browse lists of books, and read them while online. A user can also download a pdf copy of a book for offline viewing. To handle downloads I'm using a locally bound Service. I do not want this Service to run all the time, only when downloading files. So that the Service can shut itself down when its tasks are complete, I am not binding to the service, rather I'm sending an "enqueue for download" command through the Intent passed to Context.startService.

Books available for download are shown in a list. A user can choose to download a book by clicking on its row in the list. On download, I need to show download progress using a ProgressBar on the actual book list row. I need to also show, on the rows, if a book is enqueued for download, or if its download has completed or failed. The books can be shown in different activities throughout the application--in search, or in the user's list of favorite books, for example. When the books are shown in different places, these are not the same objects, but they are uniquely identified by their bookId...............

View 1 Replies View Related

Android :: Want Activity / Service To Communicate With Intent

Aug 2, 2010

In the Activity I write Intent i=new Intent("IntentServiceTest"); Bundle bundle = new Bundle(); bundle.putString("abc", "def"); i.putExtra("wer", bundle); IntentTest.this.startService(i); Start Service into Service OnCreate method,but I don't know how to do get this Intent in this method.

View 11 Replies View Related

Android :: Best Way For Service That Starts Activity To Communicate With It

Feb 16, 2010

I have a service that listens to a socket. When receiving certain input it is to create an activity. When receiving other input, it is to kill this activity. I have struggled for a while to make the service communicate with the activity through AIDL (http://developer.android.com/guide/developing/tools/aidl.html), but this seems to not be effective. I think AIDL is only effective when the process that is to be talked to is a service, not when it is an activity? I would love some directions or suggestions on how to solve my problem.

View 1 Replies View Related

Android :: How To Make Java And C Programs Communicate Together?

Apr 29, 2010

I have written a command line interface program in the C language. This kind of programs (as you know) waits for user commands typed in the terminal and reacts on depend of them. In fact, the program implements a callback function which parses the command and invokes the appropriate function in order to respond to the user.Now, I have to make a Java GUI (Graphical user interface) for the desktop (Ubuntu) version of this program and then port the same program to the Android Platform (of course the GUI will respect Android framework), so I'm looking for the best way to do it.I have heard about JNI and JNA and I don't known which one will be the best for me. By the way what are the main differences between JNI and JNA.

View 1 Replies View Related

Android :: Best Way To Implement RPC Layer To Communicate With Server

May 25, 2009

I'm starting my first Android Application and I'm trying to figure out the best way to implement an RPC layer to communicate with my Tomcat server. Basically, I've got POJOs on the Android Client and on the Server. I simply would like to seserialize the POJOs on Android, send up an HTTP Post, deserialize on the server, do some work, then serialize a POJO response back down to the client. I've seen a number of posts referencing JSON and XML but nothing really definitive.

Further clouding the matter is the different Android SDKs out there that seem to have different levels of support for each. Obviously, if Android has a native library that works well, I'd like to use that. Additionally, I'd like something that could work with my existing POJOs without a great deal of trouble. What are the best practices for this sort of thing? Can anyone send me to any tutorials that have some solid examples on how to get this implemented and going?

View 6 Replies View Related

Android :: How Does Droid Communicate With Dynamic Services

May 10, 2010

I am trying to develop an app and I want it to bring in data from a mySQL database. But from some reading I have done on different sites, I am realizing that it is probably not going to happen. But I am curious to know, how do apps like PhoneFlix and others view that dynamic data on the application? Does it somehow just bring it in through http? If so, how would I go about doing that? Does anyone know of any good sites that will point me in the right direction?

View 1 Replies View Related







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