Android : How to run android settings activity insisde pop-up window?

on Thursday, September 25, 2014


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);

0 comments:

Post a Comment