<?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>Travis Hill &#8211; Xojo Programming Blog</title>
	<atom:link href="https://blog.xojo.com/author/travis/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.xojo.com</link>
	<description>Blog about the Xojo programming language and IDE</description>
	<lastBuildDate>Wed, 01 May 2024 16:37:36 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.11</generator>
	<item>
		<title>What does Beta mean for Android in 2023r2?</title>
		<link>https://blog.xojo.com/2023/08/09/what-does-beta-mean-for-android-in-2023r2/</link>
		
		<dc:creator><![CDATA[Travis Hill]]></dc:creator>
		<pubDate>Wed, 09 Aug 2023 13:30:00 +0000</pubDate>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Beta List]]></category>
		<category><![CDATA[Multi-Platform Development]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Xojo Programming Language]]></category>
		<guid isPermaLink="false">https://blog.xojo.com/?p=11719</guid>

					<description><![CDATA[We're calling Android support in Xojo 2023r2 "Beta".  Android is a unique platform and has required a large number of brand new parts of Xojo to bring it to you in a way that follows recommended platform guidelines.]]></description>
										<content:encoded><![CDATA[
<p>We&#8217;re calling Android support in <a href="https://xojo.com/download/">Xojo 2023r2</a> &#8220;Beta&#8221;. We&#8217;ve used this term before, but why are we using it now?</p>



<p>Android is a unique platform and required a large number of brand new parts of Xojo to bring it to you in a way that follows recommended platform guidelines. These include a new:</p>



<ul class="wp-block-list">
<li>Compilation process</li>



<li>Debugging bridge</li>



<li>Framework</li>
</ul>



<p>All of these pieces are important to make Android support work, and we&#8217;ve worked hard to make developing for Android as easy as possible. But these pieces are all brand new, at the same time, in the same release- so we want to be up-front that you may see some things you haven&#8217;t seen before with other targets.</p>



<p>When you run an Android project with debugging, for now you&#8217;ll see a small &#8220;Android Debugging Bridge&#8221; window while you do so- you don&#8217;t need to interact with it at all, but if you have debugging problems and file an Issue we may ask you some things about what it says.</p>



<p>It is possible you may run into an error message that you&#8217;ve encountered an internal Android compilation error- if you do, just follow the instructions and create an Issue with your project attached. We&#8217;ll do our best to help you workaround the issue and get it fixed in a future release.</p>



<p>We&#8217;ll drop the &#8220;Beta&#8221; label on Android support once we feel this heads-up is no longer necessary for most users.</p>



<p>With all of this said, we&#8217;ve already successfully put Android apps built with Xojo up in the Play Store, and so have many of our pre-release testers! There&#8217;s so much you can do now with Android support in 2023r2, and we&#8217;re excited to see what you create!  More Xojo Blog <a href="https://blog.xojo.com/category/cross-platform/android/">posts</a> demonstrating what you can do with Xojo Android.</p>



<p><em>Travis got started with computers as a kid with a TI-99/4A. He moved on to the original Macintosh when it was released and has been programming ever since. He&#8217;s been using Xojo in various ways since v3 back in 2001. When not programming he&#8217;s usually found playing around with VR, music, games, or watching a good show.</em></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Android Declares</title>
		<link>https://blog.xojo.com/2023/08/09/android-declares/</link>
		
		<dc:creator><![CDATA[Travis Hill]]></dc:creator>
		<pubDate>Wed, 09 Aug 2023 13:30:00 +0000</pubDate>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Learning]]></category>
		<category><![CDATA[Declares]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Xojo Programming Language]]></category>
		<guid isPermaLink="false">https://blog.xojo.com/?p=11870</guid>

					<description><![CDATA[Using and writing declares for Android is very similar to other platforms. The syntax is mostly the same, but we've made some additions to make Declares that change Controls easier. Let's walk through a couple of easy-to-understand Declares to show you how they're made.]]></description>
										<content:encoded><![CDATA[
<p>Using and writing declares for Android is very similar to other platforms. The syntax is mostly the same, but we&#8217;ve made some additions to make Declares that change Controls easier. Let&#8217;s walk through a couple of easy-to-understand Declares to show you how they&#8217;re made.</p>



<span id="more-11870"></span>



<p>First, let&#8217;s just get the Android version number, the kind a user might see if they were looking for what version of Android they were running on. As with any Declare, we first look up the call in the platform documentation. For Android, that is typically here: <a rel="noreferrer noopener" href="https://developer.android.com/reference/" target="_blank">https://developer.android.com/reference/</a></p>



<p>After searching the platform docs, we find out how to get the version here: <a href="https://developer.android.com/reference/kotlin/android/os/Build.VERSION" target="_blank" rel="noreferrer noopener">https://developer.android.com/reference/kotlin/android/os/Build.VERSION</a></p>



<p>The &#8220;Lib&#8221; section of the Declare will contain the &#8220;path&#8221; up to the function/property that we want to get the value. We get this from that page as:</p>



<p><code>android.os.Build.VERSION</code></p>



<p>The actual property we want is called &#8220;RELEASE&#8221; (&#8220;The user-visible version string.&#8221;) and since we want our Declare function to be called something different, we&#8217;ll set that as an alias.</p>



<p>In summary, the full Xojo Declare to get the Android version would be:</p>



<p><code>Declare Function AndroidVersion Lib "android.os.Build.VERSION" Alias "RELEASE" As CString</code></p>



<p>We use &#8220;CString&#8221; for any String coming from the Android platform for both ease of use and Declare compatibility &#8211; even though the String type from the platform may vary internally, you do not need to worry about that.</p>



<p>You can find this Declare in the Examples section of Xojo in the Platform>.Android>Declare>Declare project.</p>



<h3 class="wp-block-heading">Object Declares</h3>



<p>With Android, there is a special new Declare format that allows us to make calls directly against certain objects and controls. This comes in handy if we want to easily make a Declare that changes the property of a control. As an example, let&#8217;s set the background color of a MobileButton.</p>



<p>The typical way to use this new type of Object Declare is by adding an Extends method to a Module. Since we want to extend MobileButton with the ability to change its color, we&#8217;ll put a method on a Module called &#8220;SetBackColor&#8221; with the following parameters: &#8220;Extends ctrl As MobileButton, c As Color&#8221;</p>



<p>We look through the platform docs again, and learn that in Android, a Button is considered a View and thus has the following method: <a href="https://developer.android.com/reference/kotlin/android/view/View#setBackgroundColor(kotlin.Int)" target="_blank" rel="noreferrer noopener">https://developer.android.com/reference/kotlin/android/view/View#setBackgroundColor(kotlin.Int)</a></p>



<p>We don&#8217;t need an Alias this time since the extension method is what we&#8217;ll call in Xojo code. What we&#8217;ll do instead is make the Declare like this:</p>



<p><code>Declare Sub setBackgroundColor Lib "Object:ctrl:MobileButton" (myColor As Integer)</code></p>



<p>Breaking this down, we&#8217;re calling the setBackgroundColor function. The Lib denotes this new type of Object declare: an Object, separated by a colon, the Xojo name of the object (in this case, our &#8220;ctrl&#8221; parameter), followed by another colon, and the Xojo type of the object.</p>



<p>The next and final line of our extension method will actually call the declared function:</p>



<p><code>setBackgroundColor(c.ToInteger)</code></p>



<p>You can see this Declare and its helper method in action from the Examples section of Xojo in the Platforms>Android>Declare>ButtonBackgroundColor project.</p>



<p>We&#8217;ve already seen users using Declares to extend their Android projects during our pre-release phase, and some are planning to make Declare projects available to everyone in the future to make using them even easier!</p>



<p><em>Travis got started with computers as a kid with a TI-99/4A. He moved on to the original Macintosh when it was released and has been programming ever since. He&#8217;s been using Xojo in various ways since v3 back in 2001. When not programming he&#8217;s usually found playing around with VR, music, games, or watching a good show.</em></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>#1 on the Xojo Roadmap: Android</title>
		<link>https://blog.xojo.com/2021/01/21/1-on-the-xojo-roadmap-android/</link>
		
		<dc:creator><![CDATA[Travis Hill]]></dc:creator>
		<pubDate>Thu, 21 Jan 2021 20:37:16 +0000</pubDate>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Roadmap]]></category>
		<category><![CDATA[Xojo API 2.0]]></category>
		<category><![CDATA[Xojo Programming Language]]></category>
		<guid isPermaLink="false">https://blog.xojo.com/?p=8017</guid>

					<description><![CDATA[We're hard at work on Xojo's upcoming Android support — it is our top priority. As we've discussed previously, you can see in the current versions of Xojo that the latest iOS controls now start with "Mobile" in their name. Although Android and iOS will start off as different project types, implementing the "Mobile" prefix is an important step to complete so you will see similar controls when Android support is available.]]></description>
										<content:encoded><![CDATA[
<p>We&#8217;re hard at work on Xojo&#8217;s upcoming Android support — it is our <a rel="noreferrer noopener" href="https://documentation.xojo.com/resources/roadmap.html" target="_blank">top priority</a>. As we&#8217;ve <a href="https://blog.xojo.com/2020/12/04/xojotalk-037-2020-release-2-extravaganza/" data-type="post" data-id="7814">discussed previously</a>, you can see in the current versions of Xojo that the latest iOS controls now start with &#8220;<a href="https://documentation.xojo.com/Category:New2020r2">Mobile</a>&#8221; in their name. Although Android and iOS will start off as different project types, implementing the &#8220;Mobile&#8221; prefix is an important step to complete so you will see similar controls when Android support is available.</p>



<p>We continue to make progress on all aspects of Android support which includes:</p>



<ul class="wp-block-list"><li>Code generation work to make sure your Xojo code performs as you expect with the Android virtual machine</li><li>Controls with names, properties, and events that match iOS as closely as possible</li><li>The debugging experience</li><li>Removing external dependencies where possible, so you hit the ground running</li></ul>



<p>Right now we have many of the UI controls working, much of the Xojo language and more than 30 example projects to help with testing. As you may already know, we are creating native Android apps using native Android controls and targeting Android 5.0 (Lollipop, API 21) and higher.</p>



<p>To give you a feel for this, here is a look at the Android version our Eddie&#8217;s Electronics sample project.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img fetchpriority="high" decoding="async" width="1024" height="810" src="https://blog.xojo.com/wp-content/uploads/2021/01/CleanShot-2021-01-21-at-13.20.59@2x-1024x810.png" alt="" class="wp-image-8021" srcset="https://blog.xojo.com/wp-content/uploads/2021/01/CleanShot-2021-01-21-at-13.20.59@2x-1024x810.png 1024w, https://blog.xojo.com/wp-content/uploads/2021/01/CleanShot-2021-01-21-at-13.20.59@2x-300x237.png 300w, https://blog.xojo.com/wp-content/uploads/2021/01/CleanShot-2021-01-21-at-13.20.59@2x-768x608.png 768w, https://blog.xojo.com/wp-content/uploads/2021/01/CleanShot-2021-01-21-at-13.20.59@2x-1536x1215.png 1536w, https://blog.xojo.com/wp-content/uploads/2021/01/CleanShot-2021-01-21-at-13.20.59@2x-2048x1620.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure></div>



<p>This should all look pretty familiar, especially if you&#8217;ve worked with iOS projects. And speaking of familiar, this is what some of the code looks like:</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" width="1024" height="810" src="https://blog.xojo.com/wp-content/uploads/2021/01/CleanShot-2021-01-21-at-13.22.58@2x-1024x810.png" alt="" class="wp-image-8022" srcset="https://blog.xojo.com/wp-content/uploads/2021/01/CleanShot-2021-01-21-at-13.22.58@2x-1024x810.png 1024w, https://blog.xojo.com/wp-content/uploads/2021/01/CleanShot-2021-01-21-at-13.22.58@2x-300x237.png 300w, https://blog.xojo.com/wp-content/uploads/2021/01/CleanShot-2021-01-21-at-13.22.58@2x-768x608.png 768w, https://blog.xojo.com/wp-content/uploads/2021/01/CleanShot-2021-01-21-at-13.22.58@2x-1536x1215.png 1536w, https://blog.xojo.com/wp-content/uploads/2021/01/CleanShot-2021-01-21-at-13.22.58@2x-2048x1620.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure></div>



<p>We even have the ability to run this project in both the Android Emulator and on a physical Android device. Here is Eddie&#8217;s Electronics running on the Android Emulator (Pixel 4 emulation):</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" width="377" height="800" src="https://blog.xojo.com/wp-content/uploads/2021/01/CleanShot-2021-01-21-at-13.29.47.gif" alt="" class="wp-image-8023"/></figure></div>



<p>As you can see, there is still more to do, but many things have been completed. We look forward to beginning the testing phase once we feel like testers can have a good experience with the items noted above. We cannot commit to timelines, but we are thrilled with the incredible interest we&#8217;ve seen! Rest assured that we are as excited as you to have Android support in Xojo and are working hard to deliver it.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Behind the Scenes: A Xojo Android Update</title>
		<link>https://blog.xojo.com/2018/11/20/behind-the-scenes-a-xojo-android-update/</link>
		
		<dc:creator><![CDATA[Travis Hill]]></dc:creator>
		<pubDate>Tue, 20 Nov 2018 14:00:58 +0000</pubDate>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Cross-Platform]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Xojo Programming Language]]></category>
		<guid isPermaLink="false">https://blog.xojo.com/?p=5160</guid>

					<description><![CDATA[It's early days but an Android milestone has been reached! We just recently crossed a milestone in our efforts - and now have code from the Xojo compiler running on both the simulator and real Android hardware.]]></description>
										<content:encoded><![CDATA[<p>We know you are eager for updates on Xojo&#8217;s Android support, today we are able to come to you with some news. While we have been quiet, we have been mapping out our framework and controls to their Android equivalents, and working on the compiler itself.</p>
<p>We just reached a milestone in our efforts and we now have code from the Xojo compiler running on both the simulator and real Android hardware.</p>
<p>We still have a huge amount of work to do before visual components come along and we start pre-release testing, but we wanted to share this with you as we continue the work. We&#8217;ll have a lot to talk about &#8211; regarding Android and more &#8211; at <a href="https://www.xojo.com/xdc/">XDC 2019</a>!</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>An update on 64 bit&#8230;</title>
		<link>https://blog.xojo.com/2014/12/09/an-update-on-64-bit/</link>
		
		<dc:creator><![CDATA[Travis Hill]]></dc:creator>
		<pubDate>Tue, 09 Dec 2014 00:00:00 +0000</pubDate>
				<category><![CDATA[Technology]]></category>
		<guid isPermaLink="false">http://blogtemp.xojo.com/2014/12/09/an-update-on-64-bit/</guid>

					<description><![CDATA[An update on 64 bit...]]></description>
										<content:encoded><![CDATA[<p>With 2014r3 shipped, it&#8217;s a good time to give a quick update about where we&#8217;re at with 64 bit support. I&#8217;ll walk through the key pieces involved in this effort and give some updates.</p>
<p><span id="more-164"></span></p>
<p><strong>Compiler</strong></p>
<p>There has been a lot of work pushing the compiler forward over the years. Along with the release of 2014r3, we have now shipped a complete LLVM-based compiler backend that is used for iOS. This new compiler backend is a key milestone on our journey to 64 bit.</p>
<p><strong>Frameworks</strong></p>
<p>A significant part of what makes Xojo what it is comes from our frameworks. We mask a lot of complexity across all of the targets, and our collective frameworks are very large pieces of code. These code bases have a long 15+ year history and assumptions have been made about the size of pointers, integers, and so forth that are no longer true in a 64 bit world. To get to 64 bit, the entire framework is being audited and, in some cases, being rewritten to use newer APIs under the hood.</p>
<p><strong>Where are we now?</strong></p>
<p>We&#8217;ve recently crossed some important milestones internally that I&#8217;m happy to share with you now:</p>
<ul>
<li>The compiler is now capable of generating 64 bit code</li>
<li>We have built a 64 bit version of the iOS framework</li>
<li>We have built a 64 bit version of the Linux Web/Console framework, and it is now going through its internal code audit and fixes for 64 bit</li>
</ul>
<p><span style="line-height: 1.62;">Building iOS 64 bit apps is a feature of 2015r1, which will be in end-user testing shortly after the new year. It will be available to all iOS customers (at least in Beta) by February 1st (<a href="http://www.xojo.com/blog/en/2015/02/creating-64-bit-ios-apps.php">Xojo iOS support for 64-bit</a> was released in 2015r1). Linux Web/Console will be next, with the remainder of our supported platforms being added regularly thereafter. They will all be delivered in 2015.</span></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
