DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Elevate Customer Engagement by Adding Google Play Instant to Your Android App
  • How To Create a Homescreen Widget in Android
  • Android Cloud Apps with Azure
  • Overview of Android Networking Tools: Receiving, Sending, Inspecting, and Mock Servers

Trending

  • Architecture Review Boards for Generative AI: A Framework for Governance, Risk Management, and Responsible Adoption
  • When a Coding Agent Fixes the Test Instead of the Bug
  • Member Spotlight: Shai Almong
  • How to Build Your Own AI SRE From Scratch

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Deployment
  4. Display Android Device Screen on Fedora for Feedhenry Application

Display Android Device Screen on Fedora for Feedhenry Application

By 
Kenneth Peeples
·
Jun. 24, 15 · Interview
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
1.9K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

I wanted to display my Android screen on Fedora during a Summit presentation which includes Feedhenry.  I found an easy way to mirror my android screen on Fedora so I can show it through the presentation device (TV, Projector, etc.).  So I compiled the steps below from some different references.

  • Download the latest Android SDK from Google: Android SDK
  • Extract the TGZ file to your home/YOUR-USERNAME directory
  • To get ADB, you need to install the SDK: Installing the SDK 



    • Run chmode on android in tools
    • Run android under tools and then install the Android SDK Tools
  • On your phone turn on Debugging in Developer Settings, click Settings > Developer Options turn on debugging and make sure USB Debugging is on.
  • If you are running 64-bit then to run adb you will have to enable 32-bit
    • # yum install glibc.i686
    •  #yum install zlib.i686 libstdc++.i686 ncurses-libs.i686 libgcc.i686
  • You need to add a udev rules file that contains a USB configuration for each type of device you want to use for development. In the rules file, each device manufacturer is identified by a unique vendor ID, as specified by the ATTR{idVendor} property. For a list of vendor IDs, see USB Vendor IDs,  To set up device detection on Linux:
    • Log in as root and create this file: /etc/udev/rules.d/51-android.rules. 
      Use this format to add each vendor to the file:
      SUBSYSTEM=="usb", ATTR{idVendor}=="xxxx", MODE="0666"

      [summit2015@localhost tools]$ cat /etc/udev/rules.d/51-android.rules 
      SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666"
      [summit2015@localhost tools]$ 


      Note: The rule syntax may vary slightly depending on your environment. Consult the udevdocumentation for your system as needed. For an overview of rule syntax, see this guide towriting udev rules.
    • Now execute:
      chmod a+r /etc/udev/rules.d/51-android.rules
  • When plugged in over USB, you can verify that your device is connected by executing adb devices from your SDK platform-tools/ directory. If connected, you'll see the device name listed as a "device."
[summit2015@localhost platform-tools]$ ./adb devices
List of devices attached 
0A3D267016016004   device

[summit2015@localhost platform-tools]$ 

NOTE: I ran android update adb and adb server-start to test prior to the above command but these shouldn't be required
  •  Next  I download Droid@Screen and then ran java -jar droidAtScreen-1.1.jar


That's all that is required! 
Android (robot) Fedora (operating system) application Android SDK

Opinions expressed by DZone contributors are their own.

Related

  • Elevate Customer Engagement by Adding Google Play Instant to Your Android App
  • How To Create a Homescreen Widget in Android
  • Android Cloud Apps with Azure
  • Overview of Android Networking Tools: Receiving, Sending, Inspecting, and Mock Servers

Partner Resources

×

Comments

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook