Android Open Source - face_rec_android E T






From Project

Back to project page face_rec_android.

License

The source code is released under:

GNU General Public License

If you think the Android project face_rec_android 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 in.amolgupta.helpingfaceless.utils;
/* w w w.  ja  v  a  2 s  . c o  m*/
import java.util.HashMap;
import java.util.Map;

import android.util.Log;

import com.flurry.android.FlurryAgent;

public class ET {
  private static final String LOCATION = "location";
  private static final String SIDEBAR = "sidebar";
  private static final String UPLOAD_OFFLINE ="offline upload";
  private static final String RATING = "rating";
  private static final String INVITE = "invite friends";
  private static final String FB_ID = "fbid";
  public static String SIMILARITY = "similarity";
  public static String FACEBOOK = "facebook login";
  public static String APP_OPEN = "app opened";
  public static String ANDROID_ID = "androidid";
  public static String UPLOAD = "upload";
  static String id;
  
  public static void trackComparison(Boolean value) {
    Map<String, String> event = new HashMap<String, String>();
    event.put("option", value == null ? "Cantsay" : value == false ? "No"
        : "yes");
    Log.d("adding event", event.toString());
    FlurryAgent.logEvent(SIMILARITY, event);
  }

  public static void trackFaceBookLogin(String fbid) {
    Map<String, String> event = new HashMap<String, String>();
    event.put(ANDROID_ID , id);
    event.put(FB_ID,fbid);
    Log.d("adding event", event.toString());
    FlurryAgent.logEvent(FACEBOOK, event);
  }

  public static void trackAppopened() {
    Map<String, String> event = new HashMap<String, String>();
    event.put(ANDROID_ID, id);
    Log.d("adding event", event.toString());
    FlurryAgent.logEvent(APP_OPEN, event);
  }

  public static void trackUploadClicked() {
    Map<String, String> event = new HashMap<String, String>();
    event.put(ANDROID_ID , id);
    Log.d("adding event", event.toString());
    FlurryAgent.logEvent(UPLOAD, event);
  }
  
  public static void trackSidebarClicked() {
    Map<String, String> event = new HashMap<String, String>();
    event.put(ANDROID_ID , id);
    Log.d("adding event", event.toString());
    FlurryAgent.logEvent(SIDEBAR, event);
  }
  public static void trackofflineUpload(String location) {
    Map<String, String> event = new HashMap<String, String>();
    event.put(ANDROID_ID , id);
    event.put(LOCATION, location);
    Log.d("adding event", event.toString());
    FlurryAgent.logEvent(UPLOAD_OFFLINE, event);
  }
  public static void trackRatingClicked() {
    Map<String, String> event = new HashMap<String, String>();
    event.put(ANDROID_ID , id);
    Log.d("adding event", event.toString());
    FlurryAgent.logEvent(RATING, event);
  }
  public static void trackInviteFriends() {
    Map<String, String> event = new HashMap<String, String>();
    event.put(ANDROID_ID , id);
    Log.d("adding event", event.toString());
    FlurryAgent.logEvent(INVITE, event);
  }
  
  
  
}




Java Source Code List

in.amolgupta.helpingfaceless.Views.Fragment.DashboardFragment.java
in.amolgupta.helpingfaceless.activities.HFBaseActivity.java
in.amolgupta.helpingfaceless.activities.HelpActivity.java
in.amolgupta.helpingfaceless.activities.HelpItemFragment.java
in.amolgupta.helpingfaceless.activities.HomeActivity.java
in.amolgupta.helpingfaceless.activities.ImageFragment.java
in.amolgupta.helpingfaceless.activities.PledgeFragment.java
in.amolgupta.helpingfaceless.activities.SetupActivity.java
in.amolgupta.helpingfaceless.activities.SigningActivity.java
in.amolgupta.helpingfaceless.activities.UploadForm.java
in.amolgupta.helpingfaceless.common.App.java
in.amolgupta.helpingfaceless.common.Constants.java
in.amolgupta.helpingfaceless.entities.ImageData.java
in.amolgupta.helpingfaceless.entities.NavItem.java
in.amolgupta.helpingfaceless.entities.TaskDetails.java
in.amolgupta.helpingfaceless.parser.CrowsourceDataParser.java
in.amolgupta.helpingfaceless.services.SendCSResponse.java
in.amolgupta.helpingfaceless.utils.ET.java
in.amolgupta.helpingfaceless.utils.LocationRequestData.java
in.amolgupta.helpingfaceless.utils.RequestUtils.java