Code like this works well.
Intent configIntent = new Intent (context, WidgetConfigActivity.class); configIntent.putExtra(AppWidgetManager.EXTRA_APPWI
Problem is that I can't use startActivity() function in AppWidget.
Yes, you can. You are passed in a Context object into onUpdate() (or onReceive()) of your AppWidgetProvider -- call startActivity() on that.
Context
onUpdate()
onReceive()
AppWidgetProvider
startActivity()