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. Managing an SQLite cursor in a ListActivity

I have a ListActivity that selects a cursor from an SQLite table in
order to build the list. The cursor is created inside
ListActivity.onCreate and closed inside ListActivity.onDestroy. I also
call startManagingCursor right after I generate the cursor, which I
thought would take care of the cursor life-cycle. When one of the list
elements is selected, a new view is started. At that time I see the
following error message in the log: "I/dalvikvm(  852): Ljava/lang/
IllegalStateException;: Finalizing cursor android.
database.sqlite.sqlitecur...@43baa7e0 on ShippingEvents that has not
been deactivated or closed.

Is this a real error? If so, what is happening and how can I correct


2. non-chat bluetooth example

I need to send and receive data from an Android client to a Bluetooth
SPP server on a non-android platform (not decided, but possibly
Arduino with C code).

I am mostly trying to correctly read from the serial iostream provided
by the bluetooth socket and convert that into a Java class (to use as
a structure). while packaging a delimted byte stream is easy, I am not
quite sure about the serial io reading from the io stream (i.e. is
there a maximum byte size it will read? does it split the file sent
from the serial port and i have to manually combine later?).

Now, bit shifting and using something like ByteStream can make it
work, I was wondering if there is a serialization or mashalling stub
code that is already available on Android. Furthermore, the received
(at android) structure can have variable size strings, so
serialization becomes an even greater challenge, if done manually.

An example code doing non-chat (or string based) comms over bluetooth
in SPP (serial port profile) in android would be perfect (some sort of
protocol frames that are exchanged). I have googled this , but either
my google-fu has gone bad, or there just isnt any such example at the
top of search lists.


3. List content observers

4. when to use "aapt add" for shared object files

5. OpenCORE API Question

6. multitouch usage using monkeytool

7. Animating layout.