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">
        <ele>63.0000000</ele>
        <time>2008-04-07T14:15:27Z</time>
      </trkpt>

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).

Ludwig

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



Other Threads

1. I don't receive broadcasts

Hello!

I have started developing a tool, which should react on an outgoing call or 
sms and also to be started at boot time. The start at boot time does work 
properply, but I'm not able to receive the broadcasts for the outgoing calls.

Who can tell me, what is wrong with my code??

For this, I added two receivers in my manifest and implemented the broadcast-
receivers:
manifest.xml:
----------------------------------
<receiver 
        android:enabled="true" 
        android:name=".BootUpReceiver"  
        android:permission="android.permission.RECEIVE_BOOT_COMPLETED">
        <intent-filter>
        <action android:name="android.intent.action.BOOT_COMPLETED" />
        <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
</receiver>
<receiver 
        android:name=".TelephoneViewer"
        android:enabled="true"
        android:exported="true"
        android:permission="">
        <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
        <action android:name="android.provider.Telephony.SMS_RECEIVED" />
        <action android:name="android.intent.action.PHONE_STATE" />
        <action android:name="android.intent.action.NEW_OUTGOING_CALL" />
        </intent-filter>
</receiver>
----------------------------------

TelephoneViewer.java:
----------------------------------
public class TelephoneViewer extends BroadcastReceiver {

@Override
public void onReceive(Context context, Intent intent) {
        Log.d(this.getClass().getSimpleName(), "Telephoneviewer.onReceive()");
        Toast.makeText(context,"TelephoneViewer.onReceive()", 
Toast.LENGTH_SHORT).show();
}
----------------------------------

Thank you very much for your support!

Best regards,
Frank

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

2. How to use custom layout for Menu?

Hi,
I like to use a custom layout so when the user presses menu button
from their phone it displays it? How can I listen to this button
event?

Thanks!
Moto!
--~--~---------~--~----~------------~-------~--~----~

3. inter-activity animations

4. Memory leak - heap size (again)

5. PARC implicit authentication group looking for users!

6. Setting tab heights

7. How to view android marketplace