Closed GoogleCodeExporter closed 9 years ago
Looks like this was intentional, and does not affect usability. What does ROS
use the pid for anyway?
However, on Android android.os.Process.myPid() should return the PID. Could
this be used somehow? Maybe an Android-specific rosjava.jar? Not sure how you
would set this up...
Original comment by ersso...@gmail.com
on 16 Jun 2011 at 5:28
I agree with the comment above. My issue stemmed from Issue 11 that follows.
Original comment by jpeabod...@gmail.com
on 16 Jun 2011 at 11:49
I tested a solution that uses:
return
(Integer)Class.forName("android.os.Process").getMethod("myPid").invoke(null);
to dynamically, at runtime, try to obtain the PID using Android-specific
methods should the MF.getName() method fails, which it does on Android.
Attached is the diff. It has been tested and verified to work and return the
correct PID. Feel free to incorporate it! :)
Original comment by ersso...@gmail.com
on 16 Jun 2011 at 11:13
Attachments:
This issue was closed by revision 7780c4147d04.
Original comment by damonkoh...@google.com
on 18 Jun 2011 at 4:04
Original issue reported on code.google.com by
jpeabod...@gmail.com
on 16 Jun 2011 at 12:11