This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Entity | |
public class Place implements Parcelable { | |
private long id; | |
private String title; | |
private double lat; | |
private double lng; | |
private String address; | |
private String uri; | |
private String description; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Entity | |
public class Place implements Serializable { | |
private transient static final long serialVersionUID = 4536096422727404303L; | |
private long id; | |
private String title; | |
private double lat; | |
private double lng; | |
private String address; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb shell am instrument -w com.turbomanage.storm.test/android.test.InstrumentationTestRunner |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
keytool -genkey -v -keystore limited.keystore -alias limited -keyalg RSA -keysize 2048 -validity 10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.fragment; | |
public class PlaceMapFragment extends RefreshMapFragment implements LoaderCallbacks<List<Category>> { | |
private static final int LOADER_ID = 613; | |
private HashMap<Marker, Place> markerPlaces; | |
@Override | |
public void onActivityCreated(Bundle savedInstanceState) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (getMap() != null) { | |
getMap().clear(); | |
markerPlaces = new HashMap<Marker, Place>(); | |
for (Category category : data) { | |
BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(category.getType().getIconResId()); | |
for (Place place : category.getPlaces()) { | |
Marker marker = getMap().addMarker(new MarkerOptions().position(new LatLng(place.getLat(), place.getLng())).title(place.getTitle()).snippet(place.getDescription()).icon(icon)); | |
markerPlaces.put(marker, place); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.fragment; | |
public class PlaceMapFragment extends RefreshMapFragment implements LoaderCallbacks<List<Category>> { | |
private static final int LOADER_ID = 613; | |
@Override | |
public void onActivityCreated(Bundle savedInstanceState) { | |
super.onActivityCreated(savedInstanceState); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:context=".MainActivity" > | |
<fragment | |
xmlns:map="http://schemas.android.com/apk/res-auto" | |
android:id="@+id/map" | |
android:layout_width="match_parent" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mappedinisrael.fragment; | |
import android.os.Bundle; | |
import com.actionbarsherlock.app.SherlockMapFragment; | |
import com.actionbarsherlock.view.Menu; | |
import com.actionbarsherlock.view.MenuInflater; | |
import com.actionbarsherlock.view.MenuItem; | |
import com.refreshactionprovider.R; | |
import com.refreshactionprovider.widget.RefreshActionProvider; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.actionbarsherlock.app; | |
import android.app.Activity; | |
import android.support.v4.app.Watson.OnCreateOptionsMenuListener; | |
import android.support.v4.app.Watson.OnOptionsItemSelectedListener; | |
import android.support.v4.app.Watson.OnPrepareOptionsMenuListener; | |
import com.actionbarsherlock.app.SherlockFragmentActivity; | |
import com.actionbarsherlock.internal.view.menu.MenuItemWrapper; | |
import com.actionbarsherlock.internal.view.menu.MenuWrapper; |