title: Trying to open a new activity from AppWidgetProvider
body: <pre><code>public class MyWidgetProvider extends AppWidgetProvider {
  .....
  }
  
  public void onEnabled (Context contex){
      Intent myIntent = new Intent(context, ReadName.class);
      context.startActivity(myIntent);
  }
  </code></pre>
  
  <p>well, I tried just system.out.println(" ") it works, means it is showing on LogCat, but is it possible to open a new activity from this method onEnabled (Context contex) Thanks</p>
  
  <hr>
  
  <p>I am trying this way but it is not showing :s me a new activity onload widget,</p>
  
  <pre><code>public void onEnabled (Context contex){
      System.out.println("new task flag");
      Intent i = new Intent(contex, ReadName.class);
  
      i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
      contex.startActivity(i);
  }
  </code></pre>