• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Help(connecting a java program to an android app)

hi i m trying to develop a java program which is able to communicate with a android app to get data from the android phone. anyone have any idea on how to do this(connecting the java program to the app)?(references and tips will help~)
 
erm i dont mean testing an app on the pc. i mean like erm i am writing a java program then there will be a android app which is able to pull out data and send it over to my java program and i am trying to find out how to make it possible(conencting my java program with the app?) to ba able to somewhat 'call' the app to send the data over or get the data from the app

Edit: i found some info on the net. isit possible to use adb to pull info out from the android and transfer it to the pc using java program??
 
Okey. Well, to be able to use adb you must have you phone connected to the pc via the usb cable. I don't think adb can talk to your phone over bluetooth or wifi.

I you don't want your phone connected to the pc, you can use Sockets.
 
erm yea. the usb will be connected to the phone/pc. erm then isit possible to like from my java program(on pc) call the android app(on android) and somewhat tell it to pass mi the path to the file i need?
 
Back
Top Bottom