Problem Overview:
Create an androidProgramThe following error occurs:
The/Android-SDK-Windows/tools/lib/proguard. cfg file is not found.
Cause:
The SDK is incomplete.
Solution:
Method 1
You can create a proguard. cfg file in the/Android-SDK-Windows/tools/lib/directory.
Add the following content:
Proguard. cfg
Method 2
Update all sdks through
Androiddraw is an integrated Android application with DroidDraw that allows you to get from the DroidDraw application
Download your GUIs and also allow you to preview your GUIs on an Android device
1, the first download installation DroidDraw, I use the version is Droiddraw-r1b222, download androiddraw.apk, and install on the simulator, the installation steps are as follows:
1 Use CMD to enter the comma
3G, indicating that the simulator has been able to receive the signal. If our machines cannot be networked, set their own IP addresses, gateways, and DNS servers to the same values, such as all set to 192.168.0.100. If our machine is under the LAN, but not connected, then set its own gateway and DNS to route IP can, in general, the route of IP is 192.168.0.1.
OK, now we're going to start two simulators!
Four, send text messages
After we start the simulator, we can see that the title bar of t
This article illustrates how Android is programmed to get the screen resolution size of a mobile phone. Share to everyone for your reference, specific as follows:
Import android.app.Activity;
Import Android.os.Bundle;
Import Android.util.DisplayMetrics;
Import Android.widget.TextView;
public class A03activity extends activity {
private TextView mTextView01;
/** called the activity is a. * *
@Override public
void OnCreate (Bundle savedinsta
The preceding example demonstrates how to call a phone through a program.GSMIn the mobile communication system, apart from making phone calls, another common function is to send text messages. because of this, many telecom carriers have released special rates for the exclusive SMS family, so we can see the importance of the SMS function to mobile phones.
The key process for sending text messages is throughSmsmanagerObjectSendtextmessage ()Method.Sendtextmessage ()The method requires five values
Self-articles are mainly translated articles on the official website, and I have also added my own understanding. If there is any inaccuracy, please correct me.Http://developer.android.com/guide/practices/security.html
Some virtual machines run within a security boundary and are isolated from their operating system programs, such as Java virtual machines and. net runtime environments.On android, Dalvik virtual machines do not have such security bounda
With the increasing popularity of Android and the continuous launch of various applications, I also coincidentally sent a telecom Android system custom machine during the broadband renewal in March, which prompted me to advance the learning plan developed by Android, I also provided a development and testing site (mobile phone), which also enhanced my interest in
The examples in this article describe the way in which the Android programming read assets All files (traversing each folder) into the SDcard. Share to everyone for your reference, specific as follows:
private void Copyassets (String assetdir, string dir) {string[] files;
try {//Get assets altogether how many files = This.getresources (). Getassets (). List (Assetdir);
catch (IOException E1) {return;
File Mworkingpath = new file (dir
you explain why to put sfh.unlockcanvasandpost (canvas); Written in finally, the main purpose is to ensure the normal submission of the canvas.
Today's main remarks 2, here must determine whether the next canvas is empty, because when the program into the background, canvas is not get! Then once the canvas is empty, the submission canvas here will have the error of abnormal parameters!
second, the thread initiates an exception. the following figure
Original URL: http://blog.sina.com.cn/s/blog_533074eb0101ez5q.htmlThe Android build environment itself is complex, and unlike a normal compilation environment: only the top-level directories have Makefile files, while each of the other component uses a uniform standard of android.mk . android.mk file itself is relatively simple, but it is not familiar with the makefile, but after the Android itself compiled
It is troublesome to exit the program in Android, especially in multiple Activity programs. Before Android 2.2, you can exit the program using the following code:
Java code
[Java]ActivityManager am = (ActivityManager) getSystemService (Context. ACTIVITY_SERVICE );Am. restartPackage (getPackageName ());
ActivityManage
As we all know, the versions and devices used to install the Android system vary widely. A program running well on the simulator may crash when it is installed on a certain mobile phone, individual developers cannot buy all devices for debugging one by one. Therefore, after the program is released, if a crash occurs, the developer should promptly obtain the infor
This article explains how to create and run the first Android program in eclipse.Steps for setting up the environment in this article:1. Download eclipse Version: Juno Release Eclipse IDE for Java Developers,2. Install JDK 1.6.0 _ 33, download it from the official website, install it directly, and configure environment variables. If you do not understand, You can Google the "Java Development Environment"3.
1. First, you must know what you want to download !!! 1. eclipse download 32-bit (Official Website) Eclipse c ++ Version Download file =/technology/epp/downloads/release/indigo/SR2/eclipse-cpp-indigo-SR2-incubation-win32.zip 3. android SDK directly uses 32-bit (32-bit or 64-bit) and does not need to be installed. After downloading the SDK, decompress it to the appropriate directory. android SDK uses the Jav
Program Ape Learn English on the visual English webAndroid Program Development 0 Basic Tutorial (i)Platform Brief Introduction 's exciting Google mobile OS platform-android officially announced on November 13, 2007, an open-source operating system with Linux as its kernel. As a developer, we are concerned with the architecture of this platform and the supported d
Program Ape Learn English on the visual English webAndroid Program Development 0 Basic Tutorial (i)Platform Brief Introduction 's exciting Google mobile OS platform-android officially announced on November 13, 2007, an open-source operating system with Linux as its kernel. As a developer, we are concerned with the architecture of this platform and the supported d
Compatibility Scenario Overview
Android's compatibility program makes it easy for Android phone manufacturers to develop compatible Android devices (Heaven Zhuhai Steering Note: What is compatible?). is to be compatible with the standard Google provides Android system can support the features, in case the handset
To develop applications on the Android platform, the common language is Java, and for projects, products that migrate from other platforms to Android, or developers who are accustomed to C + + programming, will want to reuse existing C + + code. The Android platform provides a way to reuse Native code, as well as an environment and toolchain for compiling C code:
Android boot example Program
Android boot sample program. The broadcast method is used for acceptance, and the Android built-in storage SharedPreferences is used to store the auto-Start Settings of startup.
Source code: Click1. add permissions first
2. register the
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.