Archive for the ‘Android Posts’ Category

Advertisements

Shared_preferences_android_3

In Android SharedPreferences tutorial,You can save and retrieve key, value pair data from Shared preferences. SharedPreferences values will persist across user sessions. Data in shared preferences will be persistent even though user closes the application. You can get values from Shared preferences using getSharedPreferences() method. You also need an editor to edit and save the…

Read more: http://latest-tutorial.com/#ixzz2scwEy6U8

show_Loading_in_web_view_1WebView is a View that displays web pages.If want to display html as the part of your UI then you can use WebView in your APP.

In ths tutorial:  

1. Opening url in webview.

2. Showing loader before page load.  

3. Click opened url any link and again open page in webview. File…

Click_on_Open_link_in_new_browser_7

In this Tutorial:  

1.  Opening url in webview and show progress for particular page.  

2.  Show file chooser for Webform file option.  

3.  Show Camera option in file chooser, capture image from camera and store in sdcard and select image for file option.  

4.  For an url click open new activity.  

5.  Open link from…

testActionBarCompat

Android 4.3 and Nexus 7 announced, Google released a new backward-compatible Action Bar implementation called ActionBarCompat that’s part of the Support Library r18. The ActionBarCompat APIs let you build the essential Action Bar design pattern into your app, with broad compatibility back to Android 2.1.

ActionBarCompat Step-by-step:

 

العربية: Android logo
Get Contact Details (ID, Name, Phone, Photo)

res/layout/main.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:orientation="vertical"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent" >
    <Button android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="Select a Contact"
            android:onClick="onClickSelectContact" />
    <ImageView android:id="@+id/img_contact"
               android:layout_height="wrap_content"
               android:layout_width="match_parent"
               android:adjustViewBounds="true"
               android:contentDescription="Contacts Image"
                />
</LinearLayout>

Read More »

You may have heard about the “ Google Now project” where you give the voice command and Android fetches result for you. It recognizes your voice and converts it into the text or takes the appropriate action. Have you ever thought how is it done? If your answer is voice recognition API, then you are absolutly right. Recently while playing with Android voice recognition APIs, I found some interesting stuffs. APIs are really easy to use with application. Given below is a small tutorial on voice/speech recognition API. The final application will look similar to that of application shown below. The application may not work on the Android Emulator because it doesn’t support voice recognition. But the same can work on the phone.

Read More »