Skip to main content


Showing posts with the label LearnAndroidStudio

Fragment in Android Studio

1 Getting Started Open Android Studio and click "File -> New Project." You should see the new project wizard open up. Name your app "FragmentExample."
Before we go too far, I wanted to point out the "Support Mode" options near the bottom of the new project wizard. If you plan on using fragments in combination with Pre-Honeycomb devices you will need to use these to ensure backward compatibility with fragments.

As you can see, Android Studio will automatically generate a starting Fragment for you. However, since we are learning about using fragments we are going to create and modify our own custom fragment.
2 What is a Fragment in Android Studio?
In Android, a Fragment is a class which represents a "behavior or portion of user interface within an Activity." Fragments were introduced to help produce UI which can adapt to various device orientations as well as function seamlessly across phones and tablets. You can even use multiple fragments with…

Creating new Project in Android Studio

Step 1: Create a New ProjectIf you didn't have a project opened, Android Studio shows the Welcome screen. To create a new project, click New Project. If you had a project opened, Android Studio shows the development environment. To create a new project, click File >New Project. The next window lets you configure the name of your app, the package name, and the location of your project.
Enter the values for your project and click Next. Step 2: Select Form Factors and API LevelThe next window lets you select the form factors supported by your app, such as phone, tablet, TV, Wear, and Google Glass. For each form factor, you can also select the API Level that your app requires. To get more information, click Help me choose.
The API Level window shows the distribution of mobile devices running each version of Android, as shown in Figure 2. Click on an API level to see a list of features introduced in the corresponding version of Android. This helps you choose the minimum API Level that ha…

Learn Android Studio 1.0.1

Android Studio is the official Integrated Development Environment (IDE) from the Android team. It is built on the popular IntelliJ IDEA (Community Edition) Java IDE.We are making Android Studio 1.0 available for download as a stable release on the Android Developer site.

Android Studio features

With the release of Android Studio, you have access to a new set of features to enable your development workflow. Some of the key features of Android Studio are listed below, but make sure to check out the Android Studio page for a full feature overview.

Startup experienceFirst-run setup wizard — The getting started experience now installs the right Android SDK, sets up your development environment settings, and creates an optimized emulator for testing your app. Plus, we include a set of code templates to help you get started.Sample Importing & templates — Android Studio includes wizards that enable you to start with new project templates or import Google code samples.Code and resource editin…