How to save EditText styles

by loty » Wed, 19 Nov 2008 12:16:43 GMT

Sponsored Links
 I have an EditText where users can set text to bold, italic, etc but I
can't figure out how to save that text with style in db. I use getText
but that only returns text and no style info.
Any help is appreciated.

How to save EditText styles

by Dianne Hackbod » Wed, 19 Nov 2008 13:27:03 GMT

 We don't currently have a general flat rich text format for android.  You
can use android.text.TextUtils.htmlEncode and android.text.Html for
converting to/from HTML, but those may not be able to represent all of the
style information in your text view.

Dianne Hackborn


Sponsored Links

Other Threads

1. Help with saving data.

Hi all,

First of all I'm new to both java and android, so please excuse me if
I'm asking foolish questions.

I have created an app, and am looking to save some data to either a
raw file or an xml file. I see plenty of information about reading
data from these kinds of files (openRawResource(id) etc.) but very
little about writing to them.

Could anyone point me in the direction of a tutorial or some sample
code/material that includes saving to either an xml or raw file?

Any help is greatly appreciated..




2. Question about Calender

Dear: Android Developers

I have question about the use of Calender in the phone, when I have a
event go on, I would want it to be add in to the Calender so it could
remind me later on.  But the reminder time set are alway change by
itself, and also I wonder once the event end, I want to have the
record of what I did for that day, but it wont go away at the first
screen,  it is not like the calender I use that i could just go in to
the old day and see what i had did, can you give me a intration of
using it please.  Thank You

If passible, please reply me by [EMAIL PROTECTED]     Thank You

From:  Eric Lam


3. Emulate binary port SMS?

4. Interested in LBS & AR? Android Developer Needed

5. Accelerometer sensitivity: very very high?

6. Check for new version of applications

7. How can I setup my development environment to take picture via android camera