Wednesday, July 7, 2010

HTC Sync problems

Have you got a HTC Desire (or a similar model) that keeps giving you the following error when you try and connect to HTC Sync on Windows?


The message reads:

"Unable to find HTC Sync on your PC. Please make sure that HTC Sync is installed and opened on your computer. You can install HTC Sync from the SD card by mounting it to your PC or you can download it from http://www.htc.com/www/support.aspx. Note: for Windows only."

Well so have I.

So I spent yesterday developing an application that can install *.apk's when my device can't connect to HTC Sync.

Here's how it works:

1) Download apkinstaller.jar (subject to license below).
2) Enable USB debugging on your device (check your device manual on how to do this).
3) Plug your device into a usb 2.0 port on your PC.
4) Try to connect to HTC Sync (i.e when the device asks for the connection type, select "HTC Sync").
5) When the HTC Sync error message displays on your device, run (double click) the apkinstaller.jar

Requirements:
1) You have to have adb.exe installed and running on your PC. As far as I know this is installed with HTC sync so it should be there already, if it isn't you can install the Android SDK (adb.exe comes with that).
2) You need to have JRE1.5 or later

License:

APK Installer
Copyright (C) 2010 Andrew Naish
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see http://www.gnu.org/licenses/