Monday, September 23, 2013

Creating a Clock Widget in Android with Custom Font.

Hi all
if you have been a regular visitor of this website you have seen that I have shown you how to create a simple widget, adding controls to it, adding event handlers in the views etc…
Do check this website for more tutorials on widgets.
You can find other tutorials by following this LINK.
This tutorial is also an important one on widgets.
People always find it difficult to customize their widgets with Custom Fonts. AS of now you cannot directly set the font in a TextView in a Widget. For that you have to go indirectly.
In this example I will show you how to create a Clock widget with Custom Font.

Android JellyBean new features


  • WI-Fi Direct


  • 1080p video recording for stock Android devices
  • Improved error correction on the keyboard
  • You can directly access the apps from the lock screen
  • Upgraded copy and paste functionality
  • Support for the WebP image format
  • Hardware acceleration of the universal Interface
  • Soft buttons from Android 3.x are now available for use on phones
  • Widgets in a new tab can be separated, listed in a similar manner to apps
  • Folders can easily be created with a drag-and-drop style
  • Launcher Customizer
  • Enhanced visual voicemail with the ability to speed up or slow down voicemail messages
  • Pinch-to-zoom functionality in the calendar
  • Integrated screenshot capture (accomplished by holding down the Power and Volume-Down buttons)
  • Improved voice integration and continuous, real-time speech to text dictation
  • Face Unlock, a feature that allows users to unlock handsets using facial recognition software
  • New tabbed web browser under Google’s Chrome brand, allowing up to 16 tabs
  • Automatic syncing of browser with users’ Chrome bookmarks
  • A new typeface family for the UI, Roboto
  • A data Usage section in settings that lets users set warnings when they approach a certain usage limit, and disable data use when the limit is exceeded
  • Shut down apps ability that are using data in the background
  • An improved camera app with zero shutter lag, time lapse settings, panorama mode, and the ability to zoom while recording
  • Built-in photo editor
  • You can organize New gallery layout by location and person
  • Refreshed “People” app with social network integration, status updates and hi-res images
  • A near-field communication feature (Android Beam) allowing the rapid short-range exchange of web bookmarks, contact info, directions, YouTube videos and other data
  • Android VPN Framework (AVF), and TUN (but not TAP) kernel module.
  • Samsung Galaxy Note 3 in India for Rs.49990

    Here are Galaxy note 3 specs.






    General
    2G NetworkGSM 850 / 900 / 1800 / 1900
    3G NetworkHSDPA 850 / 900 / 1900 / 2100
    4G NetworkLTE
    SIMMicro-SIM
    Announced2013, September
    StatusComing soon. Exp. release 2013, September
    Body
    Dimensions151.2 x 79.2 x 8.3 mm (5.95 x 3.12 x 0.33 in)
    Weight168 g (5.93 oz)

    - S Pen stylus
    Display
    TypeSuper AMOLED capacitive touchscreen, 16M colors
    Size1080 x 1920 pixels, 5.7 inches (~386 ppi pixel density)
    MultitouchYes
    Sound
    Alert typesVibration; MP3, WAV ringtones
    LoudspeakerYes
    3.5mm jackYes
    Memory
    Card slotmicroSD, up to 64 GB
    Internal32/64 GB storage, 3 GB RAM
    Data
    GPRSYes
    EDGEYes
    SpeedHSDPA, 42 Mbps; HSUPA; LTE, Cat4, 50 Mbps UL, 150 Mbps DL
    WLANWi-Fi 802.11 a/b/g/n/ac, dual-band, DLNA, Wi-Fi Direct, Wi-Fi hotspot
    BluetoothYes, v4.0 with A2DP, LE, EDR
    NFCYes
    Infrared portYes
    USBYes, microUSB v3.0 (MHL 2), USB Host
    Camera
    Primary13 MP, 4128 x 3096 pixels, autofocus, LED flash
    FeaturesDual Shot, Simultaneous HD video and image recording, geo-tagging, touch focus, face and smile detection, image stabilization, panorama, HDR
    VideoYes, 2160p@30fps, 1080p@60fps (N9005)/ 1080p (N9000)
    SecondaryYes, 2 MP, 1080p@30fps
    Features
    OSAndroid OS, v4.3 (Jelly Bean)
    ChipsetQualcomm Snapdragon 800 (N9005)/ Exynos 5 Octa 5420 (N9000)
    CPUQuad-core 2.3 GHz Krait 400 (N9005)/ Quad-core 1.9 GHz Cortex-A15 & quad-core 1.3 GHz Cortex-A7 (N9000)
    GPUAdreno 330 (N9005)/ Mali-T628 MP6 (N9000)
    SensorsAccelerometer, gyro, proximity, compass, barometer, temperature, humidity, gesture
    MessagingSMS(threaded view), MMS, Email, Push Mail, IM, RSS
    BrowserHTML5
    RadioNo
    GPSYes, with A-GPS support and GLONASS
    JavaYes, via Java MIDP emulator
    ColorsBlack, White, Pink

    - ANT+ support 
    – S-Voice natural language commands and dictation 
    – Air gestures 
    – SNS integration 
    – Active noise cancellation with dedicated mic 
    – Dropbox (50 GB storage) 
    – TV-out (via MHL A/V link) 
    – MP4/DivX/XviD/WMV/H.264/H.263 player 
    – MP3/WAV/eAAC+/AC3/FLAC player 
    – Organizer 
    – Image/video editor 
    – Document editor (Word, Excel, PowerPoint, PDF) 
    – Google Search, Maps, Gmail, 
    YouTube, Calendar, Google Talk, Picasa 
    – Voice memo/dial/commands 
    – Predictive text input (Swype)
    Battery

    Li-Ion 3200 mAh battery