network redirection problem

by Asif k » Thu, 05 Mar 2009 21:37:51 GMT


Sponsored Links
 Hi all,

   I want  to configure  IP address of the emulator and to set the
network redirection ports for the socket communication.

   For that I had followed the steps as per android.developer.com/
emulator guides. But could not succeed in that.
   Can you plz tell me what will be the default IP of the emulator.

I got the error while executing followin command,

redir add tcp:4444:4444

Plz help. Thanks in advance
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Ubuntu Compile/Run Error - Netbeans

I am using Netbeans 6.5 on 8.04.  $JAVA_HOME = /usr/lib/jvm/java-1.5.0-
sun.

When I run the "HelloWorld" Android application I get the following
error:

init:
deps-jar:
Compiling 1 source file to /home/cwiles/NetBeansProjects/
AndroidApplication1/build/classes
compile:
Created dir: /home/cwiles/NetBeansProjects/AndroidApplication1/dist
Updating jar: /home/cwiles/NetBeansProjects/AndroidApplication1/dist/
AndroidApplication1.apk_
Updating zip: /home/cwiles/NetBeansProjects/AndroidApplication1/dist/
AndroidApplication1.apk_
Using keystore: /home/cwiles/.android/debug.keystore
Deleting: /home/cwiles/NetBeansProjects/AndroidApplication1/dist/
AndroidApplication1.apk_
jar:
Result: 255
java.io.IOException: Cannot run program "/home/cwiles/Java":
java.io.IOException: error=2, No such file or directory
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
        at java.lang.Runtime.exec(Runtime.java:593)
        at java.lang.Runtime.exec(Runtime.java:431)
        at java.lang.Runtime.exec(Runtime.java:328)
        at org.netbeans.modules.android.ant.Util.adb(Util.java:44)
        at
org.netbeans.modules.android.ant.AdbPackageManagerWait.execute
(AdbPackageManagerWait.java:59)
        at org.apache.tools.ant.UnknownElement.execute
(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor63.invoke(Unknown
Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute
(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets
(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:
1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets
(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:
1189)
        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run
(BridgeImpl.java:273)
        at org.apache.tools.ant.module.run.TargetExecutor.run
(TargetExecutor.java:499)
        at org.netbeans.core.execution.RunClassThread.run
(RunClassThread.java:151)
Caused by: java.io.IOException: java.io.IOException: error=2, No such
file or directory
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
        at java.lang.ProcessImpl.start(ProcessImpl.java:65)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
        ... 20 more
BUILD FAILED (total time: 3 seconds)

The emulator fires up successfully, but obviously my application does
not.  I use the same setup/configuration on my mac and everything
works fine.

Thoughts?

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

2. javax.mail.internet.InternetAddress cannot be found?

Hello everyone,
I am using Eclipse to develop and application for the android
platform.
When I try to tell it "import javax.mail.internet.InternetAddress", it
does not recognize it.
Does anyone know why?

Thanks,
Noam.
--~--~---------~--~----~------------~-------~--~----~

3. Using ZoomControls with ImageView in Android

4. How to make surfaceview insensitive to touch Events

5. toolchain to build kernel

6. How to explicitly launch the system's Home application by code?

7. Turning GPS ON/OFF