I have an Widget and activity which will configure widget. I want to start this activity when widget calls onUpdate method. How can I make this ? I tried this code and it doesn't work:
Intent intent = new Intent(context, ConfigureClass.class);
context.startActivity(intent);
SOLUTION:
Intent configure = new Intent(context, CreateDatabase.class);
configure.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(configure);