Where can Intents be called
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3354768/launching-intent-from-a-class-outside-an-activity">Launching intent from a class outside an activity</a>  </p>
</blockquote>



<p>I was just wondering can a intent be used from a POJO class or must it be used in one that extends Activity?  If it can how would you implement if?</p>

<pre><code>public class DataManager{

public DataManager (){}


public void get ()
{
    Intent intent = new Intent (null,Webservice.class);
    intent.putExtra("uri", "http://someuri/service/users/id/21001");
    startActivity (intent);
}
</code></pre>

<p>}</p>
