I m developing a dialer app which I ve been testing on my Motorola devices and the emulator images that I download through the SDK manager.
用户无论在数量上,还是从最近的电话或接触中挑选。 然后,我打下了同样的呼吁(这里的骑士们,这样,在派人前就会出现拖延):
String url = "tel:" + preDial + " ,,, " + postDial;
Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(url));
startActivity(intent);
On my phones and the emulator, the phone app displays preDial
with its contact name, and inserts it normally into the recent call log. When I tested it on my friend s Samsung Charge, however, it displayed the contents of the url (minus the "tel:" of course). For example if preDial = "15555555555"
and postDial = "1111"
the phone app would display 15555555555,,,1111 and there would be no corresponding contact name displayed due to the contact not having the number with ,,,1111 appended. This also screws up the call logs as this awkward number with no contact is stored there. I m assuming this is a function of how Samsung implemented their phone, and I m hoping there is a way around it.
我可以通过从电话日志中删除LIKE preDial
,来确定电话日志,但电话中显示的号码如何保持不变。 是否有任何人知道这是一个比三星更普遍的问题,以及围绕它是否有任何办法?