コード例 #1
0
 final void openBookSearch(String isbn) {
   Uri uri =
       Uri.parse(
           "http://books.google."
               + LocaleManager.getBookSearchCountryTLD()
               + "/books?vid=isbn"
               + isbn);
   launchIntent(new Intent(Intent.ACTION_VIEW, uri));
 }
コード例 #2
0
 // Uses the mobile-specific version of Product Search, which is formatted for small screens.
 final void openProductSearch(String upc) {
   Uri uri =
       Uri.parse(
           "http://www.google."
               + LocaleManager.getProductSearchCountryTLD()
               + "/m/products?q="
               + upc
               + "&source=zxing");
   launchIntent(new Intent(Intent.ACTION_VIEW, uri));
 }
コード例 #3
0
 final void getDirections(double latitude, double longitude) {
   launchIntent(
       new Intent(
           Intent.ACTION_VIEW,
           Uri.parse(
               "http://maps.google."
                   + LocaleManager.getCountryTLD()
                   + "/maps?f=d&daddr="
                   + latitude
                   + ','
                   + longitude)));
 }