I want to add a secret logging toggle switch so that when the QA guys here test the app, they should be able to do some magic secret trick which will switch on the logging for them onltytheir phones.
Magic secret trick meaning something like clicking on a few parts of the screen should switch it on or something else you suggest. This secret should be known only to the QA team and this should not affect the app in any other way.
I am planning to log the statements in a file on sd card.
What are your thoughts? What’s the best way to do it?
What’s the usual way of doing it?
A very simple way would be checking if a file (empty one, doesn’t matter) exists on the sdcard. You could make the filename dynamic (based on date/month) or very obscure.