コード例 #1
0
  public PlaceDownloaderTask(PlaceViewActivity parent) {
    super();
    mParent = new WeakReference<PlaceViewActivity>(parent);

    if (!HAS_NETWORK) {
      mStubBitmap = BitmapFactory.decodeResource(parent.getResources(), R.drawable.stub);

      mockLoc1.setLatitude(37.422);
      mockLoc1.setLongitude(-122.084);

      mockLoc2.setLatitude(38.996667);
      mockLoc2.setLongitude(-76.9275);
    }
  }