Search code examples
androideclipseeclipse-pluginblackberry-10

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?


Solution

  • I have found this documentation page which describe unsupported Android Intent features with BlackBerry 10.

    There they have mentioned

    Launcher (home screen) intents are not supported

    According to this documentation page CATEGORY_HOME is use to display home screen which is not supported. That means now I know the reason for the error but sadly the BlackBerry documentation hasn't mentioned how to overcome this error or how to replace that code snippet with a working code. Please guide me if anybody have a solution to this.