[android-developers] Stuck with getting package name

2009-02-24 Thread sohail khan
Hi all, How do I get the Package Name if I am having the PID of the process. For example, if I want to output a list of currently running processes, I can get the PIDs but how do I get the names of the PIDs? Thanks. -- sohail --~--~-~--~~~---~--~~ You received th

[android-developers] GPS LocationManager Problem

2009-02-17 Thread sohail khan
I am developing an application that uses the GPS functionality. I am getting a null pointer exception at the code below: Location l = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER); The java docs for the getLastKnownLocation states that: " if the provider is disabled, null is returned. I