tags:

views:

17

answers:

1
Toast.makeTest(HelloGridView.this,"Text to be displayed",Toast.LENGTH.SHORT).show();

What is the 'HelloGridView.this' refers? why it is called as appliactioncontext?

A: 

It's called context because HelloGridView.this (Activity class) extends the Context class (not directly, but it extends another class, which extends another, which in turn extends the Context class).

It's a grand grand child of the Context class.

xil3