Android and Samsung S5 with Telephony.SECRET_CODE -


an activity in app can triggrered using telephony.secret_code. receiver listens intent , starts activity. problem seems bit strange. seems samsung s5 doesn't seem recognise secret code i'm dialling.

normally, complete secret code sequence, dialler clear out code , activity starts. happens in simulator, moto g, nexus 5 , xolo phones. nothing happens when on samsung s5. doesn't clear it.

here's i've in manifest:

<receiver android:name="org.example.secretreceiver" >     <intent-filter>         <action android:name="android.provider.telephony.secret_code" />             <data                 android:host="981276345"                 android:scheme="android_secret_code" />      </intent-filter> </receiver> 

i'm invoking dialling sequence:

*#*#981276345#*#* 

this works in other phones except on samsung s5.

also, have compiled using apk level 17 works on test phones. samsung s5 details given below:

model number: sm-g900f android version: 4.4.2 

am missing something?

please try this:

<receiver android:name="org.example.secretreceiver" >     <intent-filter>         <action android:name="android.provider.telephony.secret_code" />             <data                 android:host="1234"                 android:scheme="android_secret_code" />      </intent-filter> </receiver> 

and open dialer , try: *#1234# it's should work..

i think maybe samsung limit dialer custom codes.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -