This code shows how to use a string in the list to start a new activity. The new activity is determined by the string in the selected row. The code is here.
Monday, January 27, 2014
Android Eclipse - Copying files from one project to a new one
- Select a project, copy and paste. Rename the project when prompted.
- Open search and replace dialog for the project manifest, find and replace all strings associated with old name to new name.
- Select the package name in src folder and refactor/rename to new project name.
- Open res/values folder and examine strings.xml. Chances are the app name is stored in there using old project name. Search/replace here as well.
- Deleted any imports in class files which refer to old .R file. Look for the entry in the imports section at top of file.
Saturday, December 7, 2013
Thursday, December 5, 2013
bluez5, pulseaudio, alsa, and bluetooth headset with archlinux
Finall got my headset working with archlinux. My howto is on this page:
Added the entire section 3.
Tuesday, September 10, 2013
links on virtualization
http://www.anandtech.com/show/2480
http://wiki.xen.org/wiki/Xen_Overview#What_is_Xen.3F
http://www.xenproject.org/users/getting-started.html
http://en.wikipedia.org/wiki/X86_virtualization
Thursday, April 4, 2013
Saturday, March 30, 2013
Monday, March 25, 2013
Vacuum Gague Board
This is the custom printed circuit board (PCB) I built in my kitchen for the Vacuum sensor. The board consists of a voltage regulator and a freescale semiconductor vacuum sensor. The sensor outputs a voltage proportional to the vacuum. Sadly my circuit is not very linear though.
here
Tach and Vacuum Gauge
Three videos for the Dodge Ram50 triple gauge I'm building.
The first video is of the tach capability side by side with an off the shelf tach. It shows the tach in line with the off the shelf one as a calibration test.
The second video shows the calibration of the sensor board and User Interface in calibration with the vacuum hand pump and the vacuum gauge. The sensor board is not connected to the truck vacuum system.
The third video shows the sensor board and mechanical vacuum gauge connected to the truck vacuum system. The hand pump is no longer connected.
Thursday, August 30, 2012
Tuesday, August 7, 2012
Wednesday, February 22, 2012
Thursday, February 9, 2012
Thursday, February 2, 2012
toon tracker crewskill summary screen
Here is the crew skill summary screen. The lowest toon crewskill is automatically highlighted in yellow. What not shown is the toast message that occurs when you click a cell. On my phone this screen is tiny and the numbers are hard to read. However, if you click on a cell, it will display a larger toast message with the cell contents. So in this case, if you were to touch the cell with the 146 value it would display a toast message with "146" for a duration of TOAST_LONG.
toontracker screenshots
The main screen
The daily pvp todo list
The results of the browse companion buttons. The companions are selectable which leads to companion overview screen.
The first tab of the companion overview screen. This screen shows the companion's quest preferences.
The companions gift preferences.
The companion gear, primary stats and crew skill bonuses.
The results of selecting search gifts buttons from main page. This is the list of gift types.
Selecting a gift brings up the list of companions which respond positively to this gift. The preference is color coded, Green, yellow, red. In this case, we see Imperial Memorabilia is best liked by Malavai.
This is the new toon screen. The class list is populated by the Adv classes specialty trees. I assume at least one of the adv classes will have more talents choices than the other two.
This is the list of toons. I've got six toons as imperial so the toons are shown in red. I've hardcoded these toons in the database. On final release these database entries will be removed. They could easily be deleted from the database if you want to use this tool now.
This is the toons overview page. It is a result of picking a toon above.
This is the toons crew skill details page. The number corresponding to the level is clickable and allows you to set the level at run time.
This is the toon gear page. For now its just a gridview with blank data. I'm planning on having a gear scrore like capability here based upon the rating.
This is showing the menu that is available from just about all screens.
These screenshots do not show help, about splash screen, export/import progress dialog or crew skill summary. I will post the summary page when its complete.
Tuesday, January 31, 2012
gridview take2 issues
@Override
public View getView(int position, View convertView, ViewGroup parent) {
TextView textView;
if (convertView == null) { // if it's not recycled, initialize some attributes
textView = new TextView(mContext);
// textView.setLayoutParams(new GridView.LayoutParams(40, 40));
textView.setPadding(1, 8, 1, 8);
} else {
textView = (TextView) convertView;
}
textView.setText(mGridViewArrayStrings[position]);
textView.setTextSize(TypedValue.COMPLEX_UNIT_SP,7.0f);
//TypedValue.COMPLEX_UNIT_PX : Pixels
//TypedValue.COMPLEX_UNIT_SP : Scaled Pixels
//TypedValue.COMPLEX_UNIT_DIP : Device Independent Pixels
return textView;
}
================
<?xml version="1.0" encoding="utf-8"?>
<GridView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/gridview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:numColumns="7"
android:stretchMode="columnWidth"
android:gravity="center"
android:soundEffectsEnabled="true"/>
================
Thursday, January 26, 2012
grid view notes
<?xml version="1.0" encoding="utf-8"?>
<GridView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/gridview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:columnWidth="90dp"
android:numColumns="6"
android:verticalSpacing="3dp"
android:horizontalSpacing="10dp"
android:stretchMode="columnWidth"
android:gravity="center"
android:soundEffectsEnabled="true"/>
The example helloGridview has the vertical spacing as 10dp. Changing to 3 did not have an effect. I am setting the text size in the baseadapter like so:
textView.setText(mGearStrings[position]);
textView.setTextSize(TypedValue.COMPLEX_UNIT_SP,7.0f);
textView.setText(mGearStrings[position]);
textView.setTextSize(TypedValue.COMPLEX_UNIT_SP,7.0f);
Subscribe to:
Posts (Atom)






















