本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
}
示例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;
}