Problems in multidimensional array/dictionary. Problems with floating elements.

ZnAK

New member
It is not possible to iterate through all the values of an array or dictionary with output to a string variable in the same way as it happens with variables in a one-dimensional one. This happens in a nested array or dictionary. It is only possible to pass specific values without index/key by setting manually.
Observed both in a macro and in an action block.


Perceptible delay between switching floating text and floating buttons. It is especially noticeable when several such elements are created.

Macro to test:
 

Attachments

  • -_Problems.txt.macro
    29.2 KB · Views: 6

Dm114

Well-known member
It is not possible to iterate through all the values of an array or dictionary with output to a string variable in the same way as it happens with variables in a one-dimensional one. This happens in a nested array or dictionary. It is only possible to pass specific values without index/key by setting manually.
Observed both in a macro and in an action block.
Unfortunately you are right for multidimensional arrays. ☹️
 

MacroDroidDev

Administrator
Staff member
@ZnAK What device do you have and what is the exact error? Perhaps you have an old ARM32 based device, in which case you should just subscribe to the beta via the Play Store and you will receive it when it becomes available.
 

Endercraft

Moderator (& bug finder :D)
I don't really understand the thing with different packages, is it like there are different processors that interpret the zeros and ones differently according to processor, and that's why you need different packages ?
 

MacroDroidDev

Administrator
Staff member
There is some amount of native code (think C/C++ code) that gets compiled specifically for the CPU architecture. This has grown over time to get quite big so the app has been split into separate APKs for each architecture to avoid one overly bloated APK with lots of native code bundles that are not relevant for your platform.
 

ZnAK

New member
@ZnAK What device do you have and what is the exact error? Perhaps you have an old ARM32 based device, in which case you should just subscribe to the beta via the Play Store and you will receive it when it becomes available.
Honor 7 A DUAL 22. Android 8.1; processor with ARMv8-A instruction set.
 

Quidn

Passionate Member
I don't really understand the thing with different packages, is it like there are different processors that interpret the zeros and ones differently according to processor, and that's why you need different packages ?
Not only Android apps but also any other software which compiled or includes compiled component needs those to be compiled on a specific architecture.
Usually, Android apps have at least two* and normally four** target architectures and even so it's not enough to cover all devices while it covers almost all. This is one of the reason that more and more applications rely only on the Google Play.

*: ARM64(v8), ARMv7
**: ARM64(v8), ARMv7, x86, x86_64

Appendix for your reference:

  • By the way I'm so sorry for say like this but perhaps it'd be better if you Google yourself because what you asked was not related to the topic and the deriveds at all in any way. Not only to this and MacroDroid but also it's more related to computer science area which even I couldn't tried to understand completely due to the vastness and complexity.

    That's purely your personal curiosity and I believe not many people have enough time to spend theirs to teaching such common basic fundamentals individually, even though I fully understand your attitude like that because I too am a very curious person.

    However I think it'd be totally fine if you ask something your personal curiosity which certainly specific to MacroDroid by a new thread. I'm not familiar yet to the practices and tone of this forum, but I'm saying in accordance with general practice. I hope you could understand my intention which for make our forum better.

    Please kindly know that I have taken some time to explain the basic fundamentals just only for you in order to avoid misunderstanding my intentions, while there are so many countless references.

    Ultimately I'm certainly so much sure that finding out everything yourself as much as possible must be a great habit for you. I'd happily write even more and more if it's something new to people, but no, there are plenty of huge better references written by great people who are never comparable to me.
 
Top