Tuesday, May 28, 2013

Firefox OS

FireFox OS

Firefox OS is a new mobile operating system developed by Mozilla. It uses a Linux kernel and boots into a Gecko-based runtime engine, which lets users run applications developed entirely using HTMLJavaScript, and other open web application APIs.
Firefox OS is currently under heavy development; we are constantly working on ways to make it easier for you to use and hack on Gaia (the default set of apps) and create your own. However, you need knowledge about systems in order to do things like build the entire Firefox OS stack, or flash a phone with a build of Firefox OS. Linked below are guides meant for Web developers interested in running and making changes to Gaia or developing apps to run on Firefox OS devices.
Here are the steps to install firefox os on your phone

http://support.mozilla.org/en-US/kb/download-and-install-applications-firefox-os

receive screen OnOff or Headset plug broadcast


There are some broadcast in android which you can't detect just declaring receiver with intent-filters in Android-Manifest.xml to detect them you need one active component service or activity which will register Custom broadcast receiver at run time as follows 


MyReceiver br = new MyReceiver();
IntentFilter theFilter1 = new IntentFilter(Intent.ACTION_HEADSET_PLUG);
IntentFilter theFilter2 = new IntentFilter(Intent.ACTION_SCREEN_ON);
registerReceiver(br, theFilter1);
registerReceiver(br, theFilter2);