Connect with us

News

Device streaming in Android Studio

It’s the fastest and easiest way to test your app against physical units of some of the latest Android devices, including the Google Pixel 8 & 8 Pro, Pixel Fold, select Samsung devices, and more

Device streaming in Android Studio lets you securely connect to remote physical Android devices hosted in Google’s secure data centers. It’s the fastest and easiest way to test your app against physical units of some of the latest Android devices, including the Google Pixel 8 & 8 Pro, Pixel Fold, select Samsung devices, and more.

After connecting to a device, you can deploy your app, view the display, interact with the device (including rotating or unfolding the device), and anything else you might do with a device over a direct ADB over SSL connection—all without leaving Android Studio. When you’re done using the device, Google wipes all your data and factory reset the device before making it available to another developer.

Device Streaming in Android Studio is now in Open Alpha. During this period, device streaming is available to you at no cost. To get started, follow these steps:

  1. If you haven’t already done so, download and install the latest version of Android Studio Jellyfish.
  2. Open an Android Studio project.
  3. Navigate to View > Tool Windows > Device Manager and click the Firebase button near the top of the window.
  4. If you’re not already signed in to your developer account, click Log in to Google and follow the prompts.
  5. After providing Android Studio with the requested permissions, return to the IDE and select a Firebase project.
    1. If you don’t have a Firebase project, you can create one at no cost in the Firebase Console. Keep in mind, there might be a small delay between creating a new project and having it be selectable from Android Studio.
    2. If you get an error that you lack the proper permissions to use device streaming with the selected project, follow the instructions below.
  6. After you select a project, you can browse the list of devices and select the devices you want to use by checking the box next to each device in the list.
  7. Click OK.

After the devices you want to use appear in the Device Manager, you can connect to a device by either clicking Start action next to a device, or by selecting a device from the deploy target drop-down in the main toolbar and deploying your app, like you normally would.

After Android Studio reserves and connects to the device you requested, the Running Devices window will appear. To extend a session, click the Extend Reservation button from the Running Devices window toolbar and select the duration you want to extend your session by.

When you’re done using a device, remember click Return and Erase Device either from overflow menu for the device in the Device Manager or from the notification that appears after closing the device tab in the Running Devices window. This ensures that you don’t spend device minutes unnecessarily, and your device is securely wiped and factory reset after before it is made available to another developer. Any unused minutes from your session are returned to your project.

How much does the service cost

During the Open Alpha, billing is disabled. This means that you and your team can use device streaming in Android Studio at no cost. However, usage is limited to a certain number of hours per day, per project.

Advertisement

Trending