diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 0d5afe1..9d5c3b7 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -20,6 +20,8 @@
+
+
-
\ No newline at end of file
+
diff --git a/res/menu/menu.xml b/res/menu/menu.xml
index d4a1766..3b0cb6c 100644
--- a/res/menu/menu.xml
+++ b/res/menu/menu.xml
@@ -13,9 +13,10 @@
android:title="@string/action_help"
android:showAsAction="ifRoom" />
-
+
+ android:showAsAction="ifRoom"
+ android:actionProviderClass="android.widget.ShareActionProvider" />
diff --git a/src/com/cmb/googledorks/MainActivity.java b/src/com/cmb/googledorks/MainActivity.java
index 3cc386e..997d0f1 100644
--- a/src/com/cmb/googledorks/MainActivity.java
+++ b/src/com/cmb/googledorks/MainActivity.java
@@ -20,6 +20,7 @@ public class MainActivity extends Activity
ArrayAdapter adapter;
List list= null;
+ private ShareActionProvider mShare;
@Override
@@ -110,6 +111,8 @@ public class MainActivity extends Activity
switch (item.getItemId()) {
case R.id.action_refresh:
// search action
+ Intent intent_settings = new Intent(this, SettingsActivity.class);
+ this.startActivity(intent_settings);
return true;
case R.id.action_help:
// location found
@@ -118,7 +121,7 @@ public class MainActivity extends Activity
sh.show();
return true;
case R.id.action_share:
- // refresh
+ mShare = (ShareActionProvider)item.getActionProvider();
return true;
default:
return super.onOptionsItemSelected(item);