Geeks With Blogs
Bill Osuch - Random geek notes December 2010 Entries
Android - Switching Activities with a Tab Layout
This post is based on the Tab Layout tutorial on the Android developers site, with some modifications. I wanted to get rid of the icons (they take up too much screen real estate), and modify the fonts on the tabs. First, create a new Android project, with an Activity called TabWidget. Then, create two additional Activities called TabOne and TabTwo. Throw a simple TextView on each one with a message identifying the tab, like this: public class TabTwo extends Activity { @Override public void onCreate(Bundle ......

Posted On Tuesday, December 21, 2010 9:26 AM

Android 2.3 (Gingerbread) officially released
Google today officially released their latest version of the Android OS - 2.3, Gingerbread. It won't hit a phone (the Nexus S) until 12/16, but developers can start working with it today. Some of the new features include: Enhancements for game development Rich multimedia New forms of communication Simplified debug builds Integrated ProGuard support HierarchyViewer improvements Preview of new UI Builder See the complete details at ......

Posted On Monday, December 6, 2010 2:27 PM

Android - creating a custom preferences activity screen
Android applications can maintain their own internal preferences (and allow them to be modified by users) with very little coding. In fact, you don't even need to write an code to explicitly save these preferences, it's all handled automatically! Create a new Android project, with an intial activity title Main. Create two more activities: ShowPrefs, which extends Activity Set Prefs, which extends PreferenceActivity Add these two to your AndroidManifest.xml file: <activity android:name=".SetPrefs">... ......

Posted On Friday, December 3, 2010 5:27 PM

Dallas GiveCamp - developing for non-profit organizations
GiveCamp is a weekend-long event where software developers, designers, and database administrators donate their time to create custom software for non-profit organizations. This custom software could be a new website for the nonprofit organization, a small data-collection application to keep track of members, or a application for the Red Cross that automatically emails a blood donor three months after they’ve donated blood to remind them that they are now eligible to donate again. The only limitation ......

Posted On Thursday, December 2, 2010 9:07 AM

BizTalk - Stopping TA1 generation in EDI applications
When receiving EDI messages in BizTalk, you have the option of sending an Interchange Acknowledgment (TA1) when a file is received. This is configured in the X12 Fallback Settings in BT 2010, or in EDI Global Properties in previous versions. However, even if you have this disabled, if your inbound file has the ISA14 field (Acknowledgement Requested) set to 1, then a TA1 will be created. It will then be suspended, since BT doesn't know what to do with the message. To get around this, you have two ......

Posted On Wednesday, December 1, 2010 3:52 PM

Android - Sharing an options menu between activities
Say you have an Android app with multiple activities (or "screens", if you prefer...) and you want to have the same options menu appear on every activity. Simply create another activity that implements the onCreateOptionsMenu() and onOptionsItemSelected() methods, like this: public class MasterActivity extends Activity { @Override public boolean onCreateOptionsMenu(Menu menu) { ... whatever ... } @Override public boolean onOptionsItemSelected(MenuItem item) { ... whatever ... } } Then have all of ......

Posted On Wednesday, December 1, 2010 3:26 PM

Copyright © Bill Osuch | Powered by: