View layer

package com.test.mvp.mvpdemo.mvp.v1.view; import android.app.ProgressDialog;import android.os.Bundle;import android.os.Handler;import android.support.v7.app .AppCompatActivity;import android.widget.TextView;import android.widget.Toast; import com.test.mvp.mvpdemo.R;import com.test.mvp.mvpdemo.mvp.v1.MainContract;import com.test.mvp. mvpdemo.mvp.v1.presenter.MainPresenter; /** * MVP writing, Version 1: Basic writing*/public class MainActivity extends AppCompatActivity implements MainContract.IMainView {private TextView tv; private MainPresenter mPresenter; @Override protected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); initViews(); mPresenter = new MainPresenter(this); mPresenter.handlerData();} private void initViews() {tv = findViewById(R. id.tv);} @Override public void showDialog() {ProgressDialog dialog = new ProgressDialog(this); dialog.show(); new Handler().postDelayed(new Runnable() {@Override public void run( ) {dialog.dismiss();} }, 1500);} @Override public void succes(String content) {runOnUiThread(new Runnable(http://www.amjmh.com/v/) {@Override public void run( ) {Toast.makeText(MainActivity.this, “” + content, Toast.LENGTH_SHORT).show(); tv.setText(content);} }); }}————- ——–

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 3593 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.