Issues with this group - bug in google groups

by Chris Stratton » Fri, 04 Sep 2009 22:38:52 GMT


Sponsored Links
 This does appear to be a bug in Google's groups system.   Following
your instructions results in attempting to load this URL, which finds
no results




Other Threads

1. Floating point sign. Comma "," or "." for France onscreen keyboard - question.

 Evgeny,

I think this might help:

http://developer.android.com/reference/java/text/NumberFormat.html

This class is locale-aware.

-- Kostya

17.10.2010 21:34, EvgenyV :
Hi all, I'm using EditText with following Input type properties: number| numberSigned|numberDecimal|phone. The locale is "fr" which France settings. The question is: should I expect comma "," as floating number sign instead "." using for English locale. Thanks in advance, Evgeny
-- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com --

2. problem with updating of TextView from different thread

I have an Activity with TextView that I am trying to update from
different thread. To do that i pass TextView to the "updater" thread
onCreate(..)
..
txtStatus = (TextView)this.findViewById(R.id.status);
// start udp server as separate thread and pass TextView to that
thread to print text messages from udp socket

new Thread(new TelemetryServer(txtStatus)).start();
//see thread code below


As a result i have thread error, even though "updater" is
synchronized:
ERROR/UDP(282): android.view.ViewRoot$CalledFromWrongThreadException:
Only the original thread that created a view hierarchy can touch its
views.
Any other ideas how to solve this problem?
Tnank you,
-V


public class TelemetryServer implements Runnable {
        public static final String SERVERIP = "127.0.0.1"; // 'Within' the
emulator!
        public static final int SERVERPORT = 2222;
        private TextView m_view;
        private DatagramSocket socket;
        private boolean loop;
        private synchronized void update( String msg)
        {
                m_view.append("\n");
                m_view.append(msg);
        }

        public TelemetryServer(TextView _view)
        {
                m_view = _view;
                loop = true;
        }
        public void run() {
                try {
                                InetAddress serverAddr = 
InetAddress.getByName(SERVERIP);
                                Log.d("UDP", "S: Connecting...");

                                socket = new DatagramSocket(SERVERPORT,
                                                serverAddr);
                                Log.i("TelemetryServer", "started");
                                while(loop) {
                                        byte[] buf = new byte[1024];
                                        DatagramPacket packet = new 
DatagramPacket(buf, buf.length);
                                        socket.receive(packet);
                                        update(new String(packet.getData()));
                                }

                        } catch (Exception e) {

                                Log.e("UDP", "S: Error", e);

                        } // end of try
                        Log.d("UDP", "S: Done.");
                        socket.close();
        }
}


-- 

3. FW: p--)

4. RIL/GSM Parameter

5. Android RIL / GSM Parameter

6. How to wrap multi APK into one Installation package

7. SMTP Features - Android - API 3