Categories

Archives

Play MediaPlayer with Authentication on Android

I was back to the Android lang with the free Nexus One from Google, and had a project in mind that involves MediaPlayer and for which here is how i did it.
 Java |  copy code |? 01private void playAudio(String mediaUrl) {02 try {03 URLConnection cn = new URL(mediaUrl).openConnection();04 [...]

Acer A1 in Hong Kong (Fifth Android phone in HK)

Acer A1 is the 5th android phone here in Hong Kong, with HTC Magic, HTC Hero, Samsung Galaxy and HTC sense. The first network carrier is CSL and the promotion page is http://1010.hkcsl.com/jsp/whats_hot/news_and_promotions/acer_liquid.jsp?language=eng.
Here in HK HTC Hero is making some noise, but network carriers has a huge problem of not updating their customer to [...]

Transaction on CakePHP when using Oracle


Warning: array_keys() [function.array-keys]: The first argument should be an array in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3643

Warning: Invalid argument supplied for foreach() in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3643

Warning: array_keys() [function.array-keys]: The first argument should be an array in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3651

Warning: Invalid argument supplied for foreach() in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3651

Warning: array_keys() [function.array-keys]: The first argument should be an array in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3654

Warning: Invalid argument supplied for foreach() in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3654

Warning: array_keys() [function.array-keys]: The first argument should be an array in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3643

Warning: Invalid argument supplied for foreach() in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3643

Warning: array_keys() [function.array-keys]: The first argument should be an array in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3651

Warning: Invalid argument supplied for foreach() in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3651

Warning: array_keys() [function.array-keys]: The first argument should be an array in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3654

Warning: Invalid argument supplied for foreach() in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3654

Warning: array_keys() [function.array-keys]: The first argument should be an array in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 1925

Warning: Invalid argument supplied for foreach() in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 1925

Warning: Invalid argument supplied for foreach() in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 2290

Warning: implode() [function.implode]: Argument must be an array in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3242

Warning: array_keys() [function.array-keys]: The first argument should be an array in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3265

Warning: Invalid argument supplied for foreach() in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3265

Warning: Invalid argument supplied for foreach() in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3306

Warning: array_keys() [function.array-keys]: The first argument should be an array in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3357

Warning: Invalid argument supplied for foreach() in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3357

Warning: array_keys() [function.array-keys]: The first argument should be an array in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3502

Warning: Invalid argument supplied for foreach() in /home3/monmonja/public_html/almondmendoza/wp-content/plugins/devformatter/geshi/geshi.php on line 3502

Following my post on http://monmonja.com/blog/2008/07/transaction-on-cakephp-12/ where i use CakePHP and MySQL to do transaction, now i’m using oracle and $this->Model->begin() is not working and the fix for that is
  |  copy code |? 1$this->Model->begin();2$returnQuery = $this->Model->getDataSource()->query($query);3if($returnQuery !== false){4 $this->Model->getDataSource()->commit();5}else{6 $this->Model->getDataSource()->rollback();7}
Hope this helps

Chrome OS and why its here

I lot of people over the weeks had been hyping around Google’s new OS, Chrome OS, while a lot would say that its not a Windows killer the question remains does it need to be one? Here are my opinion on why Google would release Chrome OS when Android is winning over hardware manufacturers.
1) [...]

TTS Extension on Chrome

Firstly this a prove of concept that TTS can be pure web based.
When i was starting with Android the first time I did was Talking Caller that involves TTS, now history repeats itself, while this is not my first chrome extension (Twitter Search Header Fix) this is the first one that has more than 3 [...]

Calling private methods in Android

First and foremost, I won’t be held responsible for the content of the article if applied to your apps, and if it results in any kinds of misfunctions and such. Use it at your own risk and use it when there’s are no other way that is available in android.
In java, there is a set [...]

Releasing SpeakUp Android App Source

After not making it through ADC2, me and my friends decided to release the source code of SpeakUp, unlike previous projects like Monmonja Battery and Talking Caller, we are releasing it under GPLv3. We believe this would be better to keep this project and other projects that will use the source base to be in [...]