<?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>Start IT up</title>
	<atom:link href="http://www.techjini.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techjini.com/blog</link>
	<description>The blog of TechJini Solutions</description>
	<lastBuildDate>Fri, 30 Dec 2011 10:31:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Startup Weekend &#8211; Bangalore</title>
		<link>http://www.techjini.com/blog/2011/12/30/startup-weekend-bangalore/</link>
		<comments>http://www.techjini.com/blog/2011/12/30/startup-weekend-bangalore/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 10:25:49 +0000</pubDate>
		<dc:creator>Shiv</dc:creator>
				<category><![CDATA[techjini]]></category>

		<guid isPermaLink="false">http://www.techjini.com/blog/?p=709</guid>
		<description><![CDATA[Startup Weekend is coming to Bangalore! Startup Weekend is proud to announce that we will be holding our next event<a href="http://www.techjini.com/blog/2011/12/30/startup-weekend-bangalore/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/12/2850605_101331737_5758665.jpg"><img class="size-medium wp-image-710 aligncenter" title="2850605_101331737_5758665" src="http://www.techjini.com/blog/wp-content/uploads/2011/12/2850605_101331737_5758665-300x72.jpg" alt="" width="300" height="72" /></a>Startup Weekend is coming to Bangalore! Startup Weekend is proud to announce that we will be holding our next event in March on the 11th to the 13th at the Microsoft Signature Building (Embassy Golf Links Business Park Intermediate Ring Road, Domlur). The event features attendees, speakers, mentors, and judges from within local entrepreneurial community. Participants come from diverse backgrounds such as design, business development, IT, coding and developing, legal, and marketing. Judges and interested mentor volunteers are drawn from the local community and are encouraged to offer advice and mentoring to the participants throughout the weekend and following the final presentations.<br />
<a href="http://bangalore.startupweekend.org/tickets/"><img class="alignleft size-full wp-image-711" title="2850605_101331798_5758667.jpg" src="http://www.techjini.com/blog/wp-content/uploads/2011/12/2850605_101331798_5758667.jpg.png" alt="Register startup weekend" width="224" height="121" /></a><br />
Over the course of 54 hours the teams go from a basic idea through the stages of business plan development and early deployment. Some teams are even able to create working versions of their website or smart phone application, all teams are able to learn from one another and leave the event knowing more about themselves than when they arrived. The final stage of the event occurs on Sunday night when the teams come together one final time to hear final presentations and receive feedback from the panel of judges. Prizes from local sponsors support the future efforts of the startup such as cash, donations of services or goods, and opportunities for further mentorship.</p>
<h3>Startup Weekend: An Overview</h3>
<p>Startup Weekend is a non-profit organization based out of Seattle, WA USA. We consist of a small full time staff of eight along with community leaders in cities all over the globe. Startup Weekend’s primary mission is to be the most valuable and influential organization in startup communities around the world. Startup Weekend doesn’t have to teach entrepreneurship in a boring classroom setting, we model it in a fun, interactive, and results driven way. As a result, we have become one of the leading catalysts for startup creation, co-founder dating, and entrepreneurship education in startup ecosystems around the world.</p>
<p>Registration: <a href="http://bangalore.startupweekend.org/tickets/">http://bangalore.startupweekend.org/tickets/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techjini.com/blog/2011/12/30/startup-weekend-bangalore/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Insert and modify Contact in Android</title>
		<link>http://www.techjini.com/blog/2011/10/31/insert-and-modify-contact-in-android/</link>
		<comments>http://www.techjini.com/blog/2011/10/31/insert-and-modify-contact-in-android/#comments</comments>
		<pubDate>Mon, 31 Oct 2011 12:51:13 +0000</pubDate>
		<dc:creator>Shweta</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[android contact api]]></category>

		<guid isPermaLink="false">http://www.techjini.com/blog/?p=668</guid>
		<description><![CDATA[Android 2.0 provides new Contact API, which is defined in  android.provider.ContactsContract.  After some try on contact api I found a<a href="http://www.techjini.com/blog/2011/10/31/insert-and-modify-contact-in-android/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<div>Android 2.0 provides new Contact API, which is defined in  android.provider.ContactsContract.  After some try on contact api I found a better and easy solution for insertion and modification of contact.</div>
<p><code> </code></p>
<div><strong>Insert contact -</strong></div>
<p><code> </code></p>
<div><code>Intent addContactIntent = new Intent(Intent.ACTION_INSERT,		ContactsContract.Contacts.CONTENT_URI);</code></div>
<p><code> </code></p>
<div><code>addContactIntent.putExtra(ContactsContract.Intents.Insert.NAME,</code></div>
<p><code> </code></p>
<div><code>"xyz");</code></div>
<p><code> </code></p>
<div><code>addContactIntent.putExtra(ContactsContract.Intents.Insert.EMAIL,</code></div>
<p><code> </code></p>
<div><code>"abc@gmail.com");</code></div>
<p><code> </code></p>
<div><code>addContactIntent.putExtra(ContactsContract.Intents.Insert.PHONE,"012345678");</code></div>
<p><code></p>
<div>startActivity(addContactIntent);</div>
<p></code></p>
<div>ACTION_INSERT will start .EditContact activity.</div>
<p><code> </code></p>
<div><strong>Edit contacts -</strong></div>
<div>
<ul>
<li><strong>If _ID of contact is known</strong> -</li>
</ul>
</div>
<p><code> </code></p>
<div><code>Intent intent = new Intent(Intent.ACTION_EDIT);</code></div>
<p><code> </code></p>
<div><code>intent.setData(ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, _ID));</code></div>
<p><code> </code></p>
<div><code>startActivity(intent);</code></div>
<p><code> </code></p>
<div>
<ul>
<li><strong>If _ID of contact is not known -</strong></li>
</ul>
</div>
<div><strong>i)</strong> Find out conatct _ID by phone number .</div>
<div><code>// CONTENT_FILTER_URI allow to search contact by phone number</code></div>
<p><code> </code></p>
<div><code>Uri lookupUri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, Uri.encode(getPhone()));</code></div>
<p><code> </code></p>
<div><code>// This query will return NAME and ID of conatct, associated with phone //number.</code></div>
<p><code> </code></p>
<div><code>Cursor mcursor = getContentResolver().query(lookupUri,new String[] { PhoneLookup.DISPLAY_NAME, PhoneLookup._ID                    },null, null, null);</code></div>
<p><code> </code></p>
<div><code>//Now retrive _ID from query result</code></div>
<p><code> </code></p>
<div><code>long idPhone = 0;</code></div>
<p><code></p>
<div>try {</div>
<div>if (mcursor != null) {</div>
<div>if (mcursor.moveToFirst()) {</div>
<div>idPhone = Long.valueOf(mcursor.getString(mcursor			.getColumnIndex(PhoneLookup._ID)));</div>
<div>Log.d("", "Contact id::" + idPhone);</div>
<div>}</div>
<div>}</div>
<div>} finally {</div>
<div>mcursor.close();</div>
<div>}</div>
<p></code></p>
<div><strong>ii)</strong> Then Edit contact</div>
<p><code> </code></p>
<div><code>if (idPhone &gt; 0) {</code></div>
<p><code></p>
<div>Intent intent = new Intent(Intent.ACTION_EDIT);</div>
<div>intent.setData(ContentUris.withAppendedId(	ContactsContract.Contacts.CONTENT_URI, idPhone));</div>
<div>startActivity(intent);</div>
<div>} else {</div>
<div>Toast.makeText(getApplicationContext(), "contact not in list",</div>
<div>Toast.LENGTH_SHORT).show();</div>
<div>}</div>
<p></code></p>
<div>You can also search _ID by partial name, for this instead of PhoneLookup.CONTENT_FILTER_URI use ContactsContract.Contacts.CONTENT_FILTER_URI</div>
<div>To work with contact, you have to define special permission in AndroidManifest.xml .</div>
<p><code> </code></p>
<div><code>&lt;uses-permission android:name="android.permission.READ_CONTACTS" /&gt;</code></div>
<p><code> </code></p>
<div><code>&lt;uses-permission android:name="android.permission.WRITE_CONTACTS" /&gt;</code></div>
<p><code> </code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techjini.com/blog/2011/10/31/insert-and-modify-contact-in-android/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Historical timeline charts related to computer/electronics</title>
		<link>http://www.techjini.com/blog/2011/10/10/historical-timeline-charts-related-to-computerelectronics/</link>
		<comments>http://www.techjini.com/blog/2011/10/10/historical-timeline-charts-related-to-computerelectronics/#comments</comments>
		<pubDate>Mon, 10 Oct 2011 05:41:48 +0000</pubDate>
		<dc:creator>Samir</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[web 2.0]]></category>

		<guid isPermaLink="false">http://www.techjini.com/blog/?p=642</guid>
		<description><![CDATA[


Android

  
 



  
 



  
 



  
 



  
 



  
 



iPhone

 <a href="http://www.techjini.com/blog/2011/10/10/historical-timeline-charts-related-to-computerelectronics/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<table align="center"><!--Android Section--></p>
<tbody>
<tr>
<th rowspan="6">Android</th>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/android-phone-timeline.png"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/android-phone-timeline.png"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/android-phone-timeline1-150x100.png" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/android-phone-timeline.png"> </a></th>
</tr>
<tr>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Android_Timeline.jpg"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Android_Timeline.jpg"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/Android_Timeline1.jpg" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Android_Timeline.jpg"> </a></th>
</tr>
<tr>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/android-timeline-2.jpg"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/android-timeline-2.jpg"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/android-timeline-21-150x100.jpg" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/android-timeline-2.jpg"> </a></th>
</tr>
<tr>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Android_App.jpg"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Android_App.jpg"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/Android_App1.jpg" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Android_App.jpg"> </a></th>
</tr>
<tr>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Rise-Of-Android.jpg"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Rise-Of-Android.jpg"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/Rise-Of-Android1.jpg" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Rise-Of-Android.jpg"> </a></th>
</tr>
<tr>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Android_SDK_Timeline.png"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Android_SDK_Timeline.png"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/Android_SDK_Timeline1-150x100.png" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Android_SDK_Timeline.png"> </a></th>
</tr>
<p><!--iPhone Section--></p>
<tr>
<th>iPhone</th>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/iphone-timeline.jpg"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/iphone-timeline.jpg"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/iphone-timeline1-150x100.jpg" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/iphone-timeline.jpg"> </a></th>
</tr>
<p><!--Apple Section--></p>
<tr>
<th rowspan="3">Apple</th>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/apple-timeline-final.jpg"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/apple-timeline-final.jpg"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/apple-timeline-final1-150x100.jpg" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/apple-timeline-final.jpg"> </a></th>
</tr>
<tr>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/apple_evolution.jpg"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/apple_evolution.jpg"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/apple_evolution1.jpg" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/apple_evolution.jpg"> </a></th>
</tr>
<tr>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/apple-comp-timeline.png"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/apple-comp-timeline.png"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/apple-comp-timeline1-150x100.png" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/apple-comp-timeline.png"> </a></th>
</tr>
<p><!--Mac Section--></p>
<tr>
<th rowspan="3">Mac</th>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Macbook_Timeline.jpg"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Macbook_Timeline.jpg"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/Macbook_Timeline1-150x100.jpg" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Macbook_Timeline.jpg"> </a></th>
</tr>
<tr>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/mac-timeline.jpg"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/mac-timeline.jpg"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/mac-timeline1-150x100.jpg" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/mac-timeline.jpg"> </a></th>
</tr>
<tr>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/MacOStimeline.jpg"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/MacOStimeline.jpg"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/MacOStimeline1-150x100.jpg" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/MacOStimeline.jpg"> </a></th>
</tr>
<p><!--Bill Gates Section--></p>
<tr>
<th>Bill Gates</th>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/bill-gates-timeline3.jpg"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/bill-gates-timeline3.jpg"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/bill-gates-timeline31-150x100.jpg" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/bill-gates-timeline3.jpg"> </a></th>
</tr>
<p><!--Linux Section--></p>
<tr>
<th rowspan="2">Linux</th>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/44218linuxdistrotimelinqv0.png"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/44218linuxdistrotimelinqv0.png"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/44218linuxdistrotimelinqv01-150x100.png" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/44218linuxdistrotimelinqv0.png"> </a></th>
</tr>
<tr>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/linuxdistrotimeline-7.2.png"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/linuxdistrotimeline-7.2.png"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/linuxdistrotimeline-7.21.png" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/linuxdistrotimeline-7.2.png"> </a></th>
</tr>
<p><!--Windows CE Section--></p>
<tr>
<th>Windows CE</th>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Windows_CE_Timeline.png"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Windows_CE_Timeline.png"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/Windows_CE_Timeline1-150x100.png" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Windows_CE_Timeline.png"> </a></th>
</tr>
<p><!--Various Mobile OS Section--></p>
<tr>
<th>Various Mobile OS</th>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/iphone_android_Timeline.png"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/iphone_android_Timeline.png"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/iphone_android_Timeline1.png" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/iphone_android_Timeline.png"> </a></th>
</tr>
<p><!--Excel Section--></p>
<tr>
<th>Excel</th>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/microsoft-excel-timeline.png"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/microsoft-excel-timeline.png"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/microsoft-excel-timeline1.png" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/microsoft-excel-timeline.png"> </a></th>
</tr>
<p><!--Photoshop Section--></p>
<tr>
<th>Photoshop</th>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/definitive-photoshop-timeline.jpg"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/definitive-photoshop-timeline.jpg"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/definitive-photoshop-timeline1-150x100.jpg" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/definitive-photoshop-timeline.jpg"> </a></th>
</tr>
<p><!--Intel Section--></p>
<tr>
<th>Intel</th>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/computer-timeline.gif"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/computer-timeline.gif"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/computer-timeline1.gif" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/computer-timeline.gif"> </a></th>
</tr>
<p><!--Sony Section--></p>
<tr>
<th rowspan="2">Sony</th>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/sonytimelinehd2.jpg"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/sonytimelinehd2.jpg"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/sonytimelinehd21-150x100.jpg" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/sonytimelinehd2.jpg"> </a></th>
</tr>
<tr>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Trinitron-Timeline2.jpg"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Trinitron-Timeline2.jpg"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/Trinitron-Timeline21-150x100.jpg" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Trinitron-Timeline2.jpg"> </a></th>
</tr>
<p><!--Nokia Section--></p>
<tr>
<th>Nokia</th>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Nokia_timeline.jpg"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Nokia_timeline.jpg"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/Nokia_timeline1.jpg" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Nokia_timeline.jpg"> </a></th>
</tr>
<p><!--Social Media Section--></p>
<tr>
<th rowspan="3">Social Media</th>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/socialMediaTL_05.png"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/socialMediaTL_05.png"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/socialMediaTL_051-150x100.png" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/socialMediaTL_05.png"> </a></th>
</tr>
<tr>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/social_networking_timeline.jpg"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/social_networking_timeline.jpg"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/social_networking_timeline1.jpg" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/social_networking_timeline.jpg"> </a></th>
</tr>
<tr>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/social_media_timeline-779402.jpg"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/social_media_timeline-779402.jpg"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/social_media_timeline-7794021.jpg" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/social_media_timeline-779402.jpg"> </a></th>
</tr>
<p><!--Search Engines Section--></p>
<tr>
<th>Search Engines</th>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/search-engine-timeline.jpg"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/search-engine-timeline.jpg"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/search-engine-timeline1-150x100.jpg" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/search-engine-timeline.jpg"> </a></th>
</tr>
<p><!--Programming Languages Section--></p>
<tr>
<th>Programming Languages</th>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/tongues-cleaner.png"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/tongues-cleaner.png"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/tongues-cleaner1-150x100.png" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/tongues-cleaner.png"> </a></th>
</tr>
<p><!--W3C(Internet) Section--></p>
<tr>
<th>W3C(Internet)</th>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/W3C_Timeline.png"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/W3C_Timeline.png"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/W3C_Timeline1-150x100.png" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/W3C_Timeline.png"> </a></th>
</tr>
<p><!--Game Technology Section--></p>
<tr>
<th rowspan="2">Game Technology</th>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/video-game-timeline.jpg"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/video-game-timeline.jpg"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/video-game-timeline1-150x100.jpg" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/video-game-timeline.jpg"> </a></th>
</tr>
<tr>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/gameboy-timeline-HD.jpg"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/gameboy-timeline-HD.jpg"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/gameboy-timeline-HD1-150x100.jpg" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/gameboy-timeline-HD.jpg"> </a></th>
</tr>
<p><!--NFS Game Section--></p>
<tr>
<th>NFS Car Racing Game</th>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/NFS_Timeline.jpg"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/NFS_Timeline.jpg"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/NFS_Timeline1-150x100.jpg" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/NFS_Timeline.jpg"> </a></th>
</tr>
<p><!--CellPhone Section--></p>
<tr>
<th>CellPhone</th>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Cellphones-Timeline3.jpg"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Cellphones-Timeline3.jpg"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/Cellphones-Timeline31-150x100.jpg" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Cellphones-Timeline3.jpg"> </a></th>
</tr>
<p><!--Electronics Section--></p>
<tr>
<th rowspan="2">Electronics</th>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/205_Timeline.png"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/205_Timeline.png"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/205_Timeline1-150x100.png" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/205_Timeline.png"> </a></th>
</tr>
<tr>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/CE-TimeLine.jpg"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/CE-TimeLine.jpg"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/CE-TimeLine1.jpg" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/CE-TimeLine.jpg"> </a></th>
</tr>
<p><!--Universe(Space) Section--></p>
<tr>
<th rowspan="2">Universe(Space)</th>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Universe_Timeline.jpg"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Universe_Timeline.jpg"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/Universe_Timeline1.jpg" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Universe_Timeline.jpg"> </a></th>
</tr>
<tr>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/CosmicTimeline.jpg"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/CosmicTimeline.jpg"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/CosmicTimeline1-150x100.jpg" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/CosmicTimeline.jpg"> </a></th>
</tr>
<p><!--Software Section--></p>
<tr>
<th rowspan="2">Software</th>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Google_Vs_MS_Vs_Apple.jpg"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Google_Vs_MS_Vs_Apple.jpg"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/Google_Vs_MS_Vs_Apple1.jpg" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/Google_Vs_MS_Vs_Apple.jpg"> </a></th>
</tr>
<tr>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/SoftWareWar.png"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/SoftWareWar.png"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/SoftWareWar1.png" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/SoftWareWar.png"> </a></th>
</tr>
<p><!--Hardware Section--></p>
<tr>
<th>Hardware</th>
<th><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/computer-hardware-chart1.jpg"></a></p>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/computer-hardware-chart1.jpg"> <img src="http://www.techjini.com/blog/wp-content/uploads/2011/10/computer-hardware-chart11.jpg" border="0" alt="" /> </a></div>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2011/10/computer-hardware-chart1.jpg"> </a></th>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.techjini.com/blog/2011/10/10/historical-timeline-charts-related-to-computerelectronics/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Request Class Details</title>
		<link>http://www.techjini.com/blog/2011/10/05/request-class-details/</link>
		<comments>http://www.techjini.com/blog/2011/10/05/request-class-details/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 09:12:25 +0000</pubDate>
		<dc:creator>Avidnyat</dc:creator>
				<category><![CDATA[symfony]]></category>

		<guid isPermaLink="false">http://www.techjini.com/blog/?p=512</guid>
		<description><![CDATA[For importing Request Class use following statement
use Symfony\Component\HttpFoundation\Request;
Following statement creates object of class &#8220;Request&#8221;
$request = Request::createFromGlobals();
// the URI being requested<a href="http://www.techjini.com/blog/2011/10/05/request-class-details/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>For importing Request Class use following statement<br />
use Symfony\Component\HttpFoundation\Request;</p>
<p>Following statement creates object of class &#8220;Request&#8221;<br />
$request = Request::createFromGlobals();</p>
<p>// the URI being requested (e.g. /about) minus any query parameters<br />
Every Index of $_SERVER global variable can be accessed using Request object with using get method<br />
so for example to get $_SERVER['PATH_INFO'] using Request Object use following statement.</p>
<p>$request-&gt;getPathInfo();</p>
<p>// retrieve GET and POST variables respectively<br />
$request-&gt;query-&gt;get(&#8216;foo&#8217;);<br />
$request-&gt;request-&gt;get(&#8216;bar&#8217;);</p>
<p>// retrieves an instance of UploadedFile identified by foo<br />
$request-&gt;files-&gt;get(&#8216;foo&#8217;);</p>
<p>$request-&gt;getMethod();          // GET, POST, PUT, DELETE, HEAD<br />
$request-&gt;getLanguages();       // an array of languages the client accepts</p>
<p>List of functions available in Request class can be accessed via following link\</p>
<p>http://api.symfony.com/2.0/Symfony/Component/HttpFoundation/Request.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techjini.com/blog/2011/10/05/request-class-details/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>File size limit exceeded linux error</title>
		<link>http://www.techjini.com/blog/2011/10/05/file-size-limit-exceeded-linux-error/</link>
		<comments>http://www.techjini.com/blog/2011/10/05/file-size-limit-exceeded-linux-error/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 07:16:51 +0000</pubDate>
		<dc:creator>Avidnyat</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.techjini.com/blog/?p=518</guid>
		<description><![CDATA[This error can be fixed by checking command uname -a.
Here it will display max limits assigned to various resources.
If even<a href="http://www.techjini.com/blog/2011/10/05/file-size-limit-exceeded-linux-error/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>This error can be fixed by checking command uname -a.<br />
Here it will display max limits assigned to various resources.<br />
If even after assigning limits it is giving error it means one of your logs is having size which has exceeded the limit. Try by clearing your logs then everything must work fine.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techjini.com/blog/2011/10/05/file-size-limit-exceeded-linux-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Innovative Test Cases and Expected Results for Accelerometer, Compass And GPS</title>
		<link>http://www.techjini.com/blog/2011/09/30/innovative-test-cases-and-expected-results-for-accelerometer-compass-and-gps/</link>
		<comments>http://www.techjini.com/blog/2011/09/30/innovative-test-cases-and-expected-results-for-accelerometer-compass-and-gps/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 11:10:04 +0000</pubDate>
		<dc:creator>Samir</dc:creator>
				<category><![CDATA[Android Tablets]]></category>
		<category><![CDATA[BlackBerry]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Mobile Technology]]></category>

		<guid isPermaLink="false">http://www.techjini.com/blog/2011/09/30/innovative-test-cases-and-expected-results-for-accelerometer-compass-and-gps/</guid>
		<description><![CDATA[In current mobile technology, we use accelerometer, compass and GPS in latest mobile models. Here some innovative test cases and<a href="http://www.techjini.com/blog/2011/09/30/innovative-test-cases-and-expected-results-for-accelerometer-compass-and-gps/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>In current mobile technology, we use accelerometer, compass and GPS in latest mobile models. Here some innovative test cases and expected results of those components, when we test in some places like in the space, on any other planet, satellite, center of gravity of earth and center of magnetic field of earth. Those cases are discussed as following:</p>
<p>1. In space: In space, accelerometer, compass and GPS will not work. because accelerometer and compass have required gravity and magnetic field respectively. But when we use accelerometer and compass nearer any planet, then we get relative values as that planet&#8217;s field with some accuracy. and GPS will not work, if we are close to any other planet excluding earth. Because for GPS usage, we require human invented working satellites.</p>
<p>2. On any other planet (excluding earth): Still GPS will not work in any other planet. and we get relative values of accelerometer and compass as that planet.</p>
<p>3. On center of gravity of earth: We cannot predict results for accelerometer and GPS. It is possible that we get garbage values for accelerometer. and compass will work proper because location of center of gravity and location of center of magnetic field of earth are different.</p>
<p>4. On center of magnetic field of earth: In this case, we get garbage values for compass and get proper values for accelerometer and GPS. But still It is possible that if there is any relationship between gravity and magnetic field, then we get unknown results for accelerometer.</p>
<p>For all those cases, I expect results based on physics theories, but still we cannot guess exact results. Those all will work on so many parameters, planet atmosphere and other theories.</p>
<p>-Samir Solanki</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techjini.com/blog/2011/09/30/innovative-test-cases-and-expected-results-for-accelerometer-compass-and-gps/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Nine Patch Images useful for android</title>
		<link>http://www.techjini.com/blog/2011/09/29/nine-patch-images-useful-for-android-2/</link>
		<comments>http://www.techjini.com/blog/2011/09/29/nine-patch-images-useful-for-android-2/#comments</comments>
		<pubDate>Thu, 29 Sep 2011 13:05:34 +0000</pubDate>
		<dc:creator>Shweta</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[Nine patch]]></category>

		<guid isPermaLink="false">http://www.techjini.com/blog/?p=525</guid>
		<description><![CDATA[Android devices come in different screen sizes and density, often making it very difficult for developer to design an application<a href="http://www.techjini.com/blog/2011/09/29/nine-patch-images-useful-for-android-2/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<div>Android devices come in different screen sizes and density, often making it very difficult for developer to design an application for all screen sizes. Use of nine patch images can be very helpful for them. Mostly nine patch images are used as background for Buttons, Texts, Frames. Android provide a tool for creating nine patch images. It is available in android-sdk/tools directory named as draw9patch.</div>
<div>What is nine patch?</div>
<div>Nine patch images are simply PNG images with 9 patches as explained in figure -</div>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/09/nine_patch.png"><img class="aligncenter size-medium wp-image-527" src="http://www.techjini.com/blog/wp-content/uploads/2011/09/nine_patch-300x264.png" alt="" width="210" height="185" /></a></div>
<div>1,3,7,9 &#8211; Not scalable area</div>
<div>2 &#8211; Horizontal scalable area</div>
<div>4 &#8211; Vertical scale area</div>
<div>6,8 &#8211; Text Area</div>
<div>For scaling purpose you have to give guideline for both area(2,4). Otherwise converted nine patch image will not be proper nine patch.</div>
<div>ex -</div>
<div><a href="http://www.techjini.com/blog/wp-content/uploads/2011/09/nine-patch-example2.png"><img class="aligncenter size-medium wp-image-526" src="http://www.techjini.com/blog/wp-content/uploads/2011/09/nine-patch-example2-300x177.png" alt="" width="300" height="177" /></a></div>
<div>So basically the intersection of horizontal and vertical guideline&#8217;s pixels will replicate. Guidelines for text area is optional.</div>
<div>Nine patch images can not be scale down, so use of mdpi images are baseline for dp scaling(Ignoring ldpi). Here is a link to learn how to draw nine patch images- http://developer.android.com/guide/developing/tools/draw9patch.html</div>
]]></content:encoded>
			<wfw:commentRss>http://www.techjini.com/blog/2011/09/29/nine-patch-images-useful-for-android-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Batch Insert to SQLite database on Android</title>
		<link>http://www.techjini.com/blog/2011/06/29/batch-insert-to-sqlite-database-on-android/</link>
		<comments>http://www.techjini.com/blog/2011/06/29/batch-insert-to-sqlite-database-on-android/#comments</comments>
		<pubDate>Wed, 29 Jun 2011 12:05:01 +0000</pubDate>
		<dc:creator>Meghana</dc:creator>
				<category><![CDATA[android]]></category>

		<guid isPermaLink="false">http://www.techjini.com/blog/?p=455</guid>
		<description><![CDATA[Database operations are slow and in a situation where thousands of records have to be inserted, inserting each record consumes<a href="http://www.techjini.com/blog/2011/06/29/batch-insert-to-sqlite-database-on-android/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>Database operations are slow and in a situation where thousands of records have to be inserted, inserting each record consumes a lot of time and affects the performance of the application. In such situations,batch insert saves some overhead. A significant amount of time can be saved if batch inserts are made in a single transaction.</p>
<p>SQLite provides three simple methods in SQLiteDatabase class :<br />
beginTransaction();<br />
setTransactionSuccessful();<br />
endTransaction();</p>
<p>These methods can be used to make all the insert calls in the same batch in a single transaction. Transactions are used  when there is a  need to perform a series of queries that either all complete or all fail. When a SQLite transaction fails an exception will be thrown. Start a transaction by calling the beginTransaction() method. Perform the database operations and then call the setTransactionSuccessful() to commit the transaction. Once the transaction is complete call the endTransaction() function.</p>
<p>A sample example code is shown below:</p>
<p>// Begin the transaction<br />
db.beginTransaction();<br />
try{<br />
for each record in the list{<br />
ContentValues contentValues=new ContentValues();<br />
contentValues.put(COLUMN_NAME,record);<br />
db.insert(TABLE_NAME,null,contentValues);</p>
<p>}<br />
// Transaction is successful and all the records have been inserted<br />
db.setTransactionSuccessful();<br />
}catch(Exception e){<br />
Log.e(“Error in transaction”,e.toString());<br />
}finally{<br />
//End the transaction<br />
db.endTransaction();<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techjini.com/blog/2011/06/29/batch-insert-to-sqlite-database-on-android/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Customizing Background and Text color in Options Menu Android</title>
		<link>http://www.techjini.com/blog/2011/04/19/customizing-background-and-text-color-in-options-menu-android/</link>
		<comments>http://www.techjini.com/blog/2011/04/19/customizing-background-and-text-color-in-options-menu-android/#comments</comments>
		<pubDate>Tue, 19 Apr 2011 11:53:22 +0000</pubDate>
		<dc:creator>Meghana</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[android]]></category>

		<guid isPermaLink="false">http://www.techjini.com/blog/?p=454</guid>
		<description><![CDATA[Options menu in android can be customized to set the background or change the text appearance. The background and text<a href="http://www.techjini.com/blog/2011/04/19/customizing-background-and-text-color-in-options-menu-android/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>Options menu in android can be customized to set the background or change the text appearance. The background and text color in the menu couldn&#8217;t be changed using themes and styles. The android source code (data\res\layout\icon_menu_item_layout.xml)uses a custom item of class “com.android.internal.view.menu.IconMenuItem”View for the menu layout. We can make changes in the above class to customize the menu. To achieve the same, use LayoutInflater factory class and set the background and text color for the view.</p>
<p>@Override<br />
public boolean onCreateOptionsMenu(Menu menu) {<br />
MenuInflater inflater = getMenuInflater();<br />
inflater.inflate(R.menu.my_menu, menu);</p>
<p>getLayoutInflater().setFactory(new Factory() {<br />
@Override<br />
public View onCreateView(String name, Context context,<br />
AttributeSet attrs) {</p>
<p>if (name			.equalsIgnoreCase(&#8220;com.android.internal.view.menu.IconMenuItemView&#8221;)) {<br />
try {<br />
LayoutInflater f = getLayoutInflater();<br />
final View view = f.createView(name, null, attrs);</p>
<p>new Handler().post(new Runnable() {<br />
public void run() {</p>
<p>// set the background drawable<br />
view					           									.setBackgroundResource(R.drawable.my_ac_menu_background);</p>
<p>// set the text color<br />
((TextView) view).setTextColor(Color.WHITE);<br />
}<br />
});<br />
return view;<br />
} catch (InflateException e) {<br />
} catch (ClassNotFoundException e) {<br />
}<br />
}<br />
return null;<br />
}<br />
});<br />
return super.onCreateOptionsMenu(menu);<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techjini.com/blog/2011/04/19/customizing-background-and-text-color-in-options-menu-android/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to change foreground &amp; background colors in a webview.</title>
		<link>http://www.techjini.com/blog/2011/04/19/how-to-change-foreground-background-colors-in-a-webview/</link>
		<comments>http://www.techjini.com/blog/2011/04/19/how-to-change-foreground-background-colors-in-a-webview/#comments</comments>
		<pubDate>Tue, 19 Apr 2011 09:20:49 +0000</pubDate>
		<dc:creator>Ravi</dc:creator>
				<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[techjini]]></category>
		<category><![CDATA[android tips]]></category>
		<category><![CDATA[android tutorial]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.techjini.com/blog/?p=471</guid>
		<description><![CDATA[At times we need to change the font or background color of the webview in Android to make it more<a href="http://www.techjini.com/blog/2011/04/19/how-to-change-foreground-background-colors-in-a-webview/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>At times we need to change the font or background color of the webview in <a href="http://www.techjini.com/services-android.html">Android </a>to make it more readable or to conform to a design of your app. This post will show how simple it can be to almost always achieve the result. The latter is more simple as webview provides an API :</p>
<pre><a title="http://developer.android.com/reference/android/webkit/WebView.html#setBackgroundColor(int)" href="http://">setBackgroundColor (int color)</a></pre>
<p>What one must note is if the HTML contains a value for the background it will override the color we set. The same is true for the foreground color too.</p>
<p>For the foreground color we make use of CSS to set the color and add it to the content we want to display in a div element wrapping the html we need to display. Here is the sample code</p>
<pre>private final String htmlbegin = "&lt;div style=\"color:#FFFFFF ;  \"&gt;";
private final String htmlend = " &lt;/div&gt;";
private final String htmlBody = "&lt;p&gt;Summary&lt;/p&gt;"
	+ "&lt;p&gt;Strong text&lt;/strong&gt; Somemore text"
	+ "and the final line&lt;/p&gt;";
WebView body;

@Override
public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.main);

	body = (WebView) findViewById(R.id.message_body);
	body.setBackgroundColor(0);

	// body.setDef
	body.loadDataWithBaseURL("", htmlbegin + htmlBody + htmlend,
		"text/html", "utf-8", "");
}</pre>
<p>As I stated before any css inside the html will override our css settings.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techjini.com/blog/2011/04/19/how-to-change-foreground-background-colors-in-a-webview/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

