Permalink
Browse files

Friendlier find the dojo message for systems without navigation

  • Loading branch information...
1 parent 87b5d05 commit 687239beea240a1f6de80839aa3c167e4a325e20 @fkautz fkautz committed Nov 29, 2011
Showing with 10 additions and 1 deletion.
  1. +10 −1 src/com/hackerdojo/android/infoapp/HackerDojoActivity.java
@@ -3,6 +3,7 @@
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
+import android.app.AlertDialog;
import android.app.ListActivity;
import android.content.ActivityNotFoundException;
import android.content.Intent;
@@ -86,7 +87,15 @@ private void openNavigation() {
try {
startActivity(intent);
} catch(ActivityNotFoundException ex) {
- Toast.makeText(this, "No navigation app detected", Toast.LENGTH_SHORT).show();
+ AlertDialog.Builder builder = new AlertDialog.Builder(
+ this);
+ builder.setCancelable(true);
+ builder.setTitle("Hacker Dojo");
+ String message =
+ "140A South Whisman Road\n" +
+ "Mountain View, CA 94041";
+ builder.setMessage(message);
+ builder.create().show();
}
}
}

0 comments on commit 687239b

Please sign in to comment.