Your Android project is very powerful, docking a lot of third-party open source libraries, the more complete the project, the more the code hit more and more cool. But suddenly one day the newspaper was abnormal.Error: The number of method references in a. dex file cannot exceed 64K.The compiler reminds you that your project has more than 64k of methods.Androidstudio will remind you:Learn how to resolve the
As a result of open source of Android project, the market of n many Android software appeared. In order for us to develop the software to have more users to use, we need to release to the N-market, software upgrades, we also have to go to the Android Market to update, to increase our workload. So it is necessary for us to add Automatic Updates to our
Eclipse can also compile Android apps, but Eclipse found that after the upgrade bundle too many things, a new project can not be compiled in the past, the review of resources will sometimes error, and large-scale application eclipse compiled is extremely slow, most of the case is basically compiled, but Eclipse is only suitable for editing code, not for compiling
so on. For example, "*" means matching any class name but does not include the package delimiter, while "* *" matches any class name and includes any number of package delimiters. So the code we commented on above means the following: the first line: all methods that keep all classes under Com.ttdevs.proguard and sub-packages are not confused, and the second row keeps all methods and member variables of the class under Com.ttdevs.proguard and all the classes under the sub-package are not confus
View.setelevation () method in your code.Set the panning of a view using the View.settranslationz () method.The new Method Viewpropertyanimator.z () and Viewpropertyanimator.translationz () can make it easier for you to change the height of the view. For more information, see E mentor's Android app development video tutorial .You can also define these files in an XML file using the Statelistanimator method
the flag variable is 1, indicating that a connection was generated.When currentstate-historystae =-1, the state is connected to a break, at which time the flag variable is 0, indicating that a fracture has occurred.Create a function to get the Currentstae:public int getcurrentstate () {return this.manager.getWifiState () = = wifimanager.wifi_state_enabled? 1:0;}Next we modify Mythread's Run method as follows:@Overridepublic void Run () {if (historystate = =-1) {currentstate = Getcurrentstate ()
that the device can run the Android 4.4 system smoothly with just 512MB of memory. In addition, Google provides developers with memory usage analysis tools to help developers better monitor their applications and reduce RAM usage."512MB of Memory enough" such a message is really ecstatic, but we also do not be happy too early, after all, pretending not to be loaded with the use of not good is a different thing. Google says 512MB of memory is enough,
most are translated by Google's official documents. Because of the time problem, coupled with their own English is bad enough, the recent slow. However, such a down, plus some of their own code exercises, for the material design can be basically used. Unfortunately, most of the style is not backward compatible, had to wait 5. There are some big God in the Internet has been open source some open source components, we can take this curve to salvation, the next time in a special collation. This ar
, although the name is slightly different, but the bottom-up implementation still through the above four ways.1.Activity implements value transfer between two appsSuppose you have two apps APP1 and APP2, and you want to start APP2 in Activityb by clicking on a button in the Activitya in App1 or another control's click event. The steps are as follows:1. Exposing the ActivitybFor example, now that a loginactivity needs to be exposed, you can modify the
for animation:
Z = elevation + Translationz
Shading of views of different heightsSet evelation in the layout file android:elevation and use the method in your code View.setElevation() .Set the panning of a view using the View.settranslationz () method. New method viewpropertyanimator.z () and viewpropertyanimator.translationz () allows you to change the height of the view more easily. A lot of other information, see Viewpropertyanimat
The previous chapter documented the cross-application launch service, before learning the difference and usage of startservice in Bindservice.Using the Bindservice method, the activity requires the service to return a binder object, so if two applications are implemented, this involves a aidl concept.
Aidl (Android Interface Definition Language) is an IDL language used to generate interprocess communication between two processes on
Recently, a sudden whim, interested in some loading, loading this thing is important also important, said not important and unimportant, because this is a promotion of your product experience a detail, if loading do well, for some time-consuming need to wait for the page will distract users, Will not appear so irritable, so you can see all kinds of interesting loading animation on the market, then this blog is ready to collect some loading animation bar, from these realization ideas can open you
The four ways Android boots are standard,singletop,singletask,singleinstence, respectively.Standard is the most common way to start an activity and is the default way to start. When you start an activity, he goes to the top of the stack at the back of the stack. The system does not control whether the stack has the same activity, in the same way as after-in first-out.Singletop mode is when the activity starts, the system first determines whether the t
appearance of the CardView:
Use the Card_view:cardcornerradius property to set the radius of the fillet in the layout file.Use the Cardview.setradius method to set the radius of the fillet in Java code.Sets the background color of the card, using the card_view:cardbackgroundcolor property.
Below is an example of a CardView included in an XML layout file: Card example DiagramCard example DiagramStrumRecyclerview can be seen through the above. It's a lot like the ListView we used t
can be created less.
2, to avoid unnecessary drawing logic, when needed to draw. This needs to be adjusted based on the control's drawing logic, which is also very important.
3, the general principle is to do everything possible to control the implementation of the OnDraw method within 16ms, will not be card.
Finally, look at the effect we've achieved.
Source Address:
GitHub Address
The above is a small set to introduce Android to create
articles
Get cool video real address by decompile
The principle of Youku Network video address acquisition
Cool video Real Address resolution
Vi. Vitamio and related
Vitamio: Http://vov.io
vplayer: http://vplayer.net (using Vitamio's most successful product, more than 5 million users)
End
Here is to take m3u8 address, has also been taken, but the current version of the Vitamio can not play the re
There are several ways to implement multi-language switching for Android applications, and there are a lot of information on the web, and there is a simple and effective way.The steps are as follows:Create a new folder in the resource file Values-en, Create a new Strings.xml, copy the contents of the Strings.xml in the default values folder to Strings.xml in Valu
Today in the use of 360 mobile phone assistant, found that it will automatically create a quick start mode, it feels very interesting, so on the Internet Baidu Some methods, try, there is a way is quite good, I use for reference, first save, I also wrote a Test applet.First, add the code in the mainactivity you want to launch the app into, and in the OnCreate () method, plus a method createshortcut ();Then there is the implementation of the method:private void CreateShortcut () {//TODO auto-gene
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.