Comments (11)
@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.
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.
Yes, that would make sense of course. As soon as I find the time to implement it.
from binaryeye.
Urmmmm I think this has been implemented ?
from binaryeye.
No, not yet. At the moment, the app only knows how to open URLs.
from binaryeye.
Okay . Check out #19 might be helpful 😛
from binaryeye.
-
WIFI:S:SSID;T:AUTH;P:PASSWORD;;
should connect to a wifi connection namedSSID
, password asPASSWORD
and authenticationAUTH
(WEP
orWPA
)
There are many other, I will write them down this evening
from binaryeye.
-
tel:PHONENUMBER
should open dialer withPHONENUMBER
-
smsto:PHONENUMBER:MESSAGE
should open an SMS app and create a SMS toPHONENUMBER
withMESSAGE
as message -
mailto:EMAIL?subject=SUBJECT&body=TEXT
should open an email app and create a new email toEMAIL
(mandatory) withSUBJECT
as subject andTEXT
as body -
BEGIN:VEVENT
SUMMARY:EVENTSUMM
DESCRIPTION:EVENTDESC
LOCATION:EVENTLOC
DTSTART:EVENTTIME1
DTEND:EVENTTIME2
END:VEVENT
should add an event in the calendar app withEVENTSUMM
as the name of the event,EVENTDESC
as description of the event,EVENTLOC
as location of the event,EVENTTIME1
andEVENTTIME2
as start and end of the event (format: "YYYYMMDD
THHMMSS
Z") -
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 withNAMESURNAME
as the name of the person,HOMENUMBER
as phone number of person's home andWORKNUMBER
as phone number of person's work,EMAILADDR
as his/her email address,ORG
andTITLE
as position (TITLE
) of his/her job inORG
,STREETADDR
as his/her home street address andURLADDR
as his/her website.
Maybe there are more codes to support.
from binaryeye.
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.
@airon90 by the way, tel:
should work out of the box, as it is currently implemented.
from binaryeye.
@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)
- [Enhancement request] FrameQR HOT 2
- Codabar scans omit start/stop codes HOT 1
- Conflict between Google Play Store and F-Droid HOT 5
- ZXing-CPP Wrapper: Request for different versioning format HOT 4
- [Feature request] Display hash at the bottom of the results HOT 7
- INSTALL_FAILED_CPU_ABI_INCOMPATIBLE with ARMv6 device HOT 2
- BinaryEye from F-droid cannot be installed on Amazon tablet HOT 1
- Null character is not handled correctly from escaped string input at Compose barcode HOT 1
- [Bug] A few selected Codes from history didn't export HOT 1
- Does not recognize linear barcodes in white on black HOT 3
- Display tab character HOT 4
- [FR] Increase the brightness of screen when displaying QR code HOT 1
- Display eBay sold results of the scanned UPC HOT 1
- Is it possibale to add a warning lists? HOT 2
- History export need the scan date and time HOT 1
- button change HOT 2
- Open link in incognito mode HOT 3
- Request for adding to Accrescent app store) HOT 2
- Need to scan QR code twice when opening intent from PWA/Installed web app HOT 6
- [Feature] IMb - Intelligent Mail Barcode HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from binaryeye.