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


Java FREWrongThreadException.printStackTrace方法代码示例

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


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

示例1: call

import com.adobe.fre.FREWrongThreadException; //导入方法依赖的package包/类
@Override
public FREObject call( FREContext context, FREObject[] args ) {
	super.call( context, args );

	AIR.log( "FaceDetection::isOperational" );

	Activity activity = AIR.getContext().getActivity();

	FaceDetector.Builder fb = new FaceDetector.Builder( activity.getApplicationContext() );
	final FaceDetector detector = fb.build();
	try {
		return FREObject.newObject( detector.isOperational() );
	} catch( FREWrongThreadException e ) {
		e.printStackTrace();
	}

	return null;
}
 
开发者ID:marpies,项目名称:face-detection-ane,代码行数:19,代码来源:IsOperationalFunction.java

示例2: call

import com.adobe.fre.FREWrongThreadException; //导入方法依赖的package包/类
@Override
public FREObject call(FREContext arg0, FREObject[] arg1) {
	
	Extension.context.createHelperIfNeeded(arg0.getActivity());
	Player player = Games.Players.getCurrentPlayer(Extension.context.getApiClient());
	
	FREObject playerName = null;
	if (player != null)
	{
		try {
			playerName = FREObject.newObject(player.getDisplayName());
		} catch (FREWrongThreadException e) {
			e.printStackTrace();
		}
	}
	
	return playerName;
}
 
开发者ID:freshplanet,项目名称:ANE-Google-Play-Game-Services,代码行数:19,代码来源:AirGooglePlayGamesGetActivePlayerName.java

示例3: call

import com.adobe.fre.FREWrongThreadException; //导入方法依赖的package包/类
@Override
public FREObject call( FREContext context, FREObject[] args ) {
	super.call( context, args );

	AIR.log( "GameServices::isAuthenticated" );
	try {
		return FREObject.newObject( GameServicesHelper.getInstance().isAuthenticated() );
	} catch( FREWrongThreadException e ) {
		e.printStackTrace();
	}

	return null;
}
 
开发者ID:marpies,项目名称:game-services-ane,代码行数:14,代码来源:IsAuthenticatedFunction.java

示例4: call

import com.adobe.fre.FREWrongThreadException; //导入方法依赖的package包/类
@Override
public FREObject call( FREContext context, FREObject[] args ) {
	super.call( context, args );

	try {
		return FREObject.newObject( GameServicesHelper.checkPlayServices( AIR.getContext().getActivity() ) );
	} catch( FREWrongThreadException e ) {
		e.printStackTrace();
	}

	return null;
}
 
开发者ID:marpies,项目名称:game-services-ane,代码行数:13,代码来源:IsSupportedFunction.java

示例5: call

import com.adobe.fre.FREWrongThreadException; //导入方法依赖的package包/类
@Override
public FREObject call( FREContext context, FREObject[] args ) {
	super.call( context, args );

	AIR.log( "FaceDetection::isAvailable" );
	Activity activity = AIR.getContext().getActivity();

	try {
		return FREObject.newObject( checkPlayServices( activity ) );
	} catch( FREWrongThreadException e ) {
		e.printStackTrace();
	}

	return null;
}
 
开发者ID:marpies,项目名称:face-detection-ane,代码行数:16,代码来源:IsAvailableFunction.java

示例6: call

import com.adobe.fre.FREWrongThreadException; //导入方法依赖的package包/类
@Override
public FREObject call( FREContext context, FREObject[] args ) {
	super.call( context, args );

	try {
		return FREObject.newObject( VKSdkVersion.SDK_VERSION );
	} catch( FREWrongThreadException e ) {
		e.printStackTrace();
	}

	return null;
}
 
开发者ID:marpies,项目名称:vk-ane,代码行数:13,代码来源:GetSDKVersion.java

示例7: call

import com.adobe.fre.FREWrongThreadException; //导入方法依赖的package包/类
@Override
public FREObject call(FREContext context, FREObject[] args) 
{
	FREObject result;
	
	String message = "Device was not registered with GCM.";
	
	Log.i("GCMExtension", "checking device registration");
	
	GCMRegistrar.checkDevice(context.getActivity().getApplication());
	
	final String regId = GCMRegistrar.getRegistrationId(context.getActivity().getApplication());
       
	if (!regId.equals("")) 
       {
		GCMRegistrar.unregister(context.getActivity().getApplication());
		message = "GCMServer: Unregistering device from GCM server...";
       }
   
	
	try 
	{
		result = FREObject.newObject(message);
		return result;
	} 
	catch (FREWrongThreadException e) 
	{
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
	
	return null;
}
 
开发者ID:breealyeska,项目名称:GCMExtension,代码行数:34,代码来源:GCMPushUnregisterFunction.java

示例8: call

import com.adobe.fre.FREWrongThreadException; //导入方法依赖的package包/类
@Override
public FREObject call(FREContext context, FREObject[] args) 
{
	FREObject result;
	
	Log.i("GCMExtension", "Checking pending messages...");
	
	String message = "false";
	Intent launchIntent = context.getActivity().getIntent();
  
	if(launchIntent != null)
     	{
     		Bundle ex = launchIntent.getExtras();
     		if(ex != null)
     		{
     			message = launchIntent.getStringExtra("data");
     		}
     	}
	
	try 
	{
		result = FREObject.newObject(message);
		return result;
	} 
	catch (FREWrongThreadException e) 
	{
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
	
	return null;
}
 
开发者ID:breealyeska,项目名称:GCMExtension,代码行数:33,代码来源:GCMInitFunction.java

示例9: call

import com.adobe.fre.FREWrongThreadException; //导入方法依赖的package包/类
@Override
public FREObject call( FREContext context, FREObject[] args ) {
	super.call( context, args );

	AIRAndroidUtilsExtensionContext extensionContext = AIR.getContext();
	Display display = extensionContext.getActivity().getWindowManager().getDefaultDisplay();

	int height;
	Point size = new Point();
	if( Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1 ) {
		display.getRealSize( size );
		height = size.y;
	} else if( Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2 ) {
		display.getSize( size );
		height = size.y;
	} else {
		height = display.getHeight();
	}

	try {
		return FREObject.newObject( height );
	} catch( FREWrongThreadException e ) {
		e.printStackTrace();
	}

	return null;
}
 
开发者ID:marpies,项目名称:air-android-utils,代码行数:28,代码来源:GetScreenHeightFunction.java

示例10: call

import com.adobe.fre.FREWrongThreadException; //导入方法依赖的package包/类
@Override
public FREObject call( FREContext context, FREObject[] args ) {
	super.call( context, args );

	try {
		return FREObject.newObject( Build.VERSION.SDK_INT );
	} catch( FREWrongThreadException e ) {
		e.printStackTrace();
	}

	return null;
}
 
开发者ID:marpies,项目名称:air-android-utils,代码行数:13,代码来源:GetSystemVersionFunction.java

示例11: call

import com.adobe.fre.FREWrongThreadException; //导入方法依赖的package包/类
@Override
public FREObject call( FREContext context, FREObject[] args ) {
	super.call( context, args );

	try {
		return FREObject.newObject( Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT );
	} catch( FREWrongThreadException e ) {
		e.printStackTrace();
	}

	return null;
}
 
开发者ID:marpies,项目名称:air-android-utils,代码行数:13,代码来源:IsImmersiveFullScreenSupportedFunction.java

示例12: call

import com.adobe.fre.FREWrongThreadException; //导入方法依赖的package包/类
@Override
public FREObject call( FREContext context, FREObject[] args ) {
	super.call( context, args );

	AIRAndroidUtilsExtensionContext extensionContext = AIR.getContext();
	Display display = extensionContext.getActivity().getWindowManager().getDefaultDisplay();

	int width;
	Point size = new Point();
	if( Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1 ) {
		display.getRealSize( size );
		width = size.x;
	} else if( Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2 ) {
		display.getSize( size );
		width = size.x;
	} else {
		width = display.getWidth();
	}

	try {
		return FREObject.newObject( width );
	} catch( FREWrongThreadException e ) {
		e.printStackTrace();
	}

	return null;
}
 
开发者ID:marpies,项目名称:air-android-utils,代码行数:28,代码来源:GetScreenWidthFunction.java

示例13: call

import com.adobe.fre.FREWrongThreadException; //导入方法依赖的package包/类
@Override
public FREObject call( FREContext context, FREObject[] args ) {
	super.call( context, args );

	try {
		return FREObject.newObject( Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP );
	} catch( FREWrongThreadException e ) {
		e.printStackTrace();
	}

	return null;
}
 
开发者ID:marpies,项目名称:air-android-utils,代码行数:13,代码来源:IsStatusBarColorSupportedFunction.java

示例14: call

import com.adobe.fre.FREWrongThreadException; //导入方法依赖的package包/类
@Override
public FREObject call(FREContext context, FREObject[] args)
{
        try
        {
             return FREObject.newObject(ShInstagramExtension.context.isInstagram());
        }
        catch (FREWrongThreadException e)
        {
        	e.printStackTrace();
        	return null;
        }
}
 
开发者ID:sharkhack,项目名称:ShareWithInstagramAndroid,代码行数:14,代码来源:IsInstagramAvailableFunction.java

示例15: call

import com.adobe.fre.FREWrongThreadException; //导入方法依赖的package包/类
@Override
public FREObject call(FREContext context, FREObject[] args) {
	FREObject bool = null;
	try {
		 bool = FREObject.newObject(SignInActivity.mHelper.isSignedIn()) ;
	} catch (FREWrongThreadException e) {
		e.printStackTrace();
	}
	
	return bool;
}
 
开发者ID:AlexShafir,项目名称:google-play-game-services-ane,代码行数:12,代码来源:Context.java


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