How can I overlay a 'back' and 'next' button on a " pick wifi network " window?
<p>Google play does this when you try to use it and happen to not be connected to a wifi network.</p>

<p>photo of what I'm trying to do:</p>

<p><img src="http://i.stack.imgur.com/wyZt9.jpg" alt="image"></p>

<p>If you just run a standard</p>

<pre><code>startActivity(new Intent(WifiManager.ACTION_PICK_WIFI_NETWORK));
</code></pre>

<p>Then it loads up the window I'm looking for. However, I want a 'back' and 'next' button overlayed on top of it. Back should return to the previous window and next should only be selectable if a network has been selected and authentication is performed (if required). It would then go to another activity.</p>

<p>I tried implementing it with fragments (one for the intent launched window and another for the button), but it isn't working.</p>

<p>This was the code that launched when the app did</p>

<pre><code>public class TestActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.layfile);
//        Intent n = new Intent(this,Pactivity.class);
//        startActivity(n);
//        
    }
}

public class Pactivity extends PreferenceActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onCreate(savedInstanceState);
    addPreferencesFromResource(R.xml.preferences);
    //addPreferencesFromIntent(new Intent(WifiManager.ACTION_PICK_WIFI_NETWORK));
    setContentView(R.layout.main);

}

}

public class Pfrag extends PreferenceFragment {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // Load the preferences from an XML resource
        addPreferencesFromResource(R.xml.preferences);
    }
}
</code></pre>

<p>Here are the xml files</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;

&lt;PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" &gt;    
    &lt;Preference 
        android:key="key"   
        android:title="WiFi" 
        android:summary="Calls WiFi"&gt;           
            &lt;intent android:action="android.net.wifi.PICK_WIFI_NETWORK"/&gt;           
    &lt;/Preference&gt;
&lt;/PreferenceScreen&gt;
</code></pre>

<p>I also tried some thrown together Preferences based classes. Also not doing what I want.</p>

<p>How can I get buttons overlayed on to what you see with a <code>WifiManager.ACTION_PICK_WIFI_NETWORK</code>?</p>
