Posts

Top 10 Reasons to Major in Computing

Top 10 Reasons to Major in Computing 1. Computing is part of everything we do! Computing and computer technology are part of just about everything that touches our lives from the cars we drive, to the movies we watch, to the ways businesses and governments deal with us. Understanding different dimensions of computing is part of the necessary skill set for an educated person in the 21st century. Whether you want to be a scientist, develop the latest killer application, or just know what it really means when someone says “the computer made a mistake”, studying computing will provide you with valuable knowledge. 2. Expertise in computing enables you to solve complex, challenging problems. Computing is a discipline that offers rewarding and challenging possibilities for a wide range of people regardless of their range of interests. Computing requires and develops capabilities in solving deep, multidimensional problems requiring imagination and sensitivity to a variety o...

Navigation in Android(Explicit Intent)

Image
Navigation in Android(Explicit Intent) An intent is an abstract description of an operation to be performed. It can be used with startActivity to launch an Activity, broadcastIntent to send it to any interested BroadcastReceiver components An Intent provides a facility for performing late runtime binding between the code in different applications. Its most significant use is in the launching of activities, where it can be thought of as the glue between activities. It is basically a passive data structure holding an abstract description of an action to be performed. There are two primary forms of intents you will use, They are: Explicit Intent Implicit Intent Explicit Intent:  After writing a single Activity, There comes a need  to navigate to another activity to perform another task . For this we use Explicit Inents. ScreenShots: activity_main.xml: < RelativeLayout   xmlns:android = "http://schemas.android.com/apk/res/android"   ...

Activity Life Cycle

Image
Activity Life Cycle Activity Life Cycle Android Activity Life Cycle                                            An Activity is usually a single screen that the users sees on the device at a one time. Any application that has been developed by anyone it typically contains multiple activities. *   Most management of the life cycle is done automatically by the system via the activity Stack * Activity manager is responsible for creating , destroying and managing activities. For Example   when the user starts an application for the first time, the activity manager will create its activity and put it into the screen. later, when  the user navigating to different screens . The activity manager will move to the previous activity to a holding place .This way if the user wants to go back to older activity , it can be started more ...

RadioButton in Android

Image
RadioButton in Android ScreenShots: activity_main.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:id="@+id/LinearLayout1"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:orientation="vertical"     tools:context=".MainActivity" >     <TextView         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="Select Gender"         android:textAppearance="?android:attr/textAppearanceLarge" />     <RadioGroup         android:id="@+id/radioGroup1"         android:layout_width="wrap_content"         android:layout_height="wrap_...

CheckBox in Android

Image
CheckBox in Android ScreenShots: activity_main.xml: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     tools:context=".MainActivity" >     <CheckBox         android:id="@+id/checkBox1"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_alignParentLeft="true"         android:layout_alignParentTop="true"         android:layout_marginLeft="87dp"         android:layout_marginTop="54dp"         android:text="CheckBox" />     <Button         android:id="@+id/button1"  ...

Spinner in Android

Spinner in Android activity_main.xml: < LinearLayout   xmlns:android = "http://schemas.android.com/apk/res/android"      xmlns:tools = "http://schemas.android.com/tools"      android:id = "@+id/LinearLayout1"      android:layout_width = "match_parent"      android:layout_height = "match_parent"      android:orientation = "vertical"      tools:context = ".MainActivity"      android:background = "#ccffcc"   >      < Spinner          android:id = "@+id/spinner1"          android:layout_width = "match_parent"          android:layout_height = "50dp"   />      < Button          android:id = "@+id/button1"          android:layout_width = "wrap_content"    ...