tag:blogger.com,1999:blog-58932945988182210812024-03-13T03:01:09.360-05:00Android DomAndroid programming tips and such.BusinessIsGoodhttp://www.blogger.com/profile/09449833853507084627noreply@blogger.comBlogger53125tag:blogger.com,1999:blog-5893294598818221081.post-78814566219050791642013-05-25T12:26:00.000-05:002013-05-28T10:15:51.774-05:00How to Download and Install Android Studio<i>This article describes how to download and install the 0.1 version of Android Studio on a Windows 7 computer.</i><br>
<br>
At the recent Google IO conference, Google announced their new product for Android development: Android Studio.<br>
<br>
Android Studio is meant to replace the Eclipse plugin for Android development. There has been a lot of excitement surrounding the tool--apparently many people are not huge fans of Eclipse. Personally, I am a fan of Eclipse, but certainly think that Android has gotten big enough to merit its own tool for development.<br>
<br>
<span style="color: #0b5394; font-size: large;">Version 0.1</span><br>
<br>
It is important to remember that this is not a fully polished product, so there will be plenty of bugs and quirks. Google is simply releasing an early preview and labeling it version 0.1<br>
<br>
<a href="http://www.androiddom.com/2013/05/how-to-download-and-install-android.html#more">Read more »</a>BusinessIsGoodhttp://www.blogger.com/profile/09449833853507084627noreply@blogger.com1tag:blogger.com,1999:blog-5893294598818221081.post-76957243251844234322013-05-02T02:00:00.002-05:002013-05-25T07:30:39.989-05:00Android Tic Tac Toe Part 3<i>This is the third and final part of the tutorial series on creating a Tic-Tac-Toe application. See <a href="http://www.androiddom.com/2011/06/android-tic-tac-toe-game-logic-part-1.html">part one about the interfaces</a> and <a href="http://www.androiddom.com/2013/03/android-tic-tac-toe-game-logic-part-2.html">part two about implementing the game logic</a>.</i><br>
<br>
<span style="color: #0b5394;"><span style="font-size: large;">1. Creating a Custom View for the Tiles</span></span><br>
<br>
In a previous tutorial I described how you could <a href="http://www.androiddom.com/2012/05/creating-custom-view-that-takes.html">create a custom view in Android</a> that will take attributes and implement custom logic. This is the approach we will take for creating the full Tic Tac Toe application.<br>
<br>
<a href="http://www.androiddom.com/2013/05/android-tic-tac-toe-part-3.html#more">Read more »</a>BusinessIsGoodhttp://www.blogger.com/profile/09449833853507084627noreply@blogger.com4tag:blogger.com,1999:blog-5893294598818221081.post-73039714265983692582013-03-30T01:28:00.000-05:002013-03-30T01:28:53.764-05:00Android Relative Layouts<i>This post briefly describes how to use Android Relative Layouts.</i><br>
<br>
<span style="color: #0b5394; font-size: large;">1. Why Use Relative Layouts?</span><br>
<br>
One of the challenges when it comes to designing Android apps is making your app look presentable on a multitude of different Android devices with different screen sizes and resolutions. Relative layouts can help to place views in the proper locations without specifying an absolute position.<br>
<br>
<a href="http://www.androiddom.com/2013/03/android-relative-layouts.html#more">Read more »</a>BusinessIsGoodhttp://www.blogger.com/profile/09449833853507084627noreply@blogger.com0tag:blogger.com,1999:blog-5893294598818221081.post-26977736271536659652013-03-21T00:04:00.001-05:002013-03-21T00:04:49.321-05:00Android Tic Tac Toe Game Logic - Part 2<i>In this section of the Tic Tac Toe tutorial we will implement several of the classes that we created in <a href="http://www.androiddom.com/2011/06/android-tic-tac-toe-game-logic-part-1.html">part one of the tutorial</a>.</i><br>
<div style="color: #0b5394;">
<span style="font-size: large;"><br>
</span></div>
<div style="color: #0b5394;">
<span style="font-size: large;">Implementing the GameManager Interface</span></div>
<br>
The GameManager is responsible for handling the overall state of the game, including determining whether or not a move is valid and if the player or AI opponent has won the game. The implementation of the interface is posted below.<br>
<br>
<a href="http://www.androiddom.com/2013/03/android-tic-tac-toe-game-logic-part-2.html#more">Read more »</a>BusinessIsGoodhttp://www.blogger.com/profile/09449833853507084627noreply@blogger.com0tag:blogger.com,1999:blog-5893294598818221081.post-34564361888264999702013-03-19T23:41:00.001-05:002013-03-20T23:36:27.534-05:00Android AsyncTasks (MultiThreading)This tutorial explains what AsyncTasks are in Android, why you should use them, and demonstrates a simple app that calculates prime numbers to show them in action.<br>
<br>
<span style="color: #0b5394; font-size: large;">1. What is an AsyncTask and Why Should I use Them? </span><br>
<br>
AsyncTasks are asynchronous because they operate in a thread separate from the UI thread.<br>
<br>
You should use them to complete performance intensive tasks or tasks that may complete in an indefinite amount of time. If you do not, the user interface will be blocked until the task is finished.<br>
<br>
For example: if you trying to download a huge web page, if you task is run in the UI thread you will prevent the application from respond to other actions--such as pressing other buttons, zooming, pressing the back button--and your app will be frozen.<br>
<br>
No one likes it when an app completely freezes, even if it is doing legitimate loading/calculating work. Additionally, if your app blocks the UI thread for more than 20 or so seconds, the Android Operating System will assume it is broken, and a force-close dialog will appear.<br>
<br>
<a href="http://www.androiddom.com/2013/03/android-asynctasks-multithreading.html#more">Read more »</a>BusinessIsGoodhttp://www.blogger.com/profile/09449833853507084627noreply@blogger.com0tag:blogger.com,1999:blog-5893294598818221081.post-45902176215630840582012-06-09T12:11:00.001-05:002013-03-20T23:25:48.924-05:00Android Shopping Cart Tutorial Part 3<i>In this part of the Android Shopping Cart Tutorial we will add prices, and calculate the total price for the purchase.</i><br>
<i><br></i><br>
This tutorial is part of a series about building an android based shopping cart, and will build off of existing code and concepts discussed in <a href="http://www.androiddom.com/2011/02/android-shopping-cart-tutorial.html">Android Shopping Cart Tutorial</a> and <a href="http://www.androiddom.com/2011/06/android-shopping-cart-tutorial-part-2.html">Android Shopping Cart Tutorial Part 2</a>.<br>
<br>
<span style="color: #0b5394; font-size: large;">Step 1. Prices for Products</span><br>
<br>
In our previous tutorials we learned how to display different products, add them to the cart, and even change the quantity of those products. Now we must add another crucial component, the price.<br>
<br>
If you look back at the previous tutorials, our Product object already contains price information, and our initial catalog is setting prices--these prices simply are not being displayed in the app anywhere.<br>
<br>
<a href="http://www.androiddom.com/2012/06/android-shopping-cart-tutorial-part-3.html#more">Read more »</a>BusinessIsGoodhttp://www.blogger.com/profile/09449833853507084627noreply@blogger.com55tag:blogger.com,1999:blog-5893294598818221081.post-31076181427617486422012-05-01T23:20:00.000-05:002013-03-24T02:18:35.420-05:00Creating a Custom View That Takes Attributes<i>This tutorial will demonstrate how to create a custom view that will change its appearance based on a custom attribute set in the xml layout.</i><br>
<i><br></i><br>
<span style="color: #0b5394; font-size: large;">1. Custom Attributes</span><br>
<br>
If you have used Android Views in the layout editor, you are probably already familiar with setting attributes for views. For example, for an ImageView you can set the drawable attribute to determine what graphic to draw, or the Text Attribute for a button or label to determine what text will display.<br>
<br>
If you find yourself designing a custom view, you may want to add custom attributes to that view that affect the display or behavior. For this example we will build off of the <a href="http://www.androiddom.com/2012/03/creating-simple-custom-android-view.html">custom view that created before</a>, and add an attribute to change the border color.<br>
<br>
<a href="http://www.androiddom.com/2012/05/creating-custom-view-that-takes.html#more">Read more »</a>BusinessIsGoodhttp://www.blogger.com/profile/09449833853507084627noreply@blogger.com5tag:blogger.com,1999:blog-5893294598818221081.post-71324414056986739502012-04-29T21:59:00.000-05:002012-04-29T22:02:50.266-05:00Featured App: Super Monster Puncher IRLToday we want to showcase this game one of our awesome friends made.<br />
It is called <a href="http://www.2bestfriendsgames.com/index.html">Super Monster Puncher IRL.</a><br />
<br />
From the game's description:<br />
<blockquote class="tr_bq">
<span style="background-color: white; color: #666666; font-family: 'Droid Sans', Arial, sans-serif; font-size: 13px; line-height: 19px; text-align: left;">There are a lot of monsters out there, so you better punch them all. Turn your GPS on, explore your local stores, and see what kind of monsters show up for the punching.</span><br />
<div style="background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #666666; font-family: 'Droid Sans', Arial, sans-serif; font-size: 13px; line-height: 19px; padding-bottom: 1em; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;">
Punch over 30 monsters and gain experience up to level 9 in this lite version. Get the full version to get more monsters, more levels, and more punching!</div>
</blockquote>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.2bestfriendsgames.com/images/super_monster_puncher_punch.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="http://www.2bestfriendsgames.com/images/super_monster_puncher_punch.png" width="400" /></a></div>
<br />
<br />
The game has some really neat artwork and it is fun when you change locations and find new monsters. Besides, it's reminiscent of one of my favorite childhood games. Show them some love and let us know what you think.<br />
<br />
Google Play Link: <a href="http://bit.ly/Jlye7M.">http://bit.ly/Jlye7M.</a>Silhttp://www.blogger.com/profile/15752353290713190247noreply@blogger.com0tag:blogger.com,1999:blog-5893294598818221081.post-38750805432514544192012-04-24T23:32:00.000-05:002012-04-24T23:32:52.250-05:00GitHub UpdatedThe source code for the <a href="http://www.androiddom.com/2011/06/android-shopping-cart-tutorial-part-2.html">Android Shopping Cart Tutorial Part 2</a> is now available on <a href="https://github.com/dreamdom/Shopping-Cart-Tutorial-part-2">github</a>. Look for more tutorials coming soon!BusinessIsGoodhttp://www.blogger.com/profile/09449833853507084627noreply@blogger.com0tag:blogger.com,1999:blog-5893294598818221081.post-15046932488493978372012-03-09T20:30:00.000-06:002013-03-24T02:05:35.851-05:00Creating a Simple Custom Android View<i>This tutorial will show you how to create an extremely simple custom view that draws a red border, and add this view to a layout.</i><br>
<i><br>
</i><br>
<span style="color: #0b5394; font-size: large;">1. Why Create a Custom View?</span><br>
<br>
You may be wondering why you would ever want to create a custom view. Android comes with many views already, and these views follow behaviors that the user expects and has grown accustomed to (buttons, check boxes, text inputs). These views are fine and work great, but sometimes they do not provide all the functionality that your apps requires, or you may simply wish to build a more customizable component.<br>
<br>
<a href="http://www.androiddom.com/2012/03/creating-simple-custom-android-view.html#more">Read more »</a>BusinessIsGoodhttp://www.blogger.com/profile/09449833853507084627noreply@blogger.com2tag:blogger.com,1999:blog-5893294598818221081.post-8942964441619652542012-02-23T22:47:00.000-06:002012-02-23T22:47:50.886-06:00Debug Certificate ExpiredWhen you are building your android applications you don't really want to have to worry about signing your app before you install it on a device just for testing purposes.<br>
<br>
Thankfully, the Android Development Tools will take care of this for us, and when you run your application from Eclipse, the Android plug in will automatically take care of signing the app with a debug certificate.<br>
<br>
However, if you have been developing Android apps for more than a year, you may have run into the following problem.<br>
<br>
<pre class="alt2" dir="ltr" style="border: 1px inset; height: 45px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 420px;">Error generating final archive: Debug Certificate expired on...</pre><br>
<br>
<a href="http://www.androiddom.com/2012/02/debug-certificate-expired.html#more">Read more »</a>BusinessIsGoodhttp://www.blogger.com/profile/09449833853507084627noreply@blogger.com0tag:blogger.com,1999:blog-5893294598818221081.post-50909158994202189772012-02-11T11:15:00.001-06:002012-02-11T11:32:58.838-06:00How to Modify the AndroidManifest<i>In previous tutorials we have reminded you to modify the manifest file and we have gotten a lot of questions about how to do it. Here is the general answer.</i><br />
<br />
As you know, our tool of choice (IDE) to create Android apps is Eclipse.<br />
So here is how you can do it step by step. [Note: If you don't use Eclipse then you just have to modify the AndroidManifest.xml file in your application]<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjY8cwQnExjHVvRVMPn3inIXoYmfjgwV8xTCnI7RuVREylpDToNYxqt2ZVUSs1kdeJlQaIBductJ7nvL6nTQOGShX8pfeWl_s4-LrQmDpa7umIXzB99Ixo2G8JGtxSMhpMbomxB6XSTJclZ/s1600/androidmanifest.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="340" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjY8cwQnExjHVvRVMPn3inIXoYmfjgwV8xTCnI7RuVREylpDToNYxqt2ZVUSs1kdeJlQaIBductJ7nvL6nTQOGShX8pfeWl_s4-LrQmDpa7umIXzB99Ixo2G8JGtxSMhpMbomxB6XSTJclZ/s640/androidmanifest.PNG" width="640" /></a></div>
<br />
1. In your package explorer tab (In the image to the left you) click on the AndroidManifest.xml<br />
2. In the main window you will see a set of tabs at the bottom (blue in the image. We find it easier (but also more prone to mistakes) to modify the .xml file directly, so click on that tab.<br />
3. Now, all you have to do is update it to your needs. The most common problem is to change the activity, so in this example you can swap <activity ..... > .... </activity> with the new one.<br />
<br />
In short, two of the most important tags are:<br />
<br />
<ul>
<li><b>Activity</b> - describe the different activities your app contains and settings for them</li>
<li><b>Permissions</b> - describe which features your application wishes to use that are not normally included (internet access for example)</li>
</ul>
<br />
If you want to know more about the manifest and what each of the fields means you can find more information from the official android documentation <a href="http://developer.android.com/guide/topics/manifest/manifest-intro.html">here</a>.<br />
<br />
We hope this helps, we will be bringing new material soon if you have any suggestions then write a comment, send us an email or find us on twitter.Silhttp://www.blogger.com/profile/15752353290713190247noreply@blogger.com0tag:blogger.com,1999:blog-5893294598818221081.post-10014258335664779592012-02-07T20:37:00.000-06:002012-02-09T20:44:56.199-06:00Pardon the DustAhhh, We meet again.<br />
<div>
<br /></div>
<div>
Sorry for abandoning the blog for a few months, computer problems coupled with busy schedules are our excuse. However, we have exciting news: </div>
<div>
<br /></div>
<div>
We are about to launch an improved Android Drom blog.</div>
<div>
<br /></div>
<div>
What does this mean for you?</div>
<div>
<br /></div>
<div>
* Update to all our old tutorials which includes putting all the code in github</div>
<div>
* New tutorials just for you</div>
<div>
* Help sessions - specific hours where you can ask and we'll answer</div>
<div>
<br /></div>
<div>
We are really sorry if we didn't reply to your email but it is really hard to try solving all the problems with the your code. Our goal while posting these tutorials is to provide a point of reference. However, in these help sessions that we are planning on hosting you can expect real-time answers to your questions.</div>
<div>
<br /></div>
<div>
Finally, we are doing this as a hobby, so please bear with us, and if you like what you see and would like to show your appreciation, consider buying us a cup of coffee so we can keep going.</div>
<div>
<br /></div>
<div>
Sincerely, </div>
<div>
The Android Dom team.</div>Silhttp://www.blogger.com/profile/15752353290713190247noreply@blogger.com0tag:blogger.com,1999:blog-5893294598818221081.post-8726779077608579032011-09-26T17:02:00.000-05:002011-09-26T17:02:16.984-05:00Finally an Android Tablet Worth Buying?I'm not going to lie, I have been pretty disappointed with most of the Android tablets that have come to the market so far.<br />
<br />
The most important factor to me, and too a lot of other people I am sure, has been the price point, and Android tablets have been too expensive for me to consider buying. <br />
<br />
But perhaps it will in the very near future.<br />
<br />
Rumors are flying around that Amazon will finally release their own Android powered tablet on Wednesday, and that it could be priced as low as $250!<br />
<br />
See this article below about how even Apple might be scared about the Amazon tablet.<br />
<a href="http://www.blogger.com/goog_108745106"><br />
</a><br />
<a href="http://www.foxnews.com/scitech/2011/09/26/amazons-wednesday-tablet-launch-threat-to-apples-ipad-analysts-say/">http://www.foxnews.com/scitech/2011/09/26/amazons-wednesday-tablet-launch-threat-to-apples-ipad-analysts-say/</a>BusinessIsGoodhttp://www.blogger.com/profile/09449833853507084627noreply@blogger.com0tag:blogger.com,1999:blog-5893294598818221081.post-34660641476742496342011-08-23T01:09:00.000-05:002011-08-23T01:09:00.583-05:00Android ActivityNotFoundException<i>This article briefly describes how you can solve an Android ActivityNotFoundException.</i><br />
<br />
One type of error that you may encounter while programming in Android is the "activity not found" exception. This error can be particularly perplexing at first, because as you look through your source files you will see no compilation errors.<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBPsp8oLfYITG1CS_Rq283BmJOF5sC-ZcGODEfoEq99zIj2lzzRsU35K8HkC64CXSwmwQ62RQ-ocx1S4F29PgSNlmQkq9LRJ9fr5zpos7IjeOXNkx648ilm6ALA1ymO2GxOTjI_JVy0M0/s1600/Android+ActivityNotFound+logcat.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="116" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBPsp8oLfYITG1CS_Rq283BmJOF5sC-ZcGODEfoEq99zIj2lzzRsU35K8HkC64CXSwmwQ62RQ-ocx1S4F29PgSNlmQkq9LRJ9fr5zpos7IjeOXNkx648ilm6ALA1ymO2GxOTjI_JVy0M0/s320/Android+ActivityNotFound+logcat.png" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Screenshot of the logcat output showing an ActivityNotFound exception</td></tr>
</tbody></table><br />
The solution is to modify the manifest for the Android application. The manifest includes all sorts of information about the application, included a list of defined activities that run in the application.<br />
<br />
Update the manifest to include information about the activity that it couldn't find, and run your program again. You should not experience this error anymore.<br />
<br />
Listed below is an example of a line of code you can add to your manifest to declare an activity. <br />
<br />
<pre class="alt2" dir="ltr" style="border: 1px inset; height: 25px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 420px;"><activity android:name="CatalogActivity"></activity>
</pre>BusinessIsGoodhttp://www.blogger.com/profile/09449833853507084627noreply@blogger.com0tag:blogger.com,1999:blog-5893294598818221081.post-28777143512005561462011-08-08T00:24:00.000-05:002011-08-08T00:24:06.142-05:00Source Code Available from GithubThe source code for the shopping cart tutorial part one is now available for download through github.<br />
<br />
Pasted below is a link. Enjoy, and look for more projects to appear on Github in the near future.<br />
<br />
<a href="https://github.com/dreamdom/Shopping-Cart-Part-1">https://github.com/dreamdom/Shopping-Cart-Part-1</a>BusinessIsGoodhttp://www.blogger.com/profile/09449833853507084627noreply@blogger.com1tag:blogger.com,1999:blog-5893294598818221081.post-56986271139041474852011-07-07T22:09:00.000-05:002011-07-07T22:09:18.284-05:00Making a Full Screen Android App<i>This article demonstrates how to make an Android app that uses the full screen.</i><br>
<div style="color: #0b5394;"><span style="font-size: large;"><br>
</span></div><div style="color: #0b5394;"><span style="font-size: large;">Why Make an App Fullscreen?</span></div><br>
When you are dealing with portable devices you are usually dealing with limited screen real estate. This means that you have less room to display information to the user, and if your app chooses not to hide the title bar and notification bar you are left with even less space.<br>
<br>
Personally, I think the title bar is kind of plain looking and generally not necessary. Usually you know what app you are currently using, and there isn't much space to make the title bar display anything interesting.<br>
<br>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyFL6YVlOUSn3F_4KHS_nNhybSgDbkUDXlbP4HrzPPS4-Dag0ohXvs-FTlkb-qKSomP_oYvxbJNcYpXzq1onYdeDV_377QLL1lHd2pl2dU8XzmOfO_CYaeTBAEU2_W2L9tCEy5UTey4kA/s1600/Android+App+with+title+and+notification+bar.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyFL6YVlOUSn3F_4KHS_nNhybSgDbkUDXlbP4HrzPPS4-Dag0ohXvs-FTlkb-qKSomP_oYvxbJNcYpXzq1onYdeDV_377QLL1lHd2pl2dU8XzmOfO_CYaeTBAEU2_W2L9tCEy5UTey4kA/s320/Android+App+with+title+and+notification+bar.png" width="216"></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Screenshot of an Android App with Title Bar and Notification Bar</td></tr>
</tbody></table><br>
<a href="http://www.androiddom.com/2011/07/making-full-screen-android-app.html#more">Read more »</a>BusinessIsGoodhttp://www.blogger.com/profile/09449833853507084627noreply@blogger.com6tag:blogger.com,1999:blog-5893294598818221081.post-80909143960795142952011-07-05T21:29:00.000-05:002011-07-05T21:29:51.689-05:00Change Anroid Emulator Soft Keyboard<i>This is a short tutorial that explains how you can change the Android Emulator soft keyboard to display in English.</i><br>
<br>
<div style="color: #0b5394;"><span style="font-size: large;">For Some Reason...</span></div><br>
At least twice when I have created Android Emulators, the system is set to display in English, but the soft keyboard that shows up contains Japanese characters. This can be a problem if you need to test specific inputs and don't know Japanese (sadly, I don't).<br>
<br>
Have no, fear. This is a simple problem to fix. <br>
<br>
<div style="color: #0b5394;"><span style="font-size: large;">If your Android Emulator Keyboard Looks Like This...</span></div><br>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhI-pl-3tz1ll44v_08-rLvxLd-ftIsZtxujXfNEySb9l_9xuU_oFsGb3Pq-_NfrluwsT5OSfL7iciteXRedFqEEdigjCcdGufk2D8h9PPLWto4IFAlQSuQCc8MnEAbrx3bY4WcrJiTQu0/s1600/Screen+shot+2011-07-05+at+9.02.59+PM.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="210" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhI-pl-3tz1ll44v_08-rLvxLd-ftIsZtxujXfNEySb9l_9xuU_oFsGb3Pq-_NfrluwsT5OSfL7iciteXRedFqEEdigjCcdGufk2D8h9PPLWto4IFAlQSuQCc8MnEAbrx3bY4WcrJiTQu0/s320/Screen+shot+2011-07-05+at+9.02.59+PM.png" width="320"></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Emulator with Japanese soft keyboard</td></tr>
</tbody></table><br>
And you would like it to display an English based soft keyboard, then... <br>
<a href="http://www.androiddom.com/2011/07/change-anroid-emulator-soft-keyboard.html#more">Read more »</a>BusinessIsGoodhttp://www.blogger.com/profile/09449833853507084627noreply@blogger.com0tag:blogger.com,1999:blog-5893294598818221081.post-91390101532025797532011-07-05T00:00:00.000-05:002011-07-05T00:00:32.372-05:00Android What Does DIP Stand For?<i>This article introduces the concept of DIPs for Android.</i><br>
<br>
<div style="color: #0b5394;"><span style="font-size: large;">What Does DIP Stand For?</span></div><br>
DIP stands for Density Independent Pixels. Density Independent Pixels are also abbreviated as DP.<br>
<br>
One Density Independent Pixel is defined as one pixel on a 160 DPI (dots per inch) screen.<br>
<br>
<a href="http://www.androiddom.com/2011/07/android-what-does-dip-stand-for.html#more">Read more »</a>BusinessIsGoodhttp://www.blogger.com/profile/09449833853507084627noreply@blogger.com1tag:blogger.com,1999:blog-5893294598818221081.post-49586965988189015272011-07-03T22:27:00.000-05:002011-07-03T22:27:13.996-05:00Starting Another Android Activity With Intents<i>This tutorial will demonstrate how to start a second activity with Android and how to debug an Android ActivityNotFoundException.</i><br>
<br>
<div style="color: #0b5394;"><span style="font-size: large;">Using Multiple Activities</span></div><br>
Most Android projects involve using multiple activities. This tutorial will demonstrate how you can create start a second activity from your application, and pass along extras as well. <br>
<br>
<div style="color: #0b5394;"><span style="font-size: large;">Create Two Layouts</span></div><br>
First, we will create two different layouts, main.xml and secondactivity.xml<br>
<br>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgt8y_4x6aBUlM621VgvXCIfREbU0T1E7yQogcJMs74M2ir9srXt90cCIevM56N7HY3pdobRfhyphenhyphen5PWxIAQF5emJVGeqJdn9riAqgDYzA_2Q6giZoznwWF9duQKDU0acB6HzOWN1rNMEF4w/s1600/Screen+shot+2011-07-03+at+9.45.37+PM.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgt8y_4x6aBUlM621VgvXCIfREbU0T1E7yQogcJMs74M2ir9srXt90cCIevM56N7HY3pdobRfhyphenhyphen5PWxIAQF5emJVGeqJdn9riAqgDYzA_2Q6giZoznwWF9duQKDU0acB6HzOWN1rNMEF4w/s320/Screen+shot+2011-07-03+at+9.45.37+PM.png" width="209"></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Screenshot of the main.xml layout</td></tr>
</tbody></table><br>
<a href="http://www.androiddom.com/2011/07/starting-another-android-activity-with.html#more">Read more »</a>BusinessIsGoodhttp://www.blogger.com/profile/09449833853507084627noreply@blogger.com1tag:blogger.com,1999:blog-5893294598818221081.post-59205758674467006812011-07-01T08:32:00.000-05:002011-07-01T08:32:54.865-05:00Back in Business (Kind Of) with MotoDev Studio<div style="color: #0b5394;"><span style="font-size: large;">More Computer Woes</span></div><br>
Unfortunately my main Android Development computer decided that it didn't want to turn on anymore. I think it is still a problem that can be fixed, perhaps by changing the power supply, but I figured it was time to move on and set up my laptop for Android Development.<br>
<br>
As I was about to start downloading all the necessary components, I saw something called MotodevStudio which was a Motorola product. It is based off the Eclipse platform and makes the claim that it makes it easier to develop Android applications. I thought I would give it a try.<br>
<br>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-5YXuIxp9BhNrYk4OGoxSGr4gZ_hnDAPdH6JJki2elJXx7p1TvrEZ_5u0e9_p4lkdqltjeTSRavnzyrv0J9ONFpp2MN1AqP6H6w-oRfLWJX-9wlMAztZ2RaVDbbVLetqgsUNHbt4ExDo/s1600/Screen+shot+2011-07-01+at+4.13.09+AM.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="314" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-5YXuIxp9BhNrYk4OGoxSGr4gZ_hnDAPdH6JJki2elJXx7p1TvrEZ_5u0e9_p4lkdqltjeTSRavnzyrv0J9ONFpp2MN1AqP6H6w-oRfLWJX-9wlMAztZ2RaVDbbVLetqgsUNHbt4ExDo/s320/Screen+shot+2011-07-01+at+4.13.09+AM.png" width="320"></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Setting up MotoDev Studio</td></tr>
</tbody></table><div style="color: #0b5394;"><span style="font-size: large;"></span></div><a href="http://www.androiddom.com/2011/07/back-in-business-kind-of-with-motodev.html#more">Read more »</a>BusinessIsGoodhttp://www.blogger.com/profile/09449833853507084627noreply@blogger.com0tag:blogger.com,1999:blog-5893294598818221081.post-89272676065457238632011-06-22T20:46:00.000-05:002011-06-22T20:46:34.768-05:00Computer TroubleUnfortunately it looks like my computer where I do all my Android development has died. It was a Gateway desktop. I haven't had time to see if it is anything I can fix yet.<br />
<br />
I have a laptop that I use as well, but I will need to set it up for proper Android development. It may be a little while longer before I get any big tutorials up.<br />
<br />
But I am still planning on keeping up the pace of publishing more tutorials to the blog, once I get going again. Feel free to make any requests in the comments and I will try to get to them.BusinessIsGoodhttp://www.blogger.com/profile/09449833853507084627noreply@blogger.com0tag:blogger.com,1999:blog-5893294598818221081.post-14983508184275617112011-06-20T14:20:00.000-05:002011-06-20T15:21:38.462-05:00<div style="text-align: center;font-family:georgia;"><span style="font-size:100%;"><span style="color: rgb(51, 102, 102);">Hi everybody!</span><span style="color: rgb(51, 102, 102);"><br />We have good news for you.</span><br /><br /><span style="color: rgb(51, 102, 102);">You can now contact us<br /><br />via email: <span style="color: rgb(0, 0, 153);">theandroiddom@gmail.com</span><br /><br />via Twitter: <a href="http://twitter.com/#%21/androiddom"><span style="color: rgb(0, 0, 153);">@AndroidDom</span></a><br /></span> <span style="color: rgb(51, 102, 102);"><br />Talk to us, we would love to hear from you.</span><br /><br /><span style="color: rgb(51, 102, 102);">We are also working hard to bring you an improved Android Dom experience.<br />So, pardon the dust while we make some changes around here.<br /><br /><br /></span></span></div>Silhttp://www.blogger.com/profile/15752353290713190247noreply@blogger.com0tag:blogger.com,1999:blog-5893294598818221081.post-80586393701487700032011-06-17T01:30:00.000-05:002011-06-17T01:30:33.599-05:00Displaying an Android Toast<i>This tutorial describes how to display a toast in an Android Application.</i><br>
<br>
<div style="color: #0b5394;"><span style="font-size: large;">What is a Toast?</span></div><i> </i><br>
A toast is a small message that pops up at the bottom of the user's Android device. Shown below is a screenshot of a toast. Toasts differ from message boxes in the fact that they don't take focus, so they are less intrusive.<br>
<br>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirm7grh_Rgk2mZeNLaKDXTnUtU6-iSyGfxkwFlYjyG7lu23RTLkePyWrO8ukkAZDyKtCsn09dnEwrBlWLZelCxVWbSjJqE1fltNohpLg4sKU908wG71RxXTQ-Xt7_7zRoccNHWseHyJic/s1600/android-toast-screenshot.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirm7grh_Rgk2mZeNLaKDXTnUtU6-iSyGfxkwFlYjyG7lu23RTLkePyWrO8ukkAZDyKtCsn09dnEwrBlWLZelCxVWbSjJqE1fltNohpLg4sKU908wG71RxXTQ-Xt7_7zRoccNHWseHyJic/s320/android-toast-screenshot.png" width="213"></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Screenshot of an app displaying a toast.</td></tr>
</tbody></table><br>
<a href="http://www.androiddom.com/2011/06/displaying-android-toast.html#more">Read more »</a>BusinessIsGoodhttp://www.blogger.com/profile/09449833853507084627noreply@blogger.com1tag:blogger.com,1999:blog-5893294598818221081.post-69202153895763782011-06-15T21:59:00.000-05:002012-06-14T20:51:33.982-05:00Android Shopping Cart Tutorial Part 2<i>This tutorial picks up where the first <a href="http://www.androiddom.com/2011/02/android-shopping-cart-tutorial.html">Android Shopping Cart Tutorial</a> leaves off. In this part we will modify the shopping cart to be able to handle multiple quantities of products.</i><br>
<br>
<i>The source code is now available on <a href="https://github.com/dreamdom/Shopping-Cart-Tutorial-part-2">github</a>.</i><br>
<b>Update </b>- after following this tutorial, be sure to <a href="http://www.androiddom.com/2012/06/android-shopping-cart-tutorial-part-3.html">check out part 3</a>.
<br>
<br>
<span style="color: #0b5394; font-size: large;">Before We Begin...</span><br>
<br>
Code often goes through many iterations. And we will do that with the existing shopping cart code from the first <a href="http://www.androiddom.com/2011/02/android-shopping-cart-tutorial.html">Android Shopping Cart Tutorial</a>. In this tutorial we will update the code to handle quantities of products. We will also update the code to be even more object oriented which should make it easier to add more features in the future.<br>
<br>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEQxWpmnRqEKXQmsz0FereURWPfNv2I5kVr1xArvS2QDtaq7QiwDaTjDO8qdoFQ-LrAcL995JBqMuhHvMTbFDQscsTcZ5blJYaDsA4R5i35LbmEPWPFWrVsrQeavGqiJ6oYXGJlp21Cpc/s1600/shopping-cart-activity.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEQxWpmnRqEKXQmsz0FereURWPfNv2I5kVr1xArvS2QDtaq7QiwDaTjDO8qdoFQ-LrAcL995JBqMuhHvMTbFDQscsTcZ5blJYaDsA4R5i35LbmEPWPFWrVsrQeavGqiJ6oYXGJlp21Cpc/s320/shopping-cart-activity.png" width="213"></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Screenshot of the ShoppingCartActivity displaying quantities</td></tr>
</tbody></table>
<br>
<a href="http://www.androiddom.com/2011/06/android-shopping-cart-tutorial-part-2.html#more">Read more »</a>BusinessIsGoodhttp://www.blogger.com/profile/09449833853507084627noreply@blogger.com81