Android Open Source - Android-MobileServices-Feedback Feedback Service






From Project

Back to project page Android-MobileServices-Feedback.

License

The source code is released under:

Copyright (c) 2014 Microsoft 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 Software...

If you think the Android project Android-MobileServices-Feedback 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.msdpe.feedback;
/*from  w ww  .j  a v  a 2s.  c  om*/
import java.net.MalformedURLException;

import android.content.Context;
import android.util.Log;

import com.microsoft.windowsazure.mobileservices.MobileServiceClient;
import com.microsoft.windowsazure.mobileservices.MobileServiceTable;
import com.microsoft.windowsazure.mobileservices.TableOperationCallback;

public class FeedbackService {
  private MobileServiceClient mClient;
  private MobileServiceTable<Feedback> mFeedbackTable;
  private Context mContext;
  private String TAG = "TicTacToeService";
  
  public FeedbackService(Context context) {
    mContext = context;
    
    try {
      mClient = new MobileServiceClient("https://<YourMobileServiceUrl>.azure-mobile.net/", "<YourApplicationKey>", mContext);
      mFeedbackTable = mClient.getTable(Feedback.class);
    } catch (MalformedURLException e) {
      Log.e(TAG, "There was an error creating the Mobile Service. Verify the URL");
    }
  }
  
  public void insertFeedback(Feedback feedback, TableOperationCallback<Feedback> callback) {
    mFeedbackTable.insert(feedback, callback);
  }
}




Java Source Code List

com.msdpe.feedback.FeedbackActivity.java
com.msdpe.feedback.FeedbackActivity.java
com.msdpe.feedback.FeedbackApplication.java
com.msdpe.feedback.FeedbackService.java
com.msdpe.feedback.Feedback.java
com.msdpe.feedback.MainActivity.java
com.msdpe.feedback.MainActivity.java