Update Android SDK-2.0 and ADT-0.94

I have been using sdk1.5 since I came into contact with Android in July. I know that the SDK has been updated and the ADT has to be updated. I guess the process is troublesome, so I have been too reluctant to change it. I downloaded a piece of code

Android learning notes-sample code for passing data through Application

In the entire Android program, you sometimes need to save some global data (such as user information) for convenient calling anywhere in the program. There is a relatively useful method for data transmission between activities, that is, global

Example of capturing video frames and converting them to Bitmap by Android

MainActivity is as follows: Copy codeThe Code is as follows: package cn. testmediametadataretriever; Import java. io. File; Import java. io. FileOutputStream; Import android. media. MediaMetadataRetriever; Import android. OS. Bundle; Import android.

The video stops when you press the menu key during Android 2.3.7.r1 camera video recording.

When Android 2.3.7.r1 presses the menu key, the video is stopped. Press the menu key when you change the video to do not process it. The following modifications can be made: In packages/apps/CameraOpen/src/com/mediatek/camera/VideoCamera. java In

Android control ListView usage (read the contact sample code)

Sample Code: This is a code for reading contacts: Copy codeThe Code is as follows: package com. ui. domain; Import java. util. ArrayList; Import java. util. List; Import android. app. Activity; Import android. database. Cursor; Import android.

Android deletes all files under a folder (folder files, etc)

1. Because you need to delete files, you need the following permissions:: 2. Core code Copy codeThe Code is as follows: package com. example. deleteyoumi; Import java. io. File; Import android. OS. Bundle; Import android. OS. Handler; Import

Android principle does not need to close the background running program

Don't worry about the remaining memory size. In fact, many people bring the habit of using other systems. Most android applications do not exit the design, which is related to the system's scheduling mechanism for processes. If you know java, you

EditText attribute for Android Development

EditText inheritance relationship: View --> TextView --> EditTextEditText has many attributes. Here we will introduce several attributes:Android: hint = "enter a number! "// Set the prompt information displayed on the spaceAndroid: numeric =

Android stream-based XML Data Transmission

  We can send data to the server in the form of Request Parameters. However, when the data size is too large, this method is unavailable. At this time, we should send data in a stream mode, in the following example, the content of an xml file is

Android gps java application programming ------- obtain latitude and longitude, satellite information, etc.

Java codePackage android. test; Import java. util. Iterator; Import android. app. Activity;Import android. location. Criteria;Import android. location. GpsSatellite;Import android. location. GpsStatus;Import android. location. Location;Import

[Tool] sharedpreferences encryption for Android Data Storage

[Java]Import java. util. List;Import java. util. Map;Import android. content. Context;Import android. content. SharedPreferences;  /*** Tool for storing configuration information * Note: The data types that can be read include- boolean, int, float,

Android cts test command

> Adb shell pm list instrumentation (this command will list all installed apk) instrumentation: com. android. cts. stub/android. content. pm. cts. testPmInstrumentation (target = android) instrumentation: com. android. cts. animation/android. test.

Android video playback (2)

[Java] package cn. c; import java. io. file; import android. app. activity; import android. media. mediaPlayer; import android. media. mediaPlayer. onCompletionListener; import android. media. mediaPlayer. onErrorListener; import android. media.

Android uses OpenGL ES to define image shapes

Defining shapes is often the first step to develop high-end graphics. You do not need to know how OpenGL ES wants you to define image objects when Drawing Images Using OpenGL ES. The following describes the coordination system related and screens,

Android tutorial (10) -- Use of the Spinner drop-down box

I am troubled by work problems, so I have not written any blogs for the past few days. Recently, I felt I was lazy. As a programmer, we had to keep learning when we were charging, so we couldn't leave ourselves alone. Let's take a look at the use of

Android gets the width and height of the mobile phone compatible with different Android devices

[Java] // The first method returns pixels.Display display = getWindowManager (). getDefaultDisplay ();Log. I ("MainActivity", "height:" + display. getHeight ());Log. I ("MainActivity", "width:" + display. getWidth ());// The second method returns

Android project mobile security guard (the most complete code, the most detailed annotation) 7 application updates and Installation

By convention, I wrote it above: maybe in the process of learning Android, everyone will learn a lot of basic knowledge like me, and a lot of knowledge points can also be said 123, however, these isolated points are too fragmented after all.

Json string to the json object universal Parser (java implementation, one hundred lines of code)

The json string to the json object universal converter (implemented in java) is one hundred lines of code, which is very lightweight and compact. For general application scenarios, resource consumption is very low and the speed is fast enough,

Obtain the battery information of the Android device.

1. To obtain the battery information of the Android device, register a BroadCastReceiver whose Action is Intent. ACTION_BATTERY_CHANGED. 2. In the BroadcastReceiver onReceive () event, the received Intent. ACTION_BATTERY_CHANGED includes the

Call the API to set the Access Point of the Android phone

Recently, I am working on a small application. I need to set the AP (Access point) of the Android mobile phone through a program, which turns the mobile phone into a mobile hotspot and other machines can connect to the mobile phone through wifi ). I

Total Pages: 2774 1 .... 525 526 527 528 529 .... 2774 Go to: GO

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.