Thursday, 4 September 2014

View Microsoft Word Document:


            In this Example we will see how to view a ms word document through an android app. Here we will open the .doc file saved in the SD card with an application which can view the doc file such as Quick Office , Office suite or any other application capable of reading .doc or docx files.

Screenshot :
         










  Download Code Here

             WordDocView

         

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Wake Lock:


            There are situation where you want your application not to sleep. It happens when you create a game like chess where the user spends more time in thinking than touching the mobile screen or when you are working with camera. So if you choose to do so you should acquire a WakeLock.

Wake Lock

         

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Tuesday, 2 September 2014


Text Recognition:


            Text Recognition is used to convert user’s text to voice. In this tutorial we are going to implement Google Speech Recognition in our Android Application which will convert user’s text to voice.

Screenshot :
         









  Download Code Here

             Text Recognition

         

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Voice Recognition:


            Speech Recognition is used to convert user’s voice to text. In this tutorial we are going to implement Google Speech Recognition in our Android Application which will convert user’s voice to text and it will display it in TextView.

Screenshot :
         














  Download Code Here

             Speech Recognition

         

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Notification:


            A Notification is a message you can display to the user outside of your application's normal UI. When you tell the system to issue a notification, it first appears as an icon in the notification area. To see the details of the notification, the user opens the notification drawer. Both the notification area and the notification drawer are system-controlled areas that the user can view at any time.

Screenshot :
         











  Download Code Here

             Notification

         

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Monday, 1 September 2014

Android Sample Coding-PART 9:


1.Action bar with Tab:


            Android action bar was introduced to maintain a consistent navigation across the application. It has the powerful capabilities like adapting to screen configurations (landscape & portrait), prioritizing important actions, adding widgets to action bar (search, sharing etc.), providing navigation between screens (drop-down & tabbed navigation) and much more.

Screenshot :
         









  Download Code Here

             Action Bar

         

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Thursday, 21 August 2014

Android Sample Coding-PART 8:


1.JSON:


            JSON  is very light weight, structured, easy to parse and much human readable. JSON is best alternative to XML when your android app needs to interchange data with your server.

JSON is one of the best method for storing data. JSON data has both square brackets and curly brackets. The square brackets denote JSON Array and curly bracket denotes JSON Object. 


Screenshot :

          JSON Structure:









  Download Code Here

             JSON Parsing

         

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Thursday, 14 August 2014

Android Sample Coding-PART 7:


1.SQLITE:


            SQLITE  is an Open Source Database which is embedded into Android. SQLite supports standard relational database features like SQL syntax, transactions and prepared statements. In addition it requires only little memory at runtime (approx. 250 KByte).

SQLite supports the data types TEXT (similar to String in Java), INTEGER (similar to long in Java) andREAL (similar to double in Java). All other types must be converted into one of these fields before saving them in the database. SQLite itself does not validate if the types written to the columns are actually of the defined type, e.g. you can write an integer into a string column and vice versa. 



Screenshot :

          













  Download Code Here

             SQLITE Example1

             SQLITE Example2

             SQLITE Example3

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2.Shared Preferences:


            SharedPreferences   class provides general framework that allows you to save  and retreive persistent key-value pairs of primitive datatypes. 



Screenshot :

          







  Download Code Here

             Shared Preference

           

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2.Shared Preferences Using SESSION:


            SharedPreferences   class provides general framework that allows you to save  and retreive persistent key-value pairs of primitive datatypes. 


Screenshot :

          








  Download Code Here

             Shared Preference

           

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Tuesday, 12 August 2014

Android Sample Coding-PART 6:


1.Fragment:


            Fragment class in Android is used to build dynamic User Interfaces. Fragments should be used within the Activity. A greatest advantage of fragments is that it simplifies the task of creating UI for multiple screen sizes. A activity can contain any number of fragments.



Screenshot :

          






  Download Code Here

             Fragment

          

            

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2.Sliding Navigation Drawer:


            Sliding Navigation Drawer which is revealed when you swipe across the screen from left edge , which would be hidden rest of time.


Screenshot :

          








  Download Code Here

             Sliding Navigation Drawer

          

            

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

3.Drag and Drop:


            Drag Drop  can be used to drag data from a view and drop it in another view.


Screenshot :

          






  Download Code Here

             DragnDrop

          

            

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

4.Text Watcher:


            Text Watcher   can be used to watch a input text field and you can instantly update data on other views. It can be useful for counting the number of characters entered in the text field instantly and measuring password strength on entering etc .


Screenshot :

          








  Download Code Here

             TextWatcher

          

            

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Monday, 11 August 2014

Android Sample Coding-PART 5:


1.Progress Bar:


            Progress Bar  are used to show progress of a task. For example. When you are uploading or downloading something from the internet, it is better to show the progress of download/upload to the user.
 <ProgressBar
     style="@android:style/Widget.ProgressBar.Horizontal"
     ... />

Other progress bar styles provided by the system include:

  1. Widget.ProgressBar.Horizontal
  2. Widget.ProgressBar.Small
  3. Widget.ProgressBar.Large
  4. Widget.ProgressBar.Inverse
  5. Widget.ProgressBar.Small.Inverse
  6. Widget.ProgressBar.Large.Inverse  

Screenshot :

          1.1. Progress Bar:



   



          1.2.ProgressBar Dialog:





  Download Code Here

             Progress Bar

            ProgressBar Dialog

            

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2.Spinner:


            Spinner  are  not nothing but the dropdownlist seen in other programming languages. It provides a easy way to select  value from  list. Clicking spinner will display a dropdownlist with the available values.

Screenshot :

          




  Download Code Here

             Spinner

          

            

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


3.Toggle Button:


            Toggle   button allows the user to change a setting between two states.


You can add a basic toggle button to your layout with the Toggle Button object.


Screenshot :

          





  Download Code Here

             Toggle

         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~