Using SECRET_CODE from android.provider.Telephony
01:46 24 Jan 2018

I want to implement a basic idea to make a balance sheet in android. If I write *#*#1234#*#* on my number dial screen then it must simply increment 34 in my app(or maybe in a text file). In search to implement this idea, I came across android.provider.Telephony.SECRET_CODE.

What I want is to read any number like *#*##*#* from the dialpad of phone. So I want my code to run in a way such that it identifies any code of this format as the secret code: *#*#12$$#*#*. I suppose it is hard to think if there is any way in which it can work, but if anybody knows anything, I would be very curious to know. Thanks a lot in advance!

android