Pages

Monday, 4 April 2016

How I made MyTorch?

Firstly its the main thing that we have to follow is about checking out Android Documentation whenever you try to develop any new application.All the required information about each and every component will be found here.

Android Documentation

And at each step it is very important that how you actually manipulate your code.

Steps to create such an App.



1.Firstly install Android Studio.

2.And Create a New Project.

3.Select a Blank Activity for easy manipulation if you are very new to android.

4.Later the Application Components will be build by Gradle

5.Go to content_main.xml /  activity_main.xml

6. Add FrameLayout

7.Add ImageView to it

8.Now its time to write a JavaCode for its Functionality.

9.Required Classes in JavaCode
          a. FrameLayout    -     Import from android.widget.FrameLayout
          b. ImageView      -      Import from android.widget.ImageView
          c. Camera            -      Import from android.hardware.Camera

10.SetOnClickListener method for FrameLayout

11. As it is clicked change the Image on the screen and let the torch on.

Download the app:

MyTorch_1.0.apk

https://drive.google.com/open?id=0B9k40Tc6BMFmdlJLQ1djeEpCaDA


Thank You.... :)

No comments:

Post a Comment