Thursday, April 18, 2013

Peeper Flash plugin in Chromium on Linux (Ubuntu)

Let's say you installed Chromium into your $HOME folder and discovered that there is no Flash plugin.
The solution is simple.
Step 1: Get Google Flash Plugin for Linux. See reference to other post at the end.
Step 2: Run chromium with command line switch "--ppapi-flash-path"
Example:

$HOME/chrome-linux/chrome --ppapi-flash-path='$HOME/chrome-linux/libflashplayer.so'

I borrowed that idea from this post, so all credits should go there. You can find more details there as well.

-= Oleg =-

Thursday, April 4, 2013

Mini PC - MK809 - USB Driver not recognised by ADB

It took me a while to figure out how install USB driver for MK 809, but I did it. And I did it several times using different methods because I couldn't make adb to recognise it. Finally, I came across the post that suggested to add driver vendor ID  to the "C:\Users\<your username>\.android\adb_usb.ini" file. I did it and it WORKED!!! Here is it looks:


# ANDROID 3RD PARTY USB VENDOR ID LIST -- DO NOT EDIT.
# USE 'android update adb' TO GENERATE.
# 1 USB VENDOR ID PER LINE.

0x2207 MiniPC driver

I'm so happy I can now debug my application on Mini PC from Eclipse. The only sad part is that my application requires WIFI and what I discovered is that when you check "USB / Connect to PC" in Android settings, then WIFI gets disabled. This seems like a limitation of this tiny device :(

-= Oleg =-

Tuesday, April 2, 2013

How to fix "Android Fix: Eclipse is loading framework information and the layout library from the SDK folder. main.xml will refresh automatically once the process is finished."

I started seeing this error after I installed additional SDK versions. I tried the following:
  • Create a new workspace as suggested in this form post. This didn't make any difference.
  • Looked if I had any older versions of SDK jar files as outlines in this blog post. It appeared that I didn't have any older jar files installed.
  • On a layout designer page, change the Android version used for rendering the layout (see top right corner of the designer window). That didn't help either.
  • Reinstall SDK as suggested here. That actually worked, except that I had to do it slightly differently.
To recap, reinstalling SDK solved the problem for me. BTW, I'm on Android SDK version 4.2.2 and I'm using Eclipse IDE. Here is how to reinstall SDK in Eclipse:
  • open Android SDK Manager. There is an icon in toolbar if you have Java perspective open.
  • Close Eclipse (not sure is this is needed, but that's what I did)
  • Check "SDK Platform" from the latest installed SDK (Android 4.2.2 in my case). 
  • Click "Delete packages". Wait for it to finish,
  • Check "SDK Platform" and all other items that were uninstalled in the previous step.
  • Click Install packages.
  • Start Eclipse.
Good luck!
Oleg.