beaglebone black control by smartphone running on android

First of all i want to make this very clear that i am newbie to this exciting world of beaglebone so that i don’t sound stupid. I started working upon it. i tried to run a simple dc motor using GPIO pins by python. It worked as i thought. I am thinking to take it a step further. I want to control this motor using my smartphone which runs on android. I know a bit of java, but don’t have any damn idea how to do so?

Anyone with a clue please do help…

Thanks in advance…

You would have to write an application/service for your beaglebone that can accept connections/commands. For example, you can write a C++, Java, or Python socket server to accept connections from external devices (like your android phone). On your phone you need to write an application which connects/transmits messages to your beaglebone. You can find simple python socket servers by googleing. Likewise, you can find android examples of a TCP client (in java maybe?)

Good luck