Error checking when trying to transfer an Android application to BlackBerry 10

I am trying to migrate an existing Android application to BlackBerry 10 using the Android Runtime. First of all, I should mention that I successfully uninstalled the Android application on BlackBerry 10 without any errors. I used the plug-in repackaging tool with Eclipse for this process.

In this application, it throws an error because the Packed ProjectName project is skipped because it has validation errors . After generating this error, it shows errors in the code. The line of code error is as follows.

intent.addCategory(Intent.CATEGORY_HOME);

The complete block of code that carries the next line is the following.

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

When I comment on this block of code and try to use Sign for AppWorld , it works great.

How does this piece of code affect error transport and generation?

+5
source share
2 answers

I found this documentation page that describes unsupported Android Intent features with BlackBerry 10.

There they mentioned

Launcher Launch (home screen) is not supported

According to this documentation page, CATEGORY_HOME is used to display the main screen, which is not supported. This means that now I know the cause of the error, but, unfortunately, the BlackBerry documentation did not mention how to overcome this error or how to replace this piece of code with working code. Please guide me if anyone has a solution.

0
source

Blackberry10 . , Android.

, , , , - " " , , .

, , Blackberry Android, , , .

+1

All Articles