Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Developer
haonguyen147
Posts: 22
Registered: ‎01-20-2014
My Device: z10

Porting from Android app to BB10 application

Hi everyone!

I know that it quite silly when ask you about this matter. But can you give me some effective ways to port Android application to BB10 application? Does any one have experiments to do that? Please share with me. Thank you in advance.

Nice day!

 

Please use plain text.
Developer
pyth
Posts: 508
Registered: ‎01-19-2011
My Device: My Trusty Red Plane

Re: Porting from Android app to BB10 application

there was an official online apk to bar converter once (offline), so you might need to check the official documentation https://developer.blackberry.com/android/tools/

but there are still inofficial webpages, if you google for apk to bar converter, though it is not clear if they can bee trusted :smileytongue:
-----------------------------------------------------------------------
I'm a bird from outer space. But I'm not flappy o.o
Please use plain text.
Developer
nik005
Posts: 51
Registered: ‎05-30-2014
My Device: BlackBerry Z10

Re: Porting from Android app to BB10 application

Hi ,

     I recently port my android app to BB10. To do so we have three options given on this link:

https://developer.blackberry.com/android/documentation/bb_andrd_dvlpmnt_tools.html

 

I prefered commandline tool as I was having apk file with me.

You can download commandline tool from here:

https://developer.blackberry.com/android/tools/

 

in commandline tool they have also given the GUI application if u scared of commands :Tt2:

Please use plain text.
New Developer
haonguyen147
Posts: 22
Registered: ‎01-20-2014
My Device: z10

Re: Porting from Android app to BB10 application

Wow, I dont know that it has some way to do like that. I will try to do them. Thank you all very much. :smileyvery-happy:

Please use plain text.
New Developer
trieuchung
Posts: 41
Registered: ‎07-29-2012
My Device: 9650

Re: Porting from Android app to BB10 application

Hi nik005

I have followed the instructions in that link but had an error (I'm using commandline tool) : "Error: The specified CSK password is not valid. "
Help me please...!
thanks you so much
--
Triệu Chung
VietNam National University
Please use plain text.
New Developer
haonguyen147
Posts: 22
Registered: ‎01-20-2014
My Device: z10

Re: Porting from Android app to BB10 application

Hi trieuchung,

Why dont you using an other method? I havent try them now because of too busy. So can you try all of the above way and tell me later? Thank you very much :smileyvery-happy:

Please use plain text.
New Developer
trieuchung
Posts: 41
Registered: ‎07-29-2012
My Device: 9650

Re: Porting from Android app to BB10 application

Thanks for your suggest, i will try it now
--
Triệu Chung
VietNam National University
Please use plain text.
Developer
nik005
Posts: 51
Registered: ‎05-30-2014
My Device: BlackBerry Z10

Re: Porting from Android app to BB10 application

see before u start the procedure you need following things.

  1. apk file
  2. csk password(if you want to sign the bar file)
  3. keystore password(if you want to sign the bar file)
  4. path where you want to save the .bar file.

procedure to create a .bar file

(we are creating bar file which is not signed , Your device should be connected)

  1. open Blackberry APK Packager which is in your "BlackBerry_Idea_Plugin_for_Android_Development" folder
  2. select apk file
  3. select path to save .bar file.
  4. click on advance settings->select required minimum OS version
  5. check the development mode
  6. click on the button next to the Author textField
  7. it will show the device connected to the PC. enter the password
  8. click on device info-> click on close after info is fetched
  9. check deploy
  10. keep sign uncheck
  11. click on package

it will take minute to finish.

All the best.:Punk:

 

click on accept **bleep** solution if above answer is correct

 

 

Please use plain text.
Developer
nik005
Posts: 51
Registered: ‎05-30-2014
My Device: BlackBerry Z10

Re: Porting from Android app to BB10 application

hi ,

it will ask you the CSK password and Keystore password

you can have CSK token from here: https://developer.blackberry.com/codesigning

for keystore password use your author id's password

Please use plain text.
New Developer
trieuchung
Posts: 41
Registered: ‎07-29-2012
My Device: 9650

Re: Porting from Android app to BB10 application

[ Edited ]

I have created bar file which is not signed. but when i sileload on other device. it did not run.
now i want to sign the bar file but when I input CSK password and keystore password, that display an error : "Error: The specified CSK password is not valid. "
although CSK password I always use for deploy my native app. :smileysad:

 

--
Triệu Chung
VietNam National University
Please use plain text.