Back to project page dbpendler.
The source code is released under:
Copyright 2013 Marcus Schiesser Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Softw...
If you think the Android project dbpendler listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package de.marcusschiesser.dbpendler.client.adapters; /* w w w. ja v a 2s . c o m*/ import android.content.Context; import android.widget.ArrayAdapter; import de.marcusschiesser.dbpendler.client.services.resources.mocks.StationMockResource; import de.marcusschiesser.dbpendler.common.resources.StationResource; import de.marcusschiesser.dbpendler.common.vo.StationVO; public class StationAdapter extends ArrayAdapter<String> { private StationResource resource; public StationAdapter(Context context) { super(context, android.R.layout.simple_dropdown_item_1line); setNotifyOnChange(true); resource = new StationMockResource(); StationVO[] stations = resource.getList(null); for (StationVO station : stations) { add(station.getValue()); } } }