On Windows, you may have to run telnet Your app can authenticate users based on how recently they last unlocked their device. This feature frees users from having to remember additional app-specific passwords, and avoids the need for you to implement your own authentication user interface. Your app should use this feature in conjunction with a public or secret key implementation for user authentication. To set the timeout duration for which the same key can be re-used after a user is successfully authenticated, call the new setUserAuthenticationValidityDurationSeconds method when you set up a KeyGenerator or KeyPairGenerator.
Avoid showing the re-authentication dialog excessively -- your apps should try using the cryptographic object first and if the timeout expires, use the createConfirmDeviceCredentialIntent method to re-authenticate the user within your app.
This feature allows you to associate an app with a web domain you own. Based on this association, the platform can determine the default app to use to handle a particular web link and skip prompting users to select an app. To learn how to implement this feature, see Handling App Links. Auto Backup for Apps The system now performs automatic full data backup and restore for apps. Your app must target Android 6. If users delete their Google accounts, their backup data is deleted as well.
To learn how this feature works and how to configure what to back up on the file system, see Configuring Auto Backup for Apps. This release provides you with APIs to make sharing intuitive and quick for users. You can now define direct share targets that launch a specific activity in your app.
These direct share targets are exposed to users via the Share menu. This feature allows users to share content to targets, such as contacts, within other apps.
For example, the direct share target might launch an activity in another social network app, which lets the user share content directly to a specific friend or community in that app. To enable direct share targets you must define a class that extends the ChooserTargetService class. Declare your service in the manifest. The following example shows how you might declare the ChooserTargetService in your manifest.
This release provides a new voice interaction API which, together with Voice Actions , allows you to build conversational voice experiences into your apps. Call the isVoiceInteraction method to determine if a voice action triggered your activity. If so, your app can use the VoiceInteractor class to request a voice confirmation from the user, select from a list of options, and more.
Most voice interactions originate from a user voice action. A voice interaction activity can also, however, start without user input. For example, another app launched through a voice interaction can also send an intent to launch a voice interaction. To determine if your activity launched from a user voice query or from another voice interaction app, call the isVoiceInteractionRoot method.
If another app launched your activity, the method returns false. Your app may then prompt the user to confirm that they intended this action. To learn more about implementing voice actions, see the Voice Actions developer site. This release offers a new way for users to engage with your apps through an assistant. To use this feature, the user must enable the assistant to use the current context.
Once enabled, the user can summon the assistant within any app, by long-pressing on the Home button. In addition to the standard set of information that the platform passes to the assistant, your app can share additional information by using the new AssistContent class.
With this release, users can adopt external storage devices such as SD cards. Adopting an external storage device encrypts and formats the device to behave like internal storage. This feature allows users to move both apps and private data of those apps between storage devices. When moving apps, the system respects the android:installLocation preference in the manifest.
If your app accesses the following APIs or fields, be aware that the file paths they return will dynamically change when the app is moved between internal and external storage devices. When building file paths, it is strongly recommended that you always call these APIs dynamically. This release provides improved support for user input using a Bluetooth stylus.
Users can pair and connect a compatible Bluetooth stylus with their phone or tablet. While connected, position information from the touch screen is fused with pressure and button information from the stylus to provide a greater range of expression than with the touch screen alone. Your app can listen for stylus button presses and perform secondary actions, by registering View.
OnContextClickListener objects in your activity. Use the MotionEvent methods and constants to detect stylus button interactions:. Create complex layouts with ConstraintLayout by adding constraints from each view to other views and guidelines. Then preview your layout on any screen size by selecting one of various device configurations or by simply resizing the preview window. Find opportunities to reduce your Android app size by inspecting the contents of your app APK file, even if it wasn't built with Android Studio.
Inspect the manifest file, resources, and DEX files. Compare two APKs to see how your app size changed between app versions. Install and run your apps faster than with a physical device and simulate different configurations and features, including ARCore, Google's platform for building augmented reality experiences.
Powered by Gradle, Android Studio's build system allows you to customize your build to generate multiple build variants for different devices from a single project.
The built-in profiling tools provide realtime statistics for your app's CPU, memory, and network activity. Identify performance bottlenecks by recording method traces, inspecting the heap and allocations, and see incoming and outgoing network payloads. See the Android Studio release notes. More downloads are available in the download archives. For information on recommended devices and specifications, as well as Android Emulator support, visit chromeos. If you're new to Android development, check out the following resources to get started.
Build your first app Start writing code in Android Studio by following the tutorial to Build your first app. Learn Android with interactive video training in the Android Fundamentals Udacity course. For help installing Android Studio, see the Install guide.
Android Studio. Download What's new User guide Preview. Android Developers. Android Studio Android Studio provides the fastest tools for building apps on every type of Android device. Download Not Available Your current device is not supported.
Download options Release notes. More about the layout editor. More about the APK Analyzer. Android SDK Tools Android 6. Revision 2 November Fixed bugs in the layout rendering library used by Android Studio. Revision 1 August Initial release for Android 6. Android 5. Revision 1 March Initial release for Android 5. Revision 2 December Updated layouts in the Support Library and fixed various issues.
Revision 1 October Initial release for Android 5. Android 4. Revision 2 October Updated the rendering library. Revision 1 June Initial release for Android Wear. Revision 2 December Maintenance release. Revision 1 October Initial release. Revision 2 August Maintenance update. Revision 1 July Initial release. Revision 2 February Maintenance update.
Dependencies: SDK Tools r21 or higher is required. Revision 1 November Initial release. Dependencies: SDK Tools r20 or higher is required. Revision 3 October Maintenance update. Revision 2 July Maintenance update. Revision 1 June Initial release. Revision 2 January Maintenance update.
Dependencies: SDK Tools r14 or higher is required. Revision 1 December Initial release. Android 3.
0コメント