Android Open Source - bodyguard Place






From Project

Back to project page bodyguard.

License

The source code is released under:

GNU General Public License

If you think the Android project bodyguard listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.example.bodyguard;
//from w  ww  .  j  av  a 2  s  .  c  o m
import java.io.Serializable;

import com.google.api.client.util.Key;

/** Implement this class from "Serializable"
* So that you can pass this class Object to another using Intents
* Otherwise you can't pass to another actitivy
* */
public class Place implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = -114587526244839875L;

  @Key
  public String id;
  
  @Key
  public String name;
  
  @Key
  public String reference;
  
  @Key
  public String icon;
  
  @Key
  public String vicinity;
  
  @Key
  public Geometry geometry;
  
  @Key
  public String formatted_address;
  
  @Key
  public String formatted_phone_number;

  @Override
  public String toString() {
    return name + " - " + id + " - " + reference;
  }
  
  public static class Geometry implements Serializable
  {
  /**
       * 
       */
  private static final long serialVersionUID = 7729243354955696468L;
    @Key
    public Location location;
  }
  
  public static class Location implements Serializable
  {
  /**
       * 
       */
  private static final long serialVersionUID = -1124494405198483737L;

    @Key
    public double lat;
    
    @Key
    public double lng;
  }
  
}




Java Source Code List

.BodyGuardActivity.java
com.example.bodyguard.AlertDialogManager.java
com.example.bodyguard.CommonUtilities.java
com.example.bodyguard.ConnectionDetector.java
com.example.bodyguard.CustomGeoCoding.java
com.example.bodyguard.DirectionsJSONParser.java
com.example.bodyguard.GPSTracker.java
com.example.bodyguard.GcmBroadcastReceiver.java
com.example.bodyguard.GcmIntentService.java
com.example.bodyguard.MainActivity.java
com.example.bodyguard.PlaceAutoComplete.java
com.example.bodyguard.PlaceDetails.java
com.example.bodyguard.Place.java
com.example.bodyguard.PlacesAutoCompleteAdapter.java
com.example.bodyguard.PlacesList.java
com.example.bodyguard.PollQRT.java
com.example.bodyguard.ResultActivity.java
com.example.bodyguard.SendLocationActivity.java
com.example.bodyguard.SplashScreen.java
com.example.bodyguard.StartActivity.java
com.example.bodyguard.UserInformation.java
com.example.bodyguard.WakeLocker.java