I am new to Android. Not sure what is going wrong..
What I am trying to do is inflate a textView which is available in MainActivity
into a different class (non activity). I am actually not getting any error but it simply does not show the text that is shown below after execution. Any suggestion will definitely be appreciated.
protected void onPreExecute(){
LayoutInflater inflater = (LayoutInflater) context.getSystemService(context.LAYOUT_INFLATER_SERVICE);
View row = inflater.inflate(R.layout.activity_main,null,false);
TextView textView = (TextView) row.findViewById(R.id.textView1);
textView.setText("you great really!");
}