How to display Smileys over TextView using ImageSpan in android

by Mannar » Fri, 13 Mar 2009 17:46:03 GMT

Sponsored Links
i am implementing small messenger application,
In the chat conversation window i want to display the smileys along
with text in the textView.
Can anybody help for me regarding this issue.


Other Threads

1. setUserAgentString not affecting browser user agent

i wouldn't necessarily advise replacing the user agent string 
completely, as other pieces in the chain might become confused. it's 
also possible that at request time WebKit is rejecting your string 
and sending the default one.

if i'm reading it correctly, the standard for user agent strings specifies space-separated tokens. hence i get the current user agent string, then append a space and my keyword. my rails app picks up the key and does the right thing. works fine for me! hth
I am working on an application where I need to change the UserAgent string of the browser: WebView webview = new WebView(this); String newUA = "Foo-Bar/"; webview.getSettings().setUserAgentString(newUA); setContentView(webview); When I call: webview.getSettings().getUserAgentString() the application returns "Foo-Bar/" as the UserAgent, but when I load a url that specifically tells me the User Agent String: webview.loadUrl(""); The browser is announcing itself with the default UserAgent string. Any ideas? Thanks Doug --

2. VerifyError - how can I solve this error?


I am analyzing my game with flurry-analytics and some people, who play
my game, receive the Exception java.lang.VerifyError in my Highscore-

What do I have to do to solve this error?

Here is the quellcode of my Highscore-Activity:


//all the imports.....

public class AHighscore extends Activity {

        private Highscore highscore;

        private AbsoluteLayout al_highscore;
        private TableLayout tl_highscore;
        private TextView tv_names[];
        private TextView tv_score[];
        private TableRow tr_tablerows[];

        private EditText tv_winnername;
        private int winnerpos;

        public void onStart()
           FlurryAgent.onStartSession(this, Global.FlurryId);

        public void onStop()

        public void onCreate(Bundle savedInstanceState) {

                                WindowManager.LayoutParams.FLAG_FULLSCREEN );


                ImageButton buttonback = (ImageButton) findViewById
                buttonback.setOnClickListener(new OnClickListener() {
                        public void onClick(View v) {

//some other stuff ......



3. Nexus One rooted, solution update, maybe;-)

4. Strange platform error in Droid(2.0.1), Hero(1.5)

5. What is the proper result for Handler.Callback.handleMessage() ?

6. Updating a pre-installed application

7. How to use a Live Wallpaper in an Activity?