User Tools

Site Tools


android_snippets

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
android_snippets [2013/09/19 14:54]
mihael created
android_snippets [2014/01/07 13:45] (current)
mihael [Hide keyboard on activity start up]
Line 88: Line 88:
  
 ==== Hide keyboard on activity start up ==== ==== Hide keyboard on activity start up ====
-Normally if the an editable view is visible and has the focus on starting the activity the software keyboard will be shown. Regardless if the user wants to enter something or not. This behaviour can be changed with an entry in the AndroidManifest.xml file.+Normally if an editable view is visible and has the focus on starting ​of the activity the software keyboard will be shown. Regardless if the user wants to enter something or not. This behaviour can be changed with an entry in the AndroidManifest.xml file.
  
 <sxh xml> <sxh xml>
Line 268: Line 268:
  
 ==== REST with POJOs ==== ==== REST with POJOs ====
-Most of the time when making a REST call either the serialized representation of a Java Object is passed or received by the client. To not have to fiddle with extracting the information from the raw response or concating some request text a framework can be used for doing this, [http://​static.springsource.org/​spring-android/​docs/​current/​reference/​html/​ RestTemplate] from SpringSource and [http://​simple.sourceforge.net/​ Simple XML Framework] hosted on Sourceforge.net.+Most of the time when making a REST call either the serialized representation of a Java Object is passed or received by the client. To not have to fiddle with extracting the information from the raw response or concating some request text a framework can be used for doing this, [[http://​static.springsource.org/​spring-android/​docs/​current/​reference/​html/​ RestTemplate]] from SpringSource and [[http://​simple.sourceforge.net/​ Simple XML Framework]] hosted on Sourceforge.net.
  
 <sxh java> <sxh java>
Line 294: Line 294:
  
 <​note>​If not all attributes of a Java object are passed to and from the web service the attribute ''​strict=false''​ should be added to the ''​@Root''​ annotation.</​note>​ <​note>​If not all attributes of a Java object are passed to and from the web service the attribute ''​strict=false''​ should be added to the ''​@Root''​ annotation.</​note>​
 +
 +{{tag>​android}}
android_snippets.1379602463.txt.gz ยท Last modified: 2013/09/19 14:54 by mihael