Introduction: How to Make Flashlight App for Android ?

Picture of How to Make Flashlight App for Android ?


Today we are gonna to make an android will turn on your moblie flash light so you can use it when we need lets start.............

Step 1: Initial Setup

Picture of Initial Setup

Just open android studio and click on new android studio project

now click next.

now give a name to app i.e. FlashLight.

now click next.

now select minimum SDK and click next.

now click on blank activity and click next.

now click on finish.

Step 2:

Picture of

now a window will open named Content_Main.xml.

now right click on "Hello" in mobile layout and delete it.

now remove highlighted text in image.

Step 3:

Picture of

Now copy and paste give green and red button into res/drawable folder.

Step 4:

Picture of

now just pick and place imageview into mobile layout and assign source image of green you just copied into drawable folder.

Step 5: Menifest File

Picture of Menifest File

Now just open Manifest file and copy and paste following command into manifest file.

You can download permissions from here Google Drive

Step 6:

Picture of

Now right click on java file and select new class.Name this class "About".

Now just download and paste given code into About class.

Download code: Google Drive

Step 7:

Picture of

now goto res=>layout and right click on it and select new=>layout resource file,name it "about".

now download code and paste into about file : Google Drive

Step 8:

Picture of

Now just open MainActivity class and paste given code below.

Download code: Google Drive

Step 9: Finish

Picture of Finish

Now your FlashLight app is ready,just upload it into your mobile phone and enjoy.

you can download FlasLight.apk from below........

Thanks for watching pls vote it.


勉劉 (author)2016-07-18

what about your res/menu?

About This Instructable




Bio: Hello My name is Prayag Nao.I am a tech enthusiastic person who does not follow reality,instead I create reality.I am sharing some ... More »
More by prayag nao:How to Change or Customize Windows 7/8 Boot Screen Smart Light LampHow to Change Blue Color of Facebook to Your Favorite Color..?
Add instructable to: