<?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>IT Wizard &#187; android java</title>
	<atom:link href="http://www.itwizard.ro/category/android-java/feed" rel="self" type="application/rss+xml" />
	<link>http://www.itwizard.ro</link>
	<description>embedded / mobile phone development</description>
	<lastBuildDate>Wed, 02 Dec 2009 14:21:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Projects based on Mezzofanti &#8211; Droidslator</title>
		<link>http://www.itwizard.ro/projects-based-on-mezzofanti-droidslator-361.html</link>
		<comments>http://www.itwizard.ro/projects-based-on-mezzofanti-droidslator-361.html#comments</comments>
		<pubDate>Mon, 02 Nov 2009 14:17:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[android java]]></category>
		<category><![CDATA[products]]></category>

		<guid isPermaLink="false">http://www.itwizard.ro/?p=361</guid>
		<description><![CDATA[We are happy other people reuse our code. From the groups of people from academia and industry that use Mezzofanti, we are pleased to point to this project &#8211; because it is an Apache License 2.0 project, that looks for contributors.
http://code.google.com/p/droidslator/
Droidslator version 1.0 is the first language translation program desiged for android-powered phones, seamlessly combined [...]]]></description>
		<wfw:commentRss>http://www.itwizard.ro/projects-based-on-mezzofanti-droidslator-361.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using the keys events (keyboard)</title>
		<link>http://www.itwizard.ro/using-the-keys-events-keyboard-140.html</link>
		<comments>http://www.itwizard.ro/using-the-keys-events-keyboard-140.html#comments</comments>
		<pubDate>Tue, 25 Aug 2009 15:36:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[android java]]></category>
		<category><![CDATA[events]]></category>
		<category><![CDATA[key]]></category>
		<category><![CDATA[keyboard]]></category>

		<guid isPermaLink="false">http://www.itwizard.ro/?p=140</guid>
		<description><![CDATA[(Android phone &#8211; how-to/example)
There are two methods you need to override:
onKeyDown &#8211; that is called when the key is pressed
onKeyUp &#8211; that is called when the key is released
This is how your code will look like:
@Override
public boolean onKeyDown(int keyCode, KeyEvent event)
{
    switch (keyCode) {
&#160;&#160;&#160;&#160; case KeyEvent.KEYCODE_FOCUS: /* .. code for KEYCODE_FOCUS .. [...]]]></description>
		<wfw:commentRss>http://www.itwizard.ro/using-the-keys-events-keyboard-140.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create a standard Android Menu</title>
		<link>http://www.itwizard.ro/how-to-create-a-standard-android-menu-135.html</link>
		<comments>http://www.itwizard.ro/how-to-create-a-standard-android-menu-135.html#comments</comments>
		<pubDate>Tue, 25 Aug 2009 15:21:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[android java]]></category>
		<category><![CDATA[menu]]></category>

		<guid isPermaLink="false">http://www.itwizard.ro/?p=135</guid>
		<description><![CDATA[(Android phone &#8211; how-to/example)
Maybe you&#8217;ve noticed the menu that appears when you are in desktop and press &#8220;menu-key&#8221;, almost all applications implement this feature, and it looks pretty nice. If you want to include it in your code, this is how.
First override the onCreateOptionsMenu.
    @Override
    public boolean onCreateOptionsMenu(Menu menu)
 [...]]]></description>
		<wfw:commentRss>http://www.itwizard.ro/how-to-create-a-standard-android-menu-135.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom widgets</title>
		<link>http://www.itwizard.ro/custom-widgets-131.html</link>
		<comments>http://www.itwizard.ro/custom-widgets-131.html#comments</comments>
		<pubDate>Tue, 25 Aug 2009 15:02:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[android java]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://www.itwizard.ro/?p=131</guid>
		<description><![CDATA[(Android phone &#8211; how-to/example)
If you consider doing your own custom widgets, you must start by creating a new class, that extends android.view.View
The simplest example is customizing a bit the screen layout. Consider you want to draw a frame, on top of an image or the camera preview. In this example you just need to extend [...]]]></description>
		<wfw:commentRss>http://www.itwizard.ro/custom-widgets-131.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shared Preferences</title>
		<link>http://www.itwizard.ro/shared-preferences-119.html</link>
		<comments>http://www.itwizard.ro/shared-preferences-119.html#comments</comments>
		<pubDate>Tue, 25 Aug 2009 13:08:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[android java]]></category>
		<category><![CDATA[shared preferences]]></category>

		<guid isPermaLink="false">http://www.itwizard.ro/?p=119</guid>
		<description><![CDATA[(Android phone &#8211; how-to/example)
The android.content.SharedPreferences may be useful if you want to save some application settings in a file, and share them through-out all the activities in your application. One cool feature is that the SharedPreferences is directly linked to the android.preference package, that is if you use a android.preference.PreferenceActivity in your application for storing/retrieving [...]]]></description>
		<wfw:commentRss>http://www.itwizard.ro/shared-preferences-119.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get the orientation of the phone</title>
		<link>http://www.itwizard.ro/get-the-orientation-of-the-phone-116.html</link>
		<comments>http://www.itwizard.ro/get-the-orientation-of-the-phone-116.html#comments</comments>
		<pubDate>Tue, 25 Aug 2009 12:47:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[android java]]></category>
		<category><![CDATA[listener]]></category>
		<category><![CDATA[orientation]]></category>

		<guid isPermaLink="false">http://www.itwizard.ro/?p=116</guid>
		<description><![CDATA[(Android phone &#8211; how-to/example)
If your application is dependent on the orientation of the phone, you may like to take a look at android.view.OrientationEventListener package.
To create the OrientationListener you will need the current activity Context.
private void CreateOrientationListener(Context context)
{
&#160;&#160; m_OEListener = new OrientationEventListener (context, SensorManager.SENSOR_DELAY_UI)
&#160;&#160; {
&#160;&#160; public void onOrientationChanged (int orientation)
&#160;&#160; {
&#160;&#160; // in orientation you will [...]]]></description>
		<wfw:commentRss>http://www.itwizard.ro/get-the-orientation-of-the-phone-116.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Broadcast Receiver</title>
		<link>http://www.itwizard.ro/broadcast-receiver-112.html</link>
		<comments>http://www.itwizard.ro/broadcast-receiver-112.html#comments</comments>
		<pubDate>Tue, 25 Aug 2009 12:33:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[android java]]></category>
		<category><![CDATA[broadcast receiver]]></category>
		<category><![CDATA[sdcard]]></category>

		<guid isPermaLink="false">http://www.itwizard.ro/?p=112</guid>
		<description><![CDATA[(Android phone &#8211; how-to/example)
Android implements in an elegant manner the intent broadcast. One will use this, if for example you want to register to some actions (ex: one wants to know when something happens to the sdcard).
For the sdcard example, in order to register your &#8220;intentions&#8221;, use the following:
IntentFilter intentFilter = new IntentFilter(Intent.ACTION_MEDIA_MOUNTED);
intentFilter.addAction(Intent.ACTION_MEDIA_UNMOUNTED);
intentFilter.addAction(Intent.ACTION_MEDIA_SCANNER_STARTED);
intentFilter.addAction(Intent.ACTION_MEDIA_SCANNER_FINISHED);
intentFilter.addAction(Intent.ACTION_MEDIA_CHECKING);
intentFilter.addAction(Intent.ACTION_MEDIA_EJECT);
intentFilter.addDataScheme(&#8221;file&#8221;);
registerReceiver(m_brSDcardEvent, intentFilter);
where m_brSDcardEvent [...]]]></description>
		<wfw:commentRss>http://www.itwizard.ro/broadcast-receiver-112.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Message Handler</title>
		<link>http://www.itwizard.ro/the-message-handler-109.html</link>
		<comments>http://www.itwizard.ro/the-message-handler-109.html#comments</comments>
		<pubDate>Tue, 25 Aug 2009 12:18:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[android java]]></category>
		<category><![CDATA[message handler]]></category>

		<guid isPermaLink="false">http://www.itwizard.ro/?p=109</guid>
		<description><![CDATA[(Android phone &#8211; how-to/example)
A Handler allows you to send and process Message and Runnable objects associated with a thread&#8217;s MessageQueue. Each Handler instance is associated with a single thread and that thread&#8217;s message queue. When you create a new Handler, it is bound to the thread / message queue of the thread that is creating [...]]]></description>
		<wfw:commentRss>http://www.itwizard.ro/the-message-handler-109.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using the vibrator, playing a DTMF sound</title>
		<link>http://www.itwizard.ro/using-the-vibrator-playing-a-dtmf-sound-106.html</link>
		<comments>http://www.itwizard.ro/using-the-vibrator-playing-a-dtmf-sound-106.html#comments</comments>
		<pubDate>Tue, 25 Aug 2009 11:56:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[android java]]></category>
		<category><![CDATA[dtmf]]></category>
		<category><![CDATA[play sound]]></category>
		<category><![CDATA[vibrator]]></category>

		<guid isPermaLink="false">http://www.itwizard.ro/?p=106</guid>
		<description><![CDATA[(Android phone &#8211; how-to/examples)
So you want to make the Android vibe, with one of your actions. For this use android.os.Vibrator
Basically there are 2 lines of code:
Vibrator vibrator = (Vibrator) getSystemService(VIBRATOR_SERVICE);
vibrator.vibrate(milliseconds);
Playing a sound on Android is just as easy:
Use android.media.ToneGenerator
ToneGenerator tg = new ToneGenerator(AudioManager.STREAM_SYSTEM, 100);
tg.startTone(ToneGenerator.TONE_PROP_BEEP2);


Bookmark It



















Hide Sites



$$('div.d106').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); ]]></description>
		<wfw:commentRss>http://www.itwizard.ro/using-the-vibrator-playing-a-dtmf-sound-106.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get the disk free size?</title>
		<link>http://www.itwizard.ro/how-to-get-the-disk-free-size-104.html</link>
		<comments>http://www.itwizard.ro/how-to-get-the-disk-free-size-104.html#comments</comments>
		<pubDate>Tue, 25 Aug 2009 11:49:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[android java]]></category>
		<category><![CDATA[disk free size]]></category>

		<guid isPermaLink="false">http://www.itwizard.ro/?p=104</guid>
		<description><![CDATA[(Android phone &#8211; how-to/example)
This is a little different from Java, Android has a separate package that partly deals with this problem.
Use
android.os.Environment to get the sdcard (if needed).
android.os.StatFs &#8211; >
The function is straight forward:
public static long GetFreeSpaceB()
{
&#160;&#160;        try
&#160;&#160;        {
&#160;&#160;&#160;&#160; String storageDirectory = [...]]]></description>
		<wfw:commentRss>http://www.itwizard.ro/how-to-get-the-disk-free-size-104.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
