I'm trying to build my app as a system app so I added the sources to aosp.
I'm having troubles with AIDL files, related to the project structure. Here
is the relevant part of the project's structure
src
--main
Android.mk
aidl
--com/master/android
IDialCallback.aidl
ID
I have an activity that binds to an AIDL service.
The way the AIDL service is constructed, sometimes a IBinder is never
returned..
When that happens onServiceConnected is not called. Seems obvious.
But is there a way to detect that has happened? Is there another callback
I am missing?
Or i
Thanks for reply *krismicinski*
On Tue, Apr 2, 2013 at 7:44 PM, Kristopher Micinski
wrote:
> You use AIDL when you have two distinct Android threads communicating.
> Even the most basic messaging primitives are built on top of this (in
> favor of UNIX IPC), such as
> http://developer.android.co
You use AIDL when you have two distinct Android threads communicating.
Even the most basic messaging primitives are built on top of this (in
favor of UNIX IPC), such as
http://developer.android.com/reference/android/os/Messenger.html
As for information and tutorials, the documentation
(http://dev
Any live example in which we use AIDL in android apps.
and also i want to know in which case AIDL will be use
--
--
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 un
Got it. Thanks Dianne.
G. Blake Meike
Marakana
The second edition of Programming Android is now on-line:
http://shop.oreilly.com/product/0636920023005.do
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email t
The underlying binder mechanisms keeps track of references across objects.
Native IBinder objects are reference counted; the framework holds a
reference on them as long as remote processes hold references. The JNI
wrapper holds a reference on the Java object as long as the native binder
object is
I've been digging into Android IPC, recently and there's something puzzling
me.
Suppose I define a Parcelable that, as one of its arguments, takes a
callback listener which is also Parcelable.
Like this:
oneway interface MyService {
void start(in MyRequest req, in MyResponseListener listen
Try switching to:
Map success();
It may be that Map does not support out properly. I have never used
the out keyword in AIDL, as it leads to scary programming (relying on
side-effects applied to parameters).
On Mon, Oct 31, 2011 at 9:52 PM, randyv2 wrote:
> I have an AIDL written as follows:
>
I have an AIDL written as follows:
interface IGameInterfaceResult {
void success(out Map result);
}
In the generated .java file, I see this being generated:
_arg0 = new java.util.Map();
This leads to my project having errors because Map can't be
instantiated. This seems like a bug in t
Visit http://source.android.com for assistance in building your custom
firmware. This list is for Android SDK development.
On Thu, Jul 7, 2011 at 2:41 AM, rashmi wrote:
> Hi,
> I have written an aidl file in the path android/framwork/base/core/
> java/com/, which has a import statement - import o
Hi,
I have written an aidl file in the path android/framwork/base/core/
java/com/, which has a import statement - import org.json.JSONObject.
But the build is failing with an error - 'couldn't find import for
class org.json.JSONObject'.
According to my study I found that for import statements in ai
Hi,
I am trying to re-use PhoneUtils.java (~/android_src/packages/apps/
Phone/src/com/android/phone/) within my app with some customizations.
I have added INetworkQueryServiceCallback.aidl and
INetworkQueryService.aidl into my app folder (~/android_src/packages/
apps/USSDActivity/src/com/myapp/us
Hi,
I am trying to re-use PhoneUtils.java (~/android_src/packages/apps/
Phone/src/com/android/phone/) within my app with some customizations.
I have added INetworkQueryServiceCallback.aidl and
INetworkQueryService.aidl into my app folder (~/android_src/packages/
apps/USSDActivity/src/com/myapp/us
Hi,
I am trying to re-use PhoneUtils.java (~/android_src/packages/apps/
Phone/src/com/android/phone/) within my app with some customizations.
I have added INetworkQueryServiceCallback.aidl and
INetworkQueryService.aidl into my app folder (~/android_src/packages/
apps/myapp/src/com/myapppackage/) h
HI
I would like to get some help in establishing a connection between Android
PDA client and a desktop PC . I am not able to receive the message that i
send from client ,no error messages but simply the message are not reaching
the desktop PC . Could any one help .? I am able to successfully implem
I am implementing AIDL interface for remore service.
i am getting exception while reading exception from remore service
over AIDL interface.
Any suggestions are highly appreciated.
Thanks,
Srihari.R
--
You received this message because you are subscribed to the Google
Groups "Android Developers"
Ok, for the records, I did a fresh install of Eclipse Helios, re-imported my
projects, and the problem's gone.
Olivier
On 03/07/2011 02:55 PM, Olivier Guilyardi wrote:
> Oh, and by the way, this affects two absolutely distinct projects which both
> have AIDL files, and which used to build just fi
Oh, and by the way, this affects two absolutely distinct projects which both
have AIDL files, and which used to build just fine. I have cleaned many times,
and even reimported a project, but it didn't help.
I am using Eclipse 3.4.2 Ganymede.
Olivier
On 03/07/2011 02:48 PM, Olivier Guilyardi wrot
Hi,
I have recently upgraded to SDK tools r10 and SDK platform tools r3. At first
everything worked fine, for a couple days. Then I changed very few things in a
layout and in my attrs.xml and the build is now failing in Eclipse. Reverting
the changes didn't help.
R.java is here but the AIDL stubs
Sorry, no there is not.
On Tue, Dec 21, 2010 at 7:04 PM, scs sek wrote:
> Hi,
>
> Is there any way i can use AIDL for native process communciate each other?
>
> Is it only specific to Java to Native based RPC?
>
> Regards
> scs
>
> --
> You received this message because you are subscribed to the
Hi,
Is there any way i can use AIDL for native process communciate each other?
Is it only specific to Java to Native based RPC?
Regards
scs
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-deve
Binder IPC is not intended for several megabytes of data transport. You
should keep a single call well under a megabyte, and hopefully more in the
realm of 100K.
If you are sending more data than that, you should do it through an fd or
shared memory area; it is easy to transport such objects thro
Hello,
currently I'm using AIDL to send various amounts of data from one
process to another.
The amount of data does vary between some bytes and up to several
megabytes (stream).
What is the optimal/maximum size for *one* pass of data through an
AIDL call?
And which size should be used, keeping m
I am writing an application which will communicate with a Google App
Engine (GAE) website, and I would like to authenticate against the
website using a user selected account in the Account Manager.
I setup the UI such that the user selects an Account object. I would
like to pass this Account obje
On Thu, Oct 14, 2010 at 10:45 PM, peter wrote:
> I'm unable to find the AIDL tool in my OSX install. My tools
> directory does not have AIDL, but it has everything else (Adb,
> android, ddms, etc).
The aidl tool is not in that directory.
> Any idea on how I can get a hold of the tool? Is there
Hello,
I'm unable to find the AIDL tool in my OSX install. My tools
directory does not have AIDL, but it has everything else (Adb,
android, ddms, etc).
I've tried opening the SDK and AVD manager and reinstalling the
Android SDK Tools Rev 7, no luck.
Any idea on how I can get a hold of the tool?
Hello everyone,
I'm trying to declare the following aidl:
package com.mypackage.service;
interface ServiceToCall {
void serviceCall(int test, in Map maps, inout Map
mapsOut);
}
But when I look the auto-generated code it has an error "Duplicate
local variable". The problem is that its
Hello everyone,
I have a simple question.. and sorry if you received this question twice.. I
sent it through the google groups but I think it did not work.. so I will
try using Gmail...
I want to use two Map variables in my service like the code below:
package com.mypackage.aidl.service;
interf
Alright, I downgraded to Eclipse 3.5, and the following still doesn't
happen when I build a project in Eclipse:
1. .aidl files don't get processed (at all).
2. R.java isn't generated.
Used to work.
What the heck?
Richard Schilling
--
You received this message because you are subscribed to the
On Thu, Aug 12, 2010 at 6:49 PM, Richard Schilling
wrote:
> I've recently upgraded the Android SDK to the latest version, and I'm
> trying to re-build the ApiDemos project. I've imported it properly.
>
> The problem is
>
> 1. the .aidl files aren't being processed at all by Eclipse during the
> p
I've recently upgraded the Android SDK to the latest version, and I'm
trying to re-build the ApiDemos project. I've imported it properly.
The problem is
1. the .aidl files aren't being processed at all by Eclipse during the
pre-processing stage.
2. R.java isn't re-generated at all by eclipse
U
>> If the purpose of this code (and I haven't looked at it to know) is to send
>> a command to the service and get told later when it is done, then this is a
>> reasonable approach.
Yep, that's exactly what I'm using it for. I'm kicking off a heavy
background sync, and use an optional ResultRecei
On Fri, Jun 25, 2010 at 1:08 PM, Mark Murphy wrote:
> Yeah, I haven't fully investigated the app, so I don't know precisely
> what your team's intentions were when they wrote it.
>
Not my team's app... I've not looked at the code, either. :}
--
Dianne Hackborn
Android framework engineer
hack..
On Fri, Jun 25, 2010 at 3:50 PM, Dianne Hackborn wrote:
> AIDL/Binder by design don't have a performance impact when making a call in
> the same process. This turns into a direct call on to the target's
> interface implementation.
Ah! That's good to know.
> The big thing this introduces is a wh
On Fri, Jun 25, 2010 at 8:45 AM, Mark Murphy wrote:
> -- that the performance overhead I thought we had with AIDL/Binder
> within a process isn't really there? Or...
>
AIDL/Binder by design don't have a performance impact when making a call in
the same process. This turns into a direct call on t
A discussion on StackOverflow recently has me convinced I'm still not
sure when using AIDL is good and when it is bad.
--
Somebody was inquiring about the techniques described in the REST
applications in Android Google I|O 2010 presentation. In particular,
he asked about ways a servic
Such a strange problem, check your androidmanifest.xml, register your sevice
with the right propety
2010/5/3 Iva
> Hello,
>
> I am using AIDL to pass objects from an Activity to a Service and am
> getting some strange behavior. To my understanding, the idea behind
> AIDL is to create an interfac
Hello,
I am using AIDL to pass objects from an Activity to a Service and am
getting some strange behavior. To my understanding, the idea behind
AIDL is to create an interface in a .aidl file, which android will
then implement (partially) in a dynamically generated class. Android
will create an abs
Hello,
I have problems with the following:
I want to create to applications. One with a Android service and one
with a Activity that will use functions on the Service.
Before I splitted this in to applications I got everything working in
one application. I can call functions (that are definned in
Folks
I am trying to use iBinder to interface from Java process to C native
process. Is there AIDL compiler support for C/C++? If not, what would
my workaround be to support such IPC between Java and C processes?
TIA
MGD
--
You received this message because you are subscribed to the Google
Grou
Hi all,
I am new to android development and I have a question about
AIDL. I have a requirement to call some functions and perform quite a
bit of processing remote server. Most of my calls will be made from
the ListActivity class. Is it possible to use AIDL to call functions
on my server fr
Hey I've been working on an app for a couple months now. I just
downloaded the sdk and installed the newest plugin. Unfortunately my
app broke after this finished. I have tried setting the build target
to 1.1 and 1.5, still no luck. I believe the problem is stemming from
the .aidl files causing ot
Hi android developers,
I'm new to the great android platform, trying to get into RPC with
aidl and services.
I didn't find a sufficient answer to my problem in any posts, if there
already is one, please excuse and point me to it, thanks.
I made 2 projects.
project 1 hast an activity that binds
hello, folks,
I'm building the android source code for the first time. I've searched
the forum for my issue but failed to find me. please kindly help me to
resolve this problem. thanks.
I'm building android source code in Ubuntu 8.10, and got the following
error message:
host C++: aidl <= out/h
I have 2 activities (call them 1 and 2), Activity 1 includes a
Service.
If the Service tries to make an AIDL call to Activity 1, the call
works fine.
If, however, the Service tries the same AIDL call to Activity 2 (the
remote activity), it never arrives for processing at the remote
activity. No
Hi, All
Our team want build some services which provided to 3rd party, and we
are trying to design the interfaces which using the AIDL, and also, we
want to build our own application base on this services also, and run
in the same process, but is it still need using IPC to transfer the
data info,
Hi there,
I am starting to feel a bit silly. All I want to do
is create an interface from a simple AIDL-File:
package dom.da;
interface RNS {
Integer getAccountBalance();
}
When I compile it, I get:
$ aidl RNS.aidl
RNS.aidl:3 unknown return type Integer
When I add an import like this:
48 matches
Mail list logo