- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi.
I want to ask. how can i create widget for android ? ... please i need this.
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page