<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Wake Up Sun &#187; Tutorial</title>
	<atom:link href="http://www.wakeupsun.com/category/tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wakeupsun.com</link>
	<description>Developer - mobile applications and games - Android and iOS</description>
	<lastBuildDate>Fri, 14 Feb 2014 10:14:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Android Tips: cut textview to see &#8216;&#8230;&#8217; (ellipsis)</title>
		<link>https://www.wakeupsun.com/tutorial/android-tips-cut-textview-to-see-ellipsis/</link>
		<comments>https://www.wakeupsun.com/tutorial/android-tips-cut-textview-to-see-ellipsis/#comments</comments>
		<pubDate>Thu, 03 Oct 2013 16:16:54 +0000</pubDate>
		<dc:creator>WakeUp Sun</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[android tips]]></category>
		<category><![CDATA[cut]]></category>
		<category><![CDATA[develop]]></category>
		<category><![CDATA[ellipsis]]></category>
		<category><![CDATA[textview]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[wakeupsun]]></category>

		<guid isPermaLink="false">http://www.wakeupsun.com/?p=230</guid>
		<description><![CDATA[Android tips: cut textview and add ellipsis Single line Add android:ellipsize=&#8221;end&#8221; in the properties of the texview. If you want your text on one line, add android:singleLine=&#8221;true&#8221;. Example: &#60;TextView android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Text to cut because it is too long" android:ellipsize="end" &#8230; <a href="https://www.wakeupsun.com/tutorial/android-tips-cut-textview-to-see-ellipsis/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h1>Android tips: cut textview and add ellipsis</h1>
<h2>Single line</h2>
<p>Add <strong>android:ellipsize=&#8221;end&#8221;</strong> in the properties of the texview.</p>
<p>If you want your text on one line, add <strong>android:singleLine=&#8221;true&#8221;</strong>.</p>
<p>Example:</p>
<pre>&lt;TextView
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:text="Text to cut because it is too long"
  android:ellipsize="end"
  android:singleLine="true"
/&gt;</pre>
<h2>Multi lines</h2>
<p>If your textview will be on 2 lines for example, add<span id="more-230"></span> android:maxLines=&#8221;2&#8243; in your textview properties.</p>
<p>Example:</p>
<pre>&lt;TextView
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:text="Text to cut because it is too long but I want it on 2 lines"
  android:ellipsize="end"
  android:maxLines="2"
/&gt;</pre>
<p>I hope it helps,</p>
<p>WakeUp Sun</p>
]]></content:encoded>
			<wfw:commentRss>https://www.wakeupsun.com/tutorial/android-tips-cut-textview-to-see-ellipsis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solution for the in-app billing tutorial from Google (Android)</title>
		<link>https://www.wakeupsun.com/tutorial/solution-for-the-in-app-billing-tutorial-from-google-android/</link>
		<comments>https://www.wakeupsun.com/tutorial/solution-for-the-in-app-billing-tutorial-from-google-android/#comments</comments>
		<pubDate>Tue, 15 Jan 2013 14:14:59 +0000</pubDate>
		<dc:creator>WakeUp Sun</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[IInAppBillingService]]></category>
		<category><![CDATA[in app billing]]></category>
		<category><![CDATA[solution]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.wakeupsun.com/?p=157</guid>
		<description><![CDATA[Solution for the IInAppBillingService.aidl error in eclipse. If you try to add the Google library android for the in-app billing, you will have this error: interface IInAppBillingService should be declared in a file called com\android\vending\billing\IInAppBillingService.aidl. We will see how to solve &#8230; <a href="https://www.wakeupsun.com/tutorial/solution-for-the-in-app-billing-tutorial-from-google-android/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h1>Solution for the IInAppBillingService.aidl error in eclipse.</h1>
<p>If you try to add the Google library android for the in-app billing, you will have this error: <code>interface IInAppBillingService should be declared in a file called com\android\vending\billing\IInAppBillingService.aidl.</code></p>
<p>We will see how to solve this issue.<span id="more-157"></span></p>
<h2>The error</h2>
<p>In its tutorial (<a title="http://developer.android.com/training/in-app-billing/preparing-iab-app.html#GetSample" href="http://developer.android.com/training/in-app-billing/preparing-iab-app.html#GetSample" target="_blank">http://developer.android.com/training/in-app-billing/preparing-iab-app.html#GetSample</a>), Google explains :</p>
<p><em>To add the In-app Billing Version 3 library to your existing In-app Billing project:</em></p>
<p><em>Copy the <code>IInAppBillingService.aidl</code>file to your Android project.</em></p>
<ul>
<li><em>If you are using Eclipse: Import the <code>IInAppBillingService.aidl</code> file into your <code>/src</code> directory.</em></li>
</ul>
<div id="attachment_158" class="wp-caption alignleft" style="width: 445px"><a href="http://www.wakeupsun.com/wp-content/uploads/2013/01/project_2_inapp_tuto_google_error.png"><img class=" wp-image-158 " title="In app billing library error" src="http://www.wakeupsun.com/wp-content/uploads/2013/01/project_2_inapp_tuto_google_error-1024x447.png" alt="Error when IInAppBillingService.aidl added" width="435" height="190" /></a><p class="wp-caption-text">Error on IInAppBillingService.aidl</p></div>
<p>That is not exactly true. If you do that, you will have this error: <code>IInAppBillingService should be declared in a file called com\android\vending\billing\IInAppBillingService.aidl.</code></p>
<h2>The solution</h2>
<ul>
<li>Right click on src and make a new package: com.android.vending.billing.</li>
</ul>
<div id="attachment_159" class="wp-caption alignleft" style="width: 310px"><a href="http://www.wakeupsun.com/wp-content/uploads/2013/01/project_3_inapp_tuto_google_solution.png"><img class="size-medium wp-image-159" title="Eclipse new package" src="http://www.wakeupsun.com/wp-content/uploads/2013/01/project_3_inapp_tuto_google_solution-300x122.png" alt="Eclipse new package" width="300" height="122" /></a><p class="wp-caption-text">Eclipse new package</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_160" class="wp-caption alignleft" style="width: 310px"><a href="http://www.wakeupsun.com/wp-content/uploads/2013/01/project_4_inapp_tuto_google_solution.png"><img class="size-medium wp-image-160" title="New package com.android.vending.billing" src="http://www.wakeupsun.com/wp-content/uploads/2013/01/project_4_inapp_tuto_google_solution-300x300.png" alt="New package com.android.vending.billing" width="300" height="300" /></a><p class="wp-caption-text">New package com.android.vending.billing</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<ul>
<li>Move the class IInAppBillingService.aidl in this new package (you can do that with the mouse).</li>
</ul>
<div id="attachment_161" class="wp-caption alignleft" style="width: 278px"><a href="http://www.wakeupsun.com/wp-content/uploads/2013/01/project_5_inapp_tuto_google_solution.png"><img class="size-full wp-image-161" title="Move InAppBillingService.aidl" src="http://www.wakeupsun.com/wp-content/uploads/2013/01/project_5_inapp_tuto_google_solution.png" alt="Move InAppBillingService.aidl" width="268" height="202" /></a><p class="wp-caption-text">Move InAppBillingService.aidl in the new package</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<ul>
<li>Result: you can build your project (if you are not on built automatically). You should see:</li>
</ul>
<div id="attachment_162" class="wp-caption alignleft" style="width: 274px"><a href="http://www.wakeupsun.com/wp-content/uploads/2013/01/project_6_inapp_tuto_google_solution.png"><img class="size-full wp-image-162" title="In app billing solution" src="http://www.wakeupsun.com/wp-content/uploads/2013/01/project_6_inapp_tuto_google_solution.png" alt="In app billing solution" width="264" height="292" /></a><p class="wp-caption-text">In app billing solution</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>You can discover my android applications on my apps page: <a title="Applications" href="http://www.wakeupsun.com/applications/">http://www.wakeupsun.com/applications/</a></p>
<p>Wakeupsun</p>
]]></content:encoded>
			<wfw:commentRss>https://www.wakeupsun.com/tutorial/solution-for-the-in-app-billing-tutorial-from-google-android/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
