Software Archive
Read-only legacy content

Widget

Adam_t_1
Beginner
689 Views

Hi. 

 

I want to ask. how can i create widget for android ? ... please i need this.

0 Kudos
3 Replies
PaulF_IntelCorp
Employee
689 Views

I assume you mean a widget for the Android desktop? That can only be done by creating a custom plugin for Android. There is no general-purpose way to do this with a Cordova app.

0 Kudos
Adam_t_1
Beginner
689 Views

Hmm ok ... thx and i have 1 question. I want to create some code for saving game data. Everithing what peaple do is saved in the some files or some text files. And here is one problem i create everithing with html. I want to create code for html save data if you turn off apk and you turn on again is switched on not index.html but some another html files where this player turn off game. ... and sorry for my english language.

0 Kudos
PaulF_IntelCorp
Employee
689 Views

In a Cordova app, which you are building, it is best to use a single HTML file and then hide/show divs to represent multiple pages within that app. Then store your data in a local file using the "file" plugin or using something like the SQLite plugin. You can store your game state using the same technique. When your game starts, read the contents of that file and configure your state accordingly.
 

0 Kudos
Reply