HTC Magic, is PhoneNumberUtils.PAUSE different?

by Alejandro » Mon, 27 Apr 2009 12:37:42 GMT

Sponsored Links
 I am getting reports that the in the HTC Magic the character that
represents the pause in a dial string is different than in the Google
build of cupcake. In the SDK 1.5 pre-release, the pause is given by a
','. Apparently, in the HTC magic, the pause is given by a 'p'.
Unfortunately, I don't currently have the means to test this. Does
anyone know if the PhoneNumberUtils.PAUSE member in the HTC magic
build reflects this change? Have any other functions in
PhoneNumberUtils changed in order to support this?

Thank you,


HTC Magic, is PhoneNumberUtils.PAUSE different?

by Alejandro » Thu, 25 Jun 2009 14:05:38 GMT

 The Rogers HTC Magic phone is using the 'p' as a pause, but it seems
they haven't changed the PhoneNumberUtils.PAUSE to reflect this. This
is rather unfortunate, because it makes the Rogers build non-standard
and my app breaks. I would hope in the future there are no more
deviations of the standard SDK, otherwise, developing for the Android
platform will become harder.



Sponsored Links

Other Threads

1. Keyboard Input

I'm not sure where to start but I want to find out how I can created
simple keyboard input.

Also when and where do the "onKeyDown" and "onKeyUp" methods get

2. Sending Multipart SMS


I am trying to send a multipart SMS using the following code. While
the SMS is being split into multiple parts and sent across, in the
receiver, I am seeing some junk characters (as if i am reading a
binary file). Obviously, I am not doing something correct. Can someone
(plusminus ) help?


package com.test;

import java.util.ArrayList;
import android.content.Intent;
import android.os.Bundle;
import android.telephony.gsm.SmsManager;
import android.util.Log;

public class SMSSender extends Activity {

public void onCreate(Bundle icicle) {
SmsManager smsManager = SmsManager.getDefault();
String destAddr = "5556", scAddr = null, mMessageText =
"This is a sample SMS which has more than 160 characters if it has
more characters, it will give an error as the standard SMS can contain
only 160 characters. This text does not appear";
PendingIntent sentIntent = null, deliveryIntent = null;
try {
ArrayList<PendingIntent> listOfIntents = new ArrayList<PendingIntent>
//PendingIntent il = PendingIntent.getBroadcast(this, 0, new Intent(),
ArrayList<String> messages = smsManager.divideMessage(mMessageText);

Log.v("****************", messages.toString());

for (int i=0; i < messages.size(); i++){

PendingIntent pi = PendingIntent.getBroadcast(this, 0, new Intent(),
smsManager.sendMultipartTextMessage(destAddr, null, messages,
listOfIntents, null);

} catch (Exception e) { Log.i("TEST", e.toString()); } } }


// SMS Receiver
package com.test;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.telephony.gsm.SmsMessage;
import android.util.Log;

public class SMSReceiver extends BroadcastReceiver {
private static final String TAG = "SMSReceiver";
static final String ACTION =
public void onReceive(Context context, Intent intent) {
if (intent.getAction().equals(ACTION)) {
StringBuilder buf = new StringBuilder();
Bundle bundle = intent.getExtras();
if (bundle != null) {
Object[] pdusObj = (Object[]) bundle.get("pdus");
SmsMessage[] messages = new SmsMessage[pdusObj.length];
for (int i = 0; i<pdusObj.length; i++) {
messages[i] = SmsMessage.createFromPdu ((byte[]) pdusObj[i]);
SmsMessage msg = messages[0];
Log.i(TAG, msg.getDisplayMessageBody());



3. network defaultroute

4. Issue while compiling Multimedia Acclerated code in Android

5. Android on netbooks

6. How to force screen to switch between landscape/portrait

7. Capturing PCM/YUV samples,encoding, writing in a specific format