[android-porting] System overhead of adding a Java service

2009-07-04 Thread Sun Jian
Hi, We are porting Android to some device and a new service task needs to be added. We are contemplating if we should make it a native daemon or a Java service. From a software design perspective we'd like it to be Java, but we are worried about the system overhead it adds (i.e. additional Dalvik

[android-porting] pppd stuck in TIOCSETD ioctl call

2009-07-04 Thread Ash
Hi, My pppd stuck in ioctl(tty_fd, TIOCSETD, ppp_disc) call in tty_establish_ppp function. i am using same serial interface(/dev/ttymxc2) for gsm and gprs. if i disable gsm and run only pppd it will not hang in ioctl(tty_fd, TIOCSETD, ppp_disc) call. if i run both gsm and gprs(gprs will

[android-porting] Re: System overhead of adding a Java service

2009-07-04 Thread Dianne Hackborn
If you are careful with the code (no leaks, no crashes, either its own thread or never taking long to perform work on a Handler in the main thread) you can have it run in the system process with little overhead. Just put it in an .apk, have the makefile sign it with the platform cert, and set the

[android-porting] Access device files from Java Android Apps

2009-07-04 Thread Puneet
Hi everybody, I am trying to run Android on my prototype phone. The phone has a sensor (a device that reports its orientation to the phone) attached to it through the USB interface. I have developed a hardware module for that sensor, the name of the shared library for the module being