Recognize speech in LineageOS - android

I am using LineageOS 20 with Gapps and my app did not find Google TTS service.
The exception: no activity found to handle intent act=android.speech.action.recognize_speech (has extras).
So I tried to install Google app, Google Assistant, Google Voice Acess but all this apps not work as android.speech.action.recognize_speech.

Related

Ingration mobile app with Google Assistant

do you guys know if I could make an Ok Google mobile app that reacts for that popular phrase, then send it to Dialogflow or some Google- or self-like platform that processes voice input and then get extracted params and commands included in voice command into the app?
I tried with shortcuts.xml file but it works only in App Actions Test Tool in Android studio. When I tried it with Google Assistant logged in on the same Google account it didn't work. Same after uploading app into Google play (still the same account) as internal tests. Google Assistant didn't recognize my custom intents as all.
I also tried the Google Actions Console project and Dialogflow project but when in first case I can upload it so it is available only for me in the second case I can't access it anywhere.
I try to make Smart Home app so it must handle intents like "Switch light on/off in the kitchen" and similar to it. I must connect Google Assistant voice control with my home app. I already have Java mobile app and C# desktop app (this one controls physical devices).
If you could propose some solutions to that problem I really will be grateful.

Android Wear - Launching Google Play on Phone

I have followed the sample here: https://github.com/googlesamples/android-WearVerifyRemoteApp. I ran the app on Wear Emulator (Android 6.0.1). I reached the point where the app is not installed on phone and want to launch the app link on Google Play on the device:
// Create Remote Intent to open Play Store listing of app on remote device.
Intent intentAndroid =
new Intent(Intent.ACTION_VIEW)
.addCategory(Intent.CATEGORY_BROWSABLE)
.setData(Uri.parse(PLAY_STORE_APP_URI));
RemoteIntent.startRemoteActivity(
getApplicationContext(),
intentAndroid,
mResultReceiver);
I attached the debugger and, yes, I reached this line, but nothing happens. Google Play is not launched on the phone. I am sure I am connected to the phone as other notifications from the phone (real device) appears on the emulator.
Edit:
Not clear why but connection from the phone to the emulator is really buggy. It's really frustrating and the issue was solved but disconnecting and reconnecting many times.
AFAIK, you need to have a phone APK and a watch APK in your Android Wear app then you must use the Multi-APK delivery method. which is, as mentioned,
Multiple APK support is a feature on Google Play that allows you to publish different APKs for your application that are each targeted to different device configurations.
If you haven't done so, try enabling Advanced mode in your application's APK files tab to be able to publish multiple APKs for your app.
For more information, see Packaging and Distributing Wear Apps.

Error Ignoring multiple install campaigns using GoogleAnalytics

I was testing Google Play campaign attribution for my app when I saw the following error log :
06-19 14:17:55.416 14424-14466/com.myapp.android E/GAv4﹕ Ignoring multiple install campaigns. original, new: utm_source=testSource, utm_source=testSource2
testSource and testSource2 are utm_source's I generate using the following test broadcasting method :
adb shell am broadcast -a com.android.vending.INSTALL_REFERRER -n com.myapp.android/com.google.android.gms.analytics.CampaignTrackingReceiver --es "referrer" "utm_source=testSource&utm_medium=testMedium&utm_term=testTerm&utm_content=testContent&utm_campaign=testCampaign"
I see hits for only testSource on the GoogleAnalytics website.
Can anyone explain what does the error mean ?
Why does testSource2 does not show on the GoogleAnalytics website having come from a different source ?
The error occurs since Google Play Services broadcast it for only once when the app is downloaded.
The docs say:
When your app is downloaded from Google Play Store, the Play Store app broadcasts an INTENT_REFERRER to your app during installation. This intent contains the value of the referrer parameter of the link used to reach your app's Google Play Store page, if one was present.
I was testing it for another source on the same installed apk.
To test for a new source:
1) Uninstall the apk
2) Broadcast again.
You'll definitely see the hits for your new source on Google Analytics website after some time.

How can I dispatch Google Analytics beacon via Google Tag Manager SDK v4 with Google Play Services?

I'm trying to implement Google Tag Manager and Google Analytics Android SDK v4 with Google Play Services.
I made my sample source based on this developer guide.
It seems that my sample source doesn't include any mis-implementation but it doesn't work well...(see attached source and my repository)
Actually my sample apps seems to work but cannot dispatch GA tracking beacon with following error messages in LogCat:
09-16 05:44:42.237 391-663/system_process W/ActivityManager﹕ Unable to start service Intent { act=com.google.android.gms.analytics.service.START cmp=com.google.android.gms/.analytics.service.AnalyticsService (has extras) } U=0: not found
I wonder if anyone would have same/similar experiences and how to resolve it?
I attach full LogCat log and my source code in addition this thread.
Any advices or comments would highly appreciated.
Thank you.

Send user to Google Play and return after install

Does anybody know a way I can return a user to my app after sending them to Google Play to install an app?
I'm using standard ACTION_VIEW with a "market://" Uri and I need to take them back to where they were in my app (as opposed to them hitting "open" in Google Play".
Essentially I need to go "back" as soon as Google Play has installed the app they were linked to, which requires Google Play to "finish()".
You can use Google Play referrals (Android Native Application Tracking)
When user installs the app you get a broadcast to your app.
https://developers.google.com/analytics/devguides/collection/android/?hl=en#android-market-tracking
And this
In my exp. it is not possible because if you call finish(() with intent.Then your activity also destroy.

Categories

Resources