• Home
  • Reviews
  • Featured
  • Archives
  • Videos
  • Devices
  • Tegra
  • Send Tips
  • Contact
  • AndroidCommunity on Twitter AndroidCommunity on Facebook AndroidCommunity on Google+ AndroidCommunity RSS Feed

Android Community

    • MUST READ

      STORIES

    • ASUS Padfone Infinity rumors point towards a U.S. release

      May 22, 2013

    • Google invites #ifihadglass applicants to try Google Glass

      May 22, 2013

    • Google Play Magazines updated with card UI to match Google Music

      May 22, 2013

  • Trending Topics
  • Jelly Bean
  • NVIDIA
  • Galaxy S 4
  • HTC One
  • Nexus 7
  • Sell Your Used Phone

Apps-for-Android gets 3 new code samples: graphics & download

0
  • By Chris Davies
  • on 11 Sep, 2008

Apps-for-Android gets 3 new code samples: graphics & download

Android developer Jack Palevich has released three new open-source samples on the official project blog, two giving insight on how best to implement the OpenGL ES 3D graphics APIs, while the last is an example of a downloader.  Triangle is, according to Palevich, the “Hello World” of OpenGL ES apps, and is a simple use of the GLView class and the OpenGL ES 3D library in creating a spinning, textured triangle.

SpriteText adds to that, with the inclusion of screen-aligned text:

“SpriteText contains a reusable LabelMaker class for drawing static text and screen-aligned images, as well as a Projector class for finding the 2D screen coordinates corresponding to a 3D point, and a MatrixTrackingGL class for keeping track of the current transformation matrix. Finally, it shows how to use these classes to display a milliseconds per frame counter. A ms/f counter can be helpful for tuning graphics performance” Jack Palevich, Android Developers Blog

Finally, Downloader is an example of a file download system that could be added to the start of any new Android app.  It automatically downloads any number of files from an XML configuration document stored on a named web server, and would be useful in situations where there is more local data than can fit into an .apk file.

The code is available to download and experiment with now.  Click to discuss now in Android Community.

android_apps
android_downloader_app
android_sprite_text_app

android_triangle_app

Share
  • Samsung Galaxy Note 3 with Android 4.3 spotted in benchmark results
  • Verizon HTC One running Android 4.2.2 could be coming soon
  • Verizon HTC One tipped for CTIA event unveiling

Tags: Android SDKAndroid-Apps

  • Search

  • REVIEWS

    • AT&T LG Optimus G Pro ReviewAT&T LG Optimus G Pro Review
    • Iron Man 3 game Review: what you need to knowIron Man 3 game Review: what you need to know
    • Samsung GALAXY S 4 ReviewSamsung GALAXY S 4 Review
    • Samsung Galaxy Note 8.0 ReviewSamsung Galaxy Note 8.0 Review
    • Pebble review: Two weeks with a smartwatchPebble review: Two weeks with a smartwatch
  • HANDS-ON & QUICK LOOKS

    • Coolpad Quattro II 4G and 8920 hands-onCoolpad Quattro II 4G and 8920 hands-on
    • Kyocera Hydro XTRM and EDGE hands-onKyocera Hydro XTRM and EDGE hands-on
    • Opera for Android exits beta, we go hands onOpera for Android exits beta, we go hands on


  • T-Mobile G1 Accessories
  • RECENT COMMENTS

  • About
  • Contact
  • Terms of Use
  • Privacy Policy
  • Advertise

Copyright 2013 Android Community