In Android code, what offers the characteristics expected by the program from a variable?

I know that if I run the program, it will most likely be expressed in one way or another: what it expects from each variable. But I would like to independently determine when I read every page of Android code, etc., For example:

  • How can I determine if a size or length program for Android is expecting a string array?
  • Is a integer or double expected to be positive or negative?

and etc.

Help in this regard would be greatly appreciated.

+5
source share
1 answer

You can set breakpoints in your code and check all the variables when the program pauses. This will give you a general idea of ​​whether the integers were positive or negative, the length and content of the strings, etc. This can be useful if the code is poorly documented.

Assuming you are using Android Studio, you can follow this guide:

https://developer.android.com/tools/debugging/debugging-studio.html

0
source

All Articles