Friday, February 3, 2012

Creating Work Item Fields in TFS 2008

Yesterday I was expanding the capability of the data our team captures in TFS (Team Foundation Server). In doing so, we wanted to add new fields and a form to our existing TFS work items. Creating new fields, which can end up being used for reporting, was not as intuitive as I first thought, but turned out to be fairly easy! Let's take a look:

1) Open your work item type to modify, I created a copy (export) and then imported it for a test bed.


2) Add your new fields on the "Fields" tab. In the 'Ref Name' column, enter a unique name. This is the step that I couldn't find much info on the internet about.


3) Add that new field to your form (new or existing) on the Layout tab, by adding a new control.

4) Preview the form!

I hope this helps someone out there, let me know if you have questions in the comments!

Sunday, January 8, 2012

Android ListView with CheckBox - The easy way

After MUCH Googling for a simple way to add a checkbox to a listview, I finally found an example in the ApiDemos that come with the SDK.

If your looking for this end outcome, then read on.

Auto Uploader

The "Enabled" with CheckBox above is actually a ListView, within a regular Activity, with just one item in the list.

First, simply add the ListView to your xml layout (main.xml):

<ListView
        android:id="@+id/listView1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" >
</ListView>


Second, in your Activity, define a String[] of items (just one for me), and wire up the ListView into a variable. List so in my onCreate():


ListView listView1;
String[] listItems = { "Enabled" };

listView1 = (ListView)findViewById(R.id.listView1);

listView1.setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_multiple_choice, listItems));
listView1.setItemsCanFocus(false);
listView1.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);

Boom, thats it to make it show up in your Activity! Obviously, I also needed the "click" to work, so here's the code for the setOnItemClickListener():

listView1.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
CheckedTextView ctv = (CheckedTextView)arg1;
//do your stuff in here! 
}
});


Tuesday, June 14, 2011

SimpleHood

UPDATE: A new version of SimpleHood has been released on the market!


View things in your neighborhood!

SimpleHood displays features from the SimpleGeo database that are within 25 meters of your current location.

Features:
1) Display nearby things on map
2) View details
3) Dial phone number
4) View in Google Maps

Fixes:

-Significant amount of bug fixes and performance updates.
-Sorting by category
-Added list view of items (menu key)
-Updated details page, view in Google Maps and call button





The first version of SimpleHood is available on the Android Market!

I'm not exactly sure what I want to do yet with this, so please give me some feedback!

Main Screen

Tuesday, May 3, 2011

WhoCalled

WhoCalled is the easiest way to instantly search on whocalled.us!

 



This app only responds when the incoming phone number is NOT in your phonebook. After declining the unknown number, a notification will appear in your notification bar. Simply click the notification and it will search whocalled.us, showing the most popular answer!

Permission explanations:
READ_PHONE_STATE: to know when call is over.
INTERNET: to lookup who the caller is.
READ_CONTACTS: to filter out known contacts.