DDMS + GPX track: Bug in time?

by Ludwig » Sat, 20 Sep 2008 01:26:51 GMT

Sponsored Links
 I am using DDMS to play a GPX file. The lat/long data arrives fine in
my application, but not the time.

I notice two things: first of all the time displayed in DDMS for the
start/end times of the GPX track is wrong, out by one month.

The first point in my track is in the GPX file like this:
 <trkpt lat="22.5774600" lon="-83.9237000">

This was in April 2008, but DDMS displays May. I assume they count
months from 0, so 04 is May. I am not quite sure what the GPX
specification is but I think DDMS is wrong.

The second observation is that the time arriving in the location data
is the current time, not the time in the GPX file. This is probably
'right' in the sense that it is supposed to emulate real-time GPS
data, so I do not want to quibble with this, but it would be nice to
be able to use the time as it was in the GPX file (for testing
purposes it is easier to have a fixed time in the data).



Other Threads

1. mediaplayer's onCompletionListener never called on playing 3gpp/amr audio files

In order to be notified when the clip finishes playing, I use the

                player.setOnCompletionListener(new OnCompletionListener() {
                        public void onCompletion(MediaPlayer mp) {
                                Toast.makeText(getApplicationContext(), "media 
player. play
complete", Toast.LENGTH_SHORT).show();

Unfortunately it is never called - I am playing 3gpp/amr audio files.

Is there another way to do this?


2. Searchable dictionary results are not being shown in global search


I have tried to implement the searchable dictionary sample app.
Everything seems to be working except when I try to pull the results
from global search.
I have tried to follow everything that has been described in the docs

My searchable.xml
<searchable xmlns:android="http://schemas.android.com/apk/res/android"
        android:searchSuggestSelection=" ?"

And the authorities, mime types

    public static String AUTHORITY =
    public static final Uri CONTENT_URI = Uri.parse("content://" +
AUTHORITY + "/dictionary");

    public static final String WORDS_MIME_TYPE =
ContentResolver.CURSOR_DIR_BASE_TYPE +"/vnd.sd2.com.achie";
    public static final String DEFINITION_MIME_TYPE =
ContentResolver.CURSOR_ITEM_BASE_TYPE +"/vnd.sd2.com.achie";

My Manifest is

    <application android:icon="@drawable/ic_dictionary"
        <activity android:name=".SearchableDictionary"
                <action android:name="android.intent.action.MAIN" />
android:name="android.intent.category.LAUNCHER" />

            <!-- Receives the search request. -->
                <action android:name="android.intent.action.SEARCH" />
                <!-- No category needed, because the Intent will
specify this class component-->

            <!-- Points to searchable meta data. -->
            <meta-data android:name="android.app.searchable"
                       android:resource="@xml/searchable" /

        <!-- Displays the definition of a word. -->
        <activity android:name=".WordActivity"
                  android:theme="@android:style/Theme.NoTitleBar" />

        <!-- Provides search suggestions for words and their
definitions. -->
        <provider android:name=".DictionaryProvider"
android:authorities="sd2.com.achie.DictionaryProvider" />

        <!-- Points to searchable activity so the whole app can invoke
search. -->
        <meta-data android:name="android.app.default_searchable"
                   android:value=".SearchableDictionary" />

What might be the problem?

Thank you,


3. One night with the gurus

4. Why doesn't AlarmManager allow querying or browsing of alarms or pending intents?

5. AppWidget update called three times on boot up

6. control for user file selection

7. Gallery Cache