androidthings / sample-googleassistant

Google Assistant API sample for Android Things
Apache License 2.0
467 stars 147 forks source link

App Stuck at Title Bar #44

Closed noelweichbrodt closed 7 years ago

noelweichbrodt commented 7 years ago

App installs fine, but when started it hangs on loading. Only the title bar text is displayed on the top area and a blank rectangle for the main UI area.

$ adb logcat *:E

10-06 18:02:34.060   172  1230 E AudioFlinger: Error when setting parameters on exit: -61
10-06 18:02:37.444   316   416 E TaskPersister: File error accessing recents directory (directory doesn't exist?).

No stack trace is printed in unfiltered logcat output. The problem persists through multiple restarts.

Fleker commented 7 years ago

Which device are you running the app on?

Fleker commented 7 years ago

Looking at the main layout it seems like there won't be anything on the screen by default. I don't know if it's really "hanging" because there's nothing to expect when it starts.

noelweichbrodt commented 7 years ago

@Fleker pi 3, pi touchscreen. I was going by the Readme—the instructions following the installation step say:

Try the assistant demo:

  1. Press the button: recording starts.

So I was expecting a button on the main layout.

danilobertelli commented 7 years ago

@noelweichbrodt there's no button at main layout, the button is supposed to be plugged in the GPIO. Or you can change the layout and add a button and call the startConversation() from EmbeddedAssistant class when clicked.

Fleker commented 7 years ago

Previously we were referring to a GPIO button, from the AIY Voice Kit. An on-screen button will be added to the sample soon.

noelweichbrodt commented 7 years ago

Ah, ok! makes sense, thanks for explaining @danilobertelli & @Fleker!