Skip to main content

Posts

Showing posts from 2016

Using Toolbar In Android

Toolbar Toolbar is used in our application as an app bar providing useful information to the user. From API level  11 ActionBar had been used as default app bar. But with newer versions and newer features ActionBar looks and behaves differently on devices depending on the version of the android it is using . So Toolbar is introduced in Android Support library to provide consistent look and behavior to our application for a wide range of devices . Toolbar is supported from API level 7 . In our application we should use   android.support.v7.widget.Toolbar     This is a simple application using  Toolbar.  Screenshots of the application are the following .  Toolbar contains Navigation icon, Title, SubTitle and 5 menu items, on clicking any menu item a Toast will show up with menu item name.                   You can download the full project from the following drive link https://drive....

Cannot Choose Between Multiple Debugging Devices in Android Studio

If  you connect multiple Devices or Emulators to Android Studio and Run Application. Application will only run on the first run device.  It will not ask to select connected device. ie, 1. If you connect one Device or Emulator 2. Run a project on the device or Emulator 3. Connect another Device or start another Emulator 4. Try to run project on new device 5. It will only run on first device  . will not ask to select Connected Device or Emulators 6. Select Deployment Target Dialog box will not show. If this Problem occurs to you while Developing on android Studio .  First thing to do is to Stop Application after running on the first device This can be done by clicking Stop app icon which is left of the AVD manger icon. Or by using Keyboard shortcut CTRL+F2 Now if you Run the project , Select Deployment Target Dialog box will pop up. You can select another Device or emulator from the list If still Select Deployment Target window not showing up an...