In the android project, you only need to perform the unit test in the following three aspects:
1. Configure the following in the project list file:
2. The test class inherits the Android. Test. androidtestcase class.
I have summarized an article about the android screen height and statusbar height.Article,
However, these methods are not applicable to Android OS 4.0.
Because 4.0 of the API changes again.
The height we got is the height of the status bar.
I have summarized an article about the android screen height and statusbar height.Article,
However, these methods are not applicable to Android OS 4.0.
Because 4.0 of the API changes again.
The height we got is the height of the status bar.
I haven't touched Android for a long time. Now, the company's strategy has been greatly changed and is ready to switch the existing wince platform to the Android platform. Now, I have encountered two minor problems after reviewing Android:The
Sometimes I find that someone else has an APK in the mobile phone. I want to install it on my mobile phone, but I find that the APK is incomplete and there is no classes in it. dex file, but there is an odex file with the same name as APK.
Android-based Desktop shortcuts (1)
There are two ways to generate shortcuts: one is to generate a shortcut directly on the desktop; the other is to press the desktop and generate a shortcut in the pop-up shortcut menu.
Generate directly on the
Text message sending. Some models can send text messages to specified mobile phones in the background without prompting them. Some models may remind users to decide whether to send messages or not, I think this is for security reasons.
To send a
Perform Network Operations
This section describes how to perform the most basic network connection tasks, manage network connections (including network status changes), and allow users to manage an application network, it also describes how to parse
Android advanced exercise-matching multiple screens these days I learned how Android applications adapt to different screen density, which involves image resources, layout resources, and fixed sizes, resource search rules
Screen ConceptCell phone
The multi‑thread resumable upload function is used in recent projects. Therefore, it is very convenient to encapsulate a jar package.
Multi-thread resumable download: multiple threads are used to download the same resource. Each download thread is
Because the physical display space of mobile devices is generally limited, it is impossible to display all the content to be displayed on the screen at a time. Therefore, major platforms generally provide some scrollable views to present data to
Bytes ~
Android. Support. v4.viewpager class in API
The 4 + support package is initially provided for us. It enables us to slide left and right to display data in the form of a 'page. We can inherit
PagerAdapterTo generate a page view. Let's take a
Previous Article
FragmentPagerAdapter,
FragmentStatePagerAdapter,
FragmentPagerAdapter,
And
FragmentStatePagerAdapter
These adapters are available in API 4 + support and API
13 + support. As follows: fragment is used to represent a page, which is
Today, when I read some source code, I found that people do not need to set the title layout file. After reading it, it is quite convenient,
The procedure is as
An error occurred while configuring Google maps in the android simulator.1) In order to apply for an android map API key on a webpage, a Google account and a system certificate must be allowed. Google requires a Google account to publish the key.
This article describes how to use the expandablelistview control and how to use the expandablelistactivity class and simpleexpandablelistadapter adapter.
The code is described as follows:
First, layout contains three layout files:
Main. xml
Android:
: Check whether a memory card is inserted.
String status = environment. getexternalstoragestate ();
If (status. Equals (enviroment. media_mounted ))
{
SD card insertion
}
Copy code
2: Make an activity transparent
Layout is not set in
In the development of Android projects, a large number of spinner controls are used. Next we will discuss the knowledge of the spinner. In case you forget to come and check it later. This section also describes how to use arrayadatper.
For example,
In android4.0, network setting error com. Android. settings. wirelesssettings is not declared in androidmanifest. xml
Solution:
If (Android. OS. Build. version. sdk_int> 10 ){
Startactivity (new intent (Android. provider. settings.
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