Category Archives: Devel

How to add a widget on the Home screen

[2013/11/17 Updated] Widget is disabled when you move the app to the SD card.

———————

Apps have no control on adding/removing widgets on the home screen.

The reason is simple. If any app can add a widget on the home screen programmatically, the home screen can easily be a mess.

So, the user should add the widget by himself, and it is simple.

1. Open App Drawer
1. Open App Drawer
2. Go to Widget list, select the widget and hold it on until the home screen appears
2. Go to Widget list, select the widget and hold it on until the home screen appears
3. Place the widget on the home screen
3. Place the widget on the home screen

 

Alternative way to add a widget on home screen.

Add Widget
1. There are several ways to add a widget and it could be slightly different by which Home screen launcher you are using. Tap on a blank space on the home screen and hold your finger there (long press) until the menu appears. Also, there could be a ‘+’ button or press the ‘Menu’ button and select ‘Add’ menu.

 

 

Find WIdget
2. Go to the ‘Widgets’ menu and find the widget you want to add from the list. You can layout it on the home screen.

 

 

Widget done
3. Finish!

 

Unable to build: Could not find dx.jar file

My Android development environment(Eclipse) start making an build error like this from one day:

Unable to build: Could not find dx.jar file

I found solutions like uninstall and reinstalling ‘Android SDK Platform-tools’ and performing a clean build, but it didn’t work.

Also, when I tried to install Android API 17, this kind of error occured:

'Installing this package also requires installing: - Missing SDK Platform Android, API 17'

By googling, someone solved this problem by performing ‘Clear Cache’ from the Android SDK Manager preferences, and reloading the packages.

After that, I could install updated Android SDK Platform-tools, and then the problem solved.