MortalPowers, Inc. Logo

The W3C recommended way of targeting mobile devices is for stylesheets to use the media attribute. Unfortunately, this attribute isn't used by either the Android browsers or the iPhone browser. Instead these browser report that their media is of type "screen", this is the standard used by desktop browsers as well.

There is a trick that is possible still using media detection that selectively applies the styles based on the screen width. The following code is an example of two stylesheets. The first should be applied on desktop computers, and the second should be applied on Android and iPhone.

<link href="/inc/mp.css" rel="stylesheet" type="text/css" media="screen and (min-device-width: 481px)"/>
<link href="/inc/mobile.css" rel="stylesheet" type="text/css" media="only screen and (max-device-width: 480px)"/>

Find additional information and tips at http://www.rkblog.rk.edu.pl/w/p/optimizing-websites-iphone-and-android/


comments | permalink

Success with CyanogenMod

(by PeEll)2009.10.23

After the previous failures I had with installing CyanogenMod, I conversed some colleagues who have the same phone, and were considering making the changes. I also revisited the instructions provided on the site. It appears I missed/skipped a step that I misunderstood. The necessary step I missed was to wipe the phone after the nandroid backup, but before the installation of the HTC image, or the CynogenMod ROM.

My initial experience with CyanogenMod was extremely positive, the phone seemed prettier and had tons of new functionality. The one issue that remained was a speed issue. I began uninstalling apps, and things seemed to get much better, despite the fact that CyanogenMod has APP2SD to store applications on an EXT2/3/4 partition on the SD card.

Everything has seemed to work extremely well over the past few weeks as I have used and played with the new rom. I have also upgraded to 4.1.9999 in the past day or two. Today when I attempted to connect to my S9 headset and play music, I have experienced some halting, and the music application crashes. I will wait for the next, allegedly more stable, release from Cyanogen, and hopefully this final issue will be resolved.


comments | permalink

After JesusFreke stopped providing ROMs in August, I have been looking for a good replacement for my Android phone. I recently discovered Cyanogenmod, and after much research and planning, I decided to give the install a try.

My Install Steps

  1. visit http://ryebrye.com/files/flashrec.apk in the browser
  2. Install the app
  3. Open the App
  4. Tap "Backup Recovery Image"
  5. Tap "Flash Cyanogen Recovery 1.4
  6. Power off phone
  7. Start up with Home and Power
  8. Perform Nandroid backup
  9. home+back to reboot
  10. copy 3 files to sd card root
  11. power off phone
  12. start up with home and power
  13. apply any update from zip file
  14. choose: signed-dream
  15. apply any update from zip file
  16. choose: update-cm
  17. go to console.
  18. run "fix_permissions"
  19. run "reboot"
  20. wait a billion years

My Results

error after error after error, phone doesn't work, apps don't work, infinite loop of android errors.

Recovery and Attempt Number 2

  1. Reboot in recovery mode
  2. Select restore more recent backup
  3. Reboot
  4. Woot! Everything seems to work again!
  5. Check Apps2SD settings and move some of the more important apps off of SD Card
  6. Uninstall JF Updater
  7. New Nandroid backup
  8. Attempt #2

comments | permalink

I received an error while attempting to export a signed .apk file using the Android Development SDK in Eclipse. The error was incorrect AVA format. A few quick google searches didn't result in anything useful, but it turned out that this means the format of the data I provided for the certificate contained unacceptable characters. In my case, I had used a comma inside the Organization name. Removing the comma from this name fixed the problem and allowed me to fully export my signed .apk file.


comments | permalink