Here is another good screencast on using Inkscape. This is my effort. Not as good as his, but I don't think it's too bad at all. Not sure what I would use this for though...
My latest app is called Pedometer Log. It is a way for users of pedometers to log their daily steps and try to achieve goals be they related to weight loss, or just staying in shape. It tracks the number of steps taken in the previous week and the week before that and show how you did relative to your goal. A common target among pedometer users is to do 10,000 steps in a day. It's a lot of walking, but it is worth investing the time for a while to see if it works. If you want something a bit faster than walking there are a number of other sports in there for which equivalent step conversions are included. This allows you to move toward your goal while getting some variety in your workouts. You can find the app on the Android market here .
This is a handy piece of code. As your database gets bigger you can allow the user to pick the correct value by typing. If the db gets very big, you can always increase the threshold, so that the query does not run until there will be a suitably sized resultset returned. Running it at a threshold of 1 is fine for very small resultsets. Here is the code you need to back your AutoCompleteTextView with a cursor adapter. @Override protected void onResume() { super.onResume(); text = (AutoCompleteTextView) findViewById(R.id.autoCompleteTextView1); final AdapterHelper h = new AdapterHelper(this); Cursor c = h.getAllResults(); startManagingCursor(c); String[] from = new String[] { "val" }; int[] to = new int[] { android.R.id.text1 }; CursorAdapter adapter = new MyCursorAdapter(this, android.R.layout.simple_dropdown_item_1line, c, from, to); adapter.setFilterQueryProvider(new FilterQueryProvider() { public Cursor runQuery(Cha...
I am going to collect my naming conventions for Android here. This may sound like reinventing the wheel, but a cursory glance around will show that there is not much agreement on what should be done. It will be short to start with and hopefully it will improve as I go along. I would of course be much happier to use the official version, but I can't find this. If it shows up I will switch and leave a link here. Widgets like buttons: Prefix them with a short version of their class - example btn for button. Follow that by camel case for what they are. So btnCancel would be your cancel button. This has the advantage of allowing you to easily filter out all non buttons when you are wiring your xml layout files up to your java. btn - button txt - editable text field (EditText) lbl - non editable text fields (TextView) tgl - toggle button String identifiers in strings.xml : use all lower case, separated by underscores. For button labels use btn_ as a prefix. For...
Comments
Post a Comment