This article describes a fun appImplementation ideas: Use a custom view on a transparent activity and then draw on the view. 9 of broken glass pictures, plus sound effects. And then disappear for a while.The main use of a postinvalidate () method, with a set to put the finger touched place, call Postinvalidate () in the Touch event, method to redraw the view.It is important to note that the playback sound is the same as the play sound in the previous blog's
When an Android phone (which should be the case for all mobile phones) receives a text message or call, the screen is automatically lit and the screen lock is unlocked for immediate operation, the following code is used to implement this function:Keyguardmanager Km = (keyguardmanager) getsystemservice (context. keyguard_service );
// Obtain the key lock manager
Recently I do a function, is to implement the Android program in the lock screen can continue to run, the author on the Internet to check some information, now sorted out, I hope to be helpful.1. How to monitor screen lock screenMonitor screen lock screen can be implemented
Add two animation files in the project, file making trouble looking for Baidu:Device/qcom/your_project_name/bootanimation.zipdevice/qcom/your_project_name/shutdownanimation.zipAfter that, add the following code to the YOUR_PROJECT_NAME.MKProduct_copy_files + = device/qcom/$ (target_product)/bootanimation.zip:system/media/bootanimation.zip device/qcom/ $ (target_product)/shutdownanimation.zip:system/media/shutdownanimation.zip \Android Update boot
This article adds: Many online gesture articles say that Android supports gestures only from SDK 1.6 (that is, API 4), but I can also identify them using SDK1.5 simulators !. (I wanted to test the support effects of lower sdks, but I didn't have sdks earlier than version 1.5... my mobile SDK 2.2-,), so I checked the Api and found that:
Android. view. GestureDetector. OnGestureListener; since api-1,
Android: Reading Hu record: android:
A Handler thread can create a Handler object and process messages only when logoff is started. Otherwise, an exception occurs in the program.Start logoff by calling the static logoff. prepare (); method.A thread can only have one logoff and one MessageQueue, but it can have multiple Handler objects. Different Handler objects
Original link: Supporting multiple Screens Android runs on many different screen sizes (screens size) and density (density) devices. For applications, the Android system provides a consistent cross-device development environment that handles much of the work of the application adaptation screen. At the same time, in or
Android screen adaptive orientation and android adaptive Orientation
Recently, I feel like I am getting stuck on the screen ......The Android phone is Xiami. How many resolutions can it have? Why !!!!!!! Amen ......There are two solutions ......First:HTML5 + CSS3 + WebView i
I recently saw the usage of ViewFlipper and Animation together, and I wrote it myself. It seems very gray and easy to use, and the effect is much better than that of gallery scrolling and viewing images, this also enables switching between images on the scrolling screen, but the user experience is much better! So I will share my own demo! I hope it will be useful to you and it will be easier for me to check it later! Reprinted please indicate the sour
Use MediaRecorder to record videos and Android videos for android Development
In addition to recording audio, MediaRecorder can also be used to record videos. For details about MediaRecorder, refer to MediaRecorder class in Android development. The procedure for recording a
with Apktool.Apktool b crackmemz02There is a regenerated apk in the directory's Dist directory, this time the APK is unsignedThe apk file needs to be signed using the Signapk.jar toolsignapk crackmemz.apkGenerate signed.apk after signingInstallation testTurn on the virtual applianceADB install signed.apkHere we are done, the first time the Android hackAnti-compilation tool: Http://pan.baidu.com/s/1c1XNiBA password fyn7Android Environment build tool:
Recently I have studied lancher, from the text message MMS framework to the bug and demand modification of launcher. Next I will explain the layout of the simplest home screen program of launcher, it gives readers a sense of getting started. The main screen of Android is divided into five screens, which are 0, 1, 2, 3, and 4 from left to right. So which programs
Winfrom: simple screen acquisition for Android phones and simple Android operations; winfrom android
Why do I need to do this? It is because projection demonstration apps are often used. There are a lot of such software that can be installed to place the mobile phone interface on a computer, for example, 360 mobile as
distinctionIf your program learns the Android device screen, depending on the size of the different layout scheme can be used, but when we write the program, layout, it is not possible to layout in inches, first assume that we use the pixel (px) layout, but here will encounter a problem, here we need to introduce the new term, Please see 2 .....2 screen resoluti
Three split-screen display modes of the Android system and android Display Mode
Google introduced a new feature in Android 7.0-Multi-Window support, allowing users to open two applications on the screen at a time. On a handheld device, two applications can be displayed side
disabled on the screen. getHolder (). setKeepScreenOn (true);} @ Overridepublic void onClick (View source) {switch (source. getId () {// click the recording button case R. id. record: if (! Environment. getExternalStorageState (). equals (android. OS. Environment. MEDIA_MOUNTED) {Toast. makeText (RecordVideo. this, "the SD card does not exist. Please insert the
Original URL: http://www.cnblogs.com/zdz8207/archive/2012/11/27/android-ndk-install.htmlAndroid latest NDK R8 under Window development environment installation configuration and use of detailed graphic explanation, complete actual configuration process record (original) always want to engage in the NDK development has been delayed for other things, reference to some online information today finally set up t
Android screen adaptation solution and android adaptation solution
Reprinted please indicate the source:Http://blog.csdn.net/lmj623565791/article/details/45460089;This article is from: [Zhang Hongyang's blog]
1. Overview
During Android development, you will surely feel that scr
Ways to disable the Android screen and restart activity when switching screens1. Add the android:screenorientation= "Landscape" attribute to the Androidmanifest.xml activity configuration (Landscape is landscape, Portrait is portrait). Such as:
2. General screen switching, the activity to restart, in order to avoid restarting, you can add android:configchanges=
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.