Free PTV Home Live TV

Android SharedPreferences

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 Loader before Open Url In WebView

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…

Open File Chooser With Camera Option using web view

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…

Use ActionBarCompat in Android Example

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:

 

Get Contact Details Android

العربية: 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 »

Android Voice Recognition

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 »

 

Printing in Android Application

My this post is based on “How to Integrate printer in android app”. the best way of doing that Google cloud printing. Google provide us Print Dialog code, we can use it in our application. 1)Login with your gamil-id in your desktop and add your printers in your browser. 2)Create a demo app and put below code. 3)Add Internet permissions…

combine

Read More »

Exercise Tracker application Smart Phone

track info pageExercise Tracker application with PhoneGap. In this tutorial, the Track Workout page and complete the app by creating the History and Track Info pages.
Saving the GPS Data

When the user clicks the Stop Tracking button, we need to stop following their GPS location and save all of the GPS points that were recorded (tracking_data) into the database. We’ll also reset the text input box (in case they want to record another workout straight away) and we’ll display a message that we have stopped location tracking.

PhoneGap provides both browser-based Local Storage and a SQLite database as methods of storing data on the phone. The SQL database is a lot more powerful (due to the fact you can specify table schemas), but comes at the cost of code complexity. Local Storage is a simple key/value store that is easy to setup and use. Data is stored using the setItem(key, value) method, and retrieved using the getItem(key) method.
Read MOre