HOSTNAME: https://www.yakstart.com
PATH: /api/v1/pois/search
This API returns every data of Transportation.
{"status_code":200,"message":"found bank","data":{"banks":[{"_id":"firstchoice","bank_id":"firstchoice","bank_pic":"ic_card_firstchoice.png","bank_phone_number":"027047509","bank_country_code":"66","bank_country_iso_code":"","bank_time_zone":"Asia/Bangkok","bank_card_name":[]},{"_id":"homepro","bank_id":"homepro","bank_pic":"ic_card_homepro.png","bank_phone_number":"022851555","bank_country_code":"66","bank_country_iso_code":"","bank_time_zone":"Asia/Bangkok","bank_card_name":["Visa Card"]},{"_id":"standard","bank_id":"standard","bank_pic":"ic_card_standard.png","bank_phone_number":"022851555","bank_country_code":"66","bank_country_iso_code":"","bank_time_zone":"Asia/Bangkok","bank_card_name":["Platnium Elite Card","Platinum Card","Business Card","Titanium Card","Mortgage Link Card"]},{"_id":"tesco","bank_id":"tesco","bank_pic":"ic_card_tesco.png","bank_phone_number":"022851555","bank_country_code":"66","bank_country_iso_code":"","bank_time_zone":"Asia/Bangkok","bank_card_name":["Visa Platinum","Visa","Premie |
package com.mikkipastel.sample; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.view.View; | |
import android.widget.Button; | |
import android.widget.EditText; | |
import android.widget.RadioButton; | |
import android.widget.RadioGroup; |
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical" | |
android:paddingBottom="@dimen/activity_vertical_margin" | |
android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_horizontal_margin" | |
android:paddingTop="@dimen/activity_vertical_margin" |
import android.Manifest; | |
import android.app.FragmentTransaction; | |
import android.content.Context; | |
import android.content.pm.PackageManager; | |
import android.location.Location; | |
import android.location.LocationListener; | |
import android.location.LocationManager; | |
import android.os.Build; | |
import android.os.Bundle; | |
import android.support.v4.app.ActivityCompat; |
<?xml version="1.0" encoding="utf-8"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:orientation="vertical" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="@color/background"> | |
<LinearLayout | |
android:layout_height="wrap_content" |
//autocomplete | |
getDataNumber = (AutoCompleteTextView) rootView.findViewById(R.id.getData); | |
String[] dataNumber = getResources().getStringArray(R.array.data_number); | |
setAutoComplete(dataNumber); | |
//search from bus number | |
getDataNumber.setOnEditorActionListener(new TextView.OnEditorActionListener() { | |
@Override | |
public boolean onEditorAction(TextView textView, int i, KeyEvent keyEvent) { | |
String[] data = getResources().getStringArray(R.array.data); |
package com.mikkipastel.test; | |
import android.content.Intent; | |
import android.content.SharedPreferences; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import com.mikkipastel.onemeal.fragment.MainFragment; | |
public class MainActivity extends AppCompatActivity { |
public class AfterFeedbackFragment extends Fragment { | |
public AfterFeedbackFragment() { | |
super(); | |
} | |
public static AfterFeedbackFragment newInstance() { | |
AfterFeedbackFragment fragment = new AfterFeedbackFragment(); | |
Bundle args = new Bundle(); | |
fragment.setArguments(args); |
package com.mikkipastel.buslinebysukhum.model; | |
/** | |
* Created by acer on 10/1/2016. | |
*/ | |
public class Message { | |
String feedbackType; | |
String feedbackTopic; | |
String feedbackDetail; |