Today we are going to introduce some of the techniques that are going to be used in the Android development process, all of which come from web-based collections, or when you're working on a project in your business, and using these techniques will bring convenience to our development.first of all, to record the technical directory of this period of time, convenient for everyone to check later ( There's probably not a eve kind of
Http://stuffandtech.blogspot.jp/2012/03/android-quick-tip-adb-over-wifi.htmlMar26android Quick tip-adb over Wifisomeone I had the pleasure of working with recently showed me something extremely co OL for Android Development. It's simply that it's possible to use the ADB (Android
The Android custom layout realizes the Bubble window, which can control the angle direction and the offset of the bubble.
Effect chart
Realize
First customize a bubble layout.
/** * Bubble Layout/public class Bubblerelativelayout extends Relativelayout {/** * bubble angle direction/public enum Bubblelegor
ientation {top, left, right, BOTTOM, NONE} public static int PADDING = 30;
public static int leg_half_base = 30;
public static float st
This article focuses on the components that Android often uses for message hinting: Alertdialog, TOAST, notification usage scenarios, and their basic usage, explore some advanced topics, and finally summarize some of the common problems in the development process.
Let's start with a visual understanding of these three message-hinting mechanisms, namely Alertdialog Toast, NotificationNext, we introduce the corresponding usage scenarios and usage o
Android development Tip 2-avoid date verification in EditText
Developers know that the data in the verification form is annoying and error-prone, as is the verification in the Date input box. We can develop a Button that looks the same as EditText. After you click this Button, a DatePicker control is displayed.
To implement the above idea, you need to change the default background of the Button control to t
In fact, when it comes to immersion status bar this name I also feel very helpless, I really do not know who this term is first launched. Because the Android authorities never gave a name like the immersive status bar, only the immersive mode. And some people, without fully understanding what the immersion model is, confusedly that some system-supplied status bar operations are immersive and also have an immersive status bar name.
For example, there
Today want to write a program to test the Android Studo code, but after creating a good project, prompt:Error: (1, 0) Plugin is too old, please update to a more recent version, or set android_daily_override environment variable To "8051cdccc746d532152541ee35015fd83699f14"To be sure, my native Android studio other projects are normal, but those projects that are not created by me, are directly downloaded fro
Directory:First, print your own set of modulation information (LOG).Second, use the real machine to run.Small tip:1. Print your own set of modulation information (LOG).At the time of the experiment will manually output some information to see the wrong point of error, have never known where to display, checked, the method is shown as follows:(1) Code: LOG.D (String tag, string message); You can use ("" + variable name) to convert a variable to a strin
Android Studio UpgradeAndroid Studio has a stable version, and when you click Check Update, Connection failed always appears. Please check your network ... Helpless, very.later on the online review of similar articles, here to summarize the following Upgrade failure prompt Connection failed. Please check your network ... Solution, hope can help everyone.On this issue, found that online solutions are similar. This article is a workaround in Windows sys
Android Baseline tip, androidbaseline
Reprinted please indicate the source: http://blog.csdn.net/bbld_/article/details/40709353
Baseline Alignment
Android development problems (Code problems)
In android, which layout can be used to set the position of the child control relative to the parent control?
Because t
!ArrayAdapter.R.layout.simple_spinner_item, dates);arrayAdapter.setDropDownViewResource(R.layout.simple_spinner_dropdown_item);spinner.setAdapter(arrayAdapter);After running, the discovery is not centered!Now, look back at the mpopup.show () function that displays the listJoin us to choose the dropdown mode!Dropdownpopup.show ()public void show (int textdirection, int textalignment) {final b Oolean wasshowing = isshowing (); Computecontentwidth (); Setinp
parameters are listed below. Build a specified moduleas the recommended structure ismultiple projectStructure, under one project, to manage multiple module, if you want to build all of project every time, a bit of a waste of time, you can use-p moduleparameter, where module is the module you want to build:$ ./gradlew -p app clean buildExplicitly specifying that there is a dependency on a command that does not execute a taskgradle, such as a build task, is dependent on a series of other tasks, a
1, first on the code A, if we remove the id attribute of the above radiobutton.That is, remove android:id= "@+id/rb_feature" and Android:id= "@+id/rb_description", while the first RadioButton set android:checked= "true", then when youOpen this interface, the default will have a RadioButton is selected, but when you click on other RadioButton, the default state of the first selected state of RadioButton will not change, orCheck state. The workaround is not to set the default check state in the
Reference: http://developer.android.com/reference/android/os/SystemClock.htmlsystem.currenttimemills () the number of milliseconds that this function obtains is determined by the date and time of the current system. It can be changed by Systemclock.setcurrenttimemillis (). If you need an accurate timer, you must not use it .Systemclock.uptimemillis () This clock is often used to animate, and Animationutils.currentanimationtimemillis () is implemented
Android LoaderManger load data Tip
For details about LoaderManager, refer to the blog:
LoaderManager Introduction
No matter how you call getLoaderManager (). restartLoader (LOADER_TYPE_QUERY, null, this); method, loader is not executed (getLoaderManager () has been registered in the onCreate method (). initLoader (LOADER_TYPE_QUERY, null, this );)
I was puzzled. After carefully reading the above blog,
1. Creation and destruction of Surfaceview when Surfaceview is hidden, Surfaceview is destroyed, and SurfaceHolder.Callback.surfaceDestroyed () is called. When Surfaceview is displayed again, Surfaceview is created, and SurfaceHolder.Callback.surfaceCreated () 2 is called. The overlay of the Surfaceview shows that if there are two surfaceview that need to be superimposed, for example, a to hover over B, at which point a call to Surfaceview.setzorderontop (true) is required;
Debugging the application with Eclipse, encountered this problem, the online solution is quite a lot, but it seems to have not worked, and my phone also restarted, or there is a problem, depressed ing ...And then see an article that may not be the signature and SD card problem, but our own androidmanifest.xml have problems, and then I thought, I just seemed to change this, then SVN restore, everything is normal ...Too vomiting blood, tossing a morning--!Reference:About
When you install the app, you will be prompted with two general errors:The first: the memory of the mobile phone or emulator installation application is full and needs to be cleaned after the memory is trying to install.Second: The phone or emulator already exists for this app or the app's data, you can uninstall this app after you try to install. If you do not have this app, you can delete the corresponding package to your phone/data/data/directory.If you solve your problem, please click to pra
Once you've written your Android code with eclipse, the code doesn't get an error. And thenWhen you want to run a test in the AVD, the Error box always pops up with the message: "Your Project contains error (s), please fix them before running Your application.”Whether restarting the AVD, restarting eclipse or even creating a new Android project will not workThere are several reasons:1. Under different compu
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.