66import android .support .v7 .widget .LinearLayoutManager ;
77import android .support .v7 .widget .RecyclerView ;
88import android .support .v7 .widget .Toolbar ;
9+ import android .util .Log ;
910import android .view .LayoutInflater ;
1011import android .view .Menu ;
1112import android .view .MenuItem ;
1415import android .widget .TextView ;
1516import android .widget .Toast ;
1617
18+ import com .mapbox .services .android .BuildConfig ;
1719import com .mapbox .services .android .testapp .directions .DirectionsV4Activity ;
1820import com .mapbox .services .android .testapp .directions .DirectionsV5Activity ;
1921import com .mapbox .services .android .testapp .geocoding .GeocodingReverseActivity ;
3234 */
3335public class MainActivity extends AppCompatActivity {
3436
37+ private final static String LOG_TAG = "MainActivity" ;
38+
3539 private RecyclerView mRecyclerView ;
3640 private RecyclerView .Adapter mAdapter ;
3741 private RecyclerView .LayoutManager mLayoutManager ;
@@ -52,6 +56,10 @@ protected void onCreate(Bundle savedInstanceState) {
5256 Toolbar toolbar = (Toolbar ) findViewById (R .id .toolbar );
5357 setSupportActionBar (toolbar );
5458
59+ // Debug information
60+ Log .d (LOG_TAG , "MAS version name: " + BuildConfig .VERSION_NAME );
61+ Log .d (LOG_TAG , "MAS version code: " + BuildConfig .VERSION_CODE );
62+
5563 // RecyclerView
5664 mRecyclerView = (RecyclerView ) findViewById (R .id .recycler_view );
5765 mRecyclerView .setHasFixedSize (true );
0 commit comments