Free Source Code and Program Tips
Posts tagged developed
Eclipse developed Android, Hello, TimePicker (study 8)
Dec 8th
Hello, TimePicker A TimePicker is a Widget that allows the User to Select the time by hour, minute and AM or PM. Start a new project / Activity called HelloTimePicker. Modify HelloTimePicker.java code is as follows: 1 package com.example.test; import java.util.Calendar; import android.app.Activity; import android.app.Dialog; import android.app.TimePickerDialog; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView;
Eclipse developed Android, Hello, WebView (study 6)
Dec 6th
Hello, WebView A WebView allows you to Create your own Web Browser Activity. In this Tutorial, we'll Create a simple Activity that can View Web pages. Learning Address: http://androidappdocs.appspot.com/guide/tutorials/views/hello-webview.html HelloWebView.java Code 1 package com.example.test; import android.app.Activity; import android.os.Bundle; import android.webkit.WebView; public class HelloWebView extends Activity (WebView webview; / ** Called when the activity is first
Eclipse developed Android, Hello, MapView (study 5)
Dec 5th
Hello, MapView Learning Address: http://androidappdocs.appspot.com/guide/tutorials/views/hello-mapview.html HelloItemizedOverlay.java Code 1 package com.example.test; import java.util.ArrayList; import android.graphics.drawable.Drawable; import com.google.android.maps.ItemizedOverlay; import com.google.android.maps.OverlayItem; public class HelloItemizedOverlay extends ItemizedOverlay (private ArrayList <OverlayItem> mOverlays = new ArrayList <OverlayItem> (); public HelloItemizedOverlay (Drawable defaultMarker) (super (boundCenterBottom (defaultMarker ));// TODO Auto-generated constructor stub) @ Overridepublic int size () (return mOverlays. size ();) public void
Eclipse developed Android, TableLayout (study 4)
Dec 3rd
Hello, TableLayout A TableLayout is a ViewGroup that will Lay child View elements into rows and columns. Start a new project / Activity called HelloTableLayout. Open the layout file. Make it like so: 1.0 & quot ; encoding = & quot ; utf – 8 & quot ;?& gt ; & lt ; TableLayout xmlns
Eclipse developed Android, RelativeLayout (study 3)
Dec 2nd
Hello, RelativeLayout A RelativeLayout is a ViewGroup that allows you to layout child elements in positions relative to the parent or siblings elements. Start a new project / Activity called HelloRelativeLayout. Open the layout file. Make it like so: 1.0 & quot ; encoding = & quot ; utf – 8 & quot ;?& gt
Eclipse developed Android, LinearLayout (study 2)
Dec 1st
A LinearLayout is a GroupView that will Lay child View elements vertically or horizontally. Start a new project / Activity called HelloLinearLayout. Open the layout file. Make it like so: 1 <? xml version = "1.0" encoding = "utf-8"?> <LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android" android: orientation = "vertical" android: layout_width = "fill_parent" android: layout_height =