API class mappings from Android to Windows

[This article is for Windows 8.x and Windows Phone 8.x developers writing Windows Runtime apps. If you’re developing for Windows 10, see the latest documentation]

Use this reference to map selected Android API classes to equivalents for Windows Store apps.

Android class Equivalent Windows Store app class

Application

Application

See also Application lifecycle and Launching, resuming, and multitasking

BitmapDrawable, ColorDrawable, GradientDrawable

Media

See also Blend

Button, ImageButton

Button

See also Quickstart: Adding button controls

Camera

CameraCaptureUI

See also CameraCaptureUI Sample

ContextMenu

Popup

See also Context menu sample

DatePickerDialog, TimePickerDialog

DatePicker, TimePicker (available only for Windows Store apps using C#, C++, and Microsoft Visual Basic)

DatePicker, TimePicker (available only for Windows Store apps using JavaScript and HTML)

Dialog, AlertDialog

MessageDialog

See also Quickstart: Designing a message dialog

EditText

TextBox

See also Quickstart: adding text input and editing controls

File

StorageFile

See also Quickstart: Reading and writing a file

GridLayout, LinearLayout, RelativeLayout

Canvas, Grid, StackPanel, WrapGrid

See also Quickstart: Defining layouts

GridView, ListView

GridView, ListView

See also Quickstart: adding ListView and GridView controls

ImageView

Image

See also Quickstart: Image and ImageBrush

LocationManager

Geolocation

See also Detecting geolocation, How to display your location on a Bing Map, and Bing Maps for Windows Store apps

MediaPlayer, MediaRecorder, VideoView

MediaElement

See also Quickstart: creating a media player app, Playing and previewing audio and video, and Capturing or rendering audio, video, and images

ProgressBar, ProgressDialog

ProgressBar, ProgressRing

See also Quickstart: adding progress controls

ScrollView

ScrollViewer

See also Extensible Application Markup Language (XAML) scrolling, panning, and zooming sample

SeekBar

Slider

See also How to add a slider

Sensor

See Responding to motion and orientation sensors and Supporting proximity and tapping

SlidingDrawer

AppBar

See also Quickstart: Adding app bars

TextView

TextBlock

See also Quickstart: displaying text

ToggleButton, Switch

ToggleSwitch

See also How to add a toggle switch

View

UIElement

WebView

WebView

See also XAML WebView control sample

 

Task mappings from Android to Windows

Controls list