I want to call this function from another class.
How do I call it from another classs?.
It¡ss not possible to achieve using normal function call, as I am not getting access to the view of the main function.
public class Blank extends Activity
{
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_call);
Button buttonHangup = (Button) findViewById(R.id.buttonHangup);
Button buttonHanup2=(Button) findViewById(R.id.buttonHangup2);
}
public void bringBack(){
Button buttonHangup = (Button) findViewById(R.id.buttonHangup);
Button buttonHanup2=(Button) findViewById(R.id.buttonHangup2);
buttonHangup.setText("Hangup no ok ");
buttonHanup2.setVisibility(View.VISIBLE);
}
}
how can i call this bringback function from another class as its not allowed to call using normal method call ...as i dont get access to button view from another class eg
Blank bl =new Blank();
bl.bringback()
it wont work as i dont get access to button view ..