Formatted files via Eclipse to hopefully have correct spacing/ident.

This commit is contained in:
Jon Benson
2013-05-07 19:36:02 +10:00
parent 4906b57f15
commit b0e7110182
7 changed files with 281 additions and 210 deletions

View File

@ -21,7 +21,8 @@ public class IITC_JSInterface {
// send geo intent for navigation apps like gmaps or waze etc...
@JavascriptInterface
public void intentPosLink(String lat, String lng, String portal_name) {
String uri = "geo:" + lat + "," + lng + "?q=" + lat + "," + lng + portal_name;
String uri = "geo:" + lat + "," + lng + "?q=" + lat + "," + lng
+ portal_name;
Intent intent = new Intent(android.content.Intent.ACTION_VIEW,
Uri.parse(uri));
context.startActivity(intent);
@ -30,9 +31,11 @@ public class IITC_JSInterface {
// copy link to specific portal to android clipboard
@JavascriptInterface
public void copy(String s) {
ClipboardManager clipboard = (ClipboardManager) context.getSystemService(Context.CLIPBOARD_SERVICE);
ClipboardManager clipboard = (ClipboardManager) context
.getSystemService(Context.CLIPBOARD_SERVICE);
ClipData clip = ClipData.newPlainText("Copied Text ", s);
clipboard.setPrimaryClip(clip);
Toast.makeText(context, "copied to clipboard", Toast.LENGTH_SHORT).show();
clipboard.setPrimaryClip(clip);
Toast.makeText(context, "copied to clipboard", Toast.LENGTH_SHORT)
.show();
}
}