Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

com.github.aarsy.vcard-androidParser:vcard-androidParser

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.github.aarsy.vcard-androidParser:vcard-androidParser

"vcard-androidParser" is an android library for developers who need to process contacts backup files or simple vcard or vcf files. This library is android mapping of ez-vcard

  • 1.0.0
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

vcard-androidParser

This is an android library which converts ez-vcard VCard object into appropriate Android compatible version so that it can be used to read vcard files easily in android platform


Download

Using Gradle- under dependencies section:

compile 'com.github.aarsy.vcard-androidParser:vcard-androidParser:1.0.0'

or Using Maven:

<dependency>
    <groupId>com.github.aarsy.vcard-androidParser</groupId>
    <artifactId>vcard-androidParser</artifactId>
    <version>1.0.0</version>
    <type>pom</type>
</dependency>

Documentation

Reading a vcard or vcf file

File vcardFile = new File(filePath);
VCardReader reader = null;
try {
  reader = new VCardReader(vcardFile);
  reader.registerScribe(new AndroidCustomFieldScribe());

  ContactOperations operations = new ContactOperations(context, account_name, account_type);
  
  //insert contacts with specific account_name and their types. For example:
  //both account_name=null and account_type=null if you want to insert contacts into phone
  //you can also pass other accounts
  
  VCard vcard = null;
  while ((vcard = reader.readNext()) != null) {
      operations.insertContact(vcard);
  }
}catch (Exception e) {
   e.printStackTrace();
}finally {
  closeQuietly(reader);
}

See sample for more details..

Sample Screenshots

|
vcard-androidParser sample app

Compatibility

Minimum Android SDK: This library requires a minimum API level of 10.

Applications already using this library

vcfToSIMCard

Special thanks to

Mike Angstadt

FAQs

Package last updated on 13 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc