07.01.2013 Views

David Defour - Université de Perpignan

David Defour - Université de Perpignan

David Defour - Université de Perpignan

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Changing the Language<br />

Programmatically<br />

• Letting user change Locale<br />

– Pros<br />

• Expected/recommen<strong>de</strong>d Android approach<br />

• All localization works gracefully<br />

– Cons<br />

• Can only use languages that <strong>de</strong>vice manufacturer supports for the<br />

entire OS<br />

• Requires user to take several steps they might not know<br />

• Changing Locale in your co<strong>de</strong><br />

– Pros<br />

• Can use any language you want<br />

• Can let user set language in app with simple button<br />

– Cons<br />

• Not expected/recommen<strong>de</strong>d approach<br />

• Settings do not live across app restarts (including rotations!), so<br />

requires you to remember and reuse it.<br />

471<br />

jeudi 26 janvier 12

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!