Archive

Archive for October, 2011

TextToSpeach Example

October 18, 2011 Leave a comment

One of the many features that Android provides out of the box is the one of “speech synthesis”. This is also known as “Text-To-Speech” (TTS) and is mainly the capability of the device to “speak” text of different languages. This feature was introduced in version 1.6 of the Android platform and you can find an introductory article at the official Android-Developers blog.
Read more…

Advertisements
Categories: Uncategorized

How to get Name, Phone No, Email, IM, Organizations from contacts

October 13, 2011 Leave a comment

Learn to work with the Android contacts database. Basic knowledge of accessing SQLite in Android along with using Cursors is expected. See the Android SQLite and Cursor Article for more information. Google changed the contacts database moving from 1.x to 2.0 versions of Android. This tutorial will be broken into 3 sections. First covering accessing contacts in Android 2.0. The second page will deal with accessing the contacts in Android 1.6 and before. Third we’ll glue it all together with a class that abstracts specific classes for each version and a set of classes to manage the data from the contact records.
Read more…

Categories: Uncategorized

How to disable Home Button

October 7, 2011 Leave a comment

How to disable Home Keys by prgraming
1. @Override
public void onAttachedToWindow()
{
this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);
super.onAttachedToWindow();
}

2. @Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if ((keyCode == KeyEvent.KEYCODE_HOME)) {
return false;
}
return super.onKeyDown(keyCode, event);
}

Doing that prevents the device from going to the Home screen / app when pressing the Home key in your app … ?

Categories: Uncategorized
%d bloggers like this: