Translate

Showing posts with label android. Show all posts
Showing posts with label android. Show all posts

Saturday, September 28, 2013

Double or multiple touch sensing APP INVENTOR Canvas

In this tutorial I am explaining about how to sense double touch (Multiple click) in MIT APP Inventor Canvas. 
 App Inventor is a very good and simple tool for Android development invented by google labs and now hosted in MIT server. A CANVAS is a two dimensional touch sensitive rectangular panel on which drawing can be done and sprites can be moved . With the help of CANVAS, you can make variety of applications and that palatte is capable to track your gestures on the touch screen. Unfortunately, APP inventor team (Google, MIT) not given any answer for the question, “How to sense the double or multiple touch using CANVAS ”. I have searched on many websites, But I didn’t get any response. Thus I created a block to sense app inventor double/ multiple touch action (Double Click). With the help of this tutorial you will study how you can use the timer or clock pallatte for your android development. 

LOGIC Behind this work

Sensing: How often you touched up the canvas for a short interval (~500 milli seconds=1/2 seconds).

At First you have to insert following Pallates using APP inventor designer webpage 
  •  CANVAS 
  •  CLOCK
  • TEXT BOX 
Click save and open CODE EDITOR (on a JAVA installed system)




 STEPS

 For that you need a global variable , that will store your number of clicks (Touch)
 to make a global variable
Click on Definition> Name block 
Give a suitable name . In my case I have given name “time”. 



Next You have to give a time interval for timer, for double click we need only ½ seconds only. So I have given timer value to 500 mS. I have put that block in screen initialization block (See the figure).



Canvas1.Mouse touch up will give information about how often you touched the canvas.
If you clicked multiple times , variable "timer" will increase by 1 (see math block inside Canvas1.Mousetouchup block). At the end of 1 timer cycle (500 mS). An interrupt will be fired and the entire execution cycle of the program will reach in the clock1.timer block, In that block I printed the number of clicks stored in our global variable (timer) to the TextBox1. After printing the value on text box 1, set the time variable value to zero.(Otherwise it increases with every click) 

For more information 


http://pravysoft.eu5.oorg/praveen

or email us to



Thursday, March 8, 2012

Mozilla firefox latest version module:Do not track


Mozilla Delivers New Version of Firefox – First Web Browser in the world to Support Do Not Track on Multiple Platforms

Mozilla, a global, nonprofit organization dedicated to making the Web better,On december 2011 released a new version of Mozilla Firefox for Windows, Mac, Linux and Android. The new version of Firefox comes on the heels of the wildly successful release of Firefox 4, which had more than 200 million downloads on Windows, Mac and Linux and millions of downloads in the Android Market.
Mozilla’s shift to a rapid release development cycle delivers cutting edge Firefox features, performance enhancements, security updates and stability improvements to users faster.
The latest version of Firefox includes more than 1,000 improvements and performance enhancements that make it easier to discover and use all of the innovative features in Firefox. This release adds support for more modern Web technologies that make it easier for developers to build amazing Firefox Add-ons, Web applications and websites.
Firefox for Android includes the Do Not Track privacy feature in this release, making Firefox the first browser to support Do Not Track on multiple platforms. Mozilla created Do Not Track to give users more control over the way their browsing behavior is tracked and used on the Web. The feature, which lets users tell websites that they wish to opt-out of online behavioral tracking, is now easier to find in Firefox Preferences.


Firefox offers users complete control over the look and functionality of their Web browser with a gallery of hundreds of thousands of add-ons. About 85% of Firefox 4 users have an add-on installed to customize the look, features and functionality of their Firefox.
Mozilla has a rich set of resources that make it easier for Web developers to build compelling Firefox Add-ons using HTML, JavaScript and CSS. The new Firefox Add-on SDK for Windows, Mac and Linux enables local development of add-ons, while the Firefox Add-on Builder Beta provides a hosted Web-based build environment. Developers can build Firefox Add-ons for all platforms that install and update without requiring a browser restart or interrupting the Web browsing experience.
Firefox for Windows, Mac and Linux now supports the CSS Animations standard to enable developers to build more amazing Web applications and websites. Mozilla Hacks has a tutorial on CSS Animations and a comprehensive blog post explaining what developers can create with Firefox.
To get the latest version of Firefox for Windows, Mac or Linux click on “check for update” under the “About Firefox” menu or download the Firefox Aurora and Beta channels here. Visit this page to get the latest version of Firefox on your Android device or to join the beta. Users with Firefox for Android installed will receive a notification to update to the latest version.
For more information:
FAQ: Firefox for Windows, Mac and Linux / Firefox for Android
Long, technical release notes: Firefox for Windows, Mac and Linux / Firefox for Android