<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5254459834066252973</id><updated>2024-09-19T13:41:11.269-03:00</updated><category term="android"/><category term="c"/><category term="Java"/><category term="blog"/><title type='text'>REN Blog</title><subtitle type='html'>c/c++, java, linux…</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://renbs.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5254459834066252973/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://renbs.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Renan</name><uri>http://www.blogger.com/profile/07099512895029212165</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5254459834066252973.post-252384179092606847</id><published>2010-04-05T22:56:00.000-03:00</published><updated>2010-04-05T22:56:16.129-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>Install and configure the Android SDK and the ADT Plugin for Eclipse</title><content type='html'>Software versions while writing this tutorial:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;JDK: 6u19-1&lt;/li&gt;
&lt;li&gt;Eclipse:Galileo Version: 3.5.2 Build id: M20100211-1343&lt;/li&gt;
&lt;li&gt;Android SDK: 2.1, Revision 1 (January 2010) &lt;/li&gt;
&lt;li&gt;ADT Plugin: 0.9.6 (March 2010)&amp;nbsp;&lt;/li&gt;
&lt;li&gt;WST Server Adapters: 3.1.0.v200906020451-51DFAkF77g7GCNc&amp;nbsp;&amp;nbsp;&amp;nbsp; org.eclipse.wst.server_adapters.feature.feature.group&lt;/li&gt;
&lt;li&gt;GEF Graphical Editing Framework: 3.5.2.v20100111-1352-787A47PpPBNpsWlH3EdWS1fY14Gn&amp;nbsp;&amp;nbsp;&amp;nbsp; org.eclipse.gef.all.feature.group&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
Before I post a Hello World tutorial, it is necessary to install and configure Eclipse, the Android SDK and the eclipse plugin. &lt;br /&gt;
&lt;br /&gt;
1. Install the JDK 6:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I&#39;m using Arch Linux, so to install Eclipse is easy, just use pacman or  Shaman(GUI), but first it is necessary to install JDK.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;bash&quot; style=&quot;background-color: #f0f0f0; border: 1px solid rgb(208, 208, 208); color: #000066; font-family: monospace;&quot;&gt;$ &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;sudo&lt;/span&gt; pacman &lt;span style=&quot;color: #660033;&quot;&gt;-S&lt;/span&gt; jdk&lt;br /&gt;
&lt;br /&gt;
Password: &lt;br /&gt;
&lt;br /&gt;
resolving  dependencies...&lt;br /&gt;
&lt;br /&gt;
looking &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;for&lt;/span&gt; inter-conflicts...&lt;br /&gt;
&lt;br /&gt;
::  jre conflicts with openjdk6. Remove openjdk6? &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;[&lt;/span&gt;Y&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;/&lt;/span&gt;n&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;]&lt;/span&gt; y&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Remove &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;)&lt;/span&gt;: openjdk6-&lt;span style=&quot;color: black;&quot;&gt;6&lt;/span&gt;.b17_1.7.3-&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
Total  Removed Size: &amp;nbsp; &lt;span style=&quot;color: black;&quot;&gt;124.62&lt;/span&gt; MB&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Targets  &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;)&lt;/span&gt;:  jre-6u19-&lt;span style=&quot;color: black;&quot;&gt;2&lt;/span&gt; &amp;nbsp;jdk-6u19-&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt;  &lt;br /&gt;
&lt;br /&gt;
Total Download Size: &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;70.00&lt;/span&gt;  MB&lt;br /&gt;
&lt;br /&gt;
Total Installed Size: &amp;nbsp; &lt;span style=&quot;color: black;&quot;&gt;246.64&lt;/span&gt;  MB&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Proceed with installation? &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;[&lt;/span&gt;Y&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;/&lt;/span&gt;n&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;]&lt;/span&gt; y&lt;br /&gt;
&lt;br /&gt;
::  Retrieving packages from community...&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;jre-6u19-&lt;span style=&quot;color: black;&quot;&gt;2&lt;/span&gt;-i686.pkg... &amp;nbsp; &amp;nbsp;25.3M &amp;nbsp;339.3K&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;/&lt;/span&gt;s 00:01:&lt;span style=&quot;color: black;&quot;&gt;16&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;##################################################################################]  100%&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;jdk-6u19-&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt;-i686.pkg...  &amp;nbsp; &amp;nbsp;44.7M &amp;nbsp;341.3K&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;/&lt;/span&gt;s  00:02:&lt;span style=&quot;color: black;&quot;&gt;14&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;##################################################################################]  100%&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
checking package integrity...&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;)&lt;/span&gt; checking &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;file&lt;/span&gt; conflicts &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;##################################################################################]  100%&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;)&lt;/span&gt; removing openjdk6 &amp;nbsp;  &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;##################################################################################]  100%&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;)&lt;/span&gt; installing jre &amp;nbsp; &amp;nbsp; &amp;nbsp;  &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;##################################################################################]  100%&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
The jre package is licensed software.&lt;br /&gt;
&lt;br /&gt;
You  MUST &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;read&lt;/span&gt; and  agree to the license stored &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;in&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;/&lt;/span&gt;opt&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;/&lt;/span&gt;java&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;/&lt;/span&gt;jre&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;/&lt;/span&gt;LICENSE before using it.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;)&lt;/span&gt;  installing jdk &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;##################################################################################]  100%&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
The jdk package is licensed software.&lt;br /&gt;
&lt;br /&gt;
You  MUST &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;read&lt;/span&gt; and  agree to the license stored &lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;in&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;/&lt;/span&gt;opt&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;/&lt;/span&gt;java&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;/&lt;/span&gt;LICENSE before using it.&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
2. Install Eclipse:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Now, to install eclipse is easy, just use pacman again.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; If you want to program C/C++ with eclipse, install eclipse-cdt too.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;bash&quot; style=&quot;background-color: #f0f0f0; border: 1px solid rgb(208, 208, 208); color: #000066; font-family: monospace;&quot;&gt;$ &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;sudo&lt;/span&gt; pacman &lt;span style=&quot;color: #660033;&quot;&gt;-S&lt;/span&gt; eclipse eclipse-cdt&lt;/div&gt;&lt;br /&gt;
3. Download the Android SDK here:&lt;br /&gt;
&lt;a href=&quot;http://developer.android.com/sdk/index.html&quot;&gt;http://developer.android.com/sdk/index.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; While I&#39;m writing this tutorial, the SDK tools version is the revision 5, and the Android Platform is 2.1 (January, 2010).&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Save it where you like, but in my case I saved it in my home directory. &lt;br /&gt;
&amp;nbsp; &amp;nbsp; Unpack it with this command or use some GUI:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;bash&quot; style=&quot;background-color: #f0f0f0; border: 1px solid rgb(208, 208, 208); color: #000066; font-family: monospace;&quot;&gt;$ &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;tar&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-zxvf&lt;/span&gt; android-sdk_r05-linux_86.tgz &lt;/div&gt;&lt;br /&gt;
4. Modify your PATH enviroment:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Another easy task when you are using Linux. Using your favorite text editor, open ~/.bash_profile or ~/.bashrc and locate a line like this:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;bash&quot; style=&quot;background-color: #f0f0f0; border: 1px solid rgb(208, 208, 208); color: #000066; font-family: monospace;&quot;&gt;&lt;span style=&quot;color: #007800;&quot;&gt;PATH&lt;/span&gt;=&lt;span style=&quot;color: #007800;&quot;&gt;$PATH&lt;/span&gt;:&lt;/div&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; If it does not exist in both files create it like this:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;bash&quot; style=&quot;background-color: #f0f0f0; border: 1px solid rgb(208, 208, 208); color: #000066; font-family: monospace;&quot;&gt;&lt;span style=&quot;color: #007800;&quot;&gt;PATH&lt;/span&gt;=&lt;span style=&quot;color: #007800;&quot;&gt;$PATH&lt;/span&gt;:/home/&amp;lt;YOUR USERNAME&amp;gt;&lt;code&gt;&lt;i&gt;/&lt;/i&gt;&lt;i&gt;&lt;/i&gt;android-sdk-linux_86/tools&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Open a terminal and type this command:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;bash&quot; style=&quot;background-color: #f0f0f0; border: 1px solid rgb(208, 208, 208); color: #000066; font-family: monospace;&quot;&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;export&lt;/span&gt; PATH&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
4. Additional components necessary to ADT:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; In my case it was necessary to install other components before install the ADT plugin:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Start Eclipse, then select &lt;b&gt;Help&lt;/b&gt; &amp;gt; &lt;b&gt;Install          New  Software&lt;/b&gt;. &lt;/li&gt;
&lt;li&gt;In the Available Software dialog, click &lt;b&gt;Add...&lt;/b&gt;.&lt;/li&gt;
&lt;li&gt;In the Add Site dialog that appears, enter a name for the remote   site         (for example, &quot;GEF Update Sites&quot;) in the &quot;Name&quot; field.           In the &quot;Location&quot; field, enter this URL:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://download.eclipse.org/tools/gef/updates/releases/&quot;&gt;http://download.eclipse.org/tools/gef/updates/releases/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add another site:&lt;br /&gt;
Name: Eclipse Updates&lt;br /&gt;
Location: &lt;a href=&quot;http://download.eclipse.org/eclipse/updates/3.5&quot;&gt;http://download.eclipse.org/eclipse/updates/3.5&lt;/a&gt;&lt;br /&gt;
And another one:&lt;br /&gt;
&lt;br /&gt;
Add another site:&lt;br /&gt;
Name: Galileo&lt;br /&gt;
Location: &lt;a href=&quot;http://download.eclipse.org/releases/galileo&quot;&gt;http://download.eclipse.org/releases/galileo&lt;/a&gt;&lt;br /&gt;
Click &lt;b&gt;OK&lt;/b&gt;.&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Back in the Available Software view, search for: GEF and wst.&lt;/li&gt;
&lt;li&gt;Install them both.&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; If you have done all of this without errors, it is time now to install the ADT plugin to eclipse.&lt;br /&gt;
&lt;br /&gt;
5. ADT plugin for Eclipse:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Start Eclipse, then select &lt;b&gt;Help&lt;/b&gt; &amp;gt; &lt;b&gt;Install          New Software&lt;/b&gt;. &lt;/li&gt;
&lt;li&gt;In the Available Software dialog, click &lt;b&gt;Add...&lt;/b&gt;.&lt;/li&gt;
&lt;li&gt;In the Add Site dialog that appears, enter a name for the remote  site         (for example, &quot;Android Plugin&quot;) in the &quot;Name&quot; field.          In the &quot;Location&quot; field, enter this URL:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://dl-ssl.google.com/android/eclipse/&quot;&gt;https://dl-ssl.google.com/android/eclipse/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: If you have trouble acquiring the plugin, you can try            using &quot;http&quot; in the URL, instead of &quot;https&quot; (https is  preferred for             security reasons).&lt;br /&gt;
Click &lt;b&gt;OK&lt;/b&gt;.&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Back in the Available Software view, you should now see  &quot;Developer         Tools&quot; added to the list. Select the checkbox next to Developer  Tools,          which will automatically select the nested tools Android DDMS  and Android          Development Tools.          Click &lt;b&gt;Next&lt;/b&gt;. &lt;/li&gt;
&lt;li&gt;In the resulting Install Details dialog, the Android DDMS and  Android          Development Tools features are listed. Click &lt;b&gt;Next&lt;/b&gt;  to          read and accept the license agreement and install any  dependencies,          then click &lt;b&gt;Finish&lt;/b&gt;. &lt;/li&gt;
&lt;li&gt;Restart Eclipse.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; This should be enough to start developing Android apps.&lt;br /&gt;
&lt;br /&gt;
Next time: Adding some SDK Components and The Hello World.&lt;br /&gt;
&lt;ol&gt;&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='http://renbs.blogspot.com/feeds/252384179092606847/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://renbs.blogspot.com/2010/04/install-and-configure-android-sdk-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5254459834066252973/posts/default/252384179092606847'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5254459834066252973/posts/default/252384179092606847'/><link rel='alternate' type='text/html' href='http://renbs.blogspot.com/2010/04/install-and-configure-android-sdk-and.html' title='Install and configure the Android SDK and the ADT Plugin for Eclipse'/><author><name>Renan</name><uri>http://www.blogger.com/profile/07099512895029212165</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5254459834066252973.post-1249041876064359123</id><published>2010-04-04T21:52:00.002-03:00</published><updated>2010-04-05T22:59:09.502-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="blog"/><category scheme="http://www.blogger.com/atom/ns#" term="c"/><title type='text'>Syntax Highlighter to the web</title><content type='html'>&amp;nbsp;&amp;nbsp;&amp;nbsp; I was searching for a syntax highlighter to use in a IDE in the company where I work and I have found this web site:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://quickhighlighter.com/&quot;&gt;http://quickhighlighter.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; It is amazing, just select the language, paste your code and press the Highlight! button just bellow the code box.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; You will see how it is going to look like. If you like, press Toggle Code View and you will get the html code ready to use.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; There are some options at left side of the code box like if you want to show line numbers in your code...&lt;br /&gt;
&lt;br /&gt;
Renan</content><link rel='replies' type='application/atom+xml' href='http://renbs.blogspot.com/feeds/1249041876064359123/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://renbs.blogspot.com/2010/04/syntax-highlighter-to-web.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5254459834066252973/posts/default/1249041876064359123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5254459834066252973/posts/default/1249041876064359123'/><link rel='alternate' type='text/html' href='http://renbs.blogspot.com/2010/04/syntax-highlighter-to-web.html' title='Syntax Highlighter to the web'/><author><name>Renan</name><uri>http://www.blogger.com/profile/07099512895029212165</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5254459834066252973.post-8276581032094447536</id><published>2010-02-20T03:32:00.005-02:00</published><updated>2010-02-20T05:29:10.065-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c"/><title type='text'>C Tips: Converting a char array of numbers into a integer</title><content type='html'>This is a simple tip for those who can&#39;t use any C++ libs, when you are programming a uP for example.&lt;br /&gt;
It doesn&#39;t matter how you got the numbers in that array, the tip here is just how you are going to take them out, in that specific order.&lt;br /&gt;
&lt;br /&gt;
You multiply by 10 and sum them. Line 19.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: cpp&quot;&gt;#include &lt;stdio.h&gt;

int main()
{
   // This is the declaration
   char  nChar[5];

   // I have to assign the numbers to the array
   nChar[0] = (char) 3;
   nChar[1] = (char) 9;
   nChar[2] = (char) 6;
   nChar[3] = (char) 5;
   nChar[4] = (char) 0;

   int numberInt = 0;

   // This is how it is done
   for (int a = 0; a &lt; 4; a++)
     numberInt = (numberInt * 10) + ((int)nChar[a]);

   printf(&quot;%d&quot;, numberInt);
}
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Renan</content><link rel='replies' type='application/atom+xml' href='http://renbs.blogspot.com/feeds/8276581032094447536/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://renbs.blogspot.com/2010/02/c-tips-converting-char-array-of-numbers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5254459834066252973/posts/default/8276581032094447536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5254459834066252973/posts/default/8276581032094447536'/><link rel='alternate' type='text/html' href='http://renbs.blogspot.com/2010/02/c-tips-converting-char-array-of-numbers.html' title='C Tips: Converting a char array of numbers into a integer'/><author><name>Renan</name><uri>http://www.blogger.com/profile/07099512895029212165</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5254459834066252973.post-5608537372458677015</id><published>2010-02-17T03:13:00.004-02:00</published><updated>2010-02-20T03:43:51.416-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><title type='text'>Android Links</title><content type='html'>I would like to make available some links to anyone who wants to start developing Android apps:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://developer.android.com/sdk/index.html&quot;&gt;Download the Android SDK&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;Download the SDK, in my case it was the Linux(i386) version.&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://developer.android.com/sdk/installing.html&quot;&gt;Installing the Android SDK&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;This explains how to install it.&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://developer.android.com/guide/developing/eclipse-adt.html&quot;&gt;Developing In Eclipse, with ADT&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;This explains how to install the eclipse plugin.&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://developer.android.com/resources/tutorials/hello-world.html&quot;&gt;Hello, World&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;The first demo.&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://developer.android.com/resources/community-groups.html&quot;&gt;Developer Forums&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;If you have any question, this is the place to find it, if you haven&#39;t found it in the docs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other links:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.ibm.com/developerworks/edu/os-dw-os-eclipse-android.html&quot;&gt;Develop Android applications with Eclipse&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;ul&gt;&lt;li&gt; &lt;a href=&quot;http://www.linuxfordevices.com/c/a/Linux-For-Devices-Articles/A-developers-perspective-on-Googles-Android-SDK/&quot;&gt;A developer&#39;s perspective on Google&#39;s Android SDK&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;br /&gt;
I will post here a step by step guide from the&amp;nbsp;installation&amp;nbsp;of the Android SDK,&amp;nbsp;the instalation of the Eclipse IDE, the ADT plugin for eclipse and how to create your first app, the Hello, World!&lt;br /&gt;
&lt;br /&gt;
Renan</content><link rel='replies' type='application/atom+xml' href='http://renbs.blogspot.com/feeds/5608537372458677015/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://renbs.blogspot.com/2010/02/android-links.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5254459834066252973/posts/default/5608537372458677015'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5254459834066252973/posts/default/5608537372458677015'/><link rel='alternate' type='text/html' href='http://renbs.blogspot.com/2010/02/android-links.html' title='Android Links'/><author><name>Renan</name><uri>http://www.blogger.com/profile/07099512895029212165</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>