Android – keep the screen always in landscape mode
Problem: How do I keep the screen always in Landscape mode? Description: I have an activity which should always be displayed in Landscape mode. So I added But When the...
Problem: How do I keep the screen always in Landscape mode? Description: I have an activity which should always be displayed in Landscape mode. So I added But When the...
Problem: How do I solve “ERROR: Unknown command ‘crunch'”? Solution: After updating to ADT r14, go to Window -> SDK Manager (in Eclipse) Check on ‘repository’, uncheck “installed” Wait for...
Que 1: Describe the APK format. Ans: Android application package file (APK) is the file format used to distribute and install application software and middleware onto the Google Android operating...
Problem: How do we iterate through all the views(taken in XML layout) programatically? Description: I am sure you don’t get the problem exactly. So let me give more idea for the...
Problem: How To check whether the device has network connection or not? Solution: Update: This will work for both Emulator & Device. I got this helpful information from this SO...
Problem: How to get current current date and time in Android? Description: For fetching current date and time, we use Calendar class to get the current instance of system clock...
Problem: How to create EditText programatically? Solution: [sourecode language=”java”] EditText ed = new EditText(this); // Type of input that you want from user to input i.e. number, text ed.setInputType(InputType.TYPE_CLASS_TEXT); //...