Skip to main content

Posts

Showing posts with the label Computer

Non Country Internet Domain

ARPA - Old style Arpanet AERO - Air-transport industry BIZ - Business CAT - Websites in the Catalan language or related to Catalan culture. COOP - The .COOP is limited to cooperatives as defined by the Rochdale Principles. COM - Commercial/Company EDU - US Educational EU - European Union GOV - US Government INFO - Information INT - International Organization JOBS - Companies MIL - US Military MOBI - Must be used for mobile-compatible sites in accordance with standards. MUSEUM - Must be verified as a legitimate museum. NAME - Individuals, by name NATO - Nato field NET - Network ORG - Non-Profit Organization PRO - .PRO is reserved for licensed doctors, attorneys, and certified public accountants only. TRAVEL - Travel and travel-agency related sites

Developing Applications for Multiple Screen Sizes in Android

One of the challenges that you will encounter during your time as an Android app developer is developing for multiple screen sizes. There are many things to keep in mind during your adventure into screen sizes. The following list can keep you on track. The size requirements for each icon in each density vary for each type of icon. You find launcher icons, menu icons, status bar icons, tab icons, and many more. They are all built differently for each screen density. When building these icons, reference the Android Icon Design Guidelines . Try to always use the density-independent pixel (dip or dp) measurement unit for views and the scale-independent pixel (sip or sp) for font sizes when defining your user interface. This helps your application scale to different devices. The density-independent pixel is a virtual pixel that scales proportionally for each given screen density. Provide the supports-screens element to the AndroidManifest.xml file to help the An...

Common Android Intent Usage

You’ll use a few basic intents most of the time while developing apps for Android. The following table shows you the code for several basic Android intents. Intent Code Start an activity startActivity(new Intent(this, Destination.class)); Create a chooser Intent.createChooser(yourIntent, "Please Select"); Open the web browser Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("http://example.org")); startActivity(i); Start activity for a result                startActivityForResult(yourIntent, YOUR_REQUEST_CODE);

Helpful Hints for Android App Development

While solving problems with Android is a simple task, you may get to the point in app development where you're not sure what to do. The following list should point you in the right direction when you’re in need of help. Not sure how to solve a particular problem? Visit the forums at StackOverflow.com and use the Android tag. StackOverflow is an Android platform–recommended destination for developer questions. The most common tasks have already been done for you. A list of common tasks and instructions on how to do them are provided by the Android developer website . If you’re not sure what a package or class does, place your cursor over the object or class while inside Eclipse to view the documentation pop-up window. If no tool tip exists, you can view the documentation online at Android Developer Reference . Understand activity and fragment lifecycles. You use them over the course of your development career, and a thorough understanding can help...

Useful Eclipse Keyboard Shortcuts for Developing Android Apps

You’ll most likely spend most of your Android development career in the Eclipse IDE. The following table shows a few keyboard shortcuts that can help you save a lot of time. Action Keyboard Shortcut Create a new file in the current package         Alt+Shift+N Organize the import statements Ctrl+Shift+O Navigate to the source definition F3 Rename an object Alt+Shift+R Search through Java files Ctrl+H Jump to a particular type Ctrl+Shift+T Find declarations Ctrl+G Find references to a select object Ctrl+Shift+G Navigate left Alt+left-pointing arrow Navigate right Alt+left-pointing arrow Navigate among the tabs Shift+Page Up or Shift+Page Down Run your app Ctrl+Shift+F11