We have learned how to call an activity in a single application. However, an important aspect in android development is to use intent to call the activity of other applications. In particular, your application can call many "built-in" applications in the system. The so-called "built-in" application refers to applications at the same level, such as Browser, Phone, and Sms. For example, if your application ne
of different resolutions, I want to play meide. A game and software can be used in two ways. One is that we make adaptive screen games when playing games, for example, we take coordinates based on the screen width, height, image width, height, and so on, rather than writing the dead position coordinates. The second is the adaptive technology of Android OS after 1.6;
However, in some cases, it is clear that andro
Use JavaScript to call Android code
1. Use the addjavascriptinterface method of the webview object
2. the addjavascriptinterface method has two parameters. The first parameter is a class that we generally implement. The class provides the method we want to provide for JavaScript access; the second parameter is the JS object used to access the method declared in O
Android learning notes-use of remote services and android learning notes --1. AIDL and Binder
The Activity, Content Provider, Broadcast, and Service components of the Android system can transmit data across processes.
Activity can call the activities of other processes implicitly; Content Provier can access data in oth
();
// --- Use the putextra () method to return some
// Value ---
I. putextra ("age3", 45 );
// --- Use the setdata () method to return some value ---
I. setdata (URI. parse ("something passed back to main activity "));
// --- Set the result with OK and the intent object ---
Setresult (result_ OK, I );
// --- Destroy the current activity ---
Finish ();
}
}
5. The code in androidmanifest
Input and Output" ------> "text-to-speech Settings.
If "always use my settings" is selected, the system will set the highest priority here, And the settings in the Code are invalid.
2. parsing the XML dictionary using the pull Method
For this part, refer to the previous blog post. Http://blog.csdn.net/conowen/article/details/7420298
This article adds the TTS pronunciation function based on the above blog posts.
3. Note
Some
Android expert path: Use of Custom Attributes attr. xml and TypedArray in Android
Generally, we use android: xxx =. However, sometimes we need to use custom attributes, especially for custom views.
The following steps are generall
Corporation" in the "Status" column is "Installed", as shown below:
Under the "Tools" menu, select "Manage AVDs...", as shown below:
The "Android Virtual Device Manager" window appears. Select "New" in the window.
Enter a Name for your virtual device in the "Name" field. Note that no space is allowed in the Name field.
Select "Intel Atomx86 System Image (Intel Corporation)-API Level 10" from the drop-down list of the "Target" field, as shown belo
After so long Android development, I always wanted to sum up the accumulated experience or problems in the development process, but I don't have time. Now I am idle, so I will sort out the problems I encountered in Android for my reference and hope to share them with you. If anything is wrong, please kindly advise.
The following describes how to use the
Use of Android slide menu DrawerLayout and android slide menu
Currently, many slide menus are used, mostly through SlidingMenu. You can also use DrawerLayout
Create drawer Layout
Frament_content.xml
Activity_main.xml
Create a new class to inherit the Fragment class
/*** ContentFragment. java * copyright (C) 201
How to Use Android Studio to develop/debug the Android source code, studioandroid
This article uses the development/tools/idegen/README in the source code as the guiding document.
Environment: Ubuntu 14.10, openJdk 1.7, Android Studio 1.0.2, android-5.0.1_r1 source code
Beca
Use Kotlin to develop Android and kotlin to develop android
Check out all my open-source projects [open-source lab]Welcome to my QQ group: [201055521]. Please click to download the source code of this blog client]Summary
I first declared that I didn't use Kotlin for a long time. I wrote these articles almost simultane
Use Android Studio to build an Android integrated development environment graphic tutorial
[Body]
I have talked about how to use IntelliJ IDEA 13 to build an integrated Android development environment. The system was reinstalled yesterday, so to keep up with the times, let's
Ref:http://www.iplaysoft.com/android-v4-ics-for-virtualbox.html with android a variety of mobile phone software applications more and more, a lot of friends who did not buy have said they want to try. Although the official android SDK The development package with a simulator, but the installation of the use o
length in bytes of the data to be played
Throws
Illegalstateexception
If it is called in an invalid state
Ioexception
Illegalargumentexception
However, it is helpless to play encrypted audio files in real time. Although some encrypted audio files can be solved by combining audiotrack with libmad.
3. Simple demo program
The following provides an audiotrack MP3 dem
How to Use Ant to automatically build Android and ant to build android
Ant is a good cross-platform build tool, especially for Java projects. It is very convenient to use it to automatically build Android projects. Generally, to build an
Use Android Ksoap2 in Android to call WebService and androidksoap2
1. Introduction to WebService
Based on the SOAP protocol, WebService can communicate between web servers and web servers. Because the XML data transmitted using the SOAP protocol is platform-independent, it is also an important solution for communication between heterogeneous platfo
IntroductionBecause of the need for JNI in the project, the previous use of JNI and so files on Eclipse, porting to Android Studio is a lot of effort, and has dealt with a number of common mistakes, and many articles on the Web have written only the approximate steps, ignoring a lot of details, In order to let the novice less detours, but also to strengthen their understanding, the step-by-step operation to
Use MediaRecorder to record videos and Android videos for android Development
In addition to recording audio, MediaRecorder can also be used to record videos. For details about MediaRecorder, refer to MediaRecorder class in Android development. The procedure for recording a video using MediaRecorder is basically the sa
There are three ways to develop the Android environment, namely Jdk+sdk+eclipse+adt, Jdk+adt-bundle, and Jdk+android Studio.
Do not use Jdk+sdk+eclipse+adt this way, not to say what is too complicated, because the Guo Jia network you know, open the SDK tool after the download is not. Android Studio is also not good, s
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.