Android creates a new Activity, androidactivity
This article Reprinted from: http://www.cnblogs.com/wuyudong/p/5658020.html
Create a project, create a java class, and inherit from Activity
Create an Android. xml file: activity_test.xml
Configure
Use of PopupWindow and use of PopupWindow
Original article:Http://www.cnblogs.com/mengdd/p/3569127.html
The use of PopupWindow is analyzed through the example and PopupWindow source code. The final article "Supplemental Case: the pop-up window
Use Service to implement local push notifications and service to implement notifications
Many application frameworks are involved in the application layer of android, such as the Service framework, Activity management mechanism, Broadcast mechanism,
Android Tab and androidtab
Original article address: Http://blog.csdn.net/crazy1235/article/details/42678877
Effect:Slide switch; click Label Switch.
Code:Https://github.com/ldb-github/Layout_Tab
1. Use ViewPager and PagerTabStrip/PagerTitleStrip
For jump from Activity A to Activity B, Activity A has A VideoView and Activity B has A MediaPlayer ., Activityvideoview
Two different video jumps,
Previously, I destroyed VideoView in the onStop () method (because MediaPlayer is globally shared,
Android java transmits string data to C and androidstring
This article introduces the unimplemented method of "passing int type data to C in Android java:
Public native String sayHelloInC (String s );
Post a tool method first. The specific meaning
HandlerThread creates an asynchronous background thread and handlerthread Asynchronously
HandlerThread has the following advantages:
1. Create a background asynchronous thread, and you can discard a task as needed, which is flexible to use;
2. The
[Android] two asynchronous Methods: android asynchronous
Use AsyncTask to enable the Sub-thread to obtain server data and update the UI
/*** Asynchronous task *** @ author taoshihan **/public class HttpAsyncTask extends AsyncTask {/*** run the */@
Android Bluetooth 4.0 development Introduction, android4.0
I have been studying a Bluetooth function recently because I am a newbie and have been learning it for a long time before I understand it. On the Internet, I copied Bluetooth 4.0, that is, a
RxJava and RxAndroid 5 (thread scheduling), rxjavarxandroid
If you are not familiar with rxJava, you can check it first.
RxJava and RxAndroid 1 (basic)RxJava and RxAndroid 2 (Use of operators)RxJava and RxAndroid 3 (lifecycle control and memory
Android errors and android errors
Error: Found item Attr/border_width more than one time
This is easy, and the attributes are the same. Just search and delete the attributes as prompted. Note that the case sensitivity is easy to ignore.
Error:
[Android] How to Implement the return key and android
Record the operation history of user clicks, use the stack data structure, frequently operate the stack top (ADD, retrieve, delete), and use the shortlist
Capture the user's return key operation,
[Android] switching interface
1. Duplicate interface creation
2. The sub-objects in the container will be cleared every time the intermediate container is switched.
3. Click the return key.
Solve the Problem of duplicate creation:
Transmits Class
One project in eclipse references the method of another project.
Sometimes, one project depends on the class libraries and resources of another project. For example, the project "pdp-prrs" depends on the classes and packages in the directory-fw and
One of the solutions to incomplete display of text when RecyclerView is nested with TextView
First, describe this small bug: when a simple TextView nested RecyclerView is used as an itemView, layout overwrites may occur in the text. The layout of
Android uses HttpClient to submit data to the server, androidhttpclient
In the previous articles, "Android uses get to submit data to the server" and "Android uses post to submit data to the server" introduces two methods for android to submit data
Click to expand the ListView menu.
I. Overview
Click the item display menu in ListView to achieve this effect:
The logic to be implemented is as follows:
1) Click a common item to expand the current menu and close other menus.
2) Click an expanded
Specialized in android and android
In android, threads can be divided into MainThread (UI thread) and WorkerThread (threads other than MainThread ). In principle, modification to the UI is prohibited outside the UI thread. For example, create a
Permission processing during Android 6.0 Runtime, android6.0
Request permissions at runtime
From Android 6.0 (API level 23), users are granted permissions to applications when they install programs. This method simplifies the application
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