Posts

Showing posts with the label Android

Android development - Adding scrollbar in your activity

Adding scroll bar in your activity in your mobile application can be done easily. e.g. You have main layout for your mobile application as below < LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android" xmlns: tools = "http://schemas.android.com/tools" android :layout_width= "fill_parent" android :layout_height= "fill_parent" tools :context= "com.learning.course.letslearn.MainMenu" android :orientation= "vertical" android :layout_weight= "100" android :layout_marginLeft= "15dp" android :layout_marginRight= "15dp" android :layout_marginTop= "15dp" > ............. ............. ............. </ LinearLayout> Enclosing this with scroll view will ensure that whenever screen have less vertical space an scroll bar will be displayed xml version= "1.0" encoding= "utf-8" ?> < Scroll...

How To hide windows title bar in your android application

Perform following steps In your style file (app\src\main\res\values\styles.xml)  add following lines. This will create another theme with NotTitle < style name= "FullscreenTheme" parent= "AppTheme" > < item name= "windowNoTitle" >true</ item > </ style > Apply newly created style/theme to your activity using application manifest file ( app\src\main\AndroidManifest.xml) as shown in highlighted text ..... < activity android :name= ".MainMenu" android :theme= "@style/FullscreenTheme" > < intent-filter > < action android :name= "android.intent.action.MAIN" /> < category android :name= "android.intent.category.LAUNCHER" /> </ intent-filter > </ activity > ......

Android Studio - Taking screen shot using android emulator

Image
You might need to take screenshot our application for various purpose e.g. Presentation etc. You may follow below steps to capture screenshot of your application in Android Emulator. Run project and select already configured emulator From Emulator screen click on screen capture button ("Camera icon") to capture screen as shown below After taking snapshot you may access this using Android monitor. Click on camera icon as shown below Once you click camera icon it will open screen shot as shown below and you can click save button to copy snapshot to your disk

Mobile Application - Change Icon using android Studio

Image
Use below step to change icon of your mobile application using Android Studio. Open your android application project in android studio On res folder right click and select new image asset             3.Select asset type as image and browse to select the new icon file         4.Android studio will warn you of a file override. Click finish to continue

Mobile Development - First Step

As a developer we already know that in order to start any development project. We need to start with the design of an application. Mobile development is not an exception. The question is that we create use case to model our business, wire frames and prototyping to do user interface design then what do we do to plan our mobile application? The answer is simple, First thing is that we need to visualize our application and we start we story boarding of our app. In order to do story boarding you have to take components of your mobile app and define the flow of your application with help of major component. Activities All elememt in android are activities that have an UI definition using xml and a code behind to hadle evenet widget/Views e.g. Button, text box Layout e.g. Linear layout There are may tools available that may assist you in doing story boarding however you may start it on a blank piece of paper

Mobile Development - Android

Before staring I must say that https://developer.android.com/index.html is very nice and can give answers to most of your queries from installation, tools and sample with step by step guides. Android Studio is the essential tools that you will need to install to start mobile development. You may choose other option like eclipse however Android Studio is the quickest to start. In general the tool is very nice and can really help you to quickly pick up pace with mobile development however you may need to do little bit tweaking to make if run faster. In my case, my antivirus may give me hard time to run it quickly. I had to add certain programs (Android Studio, Emulator etc) in my antivirus exception list to make it up and running, If you have an android phone, you may use it for testing and debugging purpose. In fact this will be the fastest way to do testing and debugging of your application. Android SDK contains an emulator software that is very powerful and can build th...