Giter VIP home page Giter VIP logo

codehasan / current-activity Goto Github PK

View Code? Open in Web Editor NEW
63.0 63.0 10.0 1.23 MB

๐Ÿ“ฑ A floating window that can be moved freely and displays the package and class name of the active application

Home Page: https://play.google.com/store/apps/details?id=io.github.ratul.topactivity

License: GNU General Public License v3.0

Java 100.00%
activity-monitor activity-stack android current-activity hacktoberfest top-activity

current-activity's Introduction

Hi I'm Ratul ๐Ÿ‘‹

I'm passionate about building decentralized applications, Blockchain and DeFi.

I maintain the following projects:

  • SecurePaste - A secure Pastebin alternative with blockchain-powered encryption and decentralized storage.
  • dex2c - Translate dalvik bytecode into cpp to apply native layer protection for apps.
  • Current-Activity - Monitor the current running app activity and emit the info in a floating window.

If you're looking to get in contact with me:

current-activity's People

Contributors

codehasan avatar dependabot[bot] avatar kingmahmud avatar manthanghasadiya avatar ratsan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

current-activity's Issues

Bug

It's not really working well on my phone.
Am using Infinix. Pls help

It crashes i on all the permissions as well

Crash log
*********************** Crash Head ***********************
Time Of Crash : 16-03-2024 15:35
Device Manufacturer : samsung
Device Model : SM-M315F
Android Version : 12
Android SDK : 31
App VersionName : 1.5.5
App VersionCode : 15

*********************** Crash Log ***********************
java.lang.RuntimeException: Unable to pause activity {io.github.ratul.topactivity/io.github.ratul.topactivity.ui.MainActivity}: java.lang.IllegalArgumentException: io.github.ratul.topactivity: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:5639)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:5590)
at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:5542)
at android.app.servertransaction.PauseActivityItem.execute(PauseActivityItem.java:47)
at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2443)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8751)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
Caused by: java.lang.IllegalArgumentException: io.github.ratul.topactivity: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
at android.app.PendingIntent.checkFlags(PendingIntent.java:382)
at android.app.PendingIntent.getActivitiesAsUser(PendingIntent.java:616)
at android.app.PendingIntent.getActivities(PendingIntent.java:598)
at android.app.TaskStackBuilder.getPendingIntent(TaskStackBuilder.java:275)
at android.app.TaskStackBuilder.getPendingIntent(TaskStackBuilder.java:249)
at io.github.ratul.topactivity.model.NotificationMonitor.c(Unknown Source:95)
at io.github.ratul.topactivity.ui.MainActivity.onPause(Unknown Source:10)
at android.app.Activity.performPause(Activity.java:8485)
at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1530)
at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:5629)
... 14 more

Crash when switching from Current Activity in recent app switcher using FP5 stock ROM.

As the undermentioned depicts, when I switch out of Current Activity (io.github.ratul.topactivity.ui.MainActivity) using the stock (QuickStep) app switcher, when I select an application to switch to, Current Activity crashes:

screen-20240622-104325.mp4

However, its floating window remains visible and able to display the class name, although clicking on that class name doesn't actually duplicate it to the clipboard, despite it purporting to.

*********************** Crash Head ***********************
Time Of Crash : 22-06-2024 10:37
Device Manufacturer : Fairphone
Device Model : FP5
Android Version : 13
Android SDK : 33
App VersionName : 1.5.5
App VersionCode : 15

*********************** Crash Log ***********************
java.lang.RuntimeException: Unable to pause activity {io.github.ratul.topactivity/io.github.ratul.topactivity.ui.MainActivity}: java.lang.IllegalArgumentException: io.github.ratul.topactivity: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
	at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:5065)
	at android.app.ActivityThread.performPauseActivity(ActivityThread.java:5016)
	at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:4968)
	at android.app.servertransaction.PauseActivityItem.execute(PauseActivityItem.java:48)
	at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
	at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2308)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.app.ActivityThread.main(ActivityThread.java:7918)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:942)
Caused by: java.lang.IllegalArgumentException: io.github.ratul.topactivity: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
	at android.app.PendingIntent.checkFlags(PendingIntent.java:404)
	at android.app.PendingIntent.getActivitiesAsUser(PendingIntent.java:622)
	at android.app.PendingIntent.getActivities(PendingIntent.java:604)
	at android.app.TaskStackBuilder.getPendingIntent(TaskStackBuilder.java:275)
	at android.app.TaskStackBuilder.getPendingIntent(TaskStackBuilder.java:249)
	at io.github.ratul.topactivity.model.NotificationMonitor.c(Unknown Source:95)
	at io.github.ratul.topactivity.ui.MainActivity.onPause(Unknown Source:10)
	at android.app.Activity.performPause(Activity.java:8481)
	at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1619)
	at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:5055)
	... 14 more

Carsh

*********************** Crash Head ***********************
Time Of Crash : 21-03-2024 18:23
Device Manufacturer : Xiaomi
Device Model : M2007J20CI
Android Version : 12
Android SDK : 31
App VersionName : 1.5.8
App VersionCode : 20

*********************** Crash Log ***********************
java.lang.RuntimeException: Unable to pause activity {io.github.ratul.topactivity/io.github.ratul.topactivity.ui.MainActivity}: java.lang.IllegalArgumentException: io.github.ratul.topactivity: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:5201)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:5152)
at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:5104)
at android.app.servertransaction.PauseActivityItem.execute(PauseActivityItem.java:47)
at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2291)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:210)
at android.os.Looper.loop(Looper.java:299)
at android.app.ActivityThread.main(ActivityThread.java:8319)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1038)
Caused by: java.lang.IllegalArgumentException: io.github.ratul.topactivity: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
at android.app.PendingIntent.checkFlags(PendingIntent.java:378)
at android.app.PendingIntent.getActivitiesAsUser(PendingIntent.java:596)
at android.app.PendingIntent.getActivities(PendingIntent.java:578)
at android.app.TaskStackBuilder.getPendingIntent(TaskStackBuilder.java:275)
at android.app.TaskStackBuilder.getPendingIntent(TaskStackBuilder.java:249)
at io.github.ratul.topactivity.model.NotificationMonitor.c(Unknown Source:95)
at io.github.ratul.topactivity.ui.MainActivity.onPause(Unknown Source:10)
at android.app.Activity.performPause(Activity.java:8374)
at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1531)
at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:5191)
... 14 more

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.