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 help me with calculating direction from point A to B

Hi everyone...

I'm back with the same issue for the last couple of daysI'm trying
to create a compass for my application BUT the difference is that,
instead of having a line always pointing to north, I want this line to
point for a specific point. I've been trying dozens of algorithms and
nothing works..
I've finally found one that points me exactlly to the point I want..
BUT it doesn't move if I change the position of the device which is my
objective.. basicly, what I want is that no matter the direction I'm
using my device.. the line always point me to the point
(picLatitude,picLongitude)
I understood that for the line to move, I can't use static variablesI need to use the values offered by the onSensorChanged(SensorEvent
event).

This are the data I have available:

event.values[0]: azimuth, rotation around the Z axis (device in
relation to north, 0)
event.values[1]: pitch, rotation around the X axis
event.values[2]: roll, rotation around the Y axis
mLatitude: device current latitude gottern from GPS (variable)
mLongitude: device current longitude gotten from GPS (variable)
picLatitude: static picture latitude established previously
picLongitude: static picture longitude established previously
distance: distance in Km from device to the picture calculated
previously

And this the formula that works correct, and gives me the correct
angle.. ( BUT IT DOESN'T USE ANY OF THE SENSOR DATA SO THE LINE
COMPASS DOESNT MOVE):

double dLong = picLongitude - mLongitude;
double y =  (Math.sin(dLong) * Math.cos(picLatitude));
double x =  (Math.cos(mLatitude) * Math.sin(picLatitude) -
Math.sin(mLatitude)*Math.cos(picLatitude)*Math.cos(dLong));
double angleDegreesWrongRange = Math.abs(Math.toDegrees(Math.atan2(y,
x)));
float angleDegrees = (float) ((angleDegreesWrongRange+360) % 360);

myCompass.updateDirection(angleDegrees);

I got this "bearing" formula from this website:
http://www.movable-type.co.uk/scripts/latlong.html


Can someone please help me with this?
I've try adding, subtractingthe azimuth.. I've tried with the
others.. seriously at this point I'm just demoralized..

Thank you in advance

-- 

2. New to Developing, Need Insight

I'm a fairly new to developing.  Really new.  Actually, I'm taking my
first class in-school this year on how to program for Windows. However
I'm only 4 weeks into it so I know only the very basics.  Variables,
Primitives and a few other things. But that's a separate story (but
still helps you understand where I come from).

Anyways, I finally got Eclipse and the SDK working together and I have
been going through some of the tutorials on developing for Androids.
I think I'm mostly lost because I barely understand any of the
concepts told.  I do have some questions though that may help me if
answered.

1. Since this is open source, can I find XML that has already been
created and just tweak a few settings to fit my needs?  Can these just
be found on the Android Developer site?
2. How am I supposed to find the code I'm looking for?  I understand
there is packages and classes but it is overwhelming on how much there
is and where to go when I get an error.
3. I feel like the tutorials teach me nothing because all I'm really
doing is pasting code that they already made.  Is this really the best
way to learn?
4. I'm thinking of making an app like the Car Dock but with my own
shortcuts.  Can you create shortcuts to other apps using XML?

-- 

3. Set password text as case sensitive

4. how to get specific preference in Java code from an XML preferences file?

5. Distribute app to customer for review but no one else

6. ListView elements with background drawable go transparent on menu display?

7. Bold and regular custom fonts within a TextView