When GPS information is not available-- how to handle it

by Sean » Wed, 17 Dec 2008 02:34:50 GMT

Sponsored Links
 We all know that GPS information is not always available (e.g., my GPS
lost its location information when it is inside a building).

If an application calls android location API to try to retrieve its
location information (when the GPS module can't report the
information, as described above), how should the application handle it
in general?



Other Threads

1. AT commands out of android

I am running Android on a VMWare machine. I managed to get the ril
daemon running by putting this at the end of init.rc which I got from
another post.

End of init.rc file:

service ril-daemon /system/bin/rild -l /system/lib/libreference-ril.so
-- -d /dev/ttyS0
    socket rild stream 660 root radio
    socket rild-debug stream 660 radio system
    user root
    group radio cache inet misc

I also modifed the file init.eee_701.rc to make
    setprop ro.radio.use-ppp yes
    setprop ro.radio.noril no

instead of the
    setprop ro.radio.use-ppp no
    setprop ro.radio.noril yes

that is was before.

I have no idea whether that was important to get the ril running. I'm
not sure how this file relates init.rc either.

Anyway doing a logcat -b radio in android on my vmware i can see
messages like

Opening tty device /dev/ttyS0
Connected to 'rild' socket

I am set vmware's serial port to write to a file. So anything that
goes out from /dev/ttyS0 will appear on this file and I was expecting
to see AT commands.

I fired up the dialer application and dial a number but I go the no
service prompt. I checked the logcat and there was extra lines like


so can I assume my rild daemon is running ok as I am getting RILJ and
GSM logs in logcat.

Question is why wasn't there any AT commands in the logcat or my
serial port file?

unsubscribe: android-porting+unsubscr...@googlegroups.com

2. How to make Ethernet work on EeePC

Can you check whether eth0 exist or not by issuing: netcfg?
If it exisits, you can try:
#netcfg eth0 dhcp
Hope it helps!

unsubscribe: android-porting+unsubscr...@googlegroups.com

3. Validation of the phone number:

4. setTextFilterEnabled(true) and onKeyDown

5. LinearLayout in gallery widget

6. Backlight adjustment on Eee PC and other platforms

7. A Call to Action: Leverage DHS Sponsored Coverity Scan Projec