Skip to content
Android aestheticodes app
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
artcodes-scanner
gradle/wrapper
src
.gitignore
LICENSE.md
README.md
artcodes-android.iml
build.gradle
gradlew
gradlew.bat
settings.gradle

README.md

Artcodes

Artcodes marks a paradigm shift in visual recognition, offering difference to discerning brands. We design visually beautiful images and encode them, resulting in the same interactivity as that of the QR code but with a more visually engaging and playful experience. Images can be the identical with unique codes or the opposite visually unique with identical codes. This interplay offers a new opportunity for visual interaction within, product, packaging, service and interaction design.


Adding Artcodes to your project

Add artcodes to your build.gradle dependencies:

compile 'uk.ac.horizon.artcodes:artcodes-scanner:3.3.0'

Basic usage

To create the Artcode reader

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import uk.ac.horizon.artcodes.scanner.ScannerActivity;

// Create Actions for the Markers you want to scan
Action action = new Action();
action.getCodes().add("1:1:1:1:2");

// Create and configure artcode experience
Experience experience = new Experience();
experience.getActions().add(action);

// Create intent
Intent intent = new Intent(ScannerActivity.class);

// Put experience in intent
Gson gson = new GsonBuilder().create();
intent.putExtra("experience", gson.toJson(experience));

// Start artcode reader activity
startActivityForResult(intent, ARTCODE_REQUEST);

To handle the response, implement onActivityResult

protected void onActivityResult(int requestCode, int resultCode, Intent data)
{
  if (requestCode == ARTCODE_REQUEST)
  {
    if (resultCode == RESULT_OK)
    {
      // Marker found
      String markerCode = data.getStringExtra("marker");
    }
  }
}
You can’t perform that action at this time.