-->

Google API getFromLocationName throws IOException

8
Nov
2011
0

If you are using the Google GPS API for Android you could encounter an IOException for “Service Not Available” , calling the method getFromLocationName() of the GeoCoder class.

This method should be able, given a location name, to retrieve an array of Address objects related to the specified string.

Sometimes the mehod works pretty good, but others the exception is thrown.

The Solution

Here there is a long discussion about the issue:

http://code.google.com/p/android/issues/detail?id=8816

On comment 21 there the  workaround calling the web api directly and retrieving data [...]

:, Android, Java continua..

How to Change the Android ListView divider color

8
Nov
2011
0

If you need to change the divider colo in an android ListView view, all you need to do is to add the following code inside the xml layout file

 <ListView        
android:id="@+id/android:list"        
android:layout_width="wrap_content"        
android:layout_height="wrap_content"        
android:divider="#FFCC00"            
[...]

:, Android, Java continua..

How to install JSON on Linux server

4
Nov
2011
0

If you would use JSON to get data from your Linux Server, but you encounter this error:

Error: PHP Fatal error:
Call to undefined function json_encode()

The problem is that when PHP 5.2 version supports natively json functions ( json_encode() and json_decode() ), the previous version PHP 5.0 doesn’t support JSON.

Solution 1: Install JSON on PHP 5.0

# yum install php-pear gcc
# pecl install json
# cd /etc/php.d
# echo "extension=json.so" >> json.ini
# /etc/init.d/httpd restart

Solution 2: Upgrade your PHP version to 5.2

:, PHP continua..

Send Translated SMS via Skype with STranslator

22
Jul
2011
0

If you want to send your SMS in many different languages in a simple, fast and reliable matter, what you need is STranslator app.

One of STranslator’s key features is the capability t0 send translated SMS via Skype in the language that you want!

After selecting the destination language, when you write an SMS in YOUR language, a preview of the translated SMS is immediately shown.

STranslator is available for Windows and Ubuntu and can be easily downloaded and installed from the official website: http://www.stranslator.org

:, , , STranslator, Ubuntu Linux, Windows continua..

Java Preferences on Mac OS

14
Jul
2011
0

While on Windows the Java Preferences keys are stored inside the system registry ( regedit ), under MAC OS it is far more simple to get access to that info.

The preferences files generated by the Preferences API are named com.apple.java.util.prefs.

The user’s preferences file is stored in their home directory (~/Library/Preferences/).

 The system preferences are stored in /Library/Preferences/ and are only persisted to disk if the user is an administrator.

 

:, Java, Mac continua..

Cerchi qualcosa?

Usa questo form per cercare argomenti in questo blog:

Non riesci a trovare quello che cerchi? Lascia un commento in un post oppure contattami per risolvere il problema!

@WindowsAzure @MichaelCollier really great post!
Puoi trovarmi su Twitter come @superbre