Questions tagged [android-app-quick-setting]

14 questions
6
votes
0 answers

Android TileService onStartListening not called immediately?

The Android TileService documentation states the following: When a tile should be up to date and listing will be indicated by onStartListening() and onStopListening(). Based on the lifecycle for a TileService, it's intended that you START updating…
Nathan F.
  • 3,250
  • 3
  • 35
  • 69
5
votes
1 answer

Android 13 - TileService for Quick Settings Panel is not collapsing onClick

Short Question: startActivityAndCollapse not working for Android 13 Long Question: I am creating a tile for the quick settings panel. I have tried to implement this demo. It's working fine for all other devices except Android 13 override fun…
Pratik Butani
  • 60,504
  • 58
  • 273
  • 437
5
votes
1 answer

Why does TileService wait several seconds to start an Activity?

I'm using a TileService as a shortcut to open my app's Activity. It does only that, and has no state. It looks like this: class QuickAccessTileService : TileService() { override fun onClick() { super.onClick() val intent =…
2
votes
0 answers

Locking the device with AccessibilityService and TileService

I have simple example of an app that perform the locking via GLOBAL_ACTION_LOCK_SCREEN (new feature from Pie). In that example are: 1) AccessibilityService.class as follow: @Override public void onAccessibilityEvent(AccessibilityEvent event) { …
BxOO
  • 21
  • 1
1
vote
1 answer

Close Quick Settings Panel after click the Quick Setting tile in android

My app has a Tile Service. After clicked on that tile, the onClick function run perfectly fine, but I wanted to close the quick setting panel, is there anyway to achive that goal?
TorryDo
  • 45
  • 1
  • 4
1
vote
2 answers

How to open a dialog from Quick settings Tile?

I am developing an app for Quick settings Tile. I want to open a layout or a custom dialog when user click on the tile, whichever is a good option. Assume this as a custom dialog. I tried many examples, but I got no luck! Thank you in advance.
Harshil Modi
  • 397
  • 3
  • 8
  • 15
1
vote
2 answers

Disable Bluetooth Tile in Quick Settings Panel

I want to disable Bluetooth tile from the quick settings panel. I am using android 9 and I want to do it on a system app. So if there are some changes to be made in source, I would be happy to know it. I have found many solutions telling how to add…
0
votes
0 answers

I need a custom quick setting tile, similar to the wifi selection feature

I am trying to create a custom quick setting tile, I want to implement it so that it has an arrow next to it. When clicked on the arrow, a box pops up showing selection,but it's not a dialog It looks something like this When I click on it, it's…
x w
  • 11
  • 1
0
votes
0 answers

How to override System Status Bar Tiles (Wifi, Bluetooth, Data and Location etc) with custom icon and colored background etc?

I am working on application wherein I want custom quick setting features, i.e. custom icon with improved UI and background color along-with gradient background of the quick setting tiles to override the current system quick setting tiles (Wifi,…
0
votes
1 answer

How to manually close the quick settings panel launched from Settings.Panel.ACTION_INTERNET_CONNECTIVITY Intent in Android?

I am launching an Settings.Panel.ACTION_INTERNET_CONNECTIVITY Intent from the app's MainActivity when the internet gets disconnected. When the user minimize the app without closing the Intent, the app's state is cleared and opens again from login…
0
votes
1 answer

Tile in QuickSettings not working after updating SDK to 31

In my application we have a Tile in the QuickSettings of Android. It is a toggleable Tile. It was working fine in SDK 30, until I updated the SDK to 31. I read the documentation and the changes in Android 12, but I could not find anything wrong in…
n3mo
  • 663
  • 8
  • 23
0
votes
0 answers

When setComponentEnabledSetting(TileService, DISABLE, 0); Tile in Quick setting still is not removed

enter code hereI have a TileService Class. I want to remove the tile from Quick Setting programmatically. I have used setComponentEnabledSetting(TileService, DISABLE, 0); but tile still shows inside Quick Settings and updates once I click the edit…
0
votes
0 answers

Is there a way to get a list of all quick settings settings tiles which are there in the panel?

I am trying to mimic the notification shade for my personal learning. Naturally I would need to add quick setting tiles in my app as well. But i am completely unaware of any way to get them. Any help will be much appreciated. Thanks in advance.
0
votes
0 answers

How to receive/send broadcast while device in lock mode in Android

We have a Quick Setting for our application. Using the Quick Setting user can On and Off our application. For syncing application and Quick Setting, we are using broadcasts it is like client and server communication. Like Quick Setting send a…
DynamicMind
  • 4,240
  • 1
  • 26
  • 43