Thursday, August 11, 2011

Install Awesome Window Manager (WM) in Ubuntu 10.10

Ubuntu 10.10 uses Gnome Desktop Environment (DE) version 2.32.0. We can also use Awesome Window Manager (WM) on it. To install awesome ..
1. Type :: sudo apt-get install awesome3

After successful Installation you have to make following changes using terminal
gconftool-2 --type bool --set /apps/nautilus/preferences/show_desktop    False
# Disable buggy Nautilus desktop thing
gconftool-2 --type string --set /desktop/gnome/applications/window_manager/current    /usr/bin/awesome
# Set awesome as your WM of choice

-If you cannot locate /usr/share/applications/awesome.desktop then add ~/.local/share/applications/awesome.desktop

2. In awesome.desktop file enter the following information
[Desktop Entry]
Version=1.0
Type=Application
Name=Awesome
Comment=The awesome launcher!
TryExec=awesome
Exec=awesome

Then restart your computer. It's done now.

While logging in the window .. Please choose awesome from panel below.

Then Awesome Window Manager is shown. Then you can explore Awesome WM :)






Wednesday, July 6, 2011

"Application is not installed on your phone " Problem while launching android app

Problem :: While launching the android app in emulator, when clicking the app icon to run the application in emulator, I couldnot run the app. The pop up comes stating "Application is not installed on your phone".

Cause :: This problem occurs if u have the duplicate Activity in the App Manifest file. For eg. The SplashScreenActivity has duplicate entry in Manifest file.

Solution :: Make sure u have declared single Activity class in Manifest file.

:)

Wednesday, March 16, 2011

Add external jar while building with ant tool

Just add binaryLibraries in <build> tag with jars separated by ; symbol.

Tuesday, February 15, 2011

Obfuscation problem while deploying J2mePolish App Jar in Web Application

To decrease the size of mobile application in J2ME Polish, it uses obfuscator(Proguard). It renames all the generated classes in it's own way. While deploying the same jar in web application, we cannot use the class name of app.

Eg. We use UseDTO class in J2ME Polish, then it is renamed as aa.class by Proguard.

To overcome the solution, use 'keep' option of obfuscator in build.xml file of J2ME Polish app.

<obfuscator name="Proguard" unless="test">
    <keep class="com.abc.UseDTO">
</obfuscator>


What the above statement does is obfuscate all the class except UserDTO.

Now you can use UserDTO class in web application or any other project.

Thanks