« Home « Chủ đề lập trình di động

Chủ đề : lập trình di động


Có 20+ tài liệu thuộc chủ đề "lập trình di động"

Lập trình J2ME cho thiết bị di động

vndoc.com

Lập trình J2ME cho thiết bị di động 36 41.862Tải về Bài viết đã được lưu (adsbygoogle=window.adsbygoogle||[]).push({})Lịch sử J2ME được phát triển từ kiến trúc Java Card, Embeded Java và Personal Java của phiên bản Java 1.1. Đến sự ra đời của Java 2 thì Sun quyết định thay thế Personal Java và đươc gọi với tên mới là Java...

Bài giảng Lập trình di động - Bài 1: Giới thiệu về lập trình java trên Android OS

tailieu.vn

LẬP TRÌNH DI ĐỘNG. Bài 1: giới thiệu về lập trình javatrên Android OS. Thiết bị di động vs thiếtbị cố định 3. Thị trường ứng dụng cho di động 4. Lập trình trên android 6. Android Studio. Máy ảo Genymotion. Kiến thức về ngôn ngữ lập trình java. Kiến thức về lập trình hướng đối tượng (cơbản). Đã từng...

Bài giảng Lập trình di động - Bài 2: Activity (giao diện tương tác)

tailieu.vn

Nội dung. Bắt đầu với một ứng dụng giản đơn. Giao diện phát triển của Android Studio 3. Các bước phát triển ứng dụng android. Các thành phần của một ứng dụng android 6. Vòng đời của một activity. Thiết kế giao diện. Dừng ứng dụng. Text: nội dung hiển thị trên công cụ. Mã XML tự sinh từ các...

Bài giảng Lập trình di động - Bài 3: Các layout và một số loại widget thường dùng

tailieu.vn

Giao diện phát triển ứng dụng của Android Studio. Các thành phần của một project android. Bốn loại thành phần của ứng dụng android: activity , service, provider , receiver. Tương tác với các điều khiển 5. Một số điều khiển đơn giản. View là đối tượng cơ bản để xây dựng mọi thành phần của giao diện đồ họa....

Bài giảng Lập trình di động - Bài 4: Một số loại widget thông dụng và cách kĩ thuật xử lý sự kiện trên widget

tailieu.vn

Bài 4: một số loại widget thông dụng và cách kĩ thuật xử lý sự kiện trên widget. Hiển thị ProgressDialog. Tiến trình chạy ngầm cập nhật dữ liệu lên ProgressBar. Vài phương pháp xử lý sự kiện. VD: thể hiện phần trăm dữ liệu đã xử lý được. Các thuộc tính thường được sử dụng. Thuộc tính max (mặc...

Bài giảng Lập trình di động - Bài 5: Intent và cơ chế trao đổi dữ liệu giữa các thành phần trong android

tailieu.vn

Bài 5: Intent và cơ chế trao đổi dữ liệu giữa các thành phần trong android. Thiết lập dữ liệu cho điều khiển. Các thành phần của intent. Sử dụng intent để trao đổi dữ liệu 5. Sử dụng thành phần component để chỉ định rõ đối tượng sẽ thực thi. Sử dụng phương thức:. Một số trường hợp sử...

Bài giảng Lập trình di động - Bài 6: Các phương pháp lưu trữ trong android và làm việc với SQLite

tailieu.vn

Nội dung. Android có nhiều phương pháp lưu trữ dữ liệu. Tổng quan: quá trình cài ứng dụng. ▪Ứng dụng android ở dạng .apk. Từ API 8, có thể đặt ứng dụng ở sdcard: thêm đoạn mã android:installLocation="preferExternal". Quá trình ứng dụng được cài đặt vào hệ thống:. Chép file .apk vào thư mục ứng dụng. Tạo thư mục riêng...

Lập trình Androi part 01

tailieu.vn

You can have any programming language and development. The tools look different, the frameworks behave differently, and there are more limitations on what you can do with your programs.. You can think of an activity as being the Android analogue for the window or dialog box in a desktop application. Not only can you respond to intents, but you can...

Lập trình Androi part 02

tailieu.vn

To create an Android application, you will need to create a corresponding Android project. This could be an Eclipse project, if you are using Eclipse for Android development. The Android build tools—whether Eclipse-integrated or stand-alone—will turn the contents of your project into an Android package (APK) file, which is the Android application. “table of contents” for your application, listing all...

Lập trình Androi part 03

tailieu.vn

As described in the previous chapter, to work with anything in Android, you need a project. If you are using tools that are not Android-enabled, you can use the android create project script, found in the tools/ directory in your SDK installation. --path /path/to/my/project/dir --activity Now \ --package com.commonsware.android.Now. Open Now.java in your editor and paste in the following code:....

Lập trình Androi part 04

tailieu.vn

While it is technically possible to create and attach widgets to your activity purely through Java code, as we did in the preceding chapter, the more common approach is to use an XML-based layout file. With that in mind, it’s time to break out the XML and learn how to lay out Android activities that way.. What Is an XML-Based...

Lập trình Androi part 05

tailieu.vn

Android’s toolkit is no different in scope, and the basic widgets will provide a good introduction to how widgets work in Android activities.. In Java, you can create a label by creating a TextView instance. More commonly, though, you will create labels in XML layout files by adding a TextView element to the layout, with an android:text property to set...

Lập trình Androi part 06

tailieu.vn

If you want OK and Cancel buttons to be beneath the rest of the form, next to one another, and flush to the right side of the screen, you need a container. If you want, you can use LinearLayout in much the same way, eschewing some of the other containers. Their combined sizes probably do not exactly match the width...

Lập trình Androi part 07

tailieu.vn

android:layout_toRightOf="@id/label". android:layout_alignParentTop="true"/>. android:id="@+id/ok". android:layout_width="wrap_content". android:layout_height="wrap_content". android:layout_below="@id/entry". android:layout_alignRight="@id/entry". android:text="OK". android:id="@+id/cancel". android:layout_toLeftOf="@id/ok". android:layout_alignTop="@id/ok". android:text="Cancel". TableLayout controls the overall behavior of the container, with the widgets themselves poured into one or more TableRow containers, one per row in the grid.. However, a widget can take up more than one column by including the android:layout_span property, indicating the number of columns the widget spans....

Lập trình Androi part 08

tailieu.vn

Android provides many of the same sorts of widgets, plus others of particular interest for mobile devices (e.g., the Gallery for examining saved photos).. This chapter begins with a look at Android’s adapters, and then introduces its selection widgets.. In the abstract, adapters provide a common interface to multiple disparate APIs. More specifically, in Android’s case, adapters provide a common...

Lập trình Androi part 09

tailieu.vn

xmlns:android="http://schemas.android.com/apk/res/android". public void onCreate(Bundle icicle). selection.setText(items[position]);. selection.setText . public void onTextChanged(CharSequence s, int start, int before, int count). selection.setText(edit.getText());

Lập trình Androi part 10

tailieu.vn

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android". setContentView(R.layout.main);. setListAdapter(new ArrayAdapter<String>(this, R.layout.row, R.id.label, items));. The key difference is that we have told ArrayAdapter that we want to use our custom layout (R.layout.row) and that the TextView where the word should go is known as R.id.label within that custom layout.. use R.layout as a prefix on the base name of the layout XML file ( R.layout.row. Not...

Lập trình Androi part 11

tailieu.vn

selection=(TextView)findViewById(R.id.selection);. selection.setText(items[position]);. TextView label=(TextView)row.findViewById(R.id.label);. label.setText(items[position]);. ImageView icon=(ImageView)row.findViewById(R.id.icon);. Since findViewById() can find widgets anywhere in the tree of children of the row’s root View, this could take a fair number of instructions to execute, particularly if you need to find the same widgets repeatedly.. What would be nice is a way where you can still use the layout XML, yet cache...

Lập trình Androi part 12

tailieu.vn

setContentView(R.layout.main);. android.R.layout.simple_list_item_1, items));. this.delegate=delegate;. return(delegate.getCount());. return(delegate.getItem(position));. return(delegate.getItemId(position));. return(delegate.getView(position, convertView, parent));. delegate.registerDataSetObserver(observer);. return(delegate.hasStableIds());. return(delegate.isEmpty());. return(delegate.getViewTypeCount());. return(delegate.getItemViewType(position));. delegate.unregisterDataSetObserver(observer);. return(delegate.areAllItemsEnabled());. return(delegate.isEnabled(position));. this.ctxt=ctxt;. this.rates=new float[delegate.getCount()];. for (int i=0;i<delegate.getCount();i. this.rates[i]=2.0f;. rate.setNumStars(3);. rate.setStepSize(1.0f);. View guts=delegate.getView(position, null, parent);. layout.setOrientation(LinearLayout.HORIZONTAL);. rate.setLayoutParams(new LinearLayout.LayoutParams(. LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.FILL_PARENT));. guts.setLayoutParams(new LinearLayout.LayoutParams(. LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.FILL_PARENT));. rate.setOnRatingBarChangeListener(l);. layout.addView(rate);. layout.addView(guts);. layout.setTag(wrap);. rate.setTag(new Integer(position));. rate.setRating(rates[position]);. wrap.setGuts(delegate.getView(position, wrap.getGuts. this.base=base;. this.rate=rate;. this.guts=guts;. View row=inflater.inflate(R.layout.row, null);

Lập trình Androi part 13

tailieu.vn

DatePicker and DatePickerDialog allow you to set the starting date for the selection, in the form of a year, month, and day of month value. Similarly, TimePicker and TimePickerDialog let you set the initial time the user can adjust, in the form of an hour ( 0 through 23 ) and a minute ( 0 through 59. You can indicate...