google-now

Google now cards

你。 提交于 2020-01-25 20:55:08
问题 I have a html script for flight reservation that shows me google now cards in inbox. But when I am trying to embed JSON-ld script tags into the HTML content to get those tags in google now cards, the cards completely disappear. Has anyone worked on google now cards before or knows how to resolve this issue? 来源: https://stackoverflow.com/questions/32875927/google-now-cards

Google now Hotel reservation (LodgingReservation) image markup

醉酒当歌 提交于 2020-01-03 05:16:07
问题 I'm trying to insert a google now hotel reservation card using lodgingReservation schema in my hotel's confirmation email. It seems working all, but in my iphone I can't see the hotel image I've insert in the json. I read all the google documentation but I didn't find a working example with image display of an hotel reservation, only an image of the final result. Here's an example: <html> <head> <script type=3D"application/ld+json"> { "@context": "http://schema.org", "@type":

How to programmatically initiate a Google Now voice search?

懵懂的女人 提交于 2019-12-28 11:45:10
问题 I want to start a Google Now voice search when the user presses a button. However, I can't find the Intent to start the search in the docs. Does anybody know how to start activity for Google Now voice Search ? 回答1: Use ACTION_RECOGNIZE_SPEECH: private static final int RECOGNIZER_REQ_CODE = 1234; Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); startActivityForResult(intent, RECOGNIZER_REQ_CODE); Please note that you have to use startActivityForResult() as startActivity()

How to use Google Now to set alarms and reminders through 3rd party app

◇◆丶佛笑我妖孽 提交于 2019-12-25 05:51:52
问题 I've developed an Android alarm clock/reminder app and I'd like to know if there is a way possible to make Google Now at least prompt the user whether they want to set the alarm/reminder either through the default app or mine. 回答1: What you describe sounds achievable with Google System Voice Actions. It is a bit different than Google Now, the anticipatory cards UI, but as Google Now is shown with the speech recognition part that may explain the confusion when searching. See: Google System

How to Extend Google Now Voice Commands in Android with Custom Actions

空扰寡人 提交于 2019-12-21 17:18:23
问题 I recently installed the Google Now Launcher on my Nexus 4, and it got me thinking about how I could use it to interact with my own apps. While I can open my app by asking for it by title, I was wondering if there's a way to intercept the voice commands (possibly through a broadcast receiver) so I can say something like "turn off living room light" to send a signal to an Arduino to turn off the light in a room across the house? On the same note, I haven't been able to find the documentation

Google Now Event card - How to display more information

痴心易碎 提交于 2019-12-20 15:30:33
问题 I'm testing the Event card in Google Now through adding schema data to a confirmation email. At the moment I'm playing around with populating the event card with rail journey info, since the rail journey schema isn't supported. Unfortunately, I can only get a tiny amount of the info provided to show in the card in Google Now. Here's what I'm adding to the email: <html> <body> <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "EventReservation", "reservationNumber

How to pass text from Activity to Google Now search in Android

柔情痞子 提交于 2019-12-11 03:13:34
问题 I have an activity with EditText and Button. When user is pressing the button i need to launch Google Now Search from my Activity and pass a text from EditText to make Google Now search for this text. How can i do this? 回答1: Try this String query = editText.getText().toString(); Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); intent.setClassName("com.google.android.googlequicksearchbox", "com.google.android.googlequicksearchbox.SearchActivity"); intent.putExtra("query", query);

How to get audio amplitude with speech recognizer?

孤街醉人 提交于 2019-12-10 11:33:37
问题 I'm trying to make a custom dialog while speech recognizing instead of using the official one. I got that part, but when then I decided to show the amplitude of the sound while recognizing, in order to make it more fancy, like Google Now search bar does (its a circle around the microphone that grows if voice its louder): Then I started to code how to obtain the amplitude of the sound, and finally I got it with AudioRecord Class. The problem comes when I try to mix both (SpeechRecognizer and

How to Get Google Now card information into my own app

不问归期 提交于 2019-12-10 09:22:15
问题 I would like to make an app that pushes Google Now cards to the Pebble SmartWatch. Is there a way to access Google Now cards programmatically? I'm guessing from my googling that it's not officially supported, but have people found out any undocumented APIs that access this information? 回答1: AFAIK there are no official or unofficial APIs as of now to retrieve the Google Now cards, and there are unlikely to be as it is a proprietary app by Google that gives them a competitive advantage, and not

Is there any Google Now API that we can integrate our own Apps into Now?

做~自己de王妃 提交于 2019-12-09 05:44:48
问题 How can I provide my information or cards of my App-Data to Google Now? Is there any API that I can use? 回答1: Google Now API is only provided for who register their app with Google, it has been private. Google control which Cards will be shown on their Google Now App. So you need to contact with Google and register your app to get the Now API and then you can build your own Now Card. 来源: https://stackoverflow.com/questions/32371952/is-there-any-google-now-api-that-we-can-integrate-our-own