Monday, January 27, 2014

How to use listviews to start new activities

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.

Android Eclipse - Copying files from one project to a new one


  1. Select a project, copy and paste. Rename the project when prompted. 
  2. Open search and replace dialog for the project manifest, find and replace all strings associated with old name to new name. 
  3. Select the package name in src folder and refactor/rename to new project name. 
  4. 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.
  5. Deleted any imports in class files which refer to old .R file. Look for the entry in the imports section at top of file.