How can I know if I can display a character ?

by Nanard » Wed, 02 Sep 2009 18:25:43 GMT


Sponsored Links
 Hi,

My application opens external documents.
Most characters are display OK, but a few not.

How can I know if the character can be displayed (in a TextView,  or
other) ?

Is there a method in TextView, String, Typeface or other ?
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. run simulator innormally & build project error on eclipse

As mentioned elsewhere, the simulator doesn't work all that well. Is
there a particular reason you're trying to use the simulator instead
of the emulator?


On Tue, Feb 24, 2009 at 6:31 PM, royzha...@gmail.com



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

2. Single choice dialog item selection

Hi every one. I have implemented a single choice dialog this way:

On my strings.xml I defined the following array and strings:

[syntax="xml"]
<string name="titulo_pedir_tel">Ingresar nmero telefnico</string>
<string name="accion_selecionar">Aceptar</string>
<string name="accion_cancelar">Cancelar</string>
<!-- Opciones del menu de envio -->
<string-array name="select_dialog_items">
<item>Enviar va SMS</item>
<item>Enviar va email</item>
</string-array>
[/syntax]

and my single choice dialog is defined as it follows in my main.class

[syntax="java"]
Builder builder = new AlertDialog.Builder(this);
builder.setIcon(R.drawable.alert_dialog_icon);
builder.setTitle(R.string.seleccionar_forma_envio);
builder.setSingleChoiceItems(R.array.select_dialog_items, 0, new
DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog, int whichButton)
{
/* User clicked on a radio button do some stuff */
}
});
builder.setPositiveButton(R.string.accion_selecionar, new
DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog, int whichButton)
{
/* User clicked Yes so do some stuff */
}
});
builder.setNegativeButton(R.string.accion_cancelar, new
DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog, int whichButton)
{
/* User clicked No so do some stuff */
}
});
builder.show();
[/syntax]

The idea of this is that the user of my app selects a item of the
array an base of the selection to realize some action. My problem is
that I don't know how to recognize which item of the array the user
selected. How can I solve my problem? Thanks in advance.

Regards
--~--~---------~--~----~------------~-------~--~----~

3. file transfer using usb to windows pc from android kernel

4. How can I launch the built-in picture viewer app from my app?

5. Gesture detection using touchscreen and accelerometer

6. How can i access one activity from another in the same package?

7. How to read dumpsys alarm?