Howot insert icons, styling text in TextView

by Shadakshari Hiremath » Wed, 29 Apr 2009 14:26:13 GMT

Sponsored Links
 Hello Android,

I am trying to draw icon followed by styled text1 followed by styled
text2 followed by styled text3 as shown below using TextView. Text3
after wrapping should start drawing text below the icon. So, we
thought its better to insert the icon inside TextView. Style selective
text inside TextView with different size and color. Please let us know
if this is possible using TextView and methods which provide this
feature? Also let us know if there is a better way to do it.

ICON, normal italic red text, big bold blue text, small italic green text wra-
pped so that text is drawn below the ICON too.



Other Threads

1. Design approach - Single/multiple service


I need to create an application which has got a mina controller module
and 2-3 sub-modules which should run as seperate threads.

The entire application needs to be run as a background service.

The job of main controller module(main controller service) is to start/
stop other sub-modules and sends messages to these sub-modules. These
sub-modules also share data among themselves. Note: There is no
Activity . the main controller service will start after boot complete.

I'm considering two options

1) Run each of these sub-modules as seperate "service" and each will
create a new thread for its execution i.e main controller service will
call startService() for each of the sub-modules which would inturn
create a new thread for its execution.

2) Have a single controller service which creates 2-3 threads which
corrsponds to the sub modules.

Once main controller service is stopped I want to stop all other sub-
modules. I prefer approach 2.

In general, is there any design guidelines for building an android
application which uses background services.

Your comments are welcome


2. Cupcake: what capabilities are we losing?

After looking at the "roadmap" closely, there's a lot of good stuff in
there.  But I'm concerned over this tibit listed as a bugfix:
"A number of settings in android.provider.Settings.System were moved
to Android.provider.Settings.Secure. Only system software can modify
these settings ... additionally, a new permission,
WRITE_SECURE_SETTINGS, is required to access these settings".

This "bugfix" has the potential to cripple any settings manager
application currently listed in the AndroidMarket.  This includes:
ToggleSettings, aSettings, usefulSwitchers, toggleAir, etc.  Some of
these developers have download counts in the tens of thousands.  This
seems to be an elimination of stable (and documented) functionality -
not really fixing bugs.

Does anyone know which system parameters will no longer be settable -
or is the entire android.provider.Settings.System class to become read-
only?  Are these capabilities reimplemented in a different public
library that is not obvious by reviewing the roadmap?

Also, will "Support [for] third party updates of system applications"
allow installation from user selected sources (can we distribute
system applications through the AndroidMarket or our own sites) - or
is this a euphemism for a higher-tier of applications that public
developers are not able to produce?


3. getting unknown ioctl in driver

4. Only make notification sound when I receive a text msg, not emails

5. test automation for mobile phone testing?

6. Is there a way to change the website entered on registration

7. Anatomy of receiving a call