young1048 / open-gpstracker

Automatically exported from code.google.com/p/open-gpstracker
0 stars 0 forks source link

Track is not displayed when launched by other app #424

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
For my car-tracking app i was using MyTracks for geo-related things. Now after 
G. has effectively closed sourced this app, i decided to migrate to Open GPS 
Tracker (i even tried integrating before, but now i was obviously more 
motivated). So far all went smooth, except for one thing:

When launching Open GPS Tracker map is displayed with my selected track in the 
title, but there's no actual path dipslayed, i.e. map remains empty.

The code i'm using is roughly this (borrowed mostly from MetaTracker):

    Intent intent = new Intent();
    intent.setData(
        Uri.withAppendedPath(
            Uri.parse("content://nl.sogeti.android.gpstracker/tracks/"),
            Long.toString(trackId)
        )
    );
    intent.setClassName(
        "nl.sogeti.android.gpstracker",
        "nl.sogeti.android.gpstracker.viewer.LoggerMap");
    startActivity(intent);

(Full source: 
https://code.google.com/p/wheelly/source/browse/WheellyApp/src/com/wheelly/app/T
rackInput.java?name=features%2F20140620-Multivehicle#138)

Why the path isn't displayed?

(Another side-question: how is it possible that activity specified in intent 
doesn't actually exist in application? Is it because market version is behind 
latest sources?)

Original issue reported on code.google.com by estee...@gmail.com on 6 Nov 2014 at 12:00