Có 20+ tài liệu thuộc chủ đề "lập trình di động"
vndoc.com Xem trực tuyến Tải xuống
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...
tailieu.vn Xem trực tuyến Tải xuống
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...
tailieu.vn Xem trực tuyến Tải xuống
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...
tailieu.vn Xem trực tuyến Tải xuống
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....
tailieu.vn Xem trực tuyến Tải xuố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. 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...
tailieu.vn Xem trực tuyến Tải xuống
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ử...
tailieu.vn Xem trực tuyến Tải xuống
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...
tailieu.vn Xem trực tuyến Tải xuống
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...
tailieu.vn Xem trực tuyến Tải xuống
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...
tailieu.vn Xem trực tuyến Tải xuống
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:....
tailieu.vn Xem trực tuyến Tải xuống
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...
tailieu.vn Xem trực tuyến Tải xuống
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...
tailieu.vn Xem trực tuyến Tải xuống
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...
tailieu.vn Xem trực tuyến Tải xuống
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....
tailieu.vn Xem trực tuyến Tải xuống
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...
tailieu.vn Xem trực tuyến Tải xuống
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());
tailieu.vn Xem trực tuyến Tải xuống
<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...
tailieu.vn Xem trực tuyến Tải xuống
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...
tailieu.vn Xem trực tuyến Tải xuống
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);
tailieu.vn Xem trực tuyến Tải xuống
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...