Read the Assets folder
InputStream is = Getassets (). Open ("Read_asset.txt");//We Guarantee The available method returns the total//size of the asset. Of course, this does mean//asset can ' t be more than 2 gigs.intSize =is.available
CameraA. call the system camera directlyIntent Intent = new Intent (); // call camera Intent.setaction ("Android.media.action.STILL_IMAGE_CAMERA");StartActivity (Intent);You do not need to set permissions.B. the camera you wrote yourself1 Display
1:cmd+l Lock ScreeniOS local notifications do not push messages while the program is running, but only when the program enters the background.-(ibaction) addlocalnote {//1. Create a notificationUilocalnotification *localnote =[[Uilocalnotification
(1) Use AutoLayout in storyboard. This AutoLayout and autoresizing are conflicting and can only be chosen.--the constraints of different levels of controls are added at the top level.--The mutual constraints of the controls at the same level are
Before reading the ThoughtsTake some time today, put together some dry goods, and then you can and this book say goodbye.Including:
P85 10.1.3
P96 after using GCD
P99 Background Run
p131 using Safari for debugging
p184 to
Jump between activity, can be rewritten after startactivity (intent)public void Overridependingtransition (R.anim.enteranim, R.anim.exitanim);where Enteranim for entering animation, Exitanim for out animation.Create a new Enteranim.xml file in the
First: In a class, define a class interface, and then give the definition of the class (the simplest and most intuitive) Public classTestextendsactivity{Button btn; Public voidonCreate (Bundle savedinstancestate) {Super. OnCreate
Project Catalog:do software development should know, a lot of software will have configuration files, which is stored in the program running the various property values, because of its configuration information is not much, if the use of database to
Get Phone Status:Import Android.content.context;import android.telephony.telephonymanager;//Get the appropriate system service Telephonymanager TM = ( Telephonymanager) Getsystemservice (context.telephony_service); * /Tm.getcallstate
Wrote an android notification local notification plugin, there was a problem in the 4.0 version of Xiaomi.The Notification.builder method is used. But Xiaomi will report the mistake on the headline.Then the old method is made compatible.Notification
Do iOS QR code scan, there are two third-party libraries to choose from, Zbar and zxing. Today is to introduce the iOS7.0 after the Avfoundation framework provides a native QR code scan.First, you need to add the Avfoundation.framework framework to
Adt-bundle for Windows is an integrated IDE, officially provided by Google Android, which already contains eclipse, you no longer need to download eclipse, and the plugin is integrated It solves the complex problem of most novices configuring the
While the App store can alert users to software updates, many users do not proactively update a whole bunch of software (the software on my machine is about 100). It can be a lot better if you remind users to update or more in the "Check for Updates"
To do Android testing, some things need to be done frequently, such as screenshot, record video (Android4.4 new features), batch install the app (adb in the SDK cannot install apk named in Chinese), bulk uninstall app, get app apk, package
I'm still working from the ground up! Recently, you need to add a voice-over camera to the cameras, which you need to achieve in your settings:The "Voice capture" menu features that are set up are described below:(1) When you click on the "Voice
This experience will introduce the four kinds of Alertdialog in Android: Show with Neutral, Cancel, OK prompt box, get Dialog button with list, get dialog box with radio List, get dialog box with multiple options. This experience describes getting a
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.