<?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/tag/tutorial-2/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>
		<item>
		<title>Develop with Asus Transformer</title>
		<link>https://www.wakeupsun.com/article/develop-asus-transformer/</link>
		<comments>https://www.wakeupsun.com/article/develop-asus-transformer/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 13:48:45 +0000</pubDate>
		<dc:creator>WakeUp Sun</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[asus transformer]]></category>
		<category><![CDATA[develop]]></category>
		<category><![CDATA[driver]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://www.wakeupsun.com/?p=56</guid>
		<description><![CDATA[Tutorial Asus Transformer development You have just buy the android tablet Asus Transformer and you are wondering how to connect it on your PC to develop your applications? Just read this following tutorial. STEPS Don&#8217;t connect your tablet and your &#8230; <a href="https://www.wakeupsun.com/article/develop-asus-transformer/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2>Tutorial Asus Transformer development</h2>
<p>You have just buy the android tablet Asus Transformer and you are wondering how to connect it on your PC to develop your applications? Just read this following tutorial.</p>
<p><a title="Develop with Asus Transformer" href="http://www.wakeupsun.com/article/develop-asus-transformer/"><img class="size-medium wp-image-57 alignleft" title="asus-transformer" src="http://www.wakeupsun.com/wp-content/uploads/2012/01/asus-transformer-300x300.jpg" alt="asus-transformer" width="300" height="300" /></a></p>
<h3><span id="more-56"></span>STEPS</h3>
<ol>
<li>Don&#8217;t connect your tablet and your PC!</li>
<li>USB driver installation on the PC: get the USB driver from ASUS on its site : <a title="Asus driver site" href="http://support.asus.com/download/ModelList.aspx?keyword=transformer&amp;type=1" target="_blank">http://support.asus.com/download/ModelList.aspx?keyword=transformer&amp;type=1</a></li>
<li>Once you get the zip, unzip it where you want on your computer.</li>
<li>Back to your Asus tablet : go in Settings, then Applications and Development (Settings&gt;Applications&gt;Development). Check USB debugging.</li>
<li>Now, you can connect your Asus Transformer on your computer.</li>
<li>Windows asks you about the driver. Help it to find the asus driver repertory : the repertory you unzip at the step 3.</li>
<li>Windows will ask for 2 drivers. Don&#8217;t worry, the drivers are in the driver zip you have downloaded. Just help windows to find the driver by select the repertory.</li>
<li>Launch eclipse.</li>
<li>Run your application in manual mode:<img class="aligncenter size-full wp-image-59" title="run configurations" src="http://www.wakeupsun.com/wp-content/uploads/2012/01/run-configurations1.png" alt="run configurations eclipse" width="697" height="345" /><a href="http://www.wakeupsun.com/wp-content/uploads/2012/01/Android-device-chooser.png"><img class="aligncenter size-full wp-image-60" title="Android device chooser" src="http://www.wakeupsun.com/wp-content/uploads/2012/01/Android-device-chooser.png" alt="Device chooser in eclipse" width="625" height="449" /></a></li>
<li>Enjoy!</li>
</ol>
<p>&nbsp;</p>
<p>Just an help if you have connected your tablet before getting the drivers : go in the Windows device manager and right click on the <img class="alignnone size-full wp-image-61" title="unknown device" src="http://www.wakeupsun.com/wp-content/uploads/2012/01/unknown-device.png" alt="unknown device usb driver" width="35" height="36" /> to re-install the driver.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://www.wakeupsun.com/article/develop-asus-transformer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
