@@ -0,0 +1,2638 @@
+package com.xamoom.android.xamoom_android_sdk_app;%0A%0Aimport android.app.Application;%0Aimport android.app.Notification;%0Aimport android.content.BroadcastReceiver;%0Aimport android.content.Context;%0Aimport android.content.Intent;%0Aimport android.content.IntentFilter;%0Aimport android.support.v4.app.NotificationManagerCompat;%0Aimport android.support.v7.app.NotificationCompat;%0Aimport android.util.Log;%0A%0Aimport com.xamoom.android.XamoomBeaconService;%0A%0A/**%0A * Created by raphaelseher on 08.10.15.%0A */%0Apublic class XamoomAndroidApp extends Application %7B%0A%0A    @Override%0A    public void onCreate() %7B%0A        super.onCreate();%0A        XamoomBeaconService.getInstance(getApplicationContext()).startBeaconService();%0A        //XamoomBeaconService.getInstance(getApplicationContext()).automaticRanging = true;%0A        //XamoomBeaconService.getInstance(getApplicationContext()).approximateDistanceRanging = true;%0A%0A        //only place to do things, when scanning in background%0A        //registerReceiver(mEnterRegionBroadCastReciever, new IntentFilter(XamoomBeaconService.ENTER_REGION_BROADCAST));%0A        //registerReceiver(mExitRegionBroadCastReciever, new IntentFilter(XamoomBeaconService.EXIT_REGION_BROADCAST));%0A    %7D%0A%0A    private final BroadcastReceiver mEnterRegionBroadCastReciever = new BroadcastReceiver() %7B%0A        @Override%0A        public void onReceive(Context context, Intent intent) %7B%0A            Log.d(%22XamoomBeaconService%22, %22background: enterRegion%22);%0A%0A            NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(getApplicationContext());%0A            notificationBuilder%0A                    .setContentText(%22%C3%96ffne um etwas zu Entdecken.%22)%0A                    .setContentTitle(%22xamoom in der N%C3%A4he%22)%0A                    .setContentInfo(%22Beacon%22)%0A                    .setSmallIcon(R.drawable.ic_xamoom_ble)%0A                    .setStyle(new NotificationCompat.BigTextStyle().bigText(%22BigText%22))%0A                    .setNumber(1);%0A            Notification notification = notificationBuilder.build();%0A%0A            NotificationManagerCompat notificationManager = NotificationManagerCompat.from(getApplicationContext());%0A            notificationManager.notify(1, notification);%0A        %7D%0A    %7D;%0A%0A    private final BroadcastReceiver mExitRegionBroadCastReciever = new BroadcastReceiver() %7B%0A        @Override%0A        public void onReceive(Context context, Intent intent) %7B%0A            Log.d(%22XamoomBeaconService%22, %22background: exitRegion%22);%0A            NotificationManagerCompat notificationManager = NotificationManagerCompat.from(getApplicationContext());%0A            notificationManager.cancel(1);%0A        %7D%0A    %7D;%0A%7D%0A

Add XamoomAndroidApp