How to make an .apk ?

19 posts, 0 answers
  1. Audrey
    Audrey avatar
    13 posts
    Member since:
    Nov 2012

    Posted 29 Nov 2012 Link to this post

    Hello,
    could you explain to me how to create an apk with Icenium ?
    I looked for on Google but I didn't find anything...

    Thanks for futures replies.
    Aud'
  2. Jan-Dirk
    Jan-Dirk avatar
    327 posts
    Member since:
    Jun 2012

    Posted 29 Nov 2012 Link to this post

    Hi Audrey,

    It's really simple. If you have created the code signing identity for Android, then you can right click the 2nd icon in the Project Navigator and select 'Publish' in the context menu.

    In the 'Publish' dialog, select 'Google Play' and click the 'Build' button. After a while, when building the apk has finished, you can save it in the folder of your choice through a 'Save as' dialog.

    I hope this helps!
  3. Audrey
    Audrey avatar
    13 posts
    Member since:
    Nov 2012

    Posted 29 Nov 2012 Link to this post

    Thanks, yes it helps !
    But now my problem is how to use an existing signature ?
  4. Jan-Dirk
    Jan-Dirk avatar
    327 posts
    Member since:
    Jun 2012

    Posted 29 Nov 2012 Link to this post

    In Graphite options (top right dropdown menu) -> General -> Certification mangement you can import identities. Not sure what to do next. To be honest, I am not a hero with the certification stuff.

    Maybe someone from Icenium can jump in...
  5. Audrey
    Audrey avatar
    13 posts
    Member since:
    Nov 2012

    Posted 29 Nov 2012 Link to this post

    Yeah I saw that. But it needs a .cer or a .p12 file. With Eclipse, I got a keystore file...
    Well, I'm gonna waiting for an Icenium Employee's reply ^^

    Thanks anyway :D
  6. Yavor Georgiev
    Admin
    Yavor Georgiev avatar
    982 posts

    Posted 29 Nov 2012 Link to this post

    Hi Audrey,

     Using Java's keytool you can convert a keystore file to a p12 file like so:
    keytool -importkeystore -srckeystore keystore.jks -srcstoretype JKS -deststoretype PKCS12 -destkeystore keystore.p12

    Greetings,
    Yavor Georgiev
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Pluralsight.
  7. Audrey
    Audrey avatar
    13 posts
    Member since:
    Nov 2012

    Posted 29 Nov 2012 Link to this post

    Hi, thanks for reply !
    I feel it's gonna help but I don't know where to write these words...
  8. Jan-Dirk
    Jan-Dirk avatar
    327 posts
    Member since:
    Jun 2012

    Posted 29 Nov 2012 Link to this post

    you probably need to have the Java SDK installed and then run the tool in a command prompt.

    The SDK is (or should be) installed in C:\Program Files\Java\jre?\bin (where ? is a version number)
  9. Audrey
    Audrey avatar
    13 posts
    Member since:
    Nov 2012

    Posted 29 Nov 2012 Link to this post

    Hi, I did what you said, but it told me that my keystore was an invalid format. It hasn't any extension at the end, neither .jks nor .pkcs12 nor .store....
    So I had an extension and then it told me my keystore was an invalid format too... What do I have to do ?
  10. Yavor Georgiev
    Admin
    Yavor Georgiev avatar
    982 posts

    Posted 29 Nov 2012 Link to this post

    Hi Audrey,

     Unless you specify otherwise, Eclipse ADT creates a keystore file named "key" in your home folder. On Windows this should be C:\Users\USERNAME. Once you locate your keystore file, note down its path. In the command snippet I sent you, you will need to type the path to the file after the -srckeystore switch, instead of keystone.jks, which is an example name.

     Alternatively, you can use keyTool IUI to convert your keystore to a PKCS12 store compatible with Icenium.

    All the best,
    Yavor Georgiev
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Pluralsight.
  11. Audrey
    Audrey avatar
    13 posts
    Member since:
    Nov 2012

    Posted 30 Nov 2012 Link to this post

    Hi, thnaks for reply. No I had change de path but  I know where the keystore file is because I used it for an update of my appli with Eclipse.

    The commande line semmed to work, asked me the password twice, and then told me my keystore format was invalid, again...

    I'll try to understand how to use keyTool IUI, hooping it's gonna work... Could you help me and indicate me a link of a tutorial or explain to me how keyTool IUI works ?...
  12. Yavor Georgiev
    Admin
    Yavor Georgiev avatar
    982 posts

    Posted 30 Nov 2012 Link to this post

    Hello Audrey,

     From within keyTool IUI, navigate to Create > Keystore. Make sure the PKCS12 type is selected, browse to where you would like keyTool IUI to save the new keystore and click Ok. This will create an empty .p12 file.

     Next you need to go to Import > Keystore's entry > Private key > From other keystore. In the Source view browse to the keystore file Eclipse ADT created for you. Make sure the JKS type is selected for the Source keystore. Next, in the Target view browse to the .p12 file you just created. Don't forget to set the type here to PKCS12. Click Ok and keyTool IUI should transfer the entries to the new keystore.

     Finally, you can import the .p12 file in Icenium.

    Kind regards,
    Yavor Georgiev
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Pluralsight.
  13. Audrey
    Audrey avatar
    13 posts
    Member since:
    Nov 2012

    Posted 30 Nov 2012 Link to this post

    But Keytool IUI is not a .exe... The .zip il full of folders and I don't know ow to find Create new Keystore...

  14. Jan-Dirk
    Jan-Dirk avatar
    327 posts
    Member since:
    Jun 2012

    Posted 30 Nov 2012 Link to this post

    Audrey,

    Have a look at this site and click the link right below the coffee cup in the middle of the screen.

    Please not that it is a WebStart version of KeyToolIUI which requires that you have Java installed.

    I hope this helps!
  15. Audrey
    Audrey avatar
    13 posts
    Member since:
    Nov 2012

    Posted 03 Dec 2012 Link to this post

    Hi,
    I did what you said but it didn't work.
    First, I downloaded a bad version of Keytool IUI :
    I created an empty .jsk and I imported what I had in my keystore to the empty .jsk. Then I use the command line to convert the .jsk to a .cer. It worked, but when I updated the new version of my app on Google Play, it told my it wasn't the same signature. 

    So I downloaded the good version of Keytool IUI (that Jan-Dirk sent to me the link) and : I created an empty .p12 but when I wanted to import my current keystore into it, Keytool IUI indicated me that the .p12 was invalid or something like that...  

    Is my only way to update a new version of my app is to use a new keystore ? Or is there really a way to generate a p12 or cer which allows me to update a new version without delete the current one to make a new ?
     



  16. Yavor Georgiev
    Admin
    Yavor Georgiev avatar
    982 posts

    Posted 03 Dec 2012 Link to this post

    Hi Audrey,

     I'm afraid that it is a requirement of the Play Store to upload new versions of your app signed with the same key.

     When you went to the From other keystore view in Keytool IUI to import the keys from your original keystore, did you remember to select the PKCS12 type for the Target keystore and JKS for the Source?

     If you like, you can record your actions in a video (like screencast.com) and share it so I can see exactly what happens in Keytool IUI.

    Regards,
    Yavor Georgiev
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Pluralsight.
  17. Audrey
    Audrey avatar
    13 posts
    Member since:
    Nov 2012

    Posted 11 Dec 2012 Link to this post

    Hi, finally I created a new keystore from Icenium directly...
    Thanks anyway :)
  18. Rohan
    Rohan avatar
    1 posts
    Member since:
    Nov 2015

    Posted 17 Nov 2015 in reply to Jan-Dirk Link to this post

    but how to create .apk file for testing and using local mobile
  19. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 20 Nov 2015 Link to this post

    Hi Audrey,

    I would suggest you to start with the documentation on Mobile App Development with AppBuilder. You can then continue following the topic on: Create and Run an App in Minutes with the AppBuilder in-browser client.

    I would especially recommend the Interactive Tutorials available within the Telerik Platform portal as they provide step-by-step instructions on how to create and build different apps. 
    Further, you can examine the samples we provide to quickly test the coreCordova APIs and some of the Kendo UI and jQuery Mobile widgets.

    I hope you'll find them useful. Should you have any other questions, do not hesitate to contact us.


    Regards,
    Dimitrina
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
Back to Top