Showing posts with label Activity. Show all posts
Showing posts with label Activity. Show all posts

Thursday, 28 August 2014

Android fullscreen activity

Hey guys in this android tutorial i am going to demonstrate how to create a fullscreen android activity in android. This is a quick tip android tutorial.

Creating FullScreen activity in android

Android fullscreen activity
Let’s start :)
Go to file –> New and select Android Application Project and then simply give it a name and create a new android project.
Now! open AndroidManifest.xml and then simply open its xml format.
android manifest 
Now in activity simply add the following code.
android:theme="@android:style/Theme.Holo.Light.NoActionBar.Fullscreen"
And make sure that your API level is 13 else it will not work! Now simply save your project and run it :)
If you have any questions then feel free to make a comment!
Continue Reading

What is activity in android

In this android application development tutorial you will learn about android activities and about its life cycle. so, lets start the tutorial :)

In android when you create a new project then you have already created one activity called main activity. Activity is nothing but the screen of your android app.

Actually activity is primary building blocks  of an android. If we talk about any other android application like WhatsApp then list of contact is another activity, when you send message to one person then its also another activity. Here is the lifecycle of an android activity.

Lifecycle of an android activity.

vlcsnap-2014-08-28-11h50m09s86
When the android app starts android system constantly calls different activities and methods. When the app starts the methods onCreate(), onStart() and onResume() is going to be are going to be called.
When your app is shutdown, the methods onPause(), onStop() and onDestroy() are going to be called and these methods are going to be needed for app crash and to minimize the system resources. 
Continue Reading
Designed By Blogger Templates