kodaligopi547 / droiddraw

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

[upload failed] set GUI to Device #93

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run the AnDroidDarw in the emulator and it's ok because I see the
message"Layout Server Started"
2. run DroidDraw and then execute "set GUI to Device" such as the step two
in the http://www.droiddraw.org/androiddraw.html
3. Finally, it doesn't work and show "Upload failed : Is AnDroidDraw running?"

What is the expected output? What do you see instead?
like the step three where it is in the
http://www.droiddraw.org/androiddraw.html
I see the Upload failed : Is AnDroidDraw running?

What version of the product are you using? On what operating system?
Device : android emulator 1.5
Droiddraw :  droiddraw-r1b12

Please provide any additional information below.

Original issue reported on code.google.com by MorrisCh...@gmail.com on 10 Feb 2009 at 7:41

GoogleCodeExporter commented 9 years ago
I am also facing the same problem.Does droiddraw works for sdk1.5

Original comment by suchi.bh...@gmail.com on 15 Jul 2009 at 4:59

GoogleCodeExporter commented 9 years ago
I confronted with this problem today, I still can't find the solution. Is it 
really 
the problem of sdk version?

Original comment by keamou...@gmail.com on 3 Aug 2009 at 11:21

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I have this issue

Original comment by qinjiana...@gmail.com on 29 Dec 2009 at 3:39

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Have anyone found the solution?
I am testing with actula device and when I run the  AnDroidDraw then also not 
able 
to see the option as "Accept Connection".

Original comment by dewangan...@gmail.com on 18 Feb 2010 at 4:07

GoogleCodeExporter commented 9 years ago
me too only am testing with actual device

Original comment by mail...@gmail.com on 13 Jun 2010 at 5:42

GoogleCodeExporter commented 9 years ago
I'm sure it's not a bug in the system but if someone cool could reply with how 
to properly configure this to connect to AnDroidDraw I'd appreciate it.

I am using 
adb forward tcp:6100 tcp:7100

Original comment by mail...@gmail.com on 13 Jun 2010 at 6:13

GoogleCodeExporter commented 9 years ago
same problem here,

using my HTC Hero with Android 2.1

Original comment by Ghangste...@gmail.com on 13 Jul 2010 at 12:51

GoogleCodeExporter commented 9 years ago
Same here I am runing 2.1 on an Evo.  I have ports forwarded and Accept 
Connections checked.  I tried installing from the phone and using ADB install 
and port forwarding.

Original comment by someonei...@gmail.com on 19 Jul 2010 at 8:43

GoogleCodeExporter commented 9 years ago
Hi,

for all which want to use the AnDroidDraw in the Android emulator on their 
Android device.
The APK linked on this page http://www.droiddraw.org/androiddraw.html seems to 
not working
in Android >= 1.1.
Find below my HOWTO to compile AnDroidDraw from source. Some change directories 
are not
really necessary, they are mentioned for your convenience. So you always now in 
which
directory the command must be executed.

# prerequisite
- installed and configured Android SDK 1.5
- build tool "ant"
- subversion client "svn"

# step zero --- create a working directory
mk ~/android

# step one --- get the sources
cd ~/android
svn checkout http://droiddraw.googlecode.com/svn/trunk/ droiddraw-read-only

# step two --- change the Android manifest
cd ~/android/droiddraw-read-only/AnDroidDraw
# edit file AndroidManifest.xml
change  <permission android:name="android.permission.INTERNET"/>
into    <uses-permission android:name="android.permission.INTERNET"/>

# step thre --- update project settings for Android >= 1.5
cd ~/android/droiddraw-read-only/AnDroidDraw
echo "target=Google Inc.:Google APIs:3" > default.properties
android update project --path .

# step four --- remove stale file, will be regenerated
cd ~/android/droiddraw-read-only/AnDroidDraw
rm ./src/org/droiddraw/android/NetworkInterface.java

# step five --- generate keystore, we need it later to sign the apk
# - provide a password on your needs
# - all questions can be answered by pressing RETURN or you provide the 
information you need
# - the last question, if all values are correct, you must answer with 'yes' 
(without the quotes)
cd ~/android/droiddraw-read-only/AnDroidDraw
keytool -genkey -v -keystore android.keystore -alias AnDroidDraw -keyalg RSA 
-validity 10000

# step six --- compile the source and create the apk
cd ~/android/droiddraw-read-only/AnDroidDraw
ant release

# step seven --- sign the apk package
cd ~/android/droiddraw-read-only/AnDroidDraw
jarsigner -verbose -keystore android.keystore -storepass password 
bin/AnDroidDraw-unsigned.apk AnDroidDraw

# step eight --- install the APK
# if you have only one device (one running emulator/connected phone)
cd ~/android/droiddraw-read-only/AnDroidDraw
adb install -r bin/AnDroidDraw-unsigned.apk
# if you have more then one running emulator/connected device, you must specify 
the destination device id
cd ~/android/droiddraw-read-only/AnDroidDraw
adb devices
adb -s your_device_id install -r bin/AnDroidDraw-unsigned.apk

# step nine --- install port forwarding
adb forward tcp:6100 tcp:7100

# step ten --- continue from step one on description at 
http://www.droiddraw.org/androiddraw.html

happy hacking
Frank

Original comment by Dietrich.Frank@gmail.com on 24 Aug 2010 at 9:08

Attachments:

GoogleCodeExporter commented 9 years ago
Guess you get what you pay for. I have not gotten androiddraw to work at all. 
Nexus One (haven't tried androiddraw in the emulator and don't care to).
Just noticed that this is tagged as medium priority. The thing doesn't work at 
all for at least some of us. Most would call that a high priority.

Error is the same as the original post:

Upload failed : Is AnDroidDraw running

Original comment by markboet...@gmail.com on 8 Sep 2010 at 6:22

GoogleCodeExporter commented 9 years ago
Hi,

could you check which permissions are granted to your installed AnDroidDraw on 
your phone? 
If it has not the permission android.permission.INTERNET (Allows applications 
to open network sockets), then you might already missed something from the 
HOWTO above. 

cheers
Frank

Original comment by Dietrich.Frank@gmail.com on 9 Sep 2010 at 6:00

GoogleCodeExporter commented 9 years ago
Hi,

Frank's solution resolved the issue perfectly in my case, so thank you very 
much for that. Some additional notes:

1. If you already have the (non-working) app on your phone, you need to 
uninstall it or you will get errors indicating the certificate does not match.

2. The port forwarding step is required, even if you've already done it in the 
past. Also, if you disconnect the phone and then reconnect it, you'll need to 
install port forwarding again.

Original comment by sinister...@gmail.com on 14 Sep 2010 at 5:24

GoogleCodeExporter commented 9 years ago
This should now work, I have fixed the manifest in SVN and uploaded a new APK.

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