Skip to content

Instantly share code, notes, and snippets.

View AppWerft's full-sized avatar

Rainer Schleevoigt AppWerft

  • Hamburger AppWerft
  • Hamburg, St. Pauli
View GitHub Profile
[ERROR] : TiBaseActivity: (main) [0,856] Error dispatching lifecycle event: null
[ERROR] : TiBaseActivity: java.lang.NullPointerException
[ERROR] : TiBaseActivity: at ti.audiovisualizerview.ViewProxy.onResume(ViewProxy.java:79)
[ERROR] : TiBaseActivity: at org.appcelerator.titanium.TiLifecycle.fireLifecycleEvent(TiLifecycle.java:150)
[ERROR] : TiBaseActivity: at org.appcelerator.titanium.TiBaseActivity.onResume(TiBaseActivity.java:1366)
[ERROR] : TiBaseActivity: at org.appcelerator.titanium.TiActivity.onResume(TiActivity.java:35)
[ERROR] : TiBaseActivity: at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1192)
[ERROR] : TiBaseActivity: at android.app.Activity.performResume(Activity.java:5310)
[ERROR] : TiBaseActivity: at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2796)
[ERROR] : TiBaseActivity: at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2835)
[DEBUG] : Detected android module: ti.touchid 1.0.0 @ /Users/fuerst/Documents/APPC_WORKSPACE/Tierstimmenarchiv/modules/android/ti.touchid/1.0.0
[DEBUG] : Detected android module: ti.touchid 1.0.0 @ /Users/fuerst/Library/Application Support/Titanium/modules/android/ti.touchid/1.0.0
[DEBUG] : Detected iphone module: ti.touchid 1.0 @ /Users/fuerst/Library/Application Support/Titanium/modules/iphone/ti.touchid/1.0
[DEBUG] : Detected iphone module: ti.touchid 1.1.0 @ /Users/fuerst/Library/Application Support/Titanium/modules/iphone/ti.touchid/1.1.0
[DEBUG] : Detected iphone module: ti.touchid 1.2.0 @ /Users/fuerst/Library/Application Support/Titanium/modules/iphone/ti.touchid/1.2.0
[DEBUG] : Detected iphone module: ti.touchid 1.2.0 @ /Library/Application Support/Titanium/modules/iphone/ti.touchid/1.2.0
[DEBUG] : Looking for Titanium module id=ti.touchid version=latest platform=android deploy-type=test
[INFO] : Found Titanium module id=ti.touchid version=1.0.0 platform=android deploy-type=test path=/Users/
exports.requestPermissions = function(_permissions, _callback) {
if (Ti.Platform.osname != 'android') {
_callback(true);
return;
}
var permissions = (Array.isArray(_permissions) ? _permissions : [_permissions]).map(function(perm) {
return (perm.match(/^android\.permission\./)) ? perm : 'android.permission.' + perm;
});
var grantedpermissions = 0;
var TiPermissions = require('ti.permissions');
/*
* LinkedIn account authentfication library / module
* by Rainer Schleevoigt
*
*
* Copyright 2016 Rainer Schleevoigt
*
* All code is open source and dual licensed under GPL and MIT. Check the individual licenses for more information.
*/
/*
* LinkedIn account authentfication library / module
* by Rainer Schleevoigt
*
*
* Copyright 2016 Rainer Schleevoigt
*
* All code is open source and dual licensed under GPL and MIT. Check the individual licenses for more information.
USAGE:
package de.appwerft.cameraparameters;
import java.util.ArrayList;
import java.util.Timer;
import java.util.TimerTask;
import java.util.concurrent.ExecutionException;
import org.appcelerator.kroll.KrollDict;
import org.appcelerator.kroll.KrollFunction;
import org.appcelerator.kroll.KrollModule;
package de.appwerft.audiocontrols;
import java.util.ArrayList;
import org.appcelerator.kroll.common.Log;
import org.appcelerator.titanium.TiApplication;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
package de.appwerft.audiocontrols;
import java.util.ArrayList;
import org.appcelerator.kroll.common.Log;
import org.appcelerator.titanium.TiApplication;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
private void createNotification(Bundle bundle) {
hasProgress = bundle.getBoolean("hasProgress");
final boolean hasActions = bundle.getBoolean("hasActions");
final int iconBackgroundColor = bundle.getInt("iconBackgroundColor");
final String title = bundle.getString("title");
notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
/* Preparing click on notification: */
Intent notifyIntent = new Intent(Intent.ACTION_MAIN);
notifyIntent.setComponent(new ComponentName(TiApplication.getInstance()
.getPackageName(), TiApplication.getAppRootOrCurrentActivity()
private void createNotification(Bundle bundle) {
hasProgress = bundle.getBoolean("hasProgress");
final boolean hasActions = bundle.getBoolean("hasActions");
final int iconBackgroundColor = bundle.getInt("iconBackgroundColor");
final String title = bundle.getString("title");
notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
/* Preparing click on notification: */
Intent notifyIntent = new Intent(Intent.ACTION_MAIN);
notifyIntent.setComponent(new ComponentName(TiApplication.getInstance()
.getPackageName(), TiApplication.getAppRootOrCurrentActivity()