{"id":103,"date":"2008-11-03T22:11:45","date_gmt":"2008-11-03T21:11:45","guid":{"rendered":"http:\/\/www.buschtrommel.net\/?p=103"},"modified":"2008-11-04T00:21:59","modified_gmt":"2008-11-03T23:21:59","slug":"android-entwicklung-attaching-source-to-androidjar","status":"publish","type":"post","link":"https:\/\/www.buschtrommel.net\/?p=103","title":{"rendered":"Android Entwicklung: attaching source to android.jar"},"content":{"rendered":"<p><img decoding=\"async\" align=\"left\" hspace=20 src=\"\/images\/robbi3d.png\"\/>Dies ist der erste Post zum Thema android auf der Buschtrommel und weitere sollen folgen. Es ist nicht so leicht, die Quellen von android bei der Entwicklung in Eclipse einzubinden. Die Anleitungen dazu sind \u00c3\u00a4usserst d\u00c3\u00bcnn, besonders wenn man unter Windows entwickelt. Da ich selbst lange gesucht und experimentiert habe, m\u00c3\u00b6chte ich hier meinen Weg dokumentieren:<\/p>\n<p><strong>Schritt 1: Git f\u00c3\u00bcr Windows installieren<\/strong><br \/>\nDie Andoid-Entwickler verwenden nicht CVS oder Subversion, sondern Git, das auch in der Linux-Kernelentwicklung etabliert ist. Der erste Schritt ist also:<br \/>\nInstalliere Git f\u00c3\u00bcr Windows <a href=\"http:\/\/code.google.com\/p\/msysgit\/\">http:\/\/code.google.com\/p\/msysgit\/<\/a><\/p>\n<p><strong>Schritt 2: Quellen aus dem Repositiry downloaden<\/strong><br \/>\n\u00c3\u2013ffne die Git-Bash aus dem Startmen\u00c3\u00bc von Windows und wechsle in ein neu angelegtes Directory A. Tippe hier folgende Zeilen:<br \/>\n<code><br \/>\ngit clone git:\/\/git.source.android.com\/platform\/frameworks\/base sources<br \/>\ncd sources<br \/>\ngit checkout android-1.0<br \/>\n<\/code><br \/>\n<strong>Schritt 3: Jar erweitern <\/strong><br \/>\nDas Android-Plugin erlaubt nicht das attachen von Quelldateien zum bestehenden Jar. Wir k\u00c3\u00b6nnen uns damit behelfen, indem wir die Quellen einfach zus\u00c3\u00a4tzlich ins bestehende Jar hinzuf\u00c3\u00bcgen. Kopiere also android.jar ins Verzeichnis A und f\u00c3\u00bchre in A\/sources folgende Zeilen aus:<br \/>\n<code><br \/>\njar uvf ..\/android.jar -C core\/java .<br \/>\njar uvf ..\/android.jar -C graphics\/java .<br \/>\njar uvf ..\/android.jar -C location\/java .<br \/>\njar uvf ..\/android.jar -C media\/java .<br \/>\njar uvf ..\/android.jar -C opengl\/java .<br \/>\njar uvf ..\/android.jar -C sax\/java .<br \/>\njar uvf ..\/android.jar -C services\/java .<br \/>\njar uvf ..\/android.jar -C telephony\/java .<br \/>\njar uvf ..\/android.jar -C wifi\/java .<br \/>\n<\/code><\/p>\n<p><strong>Schritt 4: Jar ersetzen<\/strong><br \/>\nErsetze altes android.jar durch das Neue!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dies ist der erste Post zum Thema android auf der Buschtrommel und weitere sollen folgen. Es ist nicht so leicht, die Quellen von android bei der Entwicklung in Eclipse einzubinden. Die Anleitungen dazu sind \u00c3\u00a4usserst d\u00c3\u00bcnn, besonders wenn man unter Windows entwickelt. Da ich selbst lange gesucht und experimentiert habe, m\u00c3\u00b6chte ich hier meinen Weg [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"_links":{"self":[{"href":"https:\/\/www.buschtrommel.net\/index.php?rest_route=\/wp\/v2\/posts\/103"}],"collection":[{"href":"https:\/\/www.buschtrommel.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.buschtrommel.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.buschtrommel.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.buschtrommel.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=103"}],"version-history":[{"count":1,"href":"https:\/\/www.buschtrommel.net\/index.php?rest_route=\/wp\/v2\/posts\/103\/revisions"}],"predecessor-version":[{"id":105,"href":"https:\/\/www.buschtrommel.net\/index.php?rest_route=\/wp\/v2\/posts\/103\/revisions\/105"}],"wp:attachment":[{"href":"https:\/\/www.buschtrommel.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.buschtrommel.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.buschtrommel.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}