Menu
Who Do Is
  • Home
  • What
  • How
  • Is
  • Can
  • Are
  • Does
  • Do
  • Why
  • Who
  • Where
  • Which
  • Which
  • Should
  • Will
  • When
  • What’s
  • Did
Who Do Is

[ANSWERED] Is there a way to know what all functions are called when a certain action is done by the user in an android application?

Posted on November 14, 2022

Solution 1 :

What about the android profiler? you can catch a profile of certain action and than see all the function call stacks, memory consumption etc.

https://developer.android.com/studio/profile/android-profiler

Problem :

I am a beginner android developer and trying to fix some bugs in the app.

I was using Android Studio Debugger to manually put breakpoints and see how the execution was going. This process was working fine for me until now, when I am in a situation, where I am not able to figure out why certain view is opening up when I do a certain action (I do not know where exactly to put breakpoints).

This led me to wonder if there was an automatic way of knowing what is going on behind the scenes when a user performs a certain action in an app. LogCat is one way, but it does not show all function calls. Only some of them.

I wish to know if there is a way to know, for example, if a user taps on a button, so and so functions are called in such and such sequence.

Comments

Comment posted by smmehrab

I generally use LogCat or Toast Message.

Comment posted by Nicolas

If you don’t know where to put your breakpoint, I don’t know how logcat would help… But how would you not know? Is it in your own code?

Comment posted by k786

@Nicolas , it is not my code, I just joined on a new job as an android developer. This is the project that I am working on.

Comment posted by KalanaChinthaka

Put some print statements or toasts in the each method and check them if they are printed in the logcat.

READ  [ANSWERED] android - Camera2 API for Pixel 5 Zooming out below 1x
Powered by Inline Related Posts

Comment posted by cantona_7

@k786 you can use listeners for buttons. try to post the code by changing the variables, so that atleast we get the gist of the problem.

Recent Posts

  • How can I play with my cat without toys?
  • What is a bag pipe band called?
  • Are Honda Civics actually fast?
  • Are Yankee candles toxic?
  • How do I pair my Michael Kors smartwatch with my Android?

Recent Comments

No comments to show.

Archives

  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuántas
  • ¿Cuánto
  • ¿Que
  • ¿Quién
  • 90” and 108” so you may have to round up to the nearest size.
  • and delete any Spotify folders from it. Once this is done
  • Android
  • Are
  • At
  • Bei
  • blink
  • C'est
  • Can
  • carbs
  • Comment
  • Did
  • Do
  • Does
  • During
  • For
  • Has
  • How
  • In
  • Is
  • Ist
  • Kann
  • Können
  • nouveau
  • On
  • or 108 inches.2020-08-03
  • Où
  • owning
  • Pourquoi
  • Puis-je
  • Quand
  • Quante
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • spiritual
  • tap the downward-facing arrow on the top left. A downward-facing arrow will appear underneath each song in the album; they'll turn green as the download completes.2020-07-28
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welcher
  • Welches
  • Welke
  • Wer
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Whose
  • Why
  • Wie
  • Will
  • Wo
  • Woher
  • you will receive two curtains each with the same measurements of width 66"" (168cm) x drop 54""(137cm).
  • you'll see a green downward-facing arrow next to each song.2021-02-26
©2023 Who Do Is | Powered by SuperbThemes & WordPress