24 December 2014

Code for simple ToggleButton in Android

What will we do ? -> We will make a Simple Toggle Button and display a Toast when its state is changed. What we will need ? Additions in activity_main.xml ToggleButton TextView Toast Additions in MainActivity.java Step 1 : Create a New Project form File->New->Android Application Project. Step 2 : Give a Name to the Project and Click on Next...... then Finish. Step 3 : Open activity_main.xml found in...

Published By:
Yatin Kode
on 24.12.14

16 December 2014

Code for a Check-Box in Android

Here we will learn to make a check-box and various actions in check-box with an example and total explanation of the code . What we will need ? A layout(activity_main.xml) A Java Source (MainActivity.java) 3 Check-boxes Toast Step 1 : Create a new Android Application by clicking on File->New-> Android Application Project. Step 2 : Give a suitable name to your Project and a package name also (CheckBoxDemo). Click...

Published By:
Yatin Kode
on 16.12.14

11 December 2014

Make a Toast in Android

What we will need ? activity_main.xml MainActivity.java 2 Toasts 2 Buttons What we will do ? -> We will display a long timed Toast when we will click on a button and a short timed when clicked on another button. Step 1 : Make an android application Project with any name say ToastDemo. Step 2 : Drag a button in activity_main.xml layout found in res->layout from the Palette. The code for activity_main.xml...

Published By:
Yatin Kode
on 11.12.14

28 November 2014

Interview Questions & Answers on Android.

1. What is Android? Android is a stack of software for mobile device which includes an Operating System, middleware and some key applications. The application executes within its own process and its own instance of Dalvik Virtual Machine. Many Virtual Machines run efficiently by a DVM device. DVM executes Java languages byte code which later transforms into .dex format files. 2.  What Is the Google Android SDK? The...

Published By:
Yatin Kode
on 28.11.14

26 November 2014

The BlueStacks Android mobile emulator

Here we will get to know about using the BlueStacks Emulator. Step 1 : Download the Bluestacks emulator by following the video below : Step 2 : You can run your apk of your own project directly from the Bluestacks emulator. Go to the folder where the apk is stored. "workspace/Project/bin/" Lets run the project we had made in our previous post "Make A Spinner or a drop-down list"and go to the link in the pic...

Published By:
Yatin Kode
on 26.11.14

Pages (16)Prev 7891011 Next