Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Verification Errors while trying to port Android application to BlackBerry 10

I am trying to port an existing Android application to BlackBerry 10 using Android Runtime. First of all I need to mention that I have successfully port a simple Android application to BlackBerry 10 without any error. I have used "Plug-in repackaging tool" with Eclipse for this process.

In this application it gives an error as Packaging project ProjectName is skipped because it has verification errors . After that error generated, it shows errors in the code. The error line of the code is as follow.

intent.addCategory(Intent.CATEGORY_HOME);

Full code block that carries above line is as follow.

Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_HOME);
startActivity(intent);  

When I comment that code block and try to function Sign for AppWorld, it works fine.

How only the above code snippet is affecting to porting and generate errors?

like image 270
AnujAroshA Avatar asked Nov 12 '22 12:11

AnujAroshA


1 Answers

Blackberry10 is designed have a gesture based interface. There is already a built-in way to leave your app and get back to the home screen, by just swiping up from the bottom of the screen, even for Android apps.

Without knowing more about your application I'm not sure if this functionality is critical to your application, but if not I would think the best way to handle this would be to remove this 'home screen' functionality from your app since it is not needed, so you can get past this error and publish your application.

Note that there are certain types of apps which are not supported by the Blackberry Android runtime, including apps with more than one launchable Activity and specifically, Home Screen apps.

like image 98
nonesuchnick Avatar answered Nov 15 '22 05:11

nonesuchnick