For programmers, especially the front-end design designer, nine Gongge picture is necessary (. 9.png), for beginners do not know this nine Gongge picture what is the use, in fact, this nine Gongge pictures actually commonly used in Android button components, to up and down the background image.Tools/Materials
Computer
Draw9patch.bat
Method/Step
The first step: first to find Draw9patch.bat, my
Android Development Series (9): Create a database and complete simple CRUD operations
This blog post mainly implements simple database creation and CRUD operations.
First, create an Android Project named db
1. Complete database creation:
You can use getWritableDatabase () and getReadableDatabase () in the SQLiteOpenHelper class to obtain the SQLiteDatabase instan
Since May, Google's debut at the annual developer conference, Android 9 P, its official version of Android 9 PIE was officially released yesterday, NetEase Cloud Shield Mobile Security was the first time yesterday, the final adaptation.Early this year, Yi-Shield was ready for the relevant preparations. Shortly after th
is displayed,
Congratulations, you have successfully installed jdk. Next, continue,
MyEclipse9 download installation, http://downloads.myeclipseide.com/downloads/products/eworkbench/helios/installers/myeclipse-9.0M1-win32.exe
(Follow the Installation Wizard step by step to install)
Android SDK download
Follow the Installation Wizard to install the SDK Manager,
Wait for a while, you can see the following interface, select the SDK version you want to
Simple tutorial for Android-gun 9 (BitmapFactory. Options scaling resource images ),
We know that all the applications we write have certain memory limitations. If the program occupies too much memory, it is prone to OOM (OutOfMemory) exceptions. Therefore, when displaying a high-resolution image, it is best to compress the image first. The size of the compressed image should be similar to the size of the c
Collated and summed up 9 Android development errors and solutions, together to explore progress!1. If your project's R file is missing , you can try to change the version number in the Save, R file is not generally the layout text error caused.2. Layout files may not have uppercase letters3. Throw the following error warning:application does not specify a API level requirement!,Modify the Androidmanifest.xm
Android note 9. Intent Exception Handling and common system callsIntent Exception Handling and common system calls Jiangdg_VIPhttp: // blog.csdn.net/u0126375011. Intent Exception HandlingWhen an Intent object starts a component or application, an exception may occur due to incorrect component settings or the application is not installed. In general, the application exits unexpectedly when an exception occur
Android. 9PNG picture MakerIn the process of Android development, we often because there is no good art image distortion, so that the interface looks less than a lot of, sometimes we would like to drawable-hdpi,ldpi,mdpi the different resolution of the image, so that although it can effectively avoid distorted images, But this one is the trouble two is that the picture resource is too big, so we use.
After importing the Android project, R all turns red, the console has the following tipsThe lack of some resources, such as pictures, and then I found that there is a picture resources, import image resources, still error, as followsError:execution failed for task ': Generalappn:mergedebugresources '.Some information was found to be due to the. 9 PNG image There is a problem with
downloaded picture, the relevant code is as follows:try{parcelfiledescriptor PFD = Manager.opendownloadedfile (Donedownloadid);FileDescriptor filedescriptor = Pfd.getfiledescriptor ();Bitmap Bitmap = Bitmapfactory.decodefiledescriptor (FileDescriptor);Pfd.close ();ImageView image = (ImageView) Findviewbyid (r.id.download_image);Image.setimagebitmap (bitmap);}catch (Exception e) {E.printstacktrace ();}View download status and cancel downloadsAdd a Cancel button in layout to trigger the Canceldow
, we can see that the second picture is not shown in gallery */Private int[] Pics = {R.drawable.sunflower01, r.drawable.sky01,r.drawable.sky02};Private string[] Picsname = {"Image", "Image1", "image"};@Overrideprotected void OnCreate (Bundle savedinstancestate) {Super.oncreate (savedinstancestate);Setcontentview (R.layout.ui_gallery);@SuppressWarnings ("deprecation")Gallery Gallery = (Gallery) Findviewbyid (r.id.ui_gallery); The format of the//simpleadapter data source is ListarraylistImages = n
exist.Such a mistake, here summed up two ways to solve:Do you have '. ' Before viewing the name of the main activity in the Androidmanifest.xml file? Character # #
7 This error occurred while running eclipse
Copy Code code as follows:
No Launcher Activity found!
The launch would only be sync the application package on the device!
Solutions
Add in Androidmanifest.xml
Copy Code code as follows:
8 The following error is not written to the SD card pe
Because the project needs to do screen adaptation, and a lot of original pictures, the original words are from other programs ba La down, and now a lot of their own, so must consider how to do, and to ensure that the layout will not be messyNeedless to say, the film production method, avoid people go too many detoursIn fact, the Android SDK with the image of the production tool, if it is used by the artist, you also need to configure the Java environm
In game development, it is inevitable that the actual situation needs to be simulated. Generally, the physical world is simulated.
For example, object collision, vehicle forward, and object whereabouts. Some people may think that they have achieved some effects and have not seen any physical knowledge.
In my opinion, introducing a physical engine is not necessary, but it can make the game more realistic. Box2d is preferred for physical engines, but it is written in C ++, which is inconvenien
background maps. Can save the UI a lot of effort, the programmer can take care of himself1 6 android:angle= "7 android:endcolor=" #FFFF0000 "8 android:startcolor=" #FFFF0000 "/> 9 padding android:bottom= "10DP" one android:left= "10DP" android:right= "10DP" 13 android:top= "10DP"/>14 stroke android:width= "2DP" android:color= "# DCDCDC "/>17 Effect:3.layerDrawableThi
The initial pair of. 9 pictures is not very understanding, some tutorials let people can't touch the mind.The recent re-study finally understood its principle.In fact, the most important thing to remember is that. 9 The meaning of the four black edges of the picture is different for each black edge:
Top: When horizontal stretching, keep other positions motionless, only at this point of the area do unl
---restore content starts---First of all, to install the software, feel I have found some of the textbooks are relatively simple, after some detours, decided to follow this Baidu experience toA detailed tutorial on Android development environmentHttp://jingyan.baidu.com/article/948f592448183bd80ff5f9d1.htmlThe place to compare pits is that the Android SDK is downloaded, and after clicking on "SDK Manager.ex
Android learning notes (9) -- ListView introduction, androidlistview
As the most commonly used control on Android, ListView must be well mastered. Here we will introduce some basic knowledge and features of ListView and provide a simple example.
First, let's define layout:
?
123456789101112131415
LinearLayoutxmlns:android="http://schemas.android.com
((System.currenttimemillis ()-Mexittime) > 2000) {//Assume two times the key time interval is greater than 2000 milliseconds. Do not exit Toast.maketext (this, "Press again to exit the program", Toast.length_short). Show (); Mexittime = System.currenttimemillis ();//Update mexittime} ELSE {SYSTEM.EXIT (0);//Exit program} return true; } return Super.onkeydown (KeyCode, event); Cocos2dxglsurfaceview Oncreateview () {Cocos2dxglsurfaceview Glsurfaceview = new Cocos2dxglsurfacev
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.