<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>OFFICIALLY Shahab ... &#187; Projects</title>
	<atom:link href="http://www.shahabfm.com/archives/tag/projects/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shahabfm.com</link>
	<description>Somewhere for me to express myself &#38; my works ...</description>
	<lastBuildDate>Wed, 31 Aug 2011 07:58:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Android development tricks</title>
		<link>http://www.shahabfm.com/archives/2011/05/courseapp-android-development-tricks/</link>
		<comments>http://www.shahabfm.com/archives/2011/05/courseapp-android-development-tricks/#comments</comments>
		<pubDate>Thu, 19 May 2011 10:53:56 +0000</pubDate>
		<dc:creator>Shahab</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[My Projects]]></category>
		<category><![CDATA[My Studies]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Shahab]]></category>
		<category><![CDATA[UiO]]></category>
		<category><![CDATA[courseApp]]></category>
		<category><![CDATA[IFI]]></category>
		<category><![CDATA[Mobile application]]></category>
		<category><![CDATA[Mobile Programming]]></category>
		<category><![CDATA[Norway]]></category>
		<category><![CDATA[Programming Tricks]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[University of Oslo]]></category>

		<guid isPermaLink="false">http://www.shahabfm.com/?p=884</guid>
		<description><![CDATA[This is a summay of the tricks I have learned making an application called courseApp project.  This application was developed in the Mobile Information Systems that I took at University of Oslo. Eclipse is a very good tool to use for Android development. To start with you need to download Andriod SDK. After installing both &#8230; <a href="http://www.shahabfm.com/archives/2011/05/courseapp-android-development-tricks/">Read more <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is a summay of the tricks I have learned making an application called <a title="courseApp" href="http://www.uio.no/studier/emner/matnat/ifi/INF5261/v11/studentprojects/android/" target="_blank">courseApp project</a>.  This application was developed in the Mobile Information Systems that I took at University of Oslo. <a href="http://www.eclipse.org/downloads/" target="_blank">Eclipse </a>is a very good tool to use for Android development. To start with you need to download A<a title="Android SDK" href="http://developer.android.com/sdk/index.html" target="_blank">ndriod SDK</a>. After installing both of these(and ofcourse Java Development Kit, JDK which is a pre-requirement for both of these), you need to make Eclipse and Android SDK talk together. This is done by a plugin called &#8220;<a href="http://developer.android.com/sdk/eclipse-adt.html" target="_blank">ADT plugin for Eclipse</a>&#8221; from Google. You can read more about how to install this plugin by <a href="http://developer.android.com/sdk/eclipse-adt.html" target="_blank">clicking here</a>. <strong>In case of Android SDK installation(the exe file) doesn&#8217;t recognize JDK </strong>on your computer, you can simply download the <strong>zip </strong>file and <strong>extract </strong>it. Don&#8217;t forget <strong>appending that folder to the %PATH% environment variable</strong>. Now some more tips follows :</p>
<p><strong>background color for your layout :<br />
</strong>add the following code to your layout XML code(#ff32cf is the color code)<br />
<span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; line-height: 18px; white-space: pre;"> </span></p>
<pre class="brush: java; title: ; notranslate">android:background=&quot;#ff23cf&quot;</pre>
<p>Background Image for your layout :<br />
1- Add the image you want to the layout folder of your project.<br />
2- Add the following code to your layout XML code<br />
<span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; line-height: 18px; white-space: pre;"> </span></p>
<pre class="brush: java; title: ; notranslate">android:background=&quot;@drawable/bbg&quot;</pre>
<p><strong>EditText features :</strong><br />
one of the features I want to talk about is <strong><em>android:singleLine </em></strong>which is very useful. If you want to get some info from the user, this text box is a good tool to use, but make sure you set the SingleLine variable to true. If not if they paste a 20 lines of text by mistake your whole GUI gets out of shape. Also if you want to use this for example to write an email text, then this should be set to false as you want it to contain several lines. The good thing about several lines EditText is that they do have scrolling function.<span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace;"><span style="font-size: 12px; line-height: 18px; white-space: pre;"><br />
</span></span></p>
<pre class="brush: java; title: ; notranslate">&lt;EditText ... android:singleLine=&quot;true&quot;&gt;//Single Line box for getting email address
&lt;/span&gt;&lt;span style=&quot;font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; line-height: 18px; white-space: pre;&quot;&gt;&lt;EditText ... android:singleLine=&quot;false&quot;&gt;//Multi Line box for getting email text</pre>
<p>in case you want<strong> limit the number of lines</strong> of an EditText:</p>
<pre class="brush: java; title: ; notranslate">&lt;span style=&quot;font-family: monospace; font-size: 12px; line-height: 18px; white-space: pre;&quot;&gt;&lt;EditText android:layout_width=&quot;fill_parent&quot;&lt;/span&gt;
&lt;pre&gt;&lt;code&gt;            android:layout_height=&quot;wrap_content&quot; android:gravity=&quot;center&quot;
android:singleLine=&quot;false&quot; android:lines=&quot;5&quot;
android:layout_marginLeft=&quot;10dip&quot; android:layout_marginRight=&quot;10dip&quot;
/&gt;&lt;/code&gt;&lt;span style=&quot;font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: 13px; line-height: 19px; white-space: normal;&quot;&gt;</pre>
<p>&nbsp;</p>
<p><strong>Simple Item List :<br />
</strong>Setting up a simple Item list with an already filled Arrayadapter.</p>
<pre class="brush: java; title: ; notranslate">

static final String[] COUNTRIES = new String[] {&quot;Afghanistan&quot;, &quot;Albania&quot;, &quot;Algeria&quot;, &quot;American Samoa&quot;, &quot;Andorra&quot;,&quot;Angola&quot;, &quot;...&quot;}
&lt;pre&gt;setListAdapter(new ArrayAdapter&lt;String&gt;(this,
android.R.layout.simple_list_item_1, COUNTRIES));
getListView().setTextFilterEnabled(true);&lt;/pre&gt;
</pre>
<p><strong>Drop Down List :<br />
</strong>In Android drop down list is a little bit complicated to give value to. You first need to add one Spinner to your layout and then connect it to</p>
<pre class="brush: java; title: ; notranslate"> String[] Countries = { &quot;India&quot;, &quot;France&quot;, &quot;Japan&quot;, &quot;China&quot;, &quot;U.S&quot; };

// //////////////////Countries Spinner/////////////////////////////////
SpinnerCountries = (Spinner) findViewById(R.id.Spinner01);

// //////////////////////////////////////////////////////////////
// create an arrayAdapter an assign it to the spinner
AdapterCountries = new ArrayAdapter&lt;CharSequence&gt;(this,
android.R.layout.simple_spinner_item);
AdapterCountries
.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
SpinnerCountries.setAdapter(AdapterCountries);

int lenCountries = Countries.length;

for (int i = 0; i &lt; lenCountries; i++) {
// test += Areas[i] + &quot;\n&quot;;
AdapterCountries.add(Countries[i]);
}</pre>
<p><a title="Spinner &amp; drop down list in Android" href="http://www.dotnetexpertsforum.com/dropdownlist-or-combobox-or-spinner-in-android-t1352.html" target="_blank">source</a></p>
<p><a title="Spinner &amp; drop down list in Android" href="http://www.dotnetexpertsforum.com/dropdownlist-or-combobox-or-spinner-in-android-t1352.html" target="_blank"></a><strong>Disabling the Landscape Mode :</strong><br />
You have two ways to do this, either in the code, or in the XML layout file :</p>
<p>XML :<br />
<span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; line-height: 18px; white-space: pre;"> </span></p>
<pre class="brush: java; title: ; notranslate">&lt;/span&gt;&lt;span style=&quot;font-family: monospace; font-size: 12px; line-height: 18px; white-space: pre;&quot;&gt;&lt;activity android:name=&quot;.SomeActivity&quot;&lt;/span&gt;
&lt;pre&gt;
&lt;pre&gt;&lt;code&gt;              android:label=&quot;@string/app_name&quot;
android:screenOrientation=&quot;portrait&quot;&gt;&lt;/code&gt;</pre>
<p>OR in the code :</p>
<p>[/java]</p>
<p><span style="font-family: monospace;">setRequestedOrientation (ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);     //  Fixed Portrait orientation[</span>/java]</p>
<p><strong>Layouts in Android : </strong><br />
<strong>LinearLayout </strong>:<br />
<code><a href="http://developer.android.com/reference/android/widget/LinearLayout.html">LinearLayout</a></code> aligns all children in a single direction — vertically or horizontally, depending on how you define the <code>orientation</code> attribute. All children are stacked one after the other, so a vertical list will only have one child per row, no matter how wide they are, and a horizontal list will only be one row high (the height of the tallest child, plus padding). A <code><a href="http://developer.android.com/reference/android/widget/LinearLayout.html">LinearLayout</a></code> respects <em>margin</em>s between children and the <em>gravity</em> (right, center, or left alignment) of each child.</p>
<p><strong>TableLayout :<br />
</strong><code><a href="http://developer.android.com/reference/android/widget/TableLayout.html">TableLayout</a></code> positions its children into rows and columns. TableLayout containers do not display border lines for their rows, columns, or cells. The table will have as many columns as the row with the most cells. A table can leave cells empty, but cells cannot span columns, as they can in HTML.</p>
<p><strong>RelativeLayout<br />
</strong><code><a href="http://developer.android.com/reference/android/widget/RelativeLayout.html">RelativeLayout</a></code> lets child views specify their position relative to the parent view or to each other (specified by ID). So you can align two elements by right border, or make one below another, centered in the screen, centered left, and so on. Elements are rendered in the order given, so if the first element is centered in the screen, other elements aligning themselves to that element will be aligned relative to screen center. Also, because of this ordering, if using XML to specify this layout, the element that you will reference (in order to position other view objects) must be listed in the XML file before you refer to it from the other views via its reference ID.</p>
<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://www.shahabfm.com/archives/2011/05/courseapp-android-development-tricks/&via=shahabfm&text=Android development tricks&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://www.shahabfm.com/archives/2011/05/courseapp-android-development-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Master student @ UiO</title>
		<link>http://www.shahabfm.com/archives/2010/01/master-student-uio/</link>
		<comments>http://www.shahabfm.com/archives/2010/01/master-student-uio/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 22:27:18 +0000</pubDate>
		<dc:creator>Shahab</dc:creator>
				<category><![CDATA[My Projects]]></category>
		<category><![CDATA[My Studies]]></category>
		<category><![CDATA[Shahab]]></category>
		<category><![CDATA[UiO]]></category>
		<category><![CDATA[IFI]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[University of Oslo]]></category>

		<guid isPermaLink="false">http://www.shahabfm.com/?p=453</guid>
		<description><![CDATA[I am admitted as a master student at university of Oslo. I can choose between many different fields, but I guess I am going to stick to Robotics. I think I&#8217;ll be writing my thesis in algorithm optimalization of intelligent systems.
Wish me lots of LUCK.
Tweet]]></description>
			<content:encoded><![CDATA[<p>I am admitted as a master student at university of Oslo. I can choose between many different fields, but I guess I am going to stick to Robotics. I think I&#8217;ll be writing my thesis in algorithm optimalization of intelligent systems.</p>
<p>Wish me lots of LUCK.</p>
<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://www.shahabfm.com/archives/2010/01/master-student-uio/&via=shahabfm&text=Master student @ UiO&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://www.shahabfm.com/archives/2010/01/master-student-uio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP project, report #1</title>
		<link>http://www.shahabfm.com/archives/2009/12/php-project-report-1/</link>
		<comments>http://www.shahabfm.com/archives/2009/12/php-project-report-1/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 18:51:58 +0000</pubDate>
		<dc:creator>Shahab</dc:creator>
				<category><![CDATA[My Projects]]></category>
		<category><![CDATA[Shahab]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[web designing]]></category>

		<guid isPermaLink="false">http://www.shahabfm.com/?p=449</guid>
		<description><![CDATA[I have already made a login system successfully with ability to login for users and root. The login system can redirect users to user pages and root to administration page. The root user has the power to delete or update the user informations(facing some difficulties here). The goal with this part was gaining experience with &#8230; <a href="http://www.shahabfm.com/archives/2009/12/php-project-report-1/">Read more <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have already made a login system successfully with ability to login for users and root. The login system can redirect users to user pages and root to administration page. The root user has the power to delete or update the user informations(facing some difficulties here). The goal with this part was gaining experience with PHP and Mysql database.</p>
<p>Next step in this project will be debugging and securing the login system and designing the right database tables for the main project(game).</p>
<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://www.shahabfm.com/archives/2009/12/php-project-report-1/&via=shahabfm&text=PHP project, report #1&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://www.shahabfm.com/archives/2009/12/php-project-report-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UiOToolbar v0.03 launched</title>
		<link>http://www.shahabfm.com/archives/2009/12/uio-toolbar/</link>
		<comments>http://www.shahabfm.com/archives/2009/12/uio-toolbar/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 09:37:26 +0000</pubDate>
		<dc:creator>Shahab</dc:creator>
				<category><![CDATA[My Projects]]></category>
		<category><![CDATA[Shahab]]></category>
		<category><![CDATA[UiO]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[UiOToolbar]]></category>
		<category><![CDATA[University of Oslo]]></category>

		<guid isPermaLink="false">http://www.shahabfm.com/?p=389</guid>
		<description><![CDATA[UioToolbar Version 0.3 is available. For downloading the Firefox extension click here, for source files click here. This version contains upgrade for Firefox 3.5. I have added new buttons for searching at UiO&#8217;s library. I have also added useful links to different faculties and IT support and webmail at university. More info about UiO Toolbar &#8230; <a href="http://www.shahabfm.com/archives/2009/12/uio-toolbar/">Read more <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>UioToolbar</strong> Version 0.3 is available. For downloading the Firefox extension <a href="http://shahabfm.com/projects/javascript/uiotoolbar/0.3/uiotoolbar_0_03.xpi">click here</a>, for source files <a href="http://shahabfm.com/projects/javascript/uiotoolbar/0.3/uiotoolbar_0_03.zip">click here</a>. This version contains upgrade for Firefox 3.5. I have added new buttons for searching at UiO&#8217;s library. I have also added useful links to different faculties and IT support and webmail at university. More info about UiO Toolbar can be found <a href="http://www.shahabfm.com/my-projects/uiotoolbar/">here</a>.</p>
<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://www.shahabfm.com/archives/2009/12/uio-toolbar/&via=shahabfm&text=UiOToolbar v0.03 launched&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://www.shahabfm.com/archives/2009/12/uio-toolbar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UiOToolbar project &#8230;</title>
		<link>http://www.shahabfm.com/archives/2009/04/uiotoolbar-project/</link>
		<comments>http://www.shahabfm.com/archives/2009/04/uiotoolbar-project/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 12:36:46 +0000</pubDate>
		<dc:creator>Shahab</dc:creator>
				<category><![CDATA[Shahab]]></category>
		<category><![CDATA[hobby]]></category>
		<category><![CDATA[My Projects]]></category>
		<category><![CDATA[Norway]]></category>
		<category><![CDATA[Oslo]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[UiO]]></category>
		<category><![CDATA[University of Oslo]]></category>

		<guid isPermaLink="false">http://www.shahabfm.com/?p=268</guid>
		<description><![CDATA[UiOToolbar is a mini project of mine and is developed to be used by few users at my work. This toolbar is a Firefox toolbar and is developed by Javascript codes. You can download the file by clicking here.

The toolbar has number of buttons which makes daily surfing easier for staffs at university of Oslo. &#8230; <a href="http://www.shahabfm.com/archives/2009/04/uiotoolbar-project/">Read more <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>UiOToolbar is a mini project of mine and is developed to be used by few users at my work. This toolbar is a Firefox toolbar and is developed by Javascript codes. You can download the file by <a title="UiOToolbar 0.1" href="http://shahabfm.com/projects/javascript/uiotoolbar/0.1/uiotoolbar.zip"><strong>clicking here</strong></a>.</p>
<p style="text-align: center;">
<div id="attachment_270" class="wp-caption aligncenter" style="width: 820px"><a href="http://www.shahabfm.com/wp-content/uploads/2009/04/uiotoolbar2.jpg"><img class="size-full wp-image-270" title="uiotoolbar2" src="http://www.shahabfm.com/wp-content/uploads/2009/04/uiotoolbar2.jpg" alt="UiOToolbar" width="810" height="37" /></a><p class="wp-caption-text">UiOToolbar 0.1</p></div>
<p>The toolbar has number of buttons which makes daily surfing easier for staffs at university of Oslo. The buttons would give the user the power to search directly from the toolbar in universities(UiO) database. User can also search both Google and Google images database directly from the toolbar.</p>
<p style="text-align: left;">
<div id="attachment_269" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.shahabfm.com/wp-content/uploads/2009/04/uiotoolbar.jpg"><img class="size-medium wp-image-269" title="uiotoolbar" src="http://www.shahabfm.com/wp-content/uploads/2009/04/uiotoolbar-300x47.jpg" alt="UiOToolbar" width="300" height="47" /></a><p class="wp-caption-text">UiOToolbar</p></div>
<p>I should mention that this is not an official University of Oslo pakcage and it was just developed locally by me to help some of my colleagues.</p>
<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://www.shahabfm.com/archives/2009/04/uiotoolbar-project/&via=shahabfm&text=UiOToolbar project ...&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://www.shahabfm.com/archives/2009/04/uiotoolbar-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

