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 pass a String from an activity to a service



Attach it as an extra to the Intent being used with either
startService() or bindService(). The service can then access the extra
via the Intent passed to onStart() or onBind(), respectively.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

-- 

2. do not work RECEIVE_BOOT_COMPLETED in emulator?

why don't work RECEIVE_BOOT_COMPLETED in emulator?



// AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="mint.TestService2"
      android:versionCode="1"
      android:versionName="1.0">

        <uses-permission
android:name="android.permission.RECEIVE_BOOT_COMPLETED" />

        <receiver android:name=".MyReceiver"
        android:enabled="true">
                <intent-filter>
                        <action 
android:name="android.intent.action.BOOT_COMPLETED" />
                        <category 
android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
        </receiver>
</manifest>




// MyReceiver.java
package mint.TestService2;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;


public class MyReceiver extends BroadcastReceiver
{
        private static  final String TAG  = "===============";

        @Override
        public void onReceive(Context context, Intent intent)
        {
                Log.e(TAG , "**************************");
                Log.e(TAG,  "**************************");
                Log.e(TAG,  "**************************");
        }
}

-- 

3. Developemtn on LG Ally?

4. Learning Porting

5. IllegalArgumentException calling Surface.unlockCanvasAndPost ?

6. Communication between service and activity in Android

7. Application that refershese imgView with image from internet