If you ever come up with the error using ChooserActivity with the Android emulator, you probably don't need to be worried.
It's basically because you only have a single choice to start the intent (e.g. send a message, choose a audio file, choose a picture, etc., in the emulator).
There is just no way to show you the option dialog, and the exception raised. Read the explanation in the following:
http://stackoverflow.com/questions/11308260/chooser-activity-leak-android
Friday, September 21, 2012
Tuesday, September 18, 2012
Android 2.2 SDK with strings.xml having multiple %s
When building the SearchableDictionary examples using 2.2 SDK, the strings.xml contains the following which fails the compilation:
<plurals name="search_results">
<item quantity="one">%d result for \"%s\": </item>
<item quantity="other">%d results for \"%s\": </item>
</plurals>
We need to change them to the following in order make it compiled:
<plurals name="search_results">
<item quantity="one">%1$d result for \"%2$s\": </item>
<item quantity="other">%1$d results for \"%2$s\": </item>
</plurals>
Reference:
Tuesday, September 11, 2012
Quick notes on Dojo 1.8
Just a quick notes on dojo 1.8. For example, if I want to use the Color object in dojo. I will:
var Color;
require(["dojo/_base/Color"], function(c) {
Color = c;
});
Then I can use the variable Color after the initialization is done. Am I correct? Should it be used in another way? :-)
var Color;
require(["dojo/_base/Color"], function(c) {
Color = c;
});
Then I can use the variable Color after the initialization is done. Am I correct? Should it be used in another way? :-)
Subscribe to:
Posts (Atom)
Sync multiple git repo at once
Use the following command in Linux will do the job: ls -d RepoNames* | xargs -I{} git -C {} pull
-
When Office2003 couldn't find file SKU011.CAB: regedit -> [HKEY_LOCAL_MACHINE] -> [SOFTWARE] -> [Microsoft] -> [Office] -&...
-
The resolution can be changed by editing the BlueStack's registry: HKLM\SOFTWARE\BlueStacks\Guests\Android\FrameBuffer\0\Height and ...
-
To count the number lines of files / stdout in Linux, we uses "wc -l" to achieve. In Windows, we use the following instead: find...