Augmented Reality Framework for Android
Switch branches/tags
Nothing to show
Clone or download
Michael Lorenz
Michael Lorenz add bug report checklist
Latest commit 85365f3 Sep 18, 2014
Type Name Latest commit message Commit time
Failed to load latest commit information.
Demo add framework 1.0 build 1562 Sep 17, 2014
Framework add framework 1.0 build 1562 Sep 17, 2014
.gitignore add Framework 1.0 build 1017 Aug 29, 2014 add framework 1.0 build 1562 Sep 17, 2014 add framework 1.0 build 1562 Sep 17, 2014 add bug report checklist Sep 18, 2014

PanicAR Framework

PanicAR Image

by doPanic GmbH -

Why PanicAR?

  • It’s fast, simple and affordable
  • No monthly or annual fees
  • It’s completely customizable
  • It’s small (only ~200 kb)
  • It’s ridiculously easy to integrate

Why PanicAR – really?

  • does the same things all the other frameworks do: even some more (i.e. "altitude")
  • maintained for you by us: new devices and new Android releases will be supported
  • pay on a per-app basis: a white-label license is really cheap (see here:

Get started now

Add to your own app

  • Create a folder called libs in your project’s root folder

  • Copy both jar files PanicAR.jar and PanicSensorKit.jar from Framework/libs to the libs folder

  • Make sure you add PanicAr.jar and PanicSensorKit.jar as Library to your project

  • Add all files form the Framework/res folders to the corresponding folders of your app

  • Add permissions to your AndroidManifest.xml

             android:required="false" />
       <uses-feature android:name="" />
      <uses-permission android:name="android.permission.INTERNET" />
      <uses-permission android:name="android.permission.CAMERA" />
      <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
      <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
  • Make sure your App class derives from PARApplication, don't forget to write your application class into your manifest file



Your AR Fragment has to extend PARFragment and override the onCreateView method to set the viewLayoutId

public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
	this.viewLayoutId = R.layout.panicar_view;
	View view = super.onCreateView(inflater, container, savedInstanceState);
	return view;

Add point of interest Label

You can use the PARPoiLabel class for adding labels to the camera view.

First thing you need is a Location e.g.

Location poiLocation = new Location("aLocationTitle");

Add this location to the constructor of PARPoiLabel and some further details like title and description. The resources panicar_poilabel and radar_dot should be already in your res folder

final PARPoiLabelAdvanced label = new PARPoiLabelAdvanced(poiLocation, "title", "description", R.layout.panicar_poilabel, R.drawable.radar_dot);

To optinally add a background use


and use


to add a image.

The label has to be added to the PARController instance


To handle touch events use something like this

label.setOnClickListener(new View.OnClickListener() {
    public void onClick(View view) {

To customise the appearance of your label feel free to edit the panicar_poilabel.xml

Demo Project

Please checkout the demo project included in this repository for further details. It requires Google Android Studio 0.8.x or later.

Frequently asked questions

Where do i put the API key?

You need to set your API key within your App class (your App class has to derive from PARApplication) by overwriting the setApiKey method.

    public String setApiKey() {
    return "yourAPIKey";

How to send Bugs to doPanic?

The best way to communicate bugs is sending us an email with information on these topics:

  • Which devices do you use?
  • Which Android version is installed?
  • Does it work in our demo?
  • What is your workflow when using PanicAR?
  • Which function is affected?
  • Which methods are overwritten?
  • Can you send your logcat output?
  • If it is a graphical problem: can you send a screenshot additionally?
  • Better: can you send a video?
  • Your own comments:
  • Give us feedback for PanicAR: