I have a Widget that only has one configuration screen but I want to add one more how can I do this? I know the first screen that appears is an Activity I try to open with Intent normal but it does not work.
I made this Intent :
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.activity_widget_configure_1);
final SharedPreferences Salvadados = getSharedPreferences(MontWidget, MODE_PRIVATE);
ListView lista_teste = (ListView)findViewById(R.id.lista_teste);
String[] dados = new String[]{"xxxx","xxxx","xxxxx"};
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, dados);
lista_teste.setAdapter(adapter);
lista_teste.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
switch (position){
case 0:
Intent nextConfig = new Intent(WidgetConfigureActivity.this, Widget_Configure_2.class);
startActivity(nextConfig);
finish();
break;
But I did not succeed.