HP Forums
How to make apps - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: How to make apps (/thread-15300.html)



How to make apps - cahlucas - 07-03-2020 11:33 AM

Hi all,
How can you create apps for the Prime, including the icons? I know it is possible, because you can download several from http://www.hpcalc.org. What documentation, tools and equipment do you need to do this? I would like to have more clarity on this. I hope for a response from this forum. Sincerely, Karel.


RE: How to make apps - Joe Horn - 07-03-2020 12:47 PM

A good place to start is page 620 in the Prime User Guide, "App programs", especially the section starting on the next page called "Customizing an app". It even gives a step-by-step example.

Also see page 658, bottom, "AFiles": "Each HP Prime app can have any number of files associated with it. These files are sent with the app. For example, if there is a file named icon.png associated with the app, then this file is used for the app icon in the Application Library."


RE: How to make apps - cahlucas - 07-03-2020 01:28 PM

(07-03-2020 12:47 PM)Joe Horn Wrote:  A good place to start is page 620 in the Prime User Guide, "App programs", especially the section starting on the next page called "Customizing an app". It even gives a step-by-step example.

Also see page 658, bottom, "AFiles": "Each HP Prime app can have any number of files associated with it. These files are sent with the app. For example, if there is a file named icon.png associated with the app, then this file is used for the app icon in the Application Library."

Dear Mr. Horn,
This is actually not what I meant. I know about this possibility, but I mean create a new app from scratch. Examples include: Straight Line Kit (https://www.hpcalc.org/details/7575), EEC Solver (https://www.hpcalc.org/details/8930) and Touch Periodic Table (https: // www. hpcalc.org/details/7457). How were these apps created? Sincerely, Karel.


RE: How to make apps - Giancarlo - 07-03-2020 03:35 PM

Hello,
i started the way John is explaining. When the Prime came out there were no other documentation and the guide had this chapter which is still valid.

I personally - years laters - studied other people very simple applications to understand how to do it like the one you indicated in your thread.

i usually consider simpler application just to understand the logic like games or other apps like this. one i remember i studied for example was GEOGAME by Bernard Michaud.

the code in pretty small, simple and it shows how to handle the graphic.

i hope it helps,

giancarlo


RE: How to make apps - grsbanks - 07-03-2020 04:21 PM

If you want to start with an entirely blank app and roll out your own views etc. then on the Apps screen, tap on "Save".

Then give your app a name and select "None" from the Base App drop-down list.

Tap on "OK" and you're done.


RE: How to make apps - cahlucas - 07-04-2020 12:50 AM

(07-03-2020 12:47 PM)Joe Horn Wrote:  A good place to start is page 620 in the Prime User Guide, "App programs", especially the section starting on the next page called "Customizing an app". It even gives a step-by-step example.

Also see page 658, bottom, "AFiles": "Each HP Prime app can have any number of files associated with it. These files are sent with the app. For example, if there is a file named icon.png associated with the app, then this file is used for the app icon in the Application Library."

Dear Mr. Horn,
How do you associate files, such as an icon, to an app? And how do you make an icon? Sincerely, Karel.


RE: How to make apps - cahlucas - 07-04-2020 01:19 AM

(07-03-2020 03:35 PM)Giancarlo Wrote:  Hello,
i started the way John is explaining. When the Prime came out there were no other documentation and the guide had this chapter which is still valid.

I personally - years laters - studied other people very simple applications to understand how to do it like the one you indicated in your thread.

i usually consider simpler application just to understand the logic like games or other apps like this. one i remember i studied for example was GEOGAME by Bernard Michaud.

the code in pretty small, simple and it shows how to handle the graphic.

Dear Mr. Giancarlo,
Where do I start? The apps I have installed on my Prime are not visible in the Program catalog, and have the extension .hpappprgm, while programs have the extension .hpprgm. So for every app I install I can't see the source code. So how am I supposed to learn how to make an app? Sincerely, Karel.


RE: How to make apps - rprosperi - 07-04-2020 01:28 AM

(07-04-2020 01:19 AM)cahlucas Wrote:  Where do I start? The apps I have installed on my Prime are not visible in the Program catalog, and have the extension .hpappprgm, while programs have the extension .hpprgm. So for every app I install I can't see the source code. So how am I supposed to learn how to make an app? Sincerely, Karel.

The source code (and icon files, etc.) are included in the .zip files you downloaded from hpcalc.org. Extract those files and you can examine/study them and compare with the results running the Apps.


RE: How to make apps - Tyann - 07-04-2020 02:36 PM

Quote:How do you associate files, such as an icon, to an app? And how do you make an icon? Sincerely, Karel.

Bonjour
Une icône d'application est une image au format PNG de taille 38*38 pixels.
Vous pouvez créér celle ci avec PAINT par exemple.
Après avoir créér vôtre application sur la calculatrice, raccordez celle ci au PC et lancer le connectivity kit.
Clicker sur le symbole ">" devant le nom de vôtre application, vous devriez voir 2 dossiers : un nommé fichiers et l'autre nommé variables.
Faîtes un click droit sur le dossier nommé fichier et charger vôtre image puis clickez sur l'icône de disquette pour enregister vers la calculatrice.
Si l'icône n'apparait pas immédiatement, éteignez puis rallumez la calculatrice.

Hello
An application icon is a PNG file with a size of 38*38 pixels.
You can create this one with PAINT for example.
After creating your application on the calculator, connect it to the PC and launch the connectivity kit.
Click on the ">" symbol in front of the name of your application, you should see 2 folders: one named files and the other named variables.
Right click on the folder named file and load your image then click on the floppy disk icon to save to the calculator.
If the icon does not appear immediately, turn the calculator off and then back on again.

Translated with http://www.DeepL.com/Translator (free version)


RE: How to make apps - ggauny@live.fr - 07-05-2020 09:38 AM

Bonjour Tyann,

Thanks for the link. I'll be able to write in English properly! La preuve...

Bon dimanche.


RE: How to make apps - Tim Wessman - 07-05-2020 10:57 AM

(07-04-2020 01:19 AM)cahlucas Wrote:  Where do I start? The apps I have installed on my Prime are not visible in the Program catalog, and have the extension .hpappprgm, while programs have the extension .hpprgm. So for every app I install I can't see the source code. So how am I supposed to learn how to make an app? Sincerely, Karel.

The currently active application is what shows in the top position in the program catalog. So start the app you want to look at, and then open the program catalog and select the top item.


RE: How to make apps - cahlucas - 07-05-2020 06:41 PM

(07-05-2020 10:57 AM)Tim Wessman Wrote:  The currently active application is what shows in the top position in the program catalog. So start the app you want to look at, and then open the program catalog and select the top item.

Dear Mr. Wessman,
Does this also apply to the buildin apps? Sincerely, Karel.


RE: How to make apps - BERNARD MICHAUD - 07-05-2020 07:15 PM

(07-03-2020 03:35 PM)Giancarlo Wrote:  i usually consider simpler application just to understand the logic like games or other apps like this. one i remember i studied for example was GEOGAME by Bernard Michaud.

giancarlo

Small error here: I cannot take credit for the App GEOGAME since I did not write it.
The App was produced by Michael Nicotera and resides on the hpcalc.org site,
see the link below.

https://www.hpcalc.org/details/7899

Bernard Michaud


RE: How to make apps - Giancarlo - 07-07-2020 02:01 AM

Ops, sorry my mistake.

I apologize with the author of the app and with you.

Thanks for the correction.

Giancarlo


RE: How to make apps - math7 - 07-07-2020 03:14 AM

You can examine these links that explain the process of making an application a little more:


https://www.youtube.com/watch?v=hv-MMwfzwwA
https://www.youtube.com/watch?v=nhaIo8PhD_k
https://www.youtube.com/watch?v=K4bQOmZwXFI

The manual brings very little information and few examples to create a slightly more elaborate application.


RE: How to make apps - cyrille de brébisson - 07-07-2020 05:29 AM

Hello,

(07-05-2020 06:41 PM)cahlucas Wrote:  
(07-05-2020 10:57 AM)Tim Wessman Wrote:  The currently active application is what shows in the top position in the program catalog. So start the app you want to look at, and then open the program catalog and select the top item.
Dear Mr. Wessman,
Does this also apply to the buildin apps? Sincerely, Karel.

Yes, BUT....
The build in apps can have programs associated with them, but all the basic functionalities are hard codded in C/C++ and not visible to the user.
Their functionalities CAN be extended through PPL program which ARE visible in the program catalog.
This is how you create an app.
You take an existing app and you modify it.
If you want to keep nothing of the build in functions, then you need to hide them by overriding the various views.

Cyrille