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?

Thanks
Sean

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Why is Ringtone.play() sometimes silent when the screen is off ?

We have an app which uses Ringtone.play() to play tones.

We've found that when the screen is off, calls of Ringtone.play() in
our Activity do not make any noise (although the activity is
definitely running).

However, calls of Ringtone.play() from our BroadcastReceiver always
make a noise, even when the screen is off.

What's going on here ? Is this a deliberate platform behaviour ?

Thanks,

Richard



--~--~---------~--~----~------------~-------~--~----~

2. Build Android fail with: /usr/lib64/gcc/x86_64-slamd64-linux/4.2.3/../../../../x86_64-slamd64- linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-slamd64-linux/4.2.3/../../../

I have tried to compile Android on my host machine:

        Manufacturer: Hewlett-Packard
        Product Name: HP Pavilion dv6500 Notebook PC
        Version: Rev 1
        OS: Linux\Slamd64
        SMP Sun May 4 16:51:34 BST 2008 x86_64 x86_64 x86_64 GNU/Linux




# repo sync
 [   ....   ]
# make
build/core/product_config.mk:207: WARNING: adding test OTA key
============================================
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=
============================================
build/core/main.mk:180: implicitly installing apns-conf_sdk.xml
[ ... ]
host Executable: adb (out/host/linux-x86/obj/EXECUTABLES/
adb_intermediates/adb)
/usr/lib64/gcc/x86_64-slamd64-linux/4.2.3/../../../../x86_64-slamd64-
linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-slamd64-
linux/4.2.3/../../../libncurses.so when searching for -lncurses
/usr/lib64/gcc/x86_64-slamd64-linux/4.2.3/../../../../x86_64-slamd64-
linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-slamd64-
linux/4.2.3/../../../libncurses.a when searching for -lncurses
/usr/lib64/gcc/x86_64-slamd64-linux/4.2.3/../../../../x86_64-slamd64-
linux/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb]
Error 1

I have tried to download source of ncurses-5.7.tar.gz and copile it
over 6 times, with various configure parameter:

        ./configure                                     \
                --prefix=/usr                           \
                --sysconfdir=/etc                       \
                --localstatedir=/var                    \
                --libdir=/usr/lib64                     \
                --build=x86_64-linux-linux-gnu          \


        ./configure                                     \
                --prefix=/usr                           \
                --sysconfdir=/etc                       \
                --localstatedir=/var                    \
                --libdir=/usr/lib64                     \
                --build=x86_64-linux-linux-gnu          \
                --enable-broken_linker                  \
                --without-ada                           \



        ./configure                                     \
                --prefix=/usr                           \
                --sysconfdir=/etc                       \
                --localstatedir=/var                    \
                --libdir=/usr/lib64                     \
                --build=x86_64-linux-linux-gnu          \
                --enable-broken_linker                  \
                --without-ada                           \
                --without-normal                        \
                --without-debug                         \
                --with-shared                           \


        ./configure                                     \
                --prefix=/usr                           \
                --sysconfdir=/etc                       \
                --localstatedir=/var                    \
                --libdir=/usr/lib64                     \
                --build=x86_64-linux-linux-gnu          \
                --enable-broken_linker                  \
                --without-ada                           \
                --without-normal                        \
                --without-debug                         \
                --with-shared                           \
                --with-libtool                          \
                --with-build-cc                         \
                --with-build-libs                       \

[ ... ]

Anyone have this problem? Any solution for..? I try since 5 day...

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: 

3. Aligning title of a dialog to be in center

4. If your hosting your own .apk

5. How to catch global events?

6. Query about Content Provider queries

7. difference in android SDK version 0.9beta and 1.0