[android-developers] AIDL files and Android.mk

2013-12-04 Thread gallagth
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

[android-developers] AIDL service connection, how to detect if service is never connected?

2013-10-06 Thread bsd_mike
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

Re: [android-developers] AIDL

2013-04-03 Thread vaibs malviya
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

Re: [android-developers] AIDL

2013-04-02 Thread Kristopher Micinski
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

[android-developers] AIDL

2013-04-02 Thread vaibs malviya
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

Re: [android-developers] AIDL callbacks leak memory?

2012-06-15 Thread G. Blake Meike
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

Re: [android-developers] AIDL callbacks leak memory?

2012-06-14 Thread Dianne Hackborn
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

[android-developers] AIDL callbacks leak memory?

2012-06-14 Thread G. Blake Meike
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

Re: [android-developers] AIDL with Map generating broken Java

2011-11-02 Thread Mark Murphy
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: >

[android-developers] AIDL with Map generating broken Java

2011-11-02 Thread randyv2
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

Re: [android-developers] Aidl Error : couldn't find import for class org.json.JSONObject

2011-07-07 Thread Mark Murphy
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

[android-developers] Aidl Error : couldn't find import for class org.json.JSONObject

2011-07-06 Thread rashmi
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

[android-developers] aidl link error, couldn't find import for class com.android.internal.telephony.gsm.NetworkInfo

2011-05-19 Thread maliha
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

[android-developers] aidl linking issue, in INetworkQueryService.aidl: couldn't find import for class com.android.phone.INetworkQueryServiceCallback

2011-05-18 Thread maliha
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

[android-developers] aidl linking issue, in INetworkQueryService.aidl: couldn't find import for class com.android.phone.INetworkQueryServiceCallback

2011-05-17 Thread maliha
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

Re: [android-developers] AIDL read exception while returning parameter

2011-05-05 Thread Tahu
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

[android-developers] AIDL read exception while returning parameter

2011-05-04 Thread srihari babu
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"

Re: [android-developers] AIDL stubs are not generated anymore

2011-03-07 Thread Olivier Guilyardi
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

Re: [android-developers] AIDL stubs are not generated anymore

2011-03-07 Thread Olivier Guilyardi
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

[android-developers] AIDL stubs are not generated anymore

2011-03-07 Thread Olivier Guilyardi
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

Re: [android-developers] AIDL for native process

2010-12-21 Thread Dianne Hackborn
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

[android-developers] AIDL for native process

2010-12-21 Thread scs sek
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

Re: [android-developers] AIDL aspects for memory usage and speed

2010-12-04 Thread Dianne Hackborn
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

[android-developers] AIDL aspects for memory usage and speed

2010-12-04 Thread Sebastian
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

[android-developers] AIDL - unable to use some Parcelable classes

2010-10-16 Thread peter
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

Re: [android-developers] AIDL tool did not download

2010-10-15 Thread Mark Murphy
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

[android-developers] AIDL tool did not download

2010-10-14 Thread peter
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?

[android-developers] AIDL generation error: duplicate local variable

2010-10-06 Thread Paulo Morandi
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

[android-developers] AIDL generation error: duplicate local variable

2010-10-06 Thread Paulo Sérgio Morandi Júnior
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

[android-developers] .aidl and R.java STILL not being generated.

2010-08-12 Thread Richard Schilling
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

Re: [android-developers] .aidl and resource files not processed by Eclipse.

2010-08-12 Thread Mark Murphy
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

[android-developers] .aidl and resource files not processed by Eclipse.

2010-08-12 Thread Richard Schilling
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

Re: [android-developers] AIDL, Binder, ResultReceiver, and Performance

2010-06-26 Thread Jeff Sharkey
>> 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

Re: [android-developers] AIDL, Binder, ResultReceiver, and Performance

2010-06-25 Thread Dianne Hackborn
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..

Re: [android-developers] AIDL, Binder, ResultReceiver, and Performance

2010-06-25 Thread Mark Murphy
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

Re: [android-developers] AIDL, Binder, ResultReceiver, and Performance

2010-06-25 Thread Dianne Hackborn
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

[android-developers] AIDL, Binder, ResultReceiver, and Performance

2010-06-25 Thread Mark Murphy
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

Re: [android-developers] AIDL: Stub class methods not being called

2010-05-04 Thread Second Dancer
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

[android-developers] AIDL: Stub class methods not being called

2010-05-03 Thread 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 interface in a .aidl file, which android will then implement (partially) in a dynamically generated class. Android will create an abs

[android-developers] AIDL in multiple projects in Eclipse

2010-03-16 Thread Peerke
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

[android-developers] AIDL Compiler for C/C++

2010-02-27 Thread MGD
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

[android-developers] AIDL to Connect to a server

2009-11-23 Thread mornindew
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

[android-developers] AIDL issue with 1.5sdk and eclipse plugin

2009-06-01 Thread cvance383
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

[android-developers] aidl remote service call namespace question

2009-05-16 Thread dev_rob
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

[android-developers] aidl problem in building android source code

2009-04-23 Thread Jackie
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

[android-developers] AIDL callback interface from Service to Activity oddity

2008-12-08 Thread DulcetTone
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

[android-developers] AIDL in same process

2008-11-26 Thread Louis
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,

[android-developers] aidl problem to import java.lang.Integer

2008-10-11 Thread donm
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: