Coder Social home page Coder Social logo

Add Wifi P2P about agregore-mobile HOT 6 CLOSED

RangerMauve avatar RangerMauve commented on June 17, 2024
Add Wifi P2P

from agregore-mobile.

Comments (6)

RangerMauve avatar RangerMauve commented on June 17, 2024 1

Initial integration is done! We no have a button to auto-connect devices over wifi (requires Android 10)

from agregore-mobile.

RangerMauve avatar RangerMauve commented on June 17, 2024

Useful resources:

from agregore-mobile.

RangerMauve avatar RangerMauve commented on June 17, 2024

The big eureka moment for getting stuff working was to use multicastSocket.setNetworkInterface(p2pInterface) in addition to specifying the interface for joinGroup.

Huge thanks to this Stack Overflow post: https://stackoverflow.com/a/62418119

from agregore-mobile.

RangerMauve avatar RangerMauve commented on June 17, 2024

Initial demo app seeing if any of this is even possible is here: https://github.com/RangerMauve/WifiP2P-MDNS-Test/blob/default/app/src/main/java/com/example/wifip2p_mdns_test/WifiP2PActivity.java

from agregore-mobile.

RangerMauve avatar RangerMauve commented on June 17, 2024

Got the initial WifiAutoConnect library published: https://github.com/RangerMauve/WifiAutoConnect-Android

Next steps will be to integrate it with Agregore Mobile with a button somewhere.

from agregore-mobile.

RangerMauve avatar RangerMauve commented on June 17, 2024

Had to start using Trichrome in order to set the min SDK to 29 and work with the WifiP2p APIs.

As a result, the build will now output AAB files instead of APKs which we will need to turn into APKs with bundletool

I'll try adding a script to use the universal APK for ease of installation.

from agregore-mobile.

Related Issues (20)

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.