Code Monkey home page Code Monkey logo

Comments (11)

molikuner avatar molikuner commented on August 17, 2024 1

@markusfisch Thank you for this reference. I have already found this implementation of WIFI support. If you agree, I would implement it in the next few days. The app would need some additional permissions:

  <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
  <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>

After looking at the calendar and contacts, I'm not quite sure if you should fully support them. The problem is that many tags in these vFormats become very complex. The ZXing Android app implements only partial support (e.g. calendar).
The contacts are a bit special, because you don't have to implement a real parser. There is a way to share a .vcf file with the contacts and import it. To open the contact afterwards, you just need to give the app an additional permission to search for that contact. But keep in mind that you probably don't want to do this because the contact app imports the specified file asynchronously and you can't be sure if the contact has already been added or will be added in the next few seconds. This means that the only nice implementation would be a parser for the contacts.

from binaryeye.

jas14 avatar jas14 commented on August 17, 2024 1

For what it's worth, just opened #40 , which adds a WiFi connect button and should also make it easier to add actions for other custom data types mentioned above (e.g. contacts, events)

from binaryeye.

markusfisch avatar markusfisch commented on August 17, 2024

Yes, that would make sense of course. As soon as I find the time to implement it.

from binaryeye.

realrufans avatar realrufans commented on August 17, 2024

Urmmmm I think this has been implemented ?

from binaryeye.

markusfisch avatar markusfisch commented on August 17, 2024

No, not yet. At the moment, the app only knows how to open URLs.

from binaryeye.

realrufans avatar realrufans commented on August 17, 2024

Okay . Check out #19 might be helpful 😛

from binaryeye.

airon90 avatar airon90 commented on August 17, 2024
  • WIFI:S:SSID;T:AUTH;P:PASSWORD;; should connect to a wifi connection named SSID, password as PASSWORD and authentication AUTH (WEP or WPA)

There are many other, I will write them down this evening

from binaryeye.

airon90 avatar airon90 commented on August 17, 2024
  • tel:PHONENUMBER should open dialer with PHONENUMBER
  • smsto:PHONENUMBER:MESSAGE should open an SMS app and create a SMS to PHONENUMBER with MESSAGE as message
  • mailto:EMAIL?subject=SUBJECT&body=TEXT should open an email app and create a new email to EMAIL (mandatory) with SUBJECT as subject and TEXT as body
  • BEGIN:VEVENT
    SUMMARY:EVENTSUMM
    DESCRIPTION:EVENTDESC
    LOCATION:EVENTLOC
    DTSTART:EVENTTIME1
    DTEND:EVENTTIME2
    END:VEVENT
    should add an event in the calendar app with EVENTSUMM as the name of the event, EVENTDESC as description of the event, EVENTLOC as location of the event, EVENTTIME1 and EVENTTIME2 as start and end of the event (format: "YYYYMMDDTHHMMSSZ")
  • BEGIN:VCARD
    VERSION:2.1
    N:NAMESURNAME
    TEL;HOME;VOICE:HOMENUMBER
    TEL;WORK;VOICE:WORKNUMBER
    EMAIL:EMAILADDR
    ORG:ORGANIZATION
    TITLE:PERSONJOB
    BDAY:YYYYMMDD
    ADR:STREETADDR
    URL:URLADDR
    END:VCARD
    should add a new contact with NAMESURNAME as the name of the person, HOMENUMBER as phone number of person's home and WORKNUMBER as phone number of person's work, EMAILADDR as his/her email address, ORG and TITLE as position (TITLE) of his/her job in ORG, STREETADDR as his/her home street address and URLADDR as his/her website.

Maybe there are more codes to support.

from binaryeye.

molikuner avatar molikuner commented on August 17, 2024

Hey, I started implementing this feature in my fork. I'm currently having trouble finding a good way to add a new WIFI via Intents. I just found a method that allows to configure the network in the app itself, which I personally don't like/prefer.
Does anyone know a good way to solve this problem with Intents? Start an Intent for the settings app with special extras?

from binaryeye.

molikuner avatar molikuner commented on August 17, 2024

@airon90 by the way, tel: should work out of the box, as it is currently implemented.

from binaryeye.

markusfisch avatar markusfisch commented on August 17, 2024

@molikuner Here's how the original ZXing Android app adds a new WiFi from a QR code: https://github.com/zxing/zxing/blob/master/android/src/com/google/zxing/client/android/wifi/WifiConfigManager.java#L107

from binaryeye.

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.