Wednesday, April 27, 2016

Shopping List 0.5.2 version released

Shopping List 0.5.2 version released(click on image to try it)


0.5.2 beta version commitment details:
- replaced app icon with a new one(removed old logo.png file).
- improvement for addItemModal dialog graphic.
- reduced font size for list items.
- introduced ng-cordova js lib.
- general js code refactoring.
- introducing vibration on add item modal function calling.
- prevent stand-by/sleeping mode during app activity.
- introduced heading bar.


Incoming features(and general to do):
- set blog url into sourceforge.net application profile(support url location).
- splash screen
- apk signing
- google market publication
- "how to start" project documentation.
- change items font
- confirm dialog on exiting
- introduce a new categorized order(capability)
- intoduce a settings menu
- change font at runtime(into settins menu)
- change language(into setting menu)

Friday, April 22, 2016

Cordova/PhoneGap inhibit/prevent sleeping mode

If you need to prevent the sleeping mode here is a plugin that does this..

Install it:
cordova plugin add https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin.git

or

phonegap plugin add https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin.git

than to use it this is the code; to prevent sleep mode use:

window.plugins.insomnia.keepAwake()

instead to re-allow the sleeping mode again use:


window.plugins.insomnia.allowSleepAgain()

Please refer here to full documentation.....

 Bye..

Tuesday, April 5, 2016

Cordova/PhoneGap force the calling to the virtual keyboard - how to

I've spent some days to search a solution to an issue I have when a input text in my ui needs to show the android virtual keyboard.
The only way I found, is to add a plugin to my cordova-phonegap project via command line interface.
First, ensure you have cordova.js included/imported in your html page.
Move into the project directory and type:
cordova plugin add ionic-plugin-keyboard

the in your code(javascript) when you need call this:
cordova.plugins.Keyboard.show();

...and the virtual keyboard show up.

Note that during development if you are testing your app in the browser, probably you'll be notified by this error:

"Cannot read property 'Keyboard' of undefined"

It's depends by the cordova.js that you have included into the page, but it is imported only when application is built for the devices.
So you will really see it in the device or in device emulator.

It's all.

I try it only in Android. Please notify me(also with a simple comment) if it correctly works on other platforms.

Here you can find some documentation.

Bye...