Is there any way to use the socket port lower than 1024 (eg. 223) in Android platform

by MrSnowflake » Mon, 16 Mar 2009 02:46:34 GMT


Sponsored Links
 Unless you are root you can't use ports < 1024 on Linux. And actually
you shouldn't as they are all pre defined.

On 14 mrt, 00:52, "sharon....@gmail.com" <sharon.h...@gmail.com>


--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. How to set clickable areas of a single image?

Hi All

I have one image (it's a guitar fretboard), and I want to identify/act
on touch of events when different parts of the image are touched/
selected.

I can set the whole image to be clickable with setClickOnListener of
ImageView.

Is there a way to either:

1. Identify the coordinates of which point has been touched?
2. Define sub areas on the image and setClickOnListener for those
areas?

Otherwise, I'm thinking I must implement a GridView and dissect my
image into individual images and arrange them so they look like one
large image.

Thanks for any help!
Chris

--~--~---------~--~----~------------~-------~--~----~

2. Async thread aborted after catching (all?) exceptions

I have the following code...

        @Override
        protected Void doInBackground(Void... unused) {
                Log.i(TAG, "invoking background thread");

                        try {
                                mClient.get("http://thishostdoesntexist");
                        } catch (RuntimeException e) {
                                mActivity.onTaskError(e.getMessage());
                        } catch (HttpResponseException e) {
                                mActivity.onTaskError(e.getMessage());
                        } catch (ClientProtocolException e) {
                                mActivity.onTaskError(e.getMessage());
                        } catch (UnknownHostException e) {
                                mActivity.onTaskError(e.getMessage());
                        } catch (IOException e) {
                                mActivity.onTaskError(e.getMessage());
                        }

                Log.i(TAG, "exiting background thread");
                return null;
        }

My mClient get method is a simple HttpClient execute with an output
buffer to read the input stream, so it's very trivial. Everytime I
execute this task UnknownHostException will be triggered which will in
turn call onTaskError on my currect Activity, but I still get a
RuntimeException, but I don't see why. Maybe it's because it's late
and i've done about 12 hours of writing code so it's something simple
I just can't see?

What should I be looking for?

Thanks in advance

-- 

3. "Discard" button in Compose screen of Google Mail

4. schemas.android.com site down?

5. Analytics for Android Apps - issue getting the SDK

6. Market update, showing horizontal icon list for apps per group

7. How native Gallery is reading bigger images!