lundi 18 janvier 2010

Android source code

Do you need have a quick look at the source code of android java base classes, like Button or View withtout downloading the whole lot using Git ?

There is a web access to the source code that you can use for this, not documented (as I can tell) on the google site:

http://android.git.kernel.org/?p=platform/frameworks/base.git;a=summary

Then choose one of the snapshots links matching the version you need.

samedi 9 janvier 2010

HTC Sync and Windows 7

Update: The latest version of HTC Sync Release 2.0.18 ,theoretically compatible with Windows 7, has recently become available. In my opinion, the contents of this post is still valid, because even after installing this version at home, it did not work without the operations described here.

HTC doesn't states clearly that Windows 7 is not supported by the latest installer HTC Sync (2.0.8). In fact they say nothing at all on the subject, which is quite frustrating.

I spent two evenings before I finally managed to run all the stuff on Windows 7. So don't worry, it's possible and until they correct this problem, here's how:

  1. Download and install HTC Sync 2.0.18 on your PC
  2. The installation should do fine
  3. Connect your phone to your computer via USB
  4. On your mobile open your notification bar and click Sync HTC
  5. The drivers are installed correctly, but your phone cannot connect to your PC.
  6. On your computer, go to Start / Device and Printer, click the right mouse button on "Android phone" and select properties
  7. The problem comes from the "Adb interface, which actually is not the right driver (who knows why...) We must therefore replace it by the one delivered by HTC. So here's how: "Select Adb interface" then select "Properties", then "Change Settings", then go to the tab "Drivers" and select "update drivers" and "Browse my computer for dirvers software", then " let me pick on a list of device drivers on my computer. Here on my post I have two choices: "HTC Dream composite interface" and "My HTC". Here is the important part: You must choose the one called "My HTC".
  8. Restart your PC
Finally, you can retry a "Sync". For me, this worked well with my HTC Hero.

HTC Sync et Windows 7

Mise à jour 2: Bonne nouvelle, la mise à jour 2.0.33 corrige le problème décrit si-dessous! Il suffit juste de redémarré le PC après l'installation.


Mise à jour: La dernière version de HTC Sync est sortie 2.0.18 , théoriquement compatible avec Window 7 est disponible depuis peu. Mais malheureusement le contenu de ce poste reste à mon avis d'actualité, car même après avoir installé cette version, chez moi ça n'a fonctionné qu'après la manipulation décrite ici.

HTC ne dit pas clairement que Windows 7 n'est pas supporté par le dernier installeur de HTC Sync (2.0.8). En fait ils ne disent rien à se sujet, ce qui est assez frustrant.

J'ai galéré deux soirs avant de réussir, enfin, à faire fonctionner tout cela sous Windows 7. Donc rassurez vous, c'est possible et en attendant qu'ils corrigent ce problème, voici comment:

Note: Windows 7 est en anglais chez moi.
  1. Telecharger et installer HTC Sync 2.0.18 sur votre PC
  2. L'installation doit bien se passer
  3. Connecter votre mobile à votre ordinateur via USB
  4. Sur votre mobile, ouvez votre barre de notifications et cliquez sur HTC Sync
  5. Les drivers s'installent correctement, mais , par contre votre mobile n'arrive pas à se connecter à votre PC.
  6. Sur votre ordinateur, aller dans Démarrer / Device And Printer , cliquez avec le bouton droit sur "Android phone" et choisissez propriétés
  7. Le probléme vient de la fonction "Adb interface", qui en fait n'est visiblement pas le bon driver. Il faut donc le remplacer par celui livré par HTC. Attention accrochez-vous: "Selectionnez Adb interface" puis choisissez "Propriétés", puis "change Settings", puis aller sur l'onglet "drivers" et choisissez "update drivers", et "Browse my computer for drivers software", ensuite "let me pick on a liste of device drivers on my computer". Ici, sur mon poste j'ai deux choix: "Htc Dream composite interface" et "My HTC". C'est là où tout se joue: Il faut choisir "My HTC".
  8. Redémarrez votre PC

En suite, retenter une "Sync". Chez moi en tout cas ca marche bien avec mon HTC Hero bien aimé.