当前位置: 首页>>代码示例>>Java>>正文


Java BA.LogInfo方法代码示例

本文整理汇总了Java中anywheresoftware.b4a.BA.LogInfo方法的典型用法代码示例。如果您正苦于以下问题:Java BA.LogInfo方法的具体用法?Java BA.LogInfo怎么用?Java BA.LogInfo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在anywheresoftware.b4a.BA的用法示例。


在下文中一共展示了BA.LogInfo方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onStartCommand

import anywheresoftware.b4a.BA; //导入方法依赖的package包/类
@Override
  public int onStartCommand(final android.content.Intent intent, int flags, int startId) {
  	if (ServiceHelper.StarterHelper.onStartCommand(processBA))
	handleStart(intent);
else {
	ServiceHelper.StarterHelper.waitForLayout = new Runnable() {
		public void run() {
                  BA.LogInfo("** Service (starter) Create **");
                  processBA.raiseEvent(null, "service_create");
			handleStart(intent);
		}
	};
}
      processBA.runHook("onstartcommand", this, new Object[] {intent, flags, startId});
return android.app.Service.START_NOT_STICKY;
  }
 
开发者ID:so27,项目名称:Material-Actionbar-Color,代码行数:17,代码来源:starter.java

示例2: handleStart

import anywheresoftware.b4a.BA; //导入方法依赖的package包/类
private void handleStart(android.content.Intent intent) {
	BA.LogInfo("** Service (starter) Start **");
	java.lang.reflect.Method startEvent = processBA.htSubs.get("service_start");
	if (startEvent != null) {
		if (startEvent.getParameterTypes().length > 0) {
			anywheresoftware.b4a.objects.IntentWrapper iw = new anywheresoftware.b4a.objects.IntentWrapper();
			if (intent != null) {
				if (intent.hasExtra("b4a_internal_intent"))
					iw.setObject((android.content.Intent) intent.getParcelableExtra("b4a_internal_intent"));
				else
					iw.setObject(intent);
			}
			processBA.raiseEvent(null, "service_start", iw);
		}
		else {
			processBA.raiseEvent(null, "service_start");
		}
	}
}
 
开发者ID:so27,项目名称:Material-Actionbar-Color,代码行数:20,代码来源:starter.java

示例3: onDestroy

import anywheresoftware.b4a.BA; //导入方法依赖的package包/类
@Override
public void onDestroy() {
       BA.LogInfo("** Service (starter) Destroy **");
	processBA.raiseEvent(null, "service_destroy");
       processBA.service = null;
	mostCurrent = null;
	processBA.setActivityPaused(true);
       processBA.runHook("ondestroy", this, null);
}
 
开发者ID:so27,项目名称:Material-Actionbar-Color,代码行数:10,代码来源:starter.java

示例4: onCreate

import anywheresoftware.b4a.BA; //导入方法依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	if (isFirst) {
		processBA = new BA(this.getApplicationContext(), null, null, "de.owsianowski.material", "de.owsianowski.material.main");
		processBA.loadHtSubs(this.getClass());
        float deviceScale = getApplicationContext().getResources().getDisplayMetrics().density;
        BALayout.setDeviceScale(deviceScale);
           
	}
	else if (previousOne != null) {
		Activity p = previousOne.get();
		if (p != null && p != this) {
               BA.LogInfo("Killing previous instance (main).");
			p.finish();
		}
	}
       processBA.runHook("oncreate", this, null);
	if (!includeTitle) {
       	this.getWindow().requestFeature(android.view.Window.FEATURE_NO_TITLE);
       }
       if (fullScreen) {
       	getWindow().setFlags(android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN,   
       			android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN);
       }
	mostCurrent = this;
       processBA.sharedProcessBA.activityBA = null;
	layout = new BALayout(this);
	setContentView(layout);
	afterFirstLayout = false;
       WaitForLayout wl = new WaitForLayout();
       if (anywheresoftware.b4a.objects.ServiceHelper.StarterHelper.startFromActivity(processBA, wl, false))
	    BA.handler.postDelayed(wl, 5);

}
 
开发者ID:so27,项目名称:Material-Actionbar-Color,代码行数:36,代码来源:main.java

示例5: afterFirstLayout

import anywheresoftware.b4a.BA; //导入方法依赖的package包/类
private void afterFirstLayout() {
       if (this != mostCurrent)
		return;
	activityBA = new BA(this, layout, processBA, "de.owsianowski.material", "de.owsianowski.material.main");
       
       processBA.sharedProcessBA.activityBA = new java.lang.ref.WeakReference<BA>(activityBA);
       anywheresoftware.b4a.objects.ViewWrapper.lastId = 0;
       _activity = new ActivityWrapper(activityBA, "activity");
       anywheresoftware.b4a.Msgbox.isDismissing = false;
       if (BA.isShellModeRuntimeCheck(processBA)) {
		if (isFirst)
			processBA.raiseEvent2(null, true, "SHELL", false);
		processBA.raiseEvent2(null, true, "CREATE", true, "de.owsianowski.material.main", processBA, activityBA, _activity, anywheresoftware.b4a.keywords.Common.Density, mostCurrent);
		_activity.reinitializeForShell(activityBA, "activity");
	}
       initializeProcessGlobals();		
       initializeGlobals();
       
       BA.LogInfo("** Activity (main) Create, isFirst = " + isFirst + " **");
       processBA.raiseEvent2(null, true, "activity_create", false, isFirst);
	isFirst = false;
	if (this != mostCurrent)
		return;
       processBA.setActivityPaused(false);
       BA.LogInfo("** Activity (main) Resume **");
       processBA.raiseEvent(null, "activity_resume");
       if (android.os.Build.VERSION.SDK_INT >= 11) {
		try {
			android.app.Activity.class.getMethod("invalidateOptionsMenu").invoke(this,(Object[]) null);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
 
开发者ID:so27,项目名称:Material-Actionbar-Color,代码行数:36,代码来源:main.java

示例6: onPause

import anywheresoftware.b4a.BA; //导入方法依赖的package包/类
@Override 
public void onPause() {
	super.onPause();
       if (_activity == null) //workaround for emulator bug (Issue 2423)
           return;
	anywheresoftware.b4a.Msgbox.dismiss(true);
       BA.LogInfo("** Activity (main) Pause, UserClosed = " + activityBA.activity.isFinishing() + " **");
       processBA.raiseEvent2(_activity, true, "activity_pause", false, activityBA.activity.isFinishing());		
       processBA.setActivityPaused(true);
       mostCurrent = null;
       if (!activityBA.activity.isFinishing())
		previousOne = new WeakReference<Activity>(this);
       anywheresoftware.b4a.Msgbox.isDismissing = false;
       processBA.runHook("onpause", this, null);
}
 
开发者ID:so27,项目名称:Material-Actionbar-Color,代码行数:16,代码来源:main.java

示例7: run

import anywheresoftware.b4a.BA; //导入方法依赖的package包/类
public void run() {
	if (mostCurrent == null || mostCurrent != activity.get())
		return;
	processBA.setActivityPaused(false);
          BA.LogInfo("** Activity (main) Resume **");
    processBA.raiseEvent(mostCurrent._activity, "activity_resume", (Object[])null);
}
 
开发者ID:so27,项目名称:Material-Actionbar-Color,代码行数:8,代码来源:main.java

示例8: onCreate

import anywheresoftware.b4a.BA; //导入方法依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	if (isFirst) {
		processBA = new BA(this.getApplicationContext(), null, null, "de.owsianowski.material", "de.owsianowski.material.seite2");
		processBA.loadHtSubs(this.getClass());
        float deviceScale = getApplicationContext().getResources().getDisplayMetrics().density;
        BALayout.setDeviceScale(deviceScale);
           
	}
	else if (previousOne != null) {
		Activity p = previousOne.get();
		if (p != null && p != this) {
               BA.LogInfo("Killing previous instance (seite2).");
			p.finish();
		}
	}
       processBA.runHook("oncreate", this, null);
	if (!includeTitle) {
       	this.getWindow().requestFeature(android.view.Window.FEATURE_NO_TITLE);
       }
       if (fullScreen) {
       	getWindow().setFlags(android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN,   
       			android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN);
       }
	mostCurrent = this;
       processBA.sharedProcessBA.activityBA = null;
	layout = new BALayout(this);
	setContentView(layout);
	afterFirstLayout = false;
       WaitForLayout wl = new WaitForLayout();
       if (anywheresoftware.b4a.objects.ServiceHelper.StarterHelper.startFromActivity(processBA, wl, false))
	    BA.handler.postDelayed(wl, 5);

}
 
开发者ID:so27,项目名称:Material-Actionbar-Color,代码行数:36,代码来源:seite2.java

示例9: afterFirstLayout

import anywheresoftware.b4a.BA; //导入方法依赖的package包/类
private void afterFirstLayout() {
       if (this != mostCurrent)
		return;
	activityBA = new BA(this, layout, processBA, "de.owsianowski.material", "de.owsianowski.material.seite2");
       
       processBA.sharedProcessBA.activityBA = new java.lang.ref.WeakReference<BA>(activityBA);
       anywheresoftware.b4a.objects.ViewWrapper.lastId = 0;
       _activity = new ActivityWrapper(activityBA, "activity");
       anywheresoftware.b4a.Msgbox.isDismissing = false;
       if (BA.isShellModeRuntimeCheck(processBA)) {
		if (isFirst)
			processBA.raiseEvent2(null, true, "SHELL", false);
		processBA.raiseEvent2(null, true, "CREATE", true, "de.owsianowski.material.seite2", processBA, activityBA, _activity, anywheresoftware.b4a.keywords.Common.Density, mostCurrent);
		_activity.reinitializeForShell(activityBA, "activity");
	}
       initializeProcessGlobals();		
       initializeGlobals();
       
       BA.LogInfo("** Activity (seite2) Create, isFirst = " + isFirst + " **");
       processBA.raiseEvent2(null, true, "activity_create", false, isFirst);
	isFirst = false;
	if (this != mostCurrent)
		return;
       processBA.setActivityPaused(false);
       BA.LogInfo("** Activity (seite2) Resume **");
       processBA.raiseEvent(null, "activity_resume");
       if (android.os.Build.VERSION.SDK_INT >= 11) {
		try {
			android.app.Activity.class.getMethod("invalidateOptionsMenu").invoke(this,(Object[]) null);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
 
开发者ID:so27,项目名称:Material-Actionbar-Color,代码行数:36,代码来源:seite2.java

示例10: onPause

import anywheresoftware.b4a.BA; //导入方法依赖的package包/类
@Override 
public void onPause() {
	super.onPause();
       if (_activity == null) //workaround for emulator bug (Issue 2423)
           return;
	anywheresoftware.b4a.Msgbox.dismiss(true);
       BA.LogInfo("** Activity (seite2) Pause, UserClosed = " + activityBA.activity.isFinishing() + " **");
       processBA.raiseEvent2(_activity, true, "activity_pause", false, activityBA.activity.isFinishing());		
       processBA.setActivityPaused(true);
       mostCurrent = null;
       if (!activityBA.activity.isFinishing())
		previousOne = new WeakReference<Activity>(this);
       anywheresoftware.b4a.Msgbox.isDismissing = false;
       processBA.runHook("onpause", this, null);
}
 
开发者ID:so27,项目名称:Material-Actionbar-Color,代码行数:16,代码来源:seite2.java

示例11: run

import anywheresoftware.b4a.BA; //导入方法依赖的package包/类
public void run() {
	if (mostCurrent == null || mostCurrent != activity.get())
		return;
	processBA.setActivityPaused(false);
          BA.LogInfo("** Activity (seite2) Resume **");
    processBA.raiseEvent(mostCurrent._activity, "activity_resume", (Object[])null);
}
 
开发者ID:so27,项目名称:Material-Actionbar-Color,代码行数:8,代码来源:seite2.java

示例12: onCreate

import anywheresoftware.b4a.BA; //导入方法依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	if (isFirst) {
		processBA = new BA(this.getApplicationContext(), null, null, "com.rootsoft.pdfviewer", "com.rootsoft.pdfviewer.main");
		processBA.loadHtSubs(this.getClass());
        float deviceScale = getApplicationContext().getResources().getDisplayMetrics().density;
        BALayout.setDeviceScale(deviceScale);
           
	}
	else if (previousOne != null) {
		Activity p = previousOne.get();
		if (p != null && p != this) {
               BA.LogInfo("Killing previous instance (main).");
			p.finish();
		}
	}
	if (!includeTitle) {
       	this.getWindow().requestFeature(android.view.Window.FEATURE_NO_TITLE);
       }
       if (fullScreen) {
       	getWindow().setFlags(android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN,   
       			android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN);
       }
	mostCurrent = this;
       processBA.sharedProcessBA.activityBA = null;
	layout = new BALayout(this);
	setContentView(layout);
	afterFirstLayout = false;
	BA.handler.postDelayed(new WaitForLayout(), 5);

}
 
开发者ID:gearit,项目名称:RadaeePDF-B4A,代码行数:33,代码来源:main.java

示例13: afterFirstLayout

import anywheresoftware.b4a.BA; //导入方法依赖的package包/类
private void afterFirstLayout() {
       if (this != mostCurrent)
		return;
	activityBA = new BA(this, layout, processBA, "com.rootsoft.pdfviewer", "com.rootsoft.pdfviewer.main");
       
       processBA.sharedProcessBA.activityBA = new java.lang.ref.WeakReference<BA>(activityBA);
       anywheresoftware.b4a.objects.ViewWrapper.lastId = 0;
       _activity = new ActivityWrapper(activityBA, "activity");
       anywheresoftware.b4a.Msgbox.isDismissing = false;
       if (BA.isShellModeRuntimeCheck(processBA)) {
		if (isFirst)
			processBA.raiseEvent2(null, true, "SHELL", false);
		processBA.raiseEvent2(null, true, "CREATE", true, "com.rootsoft.pdfviewer.main", processBA, activityBA, _activity, anywheresoftware.b4a.keywords.Common.Density);
		_activity.reinitializeForShell(activityBA, "activity");
	}
       initializeProcessGlobals();		
       initializeGlobals();
       
       BA.LogInfo("** Activity (main) Create, isFirst = " + isFirst + " **");
       processBA.raiseEvent2(null, true, "activity_create", false, isFirst);
	isFirst = false;
	if (this != mostCurrent)
		return;
       processBA.setActivityPaused(false);
       BA.LogInfo("** Activity (main) Resume **");
       processBA.raiseEvent(null, "activity_resume");
       if (android.os.Build.VERSION.SDK_INT >= 11) {
		try {
			android.app.Activity.class.getMethod("invalidateOptionsMenu").invoke(this,(Object[]) null);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
 
开发者ID:gearit,项目名称:RadaeePDF-B4A,代码行数:36,代码来源:main.java

示例14: onPause

import anywheresoftware.b4a.BA; //导入方法依赖的package包/类
@Override 
public void onPause() {
	super.onPause();
       if (_activity == null) //workaround for emulator bug (Issue 2423)
           return;
	anywheresoftware.b4a.Msgbox.dismiss(true);
       BA.LogInfo("** Activity (main) Pause, UserClosed = " + activityBA.activity.isFinishing() + " **");
       processBA.raiseEvent2(_activity, true, "activity_pause", false, activityBA.activity.isFinishing());		
       processBA.setActivityPaused(true);
       mostCurrent = null;
       if (!activityBA.activity.isFinishing())
		previousOne = new WeakReference<Activity>(this);
       anywheresoftware.b4a.Msgbox.isDismissing = false;
}
 
开发者ID:gearit,项目名称:RadaeePDF-B4A,代码行数:15,代码来源:main.java


注:本文中的anywheresoftware.b4a.BA.LogInfo方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。