File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 2121 android : theme =" @android:style/Theme.Translucent.NoTitleBar" >
2222 <intent-filter >
2323 <action android : name =" android.intent.action.CALL" />
24+ <action android : name =" android.intent.action.SEND" />
25+ <action android : name =" android.intent.action.SENDTO" />
26+
2427 <category android : name =" android.intent.category.DEFAULT" />
28+ <category android : name =" android.intent.category.BROWSABLE" />
29+
2530 <data android : scheme =" tel" />
31+ <data android : scheme =" sms" />
32+ <data android : scheme =" smsto" />
33+ <data android : scheme =" mms" />
34+ <data android : scheme =" mmsto" />
2635 </intent-filter >
2736 </activity >
2837 </application >
Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ public void onServiceConnected() {
3636 String extractPhoneNumber (Intent intent ) {
3737 Uri uri = intent .getData ();
3838
39- if (uri != null && uri .getScheme ().equals ("tel" )) {
40- return uri .toString (). replace ( "tel:" , "" ).replaceAll ("\\ s+" , "" );
39+ if (uri != null && uri .getScheme ().matches ("tel|sms|smsto|mms|mmsto " )) {
40+ return uri .getSchemeSpecificPart ( ).replaceAll ("\\ s+" , "" );
4141 } else {
4242 return null ;
4343 }
You can’t perform that action at this time.
0 commit comments