yashsingh1/xdaforums huggingface dataset:
[Nexus One Themes and Apps] davkav:
working well on Ubuntu Mint and HTC Desire with DJDroids froyo 2.2 ROM.

It does lose connection when the device goes to sleep but that is the phone software rather than the Droid2Desk app.

I remember seeing a tool to keep the wifi 'alive' when the device goes into sleep. Ill try dig it out and report back.

Keep up the good work BootSiR, loving the application!
[Nexus One Themes and Apps] BootsSiR:
Are you able to connect to the device when the screen is off?
[Nexus One Themes and Apps] martin0285:
Wouldn't the problem with it disconnecting shortly after screen goes out be caused by the fact you stated "App on phone must run in foreground for now".... Wouldn't this mean once the phone "sleeps" even tho WiFi is on and connected, the app/process has been stopped by the android scheduler?? The app would require a wakelock, does it? (Checked permissions and it appears it doesn't)

Maybe way off but that's kinda of my feeling... Please correct if I am wrong!!

Edit: Ok, I check out the app. I was able to re-connect after it got disconnected when screen shuts-off (about 10 seconds exactly, every time even upon reconnecting)... As stated previously, camera mode is a little buggy but thats to be expected. Other wise, this app is looking awesome!! Whats the word on when this thing gets released and pricing?? Any benny's/love for us XDA alpha testers?? HEHE :D:D:D

PS, 5 staring this thread!!
[Nexus One Themes and Apps] McFroger3:
I keep getting this error.

It will recognize the device, but won't connect even with my correct password.

Can anyone help me out?
[Nexus One Themes and Apps] BootsSiR:
The app only has to be the foreground application to use Camera mode. The service it starts still runs regardless so everything else should work fine in the background and/or with the screen off. I do believe I'll need to implement a WiFi lock though.

So when the screen is off can you connect without turning it back on?
[Nexus One Themes and Apps] BootsSiR:
That is the "generic" error you'll see if you can't connect. Basically, the application did not receive a response when attempting to talk to your phone. Out of curiosity, reinstall the phone application and see if that fixes it. Let me know.
[Nexus One Themes and Apps] adobrakic:
cannot install on android 1.6
[Nexus One Themes and Apps] martin0285:
Yes sir no problems.... want a logcat of the disconnect??

EDIT: Seems like when plugged in via USB (for logcats) it doesn't disconnect..... Even unplugged now... HAHAHA Wiiiiiierd!!
[Nexus One Themes and Apps] McFroger3:
Still no dice. Keeps popping up with the error.
[Nexus One Themes and Apps] BootsSiR:
Requires 2.0+
[Nexus One Themes and Apps] BootsSiR:
I'm going to put up a new build (hopefully tonight) with some of the debug logging enabled to help troubleshoot these issues a bit better.

If it sees your device it means WiFi is active. Do you have a strong WiFi signal?
[Nexus One Themes and Apps] martin0285:
Hey Boots, heres the logcat of the disconnect... Took long this time then the predictable ten seconds previously.... When I went to reconnect it told me "wrong password ect." once... Tried again, connected....

Logcat ---> http://pastebin.com/Qtav3FwZ
[Nexus One Themes and Apps] McFroger3:
Yup, I'm sitting next to my router.

I'm going to see if the CM nightly's are the problem, going to flash CM6.
[Nexus One Themes and Apps] martin0285:
I'm on the latest nightly w/o problems....
[Nexus One Themes and Apps] BootsSiR:
Thanks for that. I see where an error is possible. I'll fix that up :D
[Nexus One Themes and Apps] BootsSiR:
hmmmm, very strange. You have a similar setup to a few people on here. Let me get some more debug logging enabled in the next build and we'll see if we can figure out what's going on with your setup.
[Nexus One Themes and Apps] martin0285:
Just noticed your from the NovaS!! I'm in Maine man!! App has serious potential man!!
[Nexus One Themes and Apps] daveid:
Just so you know when stopping the service and closing (back button) the program I get a FC with the following outputted to my log. If I stop the service and press home to exit it does not FC...

09-15 09:57:21.518: WARN/dalvikvm(2179): threadid=1: thread exiting with uncaught exception (group=0x4001d820)
09-15 09:57:21.518: ERROR/AndroidRuntime(2179): FATAL EXCEPTION: main
09-15 09:57:21.518: ERROR/AndroidRuntime(2179): java.lang.RuntimeException: Unable to destroy activity {com.boots.droid2desk/com.boots.droid2desk.Droid2Desk}: java.lang.IllegalArgumentException: Service not registered: com.boots.droid2desk.i@460f9590
09-15 09:57:21.518: ERROR/AndroidRuntime(2179): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3655)
09-15 09:57:21.518: ERROR/AndroidRuntime(2179): at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3673)
09-15 09:57:21.518: ERROR/AndroidRuntime(2179): at android.app.ActivityThread.access$2900(ActivityThread.java:125)
09-15 09:57:21.518: ERROR/AndroidRuntime(2179): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
09-15 09:57:21.518: ERROR/AndroidRuntime(2179): at android.os.Handler.dispatchMessage(Handler.java:99)
09-15 09:57:21.518: ERROR/AndroidRuntime(2179): at android.os.Looper.loop(Looper.java:123)
09-15 09:57:21.518: ERROR/AndroidRuntime(2179): at android.app.ActivityThread.main(ActivityThread.java:4627)
09-15 09:57:21.518: ERROR/AndroidRuntime(2179): at java.lang.reflect.Method.invokeNative(Native Method)
09-15 09:57:21.518: ERROR/AndroidRuntime(2179): at java.lang.reflect.Method.invoke(Method.java:521)
09-15 09:57:21.518: ERROR/AndroidRuntime(2179): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
09-15 09:57:21.518: ERROR/AndroidRuntime(2179): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
09-15 09:57:21.518: ERROR/AndroidRuntime(2179): at dalvik.system.NativeStart.main(Native Method)
09-15 09:57:21.518: ERROR/AndroidRuntime(2179): Caused by: java.lang.IllegalArgumentException: Service not registered: com.boots.droid2desk.i@460f9590
09-15 09:57:21.518: ERROR/AndroidRuntime(2179): at android.app.ActivityThread$PackageInfo.forgetServiceDispatcher(ActivityThread.java:1074)
09-15 09:57:21.518: ERROR/AndroidRuntime(2179): at android.app.ContextImpl.unbindService(ContextImpl.java:886)
09-15 09:57:21.518: ERROR/AndroidRuntime(2179): at android.content.ContextWrapper.unbindService(ContextWrapper.java:352)
09-15 09:57:21.518: ERROR/AndroidRuntime(2179): at com.boots.droid2desk.Droid2Desk.onDestroy(Unknown Source)
09-15 09:57:21.518: ERROR/AndroidRuntime(2179): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3642)
09-15 09:57:21.518: ERROR/AndroidRuntime(2179): ... 11 more

Great initial release!!

Also, feature request here, how about the ability to send a long SMS message? Thanks!
[Nexus One Themes and Apps] BootsSiR:
Good find! I run a code obfuscater on the project before I release it to protect my code from reverse engineering and that's an unwanted side effect. I'll fix that up.

By long SMS, you mean just type away, hit send and it automatically splits it up into 160 char pieces and sends them?
[Nexus One Themes and Apps] daveid:
I mean no splitting, one long message.
[Nexus One Themes and Apps] BootsSiR:
SMS messages are limited to 160 characters.
[Nexus One Themes and Apps] santiemanuel:
Hi, I'm running FRG22, I instal the app, then run it, and it works, same in PC, windows 7, no problems running the jar, but it doenst do anything. No devices available is always, any hint??
[Nexus One Themes and Apps] BootsSiR:
Do you have a WiFi connection? Does your router allow UDP broadcasts?
[Nexus One Themes and Apps] Kzam:
Hey,

I got a problem.

I can find my phone in java thing on the computer. But I can not log on. A messege saying " Failed to connect. Please make sure you have the password correct and/or you are using the proper verison of Droid2Desk in the phone and try again."

And no, I'm not typing in the wrong password.

I have tried on w7 32-bit and w7 64-bit.

I have a Nexus One with the original froyo running (not rooted).
[Nexus One Themes and Apps] BootsSiR:
Strong wifi signal? Screen on or off when you try to connect?
[Nexus One Themes and Apps] swiftcheeze:
every time i try to run the .jar file, i keep getting a error, "failed to load notification configuration. please correct notifications.xml and try again"

edit: this is on ubuntu 10.04
[Nexus One Themes and Apps] Kzam:
Yes and the screen is on.

I guess that I dont have to open a port in my router because I can find my device?
[Nexus One Themes and Apps] tskramp:
I was able to no problem, but it would disconnect shortly afterwards.
[Nexus One Themes and Apps] michaelo147:
awesome i have no problems yet, but it recognized my phone instantly and the only problem i have is just like everyone elses, with wifi shutting off when the screen is off, but i am very much enjoying....

very good job dude, very good
[Nexus One Themes and Apps] zipredictive:
truly awesome. Works good on n1 cyanogen nightly and windows 7 !

keep up with the good work!
[Nexus One Themes and Apps] BootsSiR:
Yeah you don't have to do anything on your router. Try the next build with some more logging in it and we'll straighten it out.
[Nexus One Themes and Apps] BootsSiR:
If you see your device listed but can't connect to it and you know how to get your phones IP address, you can try to telnet to port 5991 and see if it answers.
[Nexus One Themes and Apps] CrozB:
NICE!!!

Nice work!

Working great on EVO.

Keep up the good work!
[Nexus One Themes and Apps] j3di:
Had to try it! Works great on my Nexus 1 running latest CM Nightly. My Laptop is running XP.

Thanks!
[Nexus One Themes and Apps] southeastbeast:
Awesome app here!

Something I noticed though. The frequent disconnects are because after sending a text message the default button highlighted is "disconnect" and if you hit enter to send your text message it sends it then hits "disconnect." If you change the focus button to "send" or "home" it will alleviate this problem.

Keep up the good work! I'd donate for this >;]

Edit1:

Also, people having problems make sure your computer firewall isn't being a nazi an blocking the port this app uses (515xx range I believe)

Edit2:

Also noticed that if you send one message then type another one, when the focus goes to "disconnect" space bar will also invoke a disconnect.

Cheers!
[Nexus One Themes and Apps] yamaford:
Any chance on a usb version? If not I cant use it for another 2 weeks.
[Nexus One Themes and Apps] BootsSiR:
Thanks for the feedback!

No chance of usb support in the next two weeks.
[Nexus One Themes and Apps] wraku:
works great with my nexus with CM 6 as long as it is conected via usb.

When disconect from usb prog runs about 1 or 2 minutes.

Great start

Thanks !!!:)
[Nexus One Themes and Apps] BootsSiR:
fixed.... new build coming in a second with a minor change.
[Nexus One Themes and Apps] BootsSiR:
http://www.droid2desk.com/builds/1.00-R64/

Minor change in this build - on the bottom of the Android application next to the version number it will now show the WiFi ip of the device. If your device doesn't show up in the desktop application or you are unable to connect to it from the desktop application, go to a command prompt / terminal and try and ping your devices ip address:

ping [insert device ip address here]

If you can ping but still can't connect to it from the desktop application you can try:

telnet [insert device ip address here] 5991

This will test whether or not the Android service is properly listening for connections.
[Nexus One Themes and Apps] daveid:
Yes, but most carriers these days support long sms messages, Android will, by default, allow a message that is up to 480 (pretty sure) before converting it to mms.
[Nexus One Themes and Apps] BootsSiR:
Interesting. I did not know this.
[Nexus One Themes and Apps] Mudkip:
omg i love this cant wait. only thing is i dont see any thing in my notification screen. even when my phone has them. EVO 4G
[Nexus One Themes and Apps] DToX69:
:) nice work this is pretty cool very impressive keep up the great work and think about putting a donation link on your first post :)
[Nexus One Themes and Apps] yamaford:
Anychance of knowing how to hack hamton inn wifi to work right? lol jk

sent 4 recived 0 lost 4
[Nexus One Themes and Apps] BootsSiR:
Make sure you've enabled the accessibility service as per the first post.

done ;)
[Nexus One Themes and Apps] santiemanuel:
I can ping, telnet is not recognized it cmd :S, Droid2desk enabled in Accesibility, and no signals of the phone in my PC. The app seems to works fine.

Milestone-> Froyo FRG01

Windows 7

Picme and adbWireless work(over wifi)

So?
[Nexus One Themes and Apps] HairyMerkin:
This is the same for me.

EDIT; http://www.fettesps.com/windows-7-enable-telnet/

It still says destination unreachable, could not open port or something.
[Nexus One Themes and Apps] nfcrockett:
same here

edit: just enabled telnet as well.. "could not open connection to host, on port 23; connect failed"
[Nexus One Themes and Apps] gIMpSTa:
I don't think this is true, at least not the "most carriers support it" part. There may be some, but I think it's rare (I could be totally wrong tho). And android by default lets you THINK you are sending a text message up to 480 chars, but it's splitting it up into 3 normal sized messages. It may look to you like you sent one, but the recipient will get 3.
[Nexus One Themes and Apps] mik101:
Working great here.

Nexus 1 - 2.2CM6 Latest Nightly

Windows 7x64 Home Premium

Latest 32bit JRE (haven't tested with the 64bit JRE).
[Nexus One Themes and Apps] byrnsey88:
Working Good Here

Motorola Droid - Ultimate Droid 8.0

Windows 7 x64
[Nexus One Themes and Apps] BootsSiR:
What's working and not working?
[Nexus One Themes and Apps] BootsSiR:
make sure to type the telnet command properly

telnet [device ip] 5991
[Nexus One Themes and Apps] nfcrockett:
"could not open connection to host, on port 5991; connect failed"
[Nexus One Themes and Apps] Zorkman:
would it be possible to let it work even if you're not connected to the same router

(manually entering ip address?)
[Nexus One Themes and Apps] BootsSiR:
and you can ping the ip fine?
[Nexus One Themes and Apps] BootsSiR:
Yes, that will be a feature. Just haven't gotten to that point yet.
[Nexus One Themes and Apps] Che123:
I love this app :)

Maybe you could include a "start.bat" with "java -jar Droid2Desk.jar", for thoose systems, which do not start a jar file right away :)

EDIT Tested now a bit. Working fine on my desire. Only a few things:

- notification are not displayed

- when screen goes off, the app is loosing the connection (may be because wifi disconnects)
[Nexus One Themes and Apps] vk2bea:
Very impressive

Great job. This has tremendous potential !
[Nexus One Themes and Apps] jhunterb18:
Able to Ping my phone but when I try using telnet

Microsoft Windows XP [Version 5.1.2600]

(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\HuNtEr>ping 192.168.1.4

Pinging 192.168.1.4 with 32 bytes of data:

Reply from 192.168.1.4: bytes=32 time=110ms TTL=64

Reply from 192.168.1.4: bytes=32 time=28ms TTL=64

Reply from 192.168.1.4: bytes=32 time=49ms TTL=64

Reply from 192.168.1.4: bytes=32 time=77ms TTL=64

Ping statistics for 192.168.1.4:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 28ms, Maximum = 110ms, Average = 66ms

C:\Documents and Settings\HuNtEr>telnet 192.168.1.4 5991

Connecting To 192.168.1.4...Could not open connection to the host, on port 5991: Connect failed

C:\Documents and Settings\HuNtEr>

Tmobile G1

Using:[ROM]CaNNoN202 Complete Eclair (v2.2.1)

Windows XP Pro SP3
[Nexus One Themes and Apps] tkawsar:
i have tried it on windows 7 64-bit and enable permission for the desktop app which works fine.

but when using a 32-bit pc. the phone is not detected. permission is also enabled on this pc.

either way. great job!
[Nexus One Themes and Apps] fitsnugly:
OUT-F***ING-STANDING. Works like a champ, bravo sir. Now I don't have to have my nose in my phone to text the wifey back while I'm work.
[Nexus One Themes and Apps] brds85:
when i connect my phone to my PC (windows 7 - 64 bit) and load the jar file, all the tabs, dropdowns, ect... are grayed out and disabled. Does the phone need to be in PC mode with usb debugging off or on? What other things could it be?
[Nexus One Themes and Apps] BootsSiR:
You don't need to connect your phone to the PC. This uses WiFi. Did you follow all the directions in the first post?
[Nexus One Themes and Apps] michaelo147:
ok i dont know if anybody else is doing this, but it is working fine with my screen being turned off so far...its awesome
[Nexus One Themes and Apps] TinninE:
Hi

My pc doesn't have wifi connection

Is there a way to link my htc desire with droid2desk by using usb connection ?
[Nexus One Themes and Apps] beagz:
Really great job on this. Only thing seeming not to work is file transfer.

Unless I am making an error.
[Nexus One Themes and Apps] BootsSiR:
Not in the near future.

Yeah, file transfer isn't implemented yet :)
[Nexus One Themes and Apps] nfcrockett:
actually not able to, "destination host unreachable"
[Nexus One Themes and Apps] BootsSiR:
That tells me your device doesn't have a good WiFi signal or maybe I'm detecting the wrong IP on the phone. Is your phone set to get an ip address automatically or do you have one assigned statically?
[Nexus One Themes and Apps] nfcrockett:
Automatically, I just tried adding it manually, no luck..
[Nexus One Themes and Apps] BootsSiR:
Yeah, it should be automatically... no support for static addresses yet.

If your phone get's a wifi connection but you can't ping it, there's a problem somewhere. Even without Droid2Desk you should be able to ping the device.
[Nexus One Themes and Apps] BootsSiR:
http://www.droid2desk.com/builds/1.00-R69/

New build up that allows connecting to a device via IP address if the auto detection does not work. I hope to release a new build tomorrow night that includes auto-reconnection as well as some changes to fix the issue of the disconnect when the screen shuts off.
[Nexus One Themes and Apps] HairyMerkin:
This release works for some reason, good app.

When it gets spy camera functionality I may go to jail though :p

Whenever I look through messages though I get kicked off, and have to reconnect. It reconnects fine.
[Nexus One Themes and Apps] DirkStorck:
Is there a reason why the APK DroidDesk is sending data to the internet?!?
[Nexus One Themes and Apps] DirkStorck:
With

adb forward tcp:5991 tcp:5991

and

127.0.0.1 as IP

you can connect when you phone is connected to the USB

For an alpha release it is really a great app. Would be great when the app could be like "My Phone Explorer". It is on the best was to get there
[Nexus One Themes and Apps] to_the_bridge:
thanks for the app! great work. if you need some translation(german),let me know
[Nexus One Themes and Apps] HairyMerkin:
It uses wifi to connect to the phone, maybe you are interpreting it wrong.
[Nexus One Themes and Apps] DirkStorck:
Ok. Thanks!
[Nexus One Themes and Apps] Zorkman:
great!

I saw that you included it in your last version, I'll test it out in the coming days

thanks a lot
[Nexus One Themes and Apps] BootsSiR:
Can I get a logcat from when you get disconnected?

It uses WiFi. It doesn't transfer anything via the internet.

Neat. I'll have to include those instructions for those without WiFi. There was one user on here wanting to use it without WiFi, this will be interesting to him I'm sure :)
[Nexus One Themes and Apps] davkav:
Sorry my bad I'm actually on the Lee Droid v2.1 ROM. And no I was not able to connect to the device with the screen off.

Anyway with most custom ROM's I believe they are being distributed with the app spare parts. If you have this on your phone there is an option to keep WiFi awake even when the screen locks.

This has fixed the issue of the Droid 2Desktop loosing its connection to the phone when the screen auto-locks after a period.
[Nexus One Themes and Apps] HairyMerkin:
I tried, but I couldn't reproduce it.
[Nexus One Themes and Apps] BootsSiR:
I still need this to work with stock roms so I'm going to do my best to put some code in to lock the connection open.
[Nexus One Themes and Apps] swiftcheeze:
any idea how to fix this ?
[Nexus One Themes and Apps] BootsSiR:
You need to extract all the files from the zip into a directory. If you don't have the same directory structure as the archive, it won't load because it can't find the required files.
[Nexus One Themes and Apps] TinninE:
Thanks,

I can now connect.
[Nexus One Themes and Apps] snake logan:
Great looking app, been following since the OP :>

I'm having an issue on my Hero rooted with VillainRom 12 (Android 2.1). I can launch the app on the phone, but as soon as my PC tries to connect (even with an incorrect password) the app force closes.

I've never used logcat so if you could point me in the direction of a guide and what you want me to search for I would be happy to.
[Nexus One Themes and Apps] martin0285:
try this link http://xdaforums.com/showthread.php?t=532719

Once your PC can see your device with the 'adb device' cmd, run 'adb logcat' copy the output when it FCs, go to pastebin.com, put it there and post the link in this thread.
[Nexus One Themes and Apps] snake logan:
Thanks Martin.

Here is what logcat spewed out once I hit connect.

D/Droid2desk.NetworkService(29607): New connection accepted.
D/dalvikvm(29607): DexOpt: couldn't find static field
W/dalvikvm(29607): VFY: unable to resolve static field 8 (BOOTLOADER) in Landroid/os/Build;
D/dalvikvm(29607): VFY: replacing opcode 0x62 at 0x0039
D/dalvikvm(29607): Making a copy of Lcom/boots/droid2desk/g;.<init> code (368 bytes)
W/dalvikvm(29607): threadid=17: thread exiting with uncaught exception (group=0x4001e3c0)
E/AndroidRuntime(29607): Uncaught handler: thread Thread-9 exiting due to uncaught exception
E/AndroidRuntime(29607): java.lang.NoSuchFieldError: android.os.Build.BOOTLOADER

E/AndroidRuntime(29607): at com.boots.droid2desk.g.<init>(Unknown Source)

E/AndroidRuntime(29607): at com.boots.droid2desk.d.run(Unknown Source)
E/AndroidRuntime(29607): at java.lang.Thread.run(Thread.java:1102)
I/Process ( 670): Sending signal. PID: 29607 SIG: 3
I/dalvikvm(29607): threadid=7: reacting to signal 3
I/dalvikvm(29607): Wrote stack trace to '/data/anr/traces.txt'
[Nexus One Themes and Apps] BootsSiR:
Thanks for that. It definitely helps. I think I may be referencing a variable that is not available in the version of Android you are running. What phone/OS are you using?

edit: In any case, I see the bug now. I'll fix it for the next build.

edit: fixed and change committed. Be sure to try the next version :)
[Nexus One Themes and Apps] BootsSiR:
New alpha build up:

http://www.droid2desk.com/builds/1.00-R70/

As well a new wiki to keep all this information in one place:

http://www.droid2desk.com/wiki

I've implemented a WiFi lock now. Those who have had their connection drop when their screen shuts off, try this build and let me know if you see the same result. Next step is auto-reconnection.
[Nexus One Themes and Apps] swiftcheeze:
every thing has been extracted to various places. ie desktop, documents, home folder. all in the same folder. i guess this is what you mean :?
[Nexus One Themes and Apps] BootsSiR:
You should have a structure like follows

\Droid2Desk.jar

\images\

\notifications\

\db\

If you extract everything from the zip file and maintain the folder structure you should be fine.
[Nexus One Themes and Apps] snake logan:
That seems to have fixed it, nice! :>
[Nexus One Themes and Apps] Tasqa:
This sounds awesome!!

Downloading now :)

Could you add notifications from android to desktop too? With popups in taskbar (win)?

* Whoops, found it already :$

Tasqa
[Nexus One Themes and Apps] vannope:
I just put this on my D-1 with CM-6 and Win-7 on my laptop. Right now it's running perfectly. Thanks