0

I want to run some android settings activity like WIFI_SETTINGS inside a predefined pop-up window, I know how to call some android settings activity :

startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS));

and know how to make a predefined activity appears as a popup :

<activity android:name="my_activity" android:theme="@android:style/Theme.Dialog"></activity>

and to achieve what I need I tried to declare a pop-up activity and then run the android settings intent using it's context but nothing happen:

Intent intent = new Intent(Settings.ACTION_WIFI_SETTINGS);
mcontext.startActivity(intent);
nobalG
  • 4,544
  • 3
  • 34
  • 72
Muhammed Refaat
  • 8,914
  • 14
  • 83
  • 118

0 Answers0