Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starting activity from TileService using an Intent is not allowed. #415

Closed
bashuser30 opened this issue Jan 26, 2024 · 2 comments · Fixed by #424
Closed

Starting activity from TileService using an Intent is not allowed. #415

bashuser30 opened this issue Jan 26, 2024 · 2 comments · Fixed by #424
Assignees
Labels
bug Something isn't working

Comments

@bashuser30
Copy link

Describe the bug
I am unable to launch the app using the Quick Tile.

To Reproduce
Steps to reproduce the behavior:

  1. Click on the tile.
  2. Get error and logs.

Expected behavior
App opens from tile press.

Smartphone (please complete the following information):

  • Device: Pixel 7 Pro
  • OS: Graphene OS, Android 14
  • App version: 3.0.0-beta4
  • Language: English

Additional context
Here are logs from the crash:

type: crash
osVersion: google/cheetah/cheetah:14/UQ1A.240105.004/2024011600:user/release-keys
package: com.darkempire78.opencalculator:42
process: com.darkempire78.opencalculator
processUptime: 2317 + 273 ms
installer: com.machiav3lli.fdroid

java.lang.UnsupportedOperationException: startActivityAndCollapse: Starting activity from TileService using an Intent is not allowed.
    at android.service.quicksettings.TileService.startActivityAndCollapse(TileService.java:355)
    at com.darkempire78.opencalculator.MyTileService.onClick(Unknown Source:21)
    at android.service.quicksettings.TileService$H.handleMessage(TileService.java:494)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loopOnce(Looper.java:205)
    at android.os.Looper.loop(Looper.java:294)
    at android.app.ActivityThread.main(ActivityThread.java:8279)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
    at com.android.internal.os.ExecInit.main(ExecInit.java:49)
    at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
    at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:359)
@bashuser30 bashuser30 added the bug Something isn't working label Jan 26, 2024
@inson1
Copy link
Contributor

inson1 commented Jan 26, 2024

@muryno
Copy link
Contributor

muryno commented Feb 4, 2024

I have a fix for this here MR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants