88import android .view .View ;
99import android .widget .EditText ;
1010import android .widget .Spinner ;
11+ import android .widget .Toast ;
1112
1213import java .util .Arrays ;
1314import java .util .List ;
@@ -36,7 +37,10 @@ public class MainActivity extends AppCompatActivity {
3637// ApiPresenter present;
3738
3839// private final String application_id = "5b14c0ffb6d49c40cda92c4e"; //pro
39- private final String application_id = "c42bf24f74b40034c5f484" ; //pro
40+ // private final String application_id = "c42bf24f74b40034c5f484"; //pro
41+
42+ private String application_id = "5b8f6a4d396fa665fdc2b5e8" ;
43+ Context context ;
4044
4145
4246
@@ -52,6 +56,8 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
5256 setContentView (R .layout .activity_main );
5357 BootpayAnalytics .init (this , application_id );
5458
59+ this .context = this ;
60+
5561 spinner_pg = findViewById (R .id .spinner_pg );
5662 spinner_method = findViewById (R .id .spinner_method );
5763 spinner_ux = findViewById (R .id .spinner_ux );
@@ -129,6 +135,8 @@ public void onCancel(@Nullable String message) {
129135 .onError (new ErrorListener () { // 에러가 났을때 호출되는 부분
130136 @ Override
131137 public void onError (@ Nullable String message ) {
138+
139+ Toast .makeText (context , message , Toast .LENGTH_SHORT ).show ();
132140 Log .d ("error" , message );
133141 }
134142 })
@@ -200,6 +208,7 @@ public void onCancel(@Nullable String message) {
200208 .onError (new ErrorListener () { // 에러가 났을때 호출되는 부분
201209 @ Override
202210 public void onError (@ Nullable String message ) {
211+ Toast .makeText (context , message , Toast .LENGTH_SHORT ).show ();
203212 Log .d ("error" , message );
204213 }
205214 })
0 commit comments