Send Files from Windows to Android [TUTORIAL][ENGLISH]

in #introduceyourself6 years ago

Hello,

As is my first serious post, I will like to teach you how to send any file from your PC directly to your Android phone only using the context menu and ADB.

DEMO

screen.gif

STEP 1: GET ADB

[SKIP IF YOU ALREADY HAVE IT]

We need to download the executable that will connect to our device and send the file we want to it. This executable is called ADB which stands for Android Debug Bridge. Here's the official link to the ADB download page from Google. Download the:

SDK Platform-Tools for Windows

Decompress the zip and put the folder whereever you want, the important thing is that you will cand find it later.

STEP 2: ENABLE ADB NETWORK ON PHONE

To be able ADB to connect to your android phone, you will have to have the ADB over Network enabled or connect yur phone with the computer by cable, but that is more rectrictly. You can use whatever app from the play store to activate the ABD over Network, just search ADB network and will appear a bunch of apps ehich can help you.

One you get enable this service, the app you used will tell you the IP adress of your phone which is useful when we'll create the script for Windows.

The IP adress will look similar to: 192.168.1.120

STEP 3: CREATE THE SCRIPT

Inside this folder (platform-tools) we'll create a script, like the bash script but now for windows, a batch script.

Script:

@echo off

for %%F in (%1) do set @FILE=%%~nxF

adb connect IP_ADRESS_OF_YOUR_ANDROID_PHONE
adb push %1 "/sdcard/DESTINATION_FOLDER/%@FILE%"

The second line is for reading the filename that we will send to this script through the context menu and save it in the FILE variable which will be used in the last line to determine the name of the file in the Android phone.

In the third line is where you will put the IP adress of your phone provided by those apps from the previous step.

Save that script as NAME.bat, you can name it whatever you want, I named it send.bat. The extension .bat is the most important because that is telling to windows that it can run that code and it is not a simple text file.

STEP 4: ADD BUTTON TO CONTEX MENU

In this step we will add this thing.
context.gif

Soo for that we have to edit the registers files of Windows.
For that press on the keyboard WINDOWS+R. That will pop up a window where you will have to type regedit. Like so:

Hit OK and in the new window, in the left, we will have a tree of folders. We need to open HKEY_CLASSES_ROOT and the find the folder *.

Open that folder and the folder inside which is names shell. Right click on this folder shell and go to New -> Key. That will create a new folder inside, name that folder the way you want to look on the context menu when right click on any file, mine is named Send To Android.

One that folder or Key has been created, we'll reproduce this last step for the folder Send To Android. Create a new key or folder inside this one with the name command, it must be that specific name.
Once that is completed, in the right part we will see something like this:

Double click on that key named (Default) and set his value to the path of your script, the completed path that contains you script made in the previous step.
Mine is:
D:\\AndroidSDK\\platform-tools\\send.bat "%1"
"%1" means the path of the file, basically we use that symbol to pass the path of the file we want to send, from the explorer to our script. Which, by the way, is the same that we used in the creation of the script in the second line.

END

That's it, now when you right click on whatever file or folder you will get that button in the context menu which will call the script inside de ADB folder. The ADB will connect to your phone and send what you want to the android phone.
Remember to enable de ADB over Network in the Android phone before send anything.

Sort:  


Welcome to Steemit @mmnkl9!

I wish you much success and hope you find Steemit to be as rewarding and informative as I have.

Here are some links you might find useful.
Your stats on SteemNow
Your stats on SteemWorld
Your stats on SteemD
How does Steemit actually work?

Introbot is hosted and managed with donations from @byColeman to help make your journey on Steemit be truly rewarding. Your feedback is always welcome so that we may improve this welcome message.
Oh yea, I have upvoted you and followed you. Many blessings from @introbot & @bycoleman

I am so happy that you are here, mmnkl9! Wish you the best journey here in this culturally diversified yet mostly unified community :) Have fun!

By the way, there are several groups you as a newcomer can join. They will stay with you for your journey, helping and mentoring along the way.

@greetersguild invite link https://discord.gg/AkzNSKx
@newbieresteemday invite link https://discord.gg/2ZcAxsU

Welcome @mmnkl9

I take this opportunity to invite you to join STEEMSCHOOLS is a business school in steemit, where you can learn:

  • Publish professionally
  • Generate more profits with your post
  • Earn money just by commenting

We have live classes on DISCORD every day.
JOIN UP https://discord.gg/Sf6YH6j

ALL LIVE CLASS.jpg

Welcome to Steemit mmnkl9. Let me know if you got any questions about Steem or anything related to it! The official FAQ can be found here and has A LOT of information https://steemit.com/faq.html - Also remember, Steemit is just ONE of the sites built that uses Steem the blockchain. We also have DTube - our very own Youtube, DSound for Soundcloud and Steepshot if you prefer Instagram like experience. I'd also like to mention ChainBB - forums, Busy - Steemit with more modern look basically, DMania for memes and Dlive for streaming just like in Twitch! You can also earn Steem by gaming now! Search for Steemgar if that's more your thing. Welcome to the blockchain! :)

Congratulations @mmnkl9! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 1 year!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.20
TRX 0.19
JST 0.033
BTC 88885.90
ETH 3279.02
USDT 1.00
SBD 2.99