broderickwang / droiddraw

Automatically exported from code.google.com/p/droiddraw
0 stars 0 forks source link

AnDroidDraw not accepting DroidDraw Send GUI to device XML layout data #173

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What version of the product are you using? On what operating system?

AnDroidDraw 1.0 on HTC HD2 Android Froyo 2.2
DroidDraw on Windows XP SP3

What steps will reproduce the problem?

1. Connect Android device to PC via USB
2. Ensure ADB sees device (adb devices, adb shell, etc)
3. Run adb forward tcp:6100 tcp:7100
4. Load AnDroidDraw.apk file and start app on Android
5. AnDroidDraw has Accept Connections checked
6. AnDroidDraw displays Toast message "Layout Server Started"
5. Start DroidDraw on PC and create any layout
6. Click Generate, then Project > Send GUI to Device

What is the expected output? 

Expect DroidDraw to say Successfully Uploaded layout
Expect AnDroidDraw to show XML layout/text in its edit text box.

What do you see instead?

Droid draw throws and error saying "Upload Failed. Is Android running?"
AnDroidDraw shows NO XML text in its Layout XML window

Please provide any additional information below.

Imported AnDroidDraw Project into Eclipse, but it wouldn't compile by default

Needed to do following to get it at least to compile:

add default.properties file to AnDroidDraw project with one line:
target=android-8

replaced the "con" line in .classpath with:
<classpathentry kind="con" 
path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>

Once it compiled in Eclipse, deployed it to phone and opened DDMS tool and 
LogCat and noted the following error when starting AnDroidDraw:

WARN/System.err(3645): java.net.SocketException: Permission denied
WARN/System.err(3645):     at 
org.apache.harmony.luni.platform.OSNetworkSystem.createServerStreamSocketImpl(Na
tive Method)
WARN/System.err(3645):     at 
org.apache.harmony.luni.platform.OSNetworkSystem.createServerStreamSocket(OSNetw
orkSystem.java:170)
WARN/System.err(3645):     at 
org.apache.harmony.luni.net.PlainServerSocketImpl.create(PlainServerSocketImpl.j
ava:45)
WARN/System.err(3645):     at 
java.net.ServerSocket.<init>(ServerSocket.java:135)
WARN/System.err(3645):     at java.net.ServerSocket.<init>(ServerSocket.java:89)
WARN/System.err(3645):     at 
org.droiddraw.android.NetworkService.run(NetworkService.java:45)
WARN/System.err(3645):     at java.lang.Thread.run(Thread.java:1096)

Fix:

Edit AndroidManifest.xml and change:

<permission android:name="android.permission.INTERNET"/>

to

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

Recompile and deploy and all works as expected.  Great app! Thanks Brendan.

andyz - K1RA
http://www.k1ra.us/

Original issue reported on code.google.com by andy.zwi...@gmail.com on 29 Sep 2010 at 9:33

GoogleCodeExporter commented 9 years ago
Hi,

the complete solution was already posted
https://code.google.com/p/droiddraw/issues/detail?id=93#c11

cheers
Frank

Original comment by Dietrich.Frank@gmail.com on 30 Sep 2010 at 6:54

GoogleCodeExporter commented 9 years ago
Fix in SVN and new binary uploaded.

Original comment by brendan....@gmail.com on 12 Oct 2010 at 4:20