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. Android App Promotions

I have developed an app and the result is pretty good. What should I
do to increase the download?

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

2. Help with Spinner

I am creating a Spinner but when it displays in the Emulator it does
not display any sort of arrow to let the user know to click on it. If
you click on it, it works properly and you can choose from the items.
I have looked through Internet resources and three books but cannot
seem to find an answer to this. Here are my files:
spinner.xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
    <Spinner
      android:id="@+id/testSpinner"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:drawSelectorOnTop="true"
    />
    <Button
      android:id="@+id/enableToggleButton"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:text="Set enable toggle"
    />
    <Button
      android:id="@+id/changeColorButton"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:text="Change Spinner Background Color"
    />
</LinearLayout>

arrays.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
  <string-array name="months">
    <item>Jan</item>
    <item>Feb</item>
    <item>Mar</item>
    <item>Apr</item>
    <item>May</item>
    <item>Jun</item>
    <item>Jul</item>
    <item>Aug</item>
    <item>Sep</item>
    <item>Oct</item>
    <item>Nov</item>
    <item>Dec</item>
  </string-array>
</resources>

TestSpinner.java
package com.aapg.AndroidViews;

import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.Spinner;

public class TestSpinner extends Activity
{
  private int spinnerBackgroundColor = Color.BLUE;
  //private static final String[] MONTHS = new String[]
          //
{"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"};

  @Override
  public void onCreate(Bundle savedInstanceState)
  {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.spinner);

        //Get a reference to the Spinner.
        final Spinner testSpinner = (Spinner)findViewById
(R.id.testSpinner);
        testSpinner.setBackgroundColor(Color.BLUE);
        //Set up the ArrayAdapter.
        //ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>
(this,
                        //android.R.layout.simple_spinner_item,
MONTHS);
        ArrayAdapter<CharSequence> arrayAdapter =
ArrayAdapter.createFromResource(this,
                        R.array.months,
android.R.layout.simple_spinner_item);
        //Set up the DropDownViewResource.
        arrayAdapter.setDropDownViewResource
(android.R.layout.simple_spinner_dropdown_item);
        //Attach the Spinner to the ArrayAdapter.
        testSpinner.setAdapter(arrayAdapter);

        final Button enableToggleButton = (Button)findViewById
(R.id.enableToggleButton);
        enableToggleButton.setOnClickListener(new
Button.OnClickListener()
        {
          public void onClick(View v)
          {
                changeEnabled(testSpinner);
          }//onClick().
        });//Button.setOnClickListener().

        final Button changeColorButton = (Button)findViewById
(R.id.changeColorButton);
        changeColorButton.setOnClickListener(new Button.OnClickListener
()
        {
          public void onClick(View v)
          {
                changeSpinnerBackgroundColor(testSpinner);
          }//onClick().
        });//Button.setOnClickListener().
  }//onCreate().

  public void changeEnabled(Spinner testSpinner)
  {
        if(testSpinner.isEnabled())
        {
      testSpinner.setEnabled(false);
        }//if(testSpinner.isEnabled()).
        else
        {
      testSpinner.setEnabled(true);
        }//else.
  }//changeEnabled(Spinner testSpinner2).

  public void changeSpinnerBackgroundColor(Spinner testSpinner)
  {
        if(spinnerBackgroundColor == Color.BLUE)
        {
          testSpinner.setBackgroundColor(Color.YELLOW);
          spinnerBackgroundColor = Color.YELLOW;
        }//if(SPINNER_BACKGROUND_COLOR == Color.BLUE)
        else
        {
          testSpinner.setBackgroundColor(Color.BLUE);
          spinnerBackgroundColor = Color.BLUE;
        }//else.
  }//changeSpinnerBackgroundColor(Spinner testSpinner).

}//AutoComplete class.

Thanks for your help.

EverettG.

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

3. gcc: error trying to exec 'cc1': execvp: No such file or directory

4. About Content Provider and SQLite Table design pattern

5. Pre-Order 3G[S] dan HTC Hero Android G2

6. do i need to close cursor?

7. Printing from Android - the Brother MW-120 mobile printer