Friday, April 29th, 2011 at
Sensor manager contains the following constraints that let you select a suitable update rate.
- SensorManager.SENSOR_DELAY_FASTEST Specifies the fastest possible Sensor update rate
- SensorManager.SENSOR_DELAY_GAME Selects an update rate suitable for use in controlling
- SensorManager.SENSOR_DELAY_NORMAL Specifies the default update rate
- SensorManager.SENSOR_DELAY_UI Specifies a rate suitable for updating UI features
Wednesday, March 30th, 2011 at
The new Samsung Beam is a Android 2.1 mobile phone featuring a large 3.7-inch Super AMOLED touchscreen display,8 megapixel camera, and a pico projector .
The new mobile phone also sports the TouchWiz 3.0 UI on top of Android, the same as Samsung Wave, the first bada-powered smartphone, does, but it has a larger screen than the latter. Moreover, users will also enjoy an 8-megapixel photo snapper with auto focus and flash with Beam, which can also provide 720p / 30fps video encoding / decoding. Not to mention that it comes with that integrated pico projector, which both extends its functionality and makes it much more appealing to customers.
Wednesday, March 2nd, 2011 at
A fragment is a new framework component that allows us to separate distinct elements of an activity into self-contained modules that define their own UI and lifecycle. To create a fragment, we must extend the Fragment class and implement several lifecycle callback methods, similar to an
Activity. We can then combine multiple fragments in a single activity to build a multi-pane UI in which each pane manages its own lifecycle and user inputs.
We can also use a fragment without providing a UI and instead use the fragment as a worker for the activity, such as to manage the progress of a download that occurs only while the activity is running.
Features of Fragment:
1. Fragments are self-contained and you can reuse them in multiple activities
2. Add, remove, replace and animate fragments inside the activity
3. We can add fragments to a back stack managed by the activity, preserving the state of fragments as they are changed and allowing the user to navigate backward through the different states
4. By providing alternative layouts, you can mix and match fragments, based on the screen size and orientation
5. Fragments have direct access to their container activity and can contribute items to the activity’s Action Bar