// Path: src/org/devcon/android/util/AppConfig.java
// public class AppConfig {
// 
// 
//     public static final long CONFERENCE_START_MILLIS = ParserUtils
//             .parseTime("2013-11-23T09:00:00.000-07:00");
//     public static final long CONFERENCE_END_MILLIS = ParserUtils
//             .parseTime("2013-12-24T23:00:00.000-07:00");
// 
//     public static long getCurrentTime() {
//         return System.currentTimeMillis();
//     }
// 
//     public static final String BASE_URL = "http://devconmyanmar.herokuapp.com/api/v1/";
//     public static final String SPEAKERS_URL = BASE_URL + "speakers";
//     public static final String TALKS_URL= BASE_URL + "schedules";
//     // TODO
//     public static final String FEEDBACKS_URL = BASE_URL + "feedbacks";
// 
//     public static final String DUMMY_PHOTO_URL = "http://devconmyanmar.org/2013/wp-content/uploads/2013/10/default-speaker-150x150.png";
// 
// }
// 
// Path: src/org/devcon/android/util/LogUtil.java
// public static void LOGD(final String tag, String message) {
//     // just for the sake of Android Lint. sigh
// 
//     Throwable throwable = new Throwable();
//     StackTraceElement[] e = throwable.getStackTrace();
//     String c_name = e[1].getMethodName();
// 
//     if (BuildConfig.DEBUG)
//         Log.i(tag, "[" + c_name + "] " + message);
//     else if (Log.isLoggable(tag, Log.DEBUG))
//         Log.i(tag, "[" + c_name + "] " + message);
// }
// 
// Path: src/org/devcon/android/util/LogUtil.java
// public static String makeLogTag(String str) {
//     if (str.length() > MAX_LOG_TAG_LENGTH - LOG_PREFIX_LENGTH) {
//         return LOG_PREFIX
//                 + str.substring(0, MAX_LOG_TAG_LENGTH - LOG_PREFIX_LENGTH
//                 - 1);
//     }
// 
//     return LOG_PREFIX + str;
// }


import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Bundle;
import android.provider.Settings.Secure;
import android.telephony.TelephonyManager;
import android.text.format.Time;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RatingBar;
import android.widget.TextView;
import com.actionbarsherlock.app.ActionBar;
import com.actionbarsherlock.app.SherlockActivity;
import com.actionbarsherlock.view.MenuItem;
import com.loopj.android.http.AsyncHttpClient;
import com.loopj.android.http.AsyncHttpResponseHandler;
import com.loopj.android.http.RequestParams;
import org.apache.http.Header;
import org.devcon.android.util.AppConfig;
import static org.devcon.android.util.LogUtil.LOGD;
import static org.devcon.android.util.LogUtil.makeLogTag;
                params.put(getResources().getString(R.string.overall_rating),
                        (int) overall.getRating());
                params.put(getResources().getString(R.string.useful),
                        (int) useful.getRating());
                params.put(getResources().getString(R.string.content),
                        (int) content.getRating());
                params.put(getResources().getString(R.string.speaker),
                        (int) speaker.getRating());

                // that sucks but it works
                params.put("anything", "" + msg.getText());
                LOGD(TAG, "anything " + msg.getText());

                params.put(getResources().getString(R.string.package_name),
                        getApplicationContext().getPackageName());
                params.put(getResources().getString(R.string.version_name),
                        versionName);
                params.put(getResources().getString(R.string.current_time),
                        now.toString());
                params.add(getResources().getString(R.string.network_name),
                        String.valueOf(tele.getNetworkType()));
                params.add(getResources().getString(R.string.phone_type),
                        String.valueOf(tele.getPhoneType()));
                params.put(getResources().getString(R.string.api),
                        android.os.Build.VERSION.SDK_INT);
                params.put(getResources().getString(R.string.model),
                        android.os.Build.MODEL);
                params.put(getResources().getString(R.string.vendor),
                        android.os.Build.MANUFACTURER);

// Path: src/org/devcon/android/util/AppConfig.java
// public class AppConfig {
// 
// 
//     public static final long CONFERENCE_START_MILLIS = ParserUtils
//             .parseTime("2013-11-23T09:00:00.000-07:00");
//     public static final long CONFERENCE_END_MILLIS = ParserUtils
//             .parseTime("2013-12-24T23:00:00.000-07:00");
// 
//     public static long getCurrentTime() {
//         return System.currentTimeMillis();
//     }
// 
//     public static final String BASE_URL = "http://devconmyanmar.herokuapp.com/api/v1/";
//     public static final String SPEAKERS_URL = BASE_URL + "speakers";
//     public static final String TALKS_URL= BASE_URL + "schedules";
//     // TODO
//     public static final String FEEDBACKS_URL = BASE_URL + "feedbacks";
// 
//     public static final String DUMMY_PHOTO_URL = "http://devconmyanmar.org/2013/wp-content/uploads/2013/10/default-speaker-150x150.png";
// 
// }
// 
// Path: src/org/devcon/android/util/LogUtil.java
// public static void LOGD(final String tag, String message) {
//     // just for the sake of Android Lint. sigh
// 
//     Throwable throwable = new Throwable();
//     StackTraceElement[] e = throwable.getStackTrace();
//     String c_name = e[1].getMethodName();
// 
//     if (BuildConfig.DEBUG)
//         Log.i(tag, "[" + c_name + "] " + message);
//     else if (Log.isLoggable(tag, Log.DEBUG))
//         Log.i(tag, "[" + c_name + "] " + message);
// }
// 
// Path: src/org/devcon/android/util/LogUtil.java
// public static String makeLogTag(String str) {
//     if (str.length() > MAX_LOG_TAG_LENGTH - LOG_PREFIX_LENGTH) {
//         return LOG_PREFIX
//                 + str.substring(0, MAX_LOG_TAG_LENGTH - LOG_PREFIX_LENGTH
//                 - 1);
//     }
// 
//     return LOG_PREFIX + str;
// }


// Path: src/org/devcon/android/FeedbackActivity.java
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Bundle;
import android.provider.Settings.Secure;
import android.telephony.TelephonyManager;
import android.text.format.Time;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RatingBar;
import android.widget.TextView;
import com.actionbarsherlock.app.ActionBar;
import com.actionbarsherlock.app.SherlockActivity;
import com.actionbarsherlock.view.MenuItem;
import com.loopj.android.http.AsyncHttpClient;
import com.loopj.android.http.AsyncHttpResponseHandler;
import com.loopj.android.http.RequestParams;
import org.apache.http.Header;
import org.devcon.android.util.AppConfig;
import static org.devcon.android.util.LogUtil.LOGD;
import static org.devcon.android.util.LogUtil.makeLogTag;

                params.put(getResources().getString(R.string.overall_rating),
                        (int) overall.getRating());
                params.put(getResources().getString(R.string.useful),
                        (int) useful.getRating());
                params.put(getResources().getString(R.string.content),
                        (int) content.getRating());
                params.put(getResources().getString(R.string.speaker),
                        (int) speaker.getRating());

                // that sucks but it works
                params.put("anything", "" + msg.getText());
                LOGD(TAG, "anything " + msg.getText());

                params.put(getResources().getString(R.string.package_name),
                        getApplicationContext().getPackageName());
                params.put(getResources().getString(R.string.version_name),
                        versionName);
                params.put(getResources().getString(R.string.current_time),
                        now.toString());
                params.add(getResources().getString(R.string.network_name),
                        String.valueOf(tele.getNetworkType()));
                params.add(getResources().getString(R.string.phone_type),
                        String.valueOf(tele.getPhoneType()));
                params.put(getResources().getString(R.string.api),
                        android.os.Build.VERSION.SDK_INT);
                params.put(getResources().getString(R.string.model),
                        android.os.Build.MODEL);
                params.put(getResources().getString(R.string.vendor),
                        android.os.Build.MANUFACTURER);

                String url = AppConfig.FEEDBACKS_URL;