1. solve the problem that the SCR directory lacks package files when an android project is generated. I usedCocos2dx \ platform \ Android \ Java \ SRCPaste the file under this directory to the project'sProj. Android \ SRCThe solution was later found
Features
When creating an Android Application, user registration is essential. You often need to edit the user's profile picture. The setting process is as follows:
Interface Design
Create a thumbnail imageview. When you click it, the set
1. Custom ratingbar:
Ratingbar introduction:
Ratingbar is a scoring bar control. By default, it has several green stars. If you want to change it to another custom image, you need to customize its style.
Ratingbar is an extension of seekbar and
Recently, I was developing a QR code scan project. I pulled down a zxing source code and then rewritten it. When I modified the zxing for android portrait mode, I encountered the following problems:
You have modified androidmainfest. android:
Android is now a very popular mobile operating system. This little robot creates a big world. Many developers are also dedicated to Android development. For beginners and experts, you must keep your technical reserves updated and know the latest
Disclaimer: The book "Secrets of Android Application Development", which records the logs of the book, references the relevant code and summary, and has no commercial use, it is completely a record of self-learning, and many problems will
Disclaimer: The book "Secrets of Android Application Development", which records the logs of the book, references the relevant code and summary, and has no commercial use, it is completely a record of self-learning, and many problems will inevitably
Ii. Multimedia camera
The camera function of the mobile phone is an essential function for everyone to take photos. I think it is easier to understand the explanation of a blog on the Internet. Here I will refer to the blog post, add your own
Disclaimer: The book "Secrets of Android Application Development", which records the logs of the book, references the relevant code and summary, and has no commercial use, it is completely a record of self-learning, and many problems will
Are you still worried about occupying more than 20 mb of space after obtaining the root permission for z4root?Let's try the latest root software. It only occupies 1 MB of root software and quickly obtains root permissions, which is faster than
In Android, our applications sometimes need to provide external data interfaces. The following methods can be used: 1) aidl 2) broadcast 3) contentprovider.
To use aidl, We need to write and implement the aidl interface, and the other party must
Four components in Android are activity, service, broadcast, and content provider. Intent is an abstract description of actions and actions. It is responsible for message transmission between programs between components. The broadcast Receiver
Since Pinterest used waterfall stream to display images, many applications have begun to use waterfall stream, such as mogujie.com. The waterfall stream implementation here uses open source code.
Layout:
The entire waterfall stream
This simple example demonstrates how to use Java to transfer files between the client and the server.
Server Source Code:Import java.net. *; Import Java. io. *; public class fileserver { Public static void main (string [] ARGs) throwsioexception {
Vertical text scrolling
[Function]
In previous articles, I wrote how to scroll horizontally. Now let's talk about vertical scrolling.
[Principle]
1. Set the height of the scrollview control to a value.
2. How to scroll the display: scrollview.
1. Customize the activity display style
First, create the colors. xml file under Res/Values and write:
#9000
This value sets the transparency of the entire interface. To see the effect, it is now set to about 56% (9/16.
Create styles. xml
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
Manual packaging process:
1. decompile APKApktool D qq.apk qq2. You can modify the image file information in the QQ folder and package it into an APK file. apktool B QQ qq.apk 3. Sign the file (you need to create a certificate by yourself, you
Some time ago, when I made a demo, I needed to determine the network connection status of the machine and set up the network. I found the answer to the problem through checking the information.
1. Determine network conditions
Private Boolean
To implement a simple custom view (excluding processing users' touch events), it usually takes only three steps.
1. inherit from a view (which can be a more specific view implemented by Android) and add the required Constructor (this is
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