altoslib,altosuilib: Bump library version numbers
[fw/altos] / altosdroid / src / org / altusmetrum / AltosDroid / SetupActivity.java
index ef802f0f01bea5f4c4e98f0f61d64af00de58406..d970fc4f2f3b65de920ac67c551ae4df47556b59 100644 (file)
@@ -3,7 +3,8 @@
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -30,13 +31,14 @@ import android.view.View.*;
 import android.widget.*;
 import android.widget.AdapterView.*;
 
-import org.altusmetrum.altoslib_10.*;
+import org.altusmetrum.altoslib_12.*;
 
 public class SetupActivity extends Activity {
        private Spinner select_rate;
        private Spinner set_units;
        private Spinner map_type;
        private Spinner map_source;
+       private Button manage_frequencies;
        private Button preload_maps;
        private Button done;
 
@@ -240,6 +242,11 @@ public class SetupActivity extends Activity {
                add_change(AltosDroid.SETUP_MAP_SOURCE);
        }
 
+       private void manage_frequencies(){
+               Intent intent = new Intent(this, ManageFrequenciesActivity.class);
+               startActivity(intent);
+       }
+
        private void preload_maps(){
                Intent intent = new Intent(this, PreloadMapActivity.class);
                startActivity(intent);
@@ -294,6 +301,13 @@ public class SetupActivity extends Activity {
                        });
 
 
+               manage_frequencies = (Button) findViewById(R.id.manage_frequencies);
+               manage_frequencies.setOnClickListener(new OnClickListener() {
+                               public void onClick(View v) {
+                                       manage_frequencies();
+                               }
+                       });
+
                preload_maps = (Button) findViewById(R.id.preload_maps);
                preload_maps.setOnClickListener(new OnClickListener() {
                                public void onClick(View v) {