Questions tagged [android-slices]
23 questions
6
votes
0 answers
Integrating Slices in Android Google Search
I have implemented slices from Google android developers tutorial. My code is working exactly fine in SliceViewer App.But I don't know how to show this with google search app result.Can someone tell me how to integrate this operation and how will…

Nagendra Hari Karthick
- 463
- 3
- 15
4
votes
3 answers
Implement Slices in Android
I am trying to implement a Slice in android from the guide given here. However the implementation here can only be viewed through the Slice Viewer app. There is no change in the app when I run it. I think I am missing something which has to be added…

speedster01
- 433
- 3
- 19
3
votes
4 answers
Can we use Android Slices without migrating to AndroidX?
To elaborate, I dont want to migrate to Android X. I just want to use one feature called Android Slices. https://developer.android.com/guide/slices/getting-started

Pinser
- 1,898
- 3
- 29
- 43
2
votes
0 answers
java.lang.SecurityException: Caller must own content://.....MySliceProvider
I am trying to implement google assistant into my own android app, I have been following actions on google example: https://github.com/actions-on-google/appactions-fitness-kotlin/issues/9.
I am getting
java.lang.SecurityException: Caller must own
…

Donki
- 660
- 6
- 21
2
votes
1 answer
Updating Data in Android Slices using onSlicePinned
Since lengthly operations can't be done inside onBindSlice(), I am fetching data from server from onSlicePinned() method and then showing it in slices. But I can't understand when is this function called.
I thought it would be called every time we…

Ashish Rana
- 112
- 5
2
votes
2 answers
Is it possible to test my App Action integrated Slice from Google Assistant?
I have implemented the App Actions in a demo app. It's working fine and I'm able to launch a specific screen using Google Assistant with queries like
Order pizza from Avocado
So I started to integrate Slice. When testing the Slice using…

Peike
- 727
- 4
- 15
1
vote
1 answer
How do I get google assistant to recognize my custom intent?
I have the actions xml referenced in my manifest as well as my slice provider

Sean Calkins
- 312
- 2
- 11
1
vote
0 answers
What's the status of Android Slices in 2020
Most of the question are posted few years back, just curious what's the status so far, I tried to create a simple slice and want to test the connection in prod, but looks like nobody can actually opens the slices component from the Android Search…

bagMan
- 173
- 1
- 6
1
vote
1 answer
Communicating with background app through google assistant
I am doing a demo to let the user "talk with" the app without bringing the app to the foreground, but I am not sure how to do that. Slices can finish the job without opening the app, but Google assistant won't read information from the slices. Read…

Jieyu You
- 37
- 7
1
vote
1 answer
How to get colored text for Android Slices?
I'm working on a Slice prototype, when looking at the Slice Templates page from Google I see examples like this very frequently
And it provides example code like
list(context, sliceUri, ListBuilder.INFINITY) {
setAccentColor(0xff0F9D)…

cpb
- 45
- 2
- 6
1
vote
1 answer
Invalid Intent name for Google Actions
I am working to add Google Assistant actions in my app. When running the App Actions test tool, the error below keep poping-up and I do not know what to do.
App Actions Test Tool v3.1.5
Preview Creation Error
Status…

Seb
- 2,929
- 4
- 30
- 73
1
vote
1 answer
setSeeMoreAction() of Slices not working while testing with App Actions
I need to show more data than slices could show, so i used the method setSeeMoreAction(PendingIntent intent), which adds a "see more" affordance at the end of slice and we can set which action to invoke when tapping it with the help of…

Ashish Rana
- 112
- 5
1
vote
1 answer
How to make network API calls on SliceProvider and set the information on Slice
I have been struggling on this question a few days. So what I want to do on Android Slices is create slice with information which is from the back-end service. For example:
on SliceProvider class
@Override
public Slice onBindSlice(Uri sliceUri) {
…

droidhs
- 41
- 5
1
vote
2 answers
[Android Slices]: SliceRow setTitleItem not working
I'm trying out the Android Slices and found that there is no way to build the Slice Row with setTitleItem only. I want to create the Slice as like the attached screenshot. But it appears that setTitleItem method not working.
Artifact used…

sam_k
- 5,983
- 14
- 76
- 110
0
votes
1 answer
Android Slice Provider Failed to find provider info
I'm trying to build a Slice host app A that can display Slices defined at uris provided by other apps, lets say one other app B. I know this functionality is possible because the SliceViewer.apk works fine here:…

cashews
- 26
- 3