public void doSomething(View view) {
    String url, link_url, pro;
    url = textIn.getText().toString();
    pro = spin.getSelectedItem().toString();
    c1 = new ConnectInternetClass(this);
    if (!url.isEmpty()) {
        if (url.contains(".") && !(url.contains(" "))) {
            if (url.split("\\.").length > 1) {
                if (checkConnection()) {
                    link_url = pro+url;
                    c1.execute(link_url);
                } else {
                    Toast.makeText(this, "check your internet connection", Toast.LENGTH_SHORT).show();
                    myText.setText("No Internet Connection");
                }
            } else {
                myText.setText("Unknown domain");
            }
        } else {
            myText.setText("Invalid URL");
        }
    } else {
        myText.setText("URL can\'t empty");
    }
}
I have that code to show a web page source. I want to show the result in another activity, but I don't know how. I use the create object from the first activity, but it's not method
public class ShowActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_show);
        MainActivity ma = new MainActivity();
    }
 
     
     
    