Hi, I work with the latest version of cupcake. I have developped a sensors.c following the sensors.h explanations. It works fine but just once. What I mean is, I can start an application using the sensor, but as soon as I leave it, I can't use the sensor anymore.
Actually, I have found the file descriptor returned by "open_data_source" is closed by the ParcelFileDescriptor.close method. I got round the issue by returning a dup of the file descriptor so now several applications can use several times the accelerometer. I thought first I had misunderstood the explanations and the dup had to be in "open_data_source" and not in "data_open". But this case doesn't work either for the same reason. I must have a dup in both functions. Is it the correct way? ____________________________________________________________________________ This email and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to which they are addressed. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited. E-mail messages are not necessarily secure. Archos does not accept responsibility for any changes made to this message after it was sent. --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
