Wednesday, February 27, 2013

Android emulator taking too much of screen size?


Source: http://stackoverflow.com/questions/2359895/android-emulator-screen-too-tall

(Little modified)

Using AVD Manager

  1. Open AVD Manager 
    1. If using eclipse then Go to Window -> Android SDK and AVD Manager -> Virtual Devices
  2. Select the AVD you want to launch and click Start
  3. Check the "Scale display to real size" button
  4. Enter how big you want it to appear in inches and press Launch. For this to work, you'll have to also enter a reasonable approximation of your mac's screen resolution. I'm using 7 inches and 113 dpi for my 13" Macbook Pro, but you may be able to get away with 8 or 9 inches.

While debugging (add this to command line)

Source: http://stackoverflow.com/questions/2359895/android-emulator-screen-too-tall/4963984#4963984

This is actually possible from your project as well, no need to start the emulator through the AVD manager:
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 properly, hooray!

Change when the Emulator is running

Source: http://stackoverflow.com/a/6049246


There is also a way to re size the emulator through a windows command prompt.
  1. From command prompt run: telnet localhost 5554
  2. window scale 0.75
  3. quit
Assuming there is one emulator running with on port 5554.

Sunday, February 17, 2013

How to Do a Clean Install of Windows 8 with an Upgrade Disc


How to Do a Clean Install of Windows 8 with an Upgrade Disc:


Sometimes, you just need to do a clean install. Unfortunately, the Windows 8 Upgrade doesn't always allow for that, throwing you an error when you try to activate after a clean install. Reader uncommoner shows us a workaround for this issue.
If you do a clean install using the Windows 8 Upgrade Assistant, you should be fine—but if you've already formatted your drive or you're moving to a new drive, you can't do a "clean install" without installing an old version of Windows first. It'll let you install Windows 8 cleanly, but when you go to activate, you get an error 0x8007007B, saying your product key can only be used for upgrading.
If you get that error, here's how to fix it:
  1. Press the Windows key and type regedit. Press enter to open the Registry Editor.
  2. Navigate toHKEY_LOCAL_MACHINE/Software/Microsoft/Windows/CurrentVersion/Setup/OOBE/and double-click on the MediabootInstall key in the right pane.
  3. Change the key's value from 1 to 0.
  4. Exit the Registry Editor, press the Windows key again, and type cmd. Right-click on the Command Prompt icon and run it as an administrator.
  5. Type slmgr /rearm and press Enter.
  6. Reboot Windows.
When you get back into Windows, you should be able to run the Activation utility and activate Windows as normal, without getting an error. Obviously, you could use this trick for evil, but it has its legitimate place too—if, say, you're upgrading your hard drive and want to do a fresh install on it, or if you formatted your drive before upgrading.
We haven't had a chance to test it ourselves, but it's been well documented around the net, so we're confident it should work for you if you're getting this particular error. If you give it a shot, let us know how it works for you in the discussions below! Thanks for the tip, uncommoner!