CS453 | mobile programming
  • outline
  • projects
  • syllabus
  • links

IDE Tips (some Android Studio , Some Eclipse)

Emulator getting past Lock screen (hit F2)

1)After you run your emulator (and launch your app onto it) you will get the following interface with lock on it

2) Hit F2 to get past to Home Screen     (See here for other keyboard commands)

 

 

 

 

ECLIPSE: Change the AVD your Android Project runs in

1) Right click on project folder in Eclipse and select Run As->Run Configuration

select run configuration for project

2) Will bring up run configurations window, welect target tab and then
you will see list of current AVDs for the targeted Android Level declared by
your app

run configuration target tab

 

Copy and Paste (duplicate) an Android Project

1) Select Project in Eclipse at top level and do a Ctrl-C and Ctrl-V

2) It will prompt you for a new name of the project

new name for project

3) Enter in a name and you are ready to go --- you may want to be careful and change the name of your packages AND Application name so you don't have a conflict on same device with other application from original project.

change application name in string.xml file

 

 

 

Scale the Size of Emulator Window

1) go to Run > Run Configurations... > (Select your application on the left hand side) > (Click the "Target" tab on the right hand side). 2) At the bottom there, you'll see 'Emulator launch parameters'. In the 'additional emulator command line options', add '-scale 0.75' (to make the screen 75% of full size)

Next time you start the emulator it will have scaled

scale emulator down

 

 

 Mysterious Problem --- old projects (unchanged) that used to run won't

1) Close Eclipse, then kill the adb.exe process

kill adb.exe process

2) restart adb by typing in adb.exe in command prompt

 

3) restart Eclipse

 

 

 

=========================================================

Android Hot Keys

hot keys

 

 

Android Lat/ Long tools

 

ANOTHER place for Emulator Controls (including Lat/Long)-->Android Device Monitor (Emulator Control tab)

 

cs453:mobile programming

  • home
  • outline
  • projects
  • syllabus
  • links