I have created 

> 
> AsyncTask
> 
> 
> 

in Android Activity that continuously gettting commands from Server. How i can start another Activity when a specific command from Server is Received.
In AsyncTask i have written infinite loop, as it 

> 
> receives "HOMEPAGE" message from server
> 
> 
> 

it should start HOMEPAGE Activity.

> 
> StartActivity(new Intent(null, HOMEPAGE.class))
> 
> 
> 

throws Null Pointer exception. what i should write instead of null as first argument.