Giter Site home page Giter Site logo

filetransfer's Introduction

FileTransfer

Transfer any files from PC to your phone easily.

https://www.youtube.com/watch?v=NUNaORa1YzM

If you are banned by GFW. You can watch the video or download apk by ways below:

Video: https://v.qq.com/x/page/x0618rp8w9x.html

APK: http://d.6short.com/transfer

What Next

1, Two-way transfer between PC and Phone.

2, Support plain text send.

We Need you

If you have any ideas for this app, welcome to submit an issue.

If you want to add some features, welcome to pull request.

Thanks

The idea and some code of this app are from WifiTransfer. Thanks for baidusoso.

LICENSE

Copyright (c) 2018 CPPAlien

Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://github.com/CPPAlien/FileTransfer/blob/master/LICENSE

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

filetransfer's People

Contributors

cppalien avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

filetransfer's Issues

在努比亚手机上没法上传文件,我自己整了下,解决了。

这个版本的文件传输助手在我nubia手机上无法选择文件上传到电脑。因为没法打开手机的文件浏览器点击上传文件按钮 “+” 打开的却是手机通讯录

挺好的个玩意儿,想着一定是哪里出了小问题,第一次整安卓,不知道这样改在其他手机还能不能用,我对FileTransfer/app/src/main/java/me/pengtao/filetransfer/MainActivity.java中第125行做了少许修改:

*原代码:

            Intent intent = new Intent();

            intent.setAction(Intent.ACTION_GET_CONTENT);
                
            intent.setType("*/*");
                
            startActivityForResult(intent, FILE_FETCH_CODE);

*修改为: 

            Intent intent = new Intent(Intent.ACTION_GET_CONTENT);

            intent.setType("*/*");

            intent.addCategory(Intent.CATEGORY_OPENABLE); //就是加了这句,其他没变
                
            startActivityForResult(intent,FILE_FETCH_CODE);

--第一次发issue,如有不妥之处还望指正--

File transfer through hotspot

File transfer through hotspot

This project transfers files through wifi to pc.

I want to sent the files through both wifi and hotspot.

This shares files with wifi IP.

public static String getWifiIp(@NonNull Context context) {
    WifiManager wifimanager = (WifiManager) context.getApplicationContext().getSystemService
            (Context.WIFI_SERVICE);
    if (wifimanager == null) {
        return null;
    }
    WifiInfo wifiInfo = wifimanager.getConnectionInfo();
    if (wifiInfo != null) {
        return intToIp(wifiInfo.getIpAddress());
    }
    return null;
    }

    private static String intToIp(int i) {
    return (i & 0xFF) + "." + ((i >> 8) & 0xFF) + "." + ((i >> 16) & 0xFF) + "." + ((i >> 24)
            & 0xFF);
    }

     public static NetworkInfo.State getWifiConnectState(Context context) {
     ConnectivityManager manager = (ConnectivityManager) context.getSystemService(Context
            .CONNECTIVITY_SERVICE);
    if (manager == null) {
        return NetworkInfo.State.DISCONNECTED;
    }
    NetworkInfo mWiFiNetworkInfo = manager.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
    if (mWiFiNetworkInfo != null) {
        return mWiFiNetworkInfo.getState();
    }
    return NetworkInfo.State.DISCONNECTED;
   }

This code used to get the IP address of wifi. I want to share files through both wifi and hotspot. So, I replaced this code to get both wifi and hotspot IP.

public void getDeviceIpAddress() {
	try {

		for (Enumeration<NetworkInterface> enumeration = NetworkInterface
				.getNetworkInterfaces(); enumeration.hasMoreElements();) {
			NetworkInterface networkInterface = enumeration.nextElement();
			for (Enumeration<InetAddress> enumerationIpAddr = networkInterface
					.getInetAddresses(); enumerationIpAddr
					.hasMoreElements();) {
				InetAddress inetAddress = enumerationIpAddr.nextElement();
				if (!inetAddress.isLoopbackAddress()
						&& inetAddress.getAddress().length == 4) {
					tvServerIP.setText(inetAddress.getHostAddress());
				}
			}
		}
	} catch (SocketException e) {
		Log.e("ERROR:", e.toString());
	}
}

I tried with this code, but it didn't work.

How can I do this?

This project didn't work.

I download this app from play store .

I run this app in my computer's browser.

It didn't work.

The older version works smoothly.
But , master Version didn't work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.