Tag: Android

  • Play video in Android with example

    In this tutorial explain that how to play video in android. Taking a video(3gp) file inside application raw folder and playing in on activity. The file structure is given as below:  AndroidVideoPlayer.java Create a file in src as androidvideoplayer.java and use given code. Using VideoView class to load video from various sources , takes care […]

    Posted in: Android

  • Creating Android Layout

    Android layout is a class that handles arranging the way its children appear on the screen.  Anything that is a View can be a child of a layout. All of the layouts inherit from ViewGroup so you can nest layouts.  You could also create your own custom layout by making a class that inherits from […]

    Posted in: Android

  • ToggleButton

    Following are the important attributes related to ToggleButton control. You can check Android official documentation for complete list of attributes and related methods which you can use to change these attributes are run time. Attribute Description android:disabledAlpha This is the alpha to apply to the indicator when disabled. android:textOff This is the text for the […]

    Posted in: Android

  • Custom Toast in Android

    You are able to create Custom Toast in Android. So, you can display some images like congratulations or loss on the toast. It means you are able to customize the toast now. activity_main.xml Drag the component that you want to display on the main activity. File: activity_main.xml

    customtoast.xml Create another xml file inside the […]

    Posted in: Android

  • Android Button Example

    Android Button Example represents a push-button. The android.widget.Button is subclass of TextView class and CompoundButton is the subclass of Button class. There are different types of buttons in android such as RadioButton, ToggleButton, CompoundButton etc. Here, we are going to create two textfields and one button for sum of two numbers. If user clicks button, sum […]

    Posted in: Android

  • Android R.java file

    Android R.java is an auto-generated file by aapt (Android Asset Packaging Tool) that contains resource IDs for all the resources of res/ directory. If you create any component in the activity_main.xml file, id for the corresponding component is automatically created in this file. This id can be used in the activity source file to perform […]

    Posted in: Android

  • AndroidManifest.xml file in android

    The AndroidManifest.xml file contains information of your package, including components of the application such as activities, services, broadcast receivers, content providers etc. It performs some other tasks also: It is responsible to protect the application to access any protected parts by providing the permissions. It also declares the android api that the application is going […]

    Posted in: Android

  • Android Emulator

    Android Emulator Below point will help you to know the Android Emulator Emulator is used to run, debug and test the android application. If you don’t have the real device, it can be the best way to run, debug and test the application. It uses an open source processor emulator technology called QEMU. The emulator tool […]

    Posted in: Android

  • Android Architecture

    Android Architecture or Android software stack is categorized into five parts: linux kernel native libraries (middleware), Android Runtime Application Framework Applications Let’s see the android architecture first. 1) Linux kernel It is the heart of android architecture that exists at the root of android architecture. Linux kernel is responsible for device drivers, power management, memory […]

    Posted in: Android

  • History of Android

    The History of Android and versions of android are interesting to know. The code names of android ranges from A to J currently, such asAestro, Blender, Cupcake, Donut, Eclair, Froyo, Gingerbread, Honeycomb, Ice Cream Sandwitch, Jelly Bean, KitKatand Lollipop. Let’s understand the android history in a sequence. 1) Initially, Andy Rubin founded Android Incorporation in Palo […]

    Posted in: Android