Skip to main content


Showing posts with the label Feature of Android Studio

Android Overview Basic

The Android WayfindViewById()One particularly jarring example of Android boilerplate code is the findViewById() method. Every time you want to access an Android view defined in your XML, you need to use this method, often with a typecast. For large Activities with many views, this can add a lot of code that does nothing but pull variables out of the xml.publicclassMainActivityextendsBaseActivity{ privateImageView logo; @OverridepublicvoidonCreate(BundlesavedInstanceState){ super.onCreate(savedInstanceState); setContentView(R.layout.main); logo = (ImageView) findViewById(; } } setContentView()In the code example above, we have the setContentView(R.layout.main) line. You need something like this in every Activity class, with the sole purpose of inflating your layout. It's not a big deal, but it is one extra step you have to go through when creating your Activity classes because it has to be put in exactly the right spot. It needs to be…

Features of Android Studio 1.0.1

1. Intelligent code editor

At the core of Android Studio is an intelligent code editor capable of advanced code completion, refactoring, and code analysis.The powerful code editor helps you be a more productive Android app developer.
2. Code templates and GitHub integration

New project wizards make it easier than ever to start a new project.Start projects using template code for patterns such as navigation drawer and view pagers, and even import Google code samples from GitHub.
3. Multi-screen app development

Build apps for Android phones, tablets, Android Wear, Android TV, Android Auto and Google Glass.With the new Android Project View and module support in Android Studio, it's easier to manage app projects and resources.
4. Virtual devices for all shapes and sizes

Android Studio comes pre-configured with an optimized emulator image.The updated and streamlined Virtual Device Manager provides pre-defined device profiles for common Android devices.
5. Android builds evolved, with Gradle