Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8106001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:19:45+00:00 2026-06-06T00:19:45+00:00

I am writing an application that will allow an android phone and java application

  • 0

I am writing an application that will allow an android phone and java application on the computer to communicate over the USB cable. Using Bluetooth or Wifi is not an option in this case.

I found it very difficult to find a nice solution to this problem, and the Host/Accessory libariries seemed designed to hook the phone up to docks/cameras/circuitboards rather than simply a PC. This is my solution, let me know if there are better alternatives:

I’m going to create a Java application to use ADB to push files onto the phone, the phone will then check those files for changes and act accordingly.

It seems to work well so far, except I am using the /sdcard/ folder to hold these files. I want this app to work on phones without SD cards too, so I want to know if there is some other safe folder that I can count on being able to access from the PC with ADB and the android app as well.

(I have looked at INTERNAL STORAGE libraries, but I don’t know where they store their data and if I can push/pull with them from ADB.)

Thanks in advance for any help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T00:19:47+00:00Added an answer on June 6, 2026 at 12:19 am

    Read this https://groups.google.com/forum/?fromgroups#!topic/android-developers/tZrxqZQLh98
    Nice discussion about holding tmp files.
    Do u want to control your application from PC? Cant you use Intents launched by ADB for that?

    Another options port forwarding over USB with ADB:
    adb forward tcp:6100 tcp:7100
    adb forward tcp:6100 local:logd

    Personally I end-up doing GET requests to my local Apache server to fetch data.
    Or on rooted device many folders become available.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing an application in Android that will allow a user to register for
I am writing a nodejs application that will be sending html e-mail using emailjs
I'm writing this application that will allow a user to define custom quizzes and
I'm writing a Java application that will run for a long time (essentially, it
Greetings, Overflowers! I am writing an application in PHP that will allow for editing
I am about to begin writing a Rails application that will allow clients to
I am writing an Android application that will run on phones and Honeycomb tablets,
I am currently writing an application that will allow a user to install some
Im looking for a starting point of writing an application that will allow a
I am writing a web application that will allow a user to browse to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.