<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Spring Community Forums - Android</title>
		<link>http://forum.springsource.org/</link>
		<description>Discussions on the Spring for Android project.</description>
		<language>en</language>
		<lastBuildDate>Thu, 20 Jun 2013 09:26:36 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://forum.springsource.org/images/misc/rss.png</url>
			<title>Spring Community Forums - Android</title>
			<link>http://forum.springsource.org/</link>
		</image>
		<item>
			<title>Parsing Error</title>
			<link>http://forum.springsource.org/showthread.php?138888-Parsing-Error&amp;goto=newpost</link>
			<pubDate>Mon, 17 Jun 2013 16:40:57 GMT</pubDate>
			<description>Hello friends, 
 
Currently during devloping my application I just face a critical problem. 
Which is that my application is working properly without...</description>
			<content:encoded><![CDATA[<div>Hello friends,<br />
<br />
Currently during devloping my application I just face a critical problem.<br />
Which is that my application is working properly without any error on Emulator but as I load it in real Android Device and try to install in that device then it showing me some error like &quot; Package Can not be parse &quot;. <br />
<br />
So any one can just suggest me that why this kind of error occuring ? And is there any solution to get ride over this problem ? please help me soon.<br />
<br />
Thanks in advance.</div>

]]></content:encoded>
			<category domain="http://forum.springsource.org/forumdisplay.php?88-Android">Android</category>
			<dc:creator>samwhite2206</dc:creator>
			<guid isPermaLink="true">http://forum.springsource.org/showthread.php?138888-Parsing-Error</guid>
		</item>
		<item>
			<title>Download an image with RestTemplate</title>
			<link>http://forum.springsource.org/showthread.php?138472-Download-an-image-with-RestTemplate&amp;goto=newpost</link>
			<pubDate>Wed, 05 Jun 2013 14:19:17 GMT</pubDate>
			<description>Hi, 
is it possible to download an image from a Spring RESTful web service using RestTemplate? 
 
Normally RestTemplate support this through...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
is it possible to download an image from a Spring RESTful web service using RestTemplate?<br />
<br />
Normally RestTemplate support this through java.awt.BufferedImage (See <a href="http://blog.springsource.org/2009/03/27/rest-in-spring-3-resttemplate/">here</a> in &quot;Retrieving the photos&quot;), but it's not available in Android.<br />
<br />
How can I download an image with RestTemplate? And what's the Spring MVC counterpart?<br />
<br />
Thank you.</div>

]]></content:encoded>
			<category domain="http://forum.springsource.org/forumdisplay.php?88-Android">Android</category>
			<dc:creator>andrea2453</dc:creator>
			<guid isPermaLink="true">http://forum.springsource.org/showthread.php?138472-Download-an-image-with-RestTemplate</guid>
		</item>
		<item>
			<title>app</title>
			<link>http://forum.springsource.org/showthread.php?138411-app&amp;goto=newpost</link>
			<pubDate>Tue, 04 Jun 2013 18:00:15 GMT</pubDate>
			<description><![CDATA[I'm looking for a cool new app, something that has a social component.]]></description>
			<content:encoded><![CDATA[<div>I'm looking for a cool new app, something that has a social component.</div>

]]></content:encoded>
			<category domain="http://forum.springsource.org/forumdisplay.php?88-Android">Android</category>
			<dc:creator>umeed</dc:creator>
			<guid isPermaLink="true">http://forum.springsource.org/showthread.php?138411-app</guid>
		</item>
		<item>
			<title>No validating DocumentBuilder implementation available?</title>
			<link>http://forum.springsource.org/showthread.php?138329-No-validating-DocumentBuilder-implementation-available&amp;goto=newpost</link>
			<pubDate>Mon, 03 Jun 2013 22:17:22 GMT</pubDate>
			<description><![CDATA[Hello,  
I am Bernard a novice at Android spring. 
I try to use a simple program that can print a "Hello world". in my android phone. 
However, the...]]></description>
			<content:encoded><![CDATA[<div>Hello, <br />
I am Bernard a novice at Android spring.<br />
I try to use a simple program that can print a &quot;Hello world&quot;. in my android phone.<br />
However, the part of spring code work well on PC, but fail on the android environment.<br />
<br />
My code is so easy<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&nbsp; &nbsp; &nbsp; &nbsp; ApplicationContext context = <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new FileSystemXmlApplicationContext(&quot;beans-config.xml&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; HelloBean hello = <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (HelloBean) context.getBean(&quot;helloBean&quot;); <br />
&nbsp; &nbsp; &nbsp; &nbsp; System.out.println(hello.getHelloWord());</code><hr />
</div>but, There are some Exception as below:<br />
<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">06-03 13:42:30.530: E/AndroidRuntime(3655): Caused by: javax.xml.parsers.ParserConfigurationException: No validating DocumentBuilder implementation available<br />
06-03 13:42:30.530: E/AndroidRuntime(3655):&nbsp; &nbsp;  at org.apache.harmony.xml.parsers.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:61)<br />
06-03 13:42:30.530: E/AndroidRuntime(3655):&nbsp; &nbsp;  at org.springframework.beans.factory.xml.DefaultDocumentLoader.createDocumentBuilder(DefaultDocumentLoader.java:130)<br />
06-03 13:42:30.530: E/AndroidRuntime(3655):&nbsp; &nbsp;  at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:74)<br />
06-03 13:42:30.530: E/AndroidRuntime(3655):&nbsp; &nbsp;  at org.springframework.beans.factory.xml.XmlBeanDefinitionRead</code><hr />
</div><br />
Do it imply that the JAVAX in android are distinct from Java platform?<br />
I use eclipse IDE and import the the android-spring jar<br />
Should me use Mavon to build my project,? Then, everything will all right, isn't it?<br />
Or,Could someone give me some advise?<br />
Thank you</div>

]]></content:encoded>
			<category domain="http://forum.springsource.org/forumdisplay.php?88-Android">Android</category>
			<dc:creator>a2836572</dc:creator>
			<guid isPermaLink="true">http://forum.springsource.org/showthread.php?138329-No-validating-DocumentBuilder-implementation-available</guid>
		</item>
		<item>
			<title>Upload Multipart JSON and File combination</title>
			<link>http://forum.springsource.org/showthread.php?137955-Upload-Multipart-JSON-and-File-combination&amp;goto=newpost</link>
			<pubDate>Mon, 27 May 2013 08:27:28 GMT</pubDate>
			<description>Good day,  
 
I am currently using RoboSpice with Spring Android framework to perform REST calls. I would like to perfrorm a multi-part form post,...</description>
			<content:encoded><![CDATA[<div>Good day, <br />
<br />
I am currently using RoboSpice with Spring Android framework to perform REST calls. I would like to perfrorm a multi-part form post, with a combination of JSON and files. I build up my REST template and add the necessary converters: <br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">public RestTemplate createRestTemplate() { <br />
&nbsp; &nbsp; &nbsp; &nbsp; RestTemplate restTemplate = new RestTemplate(); <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; restTemplate.getMessageConverters().add(new FormHttpMessageConverter());<br />
&nbsp; &nbsp; &nbsp; &nbsp; restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());<br />
&nbsp; &nbsp; &nbsp; &nbsp; restTemplate.getMessageConverters().add(new StringHttpMessageConverter());<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; return restTemplate;<br />
}</code><hr />
</div>I then perform the post: <br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">public boolean loadDataFromNetwork() throws IOException {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String url = context.getString(R.string.service_url) + &quot;Registration&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HttpHeaders requestHeaders = new HttpHeaders();&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; requestHeaders.setContentType(MediaType.MULTIPART_FORM_DATA); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MultiValueMap&lt;String, Object&gt; map = new LinkedMultiValueMap&lt;String, Object&gt;(); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; map.add(&quot;request&quot;, registration); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (FicaDocument document : registration.documents)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; map.add(document.documentPath, new FileSystemResource(document.documentPath)); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HttpEntity&lt;MultiValueMap&lt;String, Object&gt;&gt; requestEntity = new HttpEntity&lt;MultiValueMap&lt;String, Object&gt;&gt;(map, requestHeaders);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RestTemplate restTemplate = getRestTemplate(); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ResponseEntity&lt;String&gt; responseEntity = restTemplate.postForEntity(url, requestEntity, String.class);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;&nbsp; <br />
}</code><hr />
</div>I now get the following error: <br />
<br />
05-27 09:53:22.380: E//RequestProcessor.java:250(10601): 09:53:22.384 pool-2-thread-1 An exception occured during request network execution :Could not write request: no suitable HttpMessageConverter found for request type [com.flash.flashfica.types.FicaRegistration]<br />
<br />
The registration type looks as follows (using Jackson here): <br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">@JsonSerialize<br />
@JsonIgnoreProperties(ignoreUnknown=true)<br />
@SuppressWarnings(&quot;serial&quot;)<br />
public class FicaRegistration implements Serializable {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; @JsonProperty(&quot;FicaRegistrationId&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; public long ficaRegistrationId; <br />
&nbsp; &nbsp; &nbsp; &nbsp; @JsonProperty(&quot;Name&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; public String name; <br />
&nbsp; &nbsp; &nbsp; &nbsp; @JsonProperty(&quot;Surname&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; public String surname; <br />
&nbsp; &nbsp; &nbsp; &nbsp; @JsonProperty(&quot;Documents&quot;)&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; public ArrayList&lt;FicaDocument&gt; documents;<br />
}</code><hr />
</div><b>I can confirm that the call works fine when I do not use multi-part and just post the registration object in isolation.</b> The JSON in this instance is created perfectly. In fact, I use the same pattern all over my application.<br />
<br />
Essentially, I need to perform a form post that combines JSON and Files in a single call. <br />
<br />
Regards,<br />
Carl</div>

]]></content:encoded>
			<category domain="http://forum.springsource.org/forumdisplay.php?88-Android">Android</category>
			<dc:creator>CarlMeyer</dc:creator>
			<guid isPermaLink="true">http://forum.springsource.org/showthread.php?137955-Upload-Multipart-JSON-and-File-combination</guid>
		</item>
		<item>
			<title>Duplicate File For APK: Error Message</title>
			<link>http://forum.springsource.org/showthread.php?137818-Duplicate-File-For-APK-Error-Message&amp;goto=newpost</link>
			<pubDate>Thu, 23 May 2013 12:25:18 GMT</pubDate>
			<description>Hi, 
 
trying to get spring working in my new android project... getting this error with a brand new project and after adding the .jar files to the...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
trying to get spring working in my new android project... getting this error with a brand new project and after adding the .jar files to the libs directory.<br />
<br />
Error generating final archive: Found duplicate file for APK: stylesheet.css<br />
Origin 1: project\libs\spring-android-core-1.0.1.RELEASE-javadoc.jar<br />
Origin 2: project\android_dev\forcelink_android\libs\spring-android-rest-template-1.0.1.RELEASE-javadoc.jar<br />
<br />
Not sure what the issue is here please help.<br />
<br />
Thanks in advance,</div>

]]></content:encoded>
			<category domain="http://forum.springsource.org/forumdisplay.php?88-Android">Android</category>
			<dc:creator>isi.catch</dc:creator>
			<guid isPermaLink="true">http://forum.springsource.org/showthread.php?137818-Duplicate-File-For-APK-Error-Message</guid>
		</item>
		<item>
			<title>Correct way to receive a binary file</title>
			<link>http://forum.springsource.org/showthread.php?137809-Correct-way-to-receive-a-binary-file&amp;goto=newpost</link>
			<pubDate>Thu, 23 May 2013 05:48:18 GMT</pubDate>
			<description><![CDATA[I'm looking for an example of the correct way to receive a binary file with AndroidSpring (with RoboSpice).  I put together the following, but I'm...]]></description>
			<content:encoded><![CDATA[<div>I'm looking for an example of the correct way to receive a binary file with AndroidSpring (with RoboSpice).  I put together the following, but I'm getting errors that indicate InputStream isn't the right parameterization.  The error complains that there is no message converter to convert to InputStream from text/plain.  The file is a binary sqlite database, so I'm also not clear why Spring thinks it is test/plain.  What do I change to make this work?  Thanks!!!!<br />
<br />
<br />
			class PlantListRequestListener implements RequestListener&lt; InputStream &gt; {<br />
		        @Override<br />
		        public void onRequestFailure( SpiceException e ) {<br />
<br />
		        	showProgress(false);<br />
		        	<br />
		        	Observer.unhandledErrorToast(&quot;Error during request: &quot; + e.getMessage(), DownloadProjectAssetsActivity.this);<br />
					e.printStackTrace();<br />
					<br />
				<br />
		        }<br />
<br />
		        @Override<br />
		        public void onRequestSuccess( InputStream response ) {<br />
		        	FileOutputStream fos;<br />
					try {<br />
						fos = getBaseContext().openFileOutput( project.id+&quot;.plantlist.sqlite&quot; , Context.MODE_PRIVATE);<br />
			            byte[] buffer = new byte[1024];<br />
			            int len1 = 0;<br />
			            while ((len1 = response.read(buffer)) != -1) {<br />
			                fos.write(buffer, 0, len1);<br />
			            }<br />
			            fos.close();<br />
			            response.close();<br />
					} catch (FileNotFoundException e) {<br />
						// TODO Auto-generated catch block<br />
						e.printStackTrace();<br />
					} catch (IOException e) {<br />
						// TODO Auto-generated catch block<br />
						e.printStackTrace();<br />
					}<br />
		        <br />
		        }<br />
		    }<br />
			<br />
			spiceManager.execute( Observer.observerAPI.getBinaryFileRequest(project.  plantlist), null, DurationInMillis.NEVER, new PlantListRequestListener() );</div>

]]></content:encoded>
			<category domain="http://forum.springsource.org/forumdisplay.php?88-Android">Android</category>
			<dc:creator>deepwinter</dc:creator>
			<guid isPermaLink="true">http://forum.springsource.org/showthread.php?137809-Correct-way-to-receive-a-binary-file</guid>
		</item>
	</channel>
</rss>
