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,
Alejandro

--~--~---------~--~----~------------~-------~--~----~



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.

Alejandro





--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Please convert this code 1.0version from m5.

This code is m5 version.
I want to convert this code.


import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.app.Activity;
import android.os.Bundle;
import android.media.MediaPlayer;
import android.os.DeadObjectException;
import java.lang.String;

public class RotateView extends Activity {

        private MediaPlayer ringerTonePlayer = new MediaPlayer();

        /** Called when the activity is first created. */
    @Override
        protected void onCreate(Bundle icicle)
    {
        super.onCreate(icicle);

        setContentView(R.layout.main);

        // Watch for button clicks.
        Button button = (Button)findViewById(R.id.portrait_view);
        button.setOnClickListener(mPortraitViewListener);

        button = (Button)findViewById(R.id.landscape_view);
        button.setOnClickListener(mLandscapeViewListener);

        button = (Button)findViewById(R.id.portrait_flip_view);
        button.setOnClickListener(mPortraitFlipViewListener);

        button = (Button)findViewById(R.id.landscape_flip_view);
        button.setOnClickListener(mLandscapeFlipViewListener);

    }




    private void mySetOrientation(int mode)
    {
        String s = "window";
        String f = "/system/media/audo/ringtones/";
        try {
                android.os.IInterface sm;// =
android.os.ServiceManagerNative.getDefault();
                android.view.IWindowManager windowService =
                        
android.view.IWindowManager.Stub.asInterface(sm.getService(s));
                windowService.setOrientation(mode);
        }
        catch (DeadObjectException e) {
        }
                try {
                        switch (mode) {
                        case 0: f += "ringer.mp3"; break;
                        case 1: f += "ring3.mp3"; break;
                        case 2: f += "em_ringtone1.mp3"; break;
                        case 3: f += "em_ringtone2.mp3"; break;
                        }
                        ringerTonePlayer.stop();
                        ringerTonePlayer.setDataSource(f);
                        ringerTonePlayer.prepare();
                        ringerTonePlayer.start();
                        } catch( Exception e ) {
                }
    }

    private OnClickListener mPortraitViewListener = new
OnClickListener()
    {
        public void onClick(View v)
        {
                mySetOrientation(0);
        }
    };

    private OnClickListener mLandscapeViewListener = new
OnClickListener()
    {
        public void onClick(View v)
        {
                mySetOrientation(1);
        }
    };

    private OnClickListener mPortraitFlipViewListener = new
OnClickListener()
    {
        public void onClick(View v)
        {
                mySetOrientation(2);
        }
    };

    private OnClickListener mLandscapeFlipViewListener = new
OnClickListener()
    {
        public void onClick(View v)
        {
                mySetOrientation(3);
        }
    };
}

--~--~---------~--~----~------------~-------~--~----~

2. About alarm clock for app.

i want to add the alarm clock setting in my application
actually android has a very nice alarm clock in the emulator
does anybody know how to invoke this from my application, such as
click a button

if above method cannot work out, any other ways to edit the phone
alarm time by using timepicker?

thank you

--~--~---------~--~----~------------~-------~--~----~

3. ImageView not displaying at all

4. Invitation to upload software to Phoload

5. Using the browser environment

6. Android FreeTTS server interfacing, a speech solution for your projects

7. Using an intent to search for a hospital