<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>
      Marakana
      -
      Forums</title>
    <link>
      http://marakana.com/forums/
        </link>
    <copyright>2012 Marakana Inc, purveyors of fine training since 2005.</copyright><generator>Marakana Spark</generator>
    <item>
        <title>Slid.us</title>
        <link>http://marakana.com/forums/html5/general/913.html</link>
        <author>Gonzo Leon</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/913.html</guid>
        <pubDate>Wed, 22 May 2013 02:21:36 -0700</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[Hi! I'm looking for a website for online presentations, like prezi, and I have found this one: <br/><br/><a href="http://www.slid.us" rel="nofollow"><strong>slid.us</strong></a><br/><br/>It's coded in html5, so I would be glad if someone here knows something about this site and can tell me if it's a nice one. Thanks a lot!]]></content:encoded>
      </item>
    <item>
        <title>Loading contact thumbnails from Content Provider</title>
        <link>http://marakana.com/forums/android/examples/912.html</link>
        <author>Alon Minski</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/912.html</guid>
        <pubDate>Tue, 21 May 2013 03:24:56 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Hello!<br/>I'm working on a project where I'm trying to load all contact's thumbnail photos from Content Provider and populate a GridView with all of them, resulting in a GridView that displays all contacts on my phone using their thumbnails + dislay names.<br/><br/>What would be the best approach to accomplish this?<br/><br/>Currently, I have a an Adapter that extends BaseAdapter. <br/>I have a Cursor that holds all the Display_names queried from the Content Provider.<br/>This cursor is given to the adapter to set the ContactName TextView with the right name.<br/><br/>Inside the adapter I have a method that queries the Content Provider for the contacts photo based on an Id.<br/>so the method goes one by one, gets the bitmap which I then set in ContactImage ImageView. One by one.<br/><br/>The problem here is that it makes the GridView scroll really slow. Its really sluggish.<br/><br/>I also tried initializing an ArrayList with all photos (the arrayList holds a java bean with contact ID and bitmap) and then pass that to the Adapter. But this causes the start up of the application to take way too long causing the app to be non responsive. Especially if I have hundreds of contacts.<br/><br/>I also tried using AsyncTask to load the pictures. But then I have a problem with the UI thread. The adapter requires a display name, and a photo. Because Asynctask still hasn't finished to load all pics, my adapter gets a null pointer exception when it tries to display a picture.<br/><br/>Can anyone help or at least direct me in the right direction on how to solve this? I'm getting really desperate here... <br/><br/>Thank you!!]]></content:encoded>
      </item>
    <item>
        <title>Files not identified by server after git pull</title>
        <link>http://marakana.com/forums/git/git/911.html</link>
        <author>Kev Johnston</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/911.html</guid>
        <pubDate>Mon, 20 May 2013 07:28:37 -0700</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[I have a curious problem.<br/>When I pull to my web server, files that have been edited become lost/invisible to apache.<br/>The files are there. Complete and un-tarnished with git notes. The permissions remain the same.<br/>but when i try to navigate to a web page containing the new edits,  I get errors. Usually 500 error. Yet the rest of the site works fine.<br/>Now here is an interesting phenomenon. I went to an offending file on the server and copied the entire contents. Deleted the file. Created a new file using the same file name. Pasted the original file contents back into the new file. Saved it and navigated to the web page and it worked fine. No 500 error.<br/>Can somebody explain to me how a file with the correct permissions and no errors can become invisible to apache, how git pull might cause this, and what to do to prevent it from happening.<br/>I am a git noob, so be gentle and provide baby steps if you are able to help.<br/>Thanks<br/><br/>P.S. I am using ssh to log in to my server and to pull from the repo which is on the same server but a different user account.]]></content:encoded>
      </item>
    <item>
        <title>what folder I must backup and how restore(must restore in same version?) in case PC or HDD windows failure</title>
        <link>http://marakana.com/forums/git/git/910.html</link>
        <author>Leonidas Savvides</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/910.html</guid>
        <pubDate>Mon, 20 May 2013 06:29:58 -0700</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[When I am using GIT/GITHUB for local use version control, what folder I must backup and how restore(must restore in same version?) in case PC or HDD windows failure?<br/>PROVIDE URLs,…<br/>]]></content:encoded>
      </item>
    <item>
        <title>remoteview to actvity linearlayout add/show/atttach</title>
        <link>http://marakana.com/forums/android/general/909.html</link>
        <author>Miten Mehta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/909.html</guid>
        <pubDate>Sat, 18 May 2013 05:09:30 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Hi,<br/><br/>I receive in activity remoteviews from service.  I tried remoteview.apply(actitycontext,viewgroup) method.  But the apply method states it inflates only but does not attach the hierarchy.  The result I see is that in activity in linearlayout which is my viewgroup container for remoteviews is all blank after apply call.  Please guide.<br/><br/>Here is snippet:<br/><br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">			//final ImageView image = (ImageView) findViewById(R.id.banner);<br/>			final LinearLayout image = (LinearLayout) findViewById(R.id.bannerRemote);<br/>			ContactManager.this.runOnUiThread(new Runnable() {<br/>				public void run() {<br/>					//Bitmap bits;<br/>					RemoteViews bits;<br/>					try {<br/>						adInterface.initialize(aPublisherId, "", (String[])null);<br/>						bits = adInterface.fetchNextAd();<br/>						Log.i(TAG, "bits fetchted in ContactManager");<br/>						//image.setImageBitmap(bits);<br/>						bits.apply(ContactManager.this, image);<br/>						//image.addView(bits);<br/>						image.forceLayout();<br/>						image.startLayoutAnimation();<br/>						<br/>						<br/>						Log.i(TAG, "bits applied with viewgroup in ContactManager");<br/>						Log.i(TAG, "fetchNextAd success");<br/>					} catch (RemoteException e) {<br/>						// TODO Auto-generated catch block<br/>						e.printStackTrace();<br/>						Log.e(TAG, "fetchNextAd failure", e);<br/>					}</pre>
		  </div><br/>			]]></content:encoded>
      </item>
    <item>
        <title>Not seeing files after commit</title>
        <link>http://marakana.com/forums/git/git/908.html</link>
        <author>Paulin ADIKS</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/908.html</guid>
        <pubDate>Fri, 17 May 2013 09:03:49 -0700</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[This is the situation<br/><br/>1 - I have my local repository<br/><br/>2 - Some friend clone it<br/><br/>3 - I've set my repository to receive push (<code class="inline">git config --local receive.denyCurrentBranch ignore</code> )<br/><br/>4 - My friend push its changes in my local repository.<br/><br/>5 - When I use <code class="inline">git log</code>, I can see the commits he made in his repository (so push have done correctly)<br/><br/>6 - When I try to access to its files, I don't see them<br/><br/>7 - If I use <code class="inline">git status</code> I saw all its files as deleted<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/># On branch master<br/># Your branch is ahead of 'origin/master' by 1 commit.<br/>#<br/># Changes to be committed:<br/>#   (use "git reset HEAD &lt;file&gt;..." to unstage)<br/>#<br/>#	deleted:    docs/new/readme.txt<br/>#<br/></pre>
		  </div><br/><br/>8 - When I use <code class="inline">git stash</code> (to save my changes), I can see all its files<br/><br/>9 - If I come back with <code class="inline">git stash apply</code>, all this files disappears.<br/><br/>10- So when I use <code class="inline">git stash</code> I can see theses files but when I come back with <code class="inline">git stash apply</code> its all disappears<br/><br/>11- If I use <code class="inline">git merge stash</code> , all these files are deleted<br/><br/>How can I do to merge its changes in my own repository with git ?<br/><br/>Thanks for your help.]]></content:encoded>
      </item>
    <item>
        <title>How to use Camera with Burst Mode from code ?</title>
        <link>http://marakana.com/forums/android/examples/907.html</link>
        <author>George Profenza</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/907.html</guid>
        <pubDate>Wed, 15 May 2013 09:36:03 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[I'm using an Xperia Z phone and played with the Camera application's Burst Mode and<br/>I'd also do roll a very basic app of my own using that functionality.<br/> <br/>I've downloaded the Android SDK and the Sony Add-On SDK but only saw the default android.hardware.Camera class<br/>which doesn't seem to expose the burst mode functionality (correct me if I'm wrong).<br/> <br/>I've also downloaded and built AOSP. I've noticed that libcameraservice has a BurstCapture class which I'm assumung means<br/>the burst functionality would be exposed by the service through an API, but I haven't worked how.<br/><br/>I had a look at this awesome talk on Marakana:<br/>http://marakana.com/s/post/1268/exposing_the_android_camera_app<br/>and notice the android.hardware.Camera class talks through JNI to libcameraservice,<br/>but I see no calls exposed to access the BurstCapture class.<br/><br/>Also, I had a look at the Camera application source code but it looks like a generic Android Camera application,<br/>not the Xperia Z shipped one with the Burst Mode option available.<br/><br/> <br/>How can I take photos in Burst Mode from code ?<br/>Is this feature available through an API, if so, where can I find the documentation ?<br/> <br/>Thanks,<br/>George]]></content:encoded>
      </item>
    <item>
        <title>Explore the Hibernate search system and use its extraordinary search features in your own application</title>
        <link>http://marakana.com/forums/hibernate/general/906.html</link>
        <author>Sachi Shah</author>
        <guid isPermaLink="true">http://marakana.com/forums/hibernate/general/906.html</guid>
        <pubDate>Wed, 15 May 2013 00:22:23 -0700</pubDate>
        <category>Hibernate - General</category>
        <content:encoded><![CDATA[<a href="http://www.packtpub.com/hibernate-search-by-example/book" rel="nofollow">Hibernate Search by Example</a> is a book that will show readers how to make core Hibernate entity classes searchable, no matter which mapping API they use. Readers will also learn integration with the core Hibernate system, using traditional APIs or JPA.<br/><br/>About the Author:<br/><br/>Steve Perkins is a Java developer based in Atlanta, GA, USA and has been working with Java in a web and systems integration context for 15 years, for clients ranging from commerce and finance to media and entertainment. He has been using Hibernate intensively for over seven years, and is interested in best practices for data modeling and application design.<br/><br/>Hibernate Search by Example is a practical, step-by-step tutorial that will guide readers from understanding the basics of Hibernate Search to using its advanced features. This book explains how to integrate search into core Hibernate applications, whether they are XML, JPA, or annotation-based. Readers will learn how to fine-tune the relevance of search results, and design searches that can account for user typos or automatically reach for related terms.<br/><br/>Hibernate Search by Example provides everything a user needs to know to incorporate search functionality into custom applications. Moreover, this book teaches a reader how to write different kinds of search queries by keyword, exact phrase or by searching within a range, and to use pagination to work with and display search results one chunk at a time. In addition to this, readers will also get to understand defining of custom analyzers to help searches adjust for user typos and recognize related terms. They will also learn about applying conditional indexing logic to exclude certain data from being searchable, and making Hibernate Search aware of relationships for searches involving data points spread out over multiple classes.<br/><br/>The chapters covered in this book are:<br/><br/>Chapter 1: Your First Application<br/><br/>Chapter 2: Mapping Entity Classes<br/><br/>Chapter 3: Performing Queries<br/><br/>Chapter 4: Advanced Mapping<br/><br/>Chapter 5: Advanced Querying<br/><br/>Chapter 6: System Configuration and Index Management<br/><br/>Chapter 7: Advanced Performance Strategies<br/><br/>Filled with plenty of practical examples, this book is for developers with experience in Java and some basic relational database concepts. For more information, please visit the book page at: <a href="http://www.packtpub.com/hibernate-search-by-example/book" rel="nofollow">http://www.packtpub.com/hibernate-search-by-example/book</a> ]]></content:encoded>
      </item>
    <item>
        <title>Master distributed database management using Apache Cassandra.</title>
        <link>http://marakana.com/forums/apache/general/905.html</link>
        <author>Sachi Shah</author>
        <guid isPermaLink="true">http://marakana.com/forums/apache/general/905.html</guid>
        <pubDate>Tue, 14 May 2013 23:02:40 -0700</pubDate>
        <category>Apache - General</category>
        <content:encoded><![CDATA[<a href="http://www.packtpub.com/apache-cassandra-for-developers/book" rel="nofollow">Instant Apache Cassandra</a> for Developers Starter is a practical guide to installing and configuring Apache Cassandra for optimized distributed database management. With relevant real-life case studies, implementing Cassandra’s internal and storage architecture for scalable big data solutions has never been easier.<br/><br/>About the Author:<br/><br/>Vivek Mishra is an IT professional, trainer and blogger with more than nine years of experience in software development, using various technologies such as Java, J2ee, Mule, Spring, Cassandra and Hadoop, just to name a few. He has worked with numerous SCMs, in the banking and finance industries, and is currently employed with Impetus Infotech Pvt. Ltd.<br/><br/>Instant Apache Cassandra for Developers Starter will take readers through the foundations of Cassandra to the development of real-world applications. Using real-life case studies, readers will learn how to install, configure, administrate with CQL, and optimize Cassandra. By the end of this book, they will be familiar with Cassandra and will be ready to develop powerful big data solutions.<br/><br/>The book starts by introducing the reader to how Cassandra works and explains its powerful storage architecture, and how it can be leveraged to create scalable big data solutions. By the end of the book readers will see why Cassandra is so much better than the traditional RDBMS system.<br/><br/>Beginners or professionals looking to learn effective distributed database management to handle large amounts of data with no single point of failure will find this book useful. For more information, please visit the book page at: <a href="http://www.packtpub.com/apache-cassandra-for-developers/book" rel="nofollow">http://www.packtpub.com/apache-cassandra-for-developers/book</a>]]></content:encoded>
      </item>
    <item>
        <title>Redirect output from rxvt shell to a file</title>
        <link>http://marakana.com/forums/git/git/901.html</link>
        <author>Nithin Kamble</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/901.html</guid>
        <pubDate>Tue, 30 Apr 2013 02:31:32 -0700</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[I'm using rxvt.exe program to run a few commands. But when a command fails, it does not display the error which occured. Is there a way where I can redirect the error messages to say, a text file?]]></content:encoded>
      </item>
    <item>
        <title>UpdaterService error after refactoring</title>
        <link>http://marakana.com/forums/android/learning_android_book/899.html</link>
        <author>Neville Turbit</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/899.html</guid>
        <pubDate>Thu, 25 Apr 2013 19:10:33 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[I have made it through to the second last tutorial but am stuck right at the end. I am at the point where I am getting rid of StatusData and have a bug in the UpdaterService.  I changed the references from StatusData to StausProvider in a number of places but the following section is causing an error.<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">@Override<br/>	public int onStartCommand(Intent intent, int flags, int startId) {<br/>		running=true;<br/>		new Thread(){<br/>			StatusProvider statusProvider = ((StatusProvider)getApplication().StatusProvider());<br/>			public void run(){</pre>
		  </div><br/><br/>It is the line: <br/><code class="inline">StatusProvider statusProvider = ((StatusProvider)getApplication().StatusProvider);</code><br/><br/>which has an error.<br/>From memory, before I deleted StatusData, it was originally<br/><code class="inline">StatusData statusData = ((YambaApp)getApplication().StatusData);</code><br/> <br/>"The method StatusProvider is undefined for the type Application."  <br/>The solution offered is to <br/>"Add cast to getApplication()"<br/><br/>I am new to Java so out of my depth here.  I have gone back to the book but it seems to follow a different path to the tutorials.  Would appreciate some help.]]></content:encoded>
      </item>
    <item>
        <title>how to save date to mysql database from android</title>
        <link>http://marakana.com/forums/android/examples/898.html</link>
        <author>Anum Bukhari</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/898.html</guid>
        <pubDate>Wed, 24 Apr 2013 18:55:42 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[I am developing android app of tender system where supplier has to register where he enters his reg date ,user name andall information related to it.The problem is in saving date to php mysql.What i have to use either or datepicker or a date edit text.Whic approach is better. and also refer me links of tutorials.i am student it is my final year project.please help me out]]></content:encoded>
      </item>
    <item>
        <title>how to save date to mysql database</title>
        <link>http://marakana.com/forums/android/learning_android_book/897.html</link>
        <author>Anum Bukhari</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/897.html</guid>
        <pubDate>Wed, 24 Apr 2013 18:54:30 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[I am developing android app of tender system where supplier has to register where he enters his reg date ,user name andall information related to it.The problem is in saving date to php mysql.What i have to use either or datepicker or a date edit text.Whic approach is better. and also refer me links of tutorials.i am student it is my final year project.please help me out ]]></content:encoded>
      </item>
    <item>
        <title>Question About Reset and Push</title>
        <link>http://marakana.com/forums/git/git/896.html</link>
        <author>Derek Abraham</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/896.html</guid>
        <pubDate>Tue, 23 Apr 2013 15:37:37 -0700</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[I pushed a bad commit.  I reset my branch back to a good commit, then pushed.  My working tree looks good. However, my team is still seeing files that were from the bad commit.  Why don't they see my reset?]]></content:encoded>
      </item>
    <item>
        <title>HTML5 Menu Items in One File</title>
        <link>http://marakana.com/forums/html5/general/895.html</link>
        <author>Robert Olsen</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/895.html</guid>
        <pubDate>Tue, 23 Apr 2013 12:36:05 -0700</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[I maintain a website that currently has 16 pages and is bound to grow. Currently, when there is a new section / page, etc. I need to change several pages to add that section or page. I would like to maintain the menu items in one file and include that file on each page. That way I would only have to update the menu items in one place.<br/>Does anyone have a good suggestion on how to do this?<br/>I've tried creating an html page with just the menu items using &lt;ul&gt; and &lt;li&gt; without a &lt;head&gt; section in it and include that file using a &lt;a&gt; tag, but that hasn't been working for me.<br/>I would appreciate any suggestions on how to do this.<br/>Thank you!]]></content:encoded>
      </item>
    <item>
        <title>HTML5 Chain Reaction</title>
        <link>http://marakana.com/forums/html5/general/893.html</link>
        <author>Daynie Sastrowardjodjo</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/893.html</guid>
        <pubDate>Wed, 17 Apr 2013 03:33:41 -0700</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[Dear All<br/><br/>Anyone know how to do this? <a href="http://experimentgame.com/" rel="nofollow">http://experimentgame.com/</a><br/>I have no clue to start the logic programming. Please any suggest would so appreciate.<br/><br/><br/>Regards]]></content:encoded>
      </item>
    <item>
        <title>Yamba twitter like application issue (Too many redirects)</title>
        <link>http://marakana.com/forums/android/examples/892.html</link>
        <author>Vaibhav Patil</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/892.html</guid>
        <pubDate>Tue, 16 Apr 2013 10:37:38 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Hi,<br/>I am facing a following exception while fetching the getFriendsTimeline()<br/>i.e. timeline = yamba.getTwitter().getFriendsTimeline();<br/>I am running the yamba application on Emulator5554:Android4.1.2<br/><br/>Logs:<br/><br/>04-16 16:55:17.286: D/UpdateService(14900): Failed to connect to twitter service<br/>04-16 16:55:17.286: D/UpdateService(14900): winterwell.jtwitter.TwitterException: java.net.ProtocolException: Too many redirects<br/>04-16 16:55:17.286: D/UpdateService(14900): 	at winterwell.jtwitter.URLConnectionHttpClient.processError(URLConnectionHttpClient.java:516)<br/>04-16 16:55:17.286: D/UpdateService(14900): 	at winterwell.jtwitter.URLConnectionHttpClient.connect(URLConnectionHttpClient.java:154)<br/>04-16 16:55:17.286: D/UpdateService(14900): 	at winterwell.jtwitter.URLConnectionHttpClient.getPage2(URLConnectionHttpClient.java:295)<br/>04-16 16:55:17.286: D/UpdateService(14900): 	at winterwell.jtwitter.URLConnectionHttpClient.getPage(URLConnectionHttpClient.java:233)<br/>04-16 16:55:17.286: D/UpdateService(14900): 	at winterwell.jtwitter.Twitter.getStatuses(Twitter.java:1676)<br/>04-16 16:55:17.286: D/UpdateService(14900): 	at winterwell.jtwitter.Twitter.getHomeTimeline(Twitter.java:1178)<br/>04-16 16:55:17.286: D/UpdateService(14900): 	at winterwell.jtwitter.Twitter.getFriendsTimeline(Twitter.java:1169)<br/>04-16 16:55:17.286: D/UpdateService(14900): 	at com.example.yamba.UpdateService$Updater.run(UpdateService.java:94)<br/>04-16 16:55:17.286: D/UpdateService(14900): Caused by: java.net.ProtocolException: Too many redirects<br/>04-16 16:55:17.286: D/UpdateService(14900): 	at libcore.net.http.HttpURLConnectionImpl.processResponseHeaders(HttpURLConnectionImpl.java:377)<br/>04-16 16:55:17.286: D/UpdateService(14900): 	at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:301)<br/>04-16 16:55:17.286: D/UpdateService(14900): 	at libcore.net.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:495)<br/>04-16 16:55:17.286: D/UpdateService(14900): 	at winterwell.jtwitter.URLConnectionHttpClient.processError(URLConnectionHttpClient.java:451)<br/>04-16 16:55:17.286: D/UpdateService(14900): 	... 7 more<br/><br/><br/>Is there any setting we have do explicitly in the application?<br/>Please suggest me the solution.<br/><br/>Thanks]]></content:encoded>
      </item>
    <item>
        <title>getPublicTimeline(); doesnt work</title>
        <link>http://marakana.com/forums/android/learning_android_book/891.html</link>
        <author>Ashish Sachdeva</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/891.html</guid>
        <pubDate>Sat, 13 Apr 2013 04:17:09 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[hy m a new bie in developing...<br/>while goin through the services example in you online videos m stuck....<br/>the method getPublicTimeline();<br/>shows an error on eclipse....plz help<br/>here my code<br/>[/code]<br/>package com.example.Yamba;<br/><br/>import java.util.List;<br/><br/>import winterwell.jtwitter.Status;<br/>import winterwell.jtwitter.Twitter;<br/>import winterwell.jtwitter.TwitterException;<br/>import android.app.Service;<br/>import android.content.Intent;<br/>import android.os.IBinder;<br/>import android.util.Log;<br/><br/><br/>public class UpdaterService extends Service {<br/>static final String TAG ="Updater Service";<br/>Twitter twitter;<br/>@Override<br/>	public IBinder onBind(Intent arg0) {<br/>		<br/>		return null;<br/>	}<br/><br/>	@SuppressWarnings("deprecation")<br/>	@Override<br/>	public void onCreate() {<br/>Log.d(TAG,"on created");<br/>super.onCreate();<br/>twitter =new Twitter("student","password");<br/>twitter.setAPIRootUrl("http://yamba.marakana.com/api");<br/>	}<br/><br/>	<br/>	@Override<br/>	public int onStartCommand(Intent intent, int flags, int startId) {<br/>		<br/>		new Thread(){<br/>			public void run(){<br/>		<br/>		<br/>		try {<br/>			<br/>			List&lt;Status&gt; timeline= twitter.getPublicTimeline();<br/>			<br/>			for (Status status: timeline)<br/>			{<br/>				<br/>				Log.d(TAG, String.format("%s:%s" ,status.user.name ,status.text));<br/>			}<br/>		} catch (TwitterException e) {<br/>			// TODO Auto-generated catch block<br/>			e.printStackTrace();<br/>		}}}.start();<br/>		<br/>		<br/>		<br/>		<br/>		<br/>		<br/>		return super.onStartCommand(intent, flags, startId);<br/>			}<br/>	<br/>	@Override<br/>	public void onDestroy() {<br/>		Log.d(TAG,"on destroyed");<br/>		super.onDestroy();<br/>	}<br/><br/>	<br/><br/>}<br/>[code]]]></content:encoded>
      </item>
    <item>
        <title>Android Camera App</title>
        <link>http://marakana.com/forums/android/general/890.html</link>
        <author>Rad Remo</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/890.html</guid>
        <pubDate>Fri, 12 Apr 2013 06:57:22 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[We developed a Camera app using the Marakana API example. The app is running great but we lost the source files. I needed to make a few alterations in the code and extracted the apk but then when I run it I get errors. I am unable to understand what exactly the error could be. Could some one help me out with this.<br/>here are the codes.<br/><br/>CameraActivity.java<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">package com.marakana;<br/><br/>import android.app.Activity;<br/>import android.content.Intent;<br/>import android.content.IntentFilter;<br/>import android.hardware.Camera;<br/>import android.hardware.Camera.PictureCallback;<br/>import android.hardware.Camera.ShutterCallback;<br/>import android.net.Uri;<br/>import android.os.Bundle;<br/>import android.util.Log;<br/>import android.view.View;<br/>import android.view.View.OnClickListener;<br/>import android.widget.Button;<br/>import android.widget.FrameLayout;<br/>import android.widget.LinearLayout;<br/><br/>public class CameraActivity extends Activity<br/>  implements View.OnClickListener, HardButtonReceiver.HardButtonListener<br/>{<br/>  private static final String TAG = "CameraDemo";<br/>  Button buttonClick;<br/>  LinearLayout buttons;<br/>  public String filename;<br/>  Camera.PictureCallback jpegCallback = new CameraActivity.3(this);<br/>  private HardButtonReceiver mButtonReceiver;<br/>  Preview preview;<br/>  Camera.PictureCallback rawCallback = new CameraActivity.2(this);<br/>  Camera.ShutterCallback shutterCallback = new CameraActivity.1(this);<br/><br/>  public void killit()<br/>  {<br/>    finish();<br/>  }<br/><br/>  public void onClick(View paramView)<br/>  {<br/>    switch (paramView.getId())<br/>    {<br/>    default:<br/>    case 2131034115:<br/>    case 2131034116:<br/>    case 2131034118:<br/>    case 2131034117:<br/>    }<br/>    while (true)<br/>    {<br/>      return;<br/>      this.preview.camera.takePicture(this.shutterCallback, this.rawCallback, this.jpegCallback);<br/>      continue;<br/>      this.preview.camera.startPreview();<br/>      continue;<br/>      finish();<br/>      continue;<br/>      Intent localIntent = new Intent("android.intent.action.SEND");<br/>      String[] arrayOfString = new String[1];<br/>      arrayOfString[0] = "findsid247@gmail.com";<br/>      localIntent.putExtra("android.intent.extra.EMAIL", arrayOfString);<br/>      localIntent.putExtra("android.intent.extra.SUBJECT", "Email Subject");<br/>      localIntent.putExtra("android.intent.extra.TEXT", "Email Message");<br/>      localIntent.setType("image/jpg");<br/>      localIntent.putExtra("android.intent.extra.STREAM", Uri.parse("file://" + this.filename));<br/>      startActivity(Intent.createChooser(localIntent, "Send Email"));<br/>      Log.d("FILEPATH", "file:///" + this.filename);<br/>      finish();<br/>    }<br/>  }<br/><br/>  public void onCreate(Bundle paramBundle)<br/>  {<br/>    super.onCreate(paramBundle);<br/>    setContentView(2130903040);<br/>    this.preview = new Preview(this);<br/>    this.mButtonReceiver = new HardButtonReceiver(this);<br/>    IntentFilter localIntentFilter = new IntentFilter("android.intent.action.MEDIA_BUTTON");<br/>    localIntentFilter.setPriority(1001);<br/>    registerReceiver(this.mButtonReceiver, localIntentFilter);<br/>    ((FrameLayout)findViewById(2131034113)).addView(this.preview);<br/>    this.buttonClick = ((Button)findViewById(2131034116));<br/>    this.buttonClick.setVisibility(8);<br/>    this.buttonClick.setOnClickListener(this);<br/>    this.buttonClick = ((Button)findViewById(2131034117));<br/>    this.buttonClick.setVisibility(8);<br/>    this.buttonClick.setOnClickListener(this);<br/>    this.buttonClick = ((Button)findViewById(2131034115));<br/>    this.buttonClick.setOnClickListener(this);<br/>    this.buttonClick = ((Button)findViewById(2131034118));<br/>    this.buttonClick.setVisibility(0);<br/>    this.buttonClick.setOnClickListener(this);<br/>    this.buttons = ((LinearLayout)findViewById(2131034114));<br/>    this.buttons.bringToFront();<br/>    Log.d("CameraDemo", "onCreate'd");<br/>  }<br/><br/>  public void onNextButtonPress()<br/>  {<br/>  }<br/><br/>  public void onPlayPauseButtonPress()<br/>  {<br/>    CameraActivity.4 local4 = new CameraActivity.4(this);<br/>    this.preview.camera.autoFocus(local4);<br/>  }<br/><br/>  public void onPrevButtonPress()<br/>  {<br/>  }<br/><br/>  public void onStop(Bundle paramBundle)<br/>  {<br/>    this.preview.camera.release();<br/>  }<br/>}<br/></pre>
		  </div><br/><br/>HardButtonReceiver.java<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>package com.marakana;<br/><br/>import android.content.BroadcastReceiver;<br/>import android.content.Context;<br/>import android.content.Intent;<br/>import android.util.Log;<br/>import android.view.KeyEvent;<br/><br/>public class HardButtonReceiver extends BroadcastReceiver<br/>{<br/>  private static final String TAG = "gauntface";<br/>  private HardButtonListener mButtonListener;<br/><br/>  public HardButtonReceiver(HardButtonListener paramHardButtonListener)<br/>  {<br/>    this.mButtonListener = paramHardButtonListener;<br/>  }<br/><br/>  public void onReceive(Context paramContext, Intent paramIntent)<br/>  {<br/>    Log.d("gauntface", "HardButtonReceiver: Button press received");<br/>    int i;<br/>    if (this.mButtonListener != null)<br/>    {<br/>      abortBroadcast();<br/>      KeyEvent localKeyEvent = (KeyEvent)paramIntent.getParcelableExtra("android.intent.extra.KEY_EVENT");<br/>      if (localKeyEvent.getAction() == 1)<br/>      {<br/>        i = localKeyEvent.getKeyCode();<br/>        if (i != 87)<br/>          break label63;<br/>        this.mButtonListener.onNextButtonPress();<br/>      }<br/>    }<br/>    while (true)<br/>    {<br/>      return;<br/>      label63: if (i == 88)<br/>      {<br/>        this.mButtonListener.onPrevButtonPress();<br/>        continue;<br/>      }<br/>      if (i != 79)<br/>        continue;<br/>      this.mButtonListener.onPlayPauseButtonPress();<br/>    }<br/>  }<br/><br/>  public static abstract interface HardButtonListener<br/>  {<br/>    public abstract void onNextButtonPress();<br/><br/>    public abstract void onPlayPauseButtonPress();<br/><br/>    public abstract void onPrevButtonPress();<br/>  }<br/>}<br/></pre>
		  </div><br/><br/>preview.java<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>package com.marakana;<br/><br/>import android.content.Context;<br/>import android.hardware.Camera;<br/>import android.hardware.Camera.Parameters;<br/>import android.view.SurfaceHolder;<br/>import android.view.SurfaceHolder.Callback;<br/>import android.view.SurfaceView;<br/>import java.io.IOException;<br/><br/>class Preview extends SurfaceView<br/>  implements SurfaceHolder.Callback<br/>{<br/>  private static final String TAG = "Preview";<br/>  public Camera camera;<br/>  public String filename;<br/>  SurfaceHolder mHolder = getHolder();<br/><br/>  Preview(Context paramContext)<br/>  {<br/>    super(paramContext);<br/>    this.mHolder.addCallback(this);<br/>    this.mHolder.setType(3);<br/>  }<br/><br/>  public void surfaceChanged(SurfaceHolder paramSurfaceHolder, int paramInt1, int paramInt2, int paramInt3)<br/>  {<br/>    this.camera.startPreview();<br/>  }<br/><br/>  public void surfaceCreated(SurfaceHolder paramSurfaceHolder)<br/>  {<br/>    this.camera = Camera.open();<br/>    try<br/>    {<br/>      this.camera.setPreviewDisplay(paramSurfaceHolder);<br/>      Camera.Parameters localParameters = this.camera.getParameters();<br/>      localParameters.setPictureSize(2560, 1920);<br/>      this.camera.setParameters(localParameters);<br/>      this.camera.setPreviewCallback(new Preview.1(this));<br/>      return;<br/>    }<br/>    catch (IOException localIOException)<br/>    {<br/>      while (true)<br/>        localIOException.printStackTrace();<br/>    }<br/>  }<br/><br/>  public void surfaceDestroyed(SurfaceHolder paramSurfaceHolder)<br/>  {<br/>    this.camera.stopPreview();<br/>    this.camera.release();<br/>    this.camera = null;<br/>  }<br/>}<br/></pre>
		  </div><br/><br/>opening.java<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>package com.marakana;<br/><br/>import android.app.Activity;<br/>import android.content.Intent;<br/>import android.os.Bundle;<br/>import android.view.View;<br/>import android.view.View.OnClickListener;<br/>import android.widget.Button;<br/><br/>public class opening extends Activity<br/>  implements View.OnClickListener<br/>{<br/>  Button enter;<br/><br/>  public void onClick(View paramView)<br/>  {<br/>    switch (paramView.getId())<br/>    {<br/>    default:<br/>    case 2131034121:<br/>    }<br/>    while (true)<br/>    {<br/>      return;<br/>      startActivity(new Intent(this, CameraActivity.class));<br/>    }<br/>  }<br/><br/>  protected void onCreate(Bundle paramBundle)<br/>  {<br/>    super.onCreate(paramBundle);<br/>    setContentView(2130903042);<br/>    this.enter = ((Button)findViewById(2131034121));<br/>    this.enter.setOnClickListener(this);<br/>  }<br/><br/>  protected void onResume(Bundle paramBundle)<br/>  {<br/>  }<br/>}<br/></pre>
		  </div><br/><br/>here is the logcat error<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>04-12 19:19:56.499: D/AndroidRuntime(9304): Shutting down VM<br/>04-12 19:19:56.509: W/dalvikvm(9304): threadid=1: thread exiting with uncaught exception (group=0x40018578)<br/>04-12 19:19:56.539: E/AndroidRuntime(9304): FATAL EXCEPTION: main<br/>04-12 19:19:56.539: E/AndroidRuntime(9304): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.marakana/com.marakana.opening}: java.lang.ClassNotFoundException: com.marakana.opening in loader dalvik.system.PathClassLoader[/data/app/com.marakana-1.apk]<br/>04-12 19:19:56.539: E/AndroidRuntime(9304): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1573)<br/>04-12 19:19:56.539: E/AndroidRuntime(9304): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)<br/>04-12 19:19:56.539: E/AndroidRuntime(9304): 	at android.app.ActivityThread.access$1500(ActivityThread.java:117)<br/>04-12 19:19:56.539: E/AndroidRuntime(9304): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)<br/>04-12 19:19:56.539: E/AndroidRuntime(9304): 	at android.os.Handler.dispatchMessage(Handler.java:99)<br/>04-12 19:19:56.539: E/AndroidRuntime(9304): 	at android.os.Looper.loop(Looper.java:130)<br/>04-12 19:19:56.539: E/AndroidRuntime(9304): 	at android.app.ActivityThread.main(ActivityThread.java:3687)<br/>04-12 19:19:56.539: E/AndroidRuntime(9304): 	at java.lang.reflect.Method.invokeNative(Native Method)<br/>04-12 19:19:56.539: E/AndroidRuntime(9304): 	at java.lang.reflect.Method.invoke(Method.java:507)<br/>04-12 19:19:56.539: E/AndroidRuntime(9304): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)<br/>04-12 19:19:56.539: E/AndroidRuntime(9304): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)<br/>04-12 19:19:56.539: E/AndroidRuntime(9304): 	at dalvik.system.NativeStart.main(Native Method)<br/>04-12 19:19:56.539: E/AndroidRuntime(9304): Caused by: java.lang.ClassNotFoundException: com.marakana.opening in loader dalvik.system.PathClassLoader[/data/app/com.marakana-1.apk]<br/>04-12 19:19:56.539: E/AndroidRuntime(9304): 	at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)<br/>04-12 19:19:56.539: E/AndroidRuntime(9304): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:551)<br/>04-12 19:19:56.539: E/AndroidRuntime(9304): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:511)<br/>04-12 19:19:56.539: E/AndroidRuntime(9304): 	at android.app.Instrumentation.newActivity(Instrumentation.java:1021)<br/>04-12 19:19:56.539: E/AndroidRuntime(9304): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1565)<br/>04-12 19:19:56.539: E/AndroidRuntime(9304): 	... 11 more<br/></pre>
		  </div>]]></content:encoded>
      </item>
    <item>
        <title>Multiple Redirects HTTP 302 error.</title>
        <link>http://marakana.com/forums/android/learning_android_book/889.html</link>
        <author>Android Nexus</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/889.html</guid>
        <pubDate>Thu, 11 Apr 2013 12:01:41 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi,<br/><br/>I was doing the Chapter 8 in the book and added calls to get the friends timeline.<br/><br/>	timeline = yamba.getTwitter().getFriendsTimeline();<br/><br/>I get a multiple redirects error. Upon taking network traces this is what's happening.<br/><br/>Request: URI: <a href="http://yamba.marakana.com/api/statuses/home_timeline.json?include_entities=1&amp;" rel="nofollow">http://yamba.marakana.com/api/statuses/home_timeline.json?include_entities=1&amp;</a><br/>Response: HTTP 302. Moved Temporarily. Location:  <a href="http://marakana.com/s/tags/breaking_open/?include_entities=1&amp;" rel="nofollow">http://marakana.com/s/tags/breaking_open/?include_entities=1&amp;</a><br/><br/>Next Request sent to:<br/>Request: URI: <a href="http://marakana.com/s/tags/breaking_open/?include_entities=1&amp;" rel="nofollow">http://marakana.com/s/tags/breaking_open/?include_entities=1&amp;</a><br/>Response: HTTP 302. Moved Temporarily. Location:  <a href="http://marakana.com/s/tags/breaking_open/?include_entities=1&amp;" rel="nofollow">http://marakana.com/s/tags/breaking_open/?include_entities=1&amp;</a><br/><br/>Same as for the 1st request. So is it a bug in the markana server ? If so, how can I get around it?<br/><br/>Thanks.]]></content:encoded>
      </item>
    <item>
        <title>Refresh will no longer work.</title>
        <link>http://marakana.com/forums/android/learning_android_book/888.html</link>
        <author>Neville Turbit</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/888.html</guid>
        <pubDate>Thu, 11 Apr 2013 02:07:46 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[I am working through both the tutorials and the book. All was working until I got to the database lesson.  Now nothing seems to work.  Spent a few hours trying to find out what is wrong but it is beyond me.  Problem is in the refresh as well as start service.  I commented out much of the code to simplify the operation.  This is what I have in the relevant section of RefreshService.java<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>	@Override<br/>	protected void onHandleIntent(Intent intent) {<br/>		Log.d(TAG, "start onHandleIntent");<br/>		//		StatusData statusData = ((YambaApp)getApplication()).statusData;<br/>//		try {<br/>			List&lt;Status&gt; timeline = ((YambaApp) getApplication()).getTwitter().getPublicTimeline(); <br/>		//} catch (TwitterException e) {<br/>//			Log.e(TAG, "Failed to access Twitter Service", e);<br/>//		}<br/>			Log.d(TAG, "onHandleIntentTest");<br/><br/>		for(Status status : timeline){<br/>			//				statusData.insert(status);<br/>			Log.d(TAG, String.format("%s: %s", status.user.name, status.text));<br/>		}<br/>	}<br/></pre>
		  </div><br/><br/>It is failing on the List&lt;Status&gt; line.  Here is LogCat.<br/><br/>[/code]<br/>04-11 08:58:06.918: D/gralloc_goldfish(1536): Emulator without GPU emulation detected.<br/>04-11 08:58:11.269: D/dalvikvm(1536): GC_CONCURRENT freed 95K, 8% free 2647K/2852K, paused 13ms+0ms, total 15ms<br/>04-11 08:58:12.855: D/RefreshService(1536): onCreated<br/>04-11 08:58:12.855: D/RefreshService(1536): start onHandleIntent<br/>04-11 08:58:12.855: W/dalvikvm(1536): threadid=12: thread exiting with uncaught exception (group=0xb2cba908)<br/>04-11 08:58:12.855: E/AndroidRuntime(1536): FATAL EXCEPTION: IntentService[RefreshService]<br/>04-11 08:58:12.855: E/AndroidRuntime(1536): java.lang.ClassCastException: android.app.Application cannot be cast to com.example.yamba2.YambaApp<br/>04-11 08:58:12.855: E/AndroidRuntime(1536): 	at com.example.yamba2.RefreshService.onHandleIntent(RefreshService.java:27)<br/>04-11 08:58:12.855: E/AndroidRuntime(1536): 	at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)<br/>04-11 08:58:12.855: E/AndroidRuntime(1536): 	at android.os.Handler.dispatchMessage(Handler.java:99)<br/>04-11 08:58:12.855: E/AndroidRuntime(1536): 	at android.os.Looper.loop(Looper.java:137)<br/>04-11 08:58:12.855: E/AndroidRuntime(1536): 	at android.os.HandlerThread.run(HandlerThread.java:60)<br/>[/code]<br/><br/>I suspect there is a problem in running the thread but don't know where to go from here.  Would appreciate any help.]]></content:encoded>
      </item>
    <item>
        <title>Chapter 14: AIDL crash because client project can&apos;t find class definition in service project</title>
        <link>http://marakana.com/forums/android/learning_android_book/884.html</link>
        <author>Cullen SUN</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/884.html</guid>
        <pubDate>Wed, 10 Apr 2013 02:23:08 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Thanks a lot for help in advance:<br/><br/>I followed the codes in the book, but:<br/><br/><strong>Crashed here:</strong><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>	logService = ILogService.Stub.asInterface(service); //7<br/></pre>
		  </div><br/><br/><strong>Stacks in Debug window:</strong><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>Thread [&lt;1&gt; main] (Suspended (exception NoClassDefFoundError))	<br/>	LogActivity$LogConnection.onServiceConnected(ComponentName, IBinder) line: 40	<br/>	LoadedApk$ServiceDispatcher.doConnected(ComponentName, IBinder) line: 1061	<br/>	LoadedApk$ServiceDispatcher$RunConnection.run() line: 1078	<br/>	ActivityThread$H(Handler).handleCallback(Message) line: 605	<br/>	ActivityThread$H(Handler).dispatchMessage(Message) line: 92	<br/>	Looper.loop() line: 137	<br/>	ActivityThread.main(String[]) line: 4340	<br/>	Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method]	<br/>	Method.invoke(Object, Object...) line: 511	<br/>	ZygoteInit$MethodAndArgsCaller.run() line: 784	<br/>	ZygoteInit.main(String[]) line: 551	<br/>	NativeStart.main(String[]) line: not available [native method]	<br/><br/></pre>
		  </div><br/><br/><strong>Logcat records: </strong><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>04-10 17:14:10.589: I/System.out(669): waiting for debugger to settle...<br/>04-10 17:14:10.791: I/System.out(669): debugger has settled (1428)<br/>04-10 17:14:11.315: I/dalvikvm(669): Could not find method com.razorfish.logservice.ILogService.log_d, referenced from method com.razorfish.logclient.LogActivity.onClick<br/>04-10 17:14:11.325: W/dalvikvm(669): VFY: unable to resolve interface method 3302: Lcom/razorfish/logservice/ILogService;.log_d (Ljava/lang/String;Ljava/lang/String;)V<br/>04-10 17:14:11.325: D/dalvikvm(669): VFY: replacing opcode 0x72 at 0x0006<br/>04-10 17:14:11.335: D/dalvikvm(669): DexOpt: unable to opt direct call 0x0ce7 at 0x0f in Lcom/razorfish/logclient/LogActivity;.onClick<br/>04-10 17:14:11.686: I/dalvikvm(669): Could not find method com.razorfish.logservice.ILogService$Stub.asInterface, referenced from method com.razorfish.logclient.LogActivity$LogConnection.onServiceConnected<br/>04-10 17:14:11.686: W/dalvikvm(669): VFY: unable to resolve static method 3300: Lcom/razorfish/logservice/ILogService$Stub;.asInterface (Landroid/os/IBinder;)Lcom/razorfish/logservice/ILogService;<br/></pre>
		  </div>]]></content:encoded>
      </item>
    <item>
        <title>Question on Undo  In Git</title>
        <link>http://marakana.com/forums/git/git/883.html</link>
        <author>Krishna Rai</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/883.html</guid>
        <pubDate>Tue, 09 Apr 2013 11:24:09 -0700</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[Hi,<br/><br/>We are using git version control for our application. I want to ask if we push the code to master repo and then went on live master environment and pulled the changes. In a one pull there are multiple commit ids which comes to live. <br/><br/>Now if we a facing problem due to some commit id. Now I want to undo some commit from live master then how can I do?<br/><br/>Is this possible or not? If not is there any other alternate solution? <br/><br/>Kindly help me.]]></content:encoded>
      </item>
    <item>
        <title>[Example] Android HTTP Tutorial</title>
        <link>http://marakana.com/forums/android/examples/882.html</link>
        <author>Nguyen Ba Thanh</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/882.html</guid>
        <pubDate>Mon, 08 Apr 2013 00:18:27 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[<strong>Download Image from Internet</strong><br/><br/>This simple sample, we will show you how to download a image from URL using HttpURLConnection.<br/>Create XML layout. main.xml<br/><br/><br/>   <div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"> &lt;?xml version="1.0" encoding="utf-8"?&gt;<br/>    &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"<br/>        android:layout_width="fill_parent"<br/>        android:layout_height="fill_parent"<br/>        android:background="#FFFFFF"<br/>        android:orientation="vertical" &gt;<br/>     <br/>        &lt;!-- Image view to show image after downloading --&gt;<br/>     <br/>        &lt;ImageView<br/>            android:id="@+id/my_image"<br/>            android:layout_width="fill_parent"<br/>            android:layout_height="wrap_content"<br/>            android:layout_weight="1" /&gt;<br/>        &lt;!-- Download Button --&gt;<br/>     <br/>        &lt;Button<br/>            android:id="@+id/btndownload"<br/>            android:layout_width="wrap_content"<br/>            android:layout_height="wrap_content"<br/>            android:layout_gravity="center_horizontal"<br/>            android:layout_margin="10dp"<br/>            android:text="Download Image" /&gt;<br/>     <br/>    &lt;/LinearLayout&gt;</pre>
		  </div><br/><br/>	<br/><br/>Required Permission.<br/><br/>    &lt;!-- Permission: Allow Connect to Internet --&gt;<br/>    &lt;uses-permission android:name="android.permission.INTERNET" /&gt;<br/><br/><strong>Download Image from URL using HttpURLConnection.</strong><br/><br/>   <div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"> int count;<br/>                try {<br/>                    URL url = new URL(f_url[0]);<br/>                    URLConnection conection = url.openConnection();<br/>                    conection.setConnectTimeout(TIME_OUT);<br/>                    conection.connect();<br/>                    // Getting file length<br/>                    int lenghtOfFile = conection.getContentLength();<br/>                    // Create a Input stream to read file - with 8k buffer<br/>                    InputStream input = new BufferedInputStream(url.openStream(),<br/>                            8192);<br/>                    // Output stream to write file<br/>                    OutputStream output = new FileOutputStream(<br/>                            "/sdcard/9androidnet.jpg");<br/>     <br/>                    byte data[] = new byte[1024];<br/>                    long total = 0;<br/>                    while ((count = input.read(data)) != -1) {<br/>                        total += count;<br/>                        // publishing the progress....<br/>                        // After this onProgressUpdate will be called<br/>                        publishProgress("" + (int) ((total * 100) / lenghtOfFile));<br/>                        // writing data to file<br/>                        output.write(data, 0, count);<br/>                    }<br/>                    // flushing output<br/>                    output.flush();<br/>                    // closing streams<br/>                    output.close();<br/>                    input.close();<br/>                } catch (SocketTimeoutException e) {<br/>                    connectionTimeout=true;<br/>                } catch (Exception e) {<br/>                    Log.e("Error: ", e.getMessage());<br/>                }</pre>
		  </div><br/><br/>	<br/><br/><strong>Full Code in MainActivity.java<br/></strong><br/><br/>   <div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"> public class MainActivity extends Activity {<br/>     <br/>        Button btnDownload;<br/>        // Progress Dialog<br/>        private ProgressDialog dialog;<br/>        ImageView myimage;<br/>        // Progress dialog type (0 - for Horizontal progress bar,1- for Vertical)<br/>        public static final int progress_bar_type = 0;<br/>     <br/>        // File url to download<br/>        private static String image_url = "http://www.9android.net/wp-content/uploads/2013/03/android-bikini.jpg";<br/>        private int TIME_OUT = 20000;// 20s<br/>        private boolean connectionTimeout=false;<br/>        @Override<br/>        public void onCreate(Bundle savedInstanceState) {<br/>            super.onCreate(savedInstanceState);<br/>            setContentView(R.layout.main);<br/>     <br/>            // show progress bar button<br/>            btnDownload = (Button) findViewById(R.id.btndownload);<br/>            // Image view to show image after downloading<br/>            myimage = (ImageView) findViewById(R.id.my_image);<br/>            /**<br/>             * Show Progress bar click event<br/>             * */<br/>            btnDownload.setOnClickListener(new View.OnClickListener() {<br/>     <br/>                @Override<br/>                public void onClick(View v) {<br/>                    // Starting new Async Task<br/>                    new DownloadImageFromURL().execute(image_url);<br/>                }<br/>            });<br/>        }<br/>     <br/>        /**<br/>         * Showing Dialog<br/>         * */<br/>        @Override<br/>        protected Dialog onCreateDialog(int id) {<br/>            switch (id) {<br/>            case progress_bar_type:<br/>                dialog = new ProgressDialog(this);<br/>                dialog.setMessage("Downloading file. Please wait...");<br/>                dialog.setIndeterminate(false);<br/>                dialog.setMax(100);<br/>                dialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);<br/>                dialog.setCancelable(true);<br/>                dialog.show();<br/>                return dialog;<br/>            default:<br/>                return null;<br/>            }<br/>        }<br/>     <br/>        /**<br/>         * @author: 9Android.net Background Async Task to download file from URL<br/>         * */<br/>        class DownloadImageFromURL extends AsyncTask&lt;String, String, String&gt; {<br/>     <br/>            /**<br/>             * Before starting background thread Show Progress Bar Dialog<br/>             * */<br/>            @Override<br/>            protected void onPreExecute() {<br/>                super.onPreExecute();<br/>                showDialog(progress_bar_type);<br/>            }<br/>     <br/>            /**<br/>             * Downloading file in background thread<br/>             * */<br/>            @Override<br/>            protected String doInBackground(String... f_url) {<br/>                int count;<br/>                try {<br/>                    URL url = new URL(f_url[0]);<br/>                    URLConnection conection = url.openConnection();<br/>                    conection.setConnectTimeout(TIME_OUT);<br/>                    conection.connect();<br/>                    // Getting file length<br/>                    int lenghtOfFile = conection.getContentLength();<br/>                    // Create a Input stream to read file - with 8k buffer<br/>                    InputStream input = new BufferedInputStream(url.openStream(),<br/>                            8192);<br/>                    // Output stream to write file<br/>                    OutputStream output = new FileOutputStream(<br/>                            "/sdcard/9androidnet.jpg");<br/>     <br/>                    byte data[] = new byte[1024];<br/>                    long total = 0;<br/>                    while ((count = input.read(data)) != -1) {<br/>                        total += count;<br/>                        // publishing the progress....<br/>                        // After this onProgressUpdate will be called<br/>                        publishProgress("" + (int) ((total * 100) / lenghtOfFile));<br/>                        // writing data to file<br/>                        output.write(data, 0, count);<br/>                    }<br/>                    // flushing output<br/>                    output.flush();<br/>                    // closing streams<br/>                    output.close();<br/>                    input.close();<br/>                } catch (SocketTimeoutException e) {<br/>                    connectionTimeout=true;<br/>                } catch (Exception e) {<br/>                    Log.e("Error: ", e.getMessage());<br/>                }<br/>     <br/>                return null;<br/>            }<br/>     <br/>            /**<br/>             * @author 9Android.net Updating progress bar<br/>             * */<br/>            protected void onProgressUpdate(String... progress) {<br/>                // setting progress percentage<br/>                dialog.setProgress(Integer.parseInt(progress[0]));<br/>            }<br/>     <br/>            /**<br/>             * After completing background task Dismiss the progress dialog<br/>             * **/<br/>            @Override<br/>            protected void onPostExecute(String file_url) {<br/>                if(connectionTimeout==true)<br/>                    {showToast("Connection Timeout");<br/>                     connectionTimeout=false;<br/>                    }<br/>                // dismiss the dialog after the file was downloaded<br/>                dismissDialog(progress_bar_type);<br/>     <br/>                // Displaying downloaded image into image view<br/>                // Reading image path from sdcard<br/>                String imagePath = Environment.getExternalStorageDirectory()<br/>                        .toString() + "/9androidnet.jpg";<br/>                // setting downloaded into image view<br/>                myimage.setImageDrawable(Drawable.createFromPath(imagePath));<br/>            }<br/>     <br/>        }<br/>     <br/>        /**<br/>         * @author 9Android.net<br/>         * @param text<br/>         */<br/>        private void showToast(String text) {<br/>            Toast.makeText(this, text, Toast.LENGTH_SHORT).show();<br/>        }<br/>    }<br/></pre>
		  </div><br/><br/>Download source : <a href="http://www.dl.9android.net/index.php?act=dl&amp;id=1363308938" rel="nofollow">http://www.dl.9android.net/index.php?act=dl&amp;id=1363308938</a><br/>Source: <a href="http://www.9android.net/http-protocol/" rel="nofollow">http://www.9android.net/http-protocol/</a>]]></content:encoded>
      </item>
    <item>
        <title>[Example]Show Alert Dialog in Android</title>
        <link>http://marakana.com/forums/android/examples/881.html</link>
        <author>Nguyen Ba Thanh</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/881.html</guid>
        <pubDate>Mon, 08 Apr 2013 00:11:19 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[<strong>1. Introducing Android Alert Dialog</strong><br/><br/>Dialog boxes are a common UI metaphor in desktop and web applications. They ’re used to help users<br/>answer questions, make selections, confirm actions, and read warning or error messages. An Android<br/>Dialog is a floating window that partially obscures the Activity that launched it.<br/>Creating alert dialog is very easy. In this tutorial i will be discussing about creating different alert dialogues with one button(ok button), two buttons(yes or no buttons) and three buttons(yes, no and cancel buttons).<br/><strong>2. Showing Alert Dialog<br/>2.1. Android alert dialog with One Button</strong><br/><br/>The following code will create a simple alert dialog with one button. In the following code setTitle() method is used for set Title to alert dialog. setMessage() is used for setting message to alert dialog. setIcon() is to set icon to alert dialog.<br/><br/><img src="http://img.9android.net/Code-Android/android-alert-dialog-tutorial/android-alert-dialog-tutorial-1.png" alt=""/><br/>	<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">// Creating alert Dialog with one Button<br/> <br/>            AlertDialog alertDialog1 = new AlertDialog.Builder(<br/>                    AlertDialogActivity.this).create();<br/> <br/>            // Setting Dialog Title<br/>            alertDialog1.setTitle("Alert Dialog");<br/> <br/>            // Setting Dialog Message<br/>            alertDialog1.setMessage("Welcome to 9Android.net");<br/> <br/>            // Setting Icon to Dialog<br/>            alertDialog1.setIcon(R.drawable.tick);<br/> <br/>            // Setting OK Button<br/>            alertDialog1.setButton("OK", new DialogInterface.OnClickListener() {<br/> <br/>                public void onClick(DialogInterface dialog, int which) {<br/>                    // Write your code here to execute after dialog<br/>                    // closed<br/>                    Toast.makeText(getApplicationContext(),<br/>                            "You clicked on OK", Toast.LENGTH_SHORT).show();<br/>                }<br/>            });<br/> <br/>            // Showing Alert Message<br/>            alertDialog1.show();</pre>
		  </div><br/><br/>	<br/><strong>2.2. Android alert dialog with Two Button</strong><br/><br/>The following code will create alert dialog with two button. setPositiveButton() is used to create a positive button in alert dialog and setNegativeButton() is used to invoke negative button to alert dialog.<br/><br/><img src="http://img.9android.net/Code-Android/android-alert-dialog-tutorial/android-alert-dialog-tutorial-2.png" alt=""/><br/><br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">AlertDialog.Builder alertDialog2 = new AlertDialog.Builder(<br/>        AlertDialogActivity.this);<br/> <br/>// Setting Dialog Title<br/>alertDialog2.setTitle("Confirm Delete...");<br/> <br/>// Setting Dialog Message<br/>alertDialog2.setMessage("Are you sure you want delete this file?");<br/> <br/>// Setting Icon to Dialog<br/>alertDialog2.setIcon(R.drawable.delete);<br/> <br/>// Setting Positive "Yes" Btn<br/>alertDialog2.setPositiveButton("YES",<br/>        new DialogInterface.OnClickListener() {<br/>            public void onClick(DialogInterface dialog, int which) {<br/>                // Write your code here to execute after dialog<br/>                Toast.makeText(getApplicationContext(),<br/>                        "You clicked on YES", Toast.LENGTH_SHORT)<br/>                        .show();<br/>            }<br/>        });<br/>// Setting Negative "NO" Btn<br/>alertDialog2.setNegativeButton("NO",<br/>        new DialogInterface.OnClickListener() {<br/>            public void onClick(DialogInterface dialog, int which) {<br/>                // Write your code here to execute after dialog<br/>                Toast.makeText(getApplicationContext(),<br/>                        "You clicked on NO", Toast.LENGTH_SHORT)<br/>                        .show();<br/>                dialog.cancel();<br/>            }<br/>        });<br/> <br/>// Showing Alert Dialog<br/>alertDialog2.show();</pre>
		  </div><br/><br/><strong>	<br/>2.3. Android alert dialog with Three Button</strong><br/><br/>Here setNeutralButton() is used to create a neutral cancel button<br/><br/><img src="http://img.9android.net/Code-Android/android-alert-dialog-tutorial/android-alert-dialog-tutorial-3.png" alt=""/><br/>	<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">// Creating alert Dialog with three Buttons<br/> <br/>AlertDialog.Builder alertDialog3 = new AlertDialog.Builder(<br/>        AlertDialogActivity.this);<br/> <br/>// Setting Dialog Title<br/>alertDialog3.setTitle("Save File...");<br/> <br/>// Setting Dialog Message<br/>alertDialog3.setMessage("Do you want to save this file?");<br/> <br/>// Setting Icon to Dialog<br/>alertDialog3.setIcon(R.drawable.save);<br/> <br/>// Setting Positive Yes Button<br/>alertDialog3.setPositiveButton("YES",<br/>        new DialogInterface.OnClickListener() {<br/> <br/>            public void onClick(DialogInterface dialog, int which) {<br/>                // User pressed Cancel button. Write Logic Here<br/>                Toast.makeText(getApplicationContext(),<br/>                        "You clicked on YES", Toast.LENGTH_SHORT)<br/>                        .show();<br/>            }<br/>        });<br/>// Setting Positive Yes Btn<br/>alertDialog3.setNeutralButton("NO",<br/>        new DialogInterface.OnClickListener() {<br/> <br/>            public void onClick(DialogInterface dialog, int which) {<br/>                // User pressed No button. Write Logic Here<br/>                Toast.makeText(getApplicationContext(),<br/>                        "You clicked on NO", Toast.LENGTH_SHORT)<br/>                        .show();<br/>            }<br/>        });<br/>// Setting Positive "Cancel" Btn<br/>alertDialog3.setNegativeButton("Cancel",<br/>        new DialogInterface.OnClickListener() {<br/> <br/>            public void onClick(DialogInterface dialog, int which) {<br/>                // User pressed Cancel button. Write Logic Here<br/>                Toast.makeText(getApplicationContext(),<br/>                        "You clicked on Cancel", Toast.LENGTH_SHORT)<br/>                        .show();<br/>            }<br/>        });<br/>// Showing Alert Dialog<br/>alertDialog3.show();<br/>break;</pre>
		  </div><br/><br/>Download source code : <a href="http://www.dl.9android.net/index.php?act=dl&amp;id=1365169978" rel="nofollow">http://www.dl.9android.net/index.php?act=dl&amp;id=1365169978</a><br/>Source : <a href="http://www.9android.net/show-alert-dialog/" rel="nofollow">http://www.9android.net/show-alert-dialog/</a>]]></content:encoded>
      </item>
    <item>
        <title>Adding search functionality to custom Listview</title>
        <link>http://marakana.com/forums/android/examples/880.html</link>
        <author>Nguyen Ba Thanh</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/880.html</guid>
        <pubDate>Mon, 08 Apr 2013 00:08:41 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[<strong>1. Introduce</strong><br/><br/>Adding search functionality to listview will filters the list data with a matching string, hence provides user an easy way to find the information he needs. In this simple tutorial i am discussing how to enable search filter to android custom ListView.<br/>In this tutorial,we will display list of picture and search picture by its name.<br/><br/><br/><strong>2. Filter Method in Adapter</strong><br/><br/>To filter the list data with a matching string from user,we use a Filter method in Adapter.<br/>Hide content 	<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">     /**<br/> * Filter<br/> * @author 9Android.net<br/> *<br/> */<br/>public void filter(String charText) {<br/>    charText = charText.toLowerCase();<br/>    picList.clear();<br/>    if (charText.length() == 0) {<br/>        picList.addAll(listpicOrigin);<br/>    } else {<br/>        for (Picture pic : listpicOrigin) {<br/>            if (pic.getPicName().toLowerCase().contains(charText)) {<br/>                picList.add(pic);<br/>            }<br/>        }<br/>    }<br/>    notifyDataSetChanged();<br/>}</pre>
		  </div><br/><br/><br/><br/><br/><strong>3. Code application</strong><br/><br/>PicListAdapter.java<br/><br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">public class PicListAdapter extends BaseAdapter {<br/>    private Context mContext;<br/>    private LayoutInflater mInflater;<br/>    private List&lt;Picture&gt; picList = null;<br/>    private ArrayList&lt;Picture&gt; listpicOrigin;<br/> <br/>    public PicListAdapter(Context context, List&lt;Picture&gt; picList) {<br/>        mContext = context;<br/>        this.picList = picList;<br/>        mInflater = LayoutInflater.from(mContext);<br/>        this.listpicOrigin = new ArrayList&lt;Picture&gt;();<br/>        this.listpicOrigin.addAll(picList);<br/>    }<br/> <br/>    public class ViewHolder {<br/>        TextView picName;<br/>        TextView picType;<br/>        ImageView picIcon;<br/>    }<br/> <br/>    public View getView(int position, View view, ViewGroup parent) {<br/>        final ViewHolder holder;<br/>        if (view == null) {<br/>            holder = new ViewHolder();<br/>            view = mInflater.inflate(R.layout.list_item, null);<br/>            holder.picName = (TextView) view.findViewById(R.id.pic_name_txt);<br/>            holder.picType = (TextView) view.findViewById(R.id.pic_type_txt);<br/>            holder.picIcon = (ImageView) view.findViewById(R.id.pic_icon_img);<br/>            view.setTag(holder);<br/>        } else {<br/>            holder = (ViewHolder) view.getTag();<br/>        }<br/> <br/>        holder.picName.setText(picList.get(position).getPicName());<br/>        holder.picType.setText(picList.get(position).getPicType());<br/>        holder.picIcon.setImageResource(picList.get(position).getPicSource());<br/> <br/>        return view;<br/>    }<br/> <br/>    public int getCount() {<br/>        return picList.size();<br/>    }<br/> <br/>    public Picture getItem(int position) {<br/>        return picList.get(position);<br/>    }<br/> <br/>    public long getItemId(int position) {<br/>        return position;<br/>    }<br/> <br/>    /**<br/>     * Filter<br/>     * @author 9Android.net<br/>     *<br/>     */<br/>    public void filter(String charText) {<br/>        charText = charText.toLowerCase();<br/>        picList.clear();<br/>        if (charText.length() == 0) {<br/>            picList.addAll(listpicOrigin);<br/>        } else {<br/>            for (Picture pic : listpicOrigin) {<br/>                if (pic.getPicName().toLowerCase().contains(charText)) {<br/>                    picList.add(pic);<br/>                }<br/>            }<br/>        }<br/>        notifyDataSetChanged();<br/>    }<br/> <br/>}</pre>
		  </div><br/><br/>	<br/><br/>MainActivity.java<br/>	<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">public class MainActivity extends Activity implements TextWatcher,<br/>        OnItemClickListener {<br/> <br/>    private static final int LIST_PIC_SCREEN = 0;<br/>    private static final int VIEW_PIC_SCREEN = 1;<br/> <br/>    private String[] listPicName = { "androidgirl_1", "androidgirl_2",<br/>            "androidgirl_3", "beautifulgirl_1", "beautifulgirl_2",<br/>            "bikinigirl_1", "bikinigirl_2", "bikinigirl_3", "cutegirl_1",<br/>            "cutegirl_2", "cutegirl_3", "cutegirl_4", "cutegirl_5",<br/>            "hotgirl_1", "hotgirl_2", "hotgirl_3", "nudegirl_1", "nudegirl_2",<br/>            "nudegirl_3", "nudegirl_4", "sexygirl_1", "sexygirl_2",<br/>            "sexygirl_3", "sportgirl_1", "sportgirl_2", "sportgirl_3",<br/>            "sportgirl_4" };<br/> <br/>    private String[] listPicType = { "android", "android", "android",<br/>            "beautiful", "beautiful", "bikini", "bikini", "bikini", "cutegirl",<br/>            "cutegirl", "cutegirl", "cutegirl", "cutegirl", "hotgirl",<br/>            "hotgirl", "hotgirl", "nude", "nude", "nude", "nude", "sexy",<br/>            "sexy", "sexy", "sport", "sport", "sport", "sport" };<br/>    private int[] listPicDrawable = { R.drawable.androidgirl_1,<br/>            R.drawable.androidgirl_2, R.drawable.androidgirl_3,<br/>            R.drawable.beautifulgirl_1, R.drawable.beautifulgirl_2,<br/>            R.drawable.bikinigirl_1, R.drawable.bikinigirl_2,<br/>            R.drawable.bikinigirl_3, R.drawable.cutegirl_1,<br/>            R.drawable.cutegirl_2, R.drawable.cutegirl_3,<br/>            R.drawable.cutegirl_4, R.drawable.cutegirl_5, R.drawable.hotgirl_1,<br/>            R.drawable.hotgirl_2, R.drawable.hotgirl_3, R.drawable.nudegirl_1,<br/>            R.drawable.nudegirl_2, R.drawable.nudegirl_3,<br/>            R.drawable.nudegirl_4, R.drawable.sexygirl_1,<br/>            R.drawable.sexygirl_2, R.drawable.sexygirl_3,<br/>            R.drawable.sportgirl_1, R.drawable.sportgirl_2,<br/>            R.drawable.sportgirl_3, R.drawable.sportgirl_4<br/> <br/>    };<br/> <br/>    private ArrayList&lt;Picture&gt; listPic = new ArrayList&lt;Picture&gt;();<br/>    private ListView listview;<br/>    private PicListAdapter adapter;<br/>    private EditText searchEdt;<br/>    private ViewFlipper fliper;<br/>    private ImageView viewpic;<br/> <br/>    @Override<br/>    public void onCreate(Bundle savedInstanceState) {<br/>        super.onCreate(savedInstanceState);<br/>        setContentView(R.layout.activity_main);<br/>        fliper = (ViewFlipper) findViewById(R.id.viewFlipper1);<br/>        listview = (ListView) findViewById(R.id.listView1);<br/>        for (int i = 0; i &lt; listPicName.length; i++) {<br/>            Picture pic = new Picture(listPicName[i], listPicType[i],<br/>                    listPicDrawable[i]);<br/>            listPic.add(pic);<br/>        }<br/>        adapter = new PicListAdapter(this, listPic);<br/>        listview.setAdapter(adapter);<br/>        listview.setOnItemClickListener(this);<br/> <br/>        searchEdt = (EditText) findViewById(R.id.search_edt);<br/>        searchEdt.addTextChangedListener(this);<br/>        viewpic = (ImageView) findViewById(R.id.viewpic_img);<br/>    }<br/> <br/>    @Override<br/>    public boolean onCreateOptionsMenu(Menu menu) {<br/>        getMenuInflater().inflate(R.menu.activity_main, menu);<br/>        return true;<br/>    }<br/> <br/>    /**<br/>     * @author 9Android.net<br/>     */<br/>    public void beforeTextChanged(CharSequence s, int start, int count,<br/>            int after) {<br/>        // TODO Auto-generated method stub<br/> <br/>    }<br/> <br/>    public void onTextChanged(CharSequence s, int start, int before, int count) {<br/>        // TODO Auto-generated method stub<br/> <br/>    }<br/> <br/>    public void afterTextChanged(Editable s) {<br/>        // TODO Auto-generated method stub<br/>        String text = searchEdt.getText().toString().toLowerCase();<br/>        adapter.filter(text);<br/>    }<br/> <br/>    /**<br/>     *  @author 9Android.net<br/>     */<br/>    public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position,<br/>            long id) {<br/>        // TODO Auto-generated method stub<br/>        Sliding.slideFromRightToLeft(VIEW_PIC_SCREEN, fliper);<br/>        viewpic.setImageResource(listPic.get(position).getPicSource());<br/> <br/>    }<br/> <br/>    /**<br/>     * @author 9Android.net<br/>     * @param : event, keycode of downed button<br/>     * @Objective : Handle keyevent on main activity<br/>     */<br/>    public boolean onKeyDown(int keyCode, KeyEvent event) {<br/> <br/>        if (keyCode == KeyEvent.KEYCODE_BACK) {<br/>            int screen = fliper.getDisplayedChild();<br/> <br/>            if (screen == VIEW_PIC_SCREEN) {<br/>                Sliding.slideFromLeftToRight(LIST_PIC_SCREEN, fliper);<br/>                return true;<br/>            }<br/>        }<br/>        return super.onKeyDown(keyCode, event);<br/>    }<br/> <br/>}</pre>
		  </div><br/><br/>Download source code: <a href="http://www.dl.9android.net/index.php?act=dl&amp;id=1362959837" rel="nofollow">http://www.dl.9android.net/index.php?act=dl&amp;id=1362959837</a><br/>Source: <a href="http://www.9android.net/add-search-function-to-custom-listview/" rel="nofollow">http://www.9android.net/add-search-function-to-custom-listview/</a>]]></content:encoded>
      </item>
    <item>
        <title>Actions on forms</title>
        <link>http://marakana.com/forums/html5/general/879.html</link>
        <author>Tina Jansen</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/879.html</guid>
        <pubDate>Sat, 06 Apr 2013 17:21:17 -0700</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[I understand that Action tells your webpage where to send the information but what exactly does this mean?<br/><br/>action="/" <br/>]]></content:encoded>
      </item>
    <item>
        <title>Git is useless on Windows: push always hangs after some percent</title>
        <link>http://marakana.com/forums/git/git/878.html</link>
        <author>Jocke Pe</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/878.html</guid>
        <pubDate>Sat, 06 Apr 2013 12:28:14 -0700</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[Git is useless on Windows! (I say this to provoke someone to prove me wrong, not looking for sarcastic comments in return)<br/><br/>C:\my_local_repo&gt; git push -u origin master<br/>Counting objects: 32, done.<br/>Delta compression using up to 4 threads.<br/>Compressing objects: 100% (30/30), done.<br/>Writing objects: 62% (20/32)<br/><br/>At that point the push hangs. Client runs on a Windows Vista PC.<br/><br/>I have forwarded port 9418 to the correct git server. Server runs on a Windows Vista PC.<br/>Git server has been started using<br/>C:\my_repos&gt; git daemon --base-path=C:/my_repos --enable=receive-pack<br/><br/>The repository on the server has an empty <br/>git-daemon-export-ok<br/>file.]]></content:encoded>
      </item>
    <item>
        <title>Always see crash when receive BOOT_COMPLETED Intent</title>
        <link>http://marakana.com/forums/android/learning_android_book/877.html</link>
        <author>Cullen SUN</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/877.html</guid>
        <pubDate>Fri, 05 Apr 2013 04:01:38 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi expert, <br/>I am in chapter 13&gt;&gt;Intent Service, had edited my BootReceiver.java as below. however, I see '!Sorry Unfortunately, Yamba has stopped.  [OK]' every time after I reboot the device..<br/><br/>Any idea what is going on here? To me, My Application received the BootCompleted Intent, and was trying to run some code in BootReceiver, but crashed..<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>import android.content.BroadcastReceiver; <br/>import android.content.Context;<br/>import android.content.Intent;<br/>import android.app.AlarmManager;<br/>import android.app.PendingIntent;<br/>import android.util.Log;<br/><br/>public class BootReceiver extends BroadcastReceiver { //<br/>	@Override<br/>	public void onReceive(Context context, Intent callingIntent) { //<br/>		Log.d("BootReceiver", "onReceived"); <br/>		//context.startService(new Intent(context, UpdaterService.class)); //<br/>		<br/>		long interval = ((YambaApplication) context.getApplicationContext()).getInterval(); //1<br/>		<br/>		if (interval == YambaApplication.INTERVAL_NEVER) //2<br/>			return;<br/>		<br/>		// Create the pending intent<br/>		Intent intent = new Intent(context, UpdaterService1.class); //3<br/>		PendingIntent pendingIntent = PendingIntent.getService(context, -1, intent, PendingIntent.FLAG_UPDATE_CURRENT); //4<br/>		// Setup alarm service to wake up and start service periodically<br/>		AlarmManager alarmManager = (AlarmManager) context .getSystemService(Context.ALARM_SERVICE); //5<br/>		alarmManager.setInexactRepeating(AlarmManager.RTC, System.currentTimeMillis(), interval, pendingIntent); //6		<br/>	}<br/>}</pre>
		  </div>]]></content:encoded>
      </item>
    <item>
        <title>Acessing Git Search through a URL</title>
        <link>http://marakana.com/forums/git/git/876.html</link>
        <author>Roshni Rajagopal</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/876.html</guid>
        <pubDate>Thu, 04 Apr 2013 22:41:09 -0700</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[Im building an application which accesses git to search its contents for a specific string.<br/>So I want to access the git search url and pass a search string. Also as it needs authentication, i need to pass my username, password. what would be the URL format?<br/><br/>For eg : <a href="https://github.com/search?q=hector&amp;type=Repositories&amp;ref=searchresults" rel="nofollow">https://github.com/search?q=hector&amp;type=Repositories&amp;ref=searchresults</a><br/><br/>I want the results of a url like this - for my corporate git repository. But as its secured, how do i pass authentication to it? Any clues..<br/>]]></content:encoded>
      </item>
    <item>
        <title>Adding a Script before commiting files</title>
        <link>http://marakana.com/forums/git/git/875.html</link>
        <author>Ashish Namdev</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/875.html</guid>
        <pubDate>Thu, 04 Apr 2013 05:09:54 -0700</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[Hi , <br/>I have a problem where i have to run a script before using git commit command.<br/>can someone help me how to do it , so that my script will run first and check the files before committing the files.<br/><br/>please suggest me some ideas to run the script before doing a commit . script should invoke automatically when someone use git commit command to commit files in git.<br/><br/><br/>BR, <br/>Ashish N]]></content:encoded>
      </item>
    <item>
        <title>Synchronize bare repositories</title>
        <link>http://marakana.com/forums/git/git/873.html</link>
        <author>Michael Peters</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/873.html</guid>
        <pubDate>Thu, 04 Apr 2013 03:37:13 -0700</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[Hi, I am new with git and have the challange to synchronize two bare repositories.<br/>I habe a bare repsitory (call it bare2) that based on another bare remote repository (call it bare1).<br/>Bare1-Repo will was updated via a local dev repo and pushing commits. What is the best way to get this update also in Bare2-Repo? Becaus eoit is bare no pull ist possible.]]></content:encoded>
      </item>
    <item>
        <title>android streaming</title>
        <link>http://marakana.com/forums/android/general/872.html</link>
        <author>Adel Oueslati</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/872.html</guid>
        <pubDate>Tue, 02 Apr 2013 08:35:48 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Hello everyone <br/>i'm trying to stream my android phone 's camera to a media server like wowza media server ; but idon't know to steps to do that.Can you help me please ?]]></content:encoded>
      </item>
    <item>
        <title>Get Only Certain Files From One Branch to Another</title>
        <link>http://marakana.com/forums/git/git/871.html</link>
        <author>Mark Smith</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/871.html</guid>
        <pubDate>Mon, 01 Apr 2013 11:50:11 -0700</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[ Hello,<br/><br/>  I have one branch with a set of files in it (a module) and another with the whole program including the module. I would like to be able to work on the module in the whole program branch and then, when it is working, get only the files in the module branch from the whole program branch into the module branch. Is there any way to do this? <br/><br/>Thanks,<br/><br/>Mark]]></content:encoded>
      </item>
    <item>
        <title>Preferences cause crash.</title>
        <link>http://marakana.com/forums/android/learning_android_book/870.html</link>
        <author>Neville Turbit</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/870.html</guid>
        <pubDate>Sun, 31 Mar 2013 04:34:23 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[I am definitely a newbie so help is appreciated.<br/><br/>Got as far as the preferences lesson.  Before I added:<br/><br/>	<code class="inline">public Twitter getTwitter(){</code><br/><br/>and moved the following into it, all worked fine.<br/><br/>	<div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">public Twitter getTwitter(){<br/>		if (twitter==null) {<br/>			//Twitter stuff<br/>			String username, password, server;<br/>			username = prefs.getString("username", "");<br/>			password = prefs.getString("password", "");<br/>			server=prefs.getString("server", "http://yamba.marakana.com/api");<br/>			twitter = new Twitter(username, password);<br/>			twitter.setAPIRootUrl(server);<br/>		}<br/>		return twitter;</pre>
		  </div><br/><br/>Now the program crashes if I try to start service or do a refresh.<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">03-31 11:10:45.677: D/UpdaterService(1791): onCreated<br/>03-31 11:10:45.677: D/UpdaterService(1791): onStarted<br/>03-31 11:10:45.677: W/dalvikvm(1791): threadid=12: thread exiting with uncaught exception (group=0xb2d98908)<br/>03-31 11:10:45.677: E/AndroidRuntime(1791): FATAL EXCEPTION: Thread-77<br/>03-31 11:10:45.677: E/AndroidRuntime(1791): java.lang.NullPointerException<br/>03-31 11:10:45.677: E/AndroidRuntime(1791): at com.example.yamba2.UpdaterService$1.run(UpdaterService.java:31)</pre>
		  </div><br/><br/>I have been doing all this in YambaApp.java as the video shows.  I went to the Learning Android book and on page 94 it talks about adding a private method to StatusActivity.  I am totally confused.  I thought it should be in YambaApp.  <br/><br/>It seems to make sense to add it to the YambaApp file.  My problem is that I am not sure how the username, password and server address make it to the create.  I can understand the listner causing GetTwitter to run, but lost as to how it works until I put the code above into that class.<br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>NPE in Twitter.getHomeTimeline() for chapter 8</title>
        <link>http://marakana.com/forums/android/learning_android_book/866.html</link>
        <author>T D</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/866.html</guid>
        <pubDate>Thu, 28 Mar 2013 15:31:28 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi There,<br/>  I've been making my way through the book, and I am stuck in chapter 8 due to an NPE when calling Twitter.getHomeTimeline(). I get the same thing when calling Twitter.getFriendsTimeline(). I have a valid connection, and I am able to post new tweets. The stack trace looks like this:<br/><br/>============================================================<br/>03-28 15:16:28.343: W/System.err(2643): java.lang.NullPointerException<br/>03-28 15:16:28.353: W/System.err(2643): 	at java.lang.String$CaseInsensitiveComparator.compare(String.java:88)<br/>03-28 15:16:28.353: W/System.err(2643): 	at java.lang.String$CaseInsensitiveComparator.compare(String.java:70)<br/>03-28 15:16:28.353: W/System.err(2643): 	at java.util.TreeMap.find(TreeMap.java:277)<br/>03-28 15:16:28.363: W/System.err(2643): 	at java.util.TreeMap.findByObject(TreeMap.java:351)<br/>03-28 15:16:28.363: W/System.err(2643): 	at java.util.TreeMap.get(TreeMap.java:177)<br/>03-28 15:16:28.373: W/System.err(2643): 	at java.util.Collections$UnmodifiableMap.get(Collections.java:1324)<br/>03-28 15:16:28.373: W/System.err(2643): 	at winterwell.jtwitter.URLConnectionHttpClient.processError2_reason(URLConnectionHttpClient.java:541)<br/>03-28 15:16:28.373: W/System.err(2643): 	at winterwell.jtwitter.URLConnectionHttpClient.processError(URLConnectionHttpClient.java:456)<br/>03-28 15:16:28.373: W/System.err(2643): 	at winterwell.jtwitter.URLConnectionHttpClient.connect(URLConnectionHttpClient.java:154)<br/>03-28 15:16:28.373: W/System.err(2643): 	at winterwell.jtwitter.URLConnectionHttpClient.getPage2(URLConnectionHttpClient.java:295)<br/>03-28 15:16:28.373: W/System.err(2643): 	at winterwell.jtwitter.URLConnectionHttpClient.getPage(URLConnectionHttpClient.java:233)<br/>03-28 15:16:28.373: W/System.err(2643): 	at winterwell.jtwitter.Twitter.getStatuses(Twitter.java:1676)<br/>03-28 15:16:28.373: W/System.err(2643): 	at winterwell.jtwitter.Twitter.getHomeTimeline(Twitter.java:1178)<br/>03-28 15:16:28.383: W/System.err(2643): 	at com.frenchfry.yamba.UpdaterService$Updater.run(UpdaterService.java:73)<br/>============================================================<br/><br/>  I believe I have the latest jtwitter library.<br/>  I experience when connecting to the "student" account as well as an account I made for myself.<br/><br/>  Any help much appreciated.<br/><br/>Thanks,<br/>-td<br/>]]></content:encoded>
      </item>
    <item>
        <title>ListView in ScrollView</title>
        <link>http://marakana.com/forums/android/learning_android_book/865.html</link>
        <author>Cullen SUN</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/865.html</guid>
        <pubDate>Wed, 27 Mar 2013 22:16:14 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[For TimelineActivity 's layout xml, the Author put ListView inside a ScrollView. This caused I can only see one item in the list. Fixed it by remove ScrollView.<br/><br/><br/>However, I believe the Author wrote like that with a reason. Anybody has a detailed explanation? <br/>Thanks]]></content:encoded>
      </item>
    <item>
        <title>uses-library-element.html</title>
        <link>http://marakana.com/forums/android/general/864.html</link>
        <author>Miten Mehta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/864.html</guid>
        <pubDate>Sun, 24 Mar 2013 07:30:23 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Hi,<br/><br/>I guess uses-library element is to able to reduce size of my apks uploaded to google play store.  If I have 5 apks which depend on single jar how about <a href="http://developer.android.com/guide/topics/manifest/uses-library-element.html" rel="nofollow">using uses-element android manifest tag</a>.<br/><br/>I get feeling above url is meant to resolve this issue though what I lack is step by step example.<br/><br/>I have also started thread here  on <a href="https://groups.google.com/forum/?fromgroups=#!topic/android-developers/c5CxaFSsDfo" rel="nofollow">google android forum</a><br/><br/>How can then I test same using emulator ?<br/><br/>Please guide.<br/><br/>Regards,<br/><br/>Miten.]]></content:encoded>
      </item>
    <item>
        <title>RuntimeException after press update button</title>
        <link>http://marakana.com/forums/android/learning_android_book/863.html</link>
        <author>Cullen SUN</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/863.html</guid>
        <pubDate>Fri, 22 Mar 2013 04:16:17 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Can someone help me on this. I have no idea what's going on. It was functioning ok...but now not OK<br/><br/>The exception was threw when I press update button. <br/><br/><code class="inline">Twitter.Status status = yamba.getTwitter().updateStatus(statuses[0]);</code><br/><br/>Thread [&lt;11&gt; AsyncTask #1] (Suspended (exception RuntimeException))	<br/>	ThreadPoolExecutor.runWorker(ThreadPoolExecutor$Worker) line: 1094	<br/>	ThreadPoolExecutor$Worker.run() line: 569	<br/>	Thread.run() line: 856	<br/>Thread [&lt;12&gt; AsyncTask #2] (Running)	]]></content:encoded>
      </item>
    <item>
        <title>Django 1.5 Application Development Starter</title>
        <link>http://marakana.com/forums/python/python/862.html</link>
        <author>Sachi Shah</author>
        <guid isPermaLink="true">http://marakana.com/forums/python/python/862.html</guid>
        <pubDate>Thu, 21 Mar 2013 03:48:06 -0700</pubDate>
        <category>Python - Python</category>
        <content:encoded><![CDATA[Offering a quick but comprehensive immersion into the world of Python development, <a href="http://www.packtpub.com/django-1-5-application-development-starter/book" rel="nofollow">Instant Django 1.5 Application Development Starter</a> begins with a practical exploration of the framework’s powerful mechanisms and tools and finishes the journey by taking readers through the creation of one sample application. <br/><br/>Readers will get familiar with the powerful template system, and will discover how easy it is to generate a web administration interface for project. Learn how to work with user authentication, forms, and session management.<br/>Readers will also learn to create stunning web applications in a very short time, taking advantage of all the beauty and power that Python has to offer. <br/><br/>You can read more about the book here: <a href="http://www.packtpub.com/django-1-5-application-development-starter/book" rel="nofollow">http://www.packtpub.com/django-1-5-application-development-starter/book</a>]]></content:encoded>
      </item>
    <item>
        <title>I got a problem with the android boot camp ...</title>
        <link>http://marakana.com/forums/android/general/861.html</link>
        <author>Ahmed Alamir</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/861.html</guid>
        <pubDate>Wed, 20 Mar 2013 03:33:34 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[In the 8th video i tried to replace the button with the android:onClick="onClick"<br/>like Mr.Marko did and deleted everything button related ( like Mr.Marko did ) but when i tried to run it it crashed :( Can anyone tell me why or how to fix that ??<br/><br/>Thanks]]></content:encoded>
      </item>
    <item>
        <title>repodir.git http access failes after moved from dir1 to dir2</title>
        <link>http://marakana.com/forums/git/git/860.html</link>
        <author>Prasanth Kumar</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/860.html</guid>
        <pubDate>Tue, 19 Mar 2013 09:51:08 -0700</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[I have a strange problem with git.<br/><br/>I integrated git with redmine to have my git repositories.<br/><br/>First I tought of dir1/repodir.git and did some updates which even worked when cloning with <a href="file://" rel="nofollow">file://</a> and with <a href="http://" rel="nofollow">http://</a> and some days later I moved the repository from dir1/repodir.git to dir2/repodir.git; since from then I can clone using <a href="file://" rel="nofollow">file://</a> but not with <a href="http://;" rel="nofollow">http://;</a> when I created a new repo like dir2/repodir1.git I can clone via http or via file protocol.<br/><br/>Please suggest a solution for this problem.<br/><br/>Hope your solutions on this helps many.]]></content:encoded>
      </item>
    <item>
        <title>accesing pc remotely via android phone</title>
        <link>http://marakana.com/forums/android/examples/859.html</link>
        <author>Laxman Singh</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/859.html</guid>
        <pubDate>Wed, 13 Mar 2013 21:48:37 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[hi..<br/>i need the project on remote services ..<br/>to connect a pc via android device<br/>and access it remotely..<br/>so plz help me out..]]></content:encoded>
      </item>
    <item>
        <title>AFTER INSERT COMMIT&apos;s COMMENT WHAT PRESS TO RETURN to CLI and comment done</title>
        <link>http://marakana.com/forums/git/git/858.html</link>
        <author>Leonidas Savvides</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/858.html</guid>
        <pubDate>Tue, 12 Mar 2013 06:58:48 -0700</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[GIT 1.8.0 <br/><br/>after commands in CLI (COMMAND LINE) <br/>cd C:/Users/User/Documents/PhoneGap/trnotes <br/>git init <br/>git status <br/>git add . <br/>git commit // AFTER INSERT COMMIT's COMMENT WHAT PRESS TO RETURN to CLI and comment done? ]]></content:encoded>
      </item>
    <item>
        <title>Problem with  connecting to jtwitter service.</title>
        <link>http://marakana.com/forums/android/learning_android_book/857.html</link>
        <author>Jis Jis</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/857.html</guid>
        <pubDate>Tue, 12 Mar 2013 05:03:17 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[<br/><br/>Hi , I have been trying to work my way through Chapter 8 of this Android book however, my tweets have failed to post to the twitter feed. After checking the logcat file, I have found this output:  <br/><br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"> 03-12 11:42:35.403: E/StatusActivity(3797): Failed to connect to the twitter service<br/>03-12 11:42:35.403: E/StatusActivity(3797): winterwell.jtwitter.TwitterException: java.io.EOFException<br/>03-12 11:42:35.403: E/StatusActivity(3797): 	at winterwell.jtwitter.URLConnectionHttpClient.processError(URLConnectionHttpClient.java:165)<br/>03-12 11:42:35.403: E/StatusActivity(3797): 	at winterwell.jtwitter.URLConnectionHttpClient.post(URLConnectionHttpClient.java:219)<br/>03-12 11:42:35.403: E/StatusActivity(3797): 	at winterwell.jtwitter.Twitter.post(Twitter.java:1944)<br/>03-12 11:42:35.403: E/StatusActivity(3797): 	at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:2555)<br/>03-12 11:42:35.403: E/StatusActivity(3797): 	at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:2502)<br/>03-12 11:42:35.403: E/StatusActivity(3797): 	at com.example.yamba.StatusActivity$PostToTwitter.doInBackground(StatusActivity.java:96)<br/>03-12 11:42:35.403: E/StatusActivity(3797): 	at com.example.yamba.StatusActivity$PostToTwitter.doInBackground(StatusActivity.java:1)<br/>03-12 11:42:35.403: E/StatusActivity(3797): 	at android.os.AsyncTask$2.call(AsyncTask.java:287)<br/>03-12 11:42:35.403: E/StatusActivity(3797): 	at java.util.concurrent.FutureTask.run(FutureTask.java:234)<br/>03-12 11:42:35.403: E/StatusActivity(3797): 	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)<br/>03-12 11:42:35.403: E/StatusActivity(3797): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)<br/>03-12 11:42:35.403: E/StatusActivity(3797): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)<br/>03-12 11:42:35.403: E/StatusActivity(3797): 	at java.lang.Thread.run(Thread.java:856)<br/>03-12 11:42:35.403: E/StatusActivity(3797): Caused by: java.io.EOFException<br/>03-12 11:42:35.403: E/StatusActivity(3797): 	at libcore.io.Streams.readAsciiLine(Streams.java:203)<br/>03-12 11:42:35.403: E/StatusActivity(3797): 	at libcore.net.http.HttpEngine.readHeaders(HttpEngine.java:621)<br/>03-12 11:42:35.403: E/StatusActivity(3797): 	at libcore.net.http.HttpEngine.readResponseHeaders(HttpEngine.java:574)<br/>03-12 11:42:35.403: E/StatusActivity(3797): 	at libcore.net.http.HttpEngine.readResponse(HttpEngine.java:821)<br/>03-12 11:42:35.403: E/StatusActivity(3797): 	at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:283)<br/>03-12 11:42:35.403: E/StatusActivity(3797): 	at libcore.net.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:495)<br/>03-12 11:42:35.403: E/StatusActivity(3797): 	at winterwell.jtwitter.URLConnectionHttpClient.processError(URLConnectionHttpClient.java:120)<br/>03-12 11:42:35.403: E/StatusActivity(3797): 	... 12 more<br/></pre>
		  </div><br/><br/>Can anyone can help understand what the problem could be and where the solution lies?  ]]></content:encoded>
      </item>
    <item>
        <title>How to find my repositories</title>
        <link>http://marakana.com/forums/git/git/856.html</link>
        <author>Vitor Lima</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/856.html</guid>
        <pubDate>Mon, 11 Mar 2013 08:05:38 -0700</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[Hello!<br/><br/>I started to use Git in December 2012.<br/>I made two repositories (I think, cause I made the 'commits').<br/><br/>But now, I have another PC and I just instaled Git here.<br/>So, how can I find these two projects ?<br/><br/><br/>Thank you!]]></content:encoded>
      </item>
    <item>
        <title>jtwitter new Twitter error.</title>
        <link>http://marakana.com/forums/android/learning_android_book/855.html</link>
        <author>Neville Turbit</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/855.html</guid>
        <pubDate>Sun, 10 Mar 2013 19:53:37 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Great tutorial and have ordered the book as well.  All working well until I got to the jtwitter.jar.  The line:<br/><br/>Twitter twitter = new Twitter("student", "password");<br/><br/>has a line through Twitter after the word new.  Hovering over the error shows the following:<br/><br/>winterwell.jtwitter.Twitter.Twitter(String screenname, String password)<br/>@Deprecated<br/>Note: This element has no attached source and the Javadoc could not be found in the attached Javadoc.<br/><br/>I am trying to learn Java at the same time so really out of my depth here.  I have tried a few things from the forum site but no success.  Can anyone else help?<br/>]]></content:encoded>
      </item>
    <item>
        <title>looking for an html5 api</title>
        <link>http://marakana.com/forums/html5/general/854.html</link>
        <author>Sean Green</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/854.html</guid>
        <pubDate>Tue, 05 Mar 2013 08:51:24 -0800</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[Hey guys, I'm looking for a way to clean up my projects.  I see a lot of these so called html5 apis. Though I'm hopping for "the" html5 api. I'd like to keep my pages from growing in size and be able to re-use a simple grid canvas. Anything like that out there?<br/>]]></content:encoded>
      </item>
    <item>
        <title>Command line error</title>
        <link>http://marakana.com/forums/git/git/853.html</link>
        <author>Al Lelopath</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/853.html</guid>
        <pubDate>Sun, 03 Mar 2013 10:19:26 -0800</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[I am unable to clone the AndEngine git repository with Git GUI on OS X 10.6.8. I do this with no problem on my windows machine. The repository is <a href="https://github.com/nicolasgramlich/AndEngine.git" rel="nofollow">https://github.com/nicolasgramlich/AndEngine.git</a> What am I doing wrong?]]></content:encoded>
      </item>
    <item>
        <title>Unfortunately Yamba8 has stopped.</title>
        <link>http://marakana.com/forums/android/learning_android_book/852.html</link>
        <author>Vishnu Vg</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/852.html</guid>
        <pubDate>Sun, 03 Mar 2013 09:17:29 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[<br/>I tried to run Yamba8 app on my emulator. I set the Android Version to 8, set the username to student, password to passoword and api to <a href="http://yamba.marakana.com/api." rel="nofollow">http://yamba.marakana.com/api.</a> <br/><br/>Now my problem is when I click refresh, its saying Unfortunately Yamba8 has stopped. I can access internet in android browser and 3g icon is also showing. But can't able to figure the issue. I tried to create a new account and the result is same. Please help. Log trace below<br/><br/>03-04 20:11:29.897: W/dalvikvm(808): threadid=11: thread exiting with uncaught exception (group=0x40a70930)<br/>03-04 20:11:29.917: E/AndroidRuntime(808): FATAL EXCEPTION: IntentService[UpdaterService]<br/>03-04 20:11:29.917: E/AndroidRuntime(808): java.lang.NoClassDefFoundError: winterwell.jtwitter.Twitter<br/>03-04 20:11:29.917: E/AndroidRuntime(808): 	at com.marakana.yamba8.YambaApplication.getTwitter(YambaApplication.java:43)<br/>03-04 20:11:29.917: E/AndroidRuntime(808): 	at com.marakana.yamba8.YambaApplication.fetchStatusUpdates(YambaApplication.java:60)<br/>03-04 20:11:29.917: E/AndroidRuntime(808): 	at com.marakana.yamba8.UpdaterService.onHandleIntent(UpdaterService.java:35)<br/>03-04 20:11:29.917: E/AndroidRuntime(808): 	at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)<br/>03-04 20:11:29.917: E/AndroidRuntime(808): 	at android.os.Handler.dispatchMessage(Handler.java:99)<br/>03-04 20:11:29.917: E/AndroidRuntime(808): 	at android.os.Looper.loop(Looper.java:137)<br/>03-04 20:11:29.917: E/AndroidRuntime(808): 	at android.os.HandlerThread.run(HandlerThread.java:60)<br/>03-04 20:11:30.008: W/Trace(808): Unexpected value from nativeGetEnabledTags: 0<br/>03-04 20:11:30.117: W/Trace(808): Unexpected value from nativeGetEnabledTags: 0<br/>03-04 20:11:31.298: W/Trace(808): Unexpected value from nativeGetEnabledTags: 0<br/>03-04 20:11:31.357: W/Trace(808): Unexpected value from nativeGetEnabledTags: 0<br/>03-04 20:11:32.067: W/Trace(808): Unexpected value from nativeGetEnabledTags: 0<br/>03-04 20:11:32.067: W/Trace(808): Unexpected value from nativeGetEnabledTags: 0<br/>03-04 20:11:32.137: W/Trace(808): Unexpected value from nativeGetEnabledTags: 0<br/>03-04 20:11:32.347: I/Process(808): Sending signal. PID: 808 SIG: 9<br/>]]></content:encoded>
      </item>
    <item>
        <title>Chapter 10: Lists and Adapters - stupid question about dbHelper</title>
        <link>http://marakana.com/forums/android/learning_android_book/851.html</link>
        <author>Ozzy Boshi</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/851.html</guid>
        <pubDate>Sat, 02 Mar 2013 12:32:48 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi all, I have a question.<br/>At page 140 there is a new class called TimeActivity1 that extends Activity<br/><br/>when overriding the oncreate method i see<br/><br/>dbHelper = new DbHelper(this);<br/><br/>dbHelper is an instance variable of type DbHelper.<br/><br/>Eclipse marks this expression as an error I think because DbHelper is an Inner class of public class StatusData.<br/><br/>In order to solve this problem i wrote<br/><br/>dbHelper = new StatusData(this).new DbHelper(this);<br/><br/>rather than<br/><br/>dbHelper = new DbHelper(this);<br/><br/>The second expression returns me an error:<br/><br/>"No enclosing instance of type StatusData is accessible. Must qualify the allocation with an enclosing instance of type StatusData (e.g. x.new A() where x is an <br/> instance of StatusData)."<br/><br/>Where is the problem? Is the book wrong or i am missing something?<br/>Thanks in advance.<br/>Ozzy<br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>switch to branch -- lose chgs in all other branches..</title>
        <link>http://marakana.com/forums/git/git/850.html</link>
        <author>Maya Melnick</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/850.html</guid>
        <pubDate>Wed, 27 Feb 2013 07:58:46 -0800</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[<br/>oh brother..  this git thing has me climbing up walls...<br/><br/>we have a master branch and tons of other branches...<br/><br/>since yesterday I find that whenever I checkout a branch I lose changes I have made in all other branches in the last few days...<br/><br/>how can I fix this.... :-(<br/><br/>thank you....]]></content:encoded>
      </item>
    <item>
        <title>git push fails and does not ask user name</title>
        <link>http://marakana.com/forums/git/git/849.html</link>
        <author>Anu V</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/849.html</guid>
        <pubDate>Tue, 26 Feb 2013 00:03:52 -0800</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[Hello,<br/><br/>Below is the apache configuration file.<br/><br/>[root@imsgit httpd]# cat /etc/httpd/conf.d/git.conf<br/>&lt;VirtualHost imsgit.apac.nsn-net.net:8080&gt;<br/><br/>   ServerName imsgit.apac.nsn-net.net<br/>   DocumentRoot /imsgit/Repositories<br/><br/>   SetEnv GIT_PROJECT_ROOT /imsgit/Repositories<br/>   SetEnv GIT_HTTP_EXPORT_ALL<br/>   ScriptAlias /git/ /usr/local/libexec/git-core/git-http-backend/<br/><br/><br/>   &lt;Location /git/imstest_1&gt;<br/>       AuthType Basic<br/>       AuthName "GIT repository"<br/>       AuthUserFile /imsgit/conf/users-imstest_1<br/>       Require valid-user<br/>   &lt;/Location&gt;<br/><br/>   &lt;Location /git/imstest_ldap.git&gt;<br/>       AuthType Basic<br/>       AuthName "Git Authentication; User LDAP login and pwd"<br/>       AuthBasicProvider ldap<br/>       AuthzLDAPAuthoritative off<br/>       AuthLDAPURL "&lt;&lt;Valid URL&gt;&gt;"<br/>       AuthLDAPBindDN "&lt;&lt;Valid DN&gt;&gt;"<br/>       AuthLDAPBindPassword "&lt;&lt;Valid password&gt;&gt;"<br/>   &lt;/Location&gt;<br/><br/>&lt;/VirtualHost&gt;<br/><br/><br/>For first repository "/git/imstest_1" which is using local http user authentication, "git push" works fine and below is http logs<br/><br/>10.142.201.122 - - [25/Feb/2013:12:40:58 +0530] "GET /git/imstest_1/info/refs?service=git-receive-pack HTTP/1.1" 401 484 "-" "git/1.8.1.3"<br/>10.142.201.122 - - [25/Feb/2013:12:41:03 +0530] "GET /git/imstest_1/info/refs?service=git-receive-pack HTTP/1.1" 401 484 "-" "git/1.8.1.3"<br/>10.142.201.122 - anugrith [25/Feb/2013:12:41:03 +0530] "GET /git/imstest_1/info/refs?service=git-receive-pack HTTP/1.1" 200 306 "-" "git/1.8.1.3"<br/>10.142.201.122 - anugrith [25/Feb/2013:12:41:03 +0530] "POST /git/imstest_1/git-receive-pack HTTP/1.1" 200 52 "-" "git/1.8.1.3"<br/><br/><br/>But for second repo with LDAP authentication, it gives error. This was working fine earlier without any configuration changes.<br/>===It does not even ask the user name!===<br/><br/>[root@imsgit imstest_ldap]# export GIT_CURL_VERBOSE=1<br/>[root@imsgit imstest_ldap]# git status<br/># On branch master<br/>nothing to commit, working directory clean<br/>[root@imsgit imstest_ldap]# ls -l<br/>total 4<br/>-rw-r--r-- 1 root root 111 Feb 25 12:08 sysInfo.txt<br/>[root@imsgit imstest_ldap]#<br/><br/>[root@imsgit imstest_ldap]# git push<br/>* Couldn't find host 10.142.201.122 in the .netrc file; using defaults<br/>* About to connect() to 10.142.201.122 port 8080 (#0)<br/>*   Trying 10.142.201.122... * connected<br/>* Connected to 10.142.201.122 (10.142.201.122) port 8080 (#0)<br/>&gt; GET /git/imstest_ldap.git/info/refs?service=git-receive-pack HTTP/1.1<br/>User-Agent: git/1.8.1.3<br/>Host: 10.142.201.122:8080<br/>Accept: */*<br/>Accept-Encoding: gzip<br/>Pragma: no-cache<br/><br/>* The requested URL returned error: 403<br/>* Closing connection #0<br/>error: The requested URL returned error: 403 while accessing <a href="http://10.142.201.122:8080/git/imstest_ldap.git/info/refs?service=git-receive-pack" rel="nofollow">http://10.142.201.122:8080/git/imstest_ldap.git/info/refs?service=git-receive-pack</a><br/>fatal: HTTP request failed<br/>[root@imsgit imstest_ldap]#<br/><br/><br/><br/>HTTP logs are as below<br/><br/>==&gt; error_log &lt;==<br/>[Mon Feb 25 12:40:04 2013] [error] [client 10.142.201.122] Service not enabled: 'receive-pack'<br/><br/>==&gt; access_log &lt;==<br/>10.142.201.122 - - [25/Feb/2013:12:40:04 +0530] "GET /git/imstest_ldap.git/info/refs?service=git-receive-pack HTTP/1.1" 403 - "-" "git/1.8.1.3"<br/><br/><br/>GIT version used: <br/><br/>[root@imsgit log]# git --version<br/>git version 1.8.1.3<br/>[root@imsgit log]#<br/><br/><br/>Your help on this would be highly appreciated. <br/><br/>Thanks in advance.<br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>winterwell.jtwitter.TwitterException$E401: Unauthorized</title>
        <link>http://marakana.com/forums/android/learning_android_book/848.html</link>
        <author>Vahi Chen</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/848.html</guid>
        <pubDate>Fri, 22 Feb 2013 19:43:38 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hello All,<br/><br/>To test Yamba, I've installed StatusNet Microblogging software(version 0.9.6) on my own website, and the API ROOT is set like "http://mydomain.com/api".<br/><br/>Now I'm testing project "Yamba1" in learning-android-code. Nothing was changed except:<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>twitter = new Twitter("myUsername", "myPassword");<br/>twitter.setAPIRootUrl("http://mydomain.com/api");</pre>
		  </div><br/><br/>When I trying to post a status, a TwitterException was caught, and "Failed to Post" was returned.<br/><br/>The LogCat shows:<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>02-23 11:06:07.746: E/StatusActivity(21442): winterwell.jtwitter.TwitterException$E401: Unauthorized <a href="http://mydomain.com/api/statuses/update.json" rel="nofollow">http://mydomain.com/api/statuses/update.json</a> (vahichen)<br/>02-23 11:06:07.746: W/System.err(21442): winterwell.jtwitter.TwitterException$E401: Unauthorized <a href="http://mydomain/api/statuses/update.json" rel="nofollow">http://mydomain/api/statuses/update.json</a> (vahichen)<br/>02-23 11:06:07.756: W/System.err(21442): 	at winterwell.jtwitter.URLConnectionHttpClient.processError(URLConnectionHttpClient.java:125)<br/>02-23 11:06:07.756: W/System.err(21442): 	at winterwell.jtwitter.URLConnectionHttpClient.post(URLConnectionHttpClient.java:219)<br/>02-23 11:06:07.756: W/System.err(21442): 	at winterwell.jtwitter.Twitter.post(Twitter.java:1944)<br/>02-23 11:06:07.756: W/System.err(21442): 	at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:2555)<br/>02-23 11:06:07.756: W/System.err(21442): 	at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:2502)<br/>02-23 11:06:07.756: W/System.err(21442): 	at com.marakana.yamba1.StatusActivity$PostToTwitter.doInBackground(StatusActivity.java:60)<br/>02-23 11:06:07.756: W/System.err(21442): 	at com.marakana.yamba1.StatusActivity$PostToTwitter.doInBackground(StatusActivity.java:1)<br/>02-23 11:06:07.756: W/System.err(21442): 	at android.os.AsyncTask$2.call(AsyncTask.java:287)<br/>02-23 11:06:07.756: W/System.err(21442): 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)<br/>02-23 11:06:07.756: W/System.err(21442): 	at java.util.concurrent.FutureTask.run(FutureTask.java:137)<br/>02-23 11:06:07.756: W/System.err(21442): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)<br/>02-23 11:06:07.756: W/System.err(21442): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)<br/>02-23 11:06:07.756: W/System.err(21442): 	at java.lang.Thread.run(Thread.java:856)<br/></pre>
		  </div><br/><br/>I guess it's the problem about the authorization. Can NOT using HTTP Basic authentication? So, what should I do on my server side to get "Yamba1" authorized?<br/><br/>Any advice will be appreciated.]]></content:encoded>
      </item>
    <item>
        <title>HTML5-Past, Present &amp; Future</title>
        <link>http://marakana.com/forums/html5/general/847.html</link>
        <author>Stephen Richard</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/847.html</guid>
        <pubDate>Fri, 22 Feb 2013 04:40:21 -0800</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[When I was analyzing about HTML5 in the net, i came across one infographic called HTML5-Past, Present &amp; Future which explains the evolution, key features and capabilities of HTML5 in an informative and interest with yours. It impressed me lots, so i would like to share with yours. You can find more insights here <a href="http://www.dotcominfoway.com/blog/dot-com-infoway-releases-html5-infographic" rel="nofollow">http://www.dotcominfoway.com/blog/dot-com-infoway-releases-html5-infographic</a>]]></content:encoded>
      </item>
    <item>
        <title>setup repository on server for multiple access?</title>
        <link>http://marakana.com/forums/git/git/846.html</link>
        <author>Eric Evans</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/846.html</guid>
        <pubDate>Thu, 21 Feb 2013 12:10:57 -0800</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[Hello, <br/><br/>I'm new to git.  I've read the git book, but I'm still having trouble setting up a repository on our server so that it will be readable/writeable by multiple users.  <br/><br/>I've installed git on our server and I've made a git repository called 'test' which I placed in /var/www/html/test, and I defined it to be shared in the init command.  This directory is group-readable/writeable by all the users who will need to access this repository.  I attempt to clone this repository on my client machine with a command such as this:<br/><br/>git clone <a href="ssh://username@ourhost.com:/var/www/html/test.git" rel="nofollow">ssh://username@ourhost.com:/var/www/html/test.git</a> <br/><br/>But when I do I get the following error messages:<br/>no address associated with name <br/>fatal: could not read from remote repository<br/>Please make sure you have the correct access rights and the repository exists.<br/><br/>What is puzzling to me is that it doesn't even get as far as prompting me for my username &amp; password.  Can anyone offer some guidance as to what I'm doing wrong and what I need to do to get this repository to work the way we want it to?  <br/><br/>Thanks very much,<br/>Eric<br/><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>HTML5 Audio - Play sounds easily in the web pages</title>
        <link>http://marakana.com/forums/html5/general/845.html</link>
        <author>Mk Mk</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/845.html</guid>
        <pubDate>Thu, 21 Feb 2013 03:12:22 -0800</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[Hello<br/>This topic is specified to discuss about HTML5 Audio element and playing sounds with it. Refer to the following link if you don't know how to use it:<br/><a href="http://social-interview.com/html5/category/html5-audio-and-video/" rel="nofollow">HTML5 Audio and Video </a><br/>Then start to make your own and share us your experience and problems you have had. The following image shows the HTML5 Audio element view in the browsers:<br/><a href="http://social-interview.com/html5/2013/02/11/audio-the-basics-of-playing-sounds-on-the-web-pages/audio-and-video-1-1-2/" rel="nofollow"><img src="http://social-interview.com/html5/wp-content/uploads/sites/15/2013/02/Audio-and-Video-1-11.jpg" alt=""/></a><br/><br/>Hope to get response from you here.]]></content:encoded>
      </item>
    <item>
        <title>how to make html5-multitouch source code in dreamweaver cs4 work?</title>
        <link>http://marakana.com/forums/html5/general/844.html</link>
        <author>Gizem Gizem</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/844.html</guid>
        <pubDate>Wed, 20 Feb 2013 02:52:28 -0800</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[Hello,<br/><br/>I am interested in multi-touch applications and i found a html5 website which has 4 different multi-touch simulations as links in a webpage. I asked to admin and he gave all the source code. I have downloaded all the source code and uploaded the relevant site files into Dreamweaver s4 as a site. My aim is to edit the source code in a different way. However, when a debug and preview index.html (which is that page holding simulations), links on it are working but simulations are not. There are some images but they are either not right or non-functional. I checked the js connections, paths were looking correct. Can you tell me what else i should check or edit in the source code to get the simulations work?<br/><br/>Thanks,]]></content:encoded>
      </item>
    <item>
        <title>Unable to login as &quot;student&quot;</title>
        <link>http://marakana.com/forums/android/learning_android_book/843.html</link>
        <author>Sam Emerald</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/843.html</guid>
        <pubDate>Mon, 18 Feb 2013 09:13:25 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[I cannot login as "student" with "password". It won't login on the site or in the API. I also was unable to join via openID. Is the site's DB down?]]></content:encoded>
      </item>
    <item>
        <title>Error push -&gt; gitolite 2.1</title>
        <link>http://marakana.com/forums/git/git/842.html</link>
        <author>Juan Pablo Proverbio Bayardi</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/842.html</guid>
        <pubDate>Mon, 18 Feb 2013 03:50:00 -0800</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[Hi,<br/><br/>I'm using <strong>gitolite 2.1</strong>. When I want to push the new permissions into the remote git repository i get this message:<br/><br/>hook declined<br/>Empty compile time value given to use lib at hooks/update line 6<br/>Use of uninitialized value in require at hooks/update line 7.<br/>Can't locate Gitolite/Hooks/Update.pm in @INC (@INC contains:  /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl .) at hooks/update line 7.<br/>BEGIN failed--compilation aborted at hooks/update line 7.<br/>error: hook declined to update refs/heads/master<br/><br/>Someone know what it means or can help me?<br/><br/><strong>Thanks.<br/>Juan Pablo Proverbio</strong>]]></content:encoded>
      </item>
    <item>
        <title>HTML5 new Tags - Questions and Answers</title>
        <link>http://marakana.com/forums/html5/general/841.html</link>
        <author>Mk Mk</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/841.html</guid>
        <pubDate>Sat, 16 Feb 2013 00:38:28 -0800</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[One useful way to learn things is Questioning and getting the Answer. So I provide three Questions about HTML5 tags and their answers. If you know more please put it here in this topic:<br/><a href="http://social-interview.com/html5/2013/02/11/how-to-create-alternative-texts-for-a-textbox-by-htm5/" rel="nofollow">How to create alternative texts for a textbox by HTML5? </a><br/><a href="http://social-interview.com/html5/2013/02/11/how-to-add-details-to-a-text-or-sentence-by-html5/" rel="nofollow">How to add details to a text or sentence by HTML5? </a><br/><a href="http://social-interview.com/html5/2013/02/16/how-to-use-html5-output-tag-make-javascript-and-php-examples/" rel="nofollow">How to use HTML5 output tag? Make JavaScript and PHP examples </a><br/><br/>Please take part. At least leave your idea!]]></content:encoded>
      </item>
    <item>
        <title>What apps use Scala</title>
        <link>http://marakana.com/forums/scala/general/840.html</link>
        <author>Charles Ross</author>
        <guid isPermaLink="true">http://marakana.com/forums/scala/general/840.html</guid>
        <pubDate>Fri, 15 Feb 2013 19:34:18 -0800</pubDate>
        <category>Scala - General</category>
        <content:encoded><![CDATA[Who pays people to write Scala?]]></content:encoded>
      </item>
    <item>
        <title>Two ways to do the same thing? Which is better?</title>
        <link>http://marakana.com/forums/html5/general/839.html</link>
        <author>Tina Jansen</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/839.html</guid>
        <pubDate>Thu, 14 Feb 2013 19:11:05 -0800</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[<div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"> &lt;input type="submit" value="Submit" /&gt;<br/>&lt;input id="submit" name="submit" type="submit" value="Submit"&gt; <br/></pre>
		  </div><br/><br/>What exactly is the difference between these two? Can someone break it down for me, because it seems like it does that exact same thing.<br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>Bridging the book to the latest code...</title>
        <link>http://marakana.com/forums/android/learning_android_book/838.html</link>
        <author>Cris Shupp</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/838.html</guid>
        <pubDate>Wed, 13 Feb 2013 13:05:23 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[I have been reading the book on Safari and I have noticed that the code is quite out of date.<br/><br/>Is there a document that bridges the code from the book to the code found here:<br/><br/>https://github.com/marakana/yamba<br/><br/>Something that covers the fragment concept, the replacement for startManagingCursorO() etc?<br/><br/>Is there new code for a yamba widget, status bar notifications etc?<br/><br/><br/>Thanks,<br/><br/>Cris]]></content:encoded>
      </item>
    <item>
        <title>HTML5 Online Games/Apps</title>
        <link>http://marakana.com/forums/html5/general/837.html</link>
        <author>Frank Natividad</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/837.html</guid>
        <pubDate>Wed, 13 Feb 2013 09:41:14 -0800</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[Hi,<br/><br/>I'm developing a new service for HTML5 WebSockets and looking for testers that might be interested in making online games/apps using this technology. The learning curve is very small compared to just starting from scratch. The benefits will bring quick return and the best part is..it's free.<br/> <br/>If you're just starting out don't worry too much it's just HTML5 nothing intense. The server end concept is based on an idea I had.<br/> <br/>I'm a senior at my university and this is my first prototype to a concept I've been working on for a few months. If you are interested in hearing more please get back to me.<br/> <br/>There's no pay, this is not for research, and this is just for fun. I'm trying to push the technology and I know free service and open community helps. <br/><br/>Here is the website:<br/>http://scribble.franknatividad.com<br/><br/>Here is the first tutorial:<br/>http://youtu.be/VicWk7S6Jl4<br/><br/>Thanks<br/>Frank N.]]></content:encoded>
      </item>
    <item>
        <title>cell tower specific informations</title>
        <link>http://marakana.com/forums/android/general/836.html</link>
        <author>Fatih Hamurcu</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/836.html</guid>
        <pubDate>Mon, 11 Feb 2013 23:58:22 -0800</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[I am trying to get cell tower's, which I connected to it, some specific information. This is;<br/><strong>**arfcn**</strong>. Over using Android API or built-in system commands, how can I get those information from Android device programmatically ?  Thanks<br/><br/>NOTE: I am using Samsung device(Tablet)]]></content:encoded>
      </item>
    <item>
        <title>HTML5 Drag and Drop</title>
        <link>http://marakana.com/forums/html5/general/835.html</link>
        <author>Mk Mk</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/835.html</guid>
        <pubDate>Sat, 09 Feb 2013 02:55:23 -0800</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[One of the features of HTML5 is Drag and Drop. You can drag several things such as files, elements and etc and manage them by using HTML5. I tried to describe them completely. Please read and leave a comment about your opinion:<br/><a href="http://social-interview.com/html5/2013/01/17/drag-and-drop-html-elements/" rel="nofollow">Drag and Drop – HTML elements</a><br/><a href="http://social-interview.com/html5/2013/01/19/drag-and-drop-html-codes/" rel="nofollow">Drag and Drop – HTML codes</a><br/><a href="http://social-interview.com/html5/2013/01/21/drag-and-drop-files/" rel="nofollow">Drag and Drop – Files</a><br/><a href="http://social-interview.com/html5/2013/01/21/drag-and-drop-files/" rel="nofollow">Drag and Drop – Events and Styles I</a> and <a href="http://social-interview.com/html5/2013/01/23/drag-and-drop-events-and-styles-ii/" rel="nofollow">II</a><br/>and the following picture is an example of drag and drop of files:<br/><a href="http://social-interview.com/html5/tag/drag-and-drop/" rel="nofollow"><img src="http://social-interview.com/html5/wp-content/uploads/sites/15/2013/01/8-1.jpg" alt=""/></a><br/>]]></content:encoded>
      </item>
    <item>
        <title>HTML5 MathML - Write mathematics in the web pages</title>
        <link>http://marakana.com/forums/html5/general/834.html</link>
        <author>Mk Mk</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/834.html</guid>
        <pubDate>Thu, 07 Feb 2013 04:02:35 -0800</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[Do you know that HTML5 lets you make different kinds of mathematical expressions in your web pages? This ability is wonderful. I have done a review and tried many examples. The browsers compatibility is also solved! You can use MathJax for the problem. For more information refer to following links:<br/><a href="http://social-interview.com/html5/2013/02/01/mathml-the-basics-of-writing-mathematics-in-a-web-page/" rel="nofollow">MathML – The basics of writing mathematics in a web page</a><br/><a href="http://social-interview.com/html5/2013/02/02/mathml-subscripts-and-superscripts/" rel="nofollow">MathML – Subscripts and Superscripts</a><br/><a href="http://social-interview.com/html5/2013/02/04/mathml-list-of-html-mathematical-symbols-in-html/" rel="nofollow">MathML – List of HTML mathematical symbols in HTML</a><br/><a href="http://social-interview.com/html5/2013/02/04/mathml-list-of-html-greek-symbols-in-html/" rel="nofollow">MathML – List of HTML Greek symbols in HTML</a><br/><a href="http://social-interview.com/html5/2013/02/04/mathml-underscripts-and-overscripts/" rel="nofollow">MathML – Underscripts and Overscripts</a><br/><a href="http://social-interview.com/html5/2013/02/06/mathml-radicals-and-roots/" rel="nofollow">MathML – Radicals and roots</a><br/><a href="http://social-interview.com/html5/2013/02/06/mathml-fractions/" rel="nofollow">MathML – Fractions</a><br/>I'll be happy to see you active in this forum and start a discussion here, about this great HTML5 feature.]]></content:encoded>
      </item>
    <item>
        <title>Cannot instatiate winterwell Twitter object in Android</title>
        <link>http://marakana.com/forums/android/learning_android_book/832.html</link>
        <author>Phil Schlesinger</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/832.html</guid>
        <pubDate>Tue, 05 Feb 2013 15:52:04 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Solved! In case you run into this problem: I needed to physically copy the winterwell jtwitter library to my eclipse project "libs" directory, and then I needed to run the Twitter twitter.updateStatus() method on an async  thread ... then everything worked.<br/><br/>___________________________________________________________________________________________<br/><br/>Learning Android is GREAT! However I cannot instatiate a winterwell Twitter object in Android 4.2 (Eclipse Juno) even though it all works perfectly running as a normal Java app. The test code is:<br/><br/> public class TestActivity extends Activity {<br/><br/>	private static final String TAG = "TestActivity";<br/>	Twitter twitter;<br/>	<br/>	@Override<br/>	protected void onCreate(Bundle savedInstanceState) {<br/>		super.onCreate(savedInstanceState);<br/>		setContentView(R.layout.activity_test);<br/>		Log.d(TAG, "Created");<br/>		<br/>		twitter = new Twitter("student","password");<br/>                twitter.setAPIRootUrl("http://yamba.marakana.com/api");<br/>		...<br/><br/>Everything compiles OK, and runs in the emulator (AVD for Galaxy Nexus 4.2 API 17) until it hits the line "twitter = new Twitter( ...", then:<br/><br/><br/>Android Test App [Android Application]	<br/>	DalvikVM[localhost:8605]	<br/>		Thread [&lt;1&gt; main] (Suspended (exception NoClassDefFoundError))	<br/>			&lt;VM does not provide monitor information&gt;	<br/>			TestActivity.onCreate(Bundle) line: 22	<br/>			TestActivity(Activity).performCreate(Bundle) line: 5104	<br/>			Instrumentation.callActivityOnCreate(Activity, Bundle) line: 1080	<br/>			ActivityThread.performLaunchActivity(ActivityThread$ActivityClientRecord, Intent) line: 2144	<br/>			ActivityThread.handleLaunchActivity(ActivityThread$ActivityClientRecord, Intent) line: 2230	<br/>			ActivityThread.access$600(ActivityThread, ActivityThread$ActivityClientRecord, Intent) line: 141	<br/>			ActivityThread$H.handleMessage(Message) line: 1234	<br/>			ActivityThread$H(Handler).dispatchMessage(Message) line: 99	<br/>			Looper.loop() line: 137	<br/>			ActivityThread.main(String[]) line: 5039	<br/>			Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method]	<br/>			Method.invoke(Object, Object...) line: 511	<br/>			ZygoteInit$MethodAndArgsCaller.run() line: 793	<br/>			ZygoteInit.main(String[]) line: 560	<br/>			NativeStart.main(String[]) line: not available [native method]	<br/>		Thread [&lt;10&gt; Binder_2] (Running)	<br/>		Thread [&lt;9&gt; Binder_1] (Running)	<br/><br/>I've tried everything I can think of: moving the marakana version of the jar file around, running the twitter instatiation on a separate async thread, etc.  No luck. Any pointers will be appreciated! Thanks :-)]]></content:encoded>
      </item>
    <item>
        <title>HTML5 GeoLocation</title>
        <link>http://marakana.com/forums/html5/general/831.html</link>
        <author>Mk Mk</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/831.html</guid>
        <pubDate>Fri, 01 Feb 2013 01:18:12 -0800</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[I want just start a discussion about GeoLocation. The tutorials are in the following links:<br/><a href="http://www.w3schools.com/html/html5_geolocation.asp" rel="nofollow">http://www.w3schools.com/html/html5_geolocation.asp</a><br/><a href="http://diveintohtml5.info/geolocation.html" rel="nofollow">http://diveintohtml5.info/geolocation.html</a><br/><a href="http://social-interview.com/html5/2013/01/28/geolocation-find-yourself-on-the-google-map-static" rel="nofollow">http://social-interview.com/html5/2013/01/28/geolocation-find-yourself-on-the-google-map-static</a><br/>But how the procedure takes place is ambiguous. How does Google do it? How does it understand?]]></content:encoded>
      </item>
    <item>
        <title>winterwell.jtwitter.TwitterException$E404: Not Found http://yamba.maraka.com/api/statuses/update.json</title>
        <link>http://marakana.com/forums/android/learning_android_book/830.html</link>
        <author>Vijay Khatri</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/830.html</guid>
        <pubDate>Wed, 30 Jan 2013 18:25:02 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[I am consistently getting this 404 error:<br/><br/>winterwell.jtwitter.TwitterException$E404: Not Found <a href="http://yamba.maraka.com/api/statuses/update.json" rel="nofollow">http://yamba.maraka.com/api/statuses/update.json</a><br/><br/>This is the logcat output:<br/>01-29 19:25:34.186: D/StatusActivity(640): onClicked with test in: hhh<br/>01-29 19:25:34.196: D/StatusActivity(640): onClicked with test out: hhh<br/>01-29 19:25:35.006: E/StatusActivity(640): winterwell.jtwitter.TwitterException$E404: Not Found <a href="http://yamba.maraka.com/api/statuses/update.json" rel="nofollow">http://yamba.maraka.com/api/statuses/update.json</a><br/>01-29 19:25:35.016: W/System.err(640): winterwell.jtwitter.TwitterException$E404: Not Found <a href="http://yamba.maraka.com/api/statuses/update.json" rel="nofollow">http://yamba.maraka.com/api/statuses/update.json</a><br/>01-29 19:25:35.027: W/System.err(640): at winterwell.jtwitter.URLConnectionHttpClient.processError(URLConnectionHttpClient.java:132)<br/>01-29 19:25:35.047: W/System.err(640): at winterwell.jtwitter.URLConnectionHttpClient.post(URLConnectionHttpClient.java:219)<br/>01-29 19:25:35.047: W/System.err(640): at winterwell.jtwitter.Twitter.post(Twitter.java:1944)<br/>01-29 19:25:35.059: W/System.err(640): at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:2555)<br/>01-29 19:25:35.059: W/System.err(640): at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:2502)<br/>01-29 19:25:35.067: W/System.err(640): at com.example.yamba.StatusActivity$PostToTwitter.doInBackground(StatusActivity.java:44)<br/>01-29 19:25:35.067: W/System.err(640): at com.example.yamba.StatusActivity$PostToTwitter.doInBackground(StatusActivity.java:1)<br/>01-29 19:25:35.077: W/System.err(640): at android.os.AsyncTask$2.call(AsyncTask.java:264)<br/>01-29 19:25:35.077: W/System.err(640): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)<br/>01-29 19:25:35.087: W/System.err(640): at java.util.concurrent.FutureTask.run(FutureTask.java:137)<br/>01-29 19:25:35.087: W/System.err(640): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:208)<br/>01-29 19:25:35.097: W/System.err(640): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)<br/>01-29 19:25:35.117: W/System.err(640): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)<br/>01-29 19:25:35.117: W/System.err(640): at java.lang.Thread.run(Thread.java:856)<br/><br/><br/>The Java Code I am using is from the Yamba1 example:<br/><br/>package com.example.yamba;<br/><br/><br/><br/>import winterwell.jtwitter.*;<br/>import android.app.Activity;<br/>import android.os.AsyncTask;<br/>import android.os.Bundle;<br/>import android.util.Log;<br/>import android.view.Menu;<br/>import android.view.View;<br/>import android.widget.EditText;<br/>import android.widget.Toast;<br/><br/>public class StatusActivity extends Activity { <br/>static final String TAG = "StatusActivity"; <br/>EditText editStatus; <br/>Twitter twitter; <br/><br/>@Override <br/>public void onCreate(Bundle savedInstanceState) {<br/> super.onCreate(savedInstanceState);<br/> setContentView(R.layout.activity_status);<br/><br/> editStatus = (EditText) findViewById(R.id.edit_status);<br/><br/> twitter = new Twitter("student", "password");<br/> twitter.setAPIRootUrl("http://yamba.maraka.com/api");<br/> }<br/><br/> @Override<br/> public boolean onCreateOptionsMenu(Menu menu) {<br/> getMenuInflater().inflate(R.menu.activity_status, menu);<br/> return true;<br/> }<br/><br/><br/> // Asynchronously posts to twitter<br/><br/> class PostToTwitter extends AsyncTask&lt;String, Integer, String&gt; { // &lt;1&gt;<br/> // Called to initiate the background activity<br/><br/> @Override<br/> protected String doInBackground(String... statuses) { // &lt;2&gt;<br/> try {<br/> Twitter.Status status = twitter.updateStatus(statuses[0]);<br/> return status.text;<br/> } catch (TwitterException e) {<br/> Log.e(TAG, e.toString());<br/> e.printStackTrace();<br/><br/> return "Failed to post";<br/> }<br/> }<br/><br/> // Called when there's a status to be updated<br/> @Override<br/> protected void onProgressUpdate(Integer... values) { // &lt;3&gt;<br/> super.onProgressUpdate(values);<br/> // Not used in this case<br/> }<br/><br/> // Called once the background activity has completed<br/> @Override<br/> protected void onPostExecute(String result) { // &lt;4&gt;<br/> Toast.makeText(StatusActivity.this, result, Toast.LENGTH_LONG).show();<br/> }<br/> }<br/><br/> <br/>public void onClick(View v) {<br/> final String statusText = editStatus.getText().toString();<br/><br/> Log.d(TAG,"onClicked with test in: " + statusText);<br/><br/> new PostToTwitter().execute(statusText); // &lt;5&gt;<br/><br/> Log.d(TAG,"onClicked with test out: " + statusText);<br/> }<br/>}<br/>======================================================<br/>Not sure what I am missing. Please Help. <br/>Thanks for the help]]></content:encoded>
      </item>
    <item>
        <title>Can&apos;t login using &quot;student&quot; user, was the password changed?</title>
        <link>http://marakana.com/forums/android/learning_android_book/829.html</link>
        <author>Emil Adj</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/829.html</guid>
        <pubDate>Mon, 21 Jan 2013 07:02:57 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[I'm trying to access the service using the "student" , "password" combination in order to invite myself and create my own profile. and it's say that the password is incorrect, was it changed? ]]></content:encoded>
      </item>
    <item>
        <title>Multiple Instances of Dialog Activity</title>
        <link>http://marakana.com/forums/android/general/828.html</link>
        <author>Sahil Rally</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/828.html</guid>
        <pubDate>Fri, 18 Jan 2013 13:57:06 -0800</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Hello Geeks<br/><br/><br/><br/>Requirement : I want to show information about the caller in an Activity (With theme Dialog) whenever there is an Incoming Call.<br/><br/><br/>Solution : I made a BroadcastReceiver listening to incoming calls. It starts an Activity Dialog when ever there is a call and shows the information  about the caller. Activity Dialog has a cross button which shut downs or closes the activity dialog.<br/><br/>Problem : Suppose there is a call from Number X, as desired there is an Activity Dialog showing information about the Caller X. <br/><br/>Now suppose, user did not close the Activity Dialog . <br/><br/>Now there is another call from Number Y, an activity dialog comes with the information of X and not Y.<br/><br/><br/>Desired : Desired result is to show the Information of X as well as Information of Y in their respective Activity Dialogs. <br/><br/><br/>Note: I am starting an Activity from a Broadcast Receiver , so i have to use FLAG_NEW_TASK to launch an Activity. I am not sure why i have to use this flag but firing intent without it causes and Exception.<br/><br/>Regards<br/>Sahil Rally<br/>]]></content:encoded>
      </item>
    <item>
        <title>Problem with threads!</title>
        <link>http://marakana.com/forums/android/general/827.html</link>
        <author>Michalis Marinakis</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/827.html</guid>
        <pubDate>Thu, 17 Jan 2013 12:01:04 -0800</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Hi!<br/>I make an application (a simple game) and i am using threads for the animation. In emulator my app runs without any problem but when i run it in my phone (LG Optimus One) it crashes (usually after i restart it). And if it crashes and tring to restart it, it doesn't run again..I think that my problem is with threads but i am not sure and i can't find any solution..Does anybody have same problem or a possible solution???]]></content:encoded>
      </item>
    <item>
        <title>Files not being committed after changing</title>
        <link>http://marakana.com/forums/git/git/826.html</link>
        <author>Faisal Shabir</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/826.html</guid>
        <pubDate>Wed, 16 Jan 2013 17:33:57 -0800</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[Hi, <br/><br/>I've been working on two different problems (each with a separate branch) and finished half of the first problem, when I had to move to the second problem and finish it all the way.<br/><br/>After I finished the second problem, I came back to the first, checked out the first branch and started working on it.<br/><br/>Here a problem arose.<br/><br/>Whatever file changes I made in the first problem (two files) before moving to the second problem are not being picked up by git. Even If I made further changes to them, the git refuses to pick both of those files.<br/><br/><br/>Any new change to any other file except those two is being picked up by Git.<br/><br/>My only question is why GIT is ignoring those two files, even when I make more changes to both of these files. Is there any way Git picks all the files that I am making changes in.<br/><br/>Please help.]]></content:encoded>
      </item>
    <item>
        <title>Reverse implementation of git</title>
        <link>http://marakana.com/forums/git/git/825.html</link>
        <author>Vern Wong</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/825.html</guid>
        <pubDate>Wed, 16 Jan 2013 13:16:55 -0800</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[Git newbie here, my company wants version control for many years but it's taking the development department some time to get everyone up to speed. From an auditing/system security standpoint I would like to get version control up as soon as possible.<br/>Without altering the development workflow, I'm thinking<br/>1. git init in the production folder, git clone to a second server<br/>2. run a nightly git commit and push to the second server.<br/>This way I will have the whole file system along with the revisions on 2 systems, where I will look into a reporting solution for all the changes made.<br/>The thinking is when we can finally update the workflow, I can basically "switch roles" and make the the 2nd server the staging server, and enforce everyone uses git to stage their changes.<br/>Any thoughts on this, suggestions, or potential problems you see with this?<br/>Thanks!]]></content:encoded>
      </item>
    <item>
        <title>JQuery/JQM ajax cache problems with iOS6</title>
        <link>http://marakana.com/forums/html5/general/823.html</link>
        <author>Jeff Friedrichs</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/823.html</guid>
        <pubDate>Thu, 10 Jan 2013 10:51:58 -0800</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[Hi,<br/><br/>Stackoverflow has a number of articles about the problem with caching of POSTs that started in iOS6/Safari.  There are a number of recommendations to avoid this issue, and I have implemented adding a timestamp to the POSTs and it appears to resolve the problem.   Adding no-cache does not prevent the problem.<br/><br/>Our applications are mostly JQuery based, with a couple of newer applications being JQM.<br/><br/>However, my management is not satisfied with this answer.  They would like an expert to weigh in on the subject and confirm that this is the correct workaround.  Since it is a workaround, there is concern that in the future a programmer may forget to add the timestamp..<br/><br/>They are also concerned/surprised that this issue has not gotten more attention in the technical press.  Why isn't Google/Amazon/etc having problems with this change in iOS?  Surely they (certainly Amazon) rely heavily on POST.  <br/><br/>Is the issue more of a JQuery/JQM problem because of the way it sets up ajax calls?? (that was one theory I have seen in my searches).<br/><br/>Thanks,<br/>Jeff<br/>]]></content:encoded>
      </item>
    <item>
        <title>change in one file by multi people</title>
        <link>http://marakana.com/forums/git/git/822.html</link>
        <author>Sadi Dsd</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/822.html</guid>
        <pubDate>Wed, 09 Jan 2013 23:34:19 -0800</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[Hi.<br/>i am new in Git.i am trying to learn. i have a question like this. Firsly, i work on Ubuntu 12.10.<br/>i have a git.odt file. i change its content in a branch different from master. Also, my friend change content on his computer in a branch different from master. we sent these branches to git server.<br/>Now, i want to merge this o.odt file. i create a new branch. i pull my friend's last branch. but it says "Merge conflict".<br/>how can i follow a way achieving this processs.<br/>Thanks in advance.]]></content:encoded>
      </item>
    <item>
        <title>How to keep apps running in the background</title>
        <link>http://marakana.com/forums/android/examples/821.html</link>
        <author>Zaz Yil</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/821.html</guid>
        <pubDate>Tue, 08 Jan 2013 15:45:52 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[I want my gps to keep running in the background when program is closed down, and warn me if i'm getting close to a pinpoint. I have made all that except the background part. Is it even possible?<br/><br/>I did see some tutorials but nothing in this scale<br/><br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>public class GoogleMaps extends MapActivity implements LocationListener {<br/><br/>	LocationManager locationManager;<br/>	MapView map;<br/><br/>	long start;<br/>	long stop;<br/><br/>	MyLocationOverlay myLocation;<br/>	MapController controller;<br/>	List&lt;Overlay&gt; overlayList;<br/><br/>	int x, y;<br/>	GeoPoint touchedPoint;<br/>	Drawable d;<br/><br/>	String towers;<br/>	int lat;<br/>	int longi;<br/><br/>	double midllat;<br/>	double midlongi;<br/><br/>	NotificationManager nm;<br/>	static final int uniqueID = 1394885;<br/><br/>	@Override<br/>	public void onCreate(Bundle savedInstanceState) {<br/>		super.onCreate(savedInstanceState);<br/>		setContentView(R.layout.googlemaps);<br/>		map = (MapView) findViewById(R.id.mvGoogleMaps);<br/>		ourLocation();<br/>		Touchy t = new Touchy();<br/>		overlayList = map.getOverlays();<br/>		overlayList.add(t);<br/>		d = getResources().getDrawable(R.drawable.round_pointer);<br/>		controller.setZoom(18);<br/>		Criteria crit = new Criteria();<br/>		towers = locationManager.getBestProvider(crit, false);<br/>		Location location = locationManager.getLastKnownLocation(towers);<br/><br/>		nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);<br/>		nm.cancel(uniqueID);<br/><br/>	}<br/><br/>	public void ourLocation()<br/><br/>	{<br/>		// Pin blinks on location<br/>		myLocation = new MyLocationOverlay(this, map);<br/>		map.getOverlays().add(myLocation);<br/>		myLocation.enableMyLocation();<br/><br/>		// Find my current location<br/>		locationManager = (LocationManager) this<br/>				.getSystemService(Context.LOCATION_SERVICE);<br/>		locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,<br/>				20000, 0, this);<br/><br/>		controller = map.getController();<br/><br/>	}<br/><br/>	class Touchy extends Overlay {<br/>		public boolean onTouchEvent(MotionEvent e, MapView m) {<br/><br/>			if (e.getAction() == MotionEvent.ACTION_DOWN) {<br/>				start = e.getEventTime();<br/>				x = (int) e.getX();<br/>				y = (int) e.getY();<br/><br/>				touchedPoint = map.getProjection().fromPixels(x, y);<br/>				return false;<br/>			}<br/>			if (e.getAction() == MotionEvent.ACTION_UP) {<br/>				stop = e.getEventTime();<br/>			}<br/>			if (stop - start &gt; 1500) {<br/>				AlertDialog alert = new AlertDialog.Builder(GoogleMaps.this)<br/>						.create();<br/>				alert.setTitle("Pick an option");<br/>				alert.setButton("Add location",<br/>						new DialogInterface.OnClickListener() {<br/><br/>							@Override<br/>							public void onClick(DialogInterface dialog,<br/>									int which) {<br/><br/>								// NÅR DU TRYKKER ET STED PÅ ET KORT, KOMMER<br/>								// ADRESSEN FREM.<br/>								midllat = touchedPoint.getLatitudeE6() / 1E6;<br/>								midlongi = touchedPoint.getLongitudeE6() / 1E6;<br/><br/>								OverlayItem overlayitem = new OverlayItem(<br/>										touchedPoint, "Whats up", "2nd String");<br/>								CustomPinPoint custom = new CustomPinPoint(d,<br/>										GoogleMaps.this);<br/><br/>								custom.insertLocation(overlayitem);<br/>								overlayList.add(custom);<br/><br/>							}<br/>						});<br/><br/>				alert.setButton2("Delete location",<br/>						new DialogInterface.OnClickListener() {<br/><br/>							@Override<br/>							public void onClick(DialogInterface dialog,<br/>									int which) {<br/>								// TODO Auto-generated method stub<br/><br/>							}<br/>						});<br/><br/>				alert.setButton3("Get Adress",<br/>						new DialogInterface.OnClickListener() {<br/><br/>							@Override<br/>							public void onClick(DialogInterface dialog,<br/>									int which) {<br/><br/>								// NÅR DU TRYKKER ET STED PÅ ET KORT, KOMMER<br/>								// ADRESSEN FREM.<br/>								Geocoder geocoder = new Geocoder(<br/>										getBaseContext(), Locale.getDefault());<br/>								try {<br/>									List&lt;Address&gt; adress = geocoder.getFromLocation(<br/>											touchedPoint.getLatitudeE6() / 1E6,<br/>											touchedPoint.getLongitudeE6() / 1E6,<br/>											1);<br/>									if (adress.size() &gt; 0) {<br/>										String display = "";<br/><br/>										for (int i = 0; i &lt; adress.get(0)<br/>												.getMaxAddressLineIndex(); i++) {<br/>											display += adress.get(0)<br/>													.getAddressLine(i) + "\n";<br/>										}<br/>										Toast t = Toast.makeText(<br/>												getBaseContext(), display,<br/>												Toast.LENGTH_LONG);<br/>										t.show();<br/>									}<br/>								} catch (IOException e) {<br/>									// TODO Auto-generated catch block<br/>									e.printStackTrace();<br/>								} finally {<br/><br/>								}<br/>							}<br/>						});<br/><br/>				alert.show();<br/>				return true;<br/>			}<br/>			return false;<br/><br/>		}<br/>	}<br/><br/>	public void clickseetings(View view) {<br/>		final AlertDialog alert = new AlertDialog.Builder(GoogleMaps.this)<br/>				.create();<br/>		alert.setTitle("Pick an option");<br/><br/>		alert.setButton("Toogle View", new DialogInterface.OnClickListener() {<br/>			@Override<br/>			public void onClick(DialogInterface dialog, int which) {<br/>				// TODO Auto-generated method stub<br/><br/>				alert.dismiss();<br/><br/>				AlertDialog alertview = new AlertDialog.Builder(GoogleMaps.this)<br/>						.create();<br/>				alertview.setTitle("Select view");<br/><br/>				alertview.setButton("GoogleView",<br/>						new DialogInterface.OnClickListener() {<br/><br/>							@Override<br/>							public void onClick(DialogInterface dialog,<br/>									int which) {<br/>								// TODO Auto-generated method stub<br/>								if (map.isStreetView() == false) {<br/>									map.setSatellite(false);<br/>									map.setStreetView(true);<br/><br/>								}<br/>							}<br/>						});<br/><br/>				alertview.setButton2("SatelliteView",<br/>						new DialogInterface.OnClickListener() {<br/><br/>							@Override<br/>							public void onClick(DialogInterface dialog,<br/>									int which) {<br/>								// TODO Auto-generated method stub<br/>								if (map.isSatellite() == false) {<br/>									map.setStreetView(false);<br/>									map.setSatellite(true);<br/>								}<br/>							}<br/>						});<br/><br/>				alertview.show();<br/>			}<br/>		});<br/><br/>		alert.setButton2("Your locations",<br/>				new DialogInterface.OnClickListener() {<br/><br/>					@Override<br/>					public void onClick(DialogInterface dialog, int which) {<br/>					}<br/>				});<br/><br/>		alert.show();<br/>	}<br/><br/>	@Override<br/>	protected void onPause() {<br/>		// TODO Auto-generated method stub<br/>		myLocation.disableCompass();<br/>		super.onPause();<br/>		locationManager.removeUpdates(this);<br/>	}<br/><br/>	@Override<br/>	protected void onResume() {<br/>		// TODO Auto-generated method stub<br/>		myLocation.enableCompass();<br/>		super.onResume();<br/>		locationManager.requestLocationUpdates(towers, 500, 1, this);<br/><br/>	}<br/><br/>	@Override<br/>	public boolean onCreateOptionsMenu(Menu menu) {<br/>		getMenuInflater().inflate(R.menu.activity_main, menu);<br/>		return true;<br/>	}<br/><br/>	@Override<br/>	protected boolean isRouteDisplayed() {<br/>		return false;<br/>	}<br/><br/>	public void onProviderDisabled(String provider) {<br/>		// TODO Auto-generated method stub<br/>	}<br/><br/>	public void onProviderEnabled(String provider) {<br/>		// TODO Auto-generated method stub<br/>	}<br/><br/>	public void onStatusChanged(String provider, int status, Bundle extras) {<br/>		// TODO Auto-generated method stub<br/>	}<br/><br/>	@Override<br/>	public void onLocationChanged(Location location1) {<br/>		// TODO Auto-generated method stub<br/>		// Updating location and zoom<br/>		controller.setCenter(new GeoPoint(<br/>				(int) (location1.getLatitude() * 1000000), (int) (location1<br/>						.getLongitude() * 1000000)));<br/>		controller.setZoom(18);<br/><br/>		// Trying to get MyPostion.<br/>		Location myLocation = new Location("point A");<br/>		myLocation.setLongitude(location1.getLongitude());<br/>		myLocation.setLatitude(location1.getLatitude());<br/>		Location locationB = new Location("point B");<br/>		locationB.setLatitude(midllat);<br/>		locationB.setLongitude(midlongi);<br/><br/>		float distance = myLocation.distanceTo(locationB);<br/><br/>		if (distance &lt; 100) {<br/>			String hej = formatDist(distance);<br/><br/>			AudioManager am = (AudioManager) getSystemService(Context.AUDIO_SERVICE);<br/>			am.setRingerMode(AudioManager.RINGER_MODE_SILENT);<br/><br/>			Intent intent = new Intent(this, GoogleMaps.class);<br/>			PendingIntent pi = PendingIntent.getActivity(this, 0, intent, 0);<br/>			String body = "You are now in the silentzone";<br/>			String title = "IRemember";<br/>			Notification n = new Notification(R.drawable.round_pointer, body,<br/>					System.currentTimeMillis());<br/>			n.setLatestEventInfo(this, title, body, pi);<br/>			n.defaults = Notification.DEFAULT_ALL;<br/>			nm.notify(uniqueID, n);<br/><br/>		}<br/>	}<br/><br/>	public String formatDist(float meters) {<br/>		if (meters &lt; 1000) {<br/>			return ((int) meters) + "m";<br/>		} else<br/>			return formatDec(meters / 1000f, 1) + "km";<br/>	}<br/><br/>	public String formatDec(float val, int dec) {<br/>		int factor = (int) Math.pow(10, dec);<br/>		int front = (int) (val);<br/>		int back = (int) Math.abs(val * (factor)) % factor;<br/>		return front + "." + back;<br/>	}<br/><br/>}</pre>
		  </div>]]></content:encoded>
      </item>
    <item>
        <title>ERROR com.android.ide.eclipse.ddms.feature.group</title>
        <link>http://marakana.com/forums/android/learning_android_book/820.html</link>
        <author>Anubhav Kumar</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/820.html</guid>
        <pubDate>Sun, 06 Jan 2013 02:43:58 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[when i am installing ADT for eclipse from adt bundle then it is showing different error messages like com.android.ide.eclipse.ddms.feature.group and in details it is showing Cannot complete the request.  See the error log for details.<br/>"Android DDMS" will be ignored because a newer version is already installed. <br/>"Tracer for OpenGL ES" will be ignored because a newer version is already installed. <br/><br/>can you tell me how to remove it]]></content:encoded>
      </item>
    <item>
        <title>A doubt about git commit -a</title>
        <link>http://marakana.com/forums/git/git/819.html</link>
        <author>Fa773N M0nK</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/819.html</guid>
        <pubDate>Fri, 04 Jan 2013 21:23:25 -0800</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[Will doing <em>git commit <strong>-a</strong></em> everytime cause an increase in the history size?<br/><br/>Like, if I only edited one file, but <em>git commit <strong>-a</strong></em> will add <strong>all</strong> files. Will this blow up the history size?]]></content:encoded>
      </item>
    <item>
        <title>Importing Samples to Eclipse Problems</title>
        <link>http://marakana.com/forums/android/learning_android_book/818.html</link>
        <author>Zed Amazino</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/818.html</guid>
        <pubDate>Wed, 02 Jan 2013 13:05:29 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[When I attempt to import the samples (Yamba-1, etc) I get the following error from Eclipse:<br/><br/>Could not set the project description for 'StatusActivity' because the project description file (.project) is out of sync with the file system.<br/><br/>How can I resolve this issue?<br/><br/>Thank you.<br/><br/>-Z]]></content:encoded>
      </item>
    <item>
        <title>conversion to dalvik format fails</title>
        <link>http://marakana.com/forums/android/learning_android_book/816.html</link>
        <author>Siddarth Tony</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/816.html</guid>
        <pubDate>Sun, 30 Dec 2012 09:35:59 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[I just Installed a new sdk from the SDK manager and right after that, when I try to run it,I get an error stating<br/><br/>[2012-12-30 22:59:56 - Dex Loader] Unable to execute dex: Multiple dex files define Llgpl/haustein/Base64Encoder;<br/>[2012-12-30 22:59:56 - yambo] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Llgpl/haustein/Base64Encoder;<br/><br/>in the console. What can I do now to fix the error?I tried project&lt;clean,restarting eclipse,deleting bin...But nothing seems to work...]]></content:encoded>
      </item>
    <item>
        <title>Conversion to dalvik format failed</title>
        <link>http://marakana.com/forums/android/examples/815.html</link>
        <author>Siddarth Tony</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/815.html</guid>
        <pubDate>Sun, 30 Dec 2012 09:32:07 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[I just Installed a new sdk from the SDK manager and right after that, when I try to run it,I get an error stating<br/><br/>[2012-12-30 22:59:56 - Dex Loader] Unable to execute dex: Multiple dex files define Llgpl/haustein/Base64Encoder;<br/>[2012-12-30 22:59:56 - yambo] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Llgpl/haustein/Base64Encoder;<br/><br/>in the console. What can I do now to fix the error?I tried project&lt;clean,restarting eclipse,deleting bin...But nothing seems to work...<br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>logging in as student does not work</title>
        <link>http://marakana.com/forums/android/learning_android_book/812.html</link>
        <author>Vasiliy Kuznetsov</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/812.html</guid>
        <pubDate>Sat, 29 Dec 2012 12:09:04 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hello,<br/><br/>Logging in to <a href="http://yamba.marakana.com/main/login" rel="nofollow">http://yamba.marakana.com/main/login</a> as (username=student, pw=password) does not work.  It worked yesterday (2012-12-28) but does not work today (2012-12-29).  Did the student account change its password?  If so, what is the new password?<br/><br/>Thanks!<br/><br/>Vasiliy]]></content:encoded>
      </item>
    <item>
        <title>Android Internals from 10,000 feet</title>
        <link>http://marakana.com/forums/android/examples/809.html</link>
        <author>Ken Maskrey</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/809.html</guid>
        <pubDate>Sat, 22 Dec 2012 11:28:13 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[I'm getting ready for the Jan '13 Internals class. I'm reviewing videos, the pre-release version of Embedded Android, building AOSP, building/installing kernels for linux, device drivers, etc...all trying to get a handle on the highest level view of things so I don't struggle during the class.<br/><br/>My goals are to be able to build systems for SoC boards that I can use for my applications to provide low cost solutions for specific targets...rather than using a Tablet and an accessory interface (ADK/AOA). This is because I have been unable to use off the shelf tablets that communicate via USB using AOA and simultaneously charge the tablet...conflicts with USB Host/Device pulldowns/pullups and device specific resistor configurations to identify charging current...at least as far as I can discern...so a single board/SoC Android provides a great, low-cost solution...we all know that....<br/><br/>that's the why...<br/><br/>Now, here's my question(s), or assertion may be the more appropriate term...<br/><br/>In looking at this from the highest level (thus the 10K ft vantage point), and I come from an Apple MFi background so I'm just getting into the swing of things here, I envision this whole "Android Internal" thing as follows:<br/><br/>1) There seem to be essentially four sets of stuff (parts) that goes(go) into creating a SoC system: the kernel specific to the hardware, any drivers that are unique to the desired task, (e.g. SPI, spidev_test.c), the Android OS (AOSP) itself, and the applications, whether in user-space or system-space, e.g .apk s<br/><br/>Is that a reasonable way of looking at it? or am I deluding myself into simplifying it (or complicating it) to that extent? ALSO, this sort-of maps to the standard Android architectural diagrams:<br/><br/>Applications &lt;--&gt; applications<br/>Application Framework/Libraries &lt;--&gt; the Android OS<br/>Linux Kernel &lt;--&gt; Kernel and drivers<br/><br/>The left column is from the standard Architectural view of course, and the right side is my breakdown based on the development process...i.e you build AOSP, you build a kernel, you write/install drivers, and build apps. Does that make sense? I'm not trying to redesign the way this is presented or anything, but rather, map it to what I experience "hands on"...writing and compiling code.<br/><br/>2) Here's where I get hung up...all that "stuff"...the four elements or however many there are...get "packaged" to be installed to make dumb hardware work. Typically, we're talking about an SD card, for example, to install (or boot from) on the target hardware. Here, you'll have files like boot.img (the kernel), userdata.img (the user flesystem /data), system.img (/system), u-boot.bin (bootloader), and so on.<br/><br/>Is there a standard mapping of the "stuff" to the "packaging" concept I'm trying to describe or am I just getting too confused and buried in details.<br/><br/>again, just trying to get the high level view clear in my mind before class so I can focus on what I'm really wanting to get out of it.<br/><br/>thanks,]]></content:encoded>
      </item>
    <item>
        <title>video links don&apos;t work on github</title>
        <link>http://marakana.com/forums/android/general/808.html</link>
        <author>Avar Abdulla</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/808.html</guid>
        <pubDate>Thu, 20 Dec 2012 03:02:23 -0800</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[hello<br/>im trying to watch video links posted on marakana github account<br/>here <a href="https://github.com/marakana/bootcamp-feb2012" rel="nofollow">https://github.com/marakana/bootcamp-feb2012</a><br/>and here <a href="https://github.com/marakana/bootcamp-2012-06-04" rel="nofollow">https://github.com/marakana/bootcamp-2012-06-04</a><br/>but video presentaions links are all gone, when it'll be available again ?]]></content:encoded>
      </item>
    <item>
        <title>how to create branch</title>
        <link>http://marakana.com/forums/git/git/807.html</link>
        <author>Naresh Chinnakalappagari</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/807.html</guid>
        <pubDate>Thu, 13 Dec 2012 01:51:08 -0800</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[in clearcase code while upload through view in to branch  but in git how to upload code in to branch ]]></content:encoded>
      </item>
    <item>
        <title>Does &apos;git cherry&apos; consider the number of commits in head and upstream?</title>
        <link>http://marakana.com/forums/git/git/805.html</link>
        <author>Sudha Rao</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/805.html</guid>
        <pubDate>Thu, 06 Dec 2012 07:29:13 -0800</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[Consider the following scenario:<br/><br/>$ git branch –a<br/>* dev<br/>  master<br/><br/>$ git branch --contains 53fdfaf89fca499c36c71d29f25eb1a13b32d4d6<br/>  dev<br/><br/>$ git branch --contains f7dfb3689edcaf5f819fa5e691ce13abf858bca8<br/>  dev<br/>  master<br/><br/>$ git cherry master dev<br/> + 53fdfaf89fca499c36c71d29f25eb1a13b32d4d6<br/> + a4e66dbde954f73185d61bfb78b40ac5e61fe56c<br/> + 6fcffbd9b57e8a74726ea2cd3713f14baaaa06f5<br/> + 5031ad3cdf2e81c880e9cbf049abed6f1edde3bc<br/> + dcca33c373df6953ff164e8d70531abd71841278<br/><br/>But the twist is, the commit f7dfb3689edcaf5f819fa5e691ce13abf858bca8 is actually cherry picked from 53fdfaf89fca499c36c71d29f25eb1a13b32d4d6, and both are exactly the same (pardon me since for some reason we had to have 2 exact same commits with different commit id) Other than the commit message and the commit id, there is no difference between the two commits.<br/><br/>Now as per ‘git cherry’ documentation, The commits are compared with their patch id, obtained from the git patch-id program.<br/><br/>So I actually went ahead and executed the ‘git patch-id’ program as below<br/><br/>$ git show 53fdfaf89fca499c36c71d29f25eb1a13b32d4d6 | git patch-id<br/>bd6c061bd6c380d53832510cbaf68bebb4fb182d 53fdfaf89fca499c36c71d29f25eb1a13b32d4d6<br/><br/>$ git show f7dfb3689edcaf5f819fa5e691ce13abf858bca8 | git patch-id<br/>bd6c061bd6c380d53832510cbaf68bebb4fb182d f7dfb3689edcaf5f819fa5e691ce13abf858bca8<br/><br/>The above result shows that ‘git patch-id’ actually does recognize the two commits to be same but still the ‘git cherry’ command fails to do that.<br/><br/>The only reason I can see for this to happen is if ‘git cherry’ takes into account some factor other than ‘git patch-id’.<br/>Does it consider the number of commits made on the head (ie dev branch in my case)? Since we have 2 versions of the commit on the dev branch and only 1 on master.<br/>]]></content:encoded>
      </item>
    <item>
        <title>Android Key Lime Pie</title>
        <link>http://marakana.com/forums/android/general/803.html</link>
        <author>Vusi Moyo</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/803.html</guid>
        <pubDate>Tue, 04 Dec 2012 12:59:41 -0800</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Hey just thought i would share this article i found earlierl... :) <br/><br/><blockquote>The Android operating system has certainly come a long way, and it is rather interesting to see how Google gave nicknames to all of their mobile operating system versions from Android 1.0 onward. They all follow this sequence of a dessert that start off in an alphabetical order, and right now with Android 4.2, we are at Jelly Bean, with plenty of speculation going on that the next major update to Android would be Key Lime Pie.<br/> <br/>Well, many folks, including myself, did look forward to the release of Android 4.2 before it was officially announced, and we were hoping that it would have made the evolutionary jump to Key Lime Pie. Alas, pundits and observers alike were to be disappointed as Android 4.2 came across as yet another iteration of Jelly Bean, meaning Key Lime Pie would just have to wait for another day.<br/>Well, there is not much need to wait any longer, as confirmation has arrived that Key Lime Pie will be the official name of the future Android release, thanks to the efforts of a Google employee known as Manu Cornet.<br/>Manu Cornet illustrated a comic which he then posted on his Google+ account, where it depicted the evolution of the famous green Android robot. The chart itself is hauntingly familiar, and we have seen it before where humans were said to have evolved from apes to the modern day Homo Sapien. Well, the green Android robot does start to stand “erectus” from Ice Cream Sandwich (Android 4.0) onward, which reflects the true picture of Android at that point in time.<br/>Notice that the Android robot is snacking on something right after Jelly Bean, and it sure as heck resembles a piece of pie with cream, and who can miss out that bit of lime? Watch the smile on his face, and be prepared for Android 5.0 Key Lime Pie in due time. No idea on how much patience we will need to expend on this one.</blockquote><br/><br/>source: <a href="http://bit.ly/11P9I8g" rel="nofollow">http://bit.ly/11P9I8g</a>]]></content:encoded>
      </item>
    <item>
        <title>Yamba Example</title>
        <link>http://marakana.com/forums/android/examples/801.html</link>
        <author>Vusi Moyo</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/801.html</guid>
        <pubDate>Sun, 02 Dec 2012 21:06:27 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Hi<br/><br/>I have been following the Yamba examples on Youtube as well as the book "Learning Android". First of all huge thank you for all the resources you have for this !! :)<br/><br/>a problem I've been having though, is while i was following the droid bootcamp 12 for ics, i import the jtwitter-yamba.jar and create everything as per the vid, but when i press the "update" button in my app in order to update my status i get a huge block of errors. I'm not sure where im going wrong. but as stated earlier everything up until the jar got imported worked. even logging the times i pressed the update button.<br/><br/>a link  to my screenshot is below...<br/><br/>http://dl.dropbox.com/u/35547742/Capture.PNG<br/><br/>any help would be appreciated, thanks!<br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>How to install git in server</title>
        <link>http://marakana.com/forums/git/git/800.html</link>
        <author>Ram K</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/800.html</guid>
        <pubDate>Wed, 28 Nov 2012 00:26:05 -0800</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[Hello everyone,<br/><br/>i'm very new to server git etc...<br/><br/>I'm currently using svn for version control.<br/><br/>My task is to port svn to git.<br/><br/>I converted svn to git and having the folder myproject which includes all the commits and objects<br/><br/>1) How to host this files as a git in server?<br/>2) I like fetch these git through <a href="http://" rel="nofollow">http://</a><br/><br/>I'm fully weired past weeks. Please anyone explain those steps.<br/><br/>Thanks in advance<br/>Ram<br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>Does an app installed with OS run at system level?</title>
        <link>http://marakana.com/forums/android/examples/799.html</link>
        <author>Ken Maskrey</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/799.html</guid>
        <pubDate>Tue, 27 Nov 2012 08:45:50 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[If I install an app into the system build toolchain (packages/apps) which I've done and works fine, does it (the app) run at a permissions level that would allow it to use (broadcast)  android.intent.action.REBOOT?<br/>The purpose would be to be able to reset a device if the app were to hang, such as if the device were unattended in a remote location...either via a watchdog timer internally or via a remotely sent message perhaps via an MDM system.<br/><br/>It's easy enough to try this of course, but I thought I'd ask just in case there were any oddities I might need to handle, e.g. changes in permissions, build files, etc.]]></content:encoded>
      </item>
    <item>
        <title>Git hangs</title>
        <link>http://marakana.com/forums/git/git/798.html</link>
        <author>Norman Viands</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/798.html</guid>
        <pubDate>Tue, 27 Nov 2012 08:22:12 -0800</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[Hi,<br/>I have a big problem with Git hanging. whether I am trying to compress the database with a git gc or doing a stash before a pull, git just hangs for anywhere from 10 minutes to an hour, then it just starts working and further stashes or compressing the db completes quickly.<br/><br/>I am running Windows 7. Use Eclipse for development.<br/><br/>Is Windows locking up files somewhere and Git is waiting to do its thing?  I have had no luck googling for an answer.<br/><br/>Anybody have any ideas on whats going on with Git?<br/><br/>Norm ]]></content:encoded>
      </item>
    <item>
        <title>No authentication challenges found</title>
        <link>http://marakana.com/forums/android/learning_android_book/797.html</link>
        <author>Stefano Ciarrocchi</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/797.html</guid>
        <pubDate>Tue, 27 Nov 2012 02:13:38 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi.<br/><br/>I build application based on chapter 8 (Services).<br/><br/>When I call getFriendsTimeline() an exception is raised:<br/><br/><br/><code class="inline">winterwell.jtwitter.TwitterException: java.io.IOException: No authentication challenges found</code><br/><br/><br/>I check my Twitter object: user , password and API are ok.<br/><br/><br/><br/>What means "No authentication challenges found" ?<br/><br/><br/><br/>Stefano]]></content:encoded>
      </item>
    <item>
        <title>Setup for Android Internals- Fails for me</title>
        <link>http://marakana.com/forums/android/examples/795.html</link>
        <author>Ken Maskrey</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/795.html</guid>
        <pubDate>Fri, 23 Nov 2012 18:54:15 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[I'm trying to follow the setup for the Android Internals class and have been failing for two days.<br/><br/>System: Mac OS X 10.6 Snow Leopard with updates to 10.6.8<br/>I actually built the system from scratch using the SL disk with Case-sensitive on so I don't have to deal with disk images<br/>According to the source.android instructions, I've installed  XCode 4.2 (for Snow Leopard).<br/>I've checked out android-4.1.1_r4 branch according to the class setup instructions.<br/>I did not do any setup for 4.0.x or earlier.<br/>I did set the # open files to 1024 as per source.android.com<br/>I did source build/envsetup.sh and I selected full-eng, starting the build with make -j4<br/>It builds for about an hour and errors with the following last few lines<br/>-------------<br/>external/sqlite/dist/sqlite3.c:91941:1: warning: (near initialization for 'sqlite3Apis.aggregate_count') [-Wmissing-field-initializers]<br/>ld: illegal text-relocoation (direct reference) to (global,weak) DwarfCUImpl&lt;Dwarf_CUHdr&lt;Dwarf64_SizeHdr, unsigned long long&gt;, unsigned long long&gt;::get_pc_address_file_info(unsigned long long, Dwarf_AddressInfo*)in out/host/darwin-x86/obj/STATIC_LIBRARIES/emulator-libelff_intermediates/emulator-libelff.a(dwarf_cu.o) from DwarfCUImpl&lt;Dwarf_CUHdr&lt;Dwarf64_SizeHdr, unsigned long long&gt;, unsigned long long&gt;::get_pc_address_file_info(unsigned long long, Dwarf_AddressInfo*)in out/host/darwin-x86/obj/STATIC_LIBRARIES/emulator-libelff_intermediates/emulator-libelff.a(dwarf_cu.o) for architecture i386<br/>collect2: ld returned 1 exit status<br/>make: *** [out/host/darwin-x86/obj/EXECUTABLES/qemu-android-arm_intermediates/qemu-android-arm] Error 1<br/>make: *** Waiting for unfinished jobs....<br/>ld: illegal text-relocoation (direct reference) to (global,weak) DwarfCUImpl&lt;Dwarf_CUHdr&lt;Dwarf64_SizeHdr, unsigned long long&gt;, unsigned long long&gt;::get_pc_address_file_info(unsigned long long, Dwarf_AddressInfo*)in out/host/darwin-x86/obj/STATIC_LIBRARIES/emulator-libelff_intermediates/emulator-libelff.a(dwarf_cu.o) from DwarfCUImpl&lt;Dwarf_CUHdr&lt;Dwarf64_SizeHdr, unsigned long long&gt;, unsigned long long&gt;::get_pc_address_file_info(unsigned long long, Dwarf_AddressInfo*)in out/host/darwin-x86/obj/STATIC_LIBRARIES/emulator-libelff_intermediates/emulator-libelff.a(dwarf_cu.o) for architecture i386<br/>collect2: ld returned 1 exit status<br/>make: *** [out/host/darwin-x86/obj/EXECUTABLES/qemu-android-x86_intermediates/qemu-android-x86] Error 1<br/>-------------------------<br/>I've tried this twice. The first time, I did everything as per the class setup instructions, step-by-step. Having had that fail, I then tried a complete rebuild and only did the setup steps to build AOSP, skipping any ADK, NDK, etc setup to get right to the AOSP build process...both fail in the same spot as shown above.<br/><br/>I've successfully built AOSP on Ubuntu 10.04, but for class, I need to setup on the Mac and it's just not working for me.<br/><br/>Ken]]></content:encoded>
      </item>
    <item>
        <title>Yamba Android not working because of class not found</title>
        <link>http://marakana.com/forums/android/learning_android_book/792.html</link>
        <author>Kenny Kobz</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/792.html</guid>
        <pubDate>Sat, 17 Nov 2012 14:26:14 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[<div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">11-17 14:13:07.869: W/dalvikvm(5412): VFY: unable to find class referenced in signature (Lwinterwell/jtwitter/Twitter;)<br/>11-17 14:13:07.869: W/dalvikvm(5412): VFY: unable to resolve virtual method 190: Lwinterwell/jtwitter/Twitter;.getPublicTimeline ()Ljava/util/List;<br/>11-17 14:13:07.879: E/dalvikvm(5412): Could not find class 'winterwell.jtwitter.Twitter', referenced from method com.marakana.yamba6.YambaApplication.getTwitter<br/>11-17 14:13:07.879: W/dalvikvm(5412): VFY: unable to resolve new-instance 93 (Lwinterwell/jtwitter/Twitter;) in Lcom/marakana/yamba6/YambaApplication;<br/>11-17 14:13:07.879: W/dalvikvm(5412): VFY: unable to find class referenced in signature (Lwinterwell/jtwitter/Twitter;)</pre>
		  </div><br/><br/>Hi, how do I fix this error. I am using the JTwitterYamba version of the .jar file. When I start service or post a status, this is the error that occurs, the app crashes also.]]></content:encoded>
      </item>
    <item>
        <title>How to register ,,??</title>
        <link>http://marakana.com/forums/android/learning_android_book/791.html</link>
        <author>Sarthak Dabhi</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/791.html</guid>
        <pubDate>Sat, 17 Nov 2012 03:15:12 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[How to register my application to your site: yamba/marakana.com<br/>I did it a month ago and now i can not register or login in this site..??<br/>How i login or register in it..??<br/>Please tell me as possible as fast..<br/><br/>Thank you...<br/>Plz...hurry...   ]]></content:encoded>
      </item>
    <item>
        <title>Forbidden http://yamba.marakana.com/api/statuses/update.json (student)</title>
        <link>http://marakana.com/forums/android/learning_android_book/789.html</link>
        <author>Stefano Ciarrocchi</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/789.html</guid>
        <pubDate>Thu, 15 Nov 2012 03:46:17 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi <br/>When I Try the book example (chapter 6) in debug mode , the following error appears:<br/><br/>winterwell.jtwitter.TwitterException$E403: Forbidden <a href="http://yamba.marakana.com/api/statuses/update.json" rel="nofollow">http://yamba.marakana.com/api/statuses/update.json</a> (student)<br/><br/><br/>This is the method that raise the exception:<br/><br/>protected String doInBackground(String... statuses) { //<br/>try {<br/>Twitter.Status status = twitter.updateStatus(statuses[0]);<br/>return status.text;<br/>} catch (TwitterException e) {<br/>Log.e(TAG, e.toString());<br/>e.printStackTrace();<br/>return "Failed to post";<br/>}<br/>}<br/><br/><br/>I use the account:<br/><br/>twitter = new Twitter("student", "password"); //<br/>twitter.setAPIRootUrl("http://yamba.marakana.com/api");<br/><br/><br/>I have to use another method? Can you link the alternative method?<br/><br/>Thanks.<br/><br/><br/>Stefano<br/>]]></content:encoded>
      </item>
    <item>
        <title>Unable to start Receiver</title>
        <link>http://marakana.com/forums/android/learning_android_book/788.html</link>
        <author>Oscar Yang</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/788.html</guid>
        <pubDate>Thu, 15 Nov 2012 02:34:48 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Is anyone getting this error? Specifically, I got a Runtime Exception saying that "Unable to start receiver on YambaWidget". Is this due to the fact that I do not have a widget setup (like dragged one onto the Home application? If so, what should I do to prevent it? It eventually traces to YambaWidget.onUpdate(context, appWidgetManager, appWidgetManager.getAppWidgetIds(new ComponentName(context, YambaWidget.class))); Anyone getting this error? <br/><br/>This is prevent my TimelineActivity to update during the app life cycle but it is not prevent it from update ON START of the app. So it crashes and when I reopen Yamba, the timeline is updated.<br/><br/>Any input is welcome and thanks in advance.]]></content:encoded>
      </item>
    <item>
        <title>Work with a forked version</title>
        <link>http://marakana.com/forums/git/git/787.html</link>
        <author>Paul Martin</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/787.html</guid>
        <pubDate>Wed, 14 Nov 2012 17:24:43 -0800</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[Hi,<br/><br/>I am using Git for a while but i still have trouble understanding some features despite hours spent on blogs and tutorials... :)<br/><br/>I am working on a project with other people for which my boss created a repo on bitBucket.<br/><br/>I pulled it locally, and already did some commits to the master branch. I now want to do modifications on the long term. I think i should fork the master branch to have my own version. <br/><br/>Before doing so, I have a few questions for you guys:<br/><br/>Question 1: If I modify files in my forked version, will I be able to push them to the master branch? how?<br/><br/>Question 2: How do I keep the master branch (i.e. new commits from other users) into my forked version?<br/><br/>Question 3: Do I have to work locally with my forked version or should I push it to the remote repo?<br/><br/>Question 4: Has the remote repo of my forked version anything to do with the master repo?<br/><br/>Question 5: Will my forked version be visible by others members of the team?<br/><br/>I'd appreciate A LOT if anyone could clarify this for me!<br/><br/>Thank you.]]></content:encoded>
      </item>
    <item>
        <title>TimelineActivity Error</title>
        <link>http://marakana.com/forums/android/learning_android_book/786.html</link>
        <author>Oscar Yang</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/786.html</guid>
        <pubDate>Tue, 13 Nov 2012 19:21:33 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[I just want to make a post indicating that I have found an error with both the book and the source online. For me, the TimelineActivity crashes when ever onResume() is called. I have eventually isolated the problem to the fact that onPause() is not implemented and most importantly, stopManagingCursor(cursor) is not called. If you are encountering this error, simply add the following code:<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">	<br/>@Override<br/>protected void onPause(){<br/>        super.onPause();<br/>        stopManagingCursor(cursor);<br/>}<br/></pre>
		  </div><br/><br/>stopManagingCursor() is also marked as deprecated. Anyone know what to replace that with?]]></content:encoded>
      </item>
    <item>
        <title>startManagingCursor and SimpleCursorAdapter deprecated</title>
        <link>http://marakana.com/forums/android/learning_android_book/785.html</link>
        <author>Oscar Yang</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/785.html</guid>
        <pubDate>Tue, 13 Nov 2012 18:07:47 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[I have noticed that SimpleCursorAdapter constructor and the method startManagingCursor are deprecated. Are there any alternatives?<br/><br/>Thanks,<br/>Oscar]]></content:encoded>
      </item>
    <item>
        <title>Simple question ? [git branch]</title>
        <link>http://marakana.com/forums/git/git/784.html</link>
        <author>Agatte K</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/784.html</guid>
        <pubDate>Tue, 13 Nov 2012 04:13:21 -0800</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[Hi All Users,<br/><br/>I am beginner in git. I am doing my first steps with this tool.<br/>Now, I used git gui on linux OS.<br/>I don't know what I could change branches ?<br/>I need to change current working branch to do a commit. <br/>I can see in the menu branch :<br/>Create<br/>checkout<br/>rebase<br/>Reset<br/>--<br/><br/>Could anyone help me please ?<br/><br/><br/>I would appreciate for any help.<br/><br/><br/><br/>agatte<br/><br/><br/><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>Getting error while running yamba application</title>
        <link>http://marakana.com/forums/android/examples/783.html</link>
        <author>Raman Walia</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/783.html</guid>
        <pubDate>Mon, 12 Nov 2012 06:14:06 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[while running yamba app i got this error<br/><br/>E/AndroidRuntime( 766): FATAL EXCEPTION: main<br/>E/AndroidRuntime( 766): java.lang.VerifyError: com/yamba/example/StatusActivity<br/>$1<br/><br/><br/>E/AndroidRuntime( 766): at com.yamba.example.StatusActivity.onClick(Stat<br/>usActivity.java:39)<br/>E/AndroidRuntime( 766): at android.view.View.performClick(View.java:3480<br/>)<br/>E/AndroidRuntime( 766): at android.view.View$PerformClick.run(View.java:<br/>13983)<br/>E/AndroidRuntime( 766): at android.os.Handler.handleCallback(Handler.jav<br/>a:605)<br/>E/AndroidRuntime( 766): at android.os.Handler.dispatchMessage(Handler.ja<br/>va:92)<br/>E/AndroidRuntime( 766): at android.os.Looper.loop(Looper.java:137)<br/>E/AndroidRuntime( 766): at android.app.ActivityThread.main(ActivityThrea<br/>d.java:4340)<br/>E/AndroidRuntime( 766): at java.lang.reflect.Method.invokeNative(Native<br/>Method)<br/>E/AndroidRuntime( 766): at java.lang.reflect.Method.invoke(Method.java:5<br/>11)<br/>E/AndroidRuntime( 766): at com.android.internal.os.ZygoteInit$MethodAndA<br/>rgsCaller.run(ZygoteInit.java:784)<br/>E/AndroidRuntime( 766): at com.android.internal.os.ZygoteInit.main(Zygot<br/>eInit.java:551)<br/>E/AndroidRuntime( 766): at dalvik.system.NativeStart.main(Native Method)<br/><br/>W/ActivityManager( 94): Force finishing activity com.yamba.example/.StatusAc<br/>tivity<br/>W/WindowManager( 94): Failure taking screenshot for (180x300) to layer 21010<br/>I/WindowManager( 94): createSurface Window{4164ceb0 paused=false}: DRAW NOW P<br/>ENDING<br/>W/ActivityManager( 94): Activity pause timeout for ActivityRecord{414c5878 com<br/>.yamba.example/.StatusActivity}<br/>W/NetworkManagementSocketTagger( 94): setKernelCountSet(10005, 1) failed with<br/>errno -2<br/>I/WindowManager( 94): createSurface Window{415d6cf0 com.android.launcher/com.a<br/>ndroid.launcher2.Launcher paused=false}: DRAW NOW PENDING<br/>W/NetworkManagementSocketTagger( 94): setKernelCountSet(10040, 0) failed with<br/>errno -2<br/>I/Process ( 766): Sending signal. PID: 766 SIG: 9<br/>I/WindowManager( 94): WIN DEATH: Window{4153e0d0 com.yamba.example/com.yamba.e<br/>xample.StatusActivity paused=false}<br/>I/ActivityManager( 94): Process com.yamba.example (pid 766) has died.<br/>W/InputManagerService( 94): Got RemoteException sending setActive(false) notif<br/>ication to pid 766 uid 10040<br/>D/dalvikvm( 147): GC_FOR_ALLOC freed 527K, 36% free 10586K/16455K, paused 42ms<br/>D/dalvikvm( 147): GC_CONCURRENT freed 382K, 36% free 10626K/16455K, paused 5ms+<br/>6ms<br/>W/ActivityManager( 94): Activity destroy timeout for ActivityRecord{414c5878 c<br/>om.yamba.example/.StatusActivity}<br/>W/ThrottleService( 94): unable to find stats for iface rmnet0<br/>D/dalvikvm( 178): GC_CONCURRENT freed 401K, 6% free 10332K/10951K, paused 8ms+6<br/>ms<br/>F/NetworkStats( 94): problem reading network stats<br/>F/NetworkStats( 94): java.lang.IllegalStateException: problem parsing line: nu<br/>ll<br/>F/NetworkStats( 94): at com.android.internal.net.NetworkStatsFactory.readNetw<br/>orkStatsDetail(NetworkStatsFactory.java:313)<br/>F/NetworkStats( 94): at com.android.server.NetworkManagementService.getNetwor<br/>kStatsUidDetail(NetworkManagementService.java:1271)<br/>F/NetworkStats( 94): at com.android.server.net.NetworkStatsService.performPol<br/>lLocked(NetworkStatsService.java:810)<br/>F/NetworkStats( 94): at com.android.server.net.NetworkStatsService.performPol<br/>l(NetworkStatsService.java:771)<br/>F/NetworkStats( 94): at com.android.server.net.NetworkStatsService.access$100<br/>(NetworkStatsService.java:128)<br/>F/NetworkStats( 94): at com.android.server.net.NetworkStatsService$3.onReceiv<br/>e(NetworkStatsService.java:610)<br/>F/NetworkStats( 94): at android.app.LoadedApk$ReceiverDispatcher$Args.run(Loa<br/>dedApk.java:728)<br/>F/NetworkStats( 94): at android.os.Handler.handleCallback(Handler.java:605)<br/>F/NetworkStats( 94): at android.os.Handler.dispatchMessage(Handler.java:92)<br/>F/NetworkStats( 94): at android.os.Looper.loop(Looper.java:137)<br/>F/NetworkStats( 94): at android.os.HandlerThread.run(HandlerThread.java:60)<br/>F/NetworkStats( 94): Caused by: java.io.FileNotFoundException: /proc/net/xt_qt<br/>aguid/stats: open failed: ENOENT (No such file or directory)<br/>F/NetworkStats( 94): at libcore.io.IoBridge.open(IoBridge.java:406)<br/>F/NetworkStats( 94): at java.io.FileInputStream.&lt;init&gt;(FileInputStream.java:7<br/>8)<br/>F/NetworkStats( 94): at java.io.FileReader.&lt;init&gt;(FileReader.java:42)<br/>F/NetworkStats( 94): at com.android.internal.net.NetworkStatsFactory.readNetw<br/>orkStatsDetail(NetworkStatsFactory.java:272)<br/>F/NetworkStats( 94): ... 10 more<br/>F/NetworkStats( 94): Caused by: libcore.io.ErrnoException: open failed: ENOENT<br/>(No such file or directory)<br/>F/NetworkStats( 94): at libcore.io.Posix.open(Native Method)<br/>F/NetworkStats( 94): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:98)<br/>F/NetworkStats( 94): at libcore.io.IoBridge.open(IoBridge.java:390)<br/>F/NetworkStats( 94): ... 13 more<br/>D/dalvikvm( 94): GC_CONCURRENT freed 587K, 9% free 12278K/13447K, paused 5ms+1<br/>3ms<br/><br/><br/>&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; Copy of My Code &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;..<br/>&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;Imported a jar from yamba 8 &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br/>package com.yamba.example;<br/><br/>import winterwell.jtwitter.Twitter;<br/>import winterwell.jtwitter.TwitterException;<br/>import android.app.Activity;<br/>import android.os.Bundle;<br/>import android.util.Log;<br/>import android.view.View;<br/>import android.view.View.OnClickListener;<br/>import android.widget.Button;<br/>import android.widget.EditText;<br/>import android.widget.Toast;<br/><br/>public class StatusActivity extends Activity implements OnClickListener{<br/><br/>Button buttonupdate; <br/>//changed in xml, it works for buttons only<br/>EditText editstatus;<br/>static final String TAG = "StatusActivity";<br/><br/>@Override<br/>public void onCreate(Bundle savedInstanceState) {<br/>super.onCreate(savedInstanceState);<br/><br/>//Log.d(TAG, "onClicked With Bundle:" + savedInstanceState);<br/>setContentView(R.layout.status);<br/><br/>buttonupdate = (Button) findViewById(R.id.button_update);<br/>editstatus = (EditText) findViewById(R.id.edit_status);<br/><br/>buttonupdate.setOnClickListener(this);<br/>}<br/><br/>public void onClick(View v) {<br/><br/>//android:onClick="onClick"<br/>final String statusText = editstatus.getText().toString();<br/><br/>new Thread() {<br/>public void run() {<br/>try {<br/>Twitter twitter = new Twitter("student", "password");<br/>twitter.setAPIRootUrl("http://yamba.marakana.com/api");<br/>twitter.setStatus(statusText);<br/>Log.d(TAG, "Posted:" + statusText );<br/>Toast.makeText(StatusActivity.this, "Posted" + statusText, Toast.LENGTH_LONG).show();<br/>} catch (TwitterException e) {<br/>// TODO Auto-generated catch block<br/>Log.e(TAG, "Died", e);<br/>e.printStackTrace();<br/><br/>}<br/>}<br/>}.start();<br/><br/>Log.d(TAG, "onClicked with text" + statusText);<br/>}<br/><br/>}]]></content:encoded>
      </item>
    <item>
        <title>How to continue after Learning Android</title>
        <link>http://marakana.com/forums/android/learning_android_book/782.html</link>
        <author>Karthik Bhat</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/782.html</guid>
        <pubDate>Fri, 09 Nov 2012 11:03:07 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[    Hey i finished Learning Android BootCamp Series. where can i get learn advanced stuff about android. is there any video tutorial up for that??? ]]></content:encoded>
      </item>
    <item>
        <title>winterwell.jtwitter.jar difficulty</title>
        <link>http://marakana.com/forums/android/examples/778.html</link>
        <author>Michael Karavan</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/778.html</guid>
        <pubDate>Sat, 03 Nov 2012 12:21:12 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[I'm a rookie to Java and Android.<br/><br/>I am having some difficulty with the jtwitter.jar file from the Android bootcamp series.  Following the lesson, I have imported the jar file as suggested, but when I punch in the twitter code, I get a black line through the new Twitter, and a message stating that the element is deprecated and cannot be found.  Trying to fix the bug, but so far, no luck.<br/><br/>Any suggestions are highly appreciated.<br/><br/>Thanks,<br/><br/>Michael]]></content:encoded>
      </item>
    <item>
        <title>push from local to another computer</title>
        <link>http://marakana.com/forums/git/git/775.html</link>
        <author>Ibran Bevinahalli</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/775.html</guid>
        <pubDate>Thu, 18 Oct 2012 00:44:25 -0700</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[hi,<br/>I am new to git, i can able to push to local machine but how to push the code to the repositories which is located in another computer please help me out for this.<br/><br/>thanks in advanced.]]></content:encoded>
      </item>
    <item>
        <title>Getting  Started with Git</title>
        <link>http://marakana.com/forums/git/git/773.html</link>
        <author>Ashish Namdev</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/773.html</guid>
        <pubDate>Fri, 12 Oct 2012 05:05:49 -0700</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[Hello , I am  a Fresher just joined Integration for Android.<br/>Can Somebody tell me how to Start Android Integration with  GIT.<br/>I don't know Linux/Unix<br/>So will it be easy for me or tough.<br/>Please guide me to start with git.<br/><br/><br/>thank you .<br/><br/><br/>Ashish Namdev<br/>]]></content:encoded>
      </item>
    <item>
        <title>Awesome libraries</title>
        <link>http://marakana.com/forums/ruby/ruby_on_rails/772.html</link>
        <author>Jay Damodaran</author>
        <guid isPermaLink="true">http://marakana.com/forums/ruby/ruby_on_rails/772.html</guid>
        <pubDate>Tue, 09 Oct 2012 14:49:08 -0700</pubDate>
        <category>Ruby - Ruby on Rails</category>
        <content:encoded><![CDATA[Hey guys,<br/><br/>Just released some libraries for simplifying user content handling:<br/><br/>https://www.filepicker.io/products/libraries/<br/><br/>Let me know what you think!]]></content:encoded>
      </item>
    <item>
        <title>Connect to twitter</title>
        <link>http://marakana.com/forums/android/learning_android_book/771.html</link>
        <author>Sarthak Dabhi</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/771.html</guid>
        <pubDate>Sun, 07 Oct 2012 08:29:13 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Mr. Marko....<br/>i am going to make twitter app..<br/>so how can i connect with twitter ? <br/>If you have any code or videos then please suggest me...]]></content:encoded>
      </item>
    <item>
        <title>android.os.networkmainthreadException</title>
        <link>http://marakana.com/forums/android/learning_android_book/770.html</link>
        <author>Bijay Chamlagai</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/770.html</guid>
        <pubDate>Sun, 07 Oct 2012 00:57:28 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Thanks for uploading the bootcamp video on youtube. I really love the way Marko teach especially the word "make sense" and cool .<br/>Whenever ever i run my app and click on the Update button i got message my sorry yamba is stopped.<br/><br/><br/>I checked the log cat and found out the error <br/> Android.os.NetworkonmainThreadException<br/><br/><br/>please help me to fix this problem thankyou]]></content:encoded>
      </item>
    <item>
        <title>How to connect http://yamba.marakana.com/api</title>
        <link>http://marakana.com/forums/android/learning_android_book/769.html</link>
        <author>Sarthak Dabhi</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/769.html</guid>
        <pubDate>Sun, 07 Oct 2012 00:43:11 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Yamba app is running good.but i dont know how to connect it with your site .. <a href="http://yamba.marakana.com.api" rel="nofollow">http://yamba.marakana.com.api</a><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>Problem in opening a custom file type (*.trs) file from Samsung Galaxy tab My Files  application.</title>
        <link>http://marakana.com/forums/android/learning_android_book/765.html</link>
        <author>Ravi Teja Maddali</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/765.html</guid>
        <pubDate>Thu, 27 Sep 2012 07:08:31 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi,<br/><br/>  I have a custom file extension *.trs a binary which can be associated with my app.I am able to open the file from almost all the file managers except Samsung Galaxy Tab "My Files" application.there is no exact mime type for the file but when i gave the path pattern as <br/><br/>   &lt;intent-filter &gt;<br/>                &lt;action android:name="android.intent.action.GET_CONTENT" /&gt;<br/>                &lt;action android:name="android.intent.action.VIEW" /&gt;<br/>                &lt;action android:name="android.intent.action.PICK" /&gt;<br/><br/>                &lt;category android:name="android.intent.category.DEFAULT" /&gt;<br/><br/>                &lt;data android:pathPattern=".*\\.trs" /&gt;<br/>                &lt;data android:pathPattern=".*\\.trs" /&gt;<br/>                &lt;data android:pathPattern=".*\\..*\\.trs" /&gt;<br/>                &lt;data android:pathPattern=".*\\..*\\..*\\.trs" /&gt;<br/>                &lt;data android:pathPattern=".*\\..*\\..*\\..*\\.trs" /&gt;<br/>                &lt;data android:pathPattern=".*..*..*..*..*.trs" /&gt;<br/>                &lt;data android:pathPattern=".*..*..*..*.trs" /&gt;<br/>                &lt;data android:pathPattern=".*..*..*.trs" /&gt;<br/>                &lt;data android:pathPattern=".*..*.trs" /&gt;<br/>                &lt;data android:pathPattern=".*.trs" /&gt;<br/>                &lt;data android:mimeType="application/octet-stream" /&gt;<br/>                &lt;data android:mimeType="application/trs" /&gt;<br/>                 &lt;data android:mimeType="document/trs" /&gt;<br/>            &lt;/intent-filter&gt; <br/><br/> it works in almost all file managers..except Samsung tab's default file manager My Files.<br/><br/> Plz help me out.<br/><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>pull abbreviating filenames in pipe</title>
        <link>http://marakana.com/forums/git/git/764.html</link>
        <author>Barrie Walker</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/764.html</guid>
        <pubDate>Mon, 24 Sep 2012 04:45:42 -0700</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[I need to process the output of <code class="inline">git pull</code> but it shortens long file names when it's piped to another process. Is there a way to stop this? I want the whole name.<br/><br/>Thanks for any help you can give.<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>$ git pull origin <br/>remote: Counting objects: 459, done.<br/>remote: Compressing objects: 100% (192/192), done.<br/>Receiving objects: 100% (458/458), 25.48 KiB, done.<br/>remote: Total 458 (delta 17), reused 0 (delta 0)<br/>Resolving deltas: 100% (17/17), completed with 1 local objects.<br/>From master-repository<br/>   497d722..f1cebff  master     -&gt; origin/master<br/>Updating 497d722..f1cebff<br/>Fast-forward<br/> this/is/a/long/filepath/which/git/pull/will/abbreviate/this/is/a/long/filepath/which/git/pull/will/abbreviate/this/is/a/long/filepath/which/git/pull/will/abbreviate/woo.txt | 2 ++<br/> this/is/a/long/filepath/which/git/pull/will/abbreviate/this/is/a/long/filepath/which/git/pull/will/abbreviate/woo.txt                                                        | 2 ++<br/> this/is/a/long/filepath/which/git/pull/will/abbreviate/woo.txt                                                                                                               | 2 ++<br/> 3 files changed, 6 insertions(+)<br/> create mode 100644 this/is/a/long/filepath/which/git/pull/will/abbreviate/this/is/a/long/filepath/which/git/pull/will/abbreviate/this/is/a/long/filepath/which/git/pull/will/abbreviate/woo.txt<br/> create mode 100644 this/is/a/long/filepath/which/git/pull/will/abbreviate/this/is/a/long/filepath/which/git/pull/will/abbreviate/woo.txt<br/> create mode 100644 this/is/a/long/filepath/which/git/pull/will/abbreviate/woo.txt<br/><br/>$ git pull origin | more<br/>remote: Counting objects: 459, done.<br/>remote: Compressing objects: 100% (192/192), done.<br/>remote: Total 458 (delta 17), reused 0 (delta 0)<br/>Receiving objects: 100% (458/458), 25.48 KiB, done.<br/>Resolving deltas: 100% (17/17), completed with 1 local objects.<br/>From master-repository<br/>   497d722..f1cebff  master     -&gt; origin/master<br/>Updating 497d722..f1cebff<br/>Fast-forward<br/> .../this/is/a/long/filepath/which/git/pull/will/abbreviate/woo.txt      | 2 ++<br/> .../this/is/a/long/filepath/which/git/pull/will/abbreviate/woo.txt      | 2 ++<br/> this/is/a/long/filepath/which/git/pull/will/abbreviate/woo.txt          | 2 ++<br/> 3 files changed, 6 insertions(+)<br/> create mode 100644 this/is/a/long/filepath/which/git/pull/will/abbreviate/this/is/a/long/filepath/which/git/pull/will/abbreviate/this/is/a/long/filepath/which/git/pull/will/abbreviate/woo.txt<br/> create mode 100644 this/is/a/long/filepath/which/git/pull/will/abbreviate/this/is/a/long/filepath/which/git/pull/will/abbreviate/woo.txt<br/> create mode 100644 this/is/a/long/filepath/which/git/pull/will/abbreviate/woo.txt<br/><br/>$ <br/></pre>
		  </div>]]></content:encoded>
      </item>
    <item>
        <title>What Android is not?</title>
        <link>http://marakana.com/forums/android/general/763.html</link>
        <author>John Farrell</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/763.html</guid>
        <pubDate>Mon, 24 Sep 2012 02:38:11 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[<strong>A Java ME implementation</strong> — Android applications are written using the Java language,<br/>but they are not run within a Java ME (Mobile Edition) VM, and Java-compiled classes and<br/>executables will not run natively in Android.<br/><strong>Part of the Linux Phone Standards Forum (LiPS) or the Open Mobile Alliance (OMA)</strong> —<br/>Android runs on an open-source Linux kernel, but, while their goals are similar, Android’s<br/>complete software stack approach goes further than the focus of these standards-defining<br/>organizations.<br/><strong>Simply an application layer (such as UIQ or S60)</strong> — Although Android does include an application<br/>layer, “Android’’ also describes the entire software stack, encompassing the underlying<br/>operating system, the API libraries, and the applications themselves.<br/><strong>A mobile phone handset</strong> — Android includes a reference design for mobile handset manufacturers,<br/>but there is no single “Android phone.” Instead, Android has been designed to support<br/>many alternative hardware devices.<br/><strong>Google’s answer to the iPhone</strong> — The iPhone is a fully proprietary hardware and software<br/>platform released by a single company (Apple), whereas Android is an open-source<br/>software stack produced and supported by the Open Handset Alliance (OHA) and designed<br/>to operate on any compatible device.]]></content:encoded>
      </item>
    <item>
        <title>Adding APIs of previous Android releases</title>
        <link>http://marakana.com/forums/android/general/762.html</link>
        <author>Syed Ahmed</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/762.html</guid>
        <pubDate>Sun, 23 Sep 2012 04:30:06 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Hello All,<br/><br/>I am new to android. I have installed the SDK for API level 15. I have developed an app in which I have used the CursorLoader as against the SimpleCursorAdapter. And my problem is to make the app compatible with both &gt;11 API and &lt;11 APIs. I wanted to test it on an AVD with API level 10 or less. But i am in a fix here as to how do I install the APIs of previous builds? From the SDK manager it does not install and the error stating it requires the SDK platform for that particualr API.<br/><br/>Can some one please help here.<br/><br/>Thanks]]></content:encoded>
      </item>
    <item>
        <title>Running native network based application in background</title>
        <link>http://marakana.com/forums/android/general/759.html</link>
        <author>Mageswaran D</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/759.html</guid>
        <pubDate>Sun, 09 Sep 2012 06:46:24 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Hi <br/>Thanks to your Android Tutorials and once again.<br/>I am currently working on integrating skype into set top box.<br/>Need some help from you guys...<br/><br/>The problem is how to integrate and start the skypekit runtime engine (native arm cross compiled static linked) in background from android application and keep it alive for server communication.<br/><br/>I used runtime.exec() but the "skypekit runtime binary" always closes as soon as its starts with return code '0'.<br/>Also tried to run it as a service but failed!!!<br/><br/>But i am able to start it manually and linked it with my customized skype app and able to login.<br/><br/>I came to know Android will auto kill process that it doesnt need!!!<br/><br/>Please help me in this as this is my first assignment in my company.]]></content:encoded>
      </item>
    <item>
        <title>Is yamba.marakana.com down?</title>
        <link>http://marakana.com/forums/marakana/announcements/757.html</link>
        <author>Jitendra Mohanty</author>
        <guid isPermaLink="true">http://marakana.com/forums/marakana/announcements/757.html</guid>
        <pubDate>Mon, 03 Sep 2012 08:41:09 -0700</pubDate>
        <category>Marakana - Announcements</category>
        <content:encoded><![CDATA[Hello,<br/><br/>can anybody please confirm me if <a href="http://yamba.marakana.com" rel="nofollow">http://yamba.marakana.com</a> site is down? I have been trying to test my sample code since last two days, but every time I end up in exception. Moreover, when I open the site on my browser, the page is blank. Thanks in advance!<br/><br/>-Jit ]]></content:encoded>
      </item>
    <item>
        <title>Clearcase to GIT Migration.</title>
        <link>http://marakana.com/forums/git/git/756.html</link>
        <author>Amit Rotti</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/756.html</guid>
        <pubDate>Thu, 30 Aug 2012 23:47:03 -0700</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[We are moving source code from Clearcase to Git and want to know if anyone has had any experience there doing this and could share do's / dont's, best practices when doing the initial import.<br/>Also are there any known problems/bugs with the Clearcase to git import with regards to Clearcase history? Details below,<br/><br/>Source Code - C<br/>Compiler - Metrowrecks<br/>Build tool - Make<br/>Build Files - Object files dat files and text files.<br/>Version tool - Clearcase<br/>Multisite - Yes, using Clearcase Multisite.<br/><br/><br/>Thanks in advance for your valuable inputs.<br/><br/><br/><br/>Regards,<br/>Amit Rotti<br/>9535098099]]></content:encoded>
      </item>
    <item>
        <title>If we can use Cassandra DB with Spring Frame work?</title>
        <link>http://marakana.com/forums/spring/general/755.html</link>
        <author>Bhanu Regmi</author>
        <guid isPermaLink="true">http://marakana.com/forums/spring/general/755.html</guid>
        <pubDate>Tue, 28 Aug 2012 22:03:12 -0700</pubDate>
        <category>Spring - General</category>
        <content:encoded><![CDATA[Hello All<br/>I am using Spring and want to Use <strong>Cassandra</strong> DB as a Database for my project<br/>it is possible to use Cassandra with <strong>Cassandra </strong>but i have no idea how to configure <strong>Netbeans</strong> for working with <strong>Spring and Cassandra</strong>..<br/><br/>please help me to configure those on my Netbeans IDE<br/>i am using <strong>Netbeans 7.2</strong> and my OS is <strong>Windows 7 ultimate 64bit</strong>]]></content:encoded>
      </item>
    <item>
        <title>Graphics in android</title>
        <link>http://marakana.com/forums/android/general/754.html</link>
        <author>Kush Malik</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/754.html</guid>
        <pubDate>Mon, 27 Aug 2012 11:47:26 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Hi,<br/><br/>I have seen few videos on youtube for android graphics. What I want to understand is do we really need to have coding experience in developing graphics for android apps. When I mean graphics I mean moving screen's like the ones in Angry Birds and Temple run?<br/><br/>Thanks<br/>Kush]]></content:encoded>
      </item>
    <item>
        <title>problem with the UpdaterService class</title>
        <link>http://marakana.com/forums/android/learning_android_book/753.html</link>
        <author>Jiji Jiji</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/753.html</guid>
        <pubDate>Mon, 27 Aug 2012 08:41:53 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[hello guys i have some problem with my code in the yamba APP  in the <strong>UpdaterService class</strong> any help can be helpful for me and this is the code of the <strong>UpdaterService class</strong> i can't get the comments from the website  .<br/>and this the code :<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">package com.marakana.yamba;<br/><br/>import java.util.List;<br/><br/>import winterwell.jtwitter.Twitter;<br/>import winterwell.jtwitter.Twitter.Status;<br/>import android.app.Service;<br/>import android.content.Intent;<br/>import android.database.sqlite.SQLiteDatabase;<br/>import android.os.IBinder;<br/>import android.util.Log;<br/><br/>public class UpdaterService extends Service {<br/><br/>	<br/>	private static final String TAG = YambaApplication.class.getSimpleName();<br/>	private Updater updater;<br/>	<br/>	<br/>	@Override<br/>	public IBinder onBind(Intent intent) {<br/><br/>		<br/>		return null;<br/>	}<br/><br/>	<br/>	<br/>	@Override<br/>	public void onCreate() {<br/>		<br/>		super.onCreate();<br/>		updater = new Updater();<br/>		<br/>		Log.d(TAG,"onCreate'd");<br/>	}<br/><br/>	<br/><br/>	@Override<br/>	public synchronized void  onStart(Intent intent, int startId) {<br/>		<br/>		super.onStart(intent, startId);<br/>		<br/>	//// start the updater<br/>		if(!updater.isRunning())<br/>		{<br/>		 <br/><br/>			updater.start();<br/>			<br/>		}<br/>		Log.d(TAG,"onStart'd");<br/>	}<br/>	<br/>	@Override<br/>	public void onDestroy() {<br/>		<br/>		super.onDestroy();<br/>		<br/>		//// stop the updater <br/>		if(updater.isRunning()){<br/>		updater.interrupt();<br/>		<br/>		}<br/>		updater = null;<br/>		Log.d(TAG,"onDestroy'd");<br/>	}<br/>	<br/>	<br/>	////////////<br/>	///&gt;&gt;&gt;&gt;&gt; updater thread <br/>	class Updater extends Thread{<br/>		<br/>		private static final long DELAY = 60000;<br/>		public boolean isRunning = false;<br/>		<br/>		public Updater()<br/>		{<br/>			super("Updater");<br/>		}<br/>		<br/>		@Override<br/>		public void run() {<br/>			isRunning = true;<br/>			while (isRunning) {<br/>				Log.d(TAG, "Updater is start t run");<br/>				try {<br/>					// do something<br/>					Log.d(TAG, "Updater now is  run");	<br/>					<br/>					//// open database <br/>	//				DbHelper dbHelper = new DbHelper(UpdaterService.this);<br/>	//				SQLiteDatabase db = dbHelper.getWritableDatabase();<br/>					////  get friends statuses<br/>					<br/>					Twitter twitter = ((YambaApplication)getApplication()).getTwitter();<br/>					Log.d(TAG, "ERRORRRRRRR ONE");<br/>					<br/>//////	this is the line that give the   error &gt;&gt;&gt;&gt;&gt;&gt;<br/>					List&lt;Status&gt;statuses = twitter.getHomeTimeline();<br/>					Log.d(TAG, "ERRORRRRRRR  with getHomeTimeline()");<br/>					for(Status status: statuses){<br/>						Log.d(TAG, String.format("%s: %s",status.user.name, status.text));<br/>///////// end of line that give error <br/>					}<br/>					<br/>					/// close  database<br/>//					 db.close();<br/>//					 dbHelper.close();<br/>					<br/>					//sleep<br/>					Thread.sleep(DELAY);<br/>				} catch (InterruptedException e) {<br/><br/>					<br/>					// interrupted<br/>					isRunning = false;<br/>				}<br/>			}/// for the while<br/>		}<br/>		<br/>		public boolean isRunning()<br/>		{<br/>			return this.isRunning;<br/>		}<br/>	}<br/><br/>}<br/> </pre>
		  </div><br/><br/><br/>and this is the error that i get after compiling:<br/><br/><br/><br/><blockquote>W/dalvikvm(  273): threadid=15: thread exiting with uncaught exception (group=0x<br/>4001b188)<br/>E/AndroidRuntime(  273): Uncaught handler: thread Updater exiting due to uncaugh<br/>t exception<br/>E/AndroidRuntime(  273): winterwell.jtwitter.TwitterException: java.net.Malforme<br/>dURLException: Protocol not found: /statuses/home_timeline.json<br/>E/AndroidRuntime(  273):        at winterwell.jtwitter.URLConnectionHttpClient.g<br/>etPage(URLConnectionHttpClient.java:98)<br/>E/AndroidRuntime(  273):        at winterwell.jtwitter.Twitter.getStatuses(Twitt<br/>er.java:1691)<br/>E/AndroidRuntime(  273):        at winterwell.jtwitter.Twitter.getHomeTimeline(T<br/>witter.java:1463)<br/>E/AndroidRuntime(  273):        at com.marakana.yamba.UpdaterService$Updater.run<br/>(UpdaterService.java:101)<br/>E/AndroidRuntime(  273): Caused by: java.net.MalformedURLException: Protocol not<br/> found: /statuses/home_timeline.json<br/>E/AndroidRuntime(  273):        at java.net.URL.&lt;init&gt;(URL.java:275)<br/>E/AndroidRuntime(  273):        at java.net.URL.&lt;init&gt;(URL.java:159)<br/>E/AndroidRuntime(  273):        at winterwell.jtwitter.URLConnectionHttpClient.g<br/>etPage(URLConnectionHttpClient.java:81)<br/>E/AndroidRuntime(  273):        ... 3 more</blockquote>]]></content:encoded>
      </item>
    <item>
        <title>winterwell.jtwitter.TwitterException: android.os.NetworkOnMainThreadException</title>
        <link>http://marakana.com/forums/android/learning_android_book/751.html</link>
        <author>Pallavi Aggarwal</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/751.html</guid>
        <pubDate>Sun, 26 Aug 2012 10:42:09 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi <br/><br/>Whenever i am trying to type something to update my status i am getting the below error:<br/><br/><br/>winterwell.jtwitter.TwitterException: android.os.NetworkOnMainThreadException<br/><br/><br/>Some URL connection is not happening. Please help me resolve this asap.<br/><br/>Thanks!]]></content:encoded>
      </item>
    <item>
        <title>How to differentiate between application using mic based on permissions</title>
        <link>http://marakana.com/forums/android/general/750.html</link>
        <author>Tarun Batra</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/750.html</guid>
        <pubDate>Fri, 24 Aug 2012 02:31:31 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[I want to detect which application is using the microphone.<br/><br/>Suppose two applications have access to the microphone. For an application to use the microphone, it should have android.permission.RECORD_AUDIO.<br/><br/>With the lsof command, we can detect the microphone is being used, but not the application name that is using it. So we can list down all the currently running applications, then we can check which application has android.permission.RECORD_AUDIO permission, but here is the problem:<br/><br/>Suppose we have two applications named "A" and "B". A can only record voice while B has an option to record voice and maintain network status. As both can record voice, both will have android.permission.RECORD_AUDIO permission. So we can know that both A and B can use the mic, but at present, which one is using the mic? How can I avoid such confusion?<br/>]]></content:encoded>
      </item>
    <item>
        <title>How to differentiate between application based on permission</title>
        <link>http://marakana.com/forums/android/general/746.html</link>
        <author>Tarun Batra</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/746.html</guid>
        <pubDate>Fri, 24 Aug 2012 02:30:50 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[I want to detect which application is using the microphone.<br/><br/>Suppose two applications have access to the microphone. For an application to use the microphone, it should have android.permission.RECORD_AUDIO.<br/><br/>With the lsof command, we can detect the microphone is being used, but not the application name that is using it. So we can list down all the currently running applications, then we can check which application has android.permission.RECORD_AUDIO permission, but here is the problem:<br/><br/>Suppose we have two applications named "A" and "B". A can only record voice while B has an option to record voice and maintain network status. As both can record voice, both will have android.permission.RECORD_AUDIO permission. So we can know that both A and B can use the mic, but at present, which one is using the mic? How can I avoid such confusion?<br/>]]></content:encoded>
      </item>
    <item>
        <title>Now what should i do to find which Application is using my phone microphone?i researched and found following</title>
        <link>http://marakana.com/forums/android/general/745.html</link>
        <author>Tarun Batra</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/745.html</guid>
        <pubDate>Wed, 22 Aug 2012 07:44:03 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[I want to detect which application of my phone is using my phone microphone so i did the following:-<br/>I try'ed running dumpsys as shown below in Android OS 2.2 and Android OS 2.3<br/>  Process p = Runtime.getRuntime().exec("/system/bin/dumpsys media.player");<br/>In  Android OS 2.2 i am getting the following reply:-<br/><br/> DUMP OF SERVICE media.player:<br/>  Files opened and/or mapped:<br/> /proc/33/fd/15 -&gt; /system/media/audio/ui/VideoRecord.ogg<br/><br/><br/>But in Android OS 2.3 i am getting:-<br/>Permission Denied<br/><br/><br/>So i try'ed lsof command by writing the Code in C and giving call to my code through JNI interface and found that:-<br/>As per Android Multimedia framework the MediaServer is responsible for opening the device and the Java based audio applications connect it as a client. The data transfer happens on the Binder. May because of this there is only one process seen which opens the audio device.<br/>Now either i should get the way to read information from MediaServer.<br/>or what should i try.<br/><br/><br/>I don't have root permission to execute my code.<br/>Now what should i do to find which Application is using my phone microphone?<br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>chapter 8 - ActivityNotFoundException</title>
        <link>http://marakana.com/forums/android/learning_android_book/744.html</link>
        <author>Fouad Banit</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/744.html</guid>
        <pubDate>Wed, 22 Aug 2012 07:38:19 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[I run the application with the updaterService and get this error each time I click on "start service":<br/><br/><blockquote>08-21 15:57:45.477: E/AndroidRuntime(436): FATAL EXCEPTION: main<br/>08-21 15:57:45.477: E/AndroidRuntime(436): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.marakana.yamba/com.marakana.yamba.UpdaterService}; have you declared this activity in your AndroidManifest.xml?<br/>08-21 15:57:45.477: E/AndroidRuntime(436): 	at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1405)</blockquote><br/><br/>Here is my Manifest:<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"<br/>    package="com.marakana.yamba" android:versionCode="1"<br/>    android:versionName="1.0" &gt;<br/><br/>    &lt;uses-sdk android:minSdkVersion="8" android:targetSdkVersion="15" /&gt;<br/><br/>    &lt;uses-permission android:name="android.permission.INTERNET" /&gt;<br/><br/>	&lt;application android:icon="@drawable/icon" android:label="@string/app_name"<br/>				 android:name=".YambaApplication"&gt;<br/><br/>	    &lt;activity android:name=".StatusActivity" android:label="@string/titleStatus" &gt;<br/>            &lt;intent-filter&gt;<br/>                &lt;action android:name="android.intent.action.MAIN" /&gt;<br/>                &lt;category android:name="android.intent.category.LAUNCHER" /&gt;<br/>            &lt;/intent-filter&gt;<br/>        &lt;/activity&gt;<br/>        <br/>        &lt;activity android:name=".PrefsActivity" android:label="@string/titlePrefs"/&gt;<br/>        <br/>        &lt;service android:name=".UpdaterService" &gt;<br/>		&lt;/service&gt;       <br/>    &lt;/application&gt;<br/>    <br/>&lt;/manifest&gt;</pre>
		  </div><br/><br/>What is wrong?<br/>Thanks]]></content:encoded>
      </item>
    <item>
        <title>how to retrieve android application cache..</title>
        <link>http://marakana.com/forums/android/examples/743.html</link>
        <author>Haresh Veldurty</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/743.html</guid>
        <pubDate>Mon, 20 Aug 2012 23:37:44 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[hi i am newbie to android iam trying to implement google offline maps..where does the googlemaps store the offline maps, if it stores in the application cache is there a way to retrieve that data and place it in our webview? plzz give some clues.]]></content:encoded>
      </item>
    <item>
        <title>TimelineActivity onResume() question</title>
        <link>http://marakana.com/forums/android/learning_android_book/742.html</link>
        <author>Kevin Sounthavong</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/742.html</guid>
        <pubDate>Sun, 19 Aug 2012 15:05:14 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[<div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">protected void onResume() {<br/>		// TODO Auto-generated method stub<br/>		super.onResume();<br/>		<br/>		//Setup List<br/>		//this.setupList();<br/>		cursor=db.query(DbHelper.TABLE,null,null,null,null,null,DbHelper.C_CREATED_AT+" DESC");<br/>		startManagingCursor(cursor);<br/>		<br/>		//Create the adapter<br/>		adapter=new TimelineAdapter(this, cursor);<br/>		listTimeline.setAdapter(adapter);<br/>		<br/>		//Register the receiver<br/>		registerReceiver(receiver, filter);<br/>	}</pre>
		  </div><br/><br/>Exactly what do I initialize db to? My cursor receives a NullPointerException. Also, when I comment out all the code besides<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"> this.setupList();<br/>registerReceiver(receiver,filter);<br/></pre>
		  </div><br/><br/>The app seems to work fine, but my TimelineActivity screen does not refresh every minute.<br/>]]></content:encoded>
      </item>
    <item>
        <title>Chapter 8 NullPointerException</title>
        <link>http://marakana.com/forums/android/learning_android_book/741.html</link>
        <author>Ross Heironimus</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/741.html</guid>
        <pubDate>Sat, 18 Aug 2012 20:17:28 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[I had everything working in the emulator until the last section of chapter 8. After I entered the changes in "Pulling Data from Twitter" I started getting a null pointer exception in Updater.run() on the line:<br/><br/><code class="inline">	            timeline = yamba.getTwitter().getFriendsTimeline(); //</code><br/><br/>I tried cutting and pasting the code from the git hub for UpdaterService and YambaApplication but no luck.<br/><br/>Here is the full error from the LogCat<br/><br/>08-10 06:28:06.806: I/YambaApplication(2181): onCreated<br/>08-10 06:28:06.846: D/UpdaterService(2181): onCreated<br/>08-10 06:28:06.876: D/UpdaterService(2181): onStarted<br/>08-10 06:28:06.916: D/UpdaterService(2181): Updater running<br/>08-10 06:28:06.956: W/dalvikvm(2181): threadid=8: thread exiting with uncaught exception (group=0x4001d800)<br/>08-10 06:28:07.000: E/AndroidRuntime(2181): FATAL EXCEPTION: UpdaterService-Updater<br/>08-10 06:28:07.000: E/AndroidRuntime(2181): java.lang.NullPointerException<br/>08-10 06:28:07.000: E/AndroidRuntime(2181): 	at com.example.yamba.UpdaterService$Updater.run(UpdaterService.java:75)<br/>08-10 06:33:07.125: I/Process(2181): Sending signal. PID: 2181 SIG: 9<br/><br/>Any suggestions?<br/><br/><br/>Thanks]]></content:encoded>
      </item>
    <item>
        <title>Chapter 20: Database Part 1</title>
        <link>http://marakana.com/forums/android/learning_android_book/740.html</link>
        <author>Karthick M</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/740.html</guid>
        <pubDate>Fri, 17 Aug 2012 07:31:38 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[<div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">ContentValues values = new ContentValues();<br/>		values.put(C_ID, status.id);<br/>		values.put(C_CREATED_AT, status.createdAt.getTime());<br/>		values.put(C_USER, status.user.name);<br/>		values.put(C_TEXT, status.text);</pre>
		  </div><br/><br/>Well I'm getting error on this line <code class="inline">values.put(C_ID, status.id);</code><br/>and the error messsage is..<br/><blockquote>The method put(String, String) in the type ContentValues is not applicable for the arguments (String, BigInteger)</blockquote><br/>I don't know what to do. Assist me! Thank You!!]]></content:encoded>
      </item>
    <item>
        <title>Does android keep a log of when it starts?</title>
        <link>http://marakana.com/forums/android/general/739.html</link>
        <author>John Sanders</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/739.html</guid>
        <pubDate>Thu, 16 Aug 2012 11:34:06 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Hello!<br/><br/>My name is John Sanders and I'm a highschool student with a passion for programming.  I wanted to learn how to develop android apps and Marakana's youtube training videos were an immense help.  Thank you Marko Gargenta and Marakana!<br/><br/>I'm making a parental control/accountability app for android. It consists of a monitoring service that runs in the background and starts when the phone is booted.<br/><br/>Unfortunately, I have found that when android is started in "Safe Mode", services are not started automatically, and because of this my app has a serious flaw.<br/>(more information about Safe Mode here: <a href="http://source.android.com/tech/security/index.html#system-partition-and-safe-mode" rel="nofollow">http://source.android.com/tech/security/index.html#system-partition-and-safe-mode</a>)<br/><br/>While in safe mode, the web and other apps can be started without my monitoring service running.<br/><br/>I thought that if it isn't possible to monitor app activity while in safe mode, maybe I could at least have my app detect if the phone was previously in safe mode. Then it could alert the parent or accountability partner?<br/><br/>Does Android keep any log of this? Or any boot log in general? I'm open to alternative solutions.<br/><br/>Thank you.]]></content:encoded>
      </item>
    <item>
        <title>Sync production with Git</title>
        <link>http://marakana.com/forums/git/git/735.html</link>
        <author>Kiran Pyati</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/735.html</guid>
        <pubDate>Wed, 08 Aug 2012 06:03:18 -0700</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[I am new to github,<br/><br/>Earlier we used to manually upload files on the production through FTP although git was present on the production. Due to this now git status shows many modified and untrack files.<br/><br/>To sync that with git we have downloaded all files from production and committed to git. Now git has all files same as production.<br/><br/>We have not pulled on production since last 6 months and because of this it shows modified and untracked files. <br/><br/>Now if we pull on the production there any 100% chances of the conflict happened on all modified files. As there are hundreds of modified files since last since month. Git pull will show conflict to all those files. In that case site will get down and we can not afford this.<br/><br/>We want a way to seamlessly sync production and Git.<br/><br/>Can anybody please help me on this?<br/><br/>Thanks in advance..!!<br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>Wrong settings for jtwitter on Yamba on new Eclipse?</title>
        <link>http://marakana.com/forums/android/learning_android_book/734.html</link>
        <author>Oyeleke Okiki</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/734.html</guid>
        <pubDate>Sun, 05 Aug 2012 08:25:47 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[My app never runs after I import the jtwitter<br/>Im using the "jtwitter-yamba.jar" Yet there first thing Logcat tells me is that<br/>"Could not find class winterwell.jtwitter.Twitter" referenced from method marakana.yamba.StatusActivity.onCreate<br/>Unable to resolve new-instance 496(Lwinterwell/jtwitter/Twitter;) in Lcom/marakan/yamba/StatusActivity"<br/><br/><br/>After that it shuts down the VM<br/><br/>N.B: I use the latest Eclipse ADT 20.2 And Java EE<br/><br/><br/>By the way,its a lovely book,Sycophancy apart,Im not using this book instead of d remaining 6 I have just for fun]]></content:encoded>
      </item>
    <item>
        <title>Call interstate or intrastate</title>
        <link>http://marakana.com/forums/android/general/733.html</link>
        <author>Hortensio Macbeth</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/733.html</guid>
        <pubDate>Fri, 03 Aug 2012 01:01:02 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Interstate calls are very nominal per minute. Make Interstate calls within USA is 5¢ per minute. For intrastate calls rates vary from 1 to 8 minute rounding. No additional fees or tax is applicable. Moreover there is no actual expiration of card that is applicable. Call more than hundred countries worldwide. These cards are available with exceptionally low rates. Once they are exhausted off the minutes that are used for making calls, they can be recharged online. Get the best rates for Africa as well as Middle East. The lines are real clear as well as there is no connection fee applicable. Calls can be made to the interstates of Africa as well as to Middle East.]]></content:encoded>
      </item>
    <item>
        <title>Leaving private files out of repo</title>
        <link>http://marakana.com/forums/git/git/730.html</link>
        <author>Sven Klose</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/730.html</guid>
        <pubDate>Mon, 30 Jul 2012 16:01:20 -0700</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[]]></content:encoded>
      </item>
    <item>
        <title>Getting error while starting server plz help</title>
        <link>http://marakana.com/forums/ruby/ruby_on_rails/729.html</link>
        <author>Rishi Aggarwal</author>
        <guid isPermaLink="true">http://marakana.com/forums/ruby/ruby_on_rails/729.html</guid>
        <pubDate>Fri, 27 Jul 2012 04:25:43 -0700</pubDate>
        <category>Ruby - Ruby on Rails</category>
        <content:encoded><![CDATA[c:/Ruby193/lib/ruby/gems/1.9.1/gems/rails-2.3.14/lib/rails_generator/options.rb:32:in `default_options': undefi <br/>ned method `write_inheritable_attribute' for Rails::Generator::Base:Class (NoMethodError) <br/>from c:/Ruby193/lib/ruby/gems/1.9.1/gems/rails-2.3.14/lib/rails_generator/base.rb:90:in `&lt;class:Base&gt;' <br/>from c:/Ruby193/lib/ruby/gems/1.9.1/gems/rails-2.3.14/lib/rails_generator/base.rb:85:in `&lt;module:Genera <br/>tor&gt;' <br/>from c:/Ruby193/lib/ruby/gems/1.9.1/gems/rails-2.3.14/lib/rails_generator/base.rb:48:in `&lt;module:Rails&gt; <br/>' <br/>from c:/Ruby193/lib/ruby/gems/1.9.1/gems/rails-2.3.14/lib/rails_generator/base.rb:6:in `&lt;top (required) <br/>&gt;' <br/>from c:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' <br/>from c:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' <br/>from c:/Ruby193/lib/ruby/gems/1.9.1/gems/rails-2.3.14/lib/rails_generator.rb:37:in `&lt;top (required)&gt;' <br/>from c:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' <br/>from c:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' <br/>from c:/Ruby193/lib/ruby/gems/1.9.1/gems/rails-2.3.14/bin/rails:15:in `&lt;top (required)&gt;' <br/>from c:/Ruby193/bin/rails:23:in `load' <br/>from c:/Ruby193/bin/rails:23:in `&lt;main&gt;']]></content:encoded>
      </item>
    <item>
        <title>Email containing html</title>
        <link>http://marakana.com/forums/android/examples/728.html</link>
        <author>Kislay Kumar</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/728.html</guid>
        <pubDate>Tue, 24 Jul 2012 04:06:17 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Hello,<br/><br/>I am trying to send a html table into my mail using Html.fromHtml, but after searching alot on internet I have found that it is not possible to send an html table inside a mail.<br/><br/>So my question is, How can I send Html table with my mail. Any hint, sample, or reference would help me. <br/>Thanks in advance!!]]></content:encoded>
      </item>
    <item>
        <title>git newbie - how to create a new repository using cmd line</title>
        <link>http://marakana.com/forums/git/git/726.html</link>
        <author>C Pama</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/726.html</guid>
        <pubDate>Mon, 23 Jul 2012 08:58:52 -0700</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[hi. i just downloaded and installed git version 1.7.7.1.msysgit for windows. <br/>i also downloaded a manual called "pro git"... not sure if that's the wrong manual to be using. <br/>anyways.  i'm trying to learn how to use the git bash app. <br/><br/>the manual says to track an existing project, i need to go to the project's directory and type :<br/>$git init<br/><br/>and then this will create a new directory called ".git". <br/><br/>unfortunately, i'm also a newbie to unix/linux. <br/>i tried to "cd /wamp/www" but that's not working. <br/><br/>How do i figure out where i am as far as directory structure is concerned?<br/>thanks. <br/>]]></content:encoded>
      </item>
    <item>
        <title>java.lang.NoClassDefFoundError: winterwell.jtwitter.Twitter</title>
        <link>http://marakana.com/forums/android/learning_android_book/725.html</link>
        <author>A. Lester Buck III</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/725.html</guid>
        <pubDate>Thu, 12 Jul 2012 21:07:10 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[I am working through the Android Bootcamp videos on Youtube at:<br/><br/><a href="http://www.youtube.com/playlist?list=PLE08A97D36D5A255F" rel="nofollow">http://www.youtube.com/playlist?list=PLE08A97D36D5A255F</a><br/><br/>They are super good, and I'm really enjoying Marko's teaching style.<br/><br/>When he first demonstrates the Yamba app in video 04 around the 14min mark, he fires up Yamba-8 and runs it.  When I fire up Yamba-8 (or Yamba-7, ...), I get the error in the title of this post when I tap refresh:<br/><br/>java.lang.NoClassDefFoundError: winterwell.jtwitter.Twitter<br/><br/>I think I tracked down this error to a recent update in ADT:<br/><br/><a href="http://stackoverflow.com/questions/2247998/noclassdeffounderror-eclipse-and-android" rel="nofollow">http://stackoverflow.com/questions/2247998/noclassdeffounderror-eclipse-and-android</a><br/><br/>I have this problem with SDK Tools v20 and SDK Platform-tools v12.<br/><br/>In the Yamba-8 case, this means that jtwitter-yamba.jar is ignored at the top level of the project folder.  It is also ignored if it is explicitly added to the project path.  It is also ignored if put into a lib folder.  (Apparently that used to work for some version.)  But if jtwitter-yamba.jar is put in a "libs" folder (note the plural), then ant picks it up automatically and the app runs without error.  I can even cycle work/fail/work/fail by renaming the folder libs/lib/libs/lib.<br/><br/><br/>I hope this might help others hitting this snag!<br/>]]></content:encoded>
      </item>
    <item>
        <title>make call without intents</title>
        <link>http://marakana.com/forums/android/examples/724.html</link>
        <author>Zsolt Specker</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/724.html</guid>
        <pubDate>Thu, 12 Jul 2012 00:18:42 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Hi all,<br/><br/>I have a specific problem hopefully you can help me.. <br/><br/>I would like to make an Android application to measure and diagnose mobile networks. <br/>Hence I have to make calls and meanwhile check the mobile network parameters.<br/><br/>I tried to use ACTION_DIAL intent but in this case I cannot get parameters of calls (e.g. call setup time)because the intent hides it. I debugged it and checked what happen in the sdk when setup a call but I couldn't find out.<br/>I look into the sdk's internal telephony package and try to find the class which use the dial function, I found several classes and I gone through them by the callhierarchy.<br/>Finally I got to the CallManager class and I didn't find further class which use this class' dial function.<br/><br/>Please help me to find a way to make a call without intents!<br/>Someone of you have a good hint for me?<br/><br/>Is it possible to simulate a speech with play a voice file (mp3, wav etc) during a call? <br/>Could someone help me about this issue?<br/><br/>Thanks in advance!<br/><br/>Br,<br/>Zsolt]]></content:encoded>
      </item>
    <item>
        <title>Problem with original source code</title>
        <link>http://marakana.com/forums/android/learning_android_book/722.html</link>
        <author>Tihomir Pupacic</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/722.html</guid>
        <pubDate>Fri, 06 Jul 2012 15:43:11 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi, <br/><br/>i've tried out source code from chapter 6 that Marko Gargenta has given (<a href="https://marakana.com/static/courseware/android/learning-android-code.zip" rel="nofollow">https://marakana.com/static/courseware/android/learning-android-code.zip</a>) and it's not working.<br/><br/>Here is the log :<br/><br/><br/>07-06 22:40:43.119: E/AndroidRuntime(851): FATAL EXCEPTION: main<br/>07-06 22:40:43.119: E/AndroidRuntime(851): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.marakana.yamba1/com.marakana.yamba1.StatusActivity}: java.lang.ClassNotFoundException: com.marakana.yamba1.StatusActivity<br/>07-06 22:40:43.119: E/AndroidRuntime(851): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1880)<br/>07-06 22:40:43.119: E/AndroidRuntime(851): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)<br/>07-06 22:40:43.119: E/AndroidRuntime(851): 	at android.app.ActivityThread.access$600(ActivityThread.java:123)<br/>07-06 22:40:43.119: E/AndroidRuntime(851): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)<br/>07-06 22:40:43.119: E/AndroidRuntime(851): 	at android.os.Handler.dispatchMessage(Handler.java:99)<br/>07-06 22:40:43.119: E/AndroidRuntime(851): 	at android.os.Looper.loop(Looper.java:137)<br/>07-06 22:40:43.119: E/AndroidRuntime(851): 	at android.app.ActivityThread.main(ActivityThread.java:4424)<br/>07-06 22:40:43.119: E/AndroidRuntime(851): 	at java.lang.reflect.Method.invokeNative(Native Method)<br/>07-06 22:40:43.119: E/AndroidRuntime(851): 	at java.lang.reflect.Method.invoke(Method.java:511)<br/>07-06 22:40:43.119: E/AndroidRuntime(851): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)<br/>07-06 22:40:43.119: E/AndroidRuntime(851): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)<br/>07-06 22:40:43.119: E/AndroidRuntime(851): 	at dalvik.system.NativeStart.main(Native Method)<br/>07-06 22:40:43.119: E/AndroidRuntime(851): Caused by: java.lang.ClassNotFoundException: com.marakana.yamba1.StatusActivity<br/>07-06 22:40:43.119: E/AndroidRuntime(851): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)<br/>07-06 22:40:43.119: E/AndroidRuntime(851): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:501)<br/>07-06 22:40:43.119: E/AndroidRuntime(851): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:461)<br/>07-06 22:40:43.119: E/AndroidRuntime(851): 	at android.app.Instrumentation.newActivity(Instrumentation.java:1023)<br/>07-06 22:40:43.119: E/AndroidRuntime(851): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1871)<br/>07-06 22:40:43.119: E/AndroidRuntime(851): 	... 11 more<br/>]]></content:encoded>
      </item>
    <item>
        <title>How to write a Program to communicate between a PC and a android phone via wifi.</title>
        <link>http://marakana.com/forums/android/general/719.html</link>
        <author>Pradipta Kumar</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/719.html</guid>
        <pubDate>Wed, 04 Jul 2012 04:56:54 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Hi all,<br/><br/>I want to write a program communicate between a pc and a android phone via wi-fi network,Is there any possibility to communicate between these two devices via wi-fi network.I want to communicate and get some information about the phone like model,name and other information.<br/><br/>This is my requirement,kindly help me to find this,I need some ideas about this .<br/><br/>I am new to this.Kindly help me by suggesting somethting ,I need this for my project work.<br/><br/>Thanks ]]></content:encoded>
      </item>
    <item>
        <title>problem with org.hibernate.PropertyNotFoundException</title>
        <link>http://marakana.com/forums/hibernate/general/718.html</link>
        <author>Chhewang Lama</author>
        <guid isPermaLink="true">http://marakana.com/forums/hibernate/general/718.html</guid>
        <pubDate>Mon, 02 Jul 2012 03:04:59 -0700</pubDate>
        <category>Hibernate - General</category>
        <content:encoded><![CDATA[]]></content:encoded>
      </item>
    <item>
        <title>Can we link or interface C/C++ library into HTML5 either static or dynamic</title>
        <link>http://marakana.com/forums/html5/general/717.html</link>
        <author>Mathew D</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/717.html</guid>
        <pubDate>Tue, 26 Jun 2012 03:18:40 -0700</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[<br/>Hi,<br/><br/><br/>I'm new bee, Want to know Can we include C/C++ libraries into HTML5.<br/>Means, want to do linking and interface of C/C++ libraries with HTML5.<br/><br/>Kindly suggest me the most appropriate way<br/><br/>Thanks]]></content:encoded>
      </item>
    <item>
        <title>A New HTML5 Infographic</title>
        <link>http://marakana.com/forums/html5/general/716.html</link>
        <author>Alex Chase</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/716.html</guid>
        <pubDate>Wed, 20 Jun 2012 01:33:58 -0700</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[Hi<br/><br/>I have recently found a infographic about HTML5 and I like to share with you all, it describes about he history,key features and compatibility of HTML5 in an informative manner, Please find the original link here <a href="http://bit.ly/L0488H" rel="nofollow">http://bit.ly/L0488H</a>]]></content:encoded>
      </item>
    <item>
        <title>Expandable list having gridview items, selection time no sound is coming</title>
        <link>http://marakana.com/forums/android/examples/715.html</link>
        <author>Sujit Achayra</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/715.html</guid>
        <pubDate>Tue, 19 Jun 2012 20:35:32 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Hi <br/>I have a Expandable list view.<br/>each row expandable list contains gridview.<br/>while selecting gridview items by keypad left and right that time sound is not coming<br/>please let me know if any body have any idea about his[google]]]></content:encoded>
      </item>
    <item>
        <title>list items selection sound is not coming</title>
        <link>http://marakana.com/forums/android/examples/714.html</link>
        <author>Sujit Achayra</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/714.html</guid>
        <pubDate>Tue, 19 Jun 2012 20:25:56 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Hi<br/><br/>I have a list view, each row having gridview items.<br/>when I am trying to select any item by keypad left and right. that time sound is not coming.<br/><br/>But when i am selecting listview rows by keypad up and down that time sound is coming.<br/><br/>Please let me know how to get proper sound.<br/><br/>Regards<br/>Sujit]]></content:encoded>
      </item>
    <item>
        <title>Git Without Remote</title>
        <link>http://marakana.com/forums/git/git/713.html</link>
        <author>Mike Conroy</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/713.html</guid>
        <pubDate>Mon, 18 Jun 2012 06:36:55 -0700</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[Hello - first post, hopefully I will get the type, style and level of of the  question right for this site!<br/><br/>I am a single developer and I do not use a remote repository such GitHub, other than as a backup (essentially) since I work in more than one location on more than one device and not all locations allow me access to remote repositories - so I end up using Sneaker Net a lot.<br/><br/>The challenge I find is that since a Git branch does not create a separate copy of the project (let's say a website for talks sake) then I can compare revisions at a source code level but it's very difficult to compare branches and revisions at a site level - i.e. looking at the branch I have checked out (including whatever changes I have made) compared to some other branch.<br/><br/>I.e. if I point my browser at the repository then I can't see one branch versus another since the repository contains all changes, only the Git database understands my branches, versions and changes.<br/><br/>So, is Git not such a great choice in such a case?<br/>Would a VCS that makes complete copies of the repository when you branch (I think Launchpad does this) be a better bet?<br/><br/>I think Git would work if I was using it with GitHub (or similar) since I would be checking out from the remote repository and working on a branch, but alas I am not doing it this way in this case.<br/><br/>Thanks,<br/>Mike]]></content:encoded>
      </item>
    <item>
        <title>Identify Objects Using Camera API without capturing image</title>
        <link>http://marakana.com/forums/android/examples/712.html</link>
        <author>Nuwan Thilina</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/712.html</guid>
        <pubDate>Sat, 16 Jun 2012 22:53:01 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Can i identify previously define objects using camera view in android. Here i suppose to do image processing using javacv. specially i looking for only capture the image after identifying the object correctly. <br/>This or similar solution is also ok. ]]></content:encoded>
      </item>
    <item>
        <title>Problem with twitter = new Twitter(&quot;student&quot;,&quot;password&quot;);</title>
        <link>http://marakana.com/forums/android/learning_android_book/711.html</link>
        <author>Sergio Miranda</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/711.html</guid>
        <pubDate>Thu, 14 Jun 2012 16:14:09 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[The instruction:<br/>twitter = new Twitter("student","password"); <br/><br/>Are causing the error msg: "Sorry! The application Yamba (process com.makarana.yamba) has stopped unexpectedly. Please try again." [Force Close]<br/><br/>This happens with both jtwitter.jar (original) and the modified jtwitter-yamba.jar.<br/><br/>No ideas...]]></content:encoded>
      </item>
    <item>
        <title>Sharting data between two service</title>
        <link>http://marakana.com/forums/android/examples/710.html</link>
        <author>Martin Trædholm</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/710.html</guid>
        <pubDate>Tue, 12 Jun 2012 05:39:53 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Hello out there<br/><br/>I need a bit of advice here. First of all I’m pretty new to android and java development but I have spend a fair amount of time to learn it, among others things I have see the yamba tutorial videos which are really great.<br/><br/>Overall the app need to get some data from the internet, sent the data though some intelligence and then to Bluetooth device by using the SPP protocol. I will first describe my system from a very simple drawing.<br/><br/><br/><img src="http://i45.tinypic.com/2dgvytx.gif" alt=""/><br/><br/>The preference activity should only set up the Bluetooth MAC address and the http addresses the two service needs.<br/><br/>It is an xml file that I need to read from the internet, my plan here is to do that in a service. I don’t want to complicate things too much so that is in a service of its own. The XML service should then parse the pulled data to another service that interprets the data and send via. Bluetooth. <br/><br/>The issue comes now how do I parse data between services, my though is to use a SQLite database. I could also use Intens (and putExtra) but I don’t know the right way to do this?    <br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>runtimeException; UNABLE TO RESUME THREAD</title>
        <link>http://marakana.com/forums/android/learning_android_book/708.html</link>
        <author>Jay Teck</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/708.html</guid>
        <pubDate>Sun, 10 Jun 2012 17:25:26 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[i imported Yabma 5 Corresponds to Chapter 10 - Lists and Adapters, in to eclipse.<br/>it compiled and ran, i set the 3 preferences.<br/>Then I started the service.<br/>It was able to insert one time, then got a fatal exception in main.<br/><br/>06-10 12:19:48.617: E/AndroidRuntime(1463): java.lang.RuntimeException: Unable to resume activity {com.marakana.yamba5/com.marakana.yamba5.TimelineActivity}: java.lang.IllegalStateException: trying to requery an already closed cursor  android.database.sqlite.SQLiteCursor@41294338<br/><br/>I've looked at it for quite a while...and this type of error is beyond me.<br/><br/>I cleaned the project, uninstalled it from the emulator, and restarted eclipse.<br/><br/>--worked-- !<br/><br/>It seems every chapter (every chapter since the database was introduced) the application data and the application itself needs to be removed from the emulator and everything shut down, cleaned (no database should exist), and restarted. Before I learned this I was wasting a lot of time chasing obscure errors.]]></content:encoded>
      </item>
    <item>
        <title>Data Transfer from Android Local Sqlite database to SQLServer using Web Services</title>
        <link>http://marakana.com/forums/android/examples/707.html</link>
        <author>Deepak Kumar</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/707.html</guid>
        <pubDate>Fri, 08 Jun 2012 20:45:12 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Hi<br/>    Anybody Plz Help me....How to Data Transfer from Android Local Sqlite database to SQLServer using Web Services. Thanks ......<br/><br/>Deepak]]></content:encoded>
      </item>
    <item>
        <title>Ruby OpenSource Challenge</title>
        <link>http://marakana.com/forums/ruby/ruby_on_rails/706.html</link>
        <author>Anna Banaszek</author>
        <guid isPermaLink="true">http://marakana.com/forums/ruby/ruby_on_rails/706.html</guid>
        <pubDate>Tue, 05 Jun 2012 05:02:53 -0700</pubDate>
        <category>Ruby - Ruby on Rails</category>
        <content:encoded><![CDATA[If you are a Rubyist, this summer join our challenge and help one of the amazing Ruby OpenSource projects. Fix a bug, write a new needed feature or just update the lagging documentation and have a chance of winning one of the many amazing prizes from our sponsors. Register at <a href="http://rubyosc.com" rel="nofollow">http://rubyosc.com</a> and check out our Twitter <a href="https://twitter.com/RubyOSC" rel="nofollow">https://twitter.com/RubyOSC</a> and Facebook profiles <a href="http://www.facebook.com/RubyOSC/" rel="nofollow">www.facebook.com/RubyOSC/</a> for the updates. Stay tuned, the Challenge will start soon!]]></content:encoded>
      </item>
    <item>
        <title>Crystal Reports In ROR 2.3.8</title>
        <link>http://marakana.com/forums/ruby/ruby_on_rails/705.html</link>
        <author>Rohini Kambde</author>
        <guid isPermaLink="true">http://marakana.com/forums/ruby/ruby_on_rails/705.html</guid>
        <pubDate>Sun, 03 Jun 2012 22:49:36 -0700</pubDate>
        <category>Ruby - Ruby on Rails</category>
        <content:encoded><![CDATA[[b]Can anyone please suggest me how to integrate crystal reports into Ruby on rails , do we have to install any ems or do we have any plugins for that .please let me know .<br/><br/>thanks in advance for your help and support.]]></content:encoded>
      </item>
    <item>
        <title>Android webdav</title>
        <link>http://marakana.com/forums/android/examples/704.html</link>
        <author>Sudha Setty</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/704.html</guid>
        <pubDate>Thu, 31 May 2012 13:11:09 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Hi  can any one provide me with an example that used the Jackrabbit and webdav in android to get the list of files in a directory.<br/><br/>Thankyou<br/>]]></content:encoded>
      </item>
    <item>
        <title>finger print scanner</title>
        <link>http://marakana.com/forums/ruby/ruby_on_rails/703.html</link>
        <author>Rohini Kambde</author>
        <guid isPermaLink="true">http://marakana.com/forums/ruby/ruby_on_rails/703.html</guid>
        <pubDate>Thu, 31 May 2012 05:06:13 -0700</pubDate>
        <category>Ruby - Ruby on Rails</category>
        <content:encoded><![CDATA[can anyone please help me out by telling me about how to integrate bio metrics i.e., finger print scanner using ruby on rails [b]]]></content:encoded>
      </item>
    <item>
        <title>Yamba app not working.</title>
        <link>http://marakana.com/forums/android/examples/702.html</link>
        <author>Araib Karim</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/702.html</guid>
        <pubDate>Mon, 28 May 2012 03:30:27 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Well i am using Gingerbread to create the yamba app. The problem is coming in  "Try and Catch" <br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">@Override<br/>	public void onClick(View arg0) {<br/>		String statusmssge = editText1.getText().toString();<br/>		<br/>		<br/><br/>		try {<br/>			<br/>			Twitter twitter =  new Twitter("learningandroid","pass2010");<br/>			twitter.setAPIRootUrl("http://learningandroid.status.net/api");<br/>			twitter.setStatus(statusmssge);<br/>			Toast.makeText(this, "worked", Toast.LENGTH_LONG).show();<br/>			<br/>		} catch (TwitterException e) {<br/>			<br/>			e.printStackTrace();<br/>			Toast.makeText(this, "ddnt work", Toast.LENGTH_LONG).show();<br/>			<br/>		}<br/>		<br/>		Log.d(TAG, "onClicked Text:" + statusmssge);<br/>	}<br/>}</pre>
		  </div><br/>if i run this code without the try and catch it works perfectly.<br/><br/><strong>ERROR:</strong><br/><blockquote><br/>05-28 15:21:21.901: E/dalvikvm(680): Could not find class 'winterwell.jtwitter.Twitter', referenced from method com.FYP.firstapp.FirstappActivity.onClick<br/>05-28 15:21:21.911: W/dalvikvm(680): VFY: unable to resolve new-instance 34 (Lwinterwell/jtwitter/Twitter;) in Lcom/FYP/firstapp/FirstappActivity;<br/>05-28 15:21:21.921: D/dalvikvm(680): VFY: replacing opcode 0x22 at 0x000a<br/>05-28 15:21:21.921: D/dalvikvm(680): VFY: dead code 0x000c-0039 in Lcom/FYP/firstapp/FirstappActivity;.onClick (Landroid/view/View;)V<br/>05-28 15:21:22.084: D/FirstappActivity(680): onCreated with Bundle:null<br/>05-28 15:27:59.841: E/dalvikvm(713): Could not find class 'winterwell.jtwitter.Twitter', referenced from method com.FYP.firstapp.FirstappActivity.onClick<br/>05-28 15:27:59.851: W/dalvikvm(713): VFY: unable to resolve new-instance 34 (Lwinterwell/jtwitter/Twitter;) in Lcom/FYP/firstapp/FirstappActivity;<br/>05-28 15:27:59.851: D/dalvikvm(713): VFY: replacing opcode 0x22 at 0x000b<br/>05-28 15:27:59.920: W/dalvikvm(713): VFY: unable to resolve exception class 35 (Lwinterwell/jtwitter/TwitterException;)<br/>05-28 15:27:59.920: W/dalvikvm(713): VFY: unable to find exception handler at addr 0x3b<br/>05-28 15:27:59.951: W/dalvikvm(713): VFY:  rejected Lcom/FYP/firstapp/FirstappActivity;.onClick (Landroid/view/View;)V<br/>05-28 15:27:59.951: W/dalvikvm(713): VFY:  rejecting opcode 0x0d at 0x003b<br/>05-28 15:27:59.951: W/dalvikvm(713): VFY:  rejected Lcom/FYP/firstapp/FirstappActivity;.onClick (Landroid/view/View;)V<br/>05-28 15:27:59.972: W/dalvikvm(713): Verifier rejected class Lcom/FYP/firstapp/FirstappActivity;<br/>05-28 15:27:59.981: W/dalvikvm(713): Class init failed in newInstance call (Lcom/FYP/firstapp/FirstappActivity;)<br/>05-28 15:28:00.051: D/AndroidRuntime(713): Shutting down VM<br/>05-28 15:28:00.051: W/dalvikvm(713): threadid=1: thread exiting with uncaught exception (group=0x40015560)<br/>05-28 15:28:00.162: E/AndroidRuntime(713): FATAL EXCEPTION: main<br/>05-28 15:28:00.162: E/AndroidRuntime(713): java.lang.VerifyError: com.FYP.firstapp.FirstappActivity<br/>05-28 15:28:00.162: E/AndroidRuntime(713): 	at java.lang.Class.newInstanceImpl(Native Method)<br/>05-28 15:28:00.162: E/AndroidRuntime(713): 	at java.lang.Class.newInstance(Class.java:1409)<br/>05-28 15:28:00.162: E/AndroidRuntime(713): 	at android.app.Instrumentation.newActivity(Instrumentation.java:1021)<br/>05-28 15:28:00.162: E/AndroidRuntime(713): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1561)<br/>05-28 15:28:00.162: E/AndroidRuntime(713): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)<br/>05-28 15:28:00.162: E/AndroidRuntime(713): 	at android.app.ActivityThread.access$1500(ActivityThread.java:117)<br/>05-28 15:28:00.162: E/AndroidRuntime(713): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)<br/>05-28 15:28:00.162: E/AndroidRuntime(713): 	at android.os.Handler.dispatchMessage(Handler.java:99)<br/>05-28 15:28:00.162: E/AndroidRuntime(713): 	at android.os.Looper.loop(Looper.java:123)<br/>05-28 15:28:00.162: E/AndroidRuntime(713): 	at android.app.ActivityThread.main(ActivityThread.java:3683)<br/>05-28 15:28:00.162: E/AndroidRuntime(713): 	at java.lang.reflect.Method.invokeNative(Native Method)<br/>05-28 15:28:00.162: E/AndroidRuntime(713): 	at java.lang.reflect.Method.invoke(Method.java:507)<br/>05-28 15:28:00.162: E/AndroidRuntime(713): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)<br/>05-28 15:28:00.162: E/AndroidRuntime(713): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)<br/>05-28 15:28:00.162: E/AndroidRuntime(713): 	at dalvik.system.NativeStart.main(Native Method)<br/>05-28 15:28:05.082: I/Process(713): Sending signal. PID: 713 SIG: 9<br/></blockquote><br/><br/>This shows some problem in jtwitter.. somehow it cant detect the jwitter classes<br/>although i did import all:<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>import winterwell.jtwitter.Twitter;<br/>import winterwell.jtwitter.TwitterException;<br/>import android.app.Activity;<br/>import android.os.Bundle;<br/>import android.util.Log;<br/>import android.view.View;<br/>import android.view.View.OnClickListener;<br/>import android.widget.Button;<br/>import android.widget.EditText;<br/>import android.widget.Toast; </pre>
		  </div><br/><br/>CAN YOU HELP ME ON THIS?]]></content:encoded>
      </item>
    <item>
        <title>How can i go to home display using a pop-up?</title>
        <link>http://marakana.com/forums/android/learning_android_book/701.html</link>
        <author>Nick Toulios</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/701.html</guid>
        <pubDate>Sat, 26 May 2012 18:39:32 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi to everyone,<br/><br/>How can i call a pop-up function from a *.java file in framework/base/privacy.. that can transfer me to the home display in android?<br/><br/>Thanks<br/>Nick<br/>]]></content:encoded>
      </item>
    <item>
        <title>How can monitor intent.sms_send?</title>
        <link>http://marakana.com/forums/android/learning_android_book/700.html</link>
        <author>Nick Toulios</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/700.html</guid>
        <pubDate>Sat, 26 May 2012 18:36:54 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hallo to everyone,<br/><br/>I would like to learn how can i monitor some changes such as intent.sms_send.]]></content:encoded>
      </item>
    <item>
        <title>How can monitor intent.sms_send?</title>
        <link>http://marakana.com/forums/android/examples/699.html</link>
        <author>Nick Toulios</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/699.html</guid>
        <pubDate>Sat, 26 May 2012 18:36:04 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Hallo to everyone,<br/><br/>I would like to learn how can i monitor some changes such as intent.sms_send.<br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>class UpdaterThread implements Runnable</title>
        <link>http://marakana.com/forums/android/learning_android_book/698.html</link>
        <author>Davic Bolctz</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/698.html</guid>
        <pubDate>Thu, 24 May 2012 12:56:37 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi All,<br/><br/>The book is great and I thought I'd ask a question on the forum<br/><br/>class UpdaterThread implements Runnable<br/>{<br/><strong>UpdaterService updaterService = UpdaterService.this; 10</strong><br/><br/>In the book p112 their is a reference returned to a local reference. Why is this please? I dont see the point of this.  Is it an alias?<br/><br/>It is described by point 10 but I'd like to the reason behind it please]]></content:encoded>
      </item>
    <item>
        <title>DatabaseObjectNotClosedException</title>
        <link>http://marakana.com/forums/android/learning_android_book/696.html</link>
        <author>Miten Mehta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/696.html</guid>
        <pubDate>Thu, 24 May 2012 04:58:19 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi,<br/><br/>After implementing the provider I get this exception in logs for returning a cursor without closing the database.  It happens probably next time when I use the provider.  Its as such not affecting the application behavior but would it be possible to avoid the exception ?<br/><br/>05-24 17:25:39.582: E/Database(386): android.database.sqlite.DatabaseObjectNotClosedException: Application did not close the cursor or database object that was opened here<br/><br/><br/>Regards,<br/><br/>Miten.]]></content:encoded>
      </item>
    <item>
        <title>Yamba through proxy server</title>
        <link>http://marakana.com/forums/android/learning_android_book/695.html</link>
        <author>Ionut Craioveanu</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/695.html</guid>
        <pubDate>Wed, 23 May 2012 23:06:15 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hello guys,<br/>Is there any way to make the jtwitter use also a proxy?<br/>I know the phones do not use proxy servers, but if you run on simulator on a PC which goes through a proxy server, then nothing will work.<br/><br/>Thank you.]]></content:encoded>
      </item>
    <item>
        <title>git commit problem</title>
        <link>http://marakana.com/forums/git/git/694.html</link>
        <author>Akira Chen</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/694.html</guid>
        <pubDate>Wed, 23 May 2012 20:28:54 -0700</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[I saw this website as below.<br/>https://devcenter.he...k#create_an_app<br/>I follow the steps until input the command of "git commit -am "changed greeting""<br/>When I input the command, it appears the message as below:<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">E:\tmp\heroku\strong-planet-2902&gt;git commit -am "changed greeting" <br/># On branch master <br/># Untracked files: <br/>#   (use "git add &lt;file&gt;..." to include in what will be committed) <br/># <br/>#          index.php <br/>nothing added to commit but untracked files present (use "git add" to track)</pre>
		  </div><br/><br/>Does somebody know how to solve this problem?]]></content:encoded>
      </item>
    <item>
        <title>location manager</title>
        <link>http://marakana.com/forums/android/learning_android_book/693.html</link>
        <author>Miten Mehta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/693.html</guid>
        <pubDate>Wed, 23 May 2012 00:35:27 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi,<br/><br/>can you get location service example working on emulator ?<br/>Also on cell phone if there is no data plan still can we get example to return location ?<br/><br/>Regards,<br/><br/>Miten.]]></content:encoded>
      </item>
    <item>
        <title>app widget on home screen</title>
        <link>http://marakana.com/forums/android/learning_android_book/692.html</link>
        <author>Miten Mehta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/692.html</guid>
        <pubDate>Tue, 22 May 2012 22:24:18 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi,<br/><br/>In emulator I have difficulty in getting to size the yamba app widget.<br/><br/>When I use api level 8 (avd android 2.2) in manifest the app widget can be added from home screen but the size of it is small.  I tried changing it in yamba_widget_info but it has no effect.<br/><br/>I then tried to use api level 14 (avd android 4.0) but it does not bring up home screen menu for widgets on long press.  In applications there is tab for widgets and I try to long press yamba icon in it and bring to home screen but then it does not show the yamba_widget ui.  It just shows icon and tries to launch the yamba application which is issue since application is already running and it tries to create new process and fails.<br/><br/>I have also tried adding android:resizeMode to meta data of the app widget provider but no good.<br/><br/>Regards,<br/><br/>Miten.]]></content:encoded>
      </item>
    <item>
        <title>permission denial</title>
        <link>http://marakana.com/forums/android/learning_android_book/691.html</link>
        <author>Miten Mehta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/691.html</guid>
        <pubDate>Tue, 22 May 2012 04:56:07 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi,<br/><br/>I am getting below error:<br/><br/>05-22 17:05:29.441: W/ActivityManager(58): Permission Denial: broadcasting Intent { act=com.marakana.yamba.NEW_STATUS (has extras) } from com.marakana.yamba (pid=261, uid=10037) requires com.marakana.yamba.SEND_TIMELINE_NOTIFICATION_PERM due to registered receiver BroadcastFilter{450b5920 ReceiverList{450b58a8 261 com.marakana.yamba/10037 remote:450b56a8}}<br/>05-22 17:05:29.441: W/ActivityManager(58): Permission Denial: receiving Intent { act=com.marakana.yamba.NEW_STATUS (has extras) } to ProcessRecord{45099ae0 261:com.marakana.yamba/10037} (pid=261, uid=10037) requires com.marakana.yamba.RECEIVE_TIMELINE_NOTIFICATION_PERM due to sender com.marakana.yamba (uid 10037<br/><br/><br/>I am trying to get the logic of updater service notifying timeline activity.  I have setup all things but when I run the application in emulator it never asks me for permissions to confirm.  I think that is the reason that the above logic gives permission denial.<br/><br/>How to force the emulator to ask for user permission confirmation ?<br/>From eclipse I tried Android Tools / Export signed and then tried to do from command line adb install but it did not ask for any permission screen of android install of new application.  It installed successfully and then again same issue when I run the yamba app.<br/><br/>Note: the _PERM is my own suffix to what is used in text.  I have used it accordingly in manifiest as well as code.<br/><br/><br/>Below is manifest:<br/>&lt;?xml version="1.0" encoding="utf-8"?&gt;<br/>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"<br/>    package="com.marakana.yamba"<br/>    android:versionCode="1"<br/>    android:versionName="1.0" &gt;<br/><br/>    &lt;permission<br/>        android:name="com.marakana.yamba.SEND_TIMELINE_NOTIFICATION_PERM"<br/>        android:description="@string/SEND_TIMELINE_NOTIFICATION_PERM_DESCRIPTION"<br/>        android:label="@string/SEND_TIMELINE_NOTIFICATION_PERM_LABEL"<br/>        android:permissionGroup="android.permissions-group.PERSONAL_INFO"<br/>        android:protectionLevel="normal" &gt;<br/>    &lt;/permission&gt;<br/>    &lt;permission<br/>        android:name="com.marakana.yamba.RECEIVE_TIMELINE_NOTIFICATION_PERM"<br/>        android:description="@string/RECEIVE_TIMELINE_NOTIFICATION_PERM_DESCRIPTION"<br/>        android:label="@string/RECEIVE_TIMELINE_NOTIFICATION_PERM_LABEL"<br/>        android:permissionGroup="android.permissions-group.PERSONAL_INFO"<br/>        android:protectionLevel="normal" &gt;<br/>    &lt;/permission&gt;<br/><br/>    &lt;uses-sdk android:minSdkVersion="8" /&gt;<br/><br/>    &lt;uses-permission android:name="com.marakana.yamba.SEND_TIMELINE_NOTIFICATION_PERM" /&gt;<br/>    &lt;uses-permission android:name="com.marakana.yamba.RECEIVE_TIMELINE_NOTIFICATION_PERM" /&gt;<br/>    &lt;uses-permission android:name="android.permission.INTERNET" /&gt;<br/>    &lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /&gt;<br/><br/>    &lt;application<br/>        android:name=".YambaApplication"<br/>        android:icon="@drawable/ic_launcher"<br/>        android:label="@string/app_name" &gt;<br/>        &lt;activity<br/>            android:name=".TimelineActivity"<br/>            android:label="@string/app_name" &gt;<br/>            &lt;intent-filter&gt;<br/>                &lt;action android:name="android.intent.action.MAIN" /&gt;<br/><br/>                &lt;category android:name="android.intent.category.LAUNCHER" /&gt;<br/>            &lt;/intent-filter&gt;<br/>        &lt;/activity&gt;<br/>        &lt;activity android:name=".StatusActivity" /&gt;<br/>        &lt;activity<br/>            android:name=".PrefsActivity"<br/>            android:label="@string/titlePrefs" &gt;<br/>        &lt;/activity&gt;<br/><br/>        &lt;service android:name=".UpdaterService" /&gt;<br/><br/>        &lt;receiver android:name=".BootReceiver" &gt;<br/>            &lt;intent-filter&gt;<br/>                &lt;action android:name="android.intent.action.BOOT_COMPLETED" /&gt;<br/>            &lt;/intent-filter&gt;<br/>        &lt;/receiver&gt;<br/>        &lt;receiver android:name=".NetworkReceiver" &gt;<br/>            &lt;intent-filter&gt;<br/>                &lt;action android:name="android.net.conn.CONNECTIVITY_CHANGE" &gt;<br/>                &lt;/action&gt;<br/>            &lt;/intent-filter&gt;<br/>        &lt;/receiver&gt;<br/><br/>        &lt;provider<br/>            android:name=".StatusProvider"<br/>            android:authorities="com.marakana.yamba.statusprovider" /&gt;<br/><br/>        &lt;receiver<br/>            android:name=".YambaWidget"<br/>            android:label="@string/msgLastTimeUpdate" &gt;<br/>            &lt;intent-filter&gt;<br/>                &lt;action android:name="android.appwidget.action.APPWIDGET_UPDATE" /&gt;<br/>            &lt;/intent-filter&gt;<br/>            &lt;intent-filter&gt;<br/>                &lt;action android:name="com.marakana.yamab.NEW_STATUS" /&gt;<br/>            &lt;/intent-filter&gt;<br/><br/>            &lt;meta-data<br/>                android:name="android.appwidget.provider"<br/>                android:resource="@xml/yamba_widget_info" /&gt;<br/>        &lt;/receiver&gt;<br/>    &lt;/application&gt;<br/><br/>&lt;/manifest&gt;<br/><br/>Regards,<br/><br/>Miten.]]></content:encoded>
      </item>
    <item>
        <title>onStartCommand - Thread.start called multiple times</title>
        <link>http://marakana.com/forums/android/learning_android_book/690.html</link>
        <author>Miten Mehta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/690.html</guid>
        <pubDate>Sun, 20 May 2012 20:58:43 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi,<br/><br/>I am referring to Example 8.5. UpdaterService.java, version 2.  The code is prone to IllegalThreadStartedException if start method is called on already started thread.<br/><br/>The code can be changed to:<br/>onStartCommand() {<br/>  ...<br/>  new Updater().start();//not setting updater variable to defend concurrent call<br/>  ...<br/>}<br/><br/>and then database persistence could be handled by transactional cleanup-load logic.<br/><br/>Regards,<br/><br/>Miten.]]></content:encoded>
      </item>
    <item>
        <title>class &apos;winterwell.jtwitter.Twitter&apos; not found</title>
        <link>http://marakana.com/forums/android/learning_android_book/689.html</link>
        <author>Sven Rau</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/689.html</guid>
        <pubDate>Fri, 11 May 2012 08:33:11 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi,<br/><br/>I am trying to run the  Yamba app on my Samsung I9000. It only works by commenting the line "// twitter = new Twitter("student", "password");".<br/>If uncomment it, the logCat gives the following:<br/><br/>05-11 17:25:35.316: E/dalvikvm(2311): Could not find class 'winterwell.jtwitter.Twitter', referenced from method com.marakana.yamba.StatusActivity.onCreate<br/>05-11 17:25:35.316: W/dalvikvm(2311): VFY: unable to resolve new-instance 27 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)<br/>.........<br/><br/>Thanks for your help!<br/><br/>Sven<br/>]]></content:encoded>
      </item>
    <item>
        <title>Cheap</title>
        <link>http://marakana.com/forums/android/learning_android_book/688.html</link>
        <author>Ali Badut</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/688.html</guid>
        <pubDate>Wed, 09 May 2012 00:29:13 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[where is me must buy android?? this is make me confuse not like me find a <a href="http://www.cheapestkitchensintheworld.co.uk" rel="nofollow">cheap kitchen</a><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>BOOT COMPLETED RECEIVER HELP</title>
        <link>http://marakana.com/forums/android/general/687.html</link>
        <author>Sudha Setty</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/687.html</guid>
        <pubDate>Wed, 02 May 2012 13:23:49 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Hi,<br/><br/>I am trying to start a service on boot complete in Android. I have tried several methods but my receiver is not getting the boot completed intent. Please help me in this. This is what I am doing<br/><br/>Manifest File<br/><br/><br/>&lt;uses-sdk android:minSdkVersion="7" /&gt;<br/>    &lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/&gt;<br/><br/>    &lt;application<br/>        android:icon="@drawable/ic_launcher"<br/>        android:label="@string/app_name" &gt;<br/>        &lt;activity<br/>            android:name=".MyserviceonbootActivity"<br/>            android:label="@string/app_name" &gt;<br/>            &lt;intent-filter&gt;<br/>                &lt;action android:name="android.intent.action.MAIN" /&gt;<br/><br/>                &lt;category android:name="android.intent.category.LAUNCHER" /&gt;<br/>            &lt;/intent-filter&gt;<br/>        &lt;/activity&gt;<br/>        <br/>        <br/>        &lt;service android:name="Myservice"&gt;<br/>            &lt;intent-filter&gt;<br/>                &lt;action android:name="com.boot.Myservice"/&gt;<br/>            &lt;/intent-filter&gt;<br/>        &lt;/service&gt;<br/>        <br/>        <br/>        &lt;receiver android:name="com.boot.Myreceiver"<br/>            android:enabled="true"<br/>            android:exported="true"&gt;<br/>            <br/>            &lt;intent-filter &gt;<br/>                &lt;action  android:name="android.intent.action.BOOT_COMPLETE"&gt;<br/>                        &lt;/action&gt; <br/>                &lt;category android:name="android.intent.category.HOME"/&gt;<br/>            &lt;/intent-filter&gt;<br/>        &lt;/receiver&gt;<br/>        <br/>    &lt;/application&gt;<br/><br/><br/>The Receiver<br/>------------<br/>public class Myreceiver extends BroadcastReceiver {<br/>String TAG="DONE";<br/>	@Override<br/>	public void onReceive(Context context, Intent intent) {<br/>	<br/>     Log.d(TAG, "GOT THE INTENT" + intent.getAction().toString());<br/>     Intent i=new Intent();<br/>     i.setAction("com.boot.Myservice");<br/>     context.startService(i);<br/>     <br/>	}<br/><br/>}<br/><br/>The Service<br/>------------<br/>public class Myservice extends Service {<br/>	String TAG="DONE";<br/>	@Override<br/>	public void onCreate() {<br/>		 <br/>		super.onCreate();<br/>		Log.d(TAG, "On create of the service is called by the receiver");<br/>	}<br/><br/>	@Override<br/>	public IBinder onBind(Intent arg0) {<br/>		// TODO Auto-generated method stub<br/>		return null;<br/>	}<br/><br/>	@Override<br/>	public int onStartCommand(Intent intent, int flags, int startId) {<br/>		Log.d(TAG, "On start Command of the service is called by the receiver");<br/>	<br/>		return super.onStartCommand(intent, flags, startId);<br/>	}<br/><br/>}<br/><br/><br/>Please HELP ME where I am doing the mistake.<br/><br/>Thank you<br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>A little help abut navigation in android source code</title>
        <link>http://marakana.com/forums/android/learning_android_book/686.html</link>
        <author>Nick Toulios</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/686.html</guid>
        <pubDate>Wed, 02 May 2012 08:01:29 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hello to all,<br/><br/>I am new in android and i find it difficult to navigate in android source code.<br/>I would like to find where is the functions which called when i make a phone call or send a message.<br/><br/>Thanks<br/>Nikos]]></content:encoded>
      </item>
    <item>
        <title>database help in learning android</title>
        <link>http://marakana.com/forums/android/learning_android_book/685.html</link>
        <author>Inam Jee</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/685.html</guid>
        <pubDate>Tue, 01 May 2012 09:12:45 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Please help me here. In this book we create DBhelper class which gives us functionality to open the database. However later on we create another class called Statusdata.java and define a class called DBHelper within that offering the same functionality. Now this class DBHelper created within Statusdata is not public so can't be called by other classes. That means we still need DBHelper.java for the application to work. My questions here is why we are creating two classes with same names and funcationality altough we could have used DBHelper.java? Please help, thanks, Inam]]></content:encoded>
      </item>
    <item>
        <title>yamba.marakana.com/api is down</title>
        <link>http://marakana.com/forums/android/learning_android_book/684.html</link>
        <author>Alex F</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/684.html</guid>
        <pubDate>Tue, 01 May 2012 05:32:42 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[It seems that the backend service is down.<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>05-01 14:03:48.811: E/StatusActivity(28916): winterwell.jtwitter.TwitterException$Timeout: 10000milli-secs for <a href="http://yamba.marakana.com/api/statuses/update.json" rel="nofollow">http://yamba.marakana.com/api/statuses/update.json</a><br/></pre>
		  </div><br/><br/>I find the twitter example application from the book really nice, but choosing it is really a commitment that has to be carefully supported. The backend service is required basically throughout the whole book. Please fix it! Install Zabbix/Nagios or whatever, have someone to get up in the middle of the night to fix it, if it fails. Otherwise it is just an amateur approach to the serious commitment and does not make you look good, causing a lot of unsatisfied and angry readers. Alternatively setup "student" accounts for the services that can be used instead of <a href="http://yamba.marakana.com/api." rel="nofollow">http://yamba.marakana.com/api.</a> <br/><br/>PS: I did not succeed using the <a href="http://identi.ca/api" rel="nofollow">http://identi.ca/api</a> (mentioned somewhere by the author as an alternative) with the delivered jtwitter.jar. I think that the API is not compatible or I am just missing somehting.<br/><br/>Make your readers happy again and thank you in advance.]]></content:encoded>
      </item>
    <item>
        <title>jTwitter Permission Denied</title>
        <link>http://marakana.com/forums/android/learning_android_book/683.html</link>
        <author>Carlos Hernandez</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/683.html</guid>
        <pubDate>Sun, 29 Apr 2012 07:38:52 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hello,<br/><br/>I'm testing out Status Activity version 1, I have set the Twitter API to <a href="http://yamba.marakana.com/api," rel="nofollow">http://yamba.marakana.com/api,</a> and created a customer username/password. When I run the emulator, I have an internet connection, I can browse through the browser. The application manifest has INTERNET permission set. <br/><br/>I've run the app in the emulator. When I click on the button to test posting, the app force closes and I get the following in the LogCat:<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>04-29 14:13:49.410: E/AndroidRuntime(289): FATAL EXCEPTION: main<br/>04-29 14:13:49.410: E/AndroidRuntime(289): winterwell.jtwitter.TwitterException: java.net.SocketException: Permission denied<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at winterwell.jtwitter.URLConnectionHttpClient.post(URLConnectionHttpClient.java:223)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at winterwell.jtwitter.Twitter.post(Twitter.java:1944)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:2555)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:2502)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at winterwell.jtwitter.Twitter.setStatus(Twitter.java:2274)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at com.ehernandez.yamba.StatusActivity.onClick(StatusActivity.java:46)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at android.view.View.performClick(View.java:2408)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at android.view.View$PerformClick.run(View.java:8816)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at android.os.Handler.handleCallback(Handler.java:587)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at android.os.Handler.dispatchMessage(Handler.java:92)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at android.os.Looper.loop(Looper.java:123)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at android.app.ActivityThread.main(ActivityThread.java:4627)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at java.lang.reflect.Method.invokeNative(Native Method)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at java.lang.reflect.Method.invoke(Method.java:521)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at dalvik.system.NativeStart.main(Native Method)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): Caused by: java.net.SocketException: Permission denied<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at org.apache.harmony.luni.platform.OSNetworkSystem.createStreamSocketImpl(Native Method)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at org.apache.harmony.luni.platform.OSNetworkSystem.createStreamSocket(OSNetworkSystem.java:186)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at org.apache.harmony.luni.net.PlainSocketImpl.create(PlainSocketImpl.java:265)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at java.net.Socket.checkClosedAndCreate(Socket.java:873)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at java.net.Socket.connect(Socket.java:1020)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.&lt;init&gt;(HttpConnection.java:62)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnectionPool.get(HttpConnectionPool.java:88)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getHTTPConnection(HttpURLConnectionImpl.java:927)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:909)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.sendRequest(HttpURLConnectionImpl.java:1325)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.doRequestInternal(HttpURLConnectionImpl.java:1656)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.doRequest(HttpURLConnectionImpl.java:1649)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:1248)<br/>04-29 14:13:49.410: E/AndroidRuntime(289): 	at winterwell.jtwitter.URLConnectionHttpClient.post(URLConnectionHttpClient.java:215)<br/></pre>
		  </div><br/><br/>Any pointers would be greatly appreciated.<br/>]]></content:encoded>
      </item>
    <item>
        <title>Rest Services</title>
        <link>http://marakana.com/forums/android/examples/682.html</link>
        <author>S A</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/682.html</guid>
        <pubDate>Thu, 19 Apr 2012 11:40:11 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[I am new to android application development.I am creating a application to call wcf REST service .Any help to get me started will be appreciated. Thanks.]]></content:encoded>
      </item>
    <item>
        <title>Page 94  figure 6-12 problem</title>
        <link>http://marakana.com/forums/android/learning_android_book/681.html</link>
        <author>Lichuang Gong</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/681.html</guid>
        <pubDate>Thu, 19 Apr 2012 06:16:53 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[I read this book to page94, but I can't run it because I meet this problem below<br/>can anybody help me?<br/><br/>description	Resource	Path	Location	Type<br/>Manifest should specify a minimum API level with &lt;uses-sdk android:minSdkVersion="?" /&gt;; if it really supports all versions of Android set it to 1.	AndroidManifest.xml	/yamba	line 1	Android Lint Problem<br/>Use a layout_height of 0dip instead of fill_parent for better performance	status.xml	/yamba/res/layout	line 13	Android Lint Problem<br/>Content is not allowed in prolog.	AndroidManifest.xml	/yamba	line 1	Android XML Format Problem<br/>Content is not allowed in prolog.	AndroidManifest.xml	/yamba	line 1	Android XML Format Problem<br/>Content is not allowed in prolog.	AndroidManifest.xml	/yamba	line 1	Android XML Format Problem<br/>Content is not allowed in prolog.	AndroidManifest.xml	/yamba	line 1	Android XML Format Problem<br/>Content is not allowed in prolog.	AndroidManifest.xml	/yamba	line 1	Android XML Format Problem<br/>R cannot be resolved to a variable	StatusActivity.java	/yamba/src/com/marakana/yamba	line 19	Java Problem<br/>R cannot be resolved to a variable	StatusActivity.java	/yamba/src/com/marakana/yamba	line 21	Java Problem<br/>R cannot be resolved to a variable	StatusActivity.java	/yamba/src/com/marakana/yamba	line 22	Java Problem<br/>The declared package "com.marakana.yamba1" does not match the expected package "com.marakana.yamba"	StatusActivity.java	/yamba/src/com/marakana/yamba	line 1	Java Problem<br/>The public type StatusActivity1 must be defined in its own file	StatusActivity.java	/yamba/src/com/marakana/yamba	line 10	Java Problem<br/>The constructor Twitter(String, String) is deprecated	StatusActivity.java	/yamba/src/com/marakana/yamba	line 24	Java Problem<br/>]]></content:encoded>
      </item>
    <item>
        <title>Chapter 8 - onStartCommand</title>
        <link>http://marakana.com/forums/android/learning_android_book/680.html</link>
        <author>Fredrik Loman</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/680.html</guid>
        <pubDate>Thu, 19 Apr 2012 05:07:28 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi!<br/><br/>Just started learning android from the book "Learning Android" but now i'm stuck at chapter 8, probably just missed something.<br/><br/>According to page 107 we're adding this line of code:<br/><br/>@Override<br/>public int onStartCommand(Intent intent, int flags, int startId) {<br/>   super.onStartCommand(intent, flags, startId);<br/>   Log.d(Tag, "onStarted");<br/>   return START_STICKY;<br/>}<br/><br/>Hovering over the line "Public int onStartCommand(...." I get the following error: The method onStartCommand(Intent, int, int) of type UpdaterService must override a superclass method.<br/><br/>Hovering over super.onStartCommand(intent....) I get: The method onStartCommand(Intent, int, int) is undefined for the type Service.<br/><br/>Hovering over the line "return START_STICKY;" I get: START_STICKY cannot be resolved to a variable.<br/><br/><br/><br/>The full code can be found here: <a href="http://pastebin.com/3wYMz4rN" rel="nofollow">http://pastebin.com/3wYMz4rN</a>]]></content:encoded>
      </item>
    <item>
        <title>ADA Framework - Android Data Abstraction Framework</title>
        <link>http://marakana.com/forums/android/general/679.html</link>
        <author>DesAndrOId Spain</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/679.html</guid>
        <pubDate>Thu, 19 Apr 2012 03:52:58 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Hi Guys,<br/><br/>Today I want to present our project ADA Framework. A framework that will help you a code easier and develop faster.<br/><br/>This library provides data abstraction techniques, databinding and data validation methods.<br/><br/>You can find more information on the official site, <a href="http://adaframework.com" rel="nofollow">http://adaframework.com</a><br/><br/>Regards]]></content:encoded>
      </item>
    <item>
        <title>Service startup order</title>
        <link>http://marakana.com/forums/jboss/application_server/678.html</link>
        <author>Kilato Somostetoi</author>
        <guid isPermaLink="true">http://marakana.com/forums/jboss/application_server/678.html</guid>
        <pubDate>Wed, 18 Apr 2012 00:23:54 -0700</pubDate>
        <category>JBoss - Application Server</category>
        <content:encoded><![CDATA[Hi,<br/><br/>How can I influence the order in wich the JBoss services are started? I need, for example, to start the webservice endpoint after all EJBs are deployed because my webservices depend on EJBs.<br/><br/>Thank you<br/><br/>L]]></content:encoded>
      </item>
    <item>
        <title>some questions about &lt;OReilly.-.Learning.Android&gt;</title>
        <link>http://marakana.com/forums/android/learning_android_book/677.html</link>
        <author>Lichuang Gong</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/677.html</guid>
        <pubDate>Tue, 17 Apr 2012 07:53:13 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Now I am learning &lt;OReilly.-.Learning.Android&gt;, is there anybody learning the same book?<br/><br/>On page 53 ,I can not find the place to do this:<br/>"Eclipse is somewhat smart about renaming files and does more than just<br/>change the name. It also offers to look up all references to this file and update those as<br/>well. Although this feature works well when renaming a Java file, it is not fully auto-<br/>matic with XML files. So, renaming this file requires us to change the line in Java where<br/>we refer to it via the R class. To do that, in your StatusActivity’s onCreate(), change setContentView(R.layout.main); to setContentView(R.layout.status);.<br/>"<br/>Is there anybody help me?]]></content:encoded>
      </item>
    <item>
        <title>Help with Git install?</title>
        <link>http://marakana.com/forums/git/git/675.html</link>
        <author>Ken Jepson</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/675.html</guid>
        <pubDate>Sat, 14 Apr 2012 22:19:56 -0700</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[Hi - I just installed git on mac osx v5.8 on a ppc / non-intel When I attempt to run git I get the following error:<br/><blockquote>Bad CPU type in executable</blockquote><br/>Anybody have any idea how to fix this?<br/><br/>I tried using the osx supposedly universal package, and also tried compiling from source. Same problem both times. <br/><br/>TIA for and help!<br/><br/><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>Cursor: invalid statement in fillWindow()</title>
        <link>http://marakana.com/forums/android/learning_android_book/674.html</link>
        <author>Aaron Bernstein</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/674.html</guid>
        <pubDate>Thu, 12 Apr 2012 18:20:33 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[I am trying to get through the chapter on broadcast receivers and am having some problems. I keep getting the error "invalid statement in fillwindow". The error is happening on the line cursor.requery() in the TimelineReceiver in my TimelineActivity class. I assume I am not closing a cursor somewhere but can't figure it out. Here are my classes. THANK YOU<br/><br/>TimelineActivity.java<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>package com.aaron.yamba;<br/><br/>import android.content.BroadcastReceiver;<br/>import android.content.Context;<br/>import android.content.Intent;<br/>import android.content.IntentFilter;<br/>import android.database.Cursor; <br/>import android.os.Bundle;<br/>import android.text.format.DateUtils; <br/>import android.util.Log;<br/>import android.view.View;<br/>import android.widget.ListView;<br/>import android.widget.SimpleCursorAdapter; <br/>import android.widget.TextView;<br/>import android.widget.Toast;<br/>import android.widget.SimpleCursorAdapter.ViewBinder;<br/><br/>public class TimelineActivity extends BaseActivity { // <br/>	private static final String NEW_STATUS_INTENT = "com.aaron.yamba.NEW_STATUS";<br/>	Cursor cursor;<br/>	ListView listTimeline;<br/>	SimpleCursorAdapter adapter;<br/>	static final String[] FROM = { StatusData.C_CREATED_AT, StatusData.C_USER, StatusData.C_TEXT };<br/>	static final int[] TO = { R.id.textCreatedAt, R.id.textUser, R.id.textText };<br/>	TimelineReceiver receiver;<br/>	IntentFilter filter;<br/>	@Override<br/>	protected void onCreate(Bundle savedInstanceState) {<br/>		super.onCreate(savedInstanceState); setContentView(R.layout.timeline);<br/>		// Check if preferences have been set<br/>		if (!yamba.isHaveAllTwitterUserData()) { //<br/>			startActivity(new Intent(this, PrefsActivity.class));<br/>			Toast.makeText(this, R.string.msgSetupPrefs, Toast.LENGTH_LONG).show(); <br/>		}<br/>		receiver = new TimelineReceiver();<br/>		// Find your views<br/>		listTimeline = (ListView) findViewById(R.id.listTimeline); <br/>	}<br/>	@Override<br/>	protected void onResume() {<br/>		super.onResume();<br/>		<br/>		// Setup List<br/>		this.setupList(); // <br/>	}<br/>	<br/>	@Override<br/>	public void onDestroy() {<br/>		super.onDestroy();<br/>		// Close the database<br/>		yamba.getStatusData().close(); // <br/>	}<br/>	@Override<br/>	public void onStop() {<br/>		super.onStop();<br/>		adapter.getCursor().close();<br/>		cursor.close();<br/>	}<br/>	// Responsible for fetching data and setting up the list and the adapter <br/>	private void setupList() { //<br/>		// Get the data<br/>		cursor = yamba.getStatusData().getStatusUpdates(); <br/>		startManagingCursor(cursor);<br/>		// Setup Adapter<br/>		adapter = new SimpleCursorAdapter(this, R.layout.row, cursor, FROM, TO); <br/>		adapter.setViewBinder(VIEW_BINDER); //<br/>		listTimeline.setAdapter(adapter);<br/>		// Register the receiver<br/>		filter = new IntentFilter(NEW_STATUS_INTENT);<br/>		registerReceiver(receiver, filter); //<br/>		//cursor.close();<br/>		<br/>	}<br/>	// View binder constant to inject business logic for timestamp to relative // time conversion<br/>	static final ViewBinder VIEW_BINDER = new ViewBinder() { //<br/>		public boolean setViewValue(View view, Cursor cursor, int columnIndex) { <br/>			if (view.getId() != R.id.textCreatedAt) return false;<br/>			// Update the created at text to relative time<br/>			long timestamp = cursor.getLong(columnIndex);<br/>			CharSequence relTime = DateUtils.getRelativeTimeSpanString(view.getContext(), timestamp); ((TextView) view).setText(relTime);<br/>			return true; <br/>		}<br/>	};<br/>	public void onPause() {<br/>		super.onPause();<br/>		unregisterReceiver(receiver);<br/>	}<br/>	class TimelineReceiver extends BroadcastReceiver { //<br/>		@Override<br/>		public void onReceive(Context context, Intent intent) { //<br/>			<br/>			cursor.requery(); // <br/>			adapter.notifyDataSetChanged(); // <br/>			Log.d("TimelineReceiverBROADCAST", "onReceived");<br/>		} <br/>	}<br/>}<br/><br/></pre>
		  </div><br/><br/>Here is my StatusData class<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>package com.aaron.yamba;<br/><br/>import android.content.ContentValues;<br/>import android.content.Context;<br/>import android.database.Cursor;<br/>import android.database.sqlite.SQLiteDatabase; <br/>import android.database.sqlite.SQLiteOpenHelper; <br/>import android.util.Log;<br/><br/>public class StatusData {<br/>	private static final String TAG = StatusData.class.getSimpleName();<br/>	static final int VERSION = 1;<br/>	static final String DATABASE = "timeline.db"; <br/>	static final String TABLE = "timeline";<br/>	public static final String C_ID = "_id";<br/>	public static final String C_CREATED_AT = "created_at"; <br/>	public static final String C_TEXT = "txt";<br/>	public static final String C_USER = "user";<br/>	static final String C_SOURCE = "source";<br/>	private static final String GET_ALL_ORDER_BY = C_CREATED_AT + " DESC";<br/>	private static final String[] MAX_CREATED_AT_COLUMNS = { "max(" + StatusData.C_CREATED_AT + ")" };<br/>	private static final String[] DB_TEXT_COLUMNS = { C_TEXT };<br/>	private final DbHelper dbHelper; //<br/><br/>	public StatusData(Context context) { // <br/>		this.dbHelper = new DbHelper(context); Log.i(TAG, "Initialized data");<br/>	}<br/><br/>	public void close() { // <br/>		<br/>		this.dbHelper.close();<br/>	}<br/><br/>	public void insertOrIgnore(ContentValues values) { // <br/>		Log.d(TAG, "insertOrIgnore on " + values);<br/>		Log.i(TAG, "insertOrIgnore on " + values);<br/>		Log.d(TAG, "insertOrIgnore on " + values);<br/>		SQLiteDatabase db = this.dbHelper.getWritableDatabase(); //<br/>		 try {<br/>		        Cursor c = db.query(TABLE, null, null, null, null, null, null);<br/>		        if (c != null) {<br/>		            int num = c.getColumnCount();<br/>		            for (int i = 0; i &lt; num; ++i) {<br/>		                String colname = c.getColumnName(i);<br/>		                Log.d(TAG, colname.toUpperCase());<br/>		            }<br/>		        }<br/><br/>		    } catch (Exception e) {<br/>		        Log.v(TABLE, e.getMessage(), e);<br/>		        e.printStackTrace();<br/>		    }<br/>		try {<br/>			db.insertWithOnConflict(TABLE, null, values, SQLiteDatabase.CONFLICT_IGNORE); //<br/>		} <br/>		finally { <br/>			db.close(); //<br/>		}<br/>	} <br/><br/>	/** *<br/>	 * @return Cursor where the columns are id, created_at, user, txt<br/>	 **/<br/>	public Cursor getStatusUpdates() { //<br/>		SQLiteDatabase db = this.dbHelper.getReadableDatabase();<br/>		return db.query(TABLE, null, null, null, null, null, GET_ALL_ORDER_BY); <br/>	}<br/><br/>	/** *<br/>	 * @return Timestamp of the latest status we ahve it the database<br/>	 */<br/>	public long getLatestStatusCreatedAtTime() { //<br/>		SQLiteDatabase db = this.dbHelper.getReadableDatabase(); <br/>		try {<br/>			Cursor cursor = db.query(TABLE, MAX_CREATED_AT_COLUMNS, null, null, null, null, null);<br/>			try {<br/>				return cursor.moveToNext() ? cursor.getLong(0) : Long.MIN_VALUE;<br/>			} <br/>			finally {<br/>				cursor.close(); <br/>			}<br/>		} <br/>		finally {<br/>			db.close(); <br/>		}<br/>	}<br/>	/** *<br/>	 * @param id of the status we are looking for * @return Text of the status<br/>	 */<br/>	public String getStatusTextById(long id) { // <br/>		SQLiteDatabase db = this.dbHelper.getReadableDatabase(); <br/>		try {<br/>			Cursor cursor = db.query(TABLE, DB_TEXT_COLUMNS, C_ID + "=" + id, null, null, null, null);<br/>			try {<br/>				return cursor.moveToNext() ? cursor.getString(0) : null;<br/>			} <br/>			finally {<br/>				cursor.close(); <br/>			}<br/>		} <br/>		finally {<br/>			db.close(); <br/>		}<br/>	} <br/>	/** *<br/>	 * @param id of the status we are looking for * @return Text of the status<br/>	 */<br/>	public void deleteAll() { // <br/>		SQLiteDatabase db = this.dbHelper.getWritableDatabase(); <br/>		db.delete("timeline", null, null);<br/>	} <br/><br/><br/><br/><br/><br/>	// DbHelper implementations<br/>	class DbHelper extends SQLiteOpenHelper {<br/><br/>		public DbHelper(Context context) {<br/>			super(context, DATABASE, null, VERSION);<br/>		}<br/><br/>		@Override<br/>		public void onCreate(SQLiteDatabase db) {<br/>			Log.i(TAG, "Creating database: " + DATABASE);<br/>			String sql = "create table " + TABLE + " (" + C_ID<br/>					+ " INTEGER PRIMARY KEY AUTOINCREMENT, " + C_CREATED_AT + " int, " + C_USER<br/>					+ " text, " + C_TEXT + " text, " + C_SOURCE + " text)";<br/>			System.out.println(sql);<br/>			Log.d("STATUS DATA SQL SQL SQL SQL SQL", sql);<br/>			db.execSQL(sql);<br/>		}<br/><br/>		@Override<br/>		public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {<br/>			db.execSQL("drop table " + TABLE);<br/>			this.onCreate(db);<br/>		}<br/>	}<br/>}<br/></pre>
		  </div><br/><br/><br/>Here is my YambaApplication class<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>package com.aaron.yamba;<br/><br/>import java.util.List;<br/><br/>import winterwell.jtwitter.Status;<br/>import winterwell.jtwitter.Twitter;<br/>import android.app.Application;<br/>import android.content.ContentValues;<br/>import android.content.SharedPreferences;<br/>import android.content.SharedPreferences.OnSharedPreferenceChangeListener; <br/>import android.preference.PreferenceManager;<br/>import android.text.TextUtils;<br/>import android.util.Log;<br/><br/>public class YambaApplication extends Application implements OnSharedPreferenceChangeListener { //<br/>	<br/>	private static final String TAG = YambaApplication.class.getSimpleName(); <br/>	public Twitter twitter; //<br/>	private SharedPreferences prefs;<br/>	private boolean serviceRunning;<br/>	private StatusData statusData;<br/>	private boolean isShowTimeline;<br/>	<br/>	@Override<br/>	public void onCreate() { //<br/>		super.onCreate();<br/>		this.prefs = PreferenceManager.getDefaultSharedPreferences(this); <br/>		this.prefs.registerOnSharedPreferenceChangeListener(this); <br/>		this.statusData = new StatusData(this);<br/>		Log.i(TAG, "onCreated");<br/>	}<br/>	<br/>	@Override<br/>	public void onTerminate() { //<br/>		super.onTerminate();<br/>		Log.i(TAG, "onTerminated"); <br/>	}<br/>	public Integer getDelay() {<br/>		return Integer.valueOf(this.prefs.getString("delayPref", ""));<br/>	}<br/>	@SuppressWarnings("deprecation")<br/>	public synchronized Twitter getTwitter() { // <br/>		if (this.twitter == null) {<br/>			String username = this.prefs.getString("username", ""); <br/>			String password = this.prefs.getString("password", ""); <br/>			String apiRoot = this.prefs.getString("apiRoot","http://yamba.marakana.com/api");<br/>			if (!TextUtils.isEmpty(username) &amp;&amp; !TextUtils.isEmpty(password) &amp;&amp; !TextUtils.isEmpty(apiRoot)) { <br/>				this.twitter = new Twitter(username, password); <br/>				this.twitter.setAPIRootUrl(apiRoot);<br/>			} <br/>		}<br/>		return this.twitter; <br/>	}<br/>	public boolean isHaveAllTwitterUserData() {<br/>		 boolean isInit = false;<br/>		 String username = this.prefs.getString("username", ""); <br/>			String password = this.prefs.getString("password", ""); <br/>			String apiRoot = this.prefs.getString("apiRoot","http://yamba.marakana.com/api");<br/>			if (!TextUtils.isEmpty(username) &amp;&amp; !TextUtils.isEmpty(password) <br/>					&amp;&amp; !TextUtils.isEmpty(apiRoot)) { <br/>				return true;<br/>			} <br/>			return isInit;<br/>	}<br/>	public boolean isValidTwitterAccount() {<br/>		return null != this.twitter;<br/>	}<br/>	// Connects to the online service and puts the latest statuses into DB. <br/>	// Returns the count of new statuses<br/>	public synchronized int fetchStatusUpdates() { //<br/>		Log.d(TAG, "Fetching status updates"); <br/>		Twitter twitter = this.getTwitter();<br/>		if (twitter == null) {<br/>			Log.d(TAG, "Twitter connection info not initialized");<br/>			return 0; <br/>		}<br/>		try {<br/>			List&lt;Status&gt; statusUpdates = twitter.getPublicTimeline(); <br/>			long latestStatusCreatedAtTime = this.getStatusData().getLatestStatusCreatedAtTime(); <br/>			int count = 0;<br/>			ContentValues values = new ContentValues(); <br/>			for (Status status : statusUpdates) {<br/>				long createdAt = status.getCreatedAt().getTime(); <br/>				values.put(StatusData.C_ID, Integer.valueOf(status.getId().intValue()));<br/>				values.put(StatusData.C_CREATED_AT, createdAt); <br/>				values.put(StatusData.C_TEXT, status.getText()); <br/>				values.put(StatusData.C_USER, status.getUser().getName()); <br/>				Log.d(TAG, "Got update with id " + status.getId() + ". Saving"); <br/>				<br/>				this.getStatusData().insertOrIgnore(values);<br/>				if (latestStatusCreatedAtTime &lt; createdAt) {<br/>					count++; <br/>				}<br/>			}<br/>			Log.d(TAG, count &gt; 0 ? "Got " + count + " status updates": "No new status updates"); <br/>			return count;<br/>		} catch (RuntimeException e) {<br/>			Log.e(TAG, "Failed to fetch status updates", e); <br/>			return 0;<br/>		} <br/>	}<br/>	public synchronized void onSharedPreferenceChanged( SharedPreferences sharedPreferences, String key) { //<br/>		this.twitter = null; <br/>	}<br/><br/>	public boolean isServiceRunning() {<br/>		return serviceRunning;<br/>	}<br/><br/>	public void setServiceRunning(boolean serviceRunning) {<br/>		this.serviceRunning = serviceRunning;<br/>	}<br/>	public StatusData getStatusData() { // <br/>		return statusData;<br/>	}<br/>}<br/><br/></pre>
		  </div><br/><br/>UpdaterService.java<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>package com.aaron.yamba;<br/><br/>import android.app.Service;<br/>import android.content.Context;<br/>import android.content.Intent;<br/>import android.database.sqlite.SQLiteDatabase;<br/>import android.database.sqlite.SQLiteOpenHelper;<br/>import android.os.IBinder;<br/>import android.provider.BaseColumns;<br/>import android.util.Log;<br/>import android.widget.Toast;<br/><br/>public class UpdaterService extends Service {<br/><br/>	private static final String TAG = "UpdaterService";<br/>	private static final String NEW_STATUS_INTENT = "com.aaron.yamba.NEW_STATUS";<br/>	private static final String NEW_STATUS_EXTRA_COUNT = "com.aaron.yamba.NEW_STATUS_EXTRA_COUNT";<br/>	private boolean runFlag = false; // <br/>	private Updater updater;<br/>	private YambaApplication yamba;<br/>	DbHelper dbHelper;<br/>	SQLiteDatabase db;<br/>	Intent intent;<br/><br/>	@Override<br/>	public IBinder onBind(Intent intent) {<br/>		return null; <br/>	}<br/><br/>	@Override<br/>	public void onCreate() {<br/>		super.onCreate();<br/>		this.yamba = (YambaApplication) getApplication();<br/>		this.updater = new Updater(); //<br/>		dbHelper = new DbHelper(this); //<br/>		Log.d(TAG, "onCreated"); <br/>	}<br/><br/>	@Override<br/>	public void onStart(Intent intent,int startId) {<br/>		super.onStart(intent, startId);<br/>		yamba.setServiceRunning(true);<br/>		this.runFlag = true; // <br/>		this.updater.start();<br/>		Log.d(TAG, "onStarted");<br/>	}<br/><br/><br/>	@Override<br/>	public void onDestroy() {<br/>		super.onDestroy(); <br/>		yamba.setServiceRunning(false);<br/>		this.runFlag = false; //<br/>		this.updater.interrupt();<br/>		this.updater = null;<br/>		Log.d(TAG, "onDestroyed"); <br/>	}<br/>	/**<br/>	 * Thread that performs the actual update from the online service <br/>	 */<br/>	private class Updater extends Thread {<br/><br/>		public Updater() {<br/>			super("UpdaterService-Updater");<br/>		}<br/><br/>		@Override<br/>		public void run() {<br/>			UpdaterService updaterService = UpdaterService.this; <br/>			while (updaterService.runFlag) {<br/>				Log.d(TAG, "Running background thread"); <br/>				try {<br/>					YambaApplication yamba =(YambaApplication) updaterService.getApplication(); //<br/>					int newUpdates = yamba.fetchStatusUpdates(); // <br/>					if (newUpdates &gt; 0) { //<br/>						//Toast.makeText(updaterService, "NEW UPDATES AVAILABLE: " + newUpdates , Toast.LENGTH_LONG).show();<br/>						Log.d(TAG, "We have a new status");<br/>						intent = new Intent(NEW_STATUS_INTENT); // <br/>						intent.putExtra(NEW_STATUS_EXTRA_COUNT, newUpdates); // <br/>						updaterService.sendBroadcast(intent); //<br/>				}<br/>				Thread.sleep(yamba.getDelay()); //<br/>				} catch (InterruptedException e) {<br/>					updaterService.runFlag = false; // <br/>				}<br/>			}<br/>		}<br/>	} // Updater<br/><br/>	class DbHelper extends SQLiteOpenHelper { // <br/>		static final String TAG = "DbHelper";<br/>		static final String DB_NAME = "timeline.db"; // <br/>		static final int DB_VERSION = 1; //<br/>		static final String TABLE = "timeline"; // <br/>		static final String C_ID = BaseColumns._ID; <br/>		static final String C_CREATED_AT = "created_at"; <br/>		static final String C_SOURCE = "source";<br/>		static final String C_TEXT = "txt";<br/>		static final String C_USER = "user";<br/>		Context context;<br/>	<br/>		// Constructor<br/>		public DbHelper(Context context) { //<br/>			super(context, DB_NAME, null, DB_VERSION);<br/>			this.context = context; <br/>		}<br/>		// Called only once, first time the DB is created @Override<br/>		public void onCreate(SQLiteDatabase db) {<br/>			<br/>		}<br/>		// Called whenever newVersion != oldVersion<br/>		@Override<br/>		public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { //<br/>			// Typically do ALTER TABLE statements, but...we're just in development, // so:<br/>		}	<br/>	}<br/>}<br/></pre>
		  </div>]]></content:encoded>
      </item>
    <item>
        <title>Chaper 6: Jamba1 has stoped</title>
        <link>http://marakana.com/forums/android/learning_android_book/672.html</link>
        <author>Tinh San</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/672.html</guid>
        <pubDate>Mon, 09 Apr 2012 00:07:45 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[hi, i create source same "Example 6-3. StatusActivity.java, version 1" but when i click to jamba1 show diaglog "unfortunately. Yaba1 has stoped" can you help me fix it, my AVD Android 4.0.3, thanks]]></content:encoded>
      </item>
    <item>
        <title>Query to add edited entries to the top of a paginated list</title>
        <link>http://marakana.com/forums/ruby/ruby_on_rails/671.html</link>
        <author>Eric Hermann</author>
        <guid isPermaLink="true">http://marakana.com/forums/ruby/ruby_on_rails/671.html</guid>
        <pubDate>Fri, 06 Apr 2012 18:34:25 -0700</pubDate>
        <category>Ruby - Ruby on Rails</category>
        <content:encoded><![CDATA[Query to add edited entries to the top of a paginated list<br/><br/>Hello, I have a will paginated list of properties and I'm trying to find a way to display the most recently updated entries at the top of the list based on their most current modify date.    The approach I'm taking is to use mysql UNION in paginate_by_sql and here's my code:<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/><br/>#property_ids is an array of property id's that have been edited<br/>edited_list_where = " WHERE properties.property_id IN (#{property_ids.join(', ')[0..-1]} )"<br/><br/>if(params[:page].to_i &gt; 1)<br/>  property_limit = " LIMIT #{property_ids.length} OFFSET #{(params[:page].to_i*10)}" if (property_ids.length &gt; 0)<br/>end<br/><br/>Property.paginate_by_sql("(SELECT properties.*, layouts.* FROM properties<br/>                             LEFT OUTER JOIN layouts ON layouts.property_id = properties.property_id <br/>                               #{edited_list_where} <br/>                                   ORDER BY properties.modify_date ASC #{property_limit}) <br/>                          UNION<br/>                             (SELECT properties.*, layouts.title FROM properties<br/>         			LEFT OUTER JOIN layouts ON layouts.property_id = properties.property_id<br/>           			 WHERE properties.property_type='apartment' ORDER BY properties.property_status ASC)", :page =&gt; params[:page], :per_page =&gt; 10)<br/></pre>
		  </div><br/><br/>This approach works perfectly when you're on the first page and the edited properties show up first ordered by the last edited, but when you're on any other page, the edited list doesn't appear on top.    <br/><br/>It seems like I'm asking quite a lot and I'm not sure this is even fully possible w/out adding some complicated hacks.<br/><br/>Any ideas?<br/><br/>Thanks!<br/>Clem C]]></content:encoded>
      </item>
    <item>
        <title>Android Multimedia Framework</title>
        <link>http://marakana.com/forums/android/general/669.html</link>
        <author>Puneet Sharma</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/669.html</guid>
        <pubDate>Tue, 03 Apr 2012 21:49:55 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Hello all,<br/><br/>I am studying android multimedia framework from some time. When a mediaplayer application is called i was able to understand how the calls happen till client side but how the call gets transfered to service implementaion via binder is what i am not able to understand . I have digged into source code but could not able to relate which class is calling which class. Can you please guide me on this?<br/><br/><br/><br/>Thanks &amp; regards<br/>Puneet sharma(India)<br/>punitsharma1181@gmail.com]]></content:encoded>
      </item>
    <item>
        <title>wintervell.jtwitter,twitterException$E401</title>
        <link>http://marakana.com/forums/android/learning_android_book/668.html</link>
        <author>John Johnson</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/668.html</guid>
        <pubDate>Tue, 03 Apr 2012 21:39:11 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[wintervell.jtwitter,twitterException$E401: Unauthorized <a href="http://yamba.marakana.com/api/statuses.." rel="nofollow">http://yamba.marakana.com/api/statuses..</a><br/><br/>I'm getting this error and very frustrated at this point (wasted to many hours trying to get this code to run). I've read other post on this forum related to this issue and it's not clear to me if this feature of the app works. I haven't been able to clearly read where a solution to this was implemented by anyone. My emulator is able to access the internet, I created <a href="http://www.Identi.ca" rel="nofollow">www.Identi.ca</a> and yamba.marakana.com accounts and logged into them without any problems. I downloaded the current jtwitter.jar file from github. I am not behind a company's firewall. I have no typos in the code and my permission to access the internet is set in the androidminfest file. Nothing seems to work. Is this tutorial obsolete? Should I be pursuing other options? I must admit that I am very disappointed with this textbook thus far, I looked at several titles before choosing this one. What caught my attention was the authors background and experience. I'm new to Android development and I thought I finally found a legitimate tutorial after several bad investments. Can someone PLEASE help, I will be eternally grateful. Thank you in-advance.<br/><br/>.]]></content:encoded>
      </item>
    <item>
        <title>How to customize yamba app</title>
        <link>http://marakana.com/forums/android/learning_android_book/667.html</link>
        <author>Selo T</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/667.html</guid>
        <pubDate>Tue, 03 Apr 2012 01:37:42 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi,<br/><br/>I installed Yamba App on my phone and it is perfectly working.<br/><br/>Next thing i'd like to do is connect to my own twitter account and post new statuses/retrieve new updates.<br/>Can you please guide me about how to use customized jtwitter API to do that?<br/><br/>thanks]]></content:encoded>
      </item>
    <item>
        <title>a more readable type lambda trick</title>
        <link>http://marakana.com/forums/scala/examples/665.html</link>
        <author>Dan Rosen</author>
        <guid isPermaLink="true">http://marakana.com/forums/scala/examples/665.html</guid>
        <pubDate>Sat, 31 Mar 2012 09:43:58 -0700</pubDate>
        <category>Scala - Examples</category>
        <content:encoded><![CDATA[So you've got some type that takes multiple type parameters, like:<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">trait State[S, A]<br/></pre>
		  </div><br/><br/>... and you've got some code that needs to fix one of the type parameters while letting the other(s) vary.  We usually use the "type lambda trick" to partially apply type arguments, like this:<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">def stateMonad[S] = new Monad[({type L[A] = State[S, A]})#L] { ... }<br/></pre>
		  </div><br/><br/>Sometimes you see this written with actual Greek characters using Unicode, where "L" is written as a lower case lambda, hence the name.  Using Greek letters in source code is for jerks, unless you happen to actually be Greek, in which case go for it.  However, even with the Latin "L" I don't find this style of code particularly readable, when some type lambda needs to be given a name and referenced more than once.  <strong>So I propose the following new convention:</strong><br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">def stateMonad[S] = {<br/>  type `State[S]`[A] = State[S, A]<br/>  new Monad[`State[S]`] { ... }<br/>}<br/></pre>
		  </div><br/><br/>The backticks permit use of the special <code class="inline">[]</code> characters which wouldn't otherwise be allowed in an identifier.  At any rate, the idea is to mimic the appearance of <a href="https://issues.scala-lang.org/browse/SI-4719" rel="nofollow">multiple type parameter lists</a> without yet having them in the Scala language.]]></content:encoded>
      </item>
    <item>
        <title>&apos;winterwell.jtwitter.Twitter&apos;</title>
        <link>http://marakana.com/forums/android/learning_android_book/664.html</link>
        <author>Mark McBreen</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/664.html</guid>
        <pubDate>Fri, 23 Mar 2012 14:26:06 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[I had book examples all working Ok with Eclipse Helios (i think platform 3.6) but was having a few problems with projects corrupting so installed Eclipse Indigo. Now I get runtime crashes / errors as soon as the program makes a reference to Twitter. For example when attempting to start the service with these lines in the gettwitter() function:-<br/>this.twitter = new Twitter(username, password);<br/>this.twitter.setAPIRootUrl(url);<br/><br/>I have made sure the jtwitter is added to the project as described in the book (in the package explorer and added as a Jar file and in the project properties Java Build Path.<br/><br/>I have even tried adding the Jtwitter-Yamba project source to a project but get the same results.<br/><br/>It appears to be some kind of Java problem with the new Eclipse Indigo IDE.<br/><br/>Logcat output below - Any help or pointers in the right direction would be really appreciated as I have spent hours unsuccessfully trying to solve this.<br/><br/>Regds<br/>Mark<br/><br/>03-24 09:45:27.930: E/dalvikvm(25437): Could not find class 'winterwell.jtwitter.Twitter', referenced from method com.marakana.yamba6.YambaApplication.getTwitter<br/>03-24 09:45:52.310: E/dalvikvm(25524): Could not find class 'winterwell.jtwitter.Twitter', referenced from method com.marakana.yamba6.YambaApplication.getTwitter<br/>03-24 09:46:10.590: E/AndroidRuntime(25524): FATAL EXCEPTION: UpdaterService-Updater<br/>03-24 09:46:10.590: E/AndroidRuntime(25524): java.lang.NoClassDefFoundError: winterwell.jtwitter.Twitter<br/>03-24 09:46:10.590: E/AndroidRuntime(25524): 	at com.marakana.yamba6.YambaApplication.getTwitter(YambaApplication.java:40)<br/>03-24 09:46:10.590: E/AndroidRuntime(25524): 	at com.marakana.yamba6.YambaApplication.fetchStatusUpdates(YambaApplication.java:58)<br/>03-24 09:46:10.590: E/AndroidRuntime(25524): 	at com.marakana.yamba6.UpdaterService$Updater.run(UpdaterService.java:75)<br/>03-24 09:46:10.590: E/AndroidRuntime(25524): Caused by: java.lang.ClassNotFoundException: winterwell.jtwitter.Twitter in loader dalvik.system.PathClassLoader[/data/app/com.marakana.yamba6-2.apk]<br/>03-24 09:46:10.590: E/AndroidRuntime(25524): 	at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:251)<br/>03-24 09:46:10.590: E/AndroidRuntime(25524): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:540)<br/>03-24 09:46:10.590: E/AndroidRuntime(25524): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:500)]]></content:encoded>
      </item>
    <item>
        <title>Blocking navigation of the tab key</title>
        <link>http://marakana.com/forums/html5/general/663.html</link>
        <author>Fred Parkinson</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/663.html</guid>
        <pubDate>Fri, 23 Mar 2012 07:37:45 -0700</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[Is there any way to designate an input text box from being tabbed into?<br/>In my form I have a set of text boxes that display summary information about the form so tabbing into them is a waste of time, they are informational only.<br/><br/>If they can be stopped from being tabbed into then keyboard-centric users can more easily navigate the form with the tab key.<br/><br/>Thanks.  Fred]]></content:encoded>
      </item>
    <item>
        <title>google calendar API</title>
        <link>http://marakana.com/forums/android/examples/662.html</link>
        <author>Harsh Dev</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/662.html</guid>
        <pubDate>Wed, 21 Mar 2012 14:29:00 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Ive been searching tutorials on the net to provide a detailed understanding of Calendar API,i am developing an app for my college and i need to integrate google calendar in it...pls help]]></content:encoded>
      </item>
    <item>
        <title>how do you  create a android custom linearlayout control?</title>
        <link>http://marakana.com/forums/android/general/661.html</link>
        <author>Patrick Brown</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/661.html</guid>
        <pubDate>Tue, 20 Mar 2012 21:50:15 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[b]I am trying to get a custom control to work with a linearlayout and it crashes. The sytem does not properly load <br/>my R.layout.main when the custom control is started. <br/><br/>The code works if the inflate is not involved in the custom control.However I want the main.xml file loaded as in the real application I have a lot of stuff.<br/>[/b]<br/><br/><br/><strong>application code and xml file</strong><br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>package com.motorola.mcust;<br/><br/><br/><br/><br/>import java.util.Observable;<br/>import java.util.Observer;<br/><br/>import android.app.Activity;<br/>import android.os.Bundle;<br/><br/><br/><br/>import com.motorola.cust.CustomviewActivity;<br/><br/><br/><br/><br/>public class MycustActivity extends Activity {<br/>    /** Called when the activity is first created. */<br/>    CustomviewActivity cubes;<br/>    @Override<br/>    public void onCreate(Bundle savedInstanceState) {<br/>        super.onCreate(savedInstanceState);<br/>        setContentView(R.layout.main);<br/>       <br/>        int[] i;<br/>        i = new int[7];<br/><br/>        i[0] = R.drawable.ic_launcher;<br/>        i[1] = R.drawable.ic_launcher;<br/>        i[2] = R.drawable.ic_launcher;<br/>        i[3] = R.drawable.ic_launcher;<br/>        i[4] = R.drawable.ic_launcher;<br/>        i[5] = R.drawable.ic_launcher;<br/>        i[6] = R.drawable.ic_launcher;<br/>        cubes = (CustomviewActivity) this.findViewById(R.id.cubes);<br/>        <br/>                <br/>        <br/>        cubes.initialiseImages(i, 0, 0<br/>        		, 50, 50, 50, 50);<br/>        <br/>        <br/>    <br/>    }<br/>    <br/>    <br/>  <br/>    <br/>    <br/>    <br/>    <br/>}<br/></pre>
		  </div><br/><strong>main.xml</strong><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>&lt;?xml version="1.0" encoding="utf-8"?&gt;<br/>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"<br/>    android:layout_width="fill_parent"<br/>    android:layout_height="fill_parent"<br/>    android:orientation="vertical" &gt;<br/><br/><br/><br/><br/><br/><br/>&lt;com.motorola.cust.CustomviewActivity<br/>android:id="@+id/cubes"<br/>android:layout_width="fill_parent"<br/>android:layout_height="fill_parent"<br/>android:gravity="center"/&gt;<br/><br/><br/>&lt;/LinearLayout&gt;<br/></pre>
		  </div><br/><br/><strong>now custom control</strong><br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>package com.motorola.cust;<br/><br/><br/><br/>import android.app.Activity;<br/><br/><br/>import android.content.Context;<br/>import android.graphics.BitmapFactory;<br/>import android.graphics.Canvas;<br/>import android.graphics.Color;<br/>import android.graphics.Paint;<br/>import android.graphics.RectF;<br/>import android.util.AttributeSet;<br/>import android.util.Log;<br/>import android.view.LayoutInflater;<br/>import android.view.View;<br/>import android.widget.LinearLayout;<br/><br/>public class CustomviewActivity extends LinearLayout {<br/>    public String TAG = "CustomviewActivity";	<br/>	private int[] mImages;<br/>	private int mX;<br/>	private int dX;<br/>	private int mY;<br/>	private int dY;<br/>	private int mXInitial;<br/>	private RectF mRect;<br/><br/>    <br/>    <br/>	public CustomviewActivity(Context context, AttributeSet attrs) {<br/><br/>	    super( context, attrs );<br/><br/>	    Log.v(TAG,"inflater");<br/>	    LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);<br/>        if(inflater != null){ <br/>          Log.v(TAG,"inflater.inflate ing");	<br/>          View view = inflater.inflate(com.motorola.cust.R.layout.main, this);        <br/>          Log.v(TAG,"inflater.inflate ed");<br/>        }<br/>	    <br/>	}<br/><br/>	public void initialiseImages(int[] images, int topLeftX, int topLeftY,<br/>			int imageWidth, int imageHeight, int viewX, int viewY) {<br/><br/>		mImages = images;<br/>		dX = imageWidth;<br/>		mX = topLeftX + viewX;<br/>		dY = imageHeight;<br/>		mY = topLeftY + viewY;<br/>		mXInitial = mX;<br/>		invalidate();<br/>	}<br/><br/>	@Override<br/>	protected void onDraw(Canvas canvas) {<br/>		int i = 0;<br/>		int yTot;<br/>		yTot = mY + dY;<br/><br/>		<br/>		while (i &lt; mImages.length) <br/>		{<br/>	   	   mRect = new RectF(mX, mY, mX + dX,yTot);<br/><br/>			canvas.drawBitmap(BitmapFactory.decodeResource(<br/>					this.getResources(), mImages[i]), null, mRect, null);<br/>			mX = mX + dX;<br/>			i += 1;<br/>		}<br/>		mX = mXInitial;<br/>	}<br/>}<br/></pre>
		  </div><br/><strong>custom control main.xml</strong><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>&lt;?xml version="1.0" encoding="utf-8"?&gt;<br/>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"<br/>    android:layout_width="fill_parent"<br/>    android:layout_height="fill_parent"<br/>    android:orientation="vertical" &gt;<br/><br/>    &lt;TextView<br/>        android:layout_width="fill_parent"<br/>        android:layout_height="wrap_content"<br/>        android:text="@string/hello" /&gt;<br/><br/>&lt;/LinearLayout&gt;<br/></pre>
		  </div>]]></content:encoded>
      </item>
    <item>
        <title>YambaApp SimpleCursorAdapter issue _id</title>
        <link>http://marakana.com/forums/android/examples/658.html</link>
        <author>Paul Theunis</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/658.html</guid>
        <pubDate>Fri, 16 Mar 2012 10:52:36 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Whenever i try to run the code that i got from the 2012 android bootcamp.<br/>specifically chapter 23 about lists and adapters.<br/><br/>it tells me that the Table does not contain an _id collumn.<br/><br/>as seen in the video i have public static final String C_ID = BaseColumns._ID; which results in "_id"<br/><br/>Yet my emulator seems to think it's not there.<br/><br/>anyone else run into this issue? and if you did how did you fix it?<br/><br/>Thanks!<br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>ERROR: Cannot spawn git</title>
        <link>http://marakana.com/forums/git/git/657.html</link>
        <author>Mo Orloff</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/657.html</guid>
        <pubDate>Fri, 16 Mar 2012 08:10:09 -0700</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[Git is all still pretty new to me, and I'm up against an error which perplexes me.<br/><br/>What I did ...<br/>I'm trying to clone a copy of the ZF2 Skeleton App. (I'm on a Win7 machine)<br/>The first time I pulled the clone, it went swimmingly.<br/>Then I wanted to try pulling it recursively and wanted it in a diff location, so I dropped the repo dir  and tried to pull another clone ... and ... no dice.<br/><br/>Here's what I'm trying...<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">git clone --recursive <a href="git://github.com/zendframework/ZendSkeletonApplication.git" rel="nofollow">git://github.com/zendframework/ZendSkeletonApplication.git</a> zfSkeletonApp</pre>
		  </div><br/>And here's my error cluster (which means nothing to me :) ...<br/><blockquote>error: cannot spawn git: No such file or directory<br/>fatel: fetch-pack: unable to fork off index pack<br/>remote: Counting objects: 824, done<br/>fatal: read error: Bad file descriptor</blockquote><br/><br/>I even tried without the recursive option. It gives the same error results.<br/>What am I missing?<br/>How do I fix ??<br/><br/>Thanks-a-bunch,<br/>~ Mo<br/>]]></content:encoded>
      </item>
    <item>
        <title>getapplication();  says  cannot cast from application to AddMeActivity</title>
        <link>http://marakana.com/forums/android/learning_android_book/654.html</link>
        <author>Sumit Singh</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/654.html</guid>
        <pubDate>Tue, 13 Mar 2012 01:09:05 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[<div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">public class detailsActivity extends Activity implements OnClickListener {<br/>	Button buttonclick;<br/>	AddMeActivity addme;<br/>	 @Override<br/>	    public void onCreate(Bundle savedInstanceState) {<br/>	        super.onCreate(savedInstanceState);<br/>	        <br/>	      <br/>	        <br/>    		setContentView(R.layout.details);<br/>    		<br/>    		addme = (AddMeActivity)getApplication();<br/>  	        <br/>  	        <br/>    		buttonclick = (Button) findViewById(R.id.detailsbutton);<br/>	        buttonclick.setOnClickListener(this);<br/>	        <br/>	        <br/>	    }</pre>
		  </div><br/>	 ]]></content:encoded>
      </item>
    <item>
        <title>Yamba app not working</title>
        <link>http://marakana.com/forums/android/learning_android_book/653.html</link>
        <author>Naveen Naik</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/653.html</guid>
        <pubDate>Mon, 12 Mar 2012 11:38:20 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi,<br/><br/>I am working on the Yamba project following the Android bootcamp video. On click of the update button it gives an error "Unfortunately yamba has stopped"..i even used the <br/>jtwitter-yamba.jar but it still shows the same error. i tried by creating a new account instead of student but its still the same<br/>Below is the Log Cat stack trace..<br/>Please let me know if i am going wrong somewhere<br/><br/>03-12 23:46:15.124: D/gralloc_goldfish(628): Emulator without GPU emulation detected.<br/>03-12 23:46:36.784: D/AndroidRuntime(628): Shutting down VM<br/>03-12 23:46:36.784: W/dalvikvm(628): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): FATAL EXCEPTION: main<br/>03-12 23:46:36.844: E/AndroidRuntime(628): android.os.NetworkOnMainThreadException<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1099)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at java.net.InetAddress.lookupHostByName(InetAddress.java:391)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at java.net.InetAddress.getAllByNameImpl(InetAddress.java:242)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at java.net.InetAddress.getAllByName(InetAddress.java:220)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at libcore.net.http.HttpConnection.&lt;init&gt;(HttpConnection.java:71)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at libcore.net.http.HttpConnection.&lt;init&gt;(HttpConnection.java:50)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at libcore.net.http.HttpConnection$Address.connect(HttpConnection.java:351)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at libcore.net.http.HttpConnectionPool.get(HttpConnectionPool.java:86)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at libcore.net.http.HttpConnection.connect(HttpConnection.java:128)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at libcore.net.http.HttpEngine.openSocketConnection(HttpEngine.java:308)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at libcore.net.http.HttpEngine.connect(HttpEngine.java:303)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:282)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:232)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at libcore.net.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:80)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at libcore.net.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:188)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at winterwell.jtwitter.URLConnectionHttpClient.post(URLConnectionHttpClient.java:215)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at winterwell.jtwitter.Twitter.post(Twitter.java:1944)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:2555)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:2502)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at winterwell.jtwitter.Twitter.setStatus(Twitter.java:2274)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at com.bayer.yamba.StatusActivity.onClick(StatusActivity.java:31)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at android.view.View.performClick(View.java:3511)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at android.view.View$PerformClick.run(View.java:14105)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at android.os.Handler.handleCallback(Handler.java:605)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at android.os.Handler.dispatchMessage(Handler.java:92)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at android.os.Looper.loop(Looper.java:137)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at android.app.ActivityThread.main(ActivityThread.java:4424)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at java.lang.reflect.Method.invokeNative(Native Method)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at java.lang.reflect.Method.invoke(Method.java:511)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): at dalvik.system.NativeStart.main(Native Method)<br/>03-12 23:56:55.125: D/gralloc_goldfish(668): Emulator without GPU emulation detected.<br/>03-12 23:56:57.125: D/AndroidRuntime(668): Shutting down VM<br/>03-12 23:56:57.125: W/dalvikvm(668): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): FATAL EXCEPTION: main<br/>03-12 23:56:57.185: E/AndroidRuntime(668): android.os.NetworkOnMainThreadException<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1099)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at java.net.InetAddress.lookupHostByName(InetAddress.java:391)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at java.net.InetAddress.getAllByNameImpl(InetAddress.java:242)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at java.net.InetAddress.getAllByName(InetAddress.java:220)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at libcore.net.http.HttpConnection.&lt;init&gt;(HttpConnection.java:71)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at libcore.net.http.HttpConnection.&lt;init&gt;(HttpConnection.java:50)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at libcore.net.http.HttpConnection$Address.connect(HttpConnection.java:351)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at libcore.net.http.HttpConnectionPool.get(HttpConnectionPool.java:86)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at libcore.net.http.HttpConnection.connect(HttpConnection.java:128)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at libcore.net.http.HttpEngine.openSocketConnection(HttpEngine.java:308)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at libcore.net.http.HttpEngine.connect(HttpEngine.java:303)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:282)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:232)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at libcore.net.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:80)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at libcore.net.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:188)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at winterwell.jtwitter.URLConnectionHttpClient.post(URLConnectionHttpClient.java:215)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at winterwell.jtwitter.Twitter.post(Twitter.java:1944)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:2555)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:2502)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at winterwell.jtwitter.Twitter.setStatus(Twitter.java:2274)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at com.bayer.yamba.StatusActivity.onClick(StatusActivity.java:31)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at android.view.View.performClick(View.java:3511)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at android.view.View$PerformClick.run(View.java:14105)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at android.os.Handler.handleCallback(Handler.java:605)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at android.os.Handler.dispatchMessage(Handler.java:92)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at android.os.Looper.loop(Looper.java:137)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at android.app.ActivityThread.main(ActivityThread.java:4424)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at java.lang.reflect.Method.invokeNative(Native Method)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at java.lang.reflect.Method.invoke(Method.java:511)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): at dalvik.system.NativeStart.main(Native Method)<br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>yamba app not working</title>
        <link>http://marakana.com/forums/android/examples/652.html</link>
        <author>Naveen Naik</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/652.html</guid>
        <pubDate>Mon, 12 Mar 2012 11:32:52 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Hi,<br/><br/>I am working on the Yamba project following the Android bootcamp video. On click of the update button it gives an error "Unfortunately yamba has stopped"..i even used the <br/>jtwitter-yamba.jar but it still shows the same error. i tried by creating a new account instead of student but its still the same<br/>Below is the Log Cat stack trace..<br/>Please let me know if i am going wrong somewhere<br/><br/>03-12 23:46:15.124: D/gralloc_goldfish(628): Emulator without GPU emulation detected.<br/>03-12 23:46:36.784: D/AndroidRuntime(628): Shutting down VM<br/>03-12 23:46:36.784: W/dalvikvm(628): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): FATAL EXCEPTION: main<br/>03-12 23:46:36.844: E/AndroidRuntime(628): android.os.NetworkOnMainThreadException<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1099)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at java.net.InetAddress.lookupHostByName(InetAddress.java:391)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at java.net.InetAddress.getAllByNameImpl(InetAddress.java:242)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at java.net.InetAddress.getAllByName(InetAddress.java:220)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at libcore.net.http.HttpConnection.&lt;init&gt;(HttpConnection.java:71)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at libcore.net.http.HttpConnection.&lt;init&gt;(HttpConnection.java:50)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at libcore.net.http.HttpConnection$Address.connect(HttpConnection.java:351)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at libcore.net.http.HttpConnectionPool.get(HttpConnectionPool.java:86)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at libcore.net.http.HttpConnection.connect(HttpConnection.java:128)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at libcore.net.http.HttpEngine.openSocketConnection(HttpEngine.java:308)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at libcore.net.http.HttpEngine.connect(HttpEngine.java:303)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:282)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:232)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at libcore.net.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:80)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at libcore.net.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:188)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at winterwell.jtwitter.URLConnectionHttpClient.post(URLConnectionHttpClient.java:215)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at winterwell.jtwitter.Twitter.post(Twitter.java:1944)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:2555)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:2502)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at winterwell.jtwitter.Twitter.setStatus(Twitter.java:2274)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at com.bayer.yamba.StatusActivity.onClick(StatusActivity.java:31)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at android.view.View.performClick(View.java:3511)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at android.view.View$PerformClick.run(View.java:14105)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at android.os.Handler.handleCallback(Handler.java:605)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at android.os.Handler.dispatchMessage(Handler.java:92)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at android.os.Looper.loop(Looper.java:137)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at android.app.ActivityThread.main(ActivityThread.java:4424)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at java.lang.reflect.Method.invokeNative(Native Method)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at java.lang.reflect.Method.invoke(Method.java:511)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)<br/>03-12 23:46:36.844: E/AndroidRuntime(628): 	at dalvik.system.NativeStart.main(Native Method)<br/>03-12 23:56:55.125: D/gralloc_goldfish(668): Emulator without GPU emulation detected.<br/>03-12 23:56:57.125: D/AndroidRuntime(668): Shutting down VM<br/>03-12 23:56:57.125: W/dalvikvm(668): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): FATAL EXCEPTION: main<br/>03-12 23:56:57.185: E/AndroidRuntime(668): android.os.NetworkOnMainThreadException<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1099)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at java.net.InetAddress.lookupHostByName(InetAddress.java:391)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at java.net.InetAddress.getAllByNameImpl(InetAddress.java:242)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at java.net.InetAddress.getAllByName(InetAddress.java:220)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at libcore.net.http.HttpConnection.&lt;init&gt;(HttpConnection.java:71)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at libcore.net.http.HttpConnection.&lt;init&gt;(HttpConnection.java:50)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at libcore.net.http.HttpConnection$Address.connect(HttpConnection.java:351)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at libcore.net.http.HttpConnectionPool.get(HttpConnectionPool.java:86)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at libcore.net.http.HttpConnection.connect(HttpConnection.java:128)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at libcore.net.http.HttpEngine.openSocketConnection(HttpEngine.java:308)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at libcore.net.http.HttpEngine.connect(HttpEngine.java:303)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:282)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:232)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at libcore.net.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:80)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at libcore.net.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:188)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at winterwell.jtwitter.URLConnectionHttpClient.post(URLConnectionHttpClient.java:215)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at winterwell.jtwitter.Twitter.post(Twitter.java:1944)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:2555)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:2502)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at winterwell.jtwitter.Twitter.setStatus(Twitter.java:2274)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at com.bayer.yamba.StatusActivity.onClick(StatusActivity.java:31)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at android.view.View.performClick(View.java:3511)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at android.view.View$PerformClick.run(View.java:14105)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at android.os.Handler.handleCallback(Handler.java:605)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at android.os.Handler.dispatchMessage(Handler.java:92)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at android.os.Looper.loop(Looper.java:137)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at android.app.ActivityThread.main(ActivityThread.java:4424)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at java.lang.reflect.Method.invokeNative(Native Method)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at java.lang.reflect.Method.invoke(Method.java:511)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)<br/>03-12 23:56:57.185: E/AndroidRuntime(668): 	at dalvik.system.NativeStart.main(Native Method)<br/>]]></content:encoded>
      </item>
    <item>
        <title>android and speech recognition</title>
        <link>http://marakana.com/forums/android/examples/651.html</link>
        <author>Noraziahtulhidayu Kamarudin</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/651.html</guid>
        <pubDate>Sat, 10 Mar 2012 01:11:31 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Hi all,<br/><br/>i would like to request if anybody here have ever create any  codes or samples that can be use for speech recognition and matlab for android? If yes, i really hopes that you may inform me on the codes.<br/><br/><br/>Thanks a lot<br/><br/><br/><br/>Noraziahtulhidayu Kamarudin<br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>how to set view flipper images at the center</title>
        <link>http://marakana.com/forums/android/examples/650.html</link>
        <author>Parul Shinde</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/650.html</guid>
        <pubDate>Wed, 07 Mar 2012 21:52:09 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[i have taken view flipper dynamically, i want to set there images in the center after flipping.... i also set image property scale type FITXY,Center but then also it is not working<br/><br/>please tell how to do it]]></content:encoded>
      </item>
    <item>
        <title>jboss clustering</title>
        <link>http://marakana.com/forums/jboss/application_server/649.html</link>
        <author>Akash Kusinga</author>
        <guid isPermaLink="true">http://marakana.com/forums/jboss/application_server/649.html</guid>
        <pubDate>Wed, 07 Mar 2012 20:22:55 -0800</pubDate>
        <category>JBoss - Application Server</category>
        <content:encoded><![CDATA[Hi All,<br/><br/>I want create cluster in jboss on single ip with different ports. Is it possible, if yes can someone please help me how to pass the arguments and which config files i need to edit.<br/><br/>Please help..<br/><br/>Thanks<br/>Akash]]></content:encoded>
      </item>
    <item>
        <title>UpdateService - Getting thread exiting with uncaught exception</title>
        <link>http://marakana.com/forums/android/learning_android_book/647.html</link>
        <author>Sushil Arige</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/647.html</guid>
        <pubDate>Mon, 05 Mar 2012 15:41:22 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi Marko, Thanks for posting Android class online.<br/><br/> While working on updateService I am getting below error msg even though I am running it outside of main thread<br/><br/>UpdateService - Getting thread exiting with uncaught exception, FATAL Exception: Thread-114<br/><br/>--Code --<br/>public int onStartCommand(Intent intent, int flags, int startId) {<br/>		//Log.d(TAG, "OnStarted");<br/>		//running = true;<br/>		new Thread() {<br/>			@Override<br/>			public void run() {<br/><br/>				try {<br/>					List&lt;Status&gt; timeline = twitter.getPublicTimeline();<br/>					for (Status status : timeline) {<br/>						Log.d(TAG, String.format("%s: %s", status.user.name,<br/>								status.text));<br/>					}<br/>					<br/>					try {<br/>						Thread.sleep(DELAY);<br/>					} catch (InterruptedException e) {<br/>						// TODO Auto-generated catch block<br/>						e.printStackTrace();<br/>					}<br/>				} catch (TwitterException e) {<br/>					// TODO Auto-generated catch block<br/>					e.printStackTrace();<br/>				}<br/>			}<br/>		}.start();<br/><br/>------<br/><br/><br/>---<br/>Before that while starting emulator I see below error msg, is it something to do with my network?<br/><br/>I also see NetworkManagementSocketTagger( 91): setKernelCountSet(10009,0) failed with errorno -2<br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>Error : AndroidManifest.xml could not be found</title>
        <link>http://marakana.com/forums/android/examples/645.html</link>
        <author>Adeel Rafiq</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/645.html</guid>
        <pubDate>Mon, 05 Mar 2012 06:14:12 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Hi to all.<br/><br/>I am very very beginner of Android and Learning of it.<br/>I have a very basic issue.<br/>When i create my new project with existing project than i encounter a problem.<br/><br/>"AndroidManifest.xml could not be parsed."<br/><br/>I have one weak search about this problem on internet but i am fail to fine any solution.<br/>Than i found this forum and take a video lecture.<br/><br/>I am very hopeful to find my solution here.<br/><br/>Thanks and Regards<br/>Adeel]]></content:encoded>
      </item>
    <item>
        <title>Error : AndroidManifest.xml could not be parsed</title>
        <link>http://marakana.com/forums/android/learning_android_book/644.html</link>
        <author>Adeel Rafiq</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/644.html</guid>
        <pubDate>Mon, 05 Mar 2012 03:49:23 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi to all.<br/><br/>I am very very beginner of Android and Learning of it.<br/>I have a very basic issue.<br/>When i create my new project with existing project than i encounter a problem.<br/><br/>                 "AndroidManifest.xml could not be parsed."<br/><br/>I have one weak search about this problem on internet but i am fail to fine any solution.<br/>Than i found this forum and take a video lecture.<br/><br/>I am very hopeful to find my solution here.<br/><br/>Thanks and Regards<br/>Adeel]]></content:encoded>
      </item>
    <item>
        <title>2 errors in my Yamba code I can&apos;t figure out</title>
        <link>http://marakana.com/forums/android/learning_android_book/643.html</link>
        <author>Justin Jenkins</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/643.html</guid>
        <pubDate>Thu, 01 Mar 2012 21:36:07 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hello,<br/><br/>I am getting 2 errors in my code and I can't figure out how to get rid of them.  I am getting an error on StatusActivity that says, 'Must implement the inherited abstract method ...onClick(DialogInterface, int).'  I can see in the code you have that method, but Eclipse is not recognizing it as the correct method.  Perhaps due to only passing our method a View argument called 'v'?  Could that be the problem?<br/><br/>Also on: updateButton.setOnClickListener(this);<br/><br/>I get this:<br/><br/>The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the arguments (StatusActivity)<br/><br/>Any ideas on how to resolve these two errors?  I'm 99% sure my code matches that of the book exactly.<br/><br/>Thanks!<br/><br/>-Justin]]></content:encoded>
      </item>
    <item>
        <title>Chapter 7 Problem on Update StatusActivity to Handle Menu Events</title>
        <link>http://marakana.com/forums/android/learning_android_book/642.html</link>
        <author>Haoyu Li</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/642.html</guid>
        <pubDate>Thu, 01 Mar 2012 20:21:16 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hello, when I followed the book to "Update StatusActivity to Handle Menu Events" in Chapter 7 and finished the onOptionsItemSelected method in StatusActivity.java . I got 2 errors and don't know how to fix them. <br/><br/>There's red wave under the 'itemPrefs' in the onOptionsItemSelected method. It showed "itemPrefs cannot be resolved or is not a field" and 5 quick fixes available: <br/><br/>1. Create field 'itemPrefs' in type 'id'<br/>2. Create constant 'itemPrefs' in type 'id'<br/>3. Change to 'buttonUpdate'<br/>4. Change to 'editText1'<br/>5. Change to 'textView1'<br/><br/>I checked the sample source code and found I don't have this: "public static final int itemPrefs=0x7f070003;" in my R.java. <br/><br/>There's the same problem in the onCreateOptionsMenu method, there is red wave under the first "menu" in R.menu.menu, menu. And I still can't find this piece of code in my R.java<br/><br/>     public static final class menu {<br/>        public static final int menu=0x7f060000;<br/>     } <br/><br/><br/>These should be generated in R.java automatically, right? Why I don't have these in my R.java?<br/><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>How to Get Twitter Follower and Following list in android</title>
        <link>http://marakana.com/forums/android/examples/640.html</link>
        <author>Ronak Mehta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/640.html</guid>
        <pubDate>Tue, 28 Feb 2012 01:12:33 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[ i want to fetch twitter follower and following list in android how can i achieve kindly provide me some code for this list contains their full names that i want to display in my application. thanks in advance.]]></content:encoded>
      </item>
    <item>
        <title>getTwitter() fails to get default value from getString fix</title>
        <link>http://marakana.com/forums/android/learning_android_book/638.html</link>
        <author>Daniel Sozdanoski</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/638.html</guid>
        <pubDate>Wed, 22 Feb 2012 04:02:30 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[I was having problems when I enter one or two out of the three preferences (username, password , server) some how the this.prefs.getString("username", "") this.prefs.getString("password", "") and this.prefs.getString("server", "http://yamba.marakana.com/api") doesn't return the default value when I have one or two empty preferences, so I get a null pointer when I try to getTwitter with empty password, username, server.So to fix this I changed the getTwitter method hope this fix the code for this "bug";<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">public synchronized Twitter getTwitter() throws TwitterException {<br/>		String username, password, server;<br/>		if (this.twitter == null) {<br/>			username = (this.prefs.getString("username", ""));<br/>			password = (this.prefs.getString("password", ""));<br/>			server = (this.prefs.getString("server", ""));<br/>			Log.d(TAG,<br/>					String.format("%s %s %s", username, password, server));<br/><br/>			if (username == "" || password == ""<br/>					|| server == "") {<br/>				if (username == "") username = "default";<br/>				if (password == "") password = "default";<br/>				if (server == "") server = "http://yamba.marakana.com/api";<br/><br/>				this.twitter = new Twitter(username, password);<br/>				this.twitter.setAPIRootUrl(server);<br/>				Log.d(TAG,<br/>						String.format("%s %s %s", username, password, server));<br/>			}else {<br/>				this.twitter = new Twitter(username, password);<br/>				this.twitter.setAPIRootUrl(server);<br/>				Log.d(TAG,<br/>						String.format("%s %s %s", username, password, server));<br/>			}<br/>			<br/>		}<br/>		return this.twitter;<br/><br/>	}</pre>
		  </div> ]]></content:encoded>
      </item>
    <item>
        <title>Chapter 8 ClassCastException</title>
        <link>http://marakana.com/forums/android/learning_android_book/633.html</link>
        <author>Paul Mcilwaine</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/633.html</guid>
        <pubDate>Sat, 18 Feb 2012 13:42:35 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[In the UpdaterService class onCreate method the books gets us to link back to the YambaApplication class which we cast from Application to YambaApplication, however in the onCreate method when running a ClassCastException is thrown.<br/><br/>my onCreate method <br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">@Override<br/>	public void onCreate()<br/>	{<br/>		super.onCreate();<br/>		<br/>		this.yamba = (YambaApplication) this.getApplication();<br/>		this.updater = new Updater();<br/>		<br/>		Log.d(TAG, "onCreated");<br/>	}</pre>
		  </div><br/><br/>However doing a similar thing in the StatusActivity class is fine, what have I missed that would cause it to fail during the creation of the thread ?<br/><br/>If I don't cast it I can pull the Application class in so something is wrong with the YambaApplication class as far as I can tell.<br/><br/>YambaApplication class<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">package com.marakana.yamba;<br/><br/>import winterwell.jtwitter.Twitter;<br/>import android.app.Application;<br/>import android.content.SharedPreferences;<br/>import android.content.SharedPreferences.OnSharedPreferenceChangeListener;<br/>import android.preference.PreferenceManager;<br/>import android.text.TextUtils;<br/>import android.util.Log;<br/><br/>public class YambaApplication extends Application implements<br/>	OnSharedPreferenceChangeListener<br/>{<br/><br/>	private static final String TAG = YambaApplication.class.getSimpleName();<br/>	private SharedPreferences prefs;<br/>	private boolean serviceRunning;<br/>	<br/>	public Twitter twitter;<br/>	<br/>	public boolean isServiceRunning()<br/>	{<br/>		return serviceRunning;<br/>	}<br/>	<br/>	public void setServiceRunning(boolean serviceRunning)<br/>	{<br/>		this.serviceRunning = serviceRunning;<br/>	}<br/>	<br/>	@Override<br/>	public void onCreate()<br/>	{<br/>		super.onCreate();<br/>		this.prefs = PreferenceManager.getDefaultSharedPreferences(this);<br/>		this.prefs.registerOnSharedPreferenceChangeListener(this);<br/>		Log.i(TAG, "onCreated");<br/>	}<br/>	<br/>	@Override<br/>	public void onTerminate()<br/>	{<br/>		super.onTerminate();<br/>		Log.i(TAG, "onTerminated");<br/>	}<br/>	<br/>	public synchronized Twitter getTwitter()<br/>	{<br/>		if ( this.twitter == null )<br/>		{<br/>			String username = this.prefs.getString("username","");<br/>			String password = this.prefs.getString("password", "");<br/>			String apiRoot = this.prefs.getString("apiRoot","http://yambda.marakana.com/api");<br/>			<br/>			if ( !TextUtils.isEmpty(username) &amp;&amp; !TextUtils.isEmpty(password) &amp;&amp; <br/>					!TextUtils.isEmpty(apiRoot) )<br/>			{<br/>				this.twitter = new Twitter(username,password);<br/>				this.twitter.setAPIRootUrl(apiRoot);<br/>			}<br/>		}<br/>		<br/>		return this.twitter;<br/>	}<br/><br/>	public synchronized void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) <br/>	{<br/>		this.twitter = null;<br/>	}<br/>	<br/>}<br/></pre>
		  </div>]]></content:encoded>
      </item>
    <item>
        <title>Chapter 13 problem</title>
        <link>http://marakana.com/forums/android/learning_android_book/632.html</link>
        <author>Skander Jabouzi</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/632.html</guid>
        <pubDate>Tue, 14 Feb 2012 08:44:28 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi,<br/><br/>-- updated --<br/><br/>After installing Yamba-8 (chapter 13) on the emulator the intentService start after booting but the updates doesn't work, it looks like the alarm manager not working. But it updates when I use the refresh button.<br/><br/><br/>Any help please.<br/><br/>Thanks.]]></content:encoded>
      </item>
    <item>
        <title>Time elapsed since Status has been posted error.</title>
        <link>http://marakana.com/forums/android/learning_android_book/631.html</link>
        <author>Tudor Luca</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/631.html</guid>
        <pubDate>Tue, 14 Feb 2012 08:42:19 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[I have a very weird problem with the app: it doesn't show the correct time passed since the Status has been posted. And here is the weird part: on the emulator it works perfectly, it shows the correct time elapsed (eg: 10 minutes ago), but on an actual smartphone (I'm using a Samsung Galaxy S2 v2.3.3) it shows the time elapsed since the Status has been inserted into the database. Any ideas why?]]></content:encoded>
      </item>
    <item>
        <title>Monitoring Android app components from web back office plateform</title>
        <link>http://marakana.com/forums/android/examples/630.html</link>
        <author>El torro Chennoufi</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/630.html</guid>
        <pubDate>Tue, 14 Feb 2012 07:14:42 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Hi everybody, <br/><br/>I would like to have some help with a project I'm supposed to develop : <br/>--&gt; A web plateform monitoring the position, the color, the size of the elements of an android application ( buttons, images, tabs ... ) <br/><br/>I don't know how to start <br/>I don't know how to link a mobile app and a web site ! <br/><br/>show me the way <br/>enlight my darkness <br/><br/>I'm totally lost after days of surfing on the web. <br/><br/>May the force be with you.]]></content:encoded>
      </item>
    <item>
        <title>git push size through pre-receive hook on the remote server</title>
        <link>http://marakana.com/forums/git/git/629.html</link>
        <author>Mani S</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/629.html</guid>
        <pubDate>Fri, 10 Feb 2012 08:13:56 -0800</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[I need help on getting the git push size in bytes through the pre-receive hook on the remote server. Basically, if any push exceeds 100MB, I want to throw an exception and stop the push.<br/><br/>Can anyone help me on this? Thanks in advance.]]></content:encoded>
      </item>
    <item>
        <title>MalformedException when sending status message - Please Respond</title>
        <link>http://marakana.com/forums/android/learning_android_book/628.html</link>
        <author>Vikam Boidapu</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/628.html</guid>
        <pubDate>Thu, 09 Feb 2012 03:44:00 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi<br/><br/>when I am following the course part 3 video:<br/>I am getting the following error<br/>Could some one help me why I am getting this error.<br/><br/><br/>Source code : SuperTweetActivity.java <br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>package com.test;<br/><br/>import winterwell.jtwitter.Twitter;<br/>import winterwell.jtwitter.TwitterException;<br/>import android.app.Activity;<br/>import android.app.Dialog;<br/>import android.app.ProgressDialog;<br/>import android.content.Intent;<br/>import android.os.AsyncTask;<br/>import android.os.Bundle;<br/>import android.util.Log;<br/>import android.view.Menu;<br/>import android.view.MenuInflater;<br/>import android.view.MenuItem;<br/>import android.view.View;<br/>import android.view.View.OnClickListener;<br/>import android.widget.Button;<br/>import android.widget.EditText;<br/>import android.widget.Toast;<br/><br/>public class SuperTweetActivity extends Activity implements OnClickListener {<br/><br/>	private static final String TAG = "SuperTweet";<br/>	EditText editStatus;<br/>	Button buttonUpdate;<br/>	Twitter twitter;<br/><br/>	static final int DIALOG_ID = 47;<br/><br/>	// Shared Preference<br/>	// SharedPreferences prefs;<br/><br/>	/** Called when the activity is first created. */<br/>	@Override<br/>	public void onCreate(Bundle savedInstanceState) {<br/>		super.onCreate(savedInstanceState);<br/><br/>		Log.d(TAG, "onCreated called for you");<br/><br/>		try {<br/>			// Debug.startMethodTracing("supertweet.trace");<br/>		} catch (Exception e) {<br/>			// TODO Auto-generated catch block<br/>			e.printStackTrace();<br/>		}<br/><br/>		setContentView(R.layout.status);<br/><br/>		editStatus = (EditText) findViewById(R.id.editStatus);<br/>		buttonUpdate = (Button) findViewById(R.id.buttonUpdate);<br/><br/>		buttonUpdate.setOnClickListener(this);<br/>	}<br/><br/>	@Override<br/>	protected void onStop() {<br/>		try {<br/>			// TODO Auto-generated method stub<br/>			super.onStop();<br/>			// Debug.stopMethodTracing();<br/>		} catch (Exception e) {<br/>			// TODO Auto-generated catch block<br/>			e.printStackTrace();<br/>		}<br/>	}<br/><br/>	public void onClick(View v) {<br/>		try {<br/>			String status = editStatus.getText().toString();<br/>			showDialog(DIALOG_ID);<br/>			new PostToTwitter().execute(status);<br/>			Log.d(TAG, "onClicked");<br/>		} catch (TwitterException e) {<br/>			// TODO Auto-generated catch block<br/>			e.printStackTrace();<br/>		}<br/><br/>	}<br/><br/>	// Menu Stuff<br/><br/>	// Called first time user clicks on the menu button<br/>	@Override<br/>	public boolean onCreateOptionsMenu(Menu menu) {<br/>		// TODO Auto-generated method stub<br/>		MenuInflater inflater = getMenuInflater();<br/>		inflater.inflate(R.menu.menu, menu);<br/>		return true;// super.onCreateOptionsMenu(menu);<br/>	}<br/><br/>	@Override<br/>	protected Dialog onCreateDialog(int id) {<br/>		// TODO Auto-generated method stub<br/>		switch (id) {<br/><br/>		case DIALOG_ID: {<br/>			ProgressDialog dialog = new ProgressDialog(this);<br/>			dialog.setTitle(SuperTweetActivity.this<br/>					.getString(R.string.msgPostingToTwitter));<br/>			dialog.setMessage(SuperTweetActivity.this<br/>					.getString(R.string.msgPleaseWaitWhilePosting));<br/>			dialog.setIndeterminate(true);<br/>			dialog.setCancelable(true);<br/><br/>			return dialog;<br/>		}<br/><br/>		}<br/><br/>		return null;<br/>	}<br/><br/>	@Override<br/>	public boolean onOptionsItemSelected(MenuItem item) {<br/>		switch (item.getItemId()) {<br/>		case R.id.itemPrefs:<br/>			startActivity(new Intent(this, PrefsActivity.class));<br/>			break;<br/>		case R.id.itemServiceStart:<br/>			startService(new Intent(this, UpdaterService.class));<br/>			break;<br/>		case R.id.itemStopService:<br/>			stopService(new Intent(this, UpdaterService.class));<br/>			break;<br/><br/>		}<br/>		// TODO Auto-generated method stub<br/>		return true;<br/>	}<br/><br/>	// Asynchronously posts to twitter<br/>	class PostToTwitter extends AsyncTask&lt;String, Integer, String&gt; {<br/><br/>		// Called to initiate the background activity<br/>		@Override<br/>		protected String doInBackground(String... status) {<br/>			try {<br/>				Log.d(TAG, "Camee..in do in background");<br/>				((SuperTweetApplication) SuperTweetActivity.this<br/>						.getApplication()).getTwitter().setStatus(status[0]);<br/>				return "Sucessfull";<br/>				// return (app.getTwitter().getStatus()).text;<br/><br/>			} catch (TwitterException e) {<br/>				Log.e(TAG, e.toString());<br/>				e.printStackTrace();<br/>				return "Failed to post";<br/>			}<br/><br/>		}<br/><br/>		// Called when there's a status to be updated<br/>		@Override<br/>		protected void onProgressUpdate(Integer... values) {<br/>			super.onProgressUpdate(values);<br/>			// Not used in this case<br/>		}<br/><br/>		// Called once the background activity has completed<br/>		@Override<br/>		protected void onPostExecute(String result) {<br/>			Log.d(TAG, "%s:"+result);<br/>			Toast.makeText(SuperTweetActivity.this, result, Toast.LENGTH_LONG)<br/>					.show();<br/>			dismissDialog(DIALOG_ID);<br/>		}<br/>	}<br/><br/>	// TextWatcher methods<br/>	/*<br/>	 * public void afterTextChanged(Editable statusText) { // &lt;7&gt; int count =<br/>	 * 140 - statusText.length(); // &lt;8&gt;<br/>	 * textCount.setText(Integer.toString(count));<br/>	 * textCount.setTextColor(Color.GREEN); // &lt;9&gt; if (count &lt; 10)<br/>	 * textCount.setTextColor(Color.YELLOW); if (count &lt; 0)<br/>	 * textCount.setTextColor(Color.RED); }<br/>	 */<br/>	public void beforeTextChanged(CharSequence s, int start, int count,<br/>			int after) { // &lt;10&gt;<br/>	}<br/><br/>	public void onTextChanged(CharSequence s, int start, int before, int count) { // &lt;11&gt;<br/>	}<br/><br/>}<br/><br/></pre>
		  </div><br/><br/>Log file: <br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/><br/>02-09 16:22:05.660: D/SuperTweet(565): onClicked<br/>02-09 16:22:05.670: D/SuperTweet(565): Camee..in do in background<br/>02-09 16:22:06.270: E/SuperTweet(565): winterwell.jtwitter.TwitterException: java.net.MalformedURLException: Protocol not found: /statuses/update.json<br/>02-09 16:22:06.270: W/System.err(565): winterwell.jtwitter.TwitterException: java.net.MalformedURLException: Protocol not found: /statuses/update.json<br/>02-09 16:22:06.270: W/System.err(565): 	at winterwell.jtwitter.URLConnectionHttpClient.post(URLConnectionHttpClient.java:223)<br/>02-09 16:22:06.280: W/System.err(565): 	at winterwell.jtwitter.Twitter.post(Twitter.java:1944)<br/>02-09 16:22:06.280: W/System.err(565): 	at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:2555)<br/>02-09 16:22:06.280: W/System.err(565): 	at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:2502)<br/>02-09 16:22:06.280: W/System.err(565): 	at winterwell.jtwitter.Twitter.setStatus(Twitter.java:2274)<br/>02-09 16:22:06.280: W/System.err(565): 	at com.test.SuperTweetActivity$PostToTwitter.doInBackground(SuperTweetActivity.java:163)<br/>02-09 16:22:06.280: W/System.err(565): 	at com.test.SuperTweetActivity$PostToTwitter.doInBackground(SuperTweetActivity.java:1)<br/>02-09 16:22:06.280: W/System.err(565): 	at android.os.AsyncTask$2.call(AsyncTask.java:264)<br/>02-09 16:22:06.290: W/System.err(565): 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)<br/>02-09 16:22:06.290: W/System.err(565): 	at java.util.concurrent.FutureTask.run(FutureTask.java:137)<br/>02-09 16:22:06.290: W/System.err(565): 	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:208)<br/>02-09 16:22:06.290: W/System.err(565): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)<br/>02-09 16:22:06.330: W/System.err(565): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)<br/>02-09 16:22:06.351: W/System.err(565): 	at java.lang.Thread.run(Thread.java:856)<br/>02-09 16:22:06.351: W/System.err(565): Caused by: java.net.MalformedURLException: Protocol not found: /statuses/update.json<br/>02-09 16:22:06.360: W/System.err(565): 	at java.net.URL.&lt;init&gt;(URL.java:178)<br/>02-09 16:22:06.360: W/System.err(565): 	at java.net.URL.&lt;init&gt;(URL.java:127)<br/>02-09 16:22:06.360: W/System.err(565): 	at winterwell.jtwitter.URLConnectionHttpClient.post(URLConnectionHttpClient.java:196)<br/><br/><br/></pre>
		  </div>]]></content:encoded>
      </item>
    <item>
        <title>Android Bootcamp 2012: A new video tutorial every weekday</title>
        <link>http://marakana.com/forums/android/general/627.html</link>
        <author>Max Walker</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/627.html</guid>
        <pubDate>Mon, 06 Feb 2012 13:24:15 -0800</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Two quick announcements. First off, last week we kicked off <a href="http://marakana.com/s/android_bootcamp_series_2012_video_tutorial,1017/index.html" rel="nofollow">Android Bootcamp Series 2012</a> - the definitive guide to getting started with Android development. We'll be releasing a new video tutorial every weekday. <br/><br/>Secondly, we've recently launched an alpha version of <a href="http://marakana.com/s/" rel="nofollow">Marakana Stream</a>, an easier way (hopefully) for you to browse through our ever-expanding library of educational content on open source development.<br/><br/><strong>Summary:</strong> go check out <a href="http://marakana.com/s/android_bootcamp_series_2012_video_tutorial,1017/index.html" rel="nofollow">Android Bootcamp Series 2012</a> at <a href="http://marakana.com/s/" rel="nofollow">Marakana Stream</a><br/><br/><img src="http://marakana.com/static/techtv/images/AB12.jpg" alt=""/><br/>]]></content:encoded>
      </item>
    <item>
        <title>how to integrate sharepoint website with android client application</title>
        <link>http://marakana.com/forums/android/learning_android_book/626.html</link>
        <author>Basant Mohamed</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/626.html</guid>
        <pubDate>Sat, 04 Feb 2012 13:07:12 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Dear all i need a help please <br/><br/>I have a sharepoint website and the task is to make an android client application to integrate with this website ,<br/>this application will just view the content of the website from the database and add comment feedback.<br/><br/>i don't know what is the steps to do this task ,i just want steps to follow to start this app<br/><br/>thank you all waiting your answers]]></content:encoded>
      </item>
    <item>
        <title>Can&apos;t register on http://yamba.marakana.com/</title>
        <link>http://marakana.com/forums/android/learning_android_book/625.html</link>
        <author>Jonathan Bullock</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/625.html</guid>
        <pubDate>Sat, 04 Feb 2012 08:26:45 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[When trying to register I get the following:<br/><br/>Database error<br/><br/>An important error occured, probably related to email setup. Check logfiles for more info..]]></content:encoded>
      </item>
    <item>
        <title>Another night another problem w/ PreferencesActivity implementation</title>
        <link>http://marakana.com/forums/android/learning_android_book/620.html</link>
        <author>Ethan Behar</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/620.html</guid>
        <pubDate>Tue, 31 Jan 2012 20:31:04 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hey all,<br/><br/>So, tonight I implemented the menu bar and preferencesActivity. The<br/>app works great it still updates the status to yamba.marakana.com but<br/>one thing stopped working. On the twitter update thread the<br/>onPostExecute function Marko made would pop up a toast box that would<br/>say if the status fail or succed. This is the part that broke for me<br/>and its very frustating because none of the code I implemented<br/>changed this(atleast I don't think it does). Now I did change this<br/>code around a little bit becuase orginially the toast text would be<br/>the status i wrote or "Failure to Post". So I changed it to say<br/>"Successful Post!" Anyways I'll post my code, I'll still be looking<br/>into this issue tonight but the help of others is always welcomed!<br/>Thanks alot marakana community!<br/><br/>Thread Code: The onPostExecute(String result) function is the one that stopped displaying the toast box.<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>	class PostToTwitter extends AsyncTask&lt;String, Integer, String&gt; {<br/><br/>		@Override<br/>		protected String doInBackground(String... statuses) {<br/>			try {<br/>				winterwell.jtwitter.Status status = twitter<br/>						.updateStatus(statuses[0]);<br/>				return status.text;<br/>			} catch (TwitterException e) {<br/>				Log.e(TAG, e.toString());<br/>				e.printStackTrace();<br/>				return "Failed to post!";<br/>			}<br/>		}<br/><br/>		@Override<br/>		protected void onProgressUpdate(Integer... values) {<br/>			super.onProgressUpdate(values);<br/>		}<br/><br/>		@Override<br/>		protected void onPostExecute(String result) {<br/>			String successResult = "Successful Post!";<br/>			if (result == "Failed to post!") {<br/>				Toast.makeText(StatusActivity.this, result, Toast.LENGTH_LONG)<br/>						.show();<br/>			} else {<br/>				Toast.makeText(StatusActivity.this, successResult,<br/>						Toast.LENGTH_LONG).show();<br/>			}<br/><br/>		}<br/>	}<br/><br/></pre>
		  </div><br/><br/>Twitter code and new OnClick function:<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>	// get Twitter Info<br/>	private Twitter getTwitter() {<br/>		if (twitter == null) {<br/>			String username = preferences.getString("username", "");<br/>			String password = preferences.getString("password", "");<br/>			String APIRoot = preferences.getString("APIRoot",<br/>					"http://yamba.marakana.com/api");<br/>			twitter = new Twitter(username, password);<br/>			twitter.setAPIRootUrl(APIRoot);<br/>		}<br/>		return twitter;<br/>	}<br/>	<br/>	//reset twitter info when username/password is changed in preferencesActivity<br/>	public void onSharedPreferenceChanged(SharedPreferences preferences, String key){<br/>		twitter = null;<br/>	}<br/><br/>	public void onClick(View inView) {<br/>		try{<br/>			getTwitter().setStatus(editText.getText().toString());<br/>		} catch (TwitterException e) {<br/>			Log.d(TAG, "Twitter setStatus failed: " + e);<br/>		}<br/>	}<br/></pre>
		  </div><br/><br/>Menu Code<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>	// menu options stuff<br/>	@Override<br/>	public boolean onCreateOptionsMenu(Menu menu) {<br/>		MenuInflater inflater = getMenuInflater();<br/>		inflater.inflate(R.menu.menu, menu);<br/>		return true;<br/>	}<br/><br/>	@Override<br/>	public boolean onOptionsItemSelected(MenuItem item) {<br/>		switch (item.getItemId()) {<br/>		case R.id.itemPreferences:<br/>			startActivity(new Intent(this, PreferencesActivity.class));<br/>			break;<br/>		}<br/>		return true;<br/>	}<br/></pre>
		  </div><br/><br/>Class definition and onCreate method:<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>public class StatusActivity extends Activity implements OnClickListener,<br/>		TextWatcher, OnSharedPreferenceChangeListener {<br/>	private static final String TAG = "StatusActivity";<br/>	SharedPreferences preferences;<br/>	EditText editText;<br/>	Button btnUpdate;<br/>	Twitter twitter;<br/>	TextView textCount;<br/><br/>	@Override<br/>	public void onCreate(Bundle savedInstanceState) {<br/>		super.onCreate(savedInstanceState);<br/>		setContentView(R.layout.status);<br/>		// find views in stauts.xml<br/>		// tell button to listen for its click<br/>		editText = (EditText) findViewById(R.id.editText);<br/>		btnUpdate = (Button) findViewById(R.id.buttonUpdate);<br/>		btnUpdate.setOnClickListener(this);<br/>		textCount = (TextView) findViewById(R.id.textCounter);<br/>		textCount.setText(Integer.toString(140));<br/>		textCount.setTextColor(Color.GREEN);<br/>		editText.addTextChangedListener(this);<br/><br/>		preferences = PreferenceManager.getDefaultSharedPreferences(this);<br/>		preferences.registerOnSharedPreferenceChangeListener(this);<br/>	}<br/></pre>
		  </div>]]></content:encoded>
      </item>
    <item>
        <title>how to integrate sharepoint website with android client application</title>
        <link>http://marakana.com/forums/android/examples/619.html</link>
        <author>Basant Mohamed</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/619.html</guid>
        <pubDate>Tue, 31 Jan 2012 13:59:50 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Dear all i need a help please <br/><br/>I have a sharepoint website and the task is to make an android client application to integrate with this website ,<br/>this application will just view the content of the website from the database and add comment feedback.<br/><br/>i don't know what is the steps to do this task ,i just want steps to follow to start this app<br/><br/>thank you all waiting your answers ]]></content:encoded>
      </item>
    <item>
        <title>How to make Video call from Android app?</title>
        <link>http://marakana.com/forums/android/general/618.html</link>
        <author>Som Rout</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/618.html</guid>
        <pubDate>Mon, 30 Jan 2012 23:23:45 -0800</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Hi,<br/><br/>I thinking of an app where user can initiate video call from the app. Or is there any other options through which i can integrate the video chat functionality in my app ?<br/><br/><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>Chp6: Implemented TextWatcher now App crashes</title>
        <link>http://marakana.com/forums/android/learning_android_book/617.html</link>
        <author>Ethan Behar</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/617.html</guid>
        <pubDate>Mon, 30 Jan 2012 20:06:26 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi all,<br/><br/>I'm going through the chapter 6 tutorial and when ever I select the textView my app crashes :(.<br/>I just implemented the part where the book implements the number counter displaying red text if count  &lt; 0 yellow text if count &lt; 10 and green for anything about 10 characters. I'm not sure if this has to do with it but when I wrote the StatusActivity2 my posts failed, another :(. Anyone have any idea whats going on? My code is posted please help!<br/><br/>StatusActivity.java<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>package edu.uat.ethanbehar.yamba;<br/><br/>import winterwell.jtwitter.Twitter;<br/>import winterwell.jtwitter.TwitterException;<br/>import android.app.Activity;<br/>import android.graphics.Color;<br/>import android.os.Bundle;<br/>import android.os.AsyncTask;<br/>import android.text.Editable;<br/>import android.text.TextWatcher;<br/>import android.util.Log;<br/>import android.view.View;<br/>import android.view.View.OnClickListener;<br/>import android.widget.Button;<br/>import android.widget.EditText;<br/>import android.widget.TextView;<br/>import android.widget.Toast;<br/><br/>public class StatusActivity extends Activity implements OnClickListener,<br/>		TextWatcher {<br/>	private static final String TAG = "StatusActivity";<br/>	EditText editText;<br/>	Button btnUpdate;<br/>	Twitter twitter;<br/>	TextView textCount;<br/><br/>	@Override<br/>	public void onCreate(Bundle savedInstanceState) {<br/>		super.onCreate(savedInstanceState);<br/>		setContentView(R.layout.status);<br/>		// find views in stauts.xml<br/>		// tell button to listen for its click<br/>		editText = (EditText) findViewById(R.id.editText);<br/>		btnUpdate = (Button) findViewById(R.id.buttonUpdate);<br/>		btnUpdate.setOnClickListener(this);<br/>		textCount = (TextView) findViewById(R.id.editText);<br/>		textCount.setText(Integer.toString(140));<br/>		textCount.setTextColor(Color.GREEN);<br/>		editText.addTextChangedListener(this);<br/><br/>		twitter = new Twitter("EduxB", "*********");<br/>		twitter.setAPIRootUrl("http://yamba.marakana.com/api");<br/>	}<br/><br/>	public void onClick(View inView) {<br/>		String status = editText.getText().toString();<br/>		new PostToTwitter().execute(status);<br/>		Log.d(TAG, "onClicked");<br/>	}<br/>	<br/>	//TextWatcher Methods<br/>	public void afterTextChanged(Editable statusText) {<br/>		int count = 140 - statusText.length();<br/>		textCount.setText(Integer.toString(count));<br/>		textCount.setTextColor(Color.GREEN);<br/>		if(count &lt; 10)<br/>			textCount.setTextColor(Color.YELLOW);<br/>		if(count &lt; 0)<br/>			textCount.setTextColor(Color.RED);<br/>	}<br/>	<br/>	public void beforeTextChanged(CharSequence s, int start, int count, int after){<br/>	}<br/>	<br/>	public void onTextChanged(CharSequence s, int start, int before, int count){<br/>	}<br/><br/>	// Asynchronously posts to twitter<br/>	class PostToTwitter extends AsyncTask&lt;String, Integer, String&gt; {<br/><br/>		@Override<br/>		protected String doInBackground(String... statuses) {<br/>			try {<br/>				winterwell.jtwitter.Status status = twitter<br/>						.updateStatus(statuses[0]);<br/>				return status.text;<br/>			} catch (TwitterException e) {<br/>				Log.e(TAG, e.toString());<br/>				e.printStackTrace();<br/>				return "Failed to post!";<br/>			}<br/>		}<br/>		@Override<br/>		protected void onProgressUpdate(Integer... values) {<br/>			super.onProgressUpdate(values);<br/>		}<br/><br/>		@Override<br/>		protected void onPostExecute(String result) {<br/>			Toast.makeText(StatusActivity.this, result, Toast.LENGTH_LONG)<br/>					.show();<br/>		}<br/>	}<br/>}<br/></pre>
		  </div><br/><br/>status.xml<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>&lt;?xml version="1.0" encoding="utf-8"?&gt;<br/>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"<br/>    android:layout_width="fill_parent"<br/>    android:layout_height="fill_parent"<br/>    android:orientation="vertical" &gt;<br/><br/>    &lt;TextView<br/>        android:layout_width="fill_parent"<br/>        android:layout_height="wrap_content"<br/>        android:gravity="center"<br/>        android:textSize="30sp"<br/>        android:layout_margin="10dp"<br/>        android:text="@string/titleStatus"&gt;<br/>    &lt;/TextView&gt;<br/>    &lt;TextView<br/>        android:layout_width="wrap_content"<br/>        android:layout_height="wrap_content"<br/>        android:gravity="center"<br/>        android:id="@+id/textCounter"<br/>        android:text="000"<br/>        android:layout_margin="10dp"&gt;<br/>    &lt;/TextView&gt;<br/>    &lt;EditText<br/>        android:layout_width="fill_parent"<br/>        android:layout_height="fill_parent"<br/>        android:layout_weight="1"<br/>		android:hint="@string/hintText"<br/>		android:id="@+id/editText"<br/>		android:gravity="top|center_horizontal"&gt;<br/>    &lt;/EditText&gt;<br/>	&lt;Button<br/>	    android:layout_width="fill_parent"<br/>	    android:layout_height="wrap_content"<br/>	    android:text="@string/buttonUpdate"<br/>	    android:textSize="20sp"<br/>	    android:id="@+id/buttonUpdate"&gt;<br/>	&lt;/Button&gt;<br/>&lt;/LinearLayout&gt;<br/></pre>
		  </div><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>yamba.marakana.com not available?</title>
        <link>http://marakana.com/forums/android/learning_android_book/616.html</link>
        <author>Arch Stanton</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/616.html</guid>
        <pubDate>Sat, 28 Jan 2012 09:25:22 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Is yamba.marakana.com up? <br/>I cannot access it from my browser and checksite.us cannot access it.]]></content:encoded>
      </item>
    <item>
        <title>Android Internals</title>
        <link>http://marakana.com/forums/android/examples/613.html</link>
        <author>Sudha Setty</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/613.html</guid>
        <pubDate>Wed, 25 Jan 2012 09:27:10 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Hi <br/><br/>I am working in android frameworks development and I was given a task to turn on the wi-fi in the phone upon an application launch.<br/><br/> Please tell me how can I identify that the application is launched ( loaded in memory) in android. I need to identify the apps that are use INTERNET( have Internet permission) for that I need to know that the application in launched in the phone. <br/><br/>Thank you in advance.]]></content:encoded>
      </item>
    <item>
        <title>Changing vertical scrollbar width.</title>
        <link>http://marakana.com/forums/android/examples/610.html</link>
        <author>Tom Brett</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/610.html</guid>
        <pubDate>Sun, 22 Jan 2012 15:13:17 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Hi,<br/><br/>I have been looking all over the internet trying to find <br/>information on how to change the vertical scroll bar width (to make it wider).<br/>that comes with the file browser on android for archos 7 tablet.<br/>Unfortunately I've come up blank with everything I tried looking for.<br/><br/>If someone could help me figure out how to do this, that would be awesome :-)<br/><br/>NB: I am a complete newbie to android/archos/java.<br/>so Any help would be highly thankful.<br/><br/>Regards,<br/>Tom.<br/><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>Sharing to social network</title>
        <link>http://marakana.com/forums/android/examples/609.html</link>
        <author>Karthik Rao</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/609.html</guid>
        <pubDate>Wed, 18 Jan 2012 02:41:37 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[hi........Thank for giveng good blog.........can u explain us about sharing to email,facebook,twitter etc..]]></content:encoded>
      </item>
    <item>
        <title>Chapter 9 problem - CONFLICT_IGNORE error</title>
        <link>http://marakana.com/forums/android/learning_android_book/601.html</link>
        <author>Ivan Djermanovic</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/601.html</guid>
        <pubDate>Mon, 09 Jan 2012 05:28:44 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hello,<br/>I am currently at the Chapter 9 of this very useful book, and have encountered a first problem I can not solve on my own or with the help of the Internet. At the end of that Chapter 9, it seems there are no errors but one - in the StatusData.java class, we insert the code given in the book. The problem is in line<br/><br/>db.insertWithOnConflict(TABLE, null, values, SQLiteDatabase.CONFLICT_IGNORE);<br/><br/>in the insertOrIgnore() method. It underlines the CONFLICT_IGNORE constant stating "CONFLICT_IGNORE cannot be resolved or is not a field".<br/><br/>I just copied the code as it is and pasted it into the corresponding class in Eclipse, so all my SQLiteDatabase imports are as they should be. I really have no idea why this is a problem, so if anyone has any thoughts on this, I'd greatly appreciate them. Or even a substitute for this...<br/><br/>Thank you in advance, Ivan.]]></content:encoded>
      </item>
    <item>
        <title>HTML5: Devloper Journal</title>
        <link>http://marakana.com/forums/html5/general/600.html</link>
        <author>Don Smith</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/600.html</guid>
        <pubDate>Sat, 07 Jan 2012 20:47:52 -0800</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[Hello everyone,<br/><br/>I'm in the process of learning all of this stuff, and have put together an example showing what I've learned so far:<br/>http://www.envartist.com/HTML5/learningHTML5/KAPOW/<br/><br/>I'm also in the process of documenting my learning.<br/>http://nfrrtycmplx.blogspot.com<br/><br/>Would greatly appreciate any suggestions and feedback that you all may have for doing this better/faster.  Also, if there are any false assumptions I'm making in my documentation, your feedback on that would be greatly appreciated.<br/><br/>Thanks in advance,<br/>Don Smith]]></content:encoded>
      </item>
    <item>
        <title>activity is not lunching on emulator</title>
        <link>http://marakana.com/forums/android/learning_android_book/599.html</link>
        <author>Taqi Alam</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/599.html</guid>
        <pubDate>Sat, 07 Jan 2012 10:37:49 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[hi there,<br/>i have installed the whole IDE of android SDK(sr16)installer.exe ,java 6(32bit) ADT(sr16),Eclipse(helio 3.6.2 32bit) etc everything setup completely in like tutorial .<br/>i make the first app of helloworld but when i start or run the HelloworldActivity.java<br/>then<br/>it automatically start the new emulator 5556 instead of already running emulator 5554.<br/><br/>and when the emulator 5556 start then the message appear on console like "activity disconnected etc the error snippet is ",<br/>[2012-01-07 09:21:39 - Hello] ------------------------------<br/>[2012-01-07 09:21:39 - Hello] Android Launch!<br/>[2012-01-07 09:21:39 - Hello] adb is running normally.<br/>[2012-01-07 09:21:39 - Hello] Performing com.example.Hel.HelloActivity activity launch<br/>[2012-01-07 09:21:39 - Hello] Automatic Target Mode: launching new emulator with compatible AVD 'phone'<br/>[2012-01-07 09:21:39 - Hello] Launching a new emulator with Virtual Device 'phone'<br/>[2012-01-07 09:22:15 - Emulator] emulator: WARNING: Unable to create sensors port: Unknown error<br/>[2012-01-07 09:22:16 - Hello] New emulator found: emulator-5554<br/>[2012-01-07 09:22:16 - Hello] Waiting for HOME ('android.process.acore') to be launched...<br/>[2012-01-07 09:23:36 - Hello] emulator-5554 disconnected! Cancelling 'com.example.Hel.HelloActivity activity launch'!<br/><br/><br/>now what should i do?<br/>]]></content:encoded>
      </item>
    <item>
        <title>How to Turn Off and Turn On the Google tv Programatically?</title>
        <link>http://marakana.com/forums/android/examples/597.html</link>
        <author>Ganesh Vadlakonda</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/597.html</guid>
        <pubDate>Fri, 06 Jan 2012 03:42:10 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[HI,<br/><br/>I am working on Google tv Application.<br/>I would like to turn on a tv daily Morning and turn of the Tv Night time at specified Time periods Programatically.<br/><br/>Is it Possible to turn off and turn on the Google tv programatically.<br/>Please do the needfull.<br/><br/><br/><br/>Thanks in advance<br/><br/><br/><br/>regards,<br/>Ganesh V]]></content:encoded>
      </item>
    <item>
        <title>Nevermind</title>
        <link>http://marakana.com/forums/android/learning_android_book/596.html</link>
        <author>Richard Pfisterer</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/596.html</guid>
        <pubDate>Wed, 04 Jan 2012 11:53:58 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[]]></content:encoded>
      </item>
    <item>
        <title>section headers in android listview alphabetical type</title>
        <link>http://marakana.com/forums/android/general/594.html</link>
        <author>Manas Prasher</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/594.html</guid>
        <pubDate>Mon, 02 Jan 2012 06:56:02 -0800</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[I have tried to search many times this on net but no easy solution is available in this case the solution is quite complex so i want to add the section headers in the list view of android in alphabetic order like in the native app of contacts in android is there any type of new built in adapter for creating sections in an easy manner please tell me as i am beginner with android i want to know this ]]></content:encoded>
      </item>
    <item>
        <title>How to restore old file versions?</title>
        <link>http://marakana.com/forums/git/git/593.html</link>
        <author>Abdo K</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/593.html</guid>
        <pubDate>Mon, 02 Jan 2012 05:14:12 -0800</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[Hi,<br/>I am new to Git. <br/>I have read a small tutorial and wish to know how to restore a file to its previous version, i.e, undo some editing.<br/>Thanks.]]></content:encoded>
      </item>
    <item>
        <title>Extract a kernel ?</title>
        <link>http://marakana.com/forums/android/examples/592.html</link>
        <author>Paoli Yoann</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/592.html</guid>
        <pubDate>Sun, 01 Jan 2012 11:20:30 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Hello i have a chinese phone S810 with a mtk6573 processor on it. But i don't know the name of the oem and its quite impossible to find the original rom. I was wondering if its possible to root a phone and change a phone rom without the original is that too risky ?<br/><br/>I was wondering (maybe its a stupid question ) if its possible to extract fromp the phone the original rom ? <br/><br/>Thanks a lot for reading me.<br/><br/>Best wishes for 2012 btw.]]></content:encoded>
      </item>
    <item>
        <title>learning android book is best</title>
        <link>http://marakana.com/forums/android/learning_android_book/591.html</link>
        <author>Taqi Alam</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/591.html</guid>
        <pubDate>Sat, 31 Dec 2011 10:42:32 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[hi Marko, <br/> i follow your book"learning android" that is great book for me , i am on chapter 6 till now its best for me and status activity is working.<br/><br/>but my main question is that by  having little programming background in java, can i be good android developer? <br/><br/>is it necessary to have grip on java?<br/><br/>please tell some good resources for java also  ]]></content:encoded>
      </item>
    <item>
        <title>how to paste a project into eclipse</title>
        <link>http://marakana.com/forums/android/learning_android_book/590.html</link>
        <author>Taqi Alam</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/590.html</guid>
        <pubDate>Sat, 31 Dec 2011 09:22:00 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[hello marko,<br/>i want to ask that i want to paste a project into 'project explorer' but when i paste into project explorer there is a message that "destination folder must be accessible" ]]></content:encoded>
      </item>
    <item>
        <title>new emulator automatically run</title>
        <link>http://marakana.com/forums/android/learning_android_book/585.html</link>
        <author>Taqi Alam</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/585.html</guid>
        <pubDate>Fri, 30 Dec 2011 10:32:19 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[hi marko,<br/>when i run my app then the instead of run on existing AVD,the  following messages are appear like <br/>Automatic Target Mode: launching new emulator with compatible AVD 'my_phone'<br/>Launching a new emulator with Virtual Device 'my_phone'<br/> and the app is also do not run properly when this happen, so what should i do?<br/><br/>i also tell about the recommended scale size of emulator while start to be fit on screen?<br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>Git Repositories on Server</title>
        <link>http://marakana.com/forums/git/git/583.html</link>
        <author>Rohini Kambde</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/583.html</guid>
        <pubDate>Thu, 29 Dec 2011 01:47:59 -0800</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[[b]can anyone please let me know that how to set a git server ,because i want to run it locally instead of running it globally .. and even  if we set up   a server can multiple persons work on that ... and let me know whether the changes made by all of them reflected in to the server or not ...?]]></content:encoded>
      </item>
    <item>
        <title>i try to create sqlite database  and try  access to it , but there is an error. help</title>
        <link>http://marakana.com/forums/android/examples/582.html</link>
        <author>Ahmed Eltaher</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/582.html</guid>
        <pubDate>Tue, 27 Dec 2011 00:55:03 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[i try to create sqlite database  and access to it , but there is and error can any one run my code and help me , it is very simple code example.<br/><br/><br/><br/>my code here is running on Android 4.0<br/><a href="http://www.mediafire.com/?t12oif6w4ibu3gz" rel="nofollow">http://www.mediafire.com/?t12oif6w4ibu3gz</a>]]></content:encoded>
      </item>
    <item>
        <title>copying text from notepad and paste in other notepad</title>
        <link>http://marakana.com/forums/android/examples/571.html</link>
        <author>Venkatesh Kolla</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/571.html</guid>
        <pubDate>Thu, 15 Dec 2011 21:54:26 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[hi,<br/>    i am new to android,can any one tell me how to copy and past data for notepad to other notepad...<br/><br/>thanks<br/>kolla]]></content:encoded>
      </item>
    <item>
        <title>Problems to build Magnify tool on my map</title>
        <link>http://marakana.com/forums/android/learning_android_book/568.html</link>
        <author>User Sg</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/568.html</guid>
        <pubDate>Tue, 13 Dec 2011 07:20:32 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[I have developed a map-based (GIS) app for Android. I am trying to build Magnify tool. I tried the following two approaches:<br/><br/>1) Using "View Switcher" - <br/><br/>When I add two MapView objects to the ViewSwitcher, I get the following exception:<br/><br/>java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.<br/><br/>Can I have more than 1 MapView objects in a single Activity?<br/><br/>2) Using "Canvas" -<br/><br/>I draw rectangle using Canvas on top of a MapView. However, I can only assign a Bitmap image to it. Is there a way I can define one of the MapViews as an image to accomplish my goal?]]></content:encoded>
      </item>
    <item>
        <title>TimelineActivity - NullPointerException</title>
        <link>http://marakana.com/forums/android/learning_android_book/567.html</link>
        <author>Andrew Fishbaugh</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/567.html</guid>
        <pubDate>Sat, 10 Dec 2011 19:38:49 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[I can't for the life of me figure out what is causing my error.  I am still learning, but it seems the program is looking for the username preference value but has no link to the value, so it throws the exception? not sure... here is the log.txt  I'm sure it's something simple that I just don't get quite yet.  Thanks.<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">12-10 22:29:02.088: I/YambaApplication(350): onCreated<br/>12-10 22:29:02.617: D/AndroidRuntime(350): Shutting down VM<br/>12-10 22:29:02.617: W/dalvikvm(350): threadid=1: thread exiting with uncaught exception (group=0x4001d800)<br/>12-10 22:29:02.717: E/AndroidRuntime(350): FATAL EXCEPTION: main<br/>12-10 22:29:02.717: E/AndroidRuntime(350): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.rud.yamba/com.rud.yamba.TimelineActivity}: java.lang.NullPointerException<br/>12-10 22:29:02.717: E/AndroidRuntime(350): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)<br/>12-10 22:29:02.717: E/AndroidRuntime(350): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)<br/>12-10 22:29:02.717: E/AndroidRuntime(350): 	at android.app.ActivityThread.access$2300(ActivityThread.java:125)<br/>12-10 22:29:02.717: E/AndroidRuntime(350): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)<br/>12-10 22:29:02.717: E/AndroidRuntime(350): 	at android.os.Handler.dispatchMessage(Handler.java:99)<br/>12-10 22:29:02.717: E/AndroidRuntime(350): 	at android.os.Looper.loop(Looper.java:123)<br/>12-10 22:29:02.717: E/AndroidRuntime(350): 	at android.app.ActivityThread.main(ActivityThread.java:4627)<br/>12-10 22:29:02.717: E/AndroidRuntime(350): 	at java.lang.reflect.Method.invokeNative(Native Method)<br/>12-10 22:29:02.717: E/AndroidRuntime(350): 	at java.lang.reflect.Method.invoke(Method.java:521)<br/>12-10 22:29:02.717: E/AndroidRuntime(350): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)<br/>12-10 22:29:02.717: E/AndroidRuntime(350): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)<br/>12-10 22:29:02.717: E/AndroidRuntime(350): 	at dalvik.system.NativeStart.main(Native Method)<br/>12-10 22:29:02.717: E/AndroidRuntime(350): Caused by: java.lang.NullPointerException<br/>12-10 22:29:02.717: E/AndroidRuntime(350): 	at com.rud.yamba.TimelineActivity.onCreate(TimelineActivity.java:40)<br/>12-10 22:29:02.717: E/AndroidRuntime(350): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)<br/>12-10 22:29:02.717: E/AndroidRuntime(350): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)<br/>12-10 22:29:02.717: E/AndroidRuntime(350): 	... 11 more<br/>12-10 22:29:08.207: I/Process(350): Sending signal. PID: 350 SIG: 9<br/></pre>
		  </div>]]></content:encoded>
      </item>
    <item>
        <title>Android Emulator Proxy Settings</title>
        <link>http://marakana.com/forums/android/examples/564.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/564.html</guid>
        <pubDate>Thu, 08 Dec 2011 08:41:52 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[I've been struggling with getting the emulator to work behind the firewalls of certain organizations. Here's a reprint of email thread between Andrej Kostresevic and Ken Jones that could help others:<br/><br/><br/>Yamba Proxy settings<br/><br/><a href="http://marakana.com/expert/andrej_kostresevic,8878.html" rel="nofollow">Andrej Kostresevic</a><br/>Oct 20, 2011<br/><br/>Any tips on easy emulator setup for networks that have a proxy? I have<br/>a workaround, so not urgent, but I'd like to know what your strategy<br/>for dealing with this is.<br/><br/><br/><a href="http://marakana.com/e/2" rel="nofollow">Marko Gargenta</a><br/>Oct 20, 2011<br/><br/>Ugh, depends to type of proxy. Try setting it up in Settings/Mobile Networks/TelKila/proxy settings.<br/><br/><br/><br/><a href="http://marakana.com/expert/andrej_kostresevic,8878.html" rel="nofollow">Andrej Kostresevic</a><br/>Oct 21, 2011<br/><br/>to me, Kenneth, Aleksandar <br/>Thanks, I'll try. Someone also found this, a way to set the proxy<br/>programmatically:<br/>http://www.jguru.com/faq/view.jsp?EID=9920<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>System.getProperties().put("proxySet", "true");<br/>System.getProperties().put("proxyPort", "8080");<br/>System.getProperties().put("proxyHost", "my proxy name ");<br/></pre>
		  </div><br/><br/><a href="http://marakana.com/expert/ken_jones,5313.html" rel="nofollow">Ken Jones</a><br/>Oct 21<br/><br/>This roughly is how I handle it in classes where we're behind a proxy server. Though I've not set the "proxySet" property, and it still works. Actually, the code I use is:<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>System.setProperty("http.proxyHost", "my.proxyhost.com");<br/>System.setProperty("http.proxyPort", "1234");<br/></pre>
		  </div><br/>I've tried several other approaches to try getting through a proxy, none of which worked:<br/><br/>* Starting an emulator from the command line with "emulator -http-proxy"? No effect. And that still doesn't address getting the app to work with a proxy server when run on a real device.<br/><br/>* Setting the Mobile Networks/Telkila proxy settings? I couldn't get that to work, either. And if I recall correctly, trying to tweak proxy setting on my real Nexus 1 seemed to enable the browser application, but Yamba still couldn't get through. It was as though the mobile network system settings were getting propagated only to some system applications that knew how to use them.<br/><br/>* Querying the settings from android.net.Proxy and attempting to use those to set my app's system properties for proxy access? Useless. The methods on the android.net.Proxy class are deprecated. I wrote an app to query and report them, and when I ran it on my Nexus 1, the methods reported no valid information.<br/><br/>Bottom line: I've not found a programmatic hook into any system-wide proxy manager. And so I continue to set the system properties programmatically in my app as needed. If anyone else finds a better approach, please let me know.<br/><br/><br/><a href="http://marakana.com/expert/andrej_kostresevic,8878.html" rel="nofollow">Andrej Kostresevic</a><br/>Oct 21, 2011<br/><br/>Thanks Ken, this matches my findings. So the System.setProperty is the<br/>strategy that works best for now. I'll update you if I find anything<br/>better.<br/>]]></content:encoded>
      </item>
    <item>
        <title>Get Discovered! Competition Seeks to Find Next Big Android Game</title>
        <link>http://marakana.com/forums/android/general/560.html</link>
        <author>Alan Li</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/560.html</guid>
        <pubDate>Fri, 02 Dec 2011 15:56:51 -0800</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Hooked Media today announces the launch of a competition for Android game developers that gives them a unique chance to win both wide scale distribution through Best Buy's App Discovery Center and seed funding from Trinity Ventures, a top Silicon Valley venture capital firm. They'll also receive a $5k online advertisement package from Venturebeat, one of the industry's most widely-read blogs.<br/><br/>The competition is open to all game developers, who will first submit their games by integrating with Hooked Media’s new discovery platform at <a href="http://www.hookedmediagroup.com/contest." rel="nofollow">http://www.hookedmediagroup.com/contest.</a> During the first phase of the competition the platform will track metrics including user rating, play-time, and installations based on recommendations. The metrics will be used to determine the finalists. The judges will analyze finalists that graduate from the online competition.<br/><br/>Judging the final competition will be Bradley Horowitz, VP of Product, Google+; Gus Tai, General Partner at Trinity Ventures; Dean Takahashi, lead writer for GamesBeat at VentureBeat; and Margita Labhard, Director of Digital Business Models at Best Buy.<br/>By integrating into the platform, developers will be able to increase game plays and gamers will easily find new games based on their actual gaming preferences rather than by scouring the marketplace, producing positive benefits for all participating parties. The “Hooked” app is free and can be downloaded in the Android marketplace.<br/><br/>Semi-finalists will receive distribution from Best Buy, increased game downloads and plays as well as recognition among top leaders in the game industry. The aim of the competition is to give developers an opportunity to get discovered among the 200,000+ games currently on Android. Developers can submit their games between November 21st, 2011 – January 6th, 2012. Interested parties can obtain more information at <a href="http://www.hookedmediagroup.com/contest." rel="nofollow">http://www.hookedmediagroup.com/contest.</a> The competition culminates in an event in February, 2012.<br/><br/>Finalists will be featured at an event hosted at Dolores Labs, an incubator space in the Mission district of San Francisco. The developers will be given the chance to pitch their games to the audience and judges. There will be a live evaluation of each game by the panelists of judges. The winner will be announced at the event.<br/><br/>About Hooked Media: Hooked Media Group is a mobile platform that takes the guessing out of game discovery. Through a unique combination of user preferences, social mapping and game play statistics, Hooked provides players with personalized game recommendations. Developers benefit through increased game plays and exposure, player feedback and key measurement data. Our goal is to intelligently connect mobile players with their favorite games. <a href="http://www.hookedmediagroup.com/contest" rel="nofollow">http://www.hookedmediagroup.com/contest</a>]]></content:encoded>
      </item>
    <item>
        <title>JSONException: &quot;end of input at character 0 of&quot;</title>
        <link>http://marakana.com/forums/android/learning_android_book/554.html</link>
        <author>Brian Cooke</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/554.html</guid>
        <pubDate>Tue, 29 Nov 2011 19:05:44 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hello,<br/><br/>First of all, thanks to Marko for the excellent book.  Good way for an old Unix command-line programmer like me to get his feet wet with Android, and GUI programming in general.<br/><br/>I've made it to the threaded status update code in example 6-5 (also does this with example 6-3).  My app posts to yamba.marakana.com OK (I can see the postings on the website), but I get back a JSONException, presumably a problem parsing the JSON that comes back after posting.  In example 6-3 it did a force-close on the app, and in 6-5 it gives a "Failed to post" toast.<br/><br/>Any ideas?  The LogCat messages are below:<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>11-29 18:51:17.383: E/StatusActivity(310): winterwell.jtwitter.TwitterException: org.json.JSONException: End of input at character 0 of <br/>11-29 18:51:17.383: W/System.err(310): winterwell.jtwitter.TwitterException: org.json.JSONException: End of input at character 0 of <br/>11-29 18:51:17.393: W/System.err(310): 	at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:2584)<br/>11-29 18:51:17.393: W/System.err(310): 	at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:2502)<br/>11-29 18:51:17.393: W/System.err(310): 	at com.saltedsnail.yamba.StatusActivity$PostToTwitter.doInBackground(StatusActivity.java:43)<br/>11-29 18:51:17.393: W/System.err(310): 	at com.saltedsnail.yamba.StatusActivity$PostToTwitter.doInBackground(StatusActivity.java:1)<br/>11-29 18:51:17.403: W/System.err(310): 	at android.os.AsyncTask$2.call(AsyncTask.java:185)<br/>11-29 18:51:17.403: W/System.err(310): 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)<br/>11-29 18:51:17.403: W/System.err(310): 	at java.util.concurrent.FutureTask.run(FutureTask.java:137)<br/>11-29 18:51:17.403: W/System.err(310): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)<br/>11-29 18:51:17.414: W/System.err(310): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)<br/>11-29 18:51:17.414: W/System.err(310): 	at java.lang.Thread.run(Thread.java:1096)<br/>11-29 18:51:17.414: W/System.err(310): Caused by: org.json.JSONException: End of input at character 0 of <br/>11-29 18:51:17.423: W/System.err(310): 	at org.json.JSONTokener.syntaxError(JSONTokener.java:446)<br/>11-29 18:51:17.423: W/System.err(310): 	at org.json.JSONTokener.nextValue(JSONTokener.java:93)<br/>11-29 18:51:17.433: W/System.err(310): 	at org.json.JSONObject.&lt;init&gt;(JSONObject.java:154)<br/>11-29 18:51:17.433: W/System.err(310): 	at org.json.JSONObject.&lt;init&gt;(JSONObject.java:171)<br/>11-29 18:51:17.433: W/System.err(310): 	at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:2557)<br/>11-29 18:51:17.433: W/System.err(310): 	... 9 more<br/></pre>
		  </div>]]></content:encoded>
      </item>
    <item>
        <title>How to add a video database</title>
        <link>http://marakana.com/forums/android/examples/550.html</link>
        <author>FatmaBeyza BAS</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/550.html</guid>
        <pubDate>Sat, 26 Nov 2011 06:26:50 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[I want to make an application using database which shows selected video. But I could not see any properties at the sqlite? How can I do?]]></content:encoded>
      </item>
    <item>
        <title>Warning:  QuickDraw Problem ??</title>
        <link>http://marakana.com/forums/android/examples/549.html</link>
        <author>FatmaBeyza BAS</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/549.html</guid>
        <pubDate>Sat, 26 Nov 2011 05:08:36 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[When I run one of my apps on emulator, I get this warning and it never runs.<br/><br/>".....emulator[223:10b] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz."<br/><br/>At the begining, my other apps worked just fine on emulator. But after two or three launching there are any application on the emulator. Now I couldn't see any app icon to try. And then I noticed "com.android.ide.eclipse.adt.LIBRARIES" item on the project manager. Could it be associated. Could it be associated with macOs?<br/><br/>And I see the app at the emulator's downloaded applications but under the running applications I can not see. <br/><br/>So what can i do? Please help! ]]></content:encoded>
      </item>
    <item>
        <title>&quot;Failed to post&quot; error but yet posts do get posted anyway</title>
        <link>http://marakana.com/forums/android/learning_android_book/546.html</link>
        <author>Tim Lee</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/546.html</guid>
        <pubDate>Wed, 23 Nov 2011 03:49:24 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hello, I am encountering a bug where when I try to post I get the following error and also "failed to post" return msg on device.<br/><br/>11-23 19:45:16.565: W/System.err(16916): winterwell.jtwitter.TwitterException: 400 Too many duplicate messages too quickly; take a breather and post again in a few minutes. <a href="http://yamba.marakana.com/api/statuses/update.json" rel="nofollow">http://yamba.marakana.com/api/statuses/update.json</a><br/><br/>looks like it's the floodgate flagging error, but yet the status updates DO go through and successfully shows up on the website. am I missing some code somewhere?]]></content:encoded>
      </item>
    <item>
        <title>Camera api / GPS/ Compass</title>
        <link>http://marakana.com/forums/android/general/543.html</link>
        <author>SiBorneo Mann</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/543.html</guid>
        <pubDate>Mon, 21 Nov 2011 16:10:43 -0800</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Hi all,<br/><br/>How to get Camera direction of GPS enabled phone?<br/><br/>All i found about GPS is that it just tells the location of the device, how do one get the direction where camera is pointing with GPS enabled phone?<br/><br/>For example, I need to see the camera api and work out which direction the camera is pointing. So that I can see the direction I'm viewing. In the other word, it is work like a compass. <br/><br/>Can anyone assist me on this or any suggestion tutorials or website to look at? <br/><br/>Much appreciated.<br/>SiBorneo]]></content:encoded>
      </item>
    <item>
        <title>winterwell.jtwitter.TwitterException$Timeout</title>
        <link>http://marakana.com/forums/android/learning_android_book/539.html</link>
        <author>Hoo Kits</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/539.html</guid>
        <pubDate>Thu, 17 Nov 2011 01:49:45 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[When I run the code from page 71, eclipse showed me some error:<br/><br/><blockquote>11-17 09:37:47.077: E/StatusActivity(370): winterwell.jtwitter.TwitterException$Timeout: <a href="http://yamba.marakana.com/api/statuses/update.json" rel="nofollow">http://yamba.marakana.com/api/statuses/update.json</a></blockquote><br/><br/>I don't know what's going on,thanks in advance:)]]></content:encoded>
      </item>
    <item>
        <title>Where to put a git repo?</title>
        <link>http://marakana.com/forums/git/git/533.html</link>
        <author>J V</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/533.html</guid>
        <pubDate>Fri, 11 Nov 2011 16:04:16 -0800</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[We are in the process of setting up a git repo on a Windows 2003 box.<br/>(For speed, we need our build box and git repo on the same machine and build will not work on Linux as a result of the Installer software we are married to at the moment).<br/><br/>Using cygwin, where would be the best place (windows path) to put a git repo?<br/><br/>Is there a convention typically used on Linux system as to where to put the repo (path)?<br/><br/>We simply want to follow the convention if there is any.]]></content:encoded>
      </item>
    <item>
        <title>Git:  CVS to Git import</title>
        <link>http://marakana.com/forums/git/git/532.html</link>
        <author>J V</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/532.html</guid>
        <pubDate>Fri, 11 Nov 2011 15:18:52 -0800</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[We are moving from CVS to Git and want to know if anyone has had any experience there doing this and could share do's  / dont's, best practices when doing the initial import.<br/>Also are there any known problems/bugs with the cvs to git import with regards to CVS history? <br/><br/>Regards, <br/><br/><br/>J.V.]]></content:encoded>
      </item>
    <item>
        <title>Unexpected git behaviour</title>
        <link>http://marakana.com/forums/git/git/531.html</link>
        <author>J V</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/531.html</guid>
        <pubDate>Fri, 11 Nov 2011 12:55:54 -0800</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[<br/>Unexpected git behaviour<br/><br/>---<br/># First create a local git repo<br/><br/>$mkdir gitexample<br/>$git config --global user.name "my name"<br/>$git config --global user.email "me@me.com"<br/>$git init<br/>$git add .<br/>$git commit -m 'initial commit'<br/><br/># Create/Edit an empty file<br/>$vi readme.txt<br/><br/># add a single line: "this was added in the master branch."<br/>$git commit -a<br/><br/># create and checkout a new branch (from master)<br/>$git branch test<br/>$git checkout test<br/><br/># edit the readme.txt file and do not commit<br/># add the text:  "this was added in the test branch.", save and exit<br/>$vi readme.txt<br/><br/>#now switch back to master<br/>$git checkout master<br/>$cat readme.txt<br/><br/>#You will see both lines in the master.  <br/><br/>Question #1:<br/>	Why was this line added in the *master branch?<br/><br/><br/>--- even further surprising<br/>In the master branch, now do a commit<br/>$git commit -a<br/><br/>cat readme.txt ( you will see the line in the master now that was added in the test branch )<br/><br/>Question #2:<br/>	Why did this happen?<br/><br/># Now switch back to the test branch<br/>$git checkout test<br/>$cat readme.txt<br/><br/>You will only see the one line: "This was added in the master branch"<br/><br/>Question #3:<br/>	Why did this happen?<br/><br/>and NOT the line added in that branch: "this was added in the test branch" &lt;= this line is gone<br/><br/>What is the reason for this?<br/><br/>1) Why do I see uncommitted changes in the branches made off master in the master branch?<br/>2) Why, if I commit them in the master, do the disappear in the branch in which they were made?<br/><br/>This is confusing, I would think the * master branch would be left untouched.  This would solve issue #2.<br/>]]></content:encoded>
      </item>
    <item>
        <title>identi.ca does not work either</title>
        <link>http://marakana.com/forums/android/learning_android_book/523.html</link>
        <author>Diego Mendez</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/523.html</guid>
        <pubDate>Mon, 07 Nov 2011 12:45:45 -0800</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[After reading many posts, I tried to make my example work with identi.ca/api but I am still getting Failed to post exception. Does anybody can help me please? I am really stucked on this.<br/><br/>That is how i call the api service. I make sure to be logged in via web.<br/><br/>twitter = new Twitter("username","password");<br/>twitter.setAPIRootUrl("http://identi.ca/api");]]></content:encoded>
      </item>
    <item>
        <title>when i pull, git destroys my files</title>
        <link>http://marakana.com/forums/git/git/518.html</link>
        <author>Armin Wurzinger</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/518.html</guid>
        <pubDate>Fri, 04 Nov 2011 07:20:32 -0700</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[Hi<br/><br/>everytime I pull from origin master, git destroys my files. There are lots of lines like this:<br/><br/>&gt;&gt;&gt;&gt;&gt;&gt;&gt; 04512a74d867b801df6a9721f1ab6d0b56e41b02<br/>&lt;&lt;&lt;&lt;&lt;&lt;&lt; HEAD<br/><br/>and the program doesn't work any more. What's wrong? <br/><br/>thank u]]></content:encoded>
      </item>
    <item>
        <title>Least code-intrusive HTML5 editor</title>
        <link>http://marakana.com/forums/web_dev/general/517.html</link>
        <author>Valerie Boudreau</author>
        <guid isPermaLink="true">http://marakana.com/forums/web_dev/general/517.html</guid>
        <pubDate>Wed, 02 Nov 2011 12:18:41 -0700</pubDate>
        <category>Web Dev - General</category>
        <content:encoded><![CDATA[I need to recommend a standalone WYSIWYG HTML5 editor at work for a Marketing Dept which has no HTML skills but needs to create content for our website. I've been looking for 2 weeks now and can't find something that doesn't stuff the heck out of the text with code when I save off the file. I can strip some code out after they create a file, header and footer flotsam and jetsam, but I don't want to clean up code that is intrusive all over the place. Any recommendations of anything you've seen that produces some clean code and is also WYSIWYG? If I have to, I'll create a text box with HTML5 mark-up and embed it into a web page for them, but prefer to buy a standalone app. Thank you, Val ]]></content:encoded>
      </item>
    <item>
        <title>Development Android applications</title>
        <link>http://marakana.com/forums/android/examples/515.html</link>
        <author>Andrei Andrei</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/515.html</guid>
        <pubDate>Sun, 30 Oct 2011 05:33:47 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Hi. Of course, the greatest number of application installs is brought by market.android.com, but its structure doesn’t let new applications get into the top. It’s like a circle: the more installs come to market.android.com, the higher the position of the application in the top is and the more installs appear on market.android.com again. And vice versa – if there are few installs, your application is not in the top, therefore no more installs appear. <br/><br/>It turns out that at first you have to make an effort to push your app to the top of market.android.com. But where can you get these first application installs? There are sites with the reviews of android-apps in the network: large and small, free and commercial. As I noticed they give a good start to the applications which get into the top of new applications of market.android.com afterwards. Here is the list of sites that I’ve found: <br/><br/>http://www.bestfreeandroidapps.com/submit-android-app/ <br/>http://www.mobileappsgallery.com/submit-android-app/ <br/>http://latestandroidapps.net/submit-android-app/ <br/>http://www.androidtapp.com/get-reviewed/ <br/>https://developer.amazon.com/welcome.html <br/>http://www.androidappsreview.com/submit-your-android-app/ <br/>http://www.openhandsetdevelopers.com/submit-android-application.html <br/>http://www.bestandroidappsreview.com/recommend-an-app/ <br/>http://www.androidappsgallery.com/submit/ <br/>http://www.androidappdictions.com/submit-an-app <br/>http://www.lifeofandroid.com/submit-an-app/ <br/>http://www.androidrundown.com/about/submit-app-hardware-review/ <br/>http://apps400.com/submit-your-application-for-review <br/>http://www.androidvideoreview.net/submit-app/ <br/>http://appstouse.com/submit-app-for-review <br/>http://www.100bestandroidapps.com/submit-android-app <br/>http://www.askyourandroid.com/request-for-review/ <br/>http://dailyappshow.com/submit-an-app-for-review <br/>http://www.appbrain.com/ <br/>http://www.androlib.com/ <br/>http://www.androidapps.com/ <br/>http://androidzoom.com/ <br/>http://www.androidappreviewsource.com/ <br/>http://android.appstorm.net/category/reviews/ <br/>http://androinica.com/contact-us/ <br/><br/>I apologize for the unsorted list – I still have no idea how to arrange it. <br/><br/>Please share some more sites where you can place your own android-application.]]></content:encoded>
      </item>
    <item>
        <title>Support multi-language inside my app</title>
        <link>http://marakana.com/forums/android/examples/511.html</link>
        <author>Itay Bit</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/511.html</guid>
        <pubDate>Mon, 24 Oct 2011 09:00:11 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Hi all!<br/><br/>first of all I want to thank you about the great tutorial (Android Application Development, 18 videos).<br/><br/>I'm trying to develop my first app and I want to support both English (default) and Hebrew.<br/>My goal is to have a language option in the preferences so the user could customize the app to his preferred language.<br/>I tried to open a new folder (values-he) and put there string.xml with Hebrew strings but I don't know how to redirect the relevant value folder.. I looked at some forums and I saw this example:<br/><a href="http://stackoverflow.com/questions/6464771/how-can-i-change-language-of-my-application" rel="nofollow">http://stackoverflow.com/questions/6464771/how-can-i-change-language-of-my-application</a><br/>but it doesn't work to me.. I looked at the Locale API and i didn't saw Hebrew.. <br/><br/>any suggestions?<br/>Thanks in advance.<br/>]]></content:encoded>
      </item>
    <item>
        <title>Problem with LogService example</title>
        <link>http://marakana.com/forums/android/learning_android_book/510.html</link>
        <author>Todd Lawson</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/510.html</guid>
        <pubDate>Sat, 22 Oct 2011 12:26:32 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[I am trying to test the code example in chapter 14.  Every time I try to run the app it crashes.  I have done a code compare against all files in both the client and service application.  They are identical.  I commented out the binding code in the client app and the app runs fine.  So I think it's a problem with the service code.  What can I do to find out what's happening?]]></content:encoded>
      </item>
    <item>
        <title>Twitter API deprecated</title>
        <link>http://marakana.com/forums/android/learning_android_book/509.html</link>
        <author>Saurabh Nigam</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/509.html</guid>
        <pubDate>Thu, 20 Oct 2011 08:47:15 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hello Dev Guys,<br/><br/>When I am trying use the API "winterwell.jtwitter.Twitter", and instantiating Twitter class with ("String", "String"), i.e ("username", "password") as in the Yamba application example, I am getting a message that this class has been Deprecated. Please help me to move further with the code.<br/><br/><br/>Thanks in advance,<br/>Regards,<br/>Saurabh]]></content:encoded>
      </item>
    <item>
        <title>doinbackground error and forceclose message</title>
        <link>http://marakana.com/forums/android/learning_android_book/507.html</link>
        <author>May Ghatghoon</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/507.html</guid>
        <pubDate>Wed, 19 Oct 2011 11:16:09 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[I am following the Android boot camp videos and I am on day 3 - part 1.<br/>When I ran my code, even though online status updates and progress bar pops up, I receive the following error that is showing problem with AsyncTask and doInBackground and a force close message. <br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/><br/>10-19 10:42:57.510: ERROR/AndroidRuntime(18840): FATAL EXCEPTION: AsyncTask #1<br/>10-19 10:42:57.510: ERROR/AndroidRuntime(18840): java.lang.RuntimeException: An error occured while executing doInBackground()<br/>10-19 10:42:57.510: ERROR/AndroidRuntime(18840):     at android.os.AsyncTask$3.done(AsyncTask.java:200)<br/>10-19 10:42:57.510: ERROR/AndroidRuntime(18840):     at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)<br/>10-19 10:42:57.510: ERROR/AndroidRuntime(18840):     at java.util.concurrent.FutureTask.setException(FutureTask.java:124)<br/>10-19 10:42:57.510: ERROR/AndroidRuntime(18840):     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)<br/>10-19 10:42:57.510: ERROR/AndroidRuntime(18840):     at java.util.concurrent.FutureTask.run(FutureTask.java:137)<br/>10-19 10:42:57.510: ERROR/AndroidRuntime(18840):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)<br/>10-19 10:42:57.510: ERROR/AndroidRuntime(18840):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)<br/>10-19 10:42:57.510: ERROR/AndroidRuntime(18840):     at java.lang.Thread.run(Thread.java:1096)<br/></pre>
		  </div>]]></content:encoded>
      </item>
    <item>
        <title>jtwitter and jtwitter-yamba both not working.</title>
        <link>http://marakana.com/forums/android/learning_android_book/502.html</link>
        <author>NIKHIL SHARMA</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/502.html</guid>
        <pubDate>Fri, 14 Oct 2011 02:44:09 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[hi, <br/>both of these jar files provided gives error... the stack trace is like this <br/>[2011-10-14 14:55:58 - Yamba] Dx <br/>UNEXPECTED TOP-LEVEL EXCEPTION:<br/>java.lang.IllegalArgumentException: already added: Llgpl/haustein/Base64Encoder;<br/>	at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)<br/>	at com.android.dx.dex.file.DexFile.add(DexFile.java:143)<br/>	at com.android.dx.command.dexer.Main.processClass(Main.java:372)<br/>	at com.android.dx.command.dexer.Main.processFileBytes(Main.java:346)<br/>	at com.android.dx.command.dexer.Main.access$400(Main.java:59)<br/>	at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:294)<br/>	at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:244)<br/>	at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:130)<br/>	at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:108)<br/>	at com.android.dx.command.dexer.Main.processOne(Main.java:313)<br/>	at com.android.dx.command.dexer.Main.processAllFiles(Main.java:233)<br/>	at com.android.dx.command.dexer.Main.run(Main.java:185)<br/>	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br/>	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<br/>	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<br/>	at java.lang.reflect.Method.invoke(Unknown Source)<br/>	at com.android.ide.eclipse.adt.internal.build.DexWrapper.run(DexWrapper.java:179)<br/>	at com.android.ide.eclipse.adt.internal.build.BuildHelper.executeDx(BuildHelper.java:652)<br/>	at com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.build(PostCompilerBuilder.java:510)<br/>	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)<br/>	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)<br/>	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)<br/>	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)<br/>	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)<br/>	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)<br/>	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)<br/>	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)<br/>	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)<br/>	at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)<br/>	at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)<br/>	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)<br/>[2011-10-14 14:55:58 - Yamba] Dx 1 error; aborting<br/>[2011-10-14 14:55:58 - Yamba] Conversion to Dalvik format failed with error 1<br/>]]></content:encoded>
      </item>
    <item>
        <title>Multi-Threading in Android Using Handler for message queue</title>
        <link>http://marakana.com/forums/android/examples/500.html</link>
        <author>Vaibhav Parkhi</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/500.html</guid>
        <pubDate>Thu, 13 Oct 2011 02:22:36 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Android have following Threads state:<br/><br/><strong>Advantages of Multi-Threading</strong><br/>1.Threads share the process' resources but are able to execute independently.<br/>2.Applications responsibilities can be separated main thread runs UI, and slow tasks are sent to background threads.<br/>3.Threading provides an useful abstraction of concurrent execution.<br/>4.Particularly useful in the case of a single process that spawns multiple threads on top of a multiprocessor system. In this case real parallelism is achieved.<br/>5.Consequently, a multithreaded program operates faster on computer systems that have multiple CPU's.<br/><br/><br/><strong>Handler Class</strong><br/><a href="http://developer.android.com/reference/android/os/Handler.html" rel="nofollow">http://developer.android.com/reference/android/os/Handler.html</a><br/>•When a process is created for your application, its main thread is dedicated to running a message queue that takes care of managing the top-level application objects (activities, intent receivers, etc) and any windows they create.<br/>•You can create your own secondary threads, and communicate back with the main application thread through a Handler.<br/>•When you create a new Handler, it is bound to the message queue of the thread that is creating it --from that point on, it will deliver messagesand runnablesto that message queue and execute them as they come out of the message queue.<br/><br/><strong>Code for Multi-threading using Handler class </strong><br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">package com.android.multithreading;<br/><br/>import java.util.Random;<br/><br/>import android.app.Activity;<br/>import android.app.ProgressDialog;<br/>import android.content.DialogInterface;<br/>import android.content.Intent;<br/>import android.content.DialogInterface.OnClickListener;<br/>import android.inputmethodservice.Keyboard.Key;<br/>import android.os.Bundle;<br/>import android.os.Handler;<br/>import android.os.Message;<br/>import android.util.Log;<br/>import android.view.KeyEvent;<br/>import android.view.View;<br/>import android.widget.Button;<br/>import android.widget.ProgressBar;<br/>import android.widget.TextView;<br/><br/>public class ThreadingActivity extends Activity implements Runnable<br/><br/>{<br/>	/*<br/>	 *  ThreadingActivity class for managing multi-tasking using message queue<br/>	 */<br/>    /** Called when the activity is first created. */<br/>	ProgressBar pb1;<br/>	ProgressBar pb2;<br/>	TextView msgWorking;<br/>	TextView msgReturned;<br/>	TextView pdTv;<br/>	Button pdBtn;<br/>	private String pi_string;<br/>	ProgressDialog pd;<br/>	boolean isRunning=false;<br/>	final int MAX_SEC=60;<br/>	String strTest="Global value seen by all threads";<br/>	int intTest=0;<br/>	<br/>	Handler handler=new Handler()<br/>	{<br/>		@Override<br/>		public void handleMessage(Message msg) <br/>		{<br/>			String returnValue=(String)msg.obj;<br/>			Log.i(returnValue, " Return Value");<br/>			msgReturned.setText("returned by background thread: \n\n"+returnValue);<br/>			pb1.incrementProgressBy(2);<br/>			<br/>			if(pb1.getProgress()==MAX_SEC)<br/>			{<br/>				msgReturned.setText("Done \n back thread has been stopped");<br/>				isRunning=false;<br/>			}<br/>			if(pb1.getProgress()==pb1.getMax())<br/>			{<br/>				msgWorking.setText("Done");<br/>				pb1.setVisibility(View.INVISIBLE);<br/>				pb2.setVisibility(View.INVISIBLE);<br/>				pb1.getLayoutParams().height=0;<br/>				pb2.getLayoutParams().height=0;<br/>			}<br/>			else<br/>			{<br/>				msgWorking.setText("Working..."+pb1.getProgress()+"%");<br/>				<br/>			}<br/>		}<br/>	};// handler<br/>    @Override<br/>    public void onCreate(Bundle savedInstanceState) <br/>    { <br/>        super.onCreate(savedInstanceState);<br/>        setContentView(R.layout.main);<br/>        pb1=(ProgressBar)findViewById(R.id.progress);<br/>        pb2=(ProgressBar)findViewById(R.id.progress2);<br/>        pb1.setMax(MAX_SEC);<br/>        pb1.setProgress(0);<br/>        msgWorking=(TextView)findViewById(R.id.TextView01);<br/>        msgReturned=(TextView)findViewById(R.id.TextView02);<br/>        pdTv=(TextView)findViewById(R.id.TextView03);<br/>        pdBtn=(Button)findViewById(R.id.pdBtn);<br/>        pdBtn.setOnClickListener(new View.OnClickListener() {<br/>			<br/>			public void onClick(View v) {<br/>				// TODO Auto-generated method stub<br/>				//Intent i=new //Intent(getApplicationContext(),ThreadsPosting.class);<br/>				//startActivity(i);<br/>			}<br/>		});<br/>        strTest+="-01";<br/>        intTest=1;<br/>    }<br/>    public void onStop()<br/>    {<br/>    	super.onStop();<br/>    	isRunning=false;<br/>    }<br/>    <br/>    public void onStart()<br/>    {<br/>    	super.onStart();<br/>    	Thread background=new Thread(new Runnable() {<br/>			<br/>			public void run() <br/>			{<br/>				// TODO Auto-generated method stub<br/>				try<br/>				{<br/>					for(int i=0;i&lt;MAX_SEC &amp;&amp; isRunning;i++)<br/>					{<br/>						Thread.sleep(1000);<br/>						<br/>						Random rnd=new Random();<br/>						String data="Threads Value "+(int)rnd.nextInt(101);<br/>						data+="\n"+strTest+" "+intTest;<br/>						intTest++;<br/>						<br/>						Message msg=handler.obtainMessage(1, (String)data);<br/>						<br/>						if(isRunning)<br/>						{<br/>							handler.sendMessage(msg);<br/>						}<br/>						<br/>					}<br/>				}<br/>				catch(Throwable e)<br/>				{<br/>					<br/>				}<br/>				<br/>			}//run<br/>		});// background<br/>    	isRunning=true;<br/>    	background.start();<br/>    	<br/>    }<br/>    <br/>	<br/>	@Override<br/>	public boolean onKeyDown(int keyCode, KeyEvent event) {<br/>		// TODO Auto-generated method stub<br/>		<br/>		pd = ProgressDialog.show(this, "Working..", "Calculating Pi", true,false);<br/>		Thread th=new Thread(this);<br/>		th.start();<br/>		return super.onKeyDown(keyCode, event);<br/>	}<br/>	<br/>	public void run() {<br/>		// TODO Auto-generated method stub<br/>		Random rnd=new Random();<br/>		pi_string = Pi.computePi(800).toString();<br/>		handler2.sendEmptyMessage(0);<br/>		<br/>	}<br/>	<br/>	private Handler handler2=new Handler()<br/>	{<br/>		@Override<br/>		public void handleMessage(Message msg)<br/>		{<br/>			pd.dismiss();<br/>			pdTv.setText(pi_string);<br/>		}<br/>	};<br/>    <br/>    <br/>    <br/>    <br/>}</pre>
		  </div><br/><br/><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>Video: Intro to Ruboto - Ruby on Android</title>
        <link>http://marakana.com/forums/ruby/ruby_on_rails/493.html</link>
        <author>Adam Yaacob</author>
        <guid isPermaLink="true">http://marakana.com/forums/ruby/ruby_on_rails/493.html</guid>
        <pubDate>Tue, 04 Oct 2011 14:04:57 -0700</pubDate>
        <category>Ruby - Ruby on Rails</category>
        <content:encoded><![CDATA[For all you Ruby folks who are interested in <a href="http://ruboto.org" rel="nofollow">Ruboto</a>, the JRuby-on-Android framework, I just posted a video of Scott Moyer which will give you an introduction to using Ruboto.<br/><br/>Check out the <a href="http://marakana.com/forums/android/general/492.html" rel="nofollow">video on the Android forum</a>.]]></content:encoded>
      </item>
    <item>
        <title>Shall I limit some of the users to not access a part of a repository</title>
        <link>http://marakana.com/forums/git/git/488.html</link>
        <author>Karthikeya Sharma</author>
        <guid isPermaLink="true">http://marakana.com/forums/git/git/488.html</guid>
        <pubDate>Thu, 29 Sep 2011 01:53:15 -0700</pubDate>
        <category>Git - Git</category>
        <content:encoded><![CDATA[Hello,<br/><br/>Just like in MKS and in other SCM's can I limit some of the users from accessing the part of the <strong>git repository</strong>..?For Example..<br/><br/>There are two teams working on <strong>'X'</strong> Repository which has files of both Teams.The work(files)of <strong>Team1 can be accessed by Team2</strong>.But <strong>Team-02 work(files)should not be accessed by Team-01</strong>.How to <strong>limit</strong> <em><strong>Team-01</strong></em> from accessing the <em><strong>Team-02 </strong></em>files...?<br/><br/>If anyone worked on this,Please help me...<br/><br/>Thanks in Advance..<br/>Karthikeya]]></content:encoded>
      </item>
    <item>
        <title>Help with TextWatcher</title>
        <link>http://marakana.com/forums/android/learning_android_book/487.html</link>
        <author>Guy Lauten</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/487.html</guid>
        <pubDate>Wed, 28 Sep 2011 19:47:44 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[I am following the book (slowly), just finishing up my StatusActivity3 class.  I have my UI looking good, I can post ststus messages to the server.  I am moving on to Chapter 7 with one thing not working: I can't get the textCount field to work.<br/>I import TextWatcher <br/><code class="inline">import android.text.TextWatcher;</code><br/>In my StatusActivity3 class I declare textCount as a TextView<br/><code class="inline">   TextView textCount;</code><br/>and in onCreate() set up textCount and attach a listener, all by the book.<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">	textCount = (TextView) findViewById(R.id.textCount);<br/>	textCount.setText(Integer.toString(140));<br/>	textCount.setTextColor(Color.GREEN);<br/>	editText.addTextChangedListener(this);<br/></pre>
		  </div><br/>My layout is also pretty much by the book.<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">  &lt;!-- Text Counter TextView --&gt;<br/>	&lt;TextView android:layout_width="wrap_content"<br/>	android:layout_height="wrap_content" android:layout_gravity="right"<br/>	android:id="@+id/textCount" android:text="140" <br/>	android:layout_marginRight="10dp" android:textColor="#00ff00" /&gt;<br/><br/>  &lt;!-- Status EditText --&gt;<br/>        &lt;EditText android:layout_width="fill_parent"<br/>        android:hint="@string/hintText" android:id="@+id/editText"<br/>        android:gravity="top|center_horizontal" android:background="#60f0f0f0" <br/>        android:layout_margin="5dp" android:layout_height="316dp" <br/>        android:layout_weight="1"&gt;&lt;/EditText&gt;<br/></pre>
		  </div><br/>Also in StatusActivity3 I have the 3 TextWatcher methods, all logging debug-level messages to logcat.<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">	// TextWatcher methods<br/>	public void afterTextChanged(Editable statusText) {<br/>		int count = 140 - statusText.length();<br/>		textCount.setText(Integer.toString(count));<br/>		textCount.setTextColor(Color.GREEN);<br/>		if (count &lt;10)<br/>			textCount.setTextColor(Color.YELLOW);<br/>		if (count &lt; 0)<br/>			textCount.setTextColor(Color.RED);<br/>		Log.d(TAG, "afterTextChanged");<br/>	} // afterTextChanged<br/>	<br/>	public void beforeTextChanged(CharSequence s, int start, int count, int after) {<br/>		// not implemented here<br/>		Log.d(TAG, "beforeTextChanged");<br/>	} // beforeTextChanged<br/><br/>	public void onTextChanged(CharSequence s, int start, int count, int after) {<br/>		// not implemented here<br/>		Log.d(TAG, "onTextChanged");<br/>	} // onTextChanged<br/><br/></pre>
		  </div><br/>When I run this, logcat never gets messages from any TextWatcher methods and the textCount field is never updated.  I know Log.d() is working because my onClick() method for the Update button logs debug messages just fine.<br/>So anybody see somthing stupid I am doing or not doing?  Or in abscence of that, can Marko or someone wise in the ways of Android give me some clues as to how to debug this?  <br/>It seems to me the listener is never getting attached to the statusText object, but that's just a guess at this point.  I don't know how to dive into the Listener to see if it is alive or what.  <br/>Any help is greatly appreciated.  <br/><br/>BTW - This is <em>great </em>stuff; thanks Marko!<br/>]]></content:encoded>
      </item>
    <item>
        <title>Chapter 10 - BaseActivity NullPointer (solved - problem with menu.xml)</title>
        <link>http://marakana.com/forums/android/learning_android_book/485.html</link>
        <author>Mauricio Galdames</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/485.html</guid>
        <pubDate>Mon, 26 Sep 2011 17:45:18 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hello... thanx for ur book it really helps me to understand android development.<br/><br/>I have a null pointer exception when i run the app at the end of chapter 10... before BaseActivity i dont have problems... but when  i implement it and run the code i have this exception:<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">09-26 20:34:39.635: ERROR/AndroidRuntime(511): FATAL EXCEPTION: main<br/>09-26 20:34:39.635: ERROR/AndroidRuntime(511): java.lang.NullPointerException<br/>09-26 20:34:39.635: ERROR/AndroidRuntime(511):     at com.cursorlab.android.yamba1.BaseActivity.onMenuOpened(BaseActivity.java:71)<br/>09-26 20:34:39.635: ERROR/AndroidRuntime(511):     at com.android.internal.policy.impl.PhoneWindow.openPanel(PhoneWindow.java:408)<br/>09-26 20:34:39.635: ERROR/AndroidRuntime(511):     at com.android.internal.policy.impl.PhoneWindow.onKeyUpPanel(PhoneWindow.java:621)<br/>09-26 20:34:39.635: ERROR/AndroidRuntime(511):     at com.android.internal.policy.impl.PhoneWindow.onKeyUp(PhoneWindow.java:1339)<br/>09-26 20:34:39.635: ERROR/AndroidRuntime(511):     at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:1668)<br/>09-26 20:34:39.635: ERROR/AndroidRuntime(511):     at android.view.ViewRoot.deliverKeyEventToViewHierarchy(ViewRoot.java:2560)<br/>09-26 20:34:39.635: ERROR/AndroidRuntime(511):     at android.view.ViewRoot.handleFinishedEvent(ViewRoot.java:2535)<br/>09-26 20:34:39.635: ERROR/AndroidRuntime(511):     at android.view.ViewRoot.handleMessage(ViewRoot.java:1867)<br/>09-26 20:34:39.635: ERROR/AndroidRuntime(511):     at android.os.Handler.dispatchMessage(Handler.java:99)<br/>09-26 20:34:39.635: ERROR/AndroidRuntime(511):     at android.os.Looper.loop(Looper.java:123)<br/>09-26 20:34:39.635: ERROR/AndroidRuntime(511):     at android.app.ActivityThread.main(ActivityThread.java:3683)<br/>09-26 20:34:39.635: ERROR/AndroidRuntime(511):     at java.lang.reflect.Method.invokeNative(Native Method)<br/>09-26 20:34:39.635: ERROR/AndroidRuntime(511):     at java.lang.reflect.Method.invoke(Method.java:507)<br/>09-26 20:34:39.635: ERROR/AndroidRuntime(511):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)<br/>09-26 20:34:39.635: ERROR/AndroidRuntime(511):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)<br/>09-26 20:34:39.635: ERROR/AndroidRuntime(511):     at dalvik.system.NativeStart.main(Native Method)<br/></pre>
		  </div><br/><br/><br/>And the exception is here:<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/> // Called every time menu is opened<br/>  @Override<br/>  public boolean onMenuOpened(int featureId, Menu menu) { <br/>    MenuItem toggleItem = menu.findItem(R.id.itemToggleService); <br/>    if (yamba.isServiceRunning()) { // &lt;8&gt;<br/>      toggleItem.setTitle(R.string.titleServiceStop);<br/>      toggleItem.setIcon(android.R.drawable.ic_media_pause);<br/>    } else { <br/>      toggleItem.setTitle(R.string.titleServiceStart); // &lt;---- HERE I GOT NULLPOINTER<br/>      toggleItem.setIcon(android.R.drawable.ic_media_play);<br/>    }<br/>    return true;<br/>  }<br/></pre>
		  </div><br/><br/>Why?? I have set the string.xml and menu.xml<br/><br/>Thanx in advance for ur help]]></content:encoded>
      </item>
    <item>
        <title>Execute &apos;adb&apos; from APK</title>
        <link>http://marakana.com/forums/android/general/481.html</link>
        <author>Arun R</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/481.html</guid>
        <pubDate>Fri, 23 Sep 2011 05:41:10 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Planning to execute 'adb' to do some operation from an TestActivity.Java and try to execute the TestActivity.apk.<br/><br/>File wd = new File("/Android/android-sdk-windows/tools/");<br/>Process proc = Runtime.getRuntime().exec("adb shell monkey -p com.sample.cts -v 50", null, wd);<br/>proc.waitFor() ;<br/><br/>Getting error - java.io.IOException: Error running exec(). Command: [adb, shell, monkey, -p, com.sample.cts, -v, 5000] Working Directory: null Environment: null<br/><br/>Can you please help me on this??<br/><br/>- Arun R]]></content:encoded>
      </item>
    <item>
        <title>How to draw bitmap in android</title>
        <link>http://marakana.com/forums/android/general/479.html</link>
        <author>Sandeep Dhull</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/479.html</guid>
        <pubDate>Thu, 22 Sep 2011 00:19:55 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[I have a array,which stores the rgb values and i want to draw it on the bitmap stored in the drawable folder..How to do this....please help...<br/>The rgb array is actualy a multidimensional array holding having the height and width and  value is an rgb value.]]></content:encoded>
      </item>
    <item>
        <title>Twitter.Status can&apos;t be resolved</title>
        <link>http://marakana.com/forums/android/learning_android_book/477.html</link>
        <author>Guy Lauten</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/477.html</guid>
        <pubDate>Wed, 21 Sep 2011 07:28:41 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hello.  I am running through the Yamba1 project using Eclipse Indigo Build id: 20110615-0604 with the current ADT.  I am working on <code class="inline">StatusActivity2</code>, on Pg. 68, in<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">protected String doInBackground(String... statuses) {<br/>    try {<br/>        Twitter.Status status = twitter.updateStatus(statuses[0]);<br/>        return status.text;<br/>    } catch (TwitterException e) {<br/>        Log.e(TAG, e.toString());<br/>        e.printStackTrace();<br/>        return "Failed to post";<br/>    }<br/>} // doInBackground </pre>
		  </div><br/>Eclipse flags the<br/><code class="inline">Twitter.Status status = twitter.updateStatus(statuses[0]);</code><br/>statement with the build error "Twitter.Status cannot be resolved to a type".<br/><br/>I have jtwitter.jar 2.3.3, it's in the build path, it contains a <code class="inline">Status </code>class.  Other references to the <code class="inline">Twitter </code>class seem to be getting resolved, why not <code class="inline">Twitter.Status</code>?<br/><br/>I have tried all Eclipse suggestions, to no avail.  What am I doing wrong?<br/><br/>Any help for this Android noob is <em>very </em>much appreciated.<br/><br/>- guygo<br/>]]></content:encoded>
      </item>
    <item>
        <title>SQL Exception in chapter 9</title>
        <link>http://marakana.com/forums/android/learning_android_book/476.html</link>
        <author>Gal Rogozinski</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/476.html</guid>
        <pubDate>Wed, 21 Sep 2011 07:20:51 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hello,<br/><br/>After implementing the database in ch. 9 of the book the command InsertOrThrow in the UpdaterService class keeps on throwing the following SQL exception:<br/><br/>android.database.sqlite.SQLiteException: near "at":syntax error: , while compiling INSERT INTO timeline&lt;created at, _id, user, txt&gt; VALUES&lt;?, ?, ?, ?&gt;;<br/><br/><br/>I commented out C_SOURCE as suggested in another post but it didn't help!<br/><br/>Any ideas?<br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>Adding new Tab to Activity</title>
        <link>http://marakana.com/forums/android/examples/473.html</link>
        <author>Vaibhav Parkhi</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/473.html</guid>
        <pubDate>Tue, 20 Sep 2011 04:42:20 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Here is demo example for the adding new Tab to activity. <br/><br/>In this example main classes are <strong>TabHost </strong>which define the view or layout class for tab. Other is <strong>newTabSpec</strong> which define the specification for tab.<br/>Third class is for adding is <strong>thSpec.setContent(new TabHost.TabContentFactory()</strong> which override the function <strong>createTabContent</strong>. <br/><br/><span style="text-decoration: underline;"><strong>Tab.java ::</strong></span><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">package com.android;<br/><br/>import android.app.Activity;<br/>import android.os.Bundle;<br/>import android.view.View;<br/>import android.view.View.OnClickListener;<br/>import android.widget.Button;<br/>import android.widget.TabHost;<br/>import android.widget.TextView;<br/>import android.widget.TabHost.TabSpec;<br/><br/>public class Tab extends Activity implements OnClickListener<br/>{<br/>	TabHost th;<br/>	TextView showResult;<br/>	long start, stop;<br/>	@Override<br/>	protected void onCreate(Bundle savedInstanceState) <br/>	{<br/>		// TODO Auto-generated method stub<br/>		super.onCreate(savedInstanceState);<br/>		setContentView(R.layout.tabs);<br/>		th=(TabHost)findViewById(R.id.tabhost);<br/>		Button newTab=(Button)findViewById(R.id.btnAddTab);<br/>		Button btnStart=(Button)findViewById(R.id.startWatch);<br/>		Button btnStop=(Button)findViewById(R.id.stopWatch);<br/>		showResult=(TextView)findViewById(R.id.tvShowResult);<br/>		<br/>		btnStart.setOnClickListener(this);<br/>		btnStop.setOnClickListener(this);<br/>		<br/>		newTab.setOnClickListener(this);<br/>		th.setup();<br/>		TabSpec spec=th.newTabSpec("tag1");<br/>		spec.setContent(R.id.tab1);<br/>		spec.setIndicator("Home");<br/>		th.addTab(spec);<br/>		<br/>		spec=th.newTabSpec("tag2");<br/>		spec.setContent(R.id.tab2);<br/>		spec.setIndicator("About Us");<br/>		th.addTab(spec);<br/>		<br/>		spec=th.newTabSpec("tag3");<br/>		spec.setContent(R.id.tab3);<br/>		spec.setIndicator("Add New Tab");<br/>		th.addTab(spec);<br/>		start=0;<br/>		<br/>	}<br/><br/>	@Override<br/>	public void onClick(View v) <br/>	{<br/>		// TODO Auto-generated method stub	<br/>		switch(v.getId())<br/>		{<br/>		case R.id.btnAddTab:<br/>			<br/>			TabSpec thSpec=th.newTabSpec("tag1");<br/>			thSpec.setContent(new TabHost.TabContentFactory() {<br/>				<br/>				@Override<br/>				public View createTabContent(String tag) {<br/>					// TODO Auto-generated method stub<br/>					TextView txt=new TextView(Tab.this);<br/>					txt.setText("You have created a new Tab!");<br/>					<br/>					return txt;<br/>				}<br/>			});<br/>			<br/>			thSpec.setIndicator("New");<br/>			th.addTab(thSpec);<br/>			<br/>			<br/>			break;<br/>		case R.id.startWatch:<br/>			start=System.currentTimeMillis();<br/>			break;<br/>		case R.id.stopWatch:<br/>			stop=System.currentTimeMillis();<br/>			<br/>			if(start!=0)<br/>			{<br/>				long result=stop-start;<br/>				int millSec=(int)result;<br/>				int seconds=(int)result/1000;<br/>				int min=seconds/60;<br/>				millSec=millSec%100;<br/>				seconds=seconds%60;<br/>				showResult.setText(String.format("%d:%02d:%02d",min,seconds,millSec));<br/>				<br/>				<br/>			}<br/>			break;<br/>		}<br/>	}<br/>	<br/>}<br/></pre>
		  </div><br/><br/><span style="text-decoration: underline;"><strong>Tab.xml ::</strong></span><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>&lt;?xml version="1.0" encoding="utf-8"?&gt;<br/>&lt;LinearLayout<br/>  xmlns:android="http://schemas.android.com/apk/res/android"<br/>  android:orientation="vertical"<br/>  android:layout_width="match_parent"<br/>  android:layout_height="match_parent"&gt;<br/>    &lt;TabHost android:id="@+id/tabhost" android:layout_width="match_parent" android:layout_height="match_parent"&gt;<br/>        &lt;LinearLayout android:id="@+id/linearLayout1" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"&gt;<br/>            &lt;TabWidget android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@android:id/tabs"&gt;&lt;/TabWidget&gt;<br/>            &lt;FrameLayout android:layout_width="match_parent" android:layout_height="match_parent" android:id="@android:id/tabcontent"&gt;<br/>                &lt;LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/tab1"&gt;<br/>                    &lt;Button android:text="Start" android:id="@+id/startWatch" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt;&lt;/Button&gt;<br/>                    &lt;Button android:text="Stop" android:id="@+id/stopWatch" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt;&lt;/Button&gt;<br/>                    &lt;TextView android:text="TextView" android:id="@+id/tvShowResult" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt;&lt;/TextView&gt;<br/>                &lt;/LinearLayout&gt;<br/>                &lt;LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/tab2"&gt;<br/>                	&lt;TextView android:text="TextView 2" android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt;&lt;/TextView&gt;<br/>                &lt;/LinearLayout&gt;<br/>                &lt;LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/tab3"&gt;<br/>                	&lt;Button android:text="Add a Tab" android:id="@+id/btnAddTab" android:layout_width="wrap_content" <br/>                			android:layout_height="wrap_content"&gt;&lt;/Button&gt;<br/>                &lt;/LinearLayout&gt;<br/>            &lt;/FrameLayout&gt;<br/>        &lt;/LinearLayout&gt;<br/>    &lt;/TabHost&gt;<br/>    <br/>&lt;/LinearLayout&gt;<br/><br/></pre>
		  </div>]]></content:encoded>
      </item>
    <item>
        <title>Hierarchy Viewer , Unable to get view server version from device ...</title>
        <link>http://marakana.com/forums/android/learning_android_book/472.html</link>
        <author>CHING-HSIEN WANG</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/472.html</guid>
        <pubDate>Tue, 20 Sep 2011 00:32:34 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi, <br/><br/>Currently, I am trying the Android tools <span style="text-decoration: underline;"><strong>Hierarchy Viewer </strong></span>as described on Page 81.  <br/><br/>But what I got is <br/><br/><br/>02:11:37 E/hierarchyviewer: Unable to get view server version from device 393300<br/><br/>210DE800EC<br/><br/>02:11:37 E/hierarchyviewer: Unable to get view server protocol version from devi<br/><br/>ce 393300210DE800EC<br/><br/>02:11:39 E/hierarchyviewer: Unable to debug device 393300210DE800EC<br/><br/>210DE800EC<br/><br/><br/> <br/><br/>My environment is Windows XP, Samuang I9000 and the Android SDK is just downloaded several days ago (I am the beginner of Android).<br/><br/>No idea about it and can not find useful information from internet. Any clue will be helpful. <br/><br/> <br/><br/>THANKS <br/><br/> <br/>*O*<br/><br/><br/> <br/><br/>Best<br/><br/>Andrew<br/>]]></content:encoded>
      </item>
    <item>
        <title>Implicit and Explicit Intent Example</title>
        <link>http://marakana.com/forums/android/examples/471.html</link>
        <author>Vaibhav Parkhi</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/471.html</guid>
        <pubDate>Mon, 19 Sep 2011 20:45:50 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Android OS Activity have two types intent. <br/>Implicit and Explicit Intent.<br/><br/>1) Implicit Intent::<br/>Implicit Intents have not specified a component; instead, they must include enough information for the system to determine which of the available components is best to run for that intent.<br/><br/>Example ::<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">Button openBrowser= (Button)findViewById(R.id.bOpenBrowser);<br/><br/>bOpenBrowser.setOnClickListener(new OnClickListener() {<br/><br/>public void onClick(View v) {<br/><br/>Intent webIntent = new Intent(Intent.ACTION_VIEW, Uri.pars("http://www.google.com"));<br/>startActivity(webIntent);<br/><br/>}<br/><br/>});<br/></pre>
		  </div><br/><br/>2) Explicit Intent::<br/><br/>Explicit Intents have specified a component (via setComponent(ComponentName) or setClass(Context, Class)), which provides the exact class to be run. Often these will not include any other information, simply being a way for an application to launch various internal activities it has as the user interacts with the application.<br/><br/>Example ::<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">Button openGame= (Button)findViewById(R.id.bOpenGame);<br/><br/>openGame.setOnClickListener(new OnClickListener() {<br/><br/>public void onClick(View v) {<br/><br/>Intent launchExplicitIntent = new Intent(this, Game.class);<br/>startActivity(launchExplicitIntent);<br/><br/>}<br/><br/>});<br/><br/></pre>
		  </div><br/><br/><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>Attribute qualified names must be unique within an element</title>
        <link>http://marakana.com/forums/tomcat/general/470.html</link>
        <author>Sivaraj Thava</author>
        <guid isPermaLink="true">http://marakana.com/forums/tomcat/general/470.html</guid>
        <pubDate>Mon, 19 Sep 2011 06:32:24 -0700</pubDate>
        <category>Tomcat - General</category>
        <content:encoded><![CDATA[<br/>Sep 19, 2011 6:12:21 AM org.apache.catalina.core.ApplicationDispatcher invoke<br/>SEVERE: Servlet.service() for servlet jsp threw exception<br/>org.apache.jasper.JasperException: /jsp/includes/topLogo.jsp (line: 65, column: 50) Attribute qualified names must be unique within an element<br/>	at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42)<br/>	at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:408)<br/>	at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:89)<br/>	at org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:171)<br/>	at org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:153)<br/>	at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1236)<br/>	at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1450)<br/>	at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1662)<br/>	at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1002)<br/>	at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1274)<br/>	at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1450)<br/>	at org.apache.jasper.compiler.Parser.parse(Parser.java:138)<br/>	at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:242)<br/>	at org.apache.jasper.compiler.ParserController.parse(ParserController.java:102)<br/>	at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:198)<br/>	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:373)<br/>	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)<br/>	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)<br/>	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:644)<br/>	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)<br/>	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)<br/>	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)<br/>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)<br/>	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)<br/>	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)<br/>	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)<br/>	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)<br/>	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)<br/>	at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:927)<br/>	at org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:684)<br/>	at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:678)<br/>	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br/>	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br/>	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br/>	at java.lang.reflect.Method.invoke(Method.java:597)<br/>	at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:129)<br/>	at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:152)<br/>	at org.apache.struts.tiles.taglib.InsertTag.doInclude(InsertTag.java:764)<br/>	at org.apache.struts.tiles.taglib.InsertTag$InsertHandler.doEndTag(InsertTag.java:896)<br/>	at org.apache.struts.tiles.taglib.InsertTag.doEndTag(InsertTag.java:465)<br/>	at org.apache.jsp.jsp.layout.userHome_jsp._jspx_meth_tiles_005finsert_005f0(userHome_jsp.java:340)<br/>	at org.apache.jsp.jsp.layout.userHome_jsp._jspService(userHome_jsp.java:141)<br/>	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)<br/>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)<br/>	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:433)<br/>	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)<br/>	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)<br/>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)<br/>	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)<br/>	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)<br/>	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)<br/>	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)<br/>	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)<br/>	at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:927)<br/>	at org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:684)<br/>	at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:678)<br/>	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br/>	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br/>	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br/>	at java.lang.reflect.Method.invoke(Method.java:597)<br/>	at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:129)<br/>	at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:152)<br/>	at org.apache.struts.tiles.taglib.InsertTag.doInclude(InsertTag.java:764)<br/>	at org.apache.struts.tiles.taglib.InsertTag$InsertHandler.doEndTag(InsertTag.java:896)<br/>	at org.apache.struts.tiles.taglib.InsertTag.doEndTag(InsertTag.java:465)<br/>	at org.apache.jsp.jsp.tiles.home_jsp._jspx_meth_tiles_005finsert_005f0(home_jsp.java:107)<br/>	at org.apache.jsp.jsp.tiles.home_jsp._jspService(home_jsp.java:72)<br/>	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)<br/>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)<br/>	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:433)<br/>	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)<br/>	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)<br/>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)<br/>	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)<br/>	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)<br/>	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)<br/>	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)<br/>	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)<br/>	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)<br/>	at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1078)<br/>	at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:295)<br/>	at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:396)<br/>	at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:347)<br/>	at com.efycaci.struts.CixRequestProcessor.processForwardConfig(CixRequestProcessor.java:334)<br/>	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:232)<br/>	at com.efycaci.struts.CixRequestProcessor.process(CixRequestProcessor.java:143)<br/>	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)<br/>	at com.efycaci.struts.ControllerServlet.process(ControllerServlet.java:264)<br/>	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)<br/>	at com.efycaci.struts.ControllerServlet.doGet(ControllerServlet.java:96)<br/>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)<br/>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)<br/>	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)<br/>	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)<br/>	at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125)<br/>	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)<br/>	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)<br/>	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)<br/>	at org.apache.catalina.core.StandardContextValv<br/>[ERROR]19 Sep 2011 06:12 OnTime --&gt; InsertTag:926 --&gt; ServletException in '/jsp/includes/topLogo.jsp': org.apache.jsp.jsp.includes.topLogo_jsp <br/>org.apache.jasper.JasperException: java.lang.ClassNotFoundException: org.apache.jsp.jsp.includes.topLogo_jsp<br/>	at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:178)<br/>	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)<br/>	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)<br/>	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)<br/>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)<br/>	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)\<br/><br/>I am facing this problem. Some what i know, it happen by CSS problem. What are the ways to find this problem?]]></content:encoded>
      </item>
    <item>
        <title>Compile error on ViewBinder</title>
        <link>http://marakana.com/forums/android/learning_android_book/469.html</link>
        <author>Todd Lawson</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/469.html</guid>
        <pubDate>Sat, 17 Sep 2011 10:25:06 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[I'm getting the following error:<br/><br/>The type new SimpleAdapter::ViewBinder(){} must implement the inherited abstract method SimleAdapter.ViewBinder.setViewValue(View, Cursor, String) <br/><br/>My code is:<br/><br/>	static final ViewBinder VIEW_BINDER = new ViewBinder() <br/>	{ <br/>		public boolean setViewValue(View view, Cursor cursor, int columnIndex) <br/>		{ <br/>			if(view.getId() != R.id.textCreatedAt) return false; <br/>			      <br/>			// Update the created at text to relative time<br/>			long timestamp = cursor.getLong(columnIndex); <br/>			CharSequence relTime = DateUtils.getRelativeTimeSpanString(view.getContext(), timestamp); <br/>			((TextView)view).setText(relTime); <br/>			  <br/>			return true;  <br/>		}<br/>	};<br/><br/>I can see that the types don't match.  I'm defining setViewValue with an int instead of a string.  What should I do to convert the int to a string?]]></content:encoded>
      </item>
    <item>
        <title>how to make our app act as a preinstalled app</title>
        <link>http://marakana.com/forums/android/examples/467.html</link>
        <author>Rashmi Kumari</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/467.html</guid>
        <pubDate>Fri, 16 Sep 2011 03:38:24 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[I want to make my own application as a preinstalled application. To accompolish this i tried pushin my app apk in /system/app folder bt could not able to do.First i mounted r/w permission for /system/app folder using adb shell commands bt that also i m not able to do.<br/>Is anyone have ides how to solve this issue?<br/>Advance thanks for any help.]]></content:encoded>
      </item>
    <item>
        <title>how can i make the image to text converter application in android?</title>
        <link>http://marakana.com/forums/android/examples/465.html</link>
        <author>Pradip Patel</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/465.html</guid>
        <pubDate>Thu, 15 Sep 2011 03:54:31 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[I used OCR but some error occur in application.So please give me some different Logic to make this application.<br/><br/>Thanx..]]></content:encoded>
      </item>
    <item>
        <title>Save message in SMS inbox ???</title>
        <link>http://marakana.com/forums/android/general/462.html</link>
        <author>Vivek Ragunathan</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/462.html</guid>
        <pubDate>Tue, 13 Sep 2011 08:22:05 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Hi<br/><br/>I think this is a simple question but tough one to answer cuz I could not find much information on this on the net. Hope MARAKANA helps me out.<br/><br/>How do I save a message in the SMS inbox? I found the following code but this does not work.<br/><br/>ContentValues cv =new ContentValues();<br/>cv.put("address", phoneNumber);<br/>cv.put("body", msgBody);<br/>cv.put("date", rcvdDatetime);<br/>getContentResolver.insert(new Uri("content://SMS/inbox", cv);<br/><br/>This does not work. This adds an entry in the SMS table in the mmssms.db but the message does not appear in the messaging app inbox.<br/><br/> I want to put/save a message in the SMS inbox. How do I do that?<br/><br/>Your help appreciated.<br/><br/>Thanks<br/>Vivek Ragunathan]]></content:encoded>
      </item>
    <item>
        <title>HTML5 video gallery</title>
        <link>http://marakana.com/forums/html5/general/460.html</link>
        <author>Philip Savvides</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/460.html</guid>
        <pubDate>Thu, 08 Sep 2011 05:46:33 -0700</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[Hello my name is Philip i am new here...nice to see that there is a forum about HTML5<br/><br/>I am also new in HTML generally but i have just started to learn! So i though to start from HTML5<br/><br/>I need to create a video gallery that supports HTML5 video... or jquery..  just a s long as it works on iPads and iPhones.  It should be a simple one that when left and right arrows are pressed videos scroll and the one in the middle starts to play and the others stop/pause.<br/><br/>I havent seen any tutorials on this but, i am pretty sure there must be a way to create this and if anyone in here has any idea that would be great!<br/><br/>Good to be here ..good to be everywhere<br/><br/>Many Thanks!<br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>Web/Graphics/UX Designer (Project-Based)</title>
        <link>http://marakana.com/forums/marakana/wants_you/458.html</link>
        <author>Ben Driscoll</author>
        <guid isPermaLink="true">http://marakana.com/forums/marakana/wants_you/458.html</guid>
        <pubDate>Tue, 06 Sep 2011 12:12:47 -0700</pubDate>
        <category>Marakana - Wants You</category>
        <content:encoded><![CDATA[Marakana is looking for a designer to work with us on various projects to kick off the new year. This will be an ongoing relationship and the ideal candidate should be located in the Bay Area.<br/><br/>Are you a Marakana fit?<br/><br/>
<ul><li>We pride ourselves as being cutting edge and setting ourselves apart from the norm...so creativity and ability to think out of the box is a must! </li><li>Company culture and what we provide to our customers is extremely important to us so we need someone who's generally on the same wavelength and who'll have the same understanding of our culture and passion.</li><li>We want someone who has a strong aesthetic opinions as well as a clear vision on their designs, but also willing to work with the visions and creative juices we have flowing.</li></ul><br/><br/>Must haves...<br/><br/>
<ul><li>Be one step ahead with the latest in web design trends and techniques </li><li>Proven ability to think conceptually and strategically about projects and branding to develop and evolve over time </li><li>Ability to take direction and translate feedback from multiple sources into successful design solutions so must play well with others</li><li>Ability to produce high quality work quickly, and be comfortable going through several rounds of iteration in pursuit of the best design solutions </li><li>Strong passion for building the best online customer experience </li><li>Demonstrate sensitivity to and knowledge of open source communities</li></ul><br/><br/><br/>Interested? Shoot an email to <a href="mailto:johanne@marakana.com">johanne@marakana.com</a> along with your resume and portfolio and samples. Be sure to include the best contact number and email so that we can easily get a hold of you.]]></content:encoded>
      </item>
    <item>
        <title>Android Software Engineer Wanted!</title>
        <link>http://marakana.com/forums/marakana/wants_you/457.html</link>
        <author>Ben Driscoll</author>
        <guid isPermaLink="true">http://marakana.com/forums/marakana/wants_you/457.html</guid>
        <pubDate>Tue, 06 Sep 2011 12:02:13 -0700</pubDate>
        <category>Marakana - Wants You</category>
        <content:encoded><![CDATA[Marakana is an open-source training company committed to helping high-performance teams of developers get started (or get better) with Android. Our clients include the likes of Motorola, Sony Ericsson, HTC, Qualcomm, Department of Defense, Wells Fargo, and many more. We organize the San Francisco Java, Android, and HTML5 User Groups and we have deep relationships <br/>with a growing number of who's who in the industry.<br/><br/>Why is Marakana a great place to work?<br/><br/>
<ul><li>We take pride in serving the open source community through our participation in user groups, open source conferences and the publishing of free content.</li><li>We believe a great company culture drives success: work-life balance, daily foosball tournaments, full company participation in strategy meetings and an open environment where creativity, innovation and new ideas are encouraged.</li><li>We remain on the cutting edge of technology and have established ourselves as an authority on open source software.</li><li>We have been growing at 100% year-over-year providing ample room for growth and opportunity.</li></ul><br/><br/>We are looking for you to join our team of experts and help us:<br/><br/>
<ul><li>Research and develop cool Android apps that fascinate teaching various aspects of the platform</li><li>Author books, training content, slides, examples, labs, quizzes, etc.</li><li>Deliver training classes (online, in our classrooms, or at our customers' sites) on Android</li><li>Engage both local and global communities of Android professionals, exchange ideas, share examples, organize events, connect with other gurus in the industry</li><li>Innovate the way we deliver training - e.g., develop new new tools, processes, methodologies, etc.</li></ul><br/><br/>For you to be effective in this role, you need to:<br/><br/>
<ul><li>Have a degree in Computer Science</li><li>Be passionate about open source software and open standards</li><li>Have prior experience or exposure to Java and Android (you don't have to be a guru, but you should aspire to become one)</li><li>Be able to communicate your ideas well and enjoy sharing what you know with others (prior teaching experience is a plus)</li><li>Be open to travel, getting in front of the customers, and speaking in public</li><li>Be dependable and professional</li></ul><br/><br/>This is a full-time position, based in San Francisco, with a competitive salary, benefits, amazing career growth potential, and exciting travel opportunities. Interested? <a href="/apply?code=Android" rel="nofollow"><strong>Apply today!</strong></a><br/><br/>You don't want to work full-time? No problem. If you prefer to stay independent but still wish to make some money on the side, we are open to working with you on a project-by-project basis. In that case <a href="/apply?code=AndroidContractor" rel="nofollow"><strong>Apply today!</strong></a>]]></content:encoded>
      </item>
    <item>
        <title>Java Instructors/Developers Wanted!</title>
        <link>http://marakana.com/forums/marakana/wants_you/455.html</link>
        <author>Ben Driscoll</author>
        <guid isPermaLink="true">http://marakana.com/forums/marakana/wants_you/455.html</guid>
        <pubDate>Tue, 06 Sep 2011 11:29:15 -0700</pubDate>
        <category>Marakana - Wants You</category>
        <content:encoded><![CDATA[Marakana is an open-source training company committed to helping high-performance teams of developers with Java, both intro level and advanced. Our clients include the likes of Motorola, Sony Ericsson, HTC, Qualcomm, Department of Defense, Wells Fargo, and many more. We organize the San Francisco Java, Android, and HTML5 User Groups and we have deep relationships with a growing number of who's who in the industry.<br/><br/>Why is Marakana a great place to work?<br/><br/>
<ul><li>We take pride in serving the open source community through our participation in user groups, open source conferences and the publishing of free content.</li><li>We believe a great company culture drives success: work-life balance, daily foosball tournaments, full company participation in strategy meetings and an open environment where creativity, innovation and new ideas are encouraged.</li><li>We remain on the cutting edge of technology and have established ourselves as an authority on open source software.</li><li>We have been growing at 100% year-over-year providing ample room for growth and opportunity.</li></ul> <br/><br/>We are looking for you to join our team of experts and help us:<br/><br/>
<ul><li>Research the latest and greatest in Java</li><li>Author books, training content, slides, examples, labs, quizzes, etc.</li><li>Deliver training classes (online, in our classrooms, or at our customers' sites) on Java</li><li>Engage both local and global communities of Java professionals, exchange ideas, share examples, organize events, connect with other gurus in the industry</li><li>Innovate the way we deliver training - e.g., develop new tools, processes, methodologies, etc.</li></ul><br/><br/>For you to be effective in this role, you need to:<br/><br/>
<ul><li>Have a degree in Computer Science</li><li>Be passionate about open source software and open standards</li><li>Have solid experience in teaching or developing with Java (you don't have to be a guru, but you should aspire to become one)</li><li>Be able to communicate your ideas well and enjoy sharing what you know with others (prior teaching experience is a plus)</li><li>Be open to travel, getting in front of the customers and speaking in public</li><li>Be dependable and professional</li></ul><br/><br/>This is a full-time position, based in San Francisco, with a competitive salary, benefits, amazing career growth potential, and exciting travel opportunities. Interested? <a href="/apply?code=JavaExpert" rel="nofollow"><strong>Apply today!</strong></a><br/><br/>You don't want to work full-time? No problem. If you prefer to stay independent but still wish to make some money on the side, we are open to working with you on a project-by-project basis. <a href="/apply?code=JavaContract" rel="nofollow"><strong>Apply today!</strong></a>]]></content:encoded>
      </item>
    <item>
        <title>WhereAmI - LocationManager always returns null</title>
        <link>http://marakana.com/forums/android/learning_android_book/454.html</link>
        <author>Vivek Ragunathan</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/454.html</guid>
        <pubDate>Mon, 05 Sep 2011 09:47:48 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">public class WhereAmI extends Activity implements LocationListener<br/>{<br/>   .<br/>   .<br/>   .<br/>   @Override<br/>   public void onCreate(Bundle savedInstanceState)<br/>   {<br/>      .<br/>      .<br/>      .<br/>      <strong>Location lastLocation = locationMgr.getLastKnownLocation(LocationManager.GPS_PROVIDER);</strong><br/>      .<br/>      .<br/>      .<br/>}</pre>
		  </div><br/><br/>Location Manager always returns null for the getLastKnownLocation call on emulator and on device. Any ideas why?<br/><br/>Regards<br/>Vivek Ragunathan<br/>]]></content:encoded>
      </item>
    <item>
        <title>Widget refresh not working properly !!!</title>
        <link>http://marakana.com/forums/android/learning_android_book/453.html</link>
        <author>Vivek Ragunathan</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/453.html</guid>
        <pubDate>Sun, 04 Sep 2011 03:49:53 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi<br/><br/>The homescreen widget using the content resolver to query the latest data always shows somewhat older status instead of the latest one. The cursor returned by the query always seems to point to the older status.<br/><br/>For instance, the status list as seen in the Timeline screen is as follows:-<br/><br/>1. abcd<br/>2. efgh<br/>3. ijkl<br/>4. mnop<br/>5. qrst<br/><br/>The update service is running and when it downloads new status, say abcd in this case, should cause the homescreen widget to refresh and display "abcd", instead it does not refresh or rather refreshes to display somewhat older status like mnop or qrst.<br/><br/>However, the refresh happens properly if the db is empty or if status download happens after a purge.<br/><br/>I have used the same code as seen in the book. Any ideas, why it is not working properly.<br/><br/>Thanks in advance<br/>Vivek Ragunathan]]></content:encoded>
      </item>
    <item>
        <title>TwitterException$Parsing when updating status</title>
        <link>http://marakana.com/forums/android/learning_android_book/452.html</link>
        <author>Nathan Zylbersztejn</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/452.html</guid>
        <pubDate>Sat, 03 Sep 2011 11:35:52 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hello There,<br/><br/>First of all, thank you Marko and all people involved in this, the bootcamp videos are really great.<br/>I am doing the Yamba project and I'm stuck too with the jtwitter library.<br/>I have donthe UI part, created an account on status.net. when I update my status, it works (it is displayed on the status.net stream) but the app crashed systematically.<br/><br/>I got the following error:<br/><br/>I have tried different versions, no one give better results. But this error comes with the last one posted on jtwitter website.<br/><br/>I am an android newbie so any help is really welcome,<br/><br/>Thanks,<br/>Nathan<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/><br/><br/>09-03 18:27:20.625: ERROR/AndroidRuntime(3722): winterwell.jtwitter.TwitterException$Parsing<br/>09-03 18:27:20.625: ERROR/AndroidRuntime(3722):     at winterwell.jtwitter.Twitter$User.&lt;init&gt;(Twitter.java:1067)<br/>09-03 18:27:20.625: ERROR/AndroidRuntime(3722):     at winterwell.jtwitter.Twitter$Status.&lt;init&gt;(Twitter.java:723)<br/>09-03 18:27:20.625: ERROR/AndroidRuntime(3722):     at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:3433)<br/>09-03 18:27:20.625: ERROR/AndroidRuntime(3722):     at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:3363)<br/>09-03 18:27:20.625: ERROR/AndroidRuntime(3722):     at winterwell.jtwitter.Twitter.setStatus(Twitter.java:3099)<br/>09-03 18:27:20.625: ERROR/AndroidRuntime(3722):     at com.learningandroid.yamba.StatusActivity.onClick(StatusActivity.java:36)<br/>09-03 18:27:20.625: ERROR/AndroidRuntime(3722):     at android.view.View.performClick(View.java:2408)<br/>09-03 18:27:20.625: ERROR/AndroidRuntime(3722):     at android.view.View$PerformClick.run(View.java:8816)<br/>09-03 18:27:20.625: ERROR/AndroidRuntime(3722):     at android.os.Handler.handleCallback(Handler.java:587)<br/>09-03 18:27:20.625: ERROR/AndroidRuntime(3722):     at android.os.Handler.dispatchMessage(Handler.java:92)<br/>09-03 18:27:20.625: ERROR/AndroidRuntime(3722):     at android.os.Looper.loop(Looper.java:123)<br/>09-03 18:27:20.625: ERROR/AndroidRuntime(3722):     at android.app.ActivityThread.main(ActivityThread.java:4627)<br/>09-03 18:27:20.625: ERROR/AndroidRuntime(3722):     at java.lang.reflect.Method.invokeNative(Native Method)<br/>09-03 18:27:20.625: ERROR/AndroidRuntime(3722):     at java.lang.reflect.Method.invoke(Method.java:521)<br/>09-03 18:27:20.625: ERROR/AndroidRuntime(3722):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)<br/>09-03 18:27:20.625: ERROR/AndroidRuntime(3722):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)<br/>09-03 18:27:20.625: ERROR/AndroidRuntime(3722):     at dalvik.system.NativeStart.main(Native Method)<br/>09-03 18:27:20.625: ERROR/AndroidRuntime(3722): Caused by: org.json.JSONException: No value for profile_background_tile<br/>09-03 18:27:20.625: ERROR/AndroidRuntime(3722):     at org.json.JSONObject.get(JSONObject.java:354)<br/>09-03 18:27:20.625: ERROR/AndroidRuntime(3722):     at org.json.JSONObject.getBoolean(JSONObject.java:375)<br/>09-03 18:27:20.625: ERROR/AndroidRuntime(3722):     at winterwell.jtwitter.Twitter$User.&lt;init&gt;(Twitter.java:1050)<br/>09-03 18:27:20.625: ERROR/AndroidRuntime(3722):     ... 16 more<br/></pre>
		  </div>]]></content:encoded>
      </item>
    <item>
        <title>Zip Issues</title>
        <link>http://marakana.com/forums/android/learning_android_book/451.html</link>
        <author>Pat Kohli</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/451.html</guid>
        <pubDate>Sat, 03 Sep 2011 10:35:36 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[I struggled with importing winterwell.jtwitter.Twitter, eventually just downloading the directory and adding it to the buildpath.  Prior to that the editor would complain about the import line:<br/>     import winterwell.jtwitter.Twitter<br/>Eclipse would complain that the twitter-yamba.jar file was not a valid Zip file, or something like that so I tried the directory of actual files dot java.<br/><br/>After trying to wriggle around that I got these build errors when I tried to run:<br/>2011-09-03 13:23:19 - Yamba] Dx at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)<br/>[2011-09-03 13:23:19 - Yamba] Dx <br/>UNEXPECTED TOP-LEVEL EXCEPTION:<br/>java.util.zip.ZipException: error in opening zip file<br/>[2011-09-03 13:23:19 - Yamba] Dx 	at java.util.zip.ZipFile.open(Native Method)<br/>[2011-09-03 13:23:19 - Yamba] Dx 	at java.util.zip.ZipFile.&lt;init&gt;(Unknown Source)<br/>[2011-09-03 13:23:19 - Yamba] Dx 	at java.util.zip.ZipFile.&lt;init&gt;(Unknown Source)<br/>[2011-09-03 13:23:19 - Yamba] Dx 	at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:205)<br/>...<br/><br/>Is this something saying I need to put Gzip in the path?  IF so, "how"? If not, what do I do?<br/><br/>TIA!<br/>- Pat<br/>]]></content:encoded>
      </item>
    <item>
        <title>Web Developer (Instructor) - Full Time</title>
        <link>http://marakana.com/forums/marakana/wants_you/450.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/marakana/wants_you/450.html</guid>
        <pubDate>Fri, 02 Sep 2011 16:05:26 -0700</pubDate>
        <category>Marakana - Wants You</category>
        <content:encoded><![CDATA[Marakana is an open-source training company committed to helping high-performance teams of developers get started (or get better) with web technologies such as HTML5, CSS3, JavaScript, and so on. Our clients include the likes of Nike, SalesForce.com, Comcast, Intel, NetApp, United Airlines, Stanford University, HBO, Microsoft, and many more. We organize the San Francisco HTML5, Android, and Java User Groups and we have deep relationships with a growing number of who's who in the industry.<br/><br/>Why is Marakana a great place to work?<br/><br/>
<ul><li>We take pride in serving the open source community through our participation in user groups, open source conferences and the publishing of free content.</li><li>We believe a great company culture drives success: work-life balance, daily foosball tournaments, full company participation in strategy meetings and an open environment where creativity, innovation and new ideas are encouraged.</li><li>We remain on the cutting edge of technology and have established ourselves as an authority on open source software.</li><li>We have been growing at 100% year-over-year providing ample room for growth and opportunity.</li></ul> <br/><br/>We are looking for you to join our team of experts and help us:<br/><br/>
<ul><li>Research and develop cool web UIs that fascinate teaching different web technologies and best practices</li><li>Author books, training content, slides, examples, labs, quizzes, etc.</li><li>Deliver training classes (online, in our classrooms, or at our customers' sites) on topics such as HTML, CSS, JavaScript, jQuery, etc.</li><li>Engage both local and global communities of web professionals, exchange ideas, share examples, organize events, connect with other gurus in the industry</li><li>Innovate the way we deliver training - e.g., develop new new tools, processes, methodologies, etc.</li></ul><br/><br/>For you to be effective in this role, you need to:<br/><br/>
<ul><li>Have a degree in Computer Science or a related field</li><li>Be passionate about open source software and open standards</li><li>Have prior experience developing web UIs (you don't have to be a guru, but you should aspire to become one)</li><li>Be able to communicate your ideas well and enjoy sharing what you know with others (prior teaching experience is a plus)</li><li>Be open to travel, getting in front of the customers, and speaking in public</li><li>Be dependable and professional</li></ul><br/><br/>This is a full-time position, based in San Francisco, with a competitive salary, benefits, amazing career growth potential, and exciting travel opportunities. Interested? <a href="/apply?code=WebDev" rel="nofollow"><strong>Apply today!</strong></a><br/><br/>You don't want to work full-time? No problem. If you prefer to stay independent but still wish to make some money on the side, we are open to working with you on a project-by-project basis.  <a href="/apply?code=WebDev" rel="nofollow"><strong>Apply today!</strong></a>]]></content:encoded>
      </item>
    <item>
        <title>Failed to fetch status updates</title>
        <link>http://marakana.com/forums/android/learning_android_book/447.html</link>
        <author>Simon Zet</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/447.html</guid>
        <pubDate>Wed, 31 Aug 2011 13:24:18 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi there,<br/>I've got some problems after passing the book without big problem, but that one makes me sick ;p<br/><br/>ERROR/YambaApplication(471): java.lang.NullPointerException<br/>ERROR/YambaApplication(471):     at org.yamba.YambaApplication.fetchStatusUpdates(YambaApplication.java:68)<br/>ERROR/YambaApplication(471):     at org.yamba.UpdaterService$Updater.run(UpdaterService.java:78)<br/><br/>Line 68 points to:<br/>long latestStatusCreatedAtTime = this.getStatusData().getLatestStatusCreatedAtTime();<br/><br/>and line 78 points on:<br/>int newUpdates = yamba.fetchStatusUpdates();<br/><br/>please help me :(<br/>I'm at the end of charpter 9: The Databases]]></content:encoded>
      </item>
    <item>
        <title>Unparseable Date Error</title>
        <link>http://marakana.com/forums/android/learning_android_book/446.html</link>
        <author>Philip Maasch</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/446.html</guid>
        <pubDate>Mon, 29 Aug 2011 00:54:52 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hey Marko,<br/><br/>maybe you can help me. I'v really enjoied to work with your book, and it all works on the emulation software, but when I'm testing it on a real device, I've get this error:<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>08-29 09:40:38.320: ERROR/YambaApplication(17191): winterwell.jtwitter.TwitterException$Parsing: Mon Aug 29 00:36:36 -0700 2011<br/>08-29 09:40:38.320: ERROR/YambaApplication(17191):     at winterwell.jtwitter.Twitter.parseDate(Twitter.java:1367)<br/>08-29 09:40:38.320: ERROR/YambaApplication(17191):     at winterwell.jtwitter.Twitter$Status.&lt;init&gt;(Twitter.java:680)<br/>08-29 09:40:38.320: ERROR/YambaApplication(17191):     at winterwell.jtwitter.Twitter$Status.getStatuses(Twitter.java:543)<br/>08-29 09:40:38.320: ERROR/YambaApplication(17191):     at winterwell.jtwitter.Twitter.getStatuses(Twitter.java:2300)<br/>08-29 09:40:38.320: ERROR/YambaApplication(17191):     at winterwell.jtwitter.Twitter.getHomeTimeline(Twitter.java:1985)<br/>08-29 09:40:38.320: ERROR/YambaApplication(17191):     at de.micpool.yamba.YambaApplication.fetchStatusUpdates(YambaApplication.java:82)<br/>08-29 09:40:38.320: ERROR/YambaApplication(17191):     at de.micpool.yamba.UpdateService.onHandleIntent(UpdateService.java:36)<br/>08-29 09:40:38.320: ERROR/YambaApplication(17191):     at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:59)<br/>08-29 09:40:38.320: ERROR/YambaApplication(17191):     at android.os.Handler.dispatchMessage(Handler.java:99)<br/>08-29 09:40:38.320: ERROR/YambaApplication(17191):     at android.os.Looper.loop(Looper.java:123)<br/>08-29 09:40:38.320: ERROR/YambaApplication(17191):     at android.os.HandlerThread.run(HandlerThread.java:60)<br/>08-29 09:40:38.320: ERROR/YambaApplication(17191): Caused by: java.text.ParseException: Unparseable date: "Mon Aug 29 00:36:36 -0700 2011"<br/>08-29 09:40:38.320: ERROR/YambaApplication(17191):     at java.text.DateFormat.parse(DateFormat.java:626)<br/>08-29 09:40:38.320: ERROR/YambaApplication(17191):     at winterwell.jtwitter.Twitter.parseDate(Twitter.java:1364)<br/>08-29 09:40:38.320: ERROR/YambaApplication(17191):     ... 10 more<br/></pre>
		  </div><br/><br/>here is the function<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>public synchronized int fetchStatusUpdates() {<br/>		Log.d(TAG, "Rufe neue Nachrichten ab");<br/>		Twitter twitter = this.getTwitter();<br/>		if(twitter == null) {<br/>			Log.d(TAG, "Twitter-Verbindungsinfo nicht initialisiert");<br/>			return 0;<br/>		}<br/>		try {<br/>			@SuppressWarnings("deprecation")<br/>			List&lt;Status&gt; statusUpdates = twitter.getHomeTimeline(); //twitter.getFriendsTimeline();<br/>			long latestStatusCreatedAtTime = this.getStatusData().getLatestStatusCreatedAtTime();<br/>			int count = 0;<br/>			ContentValues values = new ContentValues();<br/>			for (Status status : statusUpdates) {<br/>				values.put(StatusData.C_ID, status.getId().toString());<br/>				values.put(StatusData.C_CREATED_AT, status.getCreatedAt().getTime());<br/>				values.put(StatusData.C_TEXT, status.getText());<br/>				values.put(StatusData.C_USER, status.getUser().getName());<br/>				Log.d(TAG, "Nachricht mit ID " + status.getId() + " erhalten. Wird gespeichert.");<br/>				this.getStatusData().insertOrIgnore(values);<br/>				if (latestStatusCreatedAtTime &lt; status.getCreatedAt().getTime()) {<br/>					count++;<br/>				}<br/>			}<br/>			Log.d(TAG, count &gt; 0 ? count + " Nachrichten empfangen" : "Keine neuen Nachrichten");<br/>			return count;<br/>		} catch(RuntimeException e) {<br/>			Log.e(TAG, "Fehler beim Abruf der Nachrichten", e);<br/>			return 0;<br/>		}<br/>	}<br/></pre>
		  </div><br/><br/>This Method was in your book "getFriendsTimeline()", but it's depracted nad it won't work on the real device. Now I've changed it with the "getHomeTimeline()", but I've same problems with this.<br/><br/>I hope you can help me. And maybe you can explain me if the strange Date-String have to be in this form or if this is an error on the server site.<br/><br/>Greetings form Germany]]></content:encoded>
      </item>
    <item>
        <title>Five things Android needs to address on the enterprise side</title>
        <link>http://marakana.com/forums/android/general/445.html</link>
        <author>Rooz Mohazzabi</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/445.html</guid>
        <pubDate>Fri, 26 Aug 2011 16:19:12 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Check out Marko Gargenta's article on O'Reilly Radar about five things that Google and third party developers need to work on to make Android easier to adopt by the enterprise...<br/><br/>http://radar.oreilly.com/2011/08/android-enterprise-5-things-to-improve.html]]></content:encoded>
      </item>
    <item>
        <title>No more room on this home screen</title>
        <link>http://marakana.com/forums/android/learning_android_book/443.html</link>
        <author>Adithya Narayan</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/443.html</guid>
        <pubDate>Fri, 26 Aug 2011 01:01:07 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi,<br/><br/>I am trying to put the Yamba widget on the home screen of Android emulator but it is showing up the following message on the screen :<br/><blockquote>"No more room on this home screen". </blockquote><br/><br/>I tried putting the widget on another desktop (out of the 4 available) but in vain.<br/><br/>Following are the XML files used to inflate the widget:<br/><br/>1)row.xml<br/><blockquote>&lt;?xml version="1.0" encoding="utf-8"?&gt;<br/>&lt;!-- 1 --&gt;<br/>&lt;LinearLayout<br/>  xmlns:android="http://schemas.android.com/apk/res/android"<br/>  android:orientation="vertical"<br/>  android:layout_width="fill_parent"<br/>  android:layout_height="wrap_content"&gt;<br/>  <br/>   	&lt;!-- 2  --&gt;<br/> 	&lt;LinearLayout android:layout_height="wrap_content"<br/>   				  android:layout_width="fill_parent"<br/>   				  &gt;<br/>      	&lt;!-- 3  --&gt;<br/> 		&lt;TextView android:layout_height="wrap_content"<br/>   				  android:layout_width="fill_parent" android:layout_weight="1"<br/>   				  android:id="@+id/textUser" android:text="Slashdot"<br/>    			  android:textStyle="bold" <br/>    			  android:textColor="#00ff00"/&gt;<br/>  		&lt;!-- 4  --&gt;<br/>  		&lt;TextView android:layout_height="wrap_content"<br/>			      android:layout_width="fill_parent" android:layout_weight="1"<br/>			      android:gravity="right" android:id="@+id/textCreatedAt"<br/>			      android:textColor="#00ff00"<br/>			      android:text="10 minutes ago" <br/>			      /&gt;<br/>	&lt;/LinearLayout&gt;<br/>		<br/>	&lt;!-- 5  --&gt;<br/>	&lt;TextView android:layout_height="wrap_content"<br/>  			  android:layout_width="fill_parent" android:id="@+id/textText"<br/>  			  android:textColor="#00ff00"<br/>  			  android:text="Firefox comes to Android" /&gt;<br/>  			  <br/>&lt;/LinearLayout&gt;</blockquote><br/><br/>2)yamba_widget.xml<br/><blockquote>&lt;?xml version="1.0" encoding="utf-8"?&gt;<br/>&lt;!-- 1 --&gt;<br/>&lt;LinearLayout<br/>	  xmlns:android="http://schemas.android.com/apk/res/android"<br/>	  android:orientation="vertical"<br/>	  android:layout_width="fill_parent"<br/>	  android:layout_height="wrap_content"<br/>	  android:background="@color/android:textColor"<br/>	  android:layout_margin="5dp" <br/>	  android:padding="5dp"&gt;<br/>    <br/>    &lt;!-- 2 --&gt;<br/>    &lt;ImageView android:layout_width="wrap_content"<br/>    		   android:src="@drawable/icon"<br/>    		   android:layout_height="fill_parent"<br/>    		   android:id="@+id/yamba_icon"<br/>    		   android:clickable="true"<br/>    /&gt;<br/>    <br/>    &lt;!-- 3 : use the existing row.xml layout which is for timeline activity--&gt;<br/>    &lt;include layout="@layout/row"/&gt;<br/>&lt;/LinearLayout&gt;</blockquote><br/><br/><br/>Can anyone please explain me the problem and suggest a solution ?<br/>-Adithya.]]></content:encoded>
      </item>
    <item>
        <title>Proximity Alert testing</title>
        <link>http://marakana.com/forums/android/learning_android_book/440.html</link>
        <author>Ade Oduye</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/440.html</guid>
        <pubDate>Thu, 25 Aug 2011 01:02:38 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[<em>This is my first post here so I would like to say I am very greatful for the free content Marakana has made available to developers like me - it's a big time help.</em><br/><br/>I am testing a proximity alert broadcast receiver and an Android beginer, I am struggleing to get it working. The following are code extracts from my project so you can see and hopefully help me get it working:<br/><br/><strong>The Manifest:</strong><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">&lt;?xml version="1.0" encoding="utf-8"?&gt;<br/>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"<br/>      package="com.test.locationtracker"<br/>      android:versionCode="1"<br/>      android:versionName="1.0"&gt;<br/>&lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"&gt;&lt;/uses-permission&gt;<br/>&lt;uses-permission android:name="android.permission.INTERNET"&gt;&lt;/uses-permission&gt;<br/>&lt;uses-permission android:name="android.permission.VIBRATE"&gt;&lt;/uses-permission&gt;<br/><br/><br/>    &lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;<br/>        &lt;activity android:name=".Main"<br/>                  android:label="@string/app_name"&gt;<br/>            &lt;intent-filter&gt;<br/>                &lt;action android:name="android.intent.action.MAIN" /&gt;<br/>                &lt;category android:name="android.intent.category.LAUNCHER" /&gt;<br/>            &lt;/intent-filter&gt;<br/>        &lt;/activity&gt;<br/>        <br/>        &lt;service android:name=".LocationService" android:enabled="true"&gt;&lt;/service&gt;<br/><br/>    &lt;/application&gt;<br/>    <br/>    &lt;receiver android:name=".ProximityResponder"&gt;<br/>    	&lt;intent-filter&gt;<br/>    		&lt;action android:name="Receiver_Testing"&gt;&lt;/action&gt;<br/>    	&lt;/intent-filter&gt;<br/>    &lt;/receiver&gt;<br/>&lt;/manifest&gt;</pre>
		  </div><br/><br/><strong>The Broadcast Receiver:</strong><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">public class ProximityResponder extends BroadcastReceiver{<br/><br/>	@Override<br/>	public void onReceive(Context context, Intent intent) {<br/>		// TODO Auto-generated method stub<br/>		<br/>		Mail mail		=	new Mail("real@email1.com", "real@email2.com");<br/>		String[] toArr	=	{"real@email1.com", "real@email2.com"};<br/>		mail.setTo(toArr);<br/>		mail.setFrom("real@email1.com");<br/>		mail.setSubject("PROXIMITY ALERT");<br/>		mail.setBody("Proximity Alert for : " + intent.toString());<br/>		<br/>		try {<br/>			if( mail.send() ){<br/>				//Toast.makeText(this, "Message sent!", Toast.LENGTH_SHORT).show();<br/>				Log.i("EMAIL", "Message sent!");<br/>			}else{<br/>				//Toast.makeText(this, "Email Failed!", Toast.LENGTH_LONG).show();<br/>				Log.i("EMAIL", "Email Failed!");<br/>			}<br/>		} catch (Exception e) {<br/>			// TODO Auto-generated catch block<br/>			e.printStackTrace();<br/>			Log.e("EMAIL", e.toString());<br/>		}<br/>	}<br/>	<br/>}</pre>
		  </div><br/><br/><strong>The Main Activity:</strong><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">public class Main extends Activity{<br/><br/>	TextView serviceStatus;<br/>	<br/>	/** Called when the activity is first created. */<br/>	@Override<br/>	public void onCreate(Bundle savedInstanceState) {<br/>		super.onCreate(savedInstanceState);<br/>		setContentView(R.layout.main);<br/>		<br/>		LocationManager locationManager;<br/>		locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);<br/>		<br/>		Intent intent1	=	new	Intent("TOTTENHAM");<br/>		PendingIntent proximityInternt	=	PendingIntent.getBroadcast(this, -1, intent1, 0);<br/>		locationManager.addProximityAlert(51.603094, -0.067578, 1000f, -1, proximityInternt);<br/>		sendBroadcast(new Intent(intent1));<br/>		<br/>		serviceStatus	=	(TextView) findViewById(R.id.text_update);<br/>		serviceStatus.setText("Service is off!");<br/>				<br/>		Button start	=	(Button) findViewById(R.id.button_start);<br/>		start.setOnClickListener(new OnClickListener() {<br/>			@Override<br/>			public void onClick(View v) {<br/>				// TODO Auto-generated method stub<br/>				startService( new Intent(Main.this, LocationService.class) );<br/>				serviceStatus.setText("Service is on!");<br/>			}<br/>		});<br/>		<br/>		<br/>		<br/>	}<br/>	<br/>}//close main</pre>
		  </div><br/><br/><strong>And, the Location Listener:</strong><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">public class LocationService extends Service implements LocationListener{<br/>	<br/>	private static final PendingIntent PendingIntent = null;<br/>	//private static final String PROX_ALERT_INTENT = "com.javacodegeeks.android.lbs.ProximityAlert";<br/>	double	lng, lat;<br/>	<br/>	private static String PROXIMITY_ALERT_HOME		=	"com.test.homealert";<br/>	private static String PROXIMITY_ALERT_WORK		=	"com.test.workalert";<br/>	private static String PROXIMITY_ALERT_LIVERPOOL	=	"com.test.liverpoolalert";<br/><br/>	@Override<br/>	public IBinder onBind(Intent intent) {<br/>		// TODO Auto-generated method stub<br/>		return null;<br/>	}<br/>	<br/>	@Override<br/>	public void onCreate() {<br/>		// TODO Auto-generated method stub<br/>		super.onCreate();<br/>		Log.i("SERVICE", "service created!");<br/>	}<br/>	<br/>	public void proximityTesting(){<br/>		LocationManager locationManager;<br/>		locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);<br/>		<br/>		//New  POSITION: long(0.06728752857142857), lat(51.555206242857146)<br/>		Intent intent1	=	new	Intent(PROXIMITY_ALERT_HOME);<br/>		PendingIntent proximityInternt	=	PendingIntent.getBroadcast(this, -1, intent1, 0);<br/>		locationManager.addProximityAlert(51.555206242857146, 0.06728752857142857, 1000f, -1, proximityInternt);<br/>		<br/>		sendBroadcast(new Intent(intent1));<br/>		<br/>		Intent intent2		=	new	Intent(PROXIMITY_ALERT_HOME);<br/>		proximityInternt	=	PendingIntent.getBroadcast(this, -1, intent2, 0);<br/>		locationManager.addProximityAlert(51.5149, -0.08314, 1000f, -1, proximityInternt);<br/>		<br/>		sendBroadcast(new Intent(intent2));<br/>		<br/>		Intent intent3		=	new	Intent(PROXIMITY_ALERT_LIVERPOOL);<br/>		proximityInternt	=	PendingIntent.getBroadcast(this, -1, intent3, 0);<br/>		locationManager.addProximityAlert(51.51833, -0.08188, 1000f, -1, proximityInternt);<br/>		<br/>		sendBroadcast(new Intent(intent3));<br/>	}<br/>	<br/>	@Override<br/>	public void onStart(Intent intent, int startId) {<br/>		// TODO Auto-generated method stub<br/>		super.onStart(intent, startId);<br/>		<br/>		proximityTesting();<br/>		<br/>		Toast.makeText(this, "Location Service working!", Toast.LENGTH_SHORT).show();<br/>		Log.i("SERVICE", "service started!");<br/>		<br/>	}<br/>	<br/>	@Override<br/>	public void onDestroy() {<br/>		// TODO Auto-generated method stub<br/>		super.onDestroy();<br/>		Toast.makeText(this, "Location Service stopped!", Toast.LENGTH_SHORT).show();<br/>		Log.i("SERVICE", "service stopped!");<br/>	}<br/>	<br/>	@Override<br/>	public void onLocationChanged(Location location) {<br/>		// TODO Auto-generated method stub<br/>		Toast.makeText(this, "Location Change!", Toast.LENGTH_SHORT).show();<br/>	}<br/><br/>	@Override<br/>	public void onProviderDisabled(String provider) {<br/>		// TODO Auto-generated method stub<br/>	}<br/>	@Override<br/>	public void onProviderEnabled(String provider) {<br/>		// TODO Auto-generated method stub		<br/>	}<br/>	@Override<br/>	public void onStatusChanged(String provider, int status, Bundle extras) {<br/>		// TODO Auto-generated method stub	<br/>	}<br/>	<br/>	<br/>}//close service class</pre>
		  </div><br/><br/>The main activity obviously starts things off. From there, I start a service which I can confirm is always running(until I stop it). That service is where I am doing the proximity checking.<br/><strong>An email is supposed to be sent to me each time I enter any of the proximities I am testing. I am not getting those emails.</strong><br/>I suspect I have either defined my manifest in-correctly or my entire setup is faultly - I am really not sure because I have very limited experience with Android.<br/><br/>In the main activity, I test to see if I am in the proximity of a particular area but that is only when the activity is actually running. Also in the main activity, I start a service which checks my proximity to 3 places. I go through these places everyday and having tested for 3 days now, I am not getting results.<br/><br/>Appreciating that you are very busy, I hope you can help me resolve this problem and would be very grateful.<br/><br/>Thanks.<br/><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>(Solved)Chapter 9 - StatusData , NullPointerException</title>
        <link>http://marakana.com/forums/android/learning_android_book/439.html</link>
        <author>Constantine Constantopoulos</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/439.html</guid>
        <pubDate>Wed, 24 Aug 2011 09:56:36 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hello,<br/><br/>At the end of chapter 9 we move all the functionality of StatusData inside   YambaApplication class. In order to use StatusData we create a private filed in this class like we did with prefs.<br/><br/><br/>I just have to instantiate it in onCreate() so i wont get a nullPointer , its not in the book but its pretty obvious :)  ]]></content:encoded>
      </item>
    <item>
        <title>Live video streaming over website</title>
        <link>http://marakana.com/forums/android/examples/438.html</link>
        <author>Ankit Kasliwal</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/438.html</guid>
        <pubDate>Tue, 23 Aug 2011 23:53:32 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Hello Everyone,<br/>               Can any one tell me it's possible to do live video streaming from android phone to over web (For ex. i have web site where i put some link like link1, link2 and other on click of any link it open my live cam if i open my phone camera for video receding )<br/><br/>In short I want to show my phone camera video over my web site.<br/><br/>Thanks in advance!!! <br/>]]></content:encoded>
      </item>
    <item>
        <title>Video: Mobile Webkit: Optimization and Tools with Andrew Hedges of Tapulous</title>
        <link>http://marakana.com/forums/android/general/437.html</link>
        <author>Max Walker</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/437.html</guid>
        <pubDate>Tue, 23 Aug 2011 16:20:17 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[<a href="http://tapulous.com/" rel="nofollow">Tapulous</a> builds awesome mobile games, and lead front-end engineer, <a href="http://twitter.com/#!/segdeha" rel="nofollow">Andrew Hedges</a> is going to talk about how they're using mobile webkit to leverage web views for many of the social components inside their games.<br/><br/><object class="youtube-hd" type="application/x-shockwave-flash" data="http://www.youtube.com/v/refndJ6Sk-g&amp;fs=1&amp;hd=1"><param name="movie" value="http://www.youtube.com/v/refndJ6Sk-g&amp;fs=1&amp;hd=1"/></object><br/><br/>Check out <a href="http://www.slideshare.net/segdeha/mobile-webkit-optimizations-tools" rel="nofollow">Andrew's slides</a>:<br/><object class="slideshare" type="application/x-shockwave-flash" data="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=mobile-webkit-optimizations-and-tools-110811172831-phpapp02"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=mobile-webkit-optimizations-and-tools-110811172831-phpapp02"/></object><br/><br/><strong>About this event</strong><br/>This event was presented by <a href="http://www.meetup.com/sv-web-jug/" rel="nofollow">Mountain View JavaScript Meetup Group</a> on <a href="http://www.meetup.com/javascript-9/events/28854751/" rel="nofollow">August 10, 2011</a>, and hosted by <a href="http://www.google.com" rel="nofollow">Google</a>.<br/><br/><strong>Want to learn more about mobile and open source development? </strong><br/>Check out some of our <a href="http://marakana.com/training/schedule.html" rel="nofollow">training courses</a> and <a href="http://marakana.com/techtv/" rel="nofollow">videos</a>. <br/>]]></content:encoded>
      </item>
    <item>
        <title>Pass String array from activity to service?</title>
        <link>http://marakana.com/forums/android/examples/431.html</link>
        <author>Rami Bazzi</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/431.html</guid>
        <pubDate>Sat, 20 Aug 2011 20:21:01 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Hello, I am new to Android development and been recently developing an application. Part of the application consists of launching a service process which runs in the background in order to do specific tasks at a specific time. The problem that I am facing is related to passing arrays from the activity to the service class. I know how it is implemented from one activity to another but it seems it's a bit different with services. Here is what I am trying to do:<br/><br/>from Activity:<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>Intent toService = new Intent();<br/>toService.setClass(this, protectionService.class);<br/>toService.putExtra("key",Paths);<br/>toService.putExtra("names",Names);<br/>startService(toService);<br/></pre>
		  </div><br/><br/>from Service class:<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>public void onStart(Intent intent, int startId) {<br/>// TODO Auto-generated method stub<br/>super.onStart(intent, startId);<br/>Toast.makeText(this, "Service running", Toast.LENGTH_SHORT).show();<br/>		<br/>Bundle extras = intent.getExtras();<br/>		<br/>Paths = extras.getStringArray("paths");<br/><br/>}<br/></pre>
		  </div><br/><br/>When I run the application on the emulator, it gives a NullPointerException here:<br/><br/><code class="inline">Paths = extras.getStringArray("paths");</code><br/><br/>any ideas on how to fix that? Any help is appreciated.]]></content:encoded>
      </item>
    <item>
        <title>Threading discussion page 69</title>
        <link>http://marakana.com/forums/android/learning_android_book/429.html</link>
        <author>Russ Petersen</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/429.html</guid>
        <pubDate>Mon, 15 Aug 2011 18:11:39 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[I'm new to Java but have programmed in C, C++, Perl, and Tcl extensively.   In the threading discussion on page 69 it shows the AsyncTask with variable arguments but I'm pretty confused as to how each of these arguments get mapped to the three methods listed.  In other words, how does the compiler know that the first arg listed as String get's mapped to a string array passed to doInBackground? Any good suggestions on where to find a clear description of how all this works?<br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>draw 9-patch</title>
        <link>http://marakana.com/forums/android/learning_android_book/424.html</link>
        <author>May Ghatghoon</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/424.html</guid>
        <pubDate>Fri, 12 Aug 2011 14:13:13 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Is there a similar application to draw 9-patch in windows? I don't have photoshop. I prefer an open source app. Appreciate the help.<br/>]]></content:encoded>
      </item>
    <item>
        <title>doubt about android application development</title>
        <link>http://marakana.com/forums/android/general/420.html</link>
        <author>Arun Kumar</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/420.html</guid>
        <pubDate>Mon, 08 Aug 2011 06:19:15 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Android application front end (GUI)are developed using the java ., why don't we use<br/>C/C++ for developing front end(i.e.GUI) in android mobile devices, is it possible to<br/>develop?]]></content:encoded>
      </item>
    <item>
        <title>Problem in Maps</title>
        <link>http://marakana.com/forums/android/general/418.html</link>
        <author>Gaurav Gupta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/418.html</guid>
        <pubDate>Fri, 05 Aug 2011 04:31:51 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[HI All<br/><br/>I have used the <strong>Tutorial: Android location service example</strong> <br/><br/><a href="http://marakana.com/forums/android/examples/311.html" rel="nofollow">http://marakana.com/forums/android/examples/311.html</a><br/><br/> and have used everything specified in the Example. But the problem is that Location is never updated. I am just able to see the map that too with wrong location . It always displays London although i live in India and text is never displayed in the TextView which we have taken for displaying the address .  <br/><br/><br/>Please help. <br/><br/>Regards<br/>Gaurav Gupta]]></content:encoded>
      </item>
    <item>
        <title>Yamba Project - crashing after adding toast</title>
        <link>http://marakana.com/forums/android/learning_android_book/415.html</link>
        <author>May Ghatghoon</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/415.html</guid>
        <pubDate>Wed, 03 Aug 2011 15:46:03 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[I am working on the Yamba project following the Android bootcamp video. In the Yamba project, everything works before I add the toast part. Even though the tweet is posted on the site, the toast doesn't work and I keep getting the error that "application yamba has stopped unexpectedly". <br/>Anyone can give a lead on that? ]]></content:encoded>
      </item>
    <item>
        <title>Example 9-2 UpdaterService fatal exception</title>
        <link>http://marakana.com/forums/android/learning_android_book/414.html</link>
        <author>Tommy Garver</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/414.html</guid>
        <pubDate>Wed, 03 Aug 2011 13:11:40 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[]]></content:encoded>
      </item>
    <item>
        <title>style.xml</title>
        <link>http://marakana.com/forums/android/learning_android_book/412.html</link>
        <author>Adrien Gueret</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/412.html</guid>
        <pubDate>Wed, 03 Aug 2011 00:18:44 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi marko,<br/>         i am working on the drawables, i have created the style.xml , its fine, but i created the for activity &lt;style name="activity"&gt;<br/>		&lt;item name="android:orientation"&gt;vertical&lt;/item&gt;<br/>		&lt;item name="android:layout_height"&gt;fill_parent&gt;&lt;/item&gt;<br/>		&lt;item name="android:layout_width"&gt;fill_parent&lt;/item&gt;<br/>		&lt;item name="android:background"&gt;@drawable/multibirdsblue&lt;/item&gt;<br/>	&lt;/style&gt;<br/>it show the error message in  "style.xml"  <br/>Description	Resource	Path	Location	Type<br/>error: Error: String types not allowed (at 'android:layout_height' with value 'fill_parent&gt;').	style.xml	/ Yamba2-2/res/values	line 11	Android AAPT Problem<br/> <br/><br/>what should i do , plz suggest me.<br/><br/>regards<br/>M Taqi]]></content:encoded>
      </item>
    <item>
        <title>afterTextChanged not working in my code wahts wrong with this code?</title>
        <link>http://marakana.com/forums/android/general/410.html</link>
        <author>Vijaykumar Rajagopal</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/410.html</guid>
        <pubDate>Mon, 01 Aug 2011 23:18:58 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[<div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">package com.vijay.mytweet;<br/><br/>import winterwell.jtwitter.Twitter;<br/>import winterwell.jtwitter.TwitterException;<br/>import android.app.Activity;<br/>import android.graphics.Color;<br/>import android.os.AsyncTask;<br/>import android.os.Bundle;<br/>import android.text.Editable;<br/>import android.text.TextWatcher;<br/>import android.util.Log;<br/>import android.view.View;<br/>import android.view.View.OnClickListener;<br/>import android.widget.Button;<br/>import android.widget.EditText;<br/>import android.widget.TextView;<br/>import android.widget.Toast;<br/><br/>public class MyTweetActivity extends Activity implements OnClickListener, TextWatcher{<br/>	private static final String TAG = "StatusActivity";<br/>	EditText status;<br/>	Button update;<br/>	TextView count;<br/>	Twitter twitter;<br/>    /** Called when the activity is first created. */<br/>    @Override<br/>    public void onCreate(Bundle savedInstanceState) {<br/>        super.onCreate(savedInstanceState);<br/>        setContentView(R.layout.mystatus);<br/>        <br/>        <br/>        // set edit text and button<br/>        status=(EditText)findViewById(R.id.status);<br/>        update=(Button)findViewById(R.id.update);<br/>        update.setOnClickListener(this);<br/>        <br/>        count=(TextView)findViewById(R.id.count);<br/>        count.setText(Integer.toString(140));<br/>        count.setTextColor(Color.GREEN);<br/>        count.addTextChangedListener(this);<br/>                <br/>       <br/>        <br/>        twitter=new Twitter("student","password");<br/>        twitter.setAPIRootUrl("http://yamba.marakana.com/api");<br/>        <br/>        <br/>        <br/>    }<br/>    <br/>    public void onClick(View v) {<br/>		String statuss=status.getText().toString();<br/>		new PostToTwitter().execute(statuss);<br/>		//twitter.setStatus(statuss);<br/>		Log.d(TAG, "onClicked");<br/>		<br/>	}<br/>    // posting to twitter is separate class for asyn<br/>    <br/>    class PostToTwitter extends AsyncTask&lt;String, Integer, String&gt;{<br/><br/>		@Override<br/>		protected String doInBackground(String... statuses) {<br/>			try{<br/>				Twitter.Status status=twitter.updateStatus(statuses[0]);<br/>				return status.getText();<br/>			}<br/>			catch(TwitterException e){<br/>				Log.e(TAG, e.toString());<br/>				e.printStackTrace();<br/>				return "Failed to post";<br/>			}<br/>		}<br/>		protected void onProgressUpdate(Integer... values) { <br/>			super.onProgressUpdate(values);<br/>			}<br/>		protected void onPostExecute(String result) { //<br/>			Toast.makeText(MyTweetActivity.this, result, Toast.LENGTH_LONG).show();<br/>			}<br/>    	<br/>    }<br/><br/>	<br/>	<br/><br/><br/>	<br/>	public void afterTextChanged(Editable textCount) {<br/>		int count1=140-textCount.length();<br/>		count.setText(Integer.toString(count1));<br/>		if(count1&lt;10) count.setTextColor(Color.YELLOW);<br/>		if(count1&lt;0) count.setTextColor(Color.RED);<br/>	}<br/><br/><br/>	<br/>	public void beforeTextChanged(CharSequence s, int start, int count, int after) {		<br/>	}<br/>	public void onTextChanged(CharSequence s, int start, int before, int count) {		<br/>	}<br/>}<br/><br/><br/><br/><br/>xml<br/><br/><br/>&lt;?xml version="1.0" encoding="utf-8"?&gt;<br/>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"<br/>    android:orientation="vertical"<br/>    android:layout_width="fill_parent"<br/>    android:layout_height="fill_parent"<br/>    &gt;<br/>&lt;TextView  <br/>    android:layout_width="fill_parent" <br/>    android:layout_height="wrap_content" <br/>    android:text="@string/hello"<br/>    android:textSize="30sp"<br/>    android:gravity="center"<br/>    android:layout_margin="10dp"<br/>    /&gt;<br/>&lt;TextView <br/>	android:id="@+id/count" <br/>	android:layout_width="wrap_content" <br/>	android:layout_height="wrap_content"<br/>	android:text="000"<br/>	android:layout_gravity="right"<br/>	android:layout_marginRight="10dp"/&gt;<br/>&lt;EditText <br/>	android:layout_width="fill_parent"<br/>	android:layout_height="fill_parent" <br/>	android:layout_weight="1"<br/>	android:hint="@string/hintText" <br/>	android:id="@+id/status"<br/>	android:gravity="top|center_horizontal" /&gt;<br/>&lt;Button <br/>	android:text="Update" <br/>	android:id="@+id/update" <br/>	android:layout_width="fill_parent" <br/>	android:layout_height="wrap_content"<br/>	android:textSize="20sp"/&gt;<br/>	<br/>&lt;/LinearLayout&gt;<br/></pre>
		  </div>]]></content:encoded>
      </item>
    <item>
        <title>adapter.notifyDataSetChanged() not refreshing my TimelineActivity</title>
        <link>http://marakana.com/forums/android/learning_android_book/409.html</link>
        <author>Adithya Narayan</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/409.html</guid>
        <pubDate>Sun, 31 Jul 2011 06:24:53 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi,<br/><br/>When my Updater Service is broadcasting a specified intent, my Broadcast Receiver associated with the Timeline Activity is receiving it. Now, the problem is after <code class="inline">cursor.requery()</code> the next statement <code class="inline">timelineAdapter.notifyDataSetChanged()</code> is having no effect on the Activity where <code class="inline">timelineAdapter</code> is the adapter which is responsible for mapping the data from database table columns to the ListView's attributes.<br/><br/>I was under the impression that when <code class="inline">timelineAdapter.notifyDataSetChanged()</code> is called automatically the <code class="inline">TimelineActivity.onResume()</code> method should be called. Am i right ? Or we need to call <code class="inline">TimelineActivity.onResume()</code> explicitly in order to refresh the Activity and the UI ?<br/><br/><br/><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>How Can i start the basic codes in HTML5?</title>
        <link>http://marakana.com/forums/html5/general/408.html</link>
        <author>Gagandeep Singh Sohal</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/408.html</guid>
        <pubDate>Sat, 30 Jul 2011 00:34:34 -0700</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[Hi,<br/><br/>Im new in HTML5 developing so can u provide me the knowledge that how can i start my first simple basic example with HTML5.<br/>Thanks in Advance,<br/>Gagan]]></content:encoded>
      </item>
    <item>
        <title>Cursor : Invalid Statement in fillWindow()</title>
        <link>http://marakana.com/forums/android/learning_android_book/406.html</link>
        <author>Adithya Narayan</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/406.html</guid>
        <pubDate>Fri, 29 Jul 2011 11:05:16 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi,<br/><br/>I am getting this error while the <blockquote>UpdaterService</blockquote> is broadcasting the Intent and the <blockquote>TimelineActivity </blockquote> is receiving it.<br/><br/>What i am doing is :<br/>Through Web i am updating a status. Then through my application i am starting the service manually and the service is fetching updates. When it is fetching my update (and any new updates if available ) the service is broadcasting the intent specified and my TimelineActivity is receiving it properly. but when it tried requering the cursor in <blockquote>onReceive</blockquote> i faced the below mentioned error. I was thinking that onPause might be getting called whenever i open the menu but that isn't the case as i verified using LogCat comments. I read somewhere that my database is not in scope when i am requering my cursor but now how do i figure that out ? I have closed the adapter's cursor and the database's cursor  wherever possible like onPause(),onStop() of TimelineActivity. That is of no use though as they aren't getting called at all in any way until i close the activity !<br/><br/><blockquote><strong>ERROR/Cursor(320): Invalid statement in fillWindow()</blockquote>. The error is occuring in the statement cursor.requery(). </strong></blockquote><br/><br/>1)TimelineActivity.java <br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">public class TimelineActivity extends BaseActivity {<br/><br/>	public static final String TAG = "TimelineActivity";<br/>	private Cursor cursor;<br/>	private ListView listTimeline;<br/>	//Adapter for connecting ListView and the cursor containing info from database<br/>	private SimpleCursorAdapter timelineAdapter;  <br/>	static final String[] FROM = { DBHelper.C_CREATED_AT, DBHelper.C_USER,<br/>	    DBHelper.C_TEXT }; <br/>	static final int[] TO = { R.id.textCreatedAt, R.id.textUser, R.id.textText };  <br/>	<br/>	YambaApplication yamba;<br/>	private TimelineReceiver timelineReceiver = null; <br/>	private IntentFilter intentFilter = new IntentFilter("com.pack.android.yamba.NEW_STATUS"); <br/>	<br/>	@Override<br/>	protected void onCreate(Bundle savedInstanceState) {<br/>		super.onCreate(savedInstanceState);<br/>		<br/>		setContentView(R.layout.timeline);<br/>		<br/>		//Fetch the views<br/>		listTimeline = (ListView) findViewById(R.id.listTimeline);<br/>		<br/>		yamba = (YambaApplication) getApplication();<br/>		if(yamba.getSharedPreferences().getString("username", null) == null)<br/>		{<br/>			startActivity(new Intent(this, PrefsActivity.class)); // <br/>			Toast.makeText(this, R.string.msgSetupPrefs, Toast.LENGTH_LONG).show();<br/>		}<br/>		<br/>		// Check if preferences have been set<br/>		if (yamba.getSharedPreferences().getString("username", null) == null) { // <br/>		  startActivity(new Intent(this, PrefsActivity.class));<br/>		  Toast.makeText(this, R.string.msgSetupPrefs, Toast.LENGTH_LONG).show();<br/>		}<br/>		<br/>		timelineReceiver = new TimelineReceiver();<br/>	}<br/>	<br/>	@Override<br/>	protected void onDestroy() {<br/>		super.onDestroy();<br/>		Log.d(TAG, "On Destroy of Timeline Activity called !");<br/>		//close the database<br/>		yamba.getStatusData().close();<br/>	}<br/>	<br/>	//TODO : check for onWindowFocusChanged(boolean hasFocus) method for detailed test<br/>	@Override<br/>	protected void onResume() {<br/>		super.onResume();<br/>		Log.d(TAG, "On Resume of Timeline Activity called !");<br/>		setUpList();<br/>		Log.d(TAG, "Setting up list completed !");<br/>		registerReceiver(timelineReceiver, intentFilter);<br/>	}<br/>	<br/>	@Override<br/>	protected void onPause() {<br/>		super.onPause();<br/>		Log.d(TAG, "On Pause of Timeline Activity called !");<br/>		Log.d(TAG, "In onPause timelineAdapter.getCursor().close() "+timelineAdapter.getCursor());<br/>		timelineAdapter.getCursor().close();<br/>		Log.d(TAG, "Closed timelineAdapter.getCursor");<br/>		Log.d(TAG, "In onPause cursor = "+cursor);<br/>		cursor.close();<br/>		Log.d(TAG, "Closed cursor");<br/>		unregisterReceiver(timelineReceiver);<br/>	}<br/>	<br/>	@Override<br/>	public void onWindowFocusChanged(boolean hasFocus) {<br/>		Log.d(TAG, "Does Timeline Activity has focus ? "+ hasFocus);<br/>	}<br/>	<br/>	@Override<br/>	protected void onStop() {<br/>		super.onStop();<br/>		Log.d(TAG, "OnStop of Timeline Activity called !");<br/>		Log.d(TAG, "In onStop timelineAdapter.getCursor().close() "+timelineAdapter.getCursor());<br/>		timelineAdapter.getCursor().close();<br/>		Log.d(TAG, "Closed timelineAdapter.getCursor");<br/>		Log.d(TAG, "In onStop cursor = "+cursor);<br/>		cursor.close();<br/>		Log.d(TAG, "Closed cursor");<br/>	}<br/>	<br/>	private void setUpList() {<br/>		<br/>		// Get the data from the database<br/>		// TODO : verify for honeycomb which will use loaderManagers for managing lifecycle of a cursor<br/>		Log.d(TAG, "Setting up the list");<br/>		cursor = yamba.getStatusData().getStatusUpdates();<br/>		Log.d(TAG, "cursor is "+ cursor);<br/>		startManagingCursor(cursor);<br/><br/>		// Setup Adapter<br/>		timelineAdapter = new SimpleCursorAdapter(this, R.layout.row, cursor, FROM, TO);<br/>		Log.d(TAG, "Timeline adapter is "+ timelineAdapter);<br/>		Log.d(TAG, "Count of data = " + timelineAdapter.getCount());<br/>		Log.d(TAG, "Is cursor empty ? " + timelineAdapter.isEmpty());<br/>		timelineAdapter.setViewBinder(VIEW_BINDER); // <br/>		listTimeline.setAdapter(timelineAdapter);<br/>	}<br/>	<br/>	static final ViewBinder VIEW_BINDER = new ViewBinder() {<br/>		<br/>		@Override<br/>		public boolean setViewValue(View view, Cursor cursor, int columnIndex) {<br/>			if(view.getId() != R.id.textCreatedAt)<br/>				return false;<br/>			<br/>			// Update the created at text to relative time<br/>			long timeStamp = cursor.getLong(columnIndex);<br/>			CharSequence relativetime = DateUtils.getRelativeTimeSpanString(timeStamp);<br/>			((TextView)view).setText(relativetime);<br/>			return true;<br/>		}<br/>	};<br/>	<br/>	class TimelineReceiver extends BroadcastReceiver <br/>	{<br/>		private static final String TAG = "TimelineReceiver";<br/>		@Override<br/>		public void onReceive(Context context, Intent intent) <br/>		{ <br/>			Log.d(TAG, "Just before requery, cursor is " + cursor);<br/>			cursor.requery(); //<br/>			Log.d(TAG, "Just after requery");<br/>			timelineAdapter.notifyDataSetChanged(); // <br/>		    Log.d(TAG, "on Receive of "+TAG);<br/>		}<br/>	}<br/>}</pre>
		  </div><br/><br/>2)UpdaterService<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">public class UpdaterService extends Service {<br/><br/>	private static final String TAG = "UpdaterService";<br/>	final static int DELAY = 60000;<br/>	private boolean runFlag;<br/>	private Thread updaterThread = null;<br/>	private YambaApplication yambaApplication = null;<br/>	private List&lt;Twitter.Status&gt; tweets = null;<br/>	<br/>	@Override<br/>	public IBinder onBind(Intent arg0) {<br/>		return null;<br/>	}<br/><br/>	@Override<br/>	public void onCreate() {<br/>		try<br/>		{<br/>		super.onCreate();<br/>		yambaApplication = (YambaApplication) getApplication();<br/>		Log.d(TAG, "onCreated of UpdaterService");<br/>		}<br/>		catch(Exception e)<br/>		{<br/>			Log.d(TAG, e.toString());<br/>		}<br/>	}<br/><br/>	@Override<br/>	public void onDestroy() {<br/>		try<br/>		{<br/>		super.onDestroy();<br/>		this.runFlag = false;<br/>		yambaApplication.setServiceRunning(false);<br/>		if(this.updaterThread != null)<br/>		{<br/>			this.updaterThread.interrupt();<br/>			this.updaterThread = null;<br/>		}<br/>		Log.d(TAG, "onDestroyed");<br/>		}<br/>		catch(Exception e)<br/>		{<br/>			Log.d(TAG, e.toString());<br/>		}<br/>	}<br/><br/>	@Override<br/>	public int onStartCommand(Intent intent, int flags, int startId) {<br/>		try<br/>		{<br/>			Log.d(TAG, "On Start Command of Updater Service");<br/>			updaterThread = new Thread(new UpdaterThread(),"Status Updater thread");<br/>			updaterThread.start();<br/>			yambaApplication.setServiceRunning(true);<br/>			this.runFlag = yambaApplication.isServiceRunning();<br/>			Log.d(TAG, "Is Yamba Applications' service running ? "+ yambaApplication.isServiceRunning());<br/>			Log.d(TAG, "Is Run flag true ? "+runFlag);<br/>			tweets = new ArrayList&lt;Twitter.Status&gt;();<br/>		}<br/>		catch(Exception e)<br/>		{<br/>			Log.d(TAG, e.toString());<br/>			return 0;<br/>		}<br/>		return START_STICKY;<br/>	}<br/>	<br/>	class UpdaterThread implements Runnable<br/>	{<br/>		UpdaterService updaterService = UpdaterService.this; <br/>		<br/>		@Override<br/>		public void run() <br/>		{<br/>			Log.d(TAG, "Inside Updater thread run !");<br/>			while(updaterService.runFlag)<br/>			{<br/>				Log.d(TAG, Thread.currentThread().getName()+" running");<br/>				try<br/>				{<br/>					YambaApplication yamba = (YambaApplication) updaterService<br/>						    .getApplication();  // <br/>					int newUpdates = yamba.fetchStatusUpdates(); // <br/>					if (newUpdates &gt; 0) <br/>					{ // <br/>					  Log.d(TAG, "We have a new status");<br/>					  <br/>					  //Broadcast intent so that timeline activity is updated whenever a new status is received<br/>					  Intent intent = new Intent("com.pack.android.yamba.NEW_STATUS");<br/>					  String NEW_STATUS_EXTRA_COUNT = "com.pack.android.yamba.EXTRA_COUNT";<br/>					  intent.putExtra(NEW_STATUS_EXTRA_COUNT, newUpdates);<br/>					  updaterService.sendBroadcast(intent);<br/>					}<br/>					<br/>					Log.d(TAG, "Updater thread going to sleep..");<br/>					Thread.sleep(DELAY);<br/>					Log.d(TAG, "Updater thread is about to resume..");<br/>				}<br/>				catch(InterruptedException ie)<br/>				{<br/>					updaterService.runFlag = false;<br/>					Log.d(TAG, ie.toString());<br/>					ie.printStackTrace();<br/>				}<br/>			}<br/>		}<br/>	}<br/>}</pre>
		  </div><br/><br/>3)YambaApplication<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">public class YambaApplication extends Application implements OnSharedPreferenceChangeListener<br/>{<br/>	private static final String TAG = YambaApplication.class.getSimpleName();<br/>	private Twitter twitter = null; <br/>	private SharedPreferences sharedPreferences = null;<br/>	private boolean serviceRunning = false;<br/>	<br/>	private StatusData statusData = null;<br/>		<br/>	public SharedPreferences getSharedPreferences() {<br/>		return sharedPreferences;<br/>	}<br/><br/>	public void setSharedPreferences(SharedPreferences sharedPreferences) {<br/>		this.sharedPreferences = sharedPreferences;<br/>	}<br/><br/>	public StatusData getStatusData() {<br/>		return statusData;<br/>	}<br/><br/>	public void setStatusData(StatusData statusData) {<br/>		this.statusData = statusData;<br/>	}<br/><br/>	public boolean isServiceRunning() {<br/>		return serviceRunning;<br/>	}<br/><br/>	public void setServiceRunning(boolean serviceRunning) {<br/>		this.serviceRunning = serviceRunning;<br/>	}<br/><br/>	public void setTwitter(Twitter twitter) {<br/>		this.twitter = twitter;<br/>	}<br/><br/>	@Override<br/>	public void onCreate() <br/>	{<br/>		super.onCreate();<br/>		sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);<br/>		sharedPreferences.registerOnSharedPreferenceChangeListener(this);<br/>		<br/>		statusData = new StatusData(getApplicationContext());<br/>		<br/>		Log.i(TAG, "onCreated");<br/>	}<br/>	<br/>	@Override<br/>	public void onSharedPreferenceChanged(SharedPreferences sharedPreferences,<br/>			String key) <br/>	{<br/>		this.twitter = null;<br/>	}<br/><br/>	@Override<br/>  	public void onTerminate() <br/>	{ <br/>		super.onTerminate();<br/>		Log.i(TAG, "onTerminated");<br/>	}<br/>	<br/>	public synchronized int fetchStatusUpdates()<br/>	{<br/>		 Log.d(TAG, "Fetching status updates");<br/>		 Twitter twitter = this.getTwitter();<br/>		 <br/>		  if (twitter == null) <br/>		  {<br/>			    Log.d(TAG, "Twitter connection info not initialized");<br/>			    return 0;<br/>		  }<br/>		  <br/>		  try <br/>		  {<br/>		    List&lt;Status&gt; statusUpdates = twitter.getFriendsTimeline();<br/>		    long latestStatusCreatedAtTime = this.getStatusData()<br/>		        .getLatestStatusCreatedAtTime();<br/>		    <br/>		    int count = 0;<br/>		    ContentValues values = new ContentValues();<br/>		    <br/>		    for (Status status : statusUpdates) <br/>		    {<br/>				values.clear();<br/>				values.put(StatusData.C_ID, status.getId());<br/>				long createdAt = status.getCreatedAt().getTime();<br/>				values.put(StatusData.C_CREATED_AT, createdAt);<br/>				values.put(StatusData.C_TEXT, status.getText());<br/>				values.put(StatusData.C_USER, status.getUser().getName());<br/>				Log.d(TAG, "Got update with id " + status.getId() + ". Saving");<br/>				this.getStatusData().insertOrIgnore(values);<br/>				if (latestStatusCreatedAtTime &lt; createdAt) {<br/>					count++;<br/>				}<br/>		    }<br/>		    Log.d(TAG, count &gt; 0 ? "Got " + count + " status updates"<br/>		        : "No new status updates");<br/>		    <br/>		    return count;<br/>		  } <br/>		  catch (RuntimeException e) <br/>		  {<br/>		    Log.e(TAG, "Failed to fetch status updates", e);<br/>		    return 0;<br/>		  }<br/>	}<br/>	<br/>	public synchronized Twitter getTwitter() <br/>	{ <br/>	  if (this.twitter == null) <br/>	  {<br/>	    String username = sharedPreferences.getString("username", "");<br/>	    String password = sharedPreferences.getString("password", "");<br/>	    String apiRoot = sharedPreferences.getString("apiRoot",<br/>	        "http://yamba.marakana.com/api");<br/>	    <br/>	    if (!TextUtils.isEmpty(username) &amp;&amp; !TextUtils.isEmpty(password)<br/>	        &amp;&amp; !TextUtils.isEmpty(apiRoot)) <br/>	    {<br/>	      this.twitter = new Twitter(username, password);<br/>	      this.twitter.setAPIRootUrl(apiRoot);<br/>	    }<br/>	  }<br/>	  return this.twitter;<br/>	}<br/>}</pre>
		  </div><br/><br/>4)StatusData<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">public class StatusData <br/>{<br/>	private static final String TAG = StatusData.class.getSimpleName();<br/>	private static final String DATABASE = "timeline.db"; // <br/>	private static final int VERSION = 1; // <br/>	public static final String TABLE = "timeline"; //<br/>	<br/>	public static final String C_ID = BaseColumns._ID;<br/>	public static final String C_CREATED_AT = "created_at";<br/>	public static final String C_SOURCE = "source";<br/>	public static final String C_TEXT = "txt";<br/>	public static final String C_USER = "user";<br/>	<br/>	private static final String GET_ALL_ORDER_BY = C_CREATED_AT + " DESC";<br/>	private static final String[] MAX_CREATED_AT_COLUMNS = { "max("<br/>		    + StatusData.C_CREATED_AT + ")" };<br/>	private static final String[] DB_TEXT_COLUMNS = { C_TEXT };<br/>	<br/>	private final DBHelper dbHelper;<br/>	<br/>	public StatusData(Context context) {<br/>		this.dbHelper = new DBHelper(context);<br/>		Log.i(TAG, "Initialized data");<br/>	}<br/><br/>	//Insert data into the database and ignore if there are any conflicts<br/>	public void insertOrIgnore(ContentValues values) <br/>	{  // <br/>	   Log.d(TAG, "insertOrIgnore on " + values);<br/>	   SQLiteDatabase db = this.dbHelper.getWritableDatabase();  // <br/>	   try <br/>	   {<br/>		   db.insertWithOnConflict(TABLE, null, values,<br/>	         SQLiteDatabase.CONFLICT_IGNORE);  // <br/>	   }<br/>	   finally <br/>	   {<br/>	     db.close(); // <br/>	   }<br/>	}<br/>	<br/>	/**<br/>	 *<br/>	 * @return Cursor where the columns are _id, created_at, user, txt<br/>	 */<br/>	public Cursor getStatusUpdates() {  // <br/>		   SQLiteDatabase db = this.dbHelper.getReadableDatabase();<br/>		   return db.query(TABLE, null, null, null, null, null, GET_ALL_ORDER_BY);<br/>	}<br/>	<br/>	  /**<br/>	   *<br/>	   * @return Timestamp of the latest status we have it the database<br/>	   */<br/>	  public long getLatestStatusCreatedAtTime() {  // <br/>	    SQLiteDatabase db = this.dbHelper.getReadableDatabase();<br/>	    try {<br/>	      Cursor cursor = db.query(TABLE, MAX_CREATED_AT_COLUMNS, null, null, null,<br/>	          null, null);<br/>	      try {<br/>	        return cursor.moveToNext() ? cursor.getLong(0) : Long.MIN_VALUE;<br/>	      } finally {<br/>	        cursor.close();<br/>	      }<br/>	    } finally {<br/>	      db.close();<br/>	    }<br/>	  }<br/>	  /**<br/>	   *<br/>	   * @param id of the status we are looking for<br/>	   * @return Text of the status<br/>	   */<br/>	  public String getStatusTextById(long id) {  // <br/>	    SQLiteDatabase db = this.dbHelper.getReadableDatabase();<br/>	    try {<br/>	      Cursor cursor = db.query(TABLE, DB_TEXT_COLUMNS, C_ID + "=" + id, null,<br/>	          null, null, null);<br/>	      try {<br/>	        return cursor.moveToNext() ? cursor.getString(0) : null;<br/>	      } finally {<br/>	        cursor.close();<br/>	      }<br/>	    } finally {<br/>	      db.close();<br/>	    }<br/>	  }  <br/>	<br/>	public void close()<br/>	{<br/>		this.dbHelper.close();<br/>	}<br/>	<br/>	public void delete()<br/>	{<br/>		<br/>	}<br/>	<br/>	class DBHelper extends SQLiteOpenHelper{<br/><br/>		private DBHelper(Context context) {<br/>			super(context, DATABASE, null, VERSION);<br/>		}<br/>		<br/>		@Override<br/>		public void onCreate(SQLiteDatabase db) {<br/>			<br/>			Log.i(TAG, "Creating Database");<br/>			String sql = "create table " + TABLE + " (" + C_ID + " int primary key, "<br/>		    + C_CREATED_AT + " int, " + C_USER + " text, " + C_TEXT + " text, " + C_SOURCE + " text)";<br/>			<br/>			db.execSQL(sql);<br/>			<br/>			Log.d(TAG, "Created a table");<br/>		}	<br/><br/>		@Override<br/>		public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {<br/>			<br/>//			db.execSQL("alter table " + TABLE + " add " + C_SOURCE + " text");<br/>			db.execSQL("drop table if exists " + TABLE); // drops the old database<br/>			Log.d(TAG, "onUpdated");<br/>			onCreate(db); // run onCreate to get new database<br/>		}<br/>	}<br/>}</pre>
		  </div><br/><br/><br/>After this error my Timeline Activity doesn't anything on the ListView of the window. <br/>Please help.<br/><br/>Can someone explain ?<br/><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>BootReceiver not starting UpdaterService</title>
        <link>http://marakana.com/forums/android/learning_android_book/405.html</link>
        <author>Adithya Narayan</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/405.html</guid>
        <pubDate>Thu, 28 Jul 2011 07:10:41 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi,<br/><br/>I have registered my BootReceiver (which is responsible for starting the UpdaterService which will fetch all the statuses from <a href="http://yamba.marakana.com/api" rel="nofollow">http://yamba.marakana.com/api</a>) with AndroidManifest file also.<br/>But after my device starts up Updater Service doesn't show up at the following location Settings-&gt;Applications-&gt;Running Services. <br/>Upto this point my application works fine. <br/><br/>Following are my source files :<br/>1)UpdaterService.java<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">public class UpdaterService extends Service {<br/><br/>	private static final String TAG = "UpdaterService";<br/>	final static int DELAY = 60000;<br/>	private boolean runFlag;<br/>	private Thread updaterThread = null;<br/>	private YambaApplication yambaApplication = null;<br/>	private List&lt;Twitter.Status&gt; tweets = null;<br/>	<br/>	private SQLiteDatabase db = null;<br/>	<br/>	@Override<br/>	public IBinder onBind(Intent arg0) {<br/>		return null;<br/>	}<br/><br/>	@Override<br/>	public void onCreate() {<br/>		super.onCreate();<br/>		yambaApplication = (YambaApplication) getApplication();<br/>		Log.d(TAG, "onCreated of UpdaterService");<br/>	}<br/><br/>	@Override<br/>	public void onDestroy() {<br/>		super.onDestroy();<br/>		this.runFlag = false;<br/>		yambaApplication.setServiceRunning(false);<br/>		if(this.updaterThread != null)<br/>		{<br/>			this.updaterThread.interrupt();<br/>			this.updaterThread = null;<br/>		}<br/>		Log.d(TAG, "onDestroyed");<br/>	}<br/><br/>	@Override<br/>	public int onStartCommand(Intent intent, int flags, int startId) {<br/>		Log.d(TAG, "On Start Command of Updater Service");<br/>		updaterThread = new Thread(new UpdaterThread(),"Status Updater thread");<br/>		updaterThread.start();<br/>		yambaApplication.setServiceRunning(true);<br/>		this.runFlag = yambaApplication.isServiceRunning();<br/>		Log.d(TAG, "Is Yamba Applications' service running ? "+ yambaApplication.isServiceRunning());<br/>		Log.d(TAG, "Is Run flag true ? "+runFlag);<br/>		tweets = new ArrayList&lt;Twitter.Status&gt;();<br/>		return START_STICKY;<br/>	}<br/>	<br/>	class UpdaterThread implements Runnable<br/>	{<br/>		UpdaterService updaterService = UpdaterService.this; <br/>		<br/>		@Override<br/>		public void run() <br/>		{<br/>			Log.d(TAG, "Inside Updater thread run !");<br/>			while(updaterService.runFlag)<br/>			{<br/>				Log.d(TAG, Thread.currentThread().getName()+" running");<br/>				try<br/>				{<br/>					YambaApplication yamba = (YambaApplication) updaterService<br/>						    .getApplication();  // <br/>					int newUpdates = yamba.fetchStatusUpdates(); // <br/>					if (newUpdates &gt; 0) <br/>					{ // <br/>					  Log.d(TAG, "We have a new status");<br/>					}<br/>					<br/>					Log.d(TAG, "Updater thread going to sleep..");<br/>					Thread.sleep(DELAY);<br/>					Log.d(TAG, "Updater thread is about to resume..");<br/>				}<br/>				catch(InterruptedException ie)<br/>				{<br/>					updaterService.runFlag = false;<br/>					Log.d(TAG, ie.toString());<br/>					ie.printStackTrace();<br/>				}<br/>			}<br/>		}<br/>	}<br/>}</pre>
		  </div><br/><br/>2)BootReceiver.java<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">public class BootReceiver extends BroadcastReceiver {<br/><br/>	private static final String TAG = "BootReceiver";<br/>	<br/>	@Override<br/>	public void onReceive(Context context, Intent intent) {<br/><br/>		context.startService(new Intent(context,UpdaterService.class));<br/>		Log.d(TAG, "On Receive of Boot Receiver");<br/>	}<br/>}</pre>
		  </div><br/><br/>3)AndroidManifest.xml<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">&lt;?xml version="1.0" encoding="utf-8"?&gt;<br/>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"<br/>      package="com.pack.android.yamba"<br/>      android:versionCode="1"<br/>      android:versionName="1.0"&gt;<br/>    &lt;uses-sdk android:minSdkVersion="4" /&gt;<br/><br/>    &lt;application android:icon="@drawable/icon" android:label="@string/app_name" android:name=".application.YambaApplication"&gt;<br/>        &lt;activity android:name=".activity.StatusActivity"<br/>                  android:label="@string/app_name"&gt;<br/>        &lt;/activity&gt;<br/>        &lt;activity android:name=".activity.PrefsActivity" android:label="@string/titlePrefs"&gt;&lt;/activity&gt;<br/>        &lt;service android:name=".service.UpdaterService"&gt;&lt;/service&gt;<br/>        &lt;activity android:name=".activity.TimelineActivity" android:label="@string/titleTimelineActivity"&gt;<br/>        	&lt;intent-filter&gt;<br/>                &lt;action android:name="android.intent.action.MAIN" /&gt;<br/>                &lt;category android:name="android.intent.category.LAUNCHER" /&gt;<br/>            &lt;/intent-filter&gt;<br/>        &lt;/activity&gt;<br/>        &lt;receiver android:name=".receiver.BootReceiver"&gt;<br/>        	&lt;intent-filter&gt;<br/>  				&lt;action android:name="android.intent.action.BOOT_COMPLETED" /&gt;<br/>			&lt;/intent-filter&gt;<br/>        &lt;/receiver&gt;<br/>    &lt;/application&gt;<br/>    <br/>    &lt;uses-permission android:name="android.permission.INTERNET"/&gt;<br/>    &lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/&gt;<br/>&lt;/manifest&gt;<br/><br/><br/></pre>
		  </div><br/><br/>The Log comments are showing up on LogCat but only sometimes but whenever they show up i have never been able to see the running service at the following location : Settings-&gt;Applications-&gt;Running Services. Whenever i manually start the service it shows up in Running Services and all the log comments are also showing up.<br/><br/>Can anyone please help ?<br/><br/>Adithya.<br/>]]></content:encoded>
      </item>
    <item>
        <title>Video: Introduction to Git with Scott Chacon of GitHub</title>
        <link>http://marakana.com/forums/python/python/404.html</link>
        <author>Max Walker</author>
        <guid isPermaLink="true">http://marakana.com/forums/python/python/404.html</guid>
        <pubDate>Wed, 27 Jul 2011 16:28:21 -0700</pubDate>
        <category>Python - Python</category>
        <content:encoded><![CDATA[We're kicking off a new <a href="http://marakana.com/forums/git/git/" rel="nofollow">Git forum</a>, and we've got an awesome presentation from <a href="http://scottchacon.com/" rel="nofollow">Scott Chacon</a> of <a href="http://www.github.com" rel="nofollow">GitHub</a>. If you use a version control system, check out this video <a href="http://marakana.com/forums/git/git/399.html" rel="nofollow">Introduction to Git</a>.<br/>]]></content:encoded>
      </item>
    <item>
        <title>Video: Introduction to Git with Scott Chacon of GitHub</title>
        <link>http://marakana.com/forums/java/general/403.html</link>
        <author>Max Walker</author>
        <guid isPermaLink="true">http://marakana.com/forums/java/general/403.html</guid>
        <pubDate>Wed, 27 Jul 2011 16:27:52 -0700</pubDate>
        <category>Java - General</category>
        <content:encoded><![CDATA[We're kicking off a new <a href="http://marakana.com/forums/git/git/" rel="nofollow">Git forum</a>, and we've got an awesome presentation from <a href="http://scottchacon.com/" rel="nofollow">Scott Chacon</a> of <a href="http://www.github.com" rel="nofollow">GitHub</a>. If you use a version control system, check out this video <a href="http://marakana.com/forums/git/git/399.html" rel="nofollow">Introduction to Git</a>.<br/>]]></content:encoded>
      </item>
    <item>
        <title>Video: Introduction to Git with Scott Chacon of GitHub</title>
        <link>http://marakana.com/forums/html5/general/402.html</link>
        <author>Max Walker</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/402.html</guid>
        <pubDate>Wed, 27 Jul 2011 16:27:20 -0700</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[We're kicking off a new <a href="http://marakana.com/forums/git/git/" rel="nofollow">Git forum</a>, and we've got an awesome presentation from <a href="http://scottchacon.com/" rel="nofollow">Scott Chacon</a> of <a href="http://www.github.com" rel="nofollow">GitHub</a>. If you use a version control system, check out this video <a href="http://marakana.com/forums/git/git/399.html" rel="nofollow">Introduction to Git</a>.<br/>]]></content:encoded>
      </item>
    <item>
        <title>Video: Introduction to Git with Scott Chacon of GitHub</title>
        <link>http://marakana.com/forums/android/general/401.html</link>
        <author>Max Walker</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/401.html</guid>
        <pubDate>Wed, 27 Jul 2011 16:26:53 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[We're kicking off a new <a href="http://marakana.com/forums/git/git/" rel="nofollow">Git forum</a>, and we've got an awesome presentation from <a href="http://scottchacon.com/" rel="nofollow">Scott Chacon</a> of <a href="http://www.github.com" rel="nofollow">GitHub</a>. If you use a version control system, check out this video <a href="http://marakana.com/forums/git/git/399.html" rel="nofollow">Introduction to Git</a>.<br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>Video: Introduction to Git with Scott Chacon of GitHub</title>
        <link>http://marakana.com/forums/ruby/ruby_on_rails/400.html</link>
        <author>Max Walker</author>
        <guid isPermaLink="true">http://marakana.com/forums/ruby/ruby_on_rails/400.html</guid>
        <pubDate>Wed, 27 Jul 2011 16:11:09 -0700</pubDate>
        <category>Ruby - Ruby on Rails</category>
        <content:encoded><![CDATA[So, we're kicking off our new <a href="http://marakana.com/forums/git/git/" rel="nofollow">Git forum</a> with an awesome intro to <a href="http://git-scm.com/" rel="nofollow">Git</a> from <a href="http://www.github.com" rel="nofollow">GitHub</a>'s <a href="http://scottchacon.com/" rel="nofollow">Scott Chacon</a>. Thought all you Rubyists might be interested. Go check out the video <a href="http://marakana.com/forums/git/git/399.html" rel="nofollow">Introduction to Git</a>, and don't forget to subscribe to the forum to catch more awesome Git content.]]></content:encoded>
      </item>
    <item>
        <title>Including Swipe Gestures and Keyboard Shortcuts</title>
        <link>http://marakana.com/forums/html5/general/398.html</link>
        <author>Mitesh Gohil</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/398.html</guid>
        <pubDate>Wed, 27 Jul 2011 08:46:14 -0700</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[Hi,<br/><br/>I have created a HTML5 eBrochure to showcase products, I need the pages to be changed when swiped on an iOS device or by the arrow keys when on a computer.<br/><br/>Currently I have arrows to navigate to the next page and previous pages but I just cant get the swipe and keyboard shortcuts to work.<br/><br/>Have a look at the link below to get a better idea of what I have created.<br/><br/>http://www.ndsebrochures.com/ytemp/dynamic/dynamic.html<br/><br/>Many thanks and any help will be much appreciated.<br/><br/>Thanks]]></content:encoded>
      </item>
    <item>
        <title>Clock Demo</title>
        <link>http://marakana.com/forums/android/examples/395.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/395.html</guid>
        <pubDate>Tue, 26 Jul 2011 09:05:58 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Here's a simple example on how to use Broadcast Receivers to create a clock application.<br/><br/><img src="https://marakana.com/static/tutorials/Clock.png" alt=""/><br/><br/>ClockActivity<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>package com.marakana.android.clock;<br/><br/>import java.util.Date;<br/><br/>import android.app.Activity;<br/>import android.content.BroadcastReceiver;<br/>import android.content.Context;<br/>import android.content.Intent;<br/>import android.content.IntentFilter;<br/>import android.os.Bundle;<br/>import android.util.Log;<br/>import android.widget.ImageView;<br/><br/>public class ClockActivity extends Activity {<br/>    static final String TAG = "ClockActivity";<br/>    TickReceiver receiver;<br/>    IntentFilter filter;<br/>    ImageView h1View, h2View, m1View, m2View;<br/>    <br/>    <br/>    <br/>    @Override<br/>    public void onCreate(Bundle savedInstanceState) {<br/>        super.onCreate(savedInstanceState);<br/>        setContentView(R.layout.main);<br/>    <br/>        h1View = (ImageView)findViewById(R.id.h1);<br/>        h2View = (ImageView)findViewById(R.id.h2);<br/>        m1View = (ImageView)findViewById(R.id.m1);<br/>        m2View = (ImageView)findViewById(R.id.m2);<br/>        <br/>        setTime();<br/>        <br/>        receiver = new TickReceiver();<br/>        filter = new IntentFilter(Intent.ACTION_TIME_TICK);        <br/>    }<br/><br/>    @Override<br/>    protected void onStart() {<br/>      super.onStart();<br/>      registerReceiver(receiver, filter);<br/>    }<br/><br/>    @Override<br/>    protected void onStop() {<br/>      super.onStop();<br/>      unregisterReceiver(receiver);<br/>    }<br/>    <br/>    <br/>    public class TickReceiver extends BroadcastReceiver {<br/>      static final String TAG = "TickReceiver";<br/>      <br/>      @Override<br/>      public void onReceive(Context arg0, Intent arg1) {<br/>     <br/>        setTime();<br/>        Log.d(TAG, "tick...");<br/>      }<br/>    }<br/>    <br/>    private void setTime() {<br/>      Date now = new Date();<br/>      int hours = now.getHours();<br/>      hours = (hours&gt;12)?hours-12:hours;<br/>      int minutes  = now.getMinutes();<br/>      int h1 = hours/10;<br/>      int h2 = hours - h1*10;<br/>      int m1 = minutes/10;<br/>      int m2 = minutes -  m1*10;<br/>      <br/>      Log.d(TAG, String.format("%d:%d -&gt; %d %d: %d %d",hours, minutes, h1, h2, m1, m2));<br/>      <br/>      h1View.setImageResource( numToRes(h1) );<br/>      h2View.setImageResource( numToRes(h2) );<br/>      m1View.setImageResource( numToRes(m1) );<br/>      m2View.setImageResource( numToRes(m2) );<br/>    }<br/>    <br/>    private int numToRes( int num ) {<br/>      switch (num) {<br/>      case 1: return R.drawable.number1;<br/>      case 2: return R.drawable.number2;<br/>      case 3: return R.drawable.number3;<br/>      case 4: return R.drawable.number4;<br/>      case 5: return R.drawable.number5;<br/>      case 6: return R.drawable.number6;<br/>      case 7: return R.drawable.number7;<br/>      case 8: return R.drawable.number8;<br/>      case 9: return R.drawable.number9;<br/>      case 0: return R.drawable.number0;<br/>      default: return R.drawable.icon;<br/>      }<br/>    }<br/>    <br/>}<br/></pre>
		  </div><br/><br/>and main.xml (could use some spicing up!)<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/><br/>&lt;?xml version="1.0" encoding="utf-8"?&gt;<br/>&lt;LinearLayout<br/>  xmlns:android="http://schemas.android.com/apk/res/android"<br/>  android:layout_width="fill_parent"<br/>  android:layout_height="fill_parent"<br/>  android:layout_gravity="center"&gt;<br/><br/>  &lt;ImageView<br/>    android:id="@+id/h1"<br/>    android:layout_width="wrap_content"<br/>    android:layout_height="wrap_content" <br/>    android:src="@drawable/number1"/&gt;<br/><br/>  &lt;ImageView<br/>    android:id="@+id/h2"<br/>    android:layout_width="wrap_content"<br/>    android:layout_height="wrap_content"<br/>    android:src="@drawable/number2" /&gt;<br/><br/>  &lt;ImageView<br/>    android:id="@+id/m1"<br/>    android:layout_width="wrap_content"<br/>    android:layout_height="wrap_content"<br/>    android:src="@drawable/number3" /&gt;<br/><br/>  &lt;ImageView<br/>    android:id="@+id/m2"<br/>    android:layout_width="wrap_content"<br/>    android:layout_height="wrap_content" <br/>    android:src="@drawable/number4" /&gt;<br/><br/>&lt;/LinearLayout&gt;<br/></pre>
		  </div><br/><br/>Entire code is here:<br/><a href="https://github.com/marakana/android-demos/tree/master/Clock" rel="nofollow">https://github.com/marakana/android-demos/tree/master/Clock</a><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>((YambaApplication) getApplication()).getStatusData().delete();</title>
        <link>http://marakana.com/forums/android/learning_android_book/394.html</link>
        <author>Adithya Narayan</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/394.html</guid>
        <pubDate>Tue, 26 Jul 2011 08:19:34 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi,<br/><br/>Can anyone explain what does this message do  as in the book nowhere it is mentioned about it ? Probably it deletes all the data in the database ! Can anyone point that out ?<br/><br/>Adithya.]]></content:encoded>
      </item>
    <item>
        <title>Android Building Blocks at OSCON</title>
        <link>http://marakana.com/forums/android/general/393.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/393.html</guid>
        <pubDate>Mon, 25 Jul 2011 08:26:29 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[This are artifacts from <a href="http://www.oscon.com/oscon2011/public/schedule/detail/18753" rel="nofollow">Android Building Blocks</a> presentation at OSCON.<br/><br/>Slides:<br/><a href="https://marakana.com/static/slides/AndroidMainBuildingBlocks.html" rel="nofollow">https://marakana.com/static/slides/AndroidMainBuildingBlocks.html</a><br/><br/>Code:<br/><a href="https://github.com/marakana/android-demos" rel="nofollow">https://github.com/marakana/android-demos</a><br/><a href="https://github.com/marakana/LearningAndroidYamba" rel="nofollow">https://github.com/marakana/LearningAndroidYamba</a><br/><a href="https://github.com/marakana/yamba" rel="nofollow">https://github.com/marakana/yamba</a><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>Calling onUpgrade of SQLiteOpenHelper</title>
        <link>http://marakana.com/forums/android/learning_android_book/392.html</link>
        <author>Adithya Narayan</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/392.html</guid>
        <pubDate>Mon, 25 Jul 2011 01:47:05 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi,<br/><br/>How do we call <blockquote>android.database.sqlite.SQLiteOpenHelper</blockquote> class's <blockquote>onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion)</blockquote> method ? <br/>When does this method get called ? What is the purpose of this method ?<br/><br/>Can anyone give me a gist of it ?<br/><br/><br/><br/>Thanks,<br/>Adithya.<br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>HTML5 Demo : Windows 8 dashboard being built with Canvas and JS</title>
        <link>http://marakana.com/forums/html5/general/391.html</link>
        <author>Jose Fajardo</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/391.html</guid>
        <pubDate>Sun, 24 Jul 2011 05:26:34 -0700</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[I started a set of demo's that show me trying to create a Windows 8 like dashboard with Canvas and Javascript.<br/><br/><a href="http://discover.cloudapp.net" rel="nofollow">http://discover.cloudapp.net</a> <br/><br/>It's a very long and tedious process but I wanted to share with everyone because I'm finding it really cool what can be done with HTML5 and modern browsers (like IE9) ... <br/><br/>I'm having alot of fun, and I hope I can learn alot from others in these forums :)]]></content:encoded>
      </item>
    <item>
        <title>Web page Radio buttons non-functional on WebView; Issue?</title>
        <link>http://marakana.com/forums/android/general/390.html</link>
        <author>Omkar Rath</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/390.html</guid>
        <pubDate>Fri, 22 Jul 2011 13:53:07 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Using Android 2.2. API level 8.<br/><br/>Best and quickest way to present my problem is perhaps this:<br/><br/>1 - On your browser, go to <a href="http://www.number2.com/exams/sat/daily/question/index.cfm" rel="nofollow">http://www.number2.com/exams/sat/daily/question/index.cfm</a><br/><br/>2 - Notice how the buttons look (image) and function (Heh, heh, answer the SAT Q at your own risk ;-) )<br/><br/>3 - If you were to try to show the page on a WebView widget, the images attached to the answer buttons say A,B,C,D,E do not render (as they do on a browser) – I get non-filled rectangles (at least on my AVD emulator). Secondly, when I can click on any of the "rectangles", they briefly get hilited but the hilite does not “stick”, so its hard to tell whether one pressed A or B or ... E.<br/><br/><br/>What I'm grappling with is, wherein lies the issue? Is it a Javascript error? Iff so, how do I see those javascript errors?<br/><br/>BTW Javascript is enabled on the WebView object.<br/><br/>TIA,<br/><br/>Omkar]]></content:encoded>
      </item>
    <item>
        <title>Tutorial Req. for Custom Content Provider for Multiple tables</title>
        <link>http://marakana.com/forums/android/examples/389.html</link>
        <author>Shardul Jain</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/389.html</guid>
        <pubDate>Thu, 21 Jul 2011 08:27:42 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Requesting a tutorial for Custom Content Provider for Multiple Tables. There isn't a good tutorial anywhere although its one of the more important techniques for data handling in an Android app.]]></content:encoded>
      </item>
    <item>
        <title>unexception exception while posting</title>
        <link>http://marakana.com/forums/android/learning_android_book/388.html</link>
        <author>Adithya Narayan</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/388.html</guid>
        <pubDate>Thu, 21 Jul 2011 06:57:01 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi,<br/><br/>I have been posting successfully to <a href="http://yamba.marakana.com/api" rel="nofollow">http://yamba.marakana.com/api</a> through the yamba application..but exactly after 2 attempts the following exception apepars :<br/><br/><blockquote>winterwell.jtwitter.TwitterException$RateLimit: Bad Request<br/>	at winterwell.jtwitter.URLConnectionHttpClient.processError(URLConnectionHttpClient.java:148)<br/>	at winterwell.jtwitter.URLConnectionHttpClient.post(URLConnectionHttpClient.java:219)<br/>	at winterwell.jtwitter.Twitter.post(Twitter.java:1944)<br/>	at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:2555)<br/>	at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:2502)<br/>	at com.pack.android.yamba.activity.StatusActivity$PostToTwitter.doInBackground(StatusActivity.java:109)<br/>	at com.pack.android.yamba.activity.StatusActivity$PostToTwitter.doInBackground(StatusActivity.java:1)<br/>	at android.os.AsyncTask$2.call(AsyncTask.java:185)<br/>	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)<br/>	at java.util.concurrent.FutureTask.run(FutureTask.java:137)<br/>	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)<br/>	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)<br/>	at java.lang.Thread.run(Thread.java:1096)</blockquote><br/><br/>Further stack trace says :<br/><br/><blockquote>07-21 19:16:45.394: ERROR/AndroidRuntime(1611): Caused by: java.lang.RuntimeException: java.net.SocketTimeoutException<br/>07-21 19:16:45.394: ERROR/AndroidRuntime(1611):     <br/>at winterwell.jtwitter.URLConnectionHttpClient.toString(URLConnectionHttpClient.java:288)<br/>at winterwell.jtwitter.URLConnectionHttpClient.toString(URLConnectionHttpClient.java:266)<br/>at winterwell.jtwitter.URLConnectionHttpClient.toString(URLConnectionHttpClient.java:266)<br/>at winterwell.jtwitter.URLConnectionHttpClient.toString(URLConnectionHttpClient.java:266)<br/>at winterwell.jtwitter.URLConnectionHttpClient.toString(URLConnectionHttpClient.java:266)<br/>at winterwell.jtwitter.URLConnectionHttpClient.toString(URLConnectionHttpClient.java:266)<br/>at winterwell.jtwitter.URLConnectionHttpClient.toString(URLConnectionHttpClient.java:266)<br/>at winterwell.jtwitter.URLConnectionHttpClient.toString(URLConnectionHttpClient.java:266)<br/>at winterwell.jtwitter.URLConnectionHttpClient.toString(URLConnectionHttpClient.java:266)<br/>at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)<br/>... 4 more<br/><br/></blockquote><br/><br/>and further down:<br/><br/><blockquote>07-21 19:16:45.394: ERROR/AndroidRuntime(1611): Caused by: java.net.SocketTimeoutException<br/>at org.apache.harmony.luni.net.PlainSocketImpl.read(PlainSocketImpl.java:564)<br/>at org.apache.harmony.luni.net.SocketInputStream.read(SocketInputStream.java:88)<br/>at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl$LocalCloseInputStream.read(HttpURLConnectionImpl.java:152)<br/>at java.io.InputStreamReader.read(InputStreamReader.java:275)<br/>at java.io.BufferedReader.fillBuf(BufferedReader.java:155)<br/>at java.io.BufferedReader.read(BufferedReader.java:261)<br/>at winterwell.jtwitter.URLConnectionHttpClient.toString(URLConnectionHttpClient.java:281)<br/>... 13 more<br/></blockquote><br/><br/>I get the following warning also :<br/><blockquote>07-21 19:16:44.644: INFO/global(1611): Default buffer size used in BufferedWriter constructor. It would be better to be explicit if an 8k-char buffer is required.</blockquote><br/><br/><br/>Can anyone please explain ?<br/><br/>Adithya.<br/>]]></content:encoded>
      </item>
    <item>
        <title>Handling Threads In android</title>
        <link>http://marakana.com/forums/android/general/386.html</link>
        <author>Karan Dhawan</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/386.html</guid>
        <pubDate>Wed, 20 Jul 2011 05:40:31 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Hi<br/><br/>I have a application which does some background processes like downloading an XML from a server parsing it. I am performing these tasks in Threads.<br/>The problem comes when Sometimes threads are not getting CPU time for long time. It could be anytime between 15 minutes to some hours, and then the thread start behaving properly . Please specify how should i handle this. ]]></content:encoded>
      </item>
    <item>
        <title>Camera Issue on 1.6 Android</title>
        <link>http://marakana.com/forums/android/general/385.html</link>
        <author>Ankit Kasliwal</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/385.html</guid>
        <pubDate>Tue, 19 Jul 2011 22:05:06 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Hello Everyone,<br/>                       I have two problem in my camera Application please anyone help me to solve this issue.iwhen i click image its not showing proper image which i click only show destroy image.  <br/><br/> Error :-  native_jpeg_encode: jpeg_encoder_encode failed.<br/>2. jpeg encoding failed<br/>Please any one help me<br/>Thanks !!!<br/><br/>My Code is here:-<br/><br/>package com.info.Test;<br/><br/>import java.text.SimpleDateFormat;<br/>import java.util.Calendar;<br/><br/>import android.app.Activity;<br/>import android.content.Context;<br/>import android.content.Intent;<br/>import android.graphics.ColorMatrix;<br/>import android.graphics.<br/>ColorMatrixColorFilter;<br/>import android.graphics.Paint;<br/>import android.graphics.PixelFormat;<br/>import android.hardware.Camera;<br/>import android.location.Location;<br/>import android.location.LocationListener;<br/>import android.location.LocationManager;<br/>import android.os.Bundle;<br/>import android.util.Log;<br/>import android.view.MotionEvent;<br/>import android.view.SurfaceHolder;<br/>import android.view.SurfaceView;<br/>import android.view.View;<br/>import android.view.Window;<br/>import android.view.WindowManager;<br/>import android.widget.Button;<br/><br/>public class TakePic extends Activity implements LocationListener {<br/>   <br/>    private static final String TAG = "Camera";<br/>    Camera camera;<br/>    private SurfaceHolder previewHolder=null;<br/>    private Camera mCamera=null;<br/>    private SurfaceView preview=null;<br/>    Button buttonClick , btnNew;<br/>    LocationManager locationManager;<br/>    double lat , lag;<br/>    String dateNow,extStorageDirectory,ImgName,Path;<br/>    public static final int LARGEST_WIDTH = 200;<br/>    public static final int LARGEST_HEIGHT= 200;<br/>    String PImgString ;<br/>   <br/>    @Override<br/>    protected void onCreate(Bundle savedInstanceState) {<br/><br/>        super.onCreate(savedInstanceState);<br/>        // Hide the window title.<br/>        requestWindowFeature(Window.FEATURE_NO_TITLE);<br/>        getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);<br/>        setContentView(R.layout.cameralayout);<br/>        preview=(SurfaceView)findViewById(R.id.preview);<br/>        previewHolder=preview.getHolder();<br/>        previewHolder.addCallback(surfaceCallback);<br/>        previewHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);<br/>        Initialise();<br/>        btnNew.setEnabled(false);<br/>        buttonClick.setOnClickListener(new BtnClickListener());<br/>        btnNew.setOnClickListener(new BtnNewClick());<br/>        Log.d(TAG, "onCreate'd");<br/>        setTitle("Tack Image");<br/>    }<br/>   <br/>   <br/>    @Override<br/>    public boolean dispatchTouchEvent(MotionEvent ev) {<br/>        //-- When we touch the screen, it will auto-focus again<br/>        if(mCamera != null)<br/>        {<br/>            mCamera.autoFocus(new Camera.AutoFocusCallback(){<br/>            public void onAutoFocus(boolean success, Camera    camera)<br/>                {<br/>               <br/>                }<br/>            } );<br/>        }<br/>        return super.dispatchTouchEvent(ev);<br/>    }   <br/>   <br/>    private void Initialise()<br/>    {<br/>        buttonClick = (Button) findViewById(R.id.buttonClick);<br/>        btnNew  = (Button) findViewById(R.id.btnNew);<br/>        locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);<br/>    }<br/>   <br/>    class BtnClickListener implements View.OnClickListener{<br/><br/>        public void onClick(View v) {<br/>            try {<br/>                takePicture();<br/>            } catch (InterruptedException e) {<br/>                // TODO Auto-generated catch block<br/>                e.printStackTrace();<br/>            }<br/>            buttonClick.setEnabled(false);<br/>            btnNew.setEnabled(true);<br/>        }<br/>    }<br/>   <br/>    private void takePicture() throws InterruptedException {<br/>        mCamera.takePicture(null, null, photoCallback);<br/>        <br/><br/>    }<br/><br/>SurfaceHolder.Callback surfaceCallback=new SurfaceHolder.Callback() {<br/>       <br/>       <br/>        public void surfaceCreated(SurfaceHolder holder)<br/>        {<br/>            mCamera=Camera.open();<br/>            try<br/>            {<br/>                mCamera.setPreviewDisplay(previewHolder);<br/>                mCamera.setOneShotPreviewCallback(null);<br/>                ColorMatrix cm = new ColorMatrix();<br/>                cm.setSaturation(.5f);<br/>                //paint.setColorFilter(new ColorMatrixColorFilter(cm));<br/><br/>            }<br/>            catch (Throwable t)<br/>            {<br/>                //Log.e("PictureDemo-surfaceCallback","Exception insetPreviewDisplay()", t);<br/>                //Toast.makeText(TakePic.this,t.getMessage(), Toast.LENGTH_LONG).show();<br/>            }<br/>        }<br/>       <br/>        public void surfaceChanged(SurfaceHolder holder,int format, int width, int height) {<br/>            Camera.Parameters parameters=mCamera.getParameters();<br/>           <br/>          <br/>             <br/>            //parameters.setPreviewSize(100, 100);<br/>            parameters.setPictureSize(100, 100);//parameters.setZoom(1); /*Not in 1.6*/<br/>            //parameters.setZoom(0); /*Not in 1.6*/<br/>            parameters.setPictureFormat(PixelFormat.JPEG);<br/>            //parameters.setFocusMode(Camera.Parameters.FOCUS_MODE_AUTO); /*Not in 1.6*/<br/>            //parameters.setJpegQuality(100); /*Not in 1.6*/<br/>            mCamera.setParameters(parameters);<br/>            mCamera.startPreview();<br/>           <br/>           <br/>           <br/>        //-- Must add the following callback to allow the camera toautofocus.<br/>            mCamera.autoFocus(new Camera.AutoFocusCallback(){<br/>                public void onAutoFocus(boolean success, Camera camera)<br/>                {<br/>                }<br/>               <br/>            } );<br/>        }<br/>       <br/>        public void surfaceDestroyed(SurfaceHolder holder) {<br/>            if(mCamera != null){<br/>                mCamera.stopPreview();<br/>                mCamera.release();<br/>                mCamera=null;<br/>            }<br/>        }<br/>    };<br/>   <br/>    Camera.PictureCallback photoCallback=new Camera.PictureCallback() {<br/>        public void onPictureTaken(byte[] data, Camera camera) {<br/>               <br/>           <br/>            ImgName = String.format("%d.jpg", System.currentTimeMillis());<br/>            //FileOutputStream outStream = null;<br/>            try {<br/>                byte[] imgBtye = data;<br/>                ColorMatrix cm = new ColorMatrix();<br/>                float contrast = 2;<br/>                float brightness = 0;<br/>                cm.set(new float[] { contrast, 0, 0, 0, brightness,0, contrast, 0, 0, brightness,0, 0, contrast, 0, brightness,    0, 0, 0, contrast, 0 });<br/>                Paint paint = new Paint();<br/>                cm.setSaturation(2f);<br/>                paint.setColorFilter(new ColorMatrixColorFilter(cm));<br/>               <br/>                //Log.d(TAG, "onPictureTaken - wrote bytes: " + imgBtye.toString());<br/>               <br/>                GetLocationService();<br/>               <br/>                Intent i = new Intent(TakePic.this, AddDetail.class);<br/>                PImgString = new String(imgBtye);<br/>                i.putExtra("ImgString", PImgString);<br/>                   i.putExtra("Pimg", imgBtye);<br/>                   i.putExtra("lat", lat);<br/>                   i.putExtra("lag", lag);<br/>                   i.putExtra("IName", ImgName);<br/>                   startActivity(i);<br/>            }<br/>            finally<br/>            {<br/>               <br/>            }<br/>        }<br/>    };<br/>   <br/>       <br/>    class BtnNewClick implements View.OnClickListener<br/>    {<br/><br/>        public void onClick(View v) {<br/><br/>            mCamera.startPreview();<br/>            buttonClick.setEnabled(true);<br/>            btnNew.setEnabled(false);<br/>        }<br/>       <br/>    }<br/>   <br/>        public void convertDateToString()<br/>        {<br/>            Calendar currentDate = Calendar.getInstance();<br/>            SimpleDateFormat formatter= new SimpleDateFormat("yyyy/MM/dd");<br/>            dateNow = formatter.format(currentDate.getTime());<br/>            Log.d("Cueernt Date", "Current System Date" + dateNow);<br/>        }<br/>   <br/>   <br/>    private void GetLocationService()<br/>    {<br/>        locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);<br/>        Location location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);<br/>        if( location != null ) {<br/>           <br/>             lat = location.getLatitude();<br/>             lag = location.getLongitude();<br/>             Log.d("Current Location", "Current System Location" + lat + " : Lag " + lag);<br/>        }<br/>        else<br/>        {<br/>            Log.d("Current Location", "No Location Found");<br/>        }<br/>    }<br/><br/><br/>    public void onLocationChanged(Location arg0) {<br/>       <br/>       <br/>    }<br/><br/><br/>    public void onProviderDisabled(String arg0) {<br/>       <br/>       <br/>    }<br/><br/><br/>    public void onProviderEnabled(String provider) {<br/>       <br/>       <br/>    }<br/><br/><br/>    public void onStatusChanged(String provider, int status, Bundle extras) {<br/>       <br/>       <br/>    }<br/>}]]></content:encoded>
      </item>
    <item>
        <title>Unknown Host Exception</title>
        <link>http://marakana.com/forums/android/learning_android_book/384.html</link>
        <author>Adithya Narayan</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/384.html</guid>
        <pubDate>Tue, 19 Jul 2011 10:56:38 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi,<br/><br/>I have registered myself at <a href="http://yamba.marakana.com" rel="nofollow">http://yamba.marakana.com</a> and was able to post status updates through web.<br/><br/>I followed the tutorial mentioned in the book but it always has said till now 'Failed to Post'. <a href="http://yamba.marakana.com/api" rel="nofollow">http://yamba.marakana.com/api</a> doesn't work as the server API when i tried browsing it through the web there was a page saying displaying 'not found' message ! <br/>So, i tried the following things :<br/><br/>1)a)API root in user preferences : <a href="http://yamba.marakana.com" rel="nofollow">http://yamba.marakana.com</a> <br/>  b)username - the one with i registered<br/>  c)password - the one with i registered<br/><br/>the above didn't work<br/><br/>2)a)API root in user preferences : <a href="http://yamba.marakana.com/api" rel="nofollow">http://yamba.marakana.com/api</a> <br/>  b)username - the one with i registered<br/>  c)password - the one with i registered<br/><br/>the above also didn't work<br/><br/>The exception is as follows:<br/><blockquote>winterwell.jtwitter.TwitterException: java.net.UnknownHostException: Host is unresolved: yamba.marakana.com:80</blockquote><br/><br/>I tried the above two things with username-student and password-password but even that didn't work ? What could be the problem ?<br/><br/>Please help me out of this.<br/><br/>Thanks,<br/>Adithya.]]></content:encoded>
      </item>
    <item>
        <title>Ch 9: UpdaterService1 Compilation Error</title>
        <link>http://marakana.com/forums/android/learning_android_book/382.html</link>
        <author>Benjamin Reddington</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/382.html</guid>
        <pubDate>Wed, 13 Jul 2011 18:00:07 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hey Everyone - I'm trying to wrap my head around and error I'm getting in UpdaterService1. In onStartCommand(..) there is the following line:<br/><br/>((YambaApplication) super.getApplication()).setServiceRunning(true);<br/><br/>I can't seem to get it. 1, there is no setServiceRunning(boolean) method in a YambaApplication. 2, the call to super.getApplication() would return the application context of Service.java, right? What do we need that for?<br/><br/>Any help would be fantastic. Thanks!]]></content:encoded>
      </item>
    <item>
        <title>Error in coding, that I can not find</title>
        <link>http://marakana.com/forums/html5/general/380.html</link>
        <author>John Dean</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/380.html</guid>
        <pubDate>Tue, 12 Jul 2011 09:28:20 -0700</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[I have been getting used to html5 for a while now, and decided to make a remake of Pokemon for a bit of fun for some cousins.<br/><br/>I have made the basic game, but there seems to be a laggy bit of code somewhere.<br/><br/><br/>My code:<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">&lt;html&gt;<br/>&lt;head&gt;<br/>&lt;meta name="viewport" content="width=device-width"/&gt;<br/>&lt;meta name="viewport" content="height=device-height"/&gt;<br/>&lt;title id="Title"&gt;Dean&amp;CO POKEMON&lt;/title&gt;<br/>&lt;div id="Songs"&gt;<br/>&lt;audio id="P-Theme" src="P-Theme.mp3" preload="auto"&gt;<br/>&lt;audio id="P-Town1" src="P-Town1.mp3" preload="auto"&gt;<br/>		<br/>&lt;/div&gt;<br/>&lt;/head&gt;<br/><br/>&lt;body bgcolor=#0000FF&gt;<br/>&lt;div id="Dean&amp;COPKMN"&gt;<br/>	&lt;div id="JohnsPokemon"&gt;<br/>		&lt;code id="para1"&gt;Loading... OR Code error. (Syntax)&lt;/code&gt;<br/>		&lt;/br&gt;<br/>		&lt;canvas id="myCanvas" width="device-width" height="device-height" tabindex="1"&gt;&lt;/canvas&gt;<br/>		&lt;/br&gt;<br/>		&lt;!-- &lt;input type="text" id="focusButton" value="This will be used later on for data exchange (Save data/DLC)"/&gt; --&gt;<br/>	&lt;/div&gt;<br/><br/>	&lt;form name="alternate"&gt;<br/>		&lt;code&gt;Show Buttons:&lt;/code&gt;&lt;input type="checkbox" name="checkgroup" checked /&gt;<br/>	&lt;/form&gt;<br/><br/>	&lt;div id="Buttons"&gt;<br/>		&lt;code&gt;----&lt;/code&gt;&lt;input type="button" value="/\" onclick="moveUp();"  &gt;&lt;code&gt;----&lt;/code&gt;<br/>		&lt;/br&gt;<br/>		&lt;input type="button" value="&lt;" onclick="moveLeft();" &gt;&lt;code&gt;&lt;/code&gt;&lt;input type="button" value="00" onclick="start();" &gt;&lt;code&gt;&lt;/code&gt;<br/>		&lt;input type="button" value="&gt;" onclick="moveRight();" &gt;<br/>		&lt;/br&gt;<br/>		&lt;input type="button" value="'A'" onclick="pressA();" &gt;&lt;code&gt;&lt;/code&gt;&lt;input type="button" value="\/" onclick="moveDown();"&gt;&lt;code&gt;----&lt;/code&gt;<br/>	&lt;/div&gt;<br/>	&lt;script type="text/javascript"&gt;//John's Pokemon<br/>if(1==1){								//INFO<br/>//Johns Pokemon Code (Javascript)<br/>//Version ALPHA<br/>//OPEN SOURCE<br/>//CREDIT TO NINTENDO (TM) FOR ORIGNINAL TILES AND CONCEPT<br/>}<br/><br/>//&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;\\<br/>//&gt;&gt;&gt;&gt;&gt;&gt;VARIABLE DECLARATION&gt;&gt;&gt;&gt;&gt;&gt;&gt;\\<br/>//&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;\\<br/>if (1==1){								//Global vars<br/>	if (1==1){								//START MESSAGE<br/>		document.getElementById('para1').innerHTML=("JOHNS POKEMON HTML5");<br/>	}<br/>	<br/>	if (1==1){								//CANVAS VARIABLES<br/>var bkcanv = document.createElement("canvas");//HIDDEN CANVAS FOR FASTER TILES<br/>//document.getElementsByTagName("body").item(0).appendChild(bkcanv);	//UNCOMMENT TO SHOW HIDDEN CANVAS<br/>var tileCan = document.createElement("canvas");//HIDDEN CANVAS FOR FASTER RENDER<br/>//document.getElementsByTagName("body").item(0).appendChild(tileCan);	//UNCOMMENT TO SHOW HIDDEN CANVAS<br/><br/><br/>var canvasBlank = "#FF0000";<br/>var can=document.getElementById("myCanvas");<br/>var canvasX = screen.width;	//Adaptive<br/>var canvasY = screen.height -100;<br/>var RealSizeX=canvasX;<br/>var RealSizeY=canvasY;<br/>//var canvasX = 176;			//Fixed<br/>//var canvasY = 176;<br/><br/>	if (canvasX &gt; 300){<br/>			canvasX=300;<br/>		}<br/>	if (canvasY &gt; 300){<br/>			canvasY=300;<br/>		}<br/><br/>var XSize=canvasX/16;<br/>var YSize=canvasY/16;<br/>	XSize=XSize-0.5;<br/>	YSize=YSize-0.5;<br/>	XSize=Math.round(XSize);<br/>	YSize=Math.round(YSize);<br/>	var Temp= (XSize+1) % 2;<br/>	XSize=XSize-Temp;<br/>	var Temp=(YSize+1) % 2;<br/>	YSize=YSize-Temp;<br/>	<br/>canvasX=XSize*16;<br/>canvasY=YSize*16;<br/>can.setAttribute('width', canvasX);<br/>can.setAttribute('height', canvasY);<br/><br/>var can1=can.getContext("2d");<br/>can1.clearRect(0,0,1000,1000); //Makes sure canvas is clear!!<br/>can1.rect(0, 0, canvasX, canvasY);<br/>can1.fillStyle=canvasBlank;<br/>can1.fill();<br/><br/>var canvas=can.getContext("2d");<br/>}<br/><br/>	if (1==1){								//COLOUR SCHEME (STANDARD)<br/>var Colours= new Array();<br/>Colours[0]="#FFFFFF";<br/>Colours[1]="#66CCFF";//"#CC99CC";//"#66CCFF";//"#C0C0C0";<br/>Colours[2]="#6666CC";//"#990099";//"#6666CC";//"#009900";//"#0000CC";//"#404040"; //Use this to change themes<br/>Colours[3]="#000000";<br/>}<br/><br/>	if (1==1){								//GAME VARIABLES<br/>var Cam= new Array();<br/>var Time=0;<br/>var Tiles= new Array();<br/>var CamX=3;<br/>var CamY=6;<br/>	CamX=CamX-2;<br/>	CamY=CamY-2;<br/>var Xin= ((XSize-1)/2)-1;<br/>var Yin= ((YSize-1)/2)-1;<br/>var PlrKey=0;<br/>var PlrMove=0;<br/>var Cos=0;<br/>var PlrCos= new Array("Costumes","085","086","087","088","089","090","091","092");<br/>var PlrState="Walk";<br/>var TileImg= new Array();<br/>var MoveAllowed=true;<br/>var GameState="Play";<br/>var UP=0;<br/>var AreaTemp=0;<br/><br/>}<br/><br/>	if (1==1){								//Audio<br/>var SoundOn=true;		//CONTROLED IN BEGIN GAME<br/>	var AudioChannelsMax = 10;										// number of channels<br/>	var Sounds = new Array();<br/>	var SoundNames= new Array();<br/>	for (a=0;a&lt;AudioChannelsMax;a++) {								// prepare the channels<br/>	SoundNames[a]="";<br/>		Sounds[a] = new Array();<br/>		Sounds[a]['channel'] = new Audio();							// create a new audio object<br/>		Sounds[a]['finished'] = -1;									// expected end time for this channel<br/>	}<br/>}<br/><br/>	if (1==1){								//Menu<br/>var MenuItems=   new Array("Ride","Walk","Demo Area","Toggle Sounds");<br/>var MenuActions= new Array("PlrState='Horse'","PlrState='Walk'","MapName='Display';CamX=1;CamY=1;","toggleSounds()");<br/>var MenuItem=1;<br/>var MenuSelection=0;<br/>}<br/><br/>	if (1==1){								//Maps<br/>var Map=   new Array();<br/>var MapCPU=new Array();<br/>var MapDraw=0;<br/>var MapStd="001";<br/>var MapName="Test";<br/>var Render=0;			//Render a map (CPU's)<br/>var Previous="Display";<br/>var PreviousX=0;<br/>var PreviousY=0;<br/>var Switch= new Array();<br/>var MapCode=new Array();<br/>var Switched=0;<br/><br/>}<br/><br/>	if (1==1){								//Obstructions<br/>//General obs<br/>var PlrObs=new Array("001","082","003","004","005","006","007","008","009","010","011","012","013","015","016","017","018","019","020","021","022","023","024","025","026","027","028","029","030","031","032","033","034");<br/><br/>//CPU Costumes that stop players/CPU's<br/>var CPUObs=new Array("085","086","087","088","089","090","091","092");<br/><br/>//Obs that are only for CPU's<br/>var CPURealObs=new Array("122");<br/>	}<br/><br/>	if (1==1){								//CPU's<br/>var CPULocation=	new Array();<br/>var CPUFixed=		new Array();<br/>var cCPU=			new Array();<br/>var CPUCodeR=		new Array();<br/>var CPUTEMP=		0;<br/>var CPUCodeB=		"";		//The item saved to CPUCodeR when there is no CPU there.<br/>var nextCos=0;	//Costumes (for movement)<br/>var nextCOS1=0;<br/>var CPURun=			0;<br/>var CPUCosC=			new Array();<br/>//							  "Player"	,"PKMN1"<br/>	//Down<br/>		CPUCosC[0]=	new Array("085"		,"123");<br/>	//Down Walk<br/>		CPUCosC[1]=	new Array("086"		,"124");<br/>	//Up<br/>		CPUCosC[2]=	new Array("087"		,"125");<br/>	//Up Walk<br/>		CPUCosC[3]=	new Array("088"		,"126");<br/>	//Left<br/>		CPUCosC[4]=	new Array("089"		,"127");<br/>	//Left Walk<br/>		CPUCosC[5]=	new Array("090"		,"128");<br/>	//Right<br/>		CPUCosC[6]=	new Array("091"		,"129");<br/>	//Right Walk<br/>		CPUCosC[7]=	new Array("092"		,"130");<br/>	}<br/>}<br/><br/>//&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;\\<br/>//&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;GAME&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;\\<br/>//&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;\\<br/>function beginGame(){					//Start Game<br/>SoundOn=false;<br/>MapName="Demo1";<br/>iniAll();<br/>	Cos=85;<br/>	drawPlayer();<br/><br/>//Controls<br/>window.addEventListener('keydown',keyDown,true);<br/>window.addEventListener('keyup',keyUp,true);<br/>Time=self.setInterval("controlTest()",50);<br/>var Button1=self.setInterval("showHide()",50);<br/>var PlayerTime=self.setInterval("changeState()",50);<br/>var Check=self.setInterval("updates()",50);<br/>playSound("P-Town1");<br/>var CameraUp=self.setInterval("document.getElementById('para1').innerHTML=('For debug:'+(CamX+1)+'|'+(CamY+1));",50);<br/>var CPUMover=self.setInterval("moveCPU()",50);<br/>}<br/><br/>if(1==1){								//Initialize<br/>function iniAll(){						//Initializes all (Tiles,Maps,CPU's,Multiplayer,etc...)<br/>iniTiles();<br/>iniSwitching();<br/>prepTiles();<br/>updateTiles();<br/>setMap(MapName);<br/>}<br/><br/>}<br/><br/>if(1==1){								//Map functions<br/>function setMap(MapN){					//Stores all maps<br/>Map=new Array(new Array(),new Array());	//Clears map<br/>if (MapN=="Demo1"){					//Map1<br/>MapCode[MapN]="";<br/>Map[0]= new Array("082","082","082","082","082","082","082","082","082","082");<br/>Map[1]= new Array("082","003","004","005","032","033","033","033","034","082");<br/>Map[2]= new Array("082","010","011","006","029","030","030","030","031","082");<br/>Map[3]= new Array("082","010","011","006","017","020","021","019","022","082");<br/>Map[4]= new Array("082","009","008","007","012","013","014","013","016","082");<br/>Map[5]= new Array("082","002","002","002","002","002","002","002","002","002");<br/>Map[6]= new Array("082","081","081","081","002","002","002","002","002","082");<br/>Map[7]= new Array("082","081","081","081","002","002","002","119","002","082");<br/>Map[8]= new Array("082","081","081","081","002","002","002","002","002","082");<br/>Map[9]= new Array("082","082","082","082","082","082","082","082","082","082");<br/>}<br/>if (MapN=="Demo2"){					//Map2<br/>MapCode[MapN]="";<br/>Map[0]= new Array("082","082","082","082","082","082","082","082","082","082");<br/>Map[1]= new Array("082","002","002","082","032","033","034","082","081","082");<br/>Map[2]= new Array("082","002","002","082","029","030","031","082","081","082");<br/>Map[3]= new Array("082","002","002","082","017","021","022","082","081","082");<br/>Map[4]= new Array("082","002","002","082","012","014","016","082","081","082");<br/>Map[5]= new Array("002","002","002","082","082","002","082","082","081","082");<br/>Map[6]= new Array("082","002","002","002","002","002","002","081","081","082");<br/>Map[7]= new Array("082","002","002","002","002","002","002","081","081","082");<br/>Map[8]= new Array("082","002","002","002","002","002","002","081","081","082");<br/>Map[9]= new Array("082","082","082","082","082","082","082","082","082","082");<br/>}<br/>if (MapN=="Display"){				//Tile Show-off<br/>MapCode[MapN]="alert('To display tiles');";<br/>Map[0]= new Array("000","001","002","003","004","005","006","007","008","009");<br/>Map[1]= new Array("010","011","012","013","014","015","016","017","018","019");<br/>Map[2]= new Array("020","021","022","002","002","002","002","002","002","029");<br/>Map[3]= new Array("030","031","032","033","034","002","002","002","002","002");<br/>Map[4]= new Array("002","002","002","002","002","002","002","002","002","002");<br/>Map[5]= new Array("002","002","002","002","002","002","002","002","002","002");<br/>Map[6]= new Array("002","002","002","002","002","002","002","002","002","002");<br/>Map[7]= new Array("002","002","002","002","002","002","002","002","002","002");<br/>Map[8]= new Array("002","002","002","002","002","002","002","002","002","002");<br/>Map[9]= new Array("002","002","002","002","002","119","120","121","081","082");<br/>}<br/>if (MapN=="Base"){					//A secret base (Default)<br/>MapCode[MapN]="";<br/>Map[0]= new Array("002","002","002","002","002");<br/>Map[1]= new Array("002","002","002","002","002");<br/>Map[2]= new Array("002","002","002","002","002");<br/>Map[3]= new Array("002","002","002","002","002");<br/>Map[4]= new Array("002","002","002","002","002");<br/>Map[5]= new Array("002","002","002","002","002");<br/>Map[6]= new Array("001","002","002","002","001");<br/>Map[7]= new Array("001","001","122","001","001");<br/>}<br/><br/>if(1==1){							//Code that draws map/loads CPU's<br/>CPUActive(MapN);<br/>}<br/><br/>if(1==1){							//Executes code stored to do stuff... E.G Alert something<br/>	var MCode=MapCode[MapN];<br/>	if(MCode=="undefined"){}else{<br/>		updateMap();<br/>		drawPlayer();<br/>		eval(MCode);<br/>	}<br/>}<br/><br/>}<br/><br/>function CPUActive(MapNa){<br/>setCPU(MapNa);<br/>mapCPU();<br/>}<br/><br/>function mapCPU(){						//Clears CPU's and then re-gets them<br/>MapCPU=new Array();<br/>var i=0;<br/>var n=0;<br/>		for (i=0;i&lt;=Map.length-1;i++)<br/>			{<br/>				MapCPU[i]=new Array();<br/>				for (n=0;n&lt;=((Map[1].length)-1);n++)<br/>					{<br/>						MapCPU[i][n]="000";<br/>					}<br/>			}<br/>currentCPU();<br/>}<br/><br/>function iniSwitching(){				//Stores Map Switching<br/>//MAP CHANGING (Ranked in desensing order)<br/>var S= new Array(); //TYPE 'P' TO MAKE PREVIOUS X/Y<br/>S[0]= new Array("Base"	,"Base"		,"Demo1");<br/>S[1]= new Array("2"   	,"2"		,"9");<br/>S[2]= new Array("7"   	,"7"		,"5");<br/>S[3]= new Array("P"   	,"Demo1"	,"Demo2");<br/>S[4]= new Array("P"   	,"7"		,"0");<br/>S[5]= new Array("P"   	,"7"		,"5");<br/>//These are 2 way links<br/>Switch=S;<br/>} <br/><br/>function updateMap(){					//Puts current map into array<br/>var Temp=0;<br/>Cam= new Array();<br/>var x=Map[1].length-1+1;<br/>var y=Map.length-1+1;<br/>	var i=0;<br/>		for (i=0;i&lt;=YSize;i++)<br/>			{<br/>				Cam[i]=new Array();<br/>				var n=0;<br/>				for (n=0;n&lt;=XSize;n++)<br/>					{<br/>						Cam[i][n]=Math.round(MapStd);<br/>						var p = n-Xin;<br/>						var q = i-Yin;<br/>						if     (CamX  +  p  &gt; -1 &amp;&amp;  CamX  +  p  &lt; x)<br/>						{<br/>							if (CamY  +  q  &gt; -1 &amp;&amp;  CamY  +  q  &lt; y)<br/>							{<br/>									Temp=Map[CamY+q][CamX+p];<br/>									Cam[i][n]=Math.round(Temp);<br/>							<br/>							}<br/>						}	<br/>					}<br/>			}<br/>var canz=can.getContext("2d");		//Clears canvas<br/>	canz.rect(0, 0, canvasX, canvasY); //Basicly paints a white square.<br/>	canz.fillStyle="#FFFFFF";<br/>	canz.fill();<br/>drawMap();<br/>alterMap();<br/>}<br/><br/>function drawMap(){						//Draws map from array (Called from updateMap)<br/>var canvas = can.getContext('2d');<br/>tileCan.setAttribute('width', canvasX);<br/>tileCan.setAttribute('height', canvasY);<br/>tileCtx = tileCan.getContext('2d');<br/><br/>	var i=0;<br/>		for (i=0;i&lt;=YSize;i++)<br/>			{<br/>				var n=0;<br/>				for (n=0;n&lt;=XSize;n++)<br/>					{<br/>						drawTile(Cam[i][n],n*16,i*16,can);<br/>					}<br/>			}<br/>//drawTile(92,(Xin+1)*16,(Yin+1)*16);<br/>canvas.drawImage(tileCan,0,0);	<br/>}<br/><br/>function alterMap(){					//Alters Map (e.g CPU's)<br/>var Temp=0;<br/>Cam= new Array();<br/>var y=MapCPU.length-1+1;<br/>mapCPU();<br/>var x=MapCPU[0].length-1+1;<br/>	var i=0;<br/>		for (i=0;i&lt;=YSize;i++)<br/>			{<br/>				Cam[i]=new Array();<br/>				var n=0;<br/>				for (n=0;n&lt;=XSize;n++)<br/>					{<br/>						Cam[i][n]=Math.round("000");<br/>						var p = n-Xin;<br/>						var q = i-Yin;<br/>						if     (CamX  +  p  &gt; -1 &amp;&amp;  CamX  +  p  &lt; x)<br/>						{<br/>							if (CamY  +  q  &gt; -1 &amp;&amp;  CamY  +  q  &lt; y)<br/>							{<br/>									<br/>									Temp=MapCPU[CamY+q][CamX+p];<br/>									Cam[i][n]=Math.round(Temp);<br/>							<br/>							}<br/>						}	<br/>					}<br/>			}<br/>drawMap();<br/>}<br/><br/>function checkAreaChange(){				//Area switcher<br/>var X1= CamX+1;<br/>var Y1= CamY+1;<br/>var i=0;<br/>var n=0;<br/>var z=0;<br/>var f=0;<br/>var l=0;<br/>var g=0;<br/>for(i=0;i&lt;=(Switch[0].length-1);i++)<br/>{<br/>	n=Switch[0][i];<br/>	z=Switch[3][i];<br/>	f=-1;<br/>	if(n==MapName){<br/>		f=0;<br/>		l=3;<br/>	}<br/>	if(z==MapName){<br/>		f=3;<br/>		l=0;<br/>	}<br/>	if(f&gt;-1){<br/>		var t= Switch[(f+1)][i];<br/>		var y= Switch[(f+2)][i];<br/>		if(t==X1 &amp;&amp; y==Y1){<br/>			var P1=CamX;<br/>			var P2=CamY;<br/>			var P=MapName;<br/>			var j=(Switch[(l+1)][i]);<br/>			if(j=="P")<br/>			{<br/>				j=PreviousX;<br/>			}<br/>			else{<br/>			j=j-1;<br/>			}<br/>			CamX=j;<br/>			var j=(Switch[(l+2)][i]);<br/>			if(j=="P"){<br/>				j=PreviousY;<br/>			}<br/>			else{<br/>			j=j-1;<br/>			}<br/>			CamY=j<br/>			var j=Switch[(l)][i];<br/>			if(j=="P"){<br/>				j=Previous;<br/>			}<br/>			MapName=j;<br/>			g=1;<br/>			Switched=1;<br/>			<br/>			PreviousX=P1;<br/>			PreviousY=P2;<br/>			Previous=P;<br/>		}<br/>	}<br/>	if(g==1){<br/>	break;<br/>	}<br/>}<br/>}<br/>}<br/><br/>if(1==1){								//CPU<br/>function setCPU(MapN){					//Stores all CPU's<br/>copyCPU();<br/>//WHERE SHOULD I ADD MY CPU?<br/>//CPULocation if it can move<br/>//CPUFixed if not able to move<br/>if (MapN=="Base"){					//A secret base<br/>	CPULocation	[6][3]=	"127";//"089";<br/>	CPUCodeR	[6][3]=	"Speech:1|Pokemon:";<br/>	CPULocation	[5][3]=	"089";<br/>	CPUCodeR	[5][3]=	"Speech:1|Pokemon:";<br/>}<br/>}<br/><br/>function currentCPU(){					//Needs to put CPU tiles on to array 'MapCPU'<br/>addCPUs();<br/>addMultiplayer();<br/>addFixed();<br/>CPUMapUpdate();<br/>}<br/><br/>function addFixed(){					//Adds fixed CPU's<br/>updateNo2();<br/>}<br/><br/>function addCPUs(){						//Adds standard CPU's<br/>updateCPUArray();<br/>}<br/><br/>function addMultiplayer(){				//Adds user controlled players<br/>//(add to cCPU and use image 121)<br/>}<br/><br/>function moveCPU(){						//Moves CPU's around<br/>//CPURun=1; //Remove comment if you want CPU's stay still<br/>if(CPURun==0){<br/>if(GameState=="Play"){<br/>CPUTEMP=MapName;<br/>var i=0;<br/>var n=0;<br/>var CPUMove=false;<br/>		for (i=0;i&lt;=((Map.length)-1);i++)<br/>			{<br/>			if(CPUMove){<br/>			break;<br/>			}<br/>				for (n=0;n&lt;=((Map[1].length)-1);n++)<br/>					{<br/>					CPUTEMP=MapName;<br/>						var FocusCPU=CPULocation[i][n];<br/>						if(FocusCPU=="000"){}else{<br/>							var CPUMoving=Math.random();<br/>							CPUMoving=CPUMoving*6;<br/>							CPUMoving=Math.round(CPUMoving);<br/>							if(CPUMoving==1){<br/>								var CPUDir=Math.random();<br/>								CPUDir=CPUDir*4.99;<br/>								CPUDir=CPUDir-0.5<br/>								CPUDir=Math.round(CPUDir);<br/>								CPUDir=(CPUDir-1)*90;<br/>								var ii=i;<br/>								var nn=n;<br/>								var g=0;<br/>								if(1==1){ //Directions<br/>									if(CPUDir==0){<br/>										ii=ii-1;<br/>										nn=nn+0;<br/>										g=1;<br/>									}<br/>									if(CPUDir==90){<br/>										ii=ii+0;<br/>										nn=nn+1;<br/>										g=1;<br/>									}<br/>									if(CPUDir==180){<br/>										ii=ii+1;<br/>										nn=nn+0;<br/>										g=1;<br/>									}<br/>									if(CPUDir==270){<br/>										ii=ii+0;<br/>										nn=nn-1;<br/>										g=1;<br/>									}<br/>								}<br/>								CPUMove=(sense(nn,ii));<br/>								if(CPUMove){<br/>									CPUMove=(CPUSense(nn,ii));<br/>									if(CPUMove){<br/>										if(g==1){<br/>											if(ii==CamY+1){} else{<br/>												if(nn==CamX+1){} else{<br/>													nextCos=CPULocation[i][n];<br/>													nextCOS1=nextCos;<br/>													var NCos=-1;<br/>													var f=0;<br/>													for(f=0;f&lt;=CPUCosC.length-1;f++)<br/>													{<br/>														if(1==1){<br/>														var h=CPUCosC[0][f];<br/>														if(h==nextCos){<br/>															NCos=f;<br/>															break;<br/>														}<br/>														var h=CPUCosC[1][f];<br/>														if(h==nextCos){<br/>															NCos=f;<br/>															break;<br/>														}<br/>														var h=CPUCosC[2][f];<br/>														if(h==nextCos){<br/>															NCos=f;<br/>															break;<br/>														}<br/>														var h=CPUCosC[3][f];<br/>														if(h==nextCos){<br/>															NCos=f;<br/>															break;<br/>														}<br/>														var h=CPUCosC[4][f];<br/>														if(h==nextCos){<br/>															NCos=f;<br/>															break;<br/>														}<br/>														var h=CPUCosC[5][f];<br/>														if(h==nextCos){<br/>															NCos=f;<br/>															break;<br/>														}<br/>														var h=CPUCosC[6][f];<br/>														if(h==nextCos){<br/>															NCos=f;<br/>															break;<br/>														}<br/>														var h=CPUCosC[7][f];<br/>														if(h==nextCos){<br/>															NCos=f;<br/>															break;<br/>														}<br/>														}<br/>													}<br/>													if(NCos&gt;-1){<br/>														if(CPUDir==180){<br/>															nextCos=CPUCosC[0][NCos];<br/>															nextCOS1=CPUCosC[1][NCos];<br/>														}<br/>														if(CPUDir==0){<br/>															nextCos=CPUCosC[2][NCos];<br/>															nextCOS1=CPUCosC[3][NCos];<br/>														}<br/>														if(CPUDir==270){<br/>															nextCos=CPUCosC[4][NCos];<br/>															nextCOS1=CPUCosC[5][NCos];<br/>														}<br/>														if(CPUDir==90){<br/>															nextCos=CPUCosC[6][NCos];<br/>															nextCOS1=CPUCosC[7][NCos];<br/>														}<br/>													}<br/>													<br/>													<br/>													if(CPUTEMP==MapName){}else{<br/>														break;<br/>													}<br/>	<br/>													if(CPUTEMP==MapName){<br/>														runANI(ii,nn,nextCOS1,nextCos,i,n,MapName);<br/>														break;<br/>													}<br/>												}<br/>											}<br/>										}<br/>									}<br/>								}<br/>							}<br/>						}<br/>					}<br/>			}<br/>	if(PlrMove==0){<br/>		updateMap();<br/>		drawTile(Cos,(Xin+1)*16,(Yin+1)*16,can);<br/>	}<br/>}<br/>}<br/>}<br/><br/>function runANI(ii,nn,nextCOS1,nextCos,i,n,ARR){	//CPU Animation<br/>if(ARR==MapName){<br/>	CPULocation[ii][nn]=nextCos;<br/>	CPUCodeR[ii][nn]=CPUCodeR[i][n];<br/>	CPUCodeR[i][n]=CPUCodeB;<br/>	CPULocation[i][n]="000";<br/>		updateMap();<br/>		drawTile(Cos,(Xin+1)*16,(Yin+1)*16,can);<br/>		if(GameState=="Play"){<br/>			CPURun=1;<br/>			//alert(NCos);<br/>			setTimeout(function(){CPUP1(ii,nn,nextCOS1,ARR)}, 100);<br/>			setTimeout(function(){CPUP2(ii,nn,nextCos ,ARR)}, 200);<br/>		}<br/>	}<br/>}<br/><br/>function CPUP1(ii,nn,nextCosy,x){		//The walking part of animation (Part1)<br/>if(x==MapName){<br/>CPULocation[ii][nn]=nextCosy;<br/>if(GameState=="Play"){<br/>updateMap();<br/>drawTile(Cos,(Xin+1)*16,(Yin+1)*16,can);<br/>}<br/>}<br/>}<br/><br/>function CPUP2(ii,nn,nextCosz,x){		//The walking part of animation (Part2)<br/>if(x==MapName){<br/>CPULocation[ii][nn]=nextCosz;<br/>if(GameState=="Play"){<br/>updateMap();<br/>drawTile(Cos,(Xin+1)*16,(Yin+1)*16,can);<br/>}<br/>}<br/>setTimeout(CPURun=0, 100);<br/>}<br/><br/>function copyCPU(){						//Copys arrays<br/>CPULocation= new Array();<br/>CPUCodeR=	 new Array();<br/>CPUFixed=	 new Array();<br/>var i=0;<br/>var n=0;<br/>		for (i=0;i&lt;=Map.length-1;i++)<br/>			{<br/>				CPULocation[i]=	new Array();<br/>				CPUCodeR[i]=	new Array();<br/>				CPUFixed[i]=	new Array();<br/>				for (n=0;n&lt;=((Map[1].length)-1);n++)<br/>					{<br/>						CPULocation[i][n]="000";<br/>						CPUCodeR[i][n]=CPUCodeB;<br/>						CPUFixed[i][n]="000";<br/>					}<br/>			}<br/>}<br/><br/>function CPUMapUpdate(){				//Copys arrays<br/>MapCPU= new Array();<br/>var i=0;<br/>var n=0;<br/>		for (i=0;i&lt;=Map.length-1;i++)<br/>			{<br/>				MapCPU[i]=new Array();<br/>				for (n=0;n&lt;=((Map[1].length)-1);n++)<br/>					{<br/>						MapCPU[i][n]=cCPU[i][n];<br/>					}<br/>			}<br/>}<br/><br/>function updateCPUArray(){				//Copys arrays<br/>cCPU= new Array();<br/>var i=0;<br/>var n=0;<br/>		for (i=0;i&lt;=Map.length-1;i++)<br/>			{<br/>				cCPU[i]=new Array();<br/>				for (n=0;n&lt;=((Map[1].length)-1);n++)<br/>					{<br/>						cCPU[i][n]=CPULocation[i][n];<br/>					}<br/>			}<br/>}<br/><br/>function updateNo2(){					//Fixed CPU's<br/>var i=0;<br/>var n=0;<br/>		for (i=0;i&lt;=Map.length-1;i++)<br/>			{<br/>				for (n=0;n&lt;=((Map[1].length)-1);n++)<br/>					{<br/>						var TempZ = CPUFixed[i][n];<br/>						if(TempZ=="000"){}else{<br/>							cCPU[i][n]=CPUFixed[i][n];<br/>						}<br/>					}<br/>			}<br/>}<br/><br/>}<br/><br/>if(1==1){								//Menu/Screen updates<br/>function activeMenu(){					//Menu rendering<br/>if(1==1){		//Basic menu<br/>canvas=can.getContext("2d");<br/>canvas.fillStyle="#000000";<br/>canvas.fillRect(0,0,5000,5000);<br/>canvas.fillStyle="#FFFFFF";<br/>canvas.fillText("Menu", 10, 10);<br/>canvas.fillRect(0,11,5000,1);<br/>}<br/>var i=0;<br/>var y=20;<br/>for(i=0;i&lt;=MenuItems.length-1;i++)<br/>{<br/>	canvas.fillText(MenuItems[i], 10, (y+(i*10)));<br/>}<br/>canvas.fillRect(4,(y+((MenuItem-1)*10)-5),3,3)<br/>UP=0;<br/><br/>if(MenuSelection==1){					//Executes menu code<br/>	var cCode=MenuActions[(MenuItem-1)];<br/>	if(cCode=="undefined"){}else{<br/>		eval(cCode);<br/>	}<br/>	GameState="Play";<br/>	MoveAllowed=!MoveAllowed;<br/>	changeState();<br/>}<br/><br/>}<br/><br/>function menu(Dir){						//Menu item control<br/>	PlrMove=1;<br/>		if(Dir==0){<br/>			//PlrState="Ride";<br/>			MenuItem=MenuItem-1;<br/>		}<br/>		if(Dir==180){<br/>			//PlrState="Walk";<br/>			MenuItem=MenuItem+1;<br/>		}<br/>		if(Dir==90){<br/>			//MapName="Display";<br/>		}<br/>		if(Dir==270){<br/>			//stopAllSounds();<br/>		}<br/>		if(Dir=="A"){	//A key<br/>			MenuSelection=1;<br/>			//alert(MenuSelection);<br/>		}<br/>		if(MenuItem==0){<br/>			MenuItem=MenuItems.length;<br/>		}<br/>		if(MenuItem&gt;MenuItems.length){<br/>			MenuItem=1;<br/>		}<br/>	setTimeout("PlrMove=0", 300);<br/>}<br/><br/>function updates(){						//Does screen updates<br/>if(GameState=="Pause"){<br/>	activeMenu();<br/>}<br/>else{<br/>	if(UP==0){<br/>		UP=1;<br/>		updateMap();<br/>		drawPlayer();<br/>	}<br/>}<br/>if(Render==1){<br/>	if(GameState=="Play"){<br/>		//Now done by CPUs<br/>		//updateMap();<br/>		//drawTile(Cos,(Xin+1)*16,(Yin+1)*16,can);<br/>	}<br/>}<br/>if(AreaTemp==MapName){<br/>}<br/>else{<br/>	AreaTemp=MapName;<br/>	setMap(MapName);<br/>}<br/>if(Switched==0){<br/>	if(GameState=="Play"){<br/>		checkAreaChange();<br/>	}<br/>}<br/>}<br/><br/>}<br/><br/>if(1==1){								//Tiles<br/>function iniTiles(){					//Gets all tiles stored in an array format<br/>if(1==1){ //Tile000 (Transparent)<br/>var Temp= new Array();<br/>Temp[0]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[1]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[2]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[3]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[4]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[5]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[6]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[7]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[8]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[9]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[10]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[11]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[12]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[13]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[14]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[15]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Tiles[0]=Temp;<br/>}<br/>if(1==1){ //Tile001 (Black)<br/>var Temp= new Array();<br/>Temp[0]=  new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3");<br/>Temp[1]=  new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3");<br/>Temp[2]=  new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3");<br/>Temp[3]=  new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3");<br/>Temp[4]=  new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3");<br/>Temp[5]=  new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3");<br/>Temp[6]=  new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3");<br/>Temp[7]=  new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3");<br/>Temp[8]=  new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3");<br/>Temp[9]=  new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3");<br/>Temp[10]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3");<br/>Temp[11]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3");<br/>Temp[12]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3");<br/>Temp[13]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3");<br/>Temp[14]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3");<br/>Temp[15]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3");<br/>Tiles[1]=Temp;<br/>}<br/>if(1==1){ //Tile002 (White)<br/>var Temp= new Array();<br/>Temp[0]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[1]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[2]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[3]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[4]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[5]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[6]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[7]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[8]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[9]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[10]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[11]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[12]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[13]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[14]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[15]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Tiles[2]=Temp;<br/>}<br/>if(1==1){ //Tile003<br/>var Temp= new Array();<br/>Temp[0]=  new Array("3","2","2","2","2","2","2","3","3","2","2","2","2","2","2","3");<br/>Temp[1]=  new Array("1","3","2","2","2","2","3","1","1","3","2","2","2","2","3","1");<br/>Temp[2]=  new Array("2","1","3","2","2","3","1","2","2","1","3","2","2","3","1","2");<br/>Temp[3]=  new Array("2","2","1","3","3","1","2","2","2","2","1","3","3","1","2","2");<br/>Temp[4]=  new Array("3","2","3","3","3","1","3","2","3","2","3","3","3","1","3","2");<br/>Temp[5]=  new Array("2","3","3","1","1","3","2","3","2","3","3","1","1","3","2","3");<br/>Temp[6]=  new Array("3","3","1","3","2","3","3","2","3","3","1","3","2","3","3","2");<br/>Temp[7]=  new Array("3","1","3","2","3","2","2","3","3","1","3","2","3","2","2","3");<br/>Temp[8]=  new Array("3","1","2","2","3","2","3","3","2","2","2","2","0","0","2","2");<br/>Temp[9]=  new Array("2","3","1","2","2","3","3","1","2","2","2","0","0","2","2","2");<br/>Temp[10]= new Array("2","2","3","1","3","3","1","3","2","2","2","0","0","2","2","2");<br/>Temp[11]= new Array("2","2","2","3","3","1","3","2","2","2","2","2","0","0","2","2");<br/>Temp[12]= new Array("2","2","2","3","3","1","2","3","2","2","2","2","2","0","0","0");<br/>Temp[13]= new Array("2","2","3","1","1","3","3","2","0","0","2","2","2","2","2","2");<br/>Temp[14]= new Array("2","3","1","2","3","2","3","2","2","2","0","0","2","2","2","2");<br/>Temp[15]= new Array("3","1","2","2","2","3","2","3","2","2","2","0","0","2","2","2");<br/>Tiles[3]=Temp;<br/>}<br/>if(1==1){ //Tile004<br/>var Temp= new Array();<br/>Temp[0]=  new Array("3","2","2","2","2","2","2","3","3","2","2","2","2","2","2","3");<br/>Temp[1]=  new Array("1","3","2","2","2","2","3","1","1","3","2","2","2","2","3","1");<br/>Temp[2]=  new Array("2","1","3","2","2","3","1","2","2","1","3","2","2","3","1","2");<br/>Temp[3]=  new Array("2","2","1","3","3","1","2","2","2","2","1","3","3","1","2","2");<br/>Temp[4]=  new Array("3","2","3","3","3","1","3","2","3","2","3","3","3","1","3","2");<br/>Temp[5]=  new Array("2","3","3","1","1","3","2","3","2","3","3","1","1","3","2","3");<br/>Temp[6]=  new Array("3","3","1","3","2","3","3","2","3","3","1","3","2","3","3","2");<br/>Temp[7]=  new Array("3","1","3","2","3","2","2","3","3","1","3","2","3","2","2","3");<br/>Temp[8]=  new Array("2","2","2","2","0","0","2","2","2","2","2","2","0","0","2","2");<br/>Temp[9]=  new Array("2","2","2","0","0","2","2","2","2","2","2","0","0","2","2","2");<br/>Temp[10]= new Array("2","2","2","0","0","2","2","2","2","2","2","0","0","2","2","2");<br/>Temp[11]= new Array("2","2","2","2","0","0","2","2","2","2","2","2","0","0","2","2");<br/>Temp[12]= new Array("2","2","2","2","2","0","0","0","2","2","2","2","2","0","0","0");<br/>Temp[13]= new Array("0","0","2","2","2","2","2","2","0","0","2","2","2","2","2","2");<br/>Temp[14]= new Array("2","2","0","0","2","2","2","2","2","2","0","0","2","2","2","2");<br/>Temp[15]= new Array("2","2","2","0","0","2","2","2","2","2","2","0","0","2","2","2");<br/>Tiles[4]=Temp;<br/>}<br/>if(1==1){ //Tile005<br/>var Temp= new Array();<br/>Temp[0]=  new Array("3","2","2","2","2","2","2","3","3","2","2","2","2","2","2","3");<br/>Temp[1]=  new Array("1","3","2","2","2","2","3","1","1","3","2","2","2","2","3","1");<br/>Temp[2]=  new Array("2","1","3","2","2","3","1","2","2","1","3","2","2","3","1","2");<br/>Temp[3]=  new Array("2","2","1","3","3","1","2","2","2","2","1","3","3","1","2","2");<br/>Temp[4]=  new Array("3","2","3","3","3","1","3","2","3","2","3","3","3","1","3","2");<br/>Temp[5]=  new Array("2","3","3","1","1","3","2","3","2","3","3","1","1","3","2","3");<br/>Temp[6]=  new Array("3","3","1","3","2","3","3","2","3","3","1","3","2","3","3","2");<br/>Temp[7]=  new Array("3","1","3","2","3","2","2","3","3","1","3","2","3","2","2","3");<br/>Temp[8]=  new Array("2","2","2","2","0","0","2","2","3","3","2","3","2","2","1","3");<br/>Temp[9]=  new Array("2","2","2","0","0","2","2","2","1","3","3","2","2","1","3","2");<br/>Temp[10]= new Array("2","2","2","0","0","2","2","2","3","1","3","3","1","3","2","2");<br/>Temp[11]= new Array("2","2","2","2","0","0","2","2","2","3","1","3","3","2","2","2");<br/>Temp[12]= new Array("2","2","2","2","2","0","0","0","3","2","1","3","3","2","2","2");<br/>Temp[13]= new Array("0","0","2","2","2","2","2","2","2","3","3","1","1","3","2","2");<br/>Temp[14]= new Array("2","2","0","0","2","2","2","2","2","3","2","3","2","1","3","2");<br/>Temp[15]= new Array("2","2","2","0","0","2","2","2","3","2","3","2","2","2","1","3");<br/>Tiles[5]=Temp;<br/>}<br/>if(1==1){ //Tile006<br/>var Temp= new Array();<br/>Temp[0]=  new Array("2","2","2","0","0","2","2","2","3","2","2","2","2","2","2","3");<br/>Temp[1]=  new Array("2","2","2","2","0","0","2","2","1","3","2","2","2","2","3","1");<br/>Temp[2]=  new Array("2","2","2","2","0","0","2","2","2","1","3","2","2","3","1","2");<br/>Temp[3]=  new Array("2","2","2","2","2","0","0","0","2","2","1","3","3","1","2","2");<br/>Temp[4]=  new Array("0","0","2","2","2","2","2","2","3","2","3","3","3","1","3","2");<br/>Temp[5]=  new Array("2","2","0","0","2","2","2","2","2","3","3","1","1","3","2","3");<br/>Temp[6]=  new Array("2","2","0","0","2","2","2","2","3","3","1","3","2","3","3","2");<br/>Temp[7]=  new Array("2","2","2","0","0","2","2","2","3","1","3","2","3","2","2","3");<br/>Temp[8]=  new Array("2","2","2","0","0","2","2","2","3","3","2","3","2","2","1","3");<br/>Temp[9]=  new Array("2","2","2","2","0","0","2","2","1","3","3","2","2","1","3","2");<br/>Temp[10]= new Array("2","2","2","2","0","0","2","2","3","1","3","3","1","3","2","2");<br/>Temp[11]= new Array("2","2","2","2","2","0","0","0","2","3","1","3","3","2","2","2");<br/>Temp[12]= new Array("0","0","2","2","2","2","2","2","3","2","1","3","3","2","2","2");<br/>Temp[13]= new Array("2","2","0","0","2","2","2","2","2","3","3","1","1","3","2","2");<br/>Temp[14]= new Array("2","2","0","0","2","2","2","2","2","3","2","3","2","1","3","2");<br/>Temp[15]= new Array("2","2","2","0","0","2","2","2","3","2","3","2","2","2","1","3");<br/>Tiles[6]=Temp;<br/>}<br/>if(1==1){ //Tile007<br/>var Temp= new Array();<br/>Temp[0]=  new Array("2","2","2","0","0","2","2","2","3","2","2","2","2","2","2","3");<br/>Temp[1]=  new Array("2","2","2","2","0","0","2","2","1","3","2","2","2","2","3","1");<br/>Temp[2]=  new Array("2","2","2","2","0","0","2","2","2","1","3","2","2","3","1","2");<br/>Temp[3]=  new Array("2","2","2","2","2","0","0","0","2","2","1","3","3","1","2","2");<br/>Temp[4]=  new Array("0","0","2","2","2","2","2","2","3","2","3","3","3","1","3","2");<br/>Temp[5]=  new Array("2","2","0","0","2","2","2","2","2","3","3","1","1","3","2","3");<br/>Temp[6]=  new Array("2","2","0","0","2","2","2","2","3","3","1","3","2","3","3","2");<br/>Temp[7]=  new Array("2","2","2","0","0","2","2","2","3","1","3","2","3","2","2","3");<br/>Temp[8]=  new Array("3","2","2","2","2","2","2","3","3","3","2","3","2","2","1","3");<br/>Temp[9]=  new Array("1","3","2","2","2","2","3","1","1","3","3","2","2","1","3","2");<br/>Temp[10]= new Array("2","1","3","2","2","3","1","2","3","1","3","3","1","3","2","2");<br/>Temp[11]= new Array("2","3","3","1","1","3","2","3","2","3","1","3","3","2","2","2");<br/>Temp[12]= new Array("3","2","3","3","3","1","3","2","3","2","1","3","3","2","2","2");<br/>Temp[13]= new Array("2","3","3","1","1","3","2","3","2","3","3","1","1","3","2","2");<br/>Temp[14]= new Array("3","3","1","3","2","3","3","2","2","3","2","3","2","1","3","2");<br/>Temp[15]= new Array("3","1","3","2","3","2","2","3","3","2","3","2","2","2","1","3");<br/>Tiles[7]=Temp;<br/>}<br/>if(1==1){ //Tile008<br/>var Temp= new Array();<br/>Temp[0]=  new Array("2","2","2","0","0","2","2","2","2","2","2","0","0","2","2","2");<br/>Temp[1]=  new Array("2","2","2","2","0","0","2","2","2","2","2","2","0","0","2","2");<br/>Temp[2]=  new Array("2","2","2","2","0","0","2","2","2","2","2","2","0","0","2","2");<br/>Temp[3]=  new Array("2","2","2","2","2","0","0","0","2","2","2","2","2","0","0","0");<br/>Temp[4]=  new Array("0","0","2","2","2","2","2","2","0","0","2","2","2","2","2","2");<br/>Temp[5]=  new Array("2","2","0","0","2","2","2","2","2","2","0","0","2","2","2","2");<br/>Temp[6]=  new Array("2","2","0","0","2","2","2","2","2","2","0","0","2","2","2","2");<br/>Temp[7]=  new Array("2","2","2","0","0","2","2","2","2","2","2","0","0","2","2","2");<br/>Temp[8]=  new Array("3","2","2","2","2","2","2","3","3","3","2","3","2","2","1","3");<br/>Temp[9]=  new Array("1","3","2","2","2","2","3","1","1","3","3","2","2","1","3","2");<br/>Temp[10]= new Array("2","1","3","2","2","3","1","2","3","1","3","3","1","3","2","2");<br/>Temp[11]= new Array("2","3","3","1","1","3","2","3","2","3","1","3","3","2","2","2");<br/>Temp[12]= new Array("3","2","3","3","3","1","3","2","3","2","1","3","3","2","2","2");<br/>Temp[13]= new Array("2","3","3","1","1","3","2","3","2","3","3","1","1","3","2","2");<br/>Temp[14]= new Array("3","3","1","3","2","3","3","2","2","3","2","3","2","1","3","2");<br/>Temp[15]= new Array("3","1","3","2","3","2","2","3","3","2","3","2","2","2","1","3");<br/>Tiles[8]=Temp;<br/>}<br/>if(1==1){ //Tile009<br/>var Temp= new Array();<br/>Temp[0]=  new Array("3","2","2","2","2","2","2","3","2","2","2","0","0","2","2","2");<br/>Temp[1]=  new Array("1","3","2","2","2","2","3","1","2","2","2","2","0","0","2","2");<br/>Temp[2]=  new Array("2","1","3","2","2","3","1","2","2","2","2","2","0","0","2","2");<br/>Temp[3]=  new Array("2","3","3","1","1","3","2","3","2","2","2","2","2","0","0","0");<br/>Temp[4]=  new Array("3","2","3","3","3","1","3","2","0","0","2","2","2","2","2","2");<br/>Temp[5]=  new Array("2","3","3","1","1","3","2","3","2","2","0","0","2","2","2","2");<br/>Temp[6]=  new Array("3","3","1","3","2","3","3","2","2","2","0","0","2","2","2","2");<br/>Temp[7]=  new Array("3","1","3","2","3","2","2","3","2","2","2","0","0","2","2","2");<br/>Temp[8]=  new Array("3","2","2","2","2","2","2","3","3","3","2","3","2","2","1","3");<br/>Temp[9]=  new Array("1","3","2","2","2","2","3","1","1","3","3","2","2","1","3","2");<br/>Temp[10]= new Array("2","1","3","2","2","3","1","2","3","1","3","3","1","3","2","2");<br/>Temp[11]= new Array("2","3","3","1","1","3","2","3","2","3","1","3","3","2","2","2");<br/>Temp[12]= new Array("3","2","3","3","3","1","3","2","3","2","1","3","3","2","2","2");<br/>Temp[13]= new Array("2","3","3","1","1","3","2","3","2","3","3","1","1","3","2","2");<br/>Temp[14]= new Array("3","3","1","3","2","3","3","2","2","3","2","3","2","1","3","2");<br/>Temp[15]= new Array("3","1","3","2","3","2","2","3","3","2","3","2","2","2","1","3");<br/>Tiles[9]=Temp;<br/>}<br/>if(1==1){ //Tile010<br/>var Temp= new Array();<br/>Temp[0]=  new Array("3","2","2","2","2","2","2","3","2","2","2","0","0","2","2","2");<br/>Temp[1]=  new Array("1","3","2","2","2","2","3","1","2","2","2","2","0","0","2","2");<br/>Temp[2]=  new Array("2","1","3","2","2","3","1","2","2","2","2","2","0","0","2","2");<br/>Temp[3]=  new Array("2","3","3","1","1","3","2","3","2","2","2","2","2","0","0","0");<br/>Temp[4]=  new Array("3","2","3","3","3","1","3","2","0","0","2","2","2","2","2","2");<br/>Temp[5]=  new Array("2","3","3","1","1","3","2","3","2","2","0","0","2","2","2","2");<br/>Temp[6]=  new Array("3","3","1","3","2","3","3","2","2","2","0","0","2","2","2","2");<br/>Temp[7]=  new Array("3","1","3","2","3","2","2","3","2","2","2","0","0","2","2","2");<br/>Temp[8]=  new Array("3","2","2","2","2","2","2","3","2","2","2","0","0","2","2","2");<br/>Temp[9]=  new Array("1","3","2","2","2","2","3","1","2","2","2","2","0","0","2","2");<br/>Temp[10]= new Array("2","1","3","2","2","3","1","2","2","2","2","2","0","0","2","2");<br/>Temp[11]= new Array("2","3","3","1","1","3","2","3","2","2","2","2","2","0","0","0");<br/>Temp[12]= new Array("3","2","3","3","3","1","3","2","0","0","2","2","2","2","2","2");<br/>Temp[13]= new Array("2","3","3","1","1","3","2","3","2","2","0","0","2","2","2","2");<br/>Temp[14]= new Array("3","3","1","3","2","3","3","2","2","2","0","0","2","2","2","2");<br/>Temp[15]= new Array("3","1","3","2","3","2","2","3","2","2","2","0","0","2","2","2");<br/>Tiles[10]=Temp;<br/>}<br/>if(1==1){ //Tile011<br/>var Temp= new Array();<br/>Temp[0]=  new Array("2","2","2","0","0","2","2","2","2","2","2","0","0","2","2","2");<br/>Temp[1]=  new Array("2","2","2","2","0","0","2","2","2","2","2","2","0","0","2","2");<br/>Temp[2]=  new Array("2","2","2","2","0","0","2","2","2","2","2","2","0","0","2","2");<br/>Temp[3]=  new Array("2","2","2","2","2","0","0","0","2","2","2","2","2","0","0","0");<br/>Temp[4]=  new Array("0","0","2","2","2","2","2","2","0","0","2","2","2","2","2","2");<br/>Temp[5]=  new Array("2","2","0","0","2","2","2","2","2","2","0","0","2","2","2","2");<br/>Temp[6]=  new Array("2","2","0","0","2","2","2","2","2","2","0","0","2","2","2","2");<br/>Temp[7]=  new Array("2","2","2","0","0","2","2","2","2","2","2","0","0","2","2","2");<br/>Temp[8]=  new Array("2","2","2","0","0","2","2","2","2","2","2","0","0","2","2","2");<br/>Temp[9]=  new Array("2","2","2","2","0","0","2","2","2","2","2","2","0","0","2","2");<br/>Temp[10]= new Array("2","2","2","2","0","0","2","2","2","2","2","2","0","0","2","2");<br/>Temp[11]= new Array("2","2","2","2","2","0","0","0","2","2","2","2","2","0","0","0");<br/>Temp[12]= new Array("0","0","2","2","2","2","2","2","0","0","2","2","2","2","2","2");<br/>Temp[13]= new Array("2","2","0","0","2","2","2","2","2","2","0","0","2","2","2","2");<br/>Temp[14]= new Array("2","2","0","0","2","2","2","2","2","2","0","0","2","2","2","2");<br/>Temp[15]= new Array("2","2","2","0","0","2","2","2","2","2","2","0","0","2","2","2");<br/>Tiles[11]=Temp;<br/>}<br/>if(1==1){ //Tile012<br/>var Temp= new Array();<br/>Temp[0]=  new Array("0","1","1","1","1","3","0","0","1","1","1","1","1","1","1","1");<br/>Temp[1]=  new Array("0","1","1","1","1","3","0","0","2","3","3","3","3","3","3","2");<br/>Temp[2]=  new Array("0","1","1","1","1","3","0","0","3","0","0","0","0","1","0","3");<br/>Temp[3]=  new Array("0","1","1","1","1","3","0","0","3","0","0","0","1","0","2","3");<br/>Temp[4]=  new Array("0","1","1","1","1","3","0","0","3","0","0","1","0","2","1","3");<br/>Temp[5]=  new Array("0","1","1","1","1","3","0","0","3","0","1","0","2","1","2","3");<br/>Temp[6]=  new Array("0","1","1","1","1","3","0","0","3","1","0","2","1","2","2","3");<br/>Temp[7]=  new Array("0","1","1","1","1","3","0","0","2","3","3","3","3","3","3","2");<br/>Temp[8]=  new Array("0","1","1","1","1","3","1","1","1","1","1","1","1","1","1","1");<br/>Temp[9]=  new Array("0","1","1","1","1","3","0","0","1","1","1","1","1","1","1","1");<br/>Temp[10]= new Array("0","1","1","1","1","3","0","0","0","0","0","0","0","0","0","0");<br/>Temp[11]= new Array("0","1","1","1","1","3","1","1","1","1","1","1","1","1","1","1");<br/>Temp[12]= new Array("0","1","1","1","1","3","1","2","2","2","2","2","2","2","2","2");<br/>Temp[13]= new Array("0","1","1","1","1","3","1","2","2","2","2","2","2","2","2","2");<br/>Temp[14]= new Array("0","1","1","1","1","2","3","3","3","3","3","3","3","3","3","3");<br/>Temp[15]= new Array("0","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1");<br/>Tiles[12]=Temp;<br/>}<br/>if(1==1){ //Tile013<br/>var Temp= new Array();<br/>Temp[0]=  new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1");<br/>Temp[1]=  new Array("2","3","3","3","3","3","3","2","2","3","3","3","3","3","3","2");<br/>Temp[2]=  new Array("3","0","0","0","0","1","0","3","3","0","0","0","0","1","0","3");<br/>Temp[3]=  new Array("3","0","0","0","1","0","2","3","3","0","0","0","1","0","2","3");<br/>Temp[4]=  new Array("3","0","0","1","0","2","1","3","3","0","0","1","0","2","1","3");<br/>Temp[5]=  new Array("3","0","1","0","2","1","2","3","3","0","1","0","2","1","2","3");<br/>Temp[6]=  new Array("3","1","0","2","1","2","2","3","3","1","0","2","1","2","2","3");<br/>Temp[7]=  new Array("2","3","3","3","3","3","3","2","2","3","3","3","3","3","3","2");<br/>Temp[8]=  new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1");<br/>Temp[9]=  new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1");<br/>Temp[10]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[11]= new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1");<br/>Temp[12]= new Array("2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2");<br/>Temp[13]= new Array("2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2");<br/>Temp[14]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3");<br/>Temp[15]= new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1");<br/>Tiles[13]=Temp;<br/>}<br/>if(1==1){ //Tile014<br/>var Temp= new Array();<br/>Temp[0]=  new Array("2","1","2","1","1","1","1","1","1","1","1","1","1","2","1","2");<br/>Temp[1]=  new Array("2","1","3","3","3","3","3","3","3","3","3","3","3","3","1","3");<br/>Temp[2]=  new Array("2","1","3","2","2","2","2","2","2","2","2","2","2","3","1","3");<br/>Temp[3]=  new Array("2","1","3","2","2","3","3","3","3","3","3","2","2","3","1","3");<br/>Temp[4]=  new Array("2","0","3","2","3","0","0","0","0","1","0","3","2","3","0","3");<br/>Temp[5]=  new Array("2","0","3","2","3","0","0","0","1","0","1","3","2","3","0","3");<br/>Temp[6]=  new Array("2","0","3","2","3","0","0","1","0","1","1","3","2","3","0","3");<br/>Temp[7]=  new Array("2","0","3","2","3","0","1","0","1","1","1","3","2","3","0","3");<br/>Temp[8]=  new Array("2","0","3","2","2","3","3","3","3","3","3","2","3","3","0","3");<br/>Temp[9]=  new Array("2","0","3","2","2","2","2","2","2","2","2","3","0","3","0","3");<br/>Temp[10]= new Array("2","0","3","2","1","0","0","0","0","0","0","1","3","3","0","3");<br/>Temp[11]= new Array("2","0","3","2","0","1","1","1","1","1","1","1","2","3","0","3");<br/>Temp[12]= new Array("2","0","3","2","0","1","1","1","1","1","1","1","2","3","0","3");<br/>Temp[13]= new Array("2","0","3","2","2","2","2","2","2","2","2","2","2","3","0","3");<br/>Temp[14]= new Array("2","0","3","3","3","3","3","3","3","3","3","3","3","3","0","3");<br/>Temp[15]= new Array("3","3","1","1","1","1","1","1","1","1","1","1","1","1","3","3");<br/>Tiles[14]=Temp;<br/>}<br/>if(1==1){ //Tile015<br/>var Temp= new Array();<br/>Temp[0]=  new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1");<br/>Temp[1]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[2]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[3]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[4]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[5]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[6]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[7]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[8]=  new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1");<br/>Temp[9]=  new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1");<br/>Temp[10]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[11]= new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1");<br/>Temp[12]= new Array("2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2");<br/>Temp[13]= new Array("2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2");<br/>Temp[14]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3");<br/>Temp[15]= new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1");<br/>Tiles[15]=Temp;<br/>}<br/>if(1==1){ //Tile016<br/>var Temp= new Array();<br/>Temp[0]=  new Array("1","1","1","1","1","1","1","1","0","0","3","1","1","1","1","0");<br/>Temp[1]=  new Array("2","3","3","3","3","3","3","2","0","0","3","1","1","1","1","0");<br/>Temp[2]=  new Array("3","0","0","0","0","1","0","3","0","0","3","1","1","1","1","0");<br/>Temp[3]=  new Array("3","0","0","0","1","0","2","3","0","0","3","1","1","1","1","0");<br/>Temp[4]=  new Array("3","0","0","1","0","2","1","3","0","0","3","1","1","1","1","0");<br/>Temp[5]=  new Array("3","0","1","0","2","1","2","3","0","0","3","1","1","1","1","0");<br/>Temp[6]=  new Array("3","1","0","2","1","2","2","3","0","0","3","1","1","1","1","0");<br/>Temp[7]=  new Array("2","3","3","3","3","3","3","2","0","0","3","1","1","1","1","0");<br/>Temp[8]=  new Array("1","1","1","1","1","1","1","1","1","1","3","1","1","1","1","0");<br/>Temp[9]=  new Array("1","1","1","1","1","1","1","1","0","0","3","1","1","1","1","0");<br/>Temp[10]= new Array("0","0","0","0","0","0","0","0","0","0","3","1","1","1","1","0");<br/>Temp[11]= new Array("1","1","1","1","1","1","1","1","1","1","3","1","1","1","1","0");<br/>Temp[12]= new Array("2","2","2","2","2","2","2","2","2","1","3","1","1","1","1","0");<br/>Temp[13]= new Array("2","2","2","2","2","2","2","2","2","1","3","1","1","1","1","0");<br/>Temp[14]= new Array("3","3","3","3","3","3","3","3","3","3","1","1","1","1","1","0");<br/>Temp[15]= new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","0");<br/>Tiles[16]=Temp;<br/>}<br/>if(1==1){ //Tile017<br/>var Temp= new Array();<br/>Temp[0]=  new Array("3","0","2","2","0","2","2","0","2","3","3","2","2","3","3","1");<br/>Temp[1]=  new Array("3","0","2","2","0","2","2","3","3","2","2","3","3","1","1","1");<br/>Temp[2]=  new Array("3","0","2","2","0","3","3","2","2","3","3","1","1","1","1","1");<br/>Temp[3]=  new Array("3","0","2","3","3","2","2","3","3","1","1","1","1","1","1","1");<br/>Temp[4]=  new Array("3","1","1","2","2","3","3","1","1","1","1","1","1","0","0","0");<br/>Temp[5]=  new Array("3","2","2","2","2","1","1","1","1","1","1","0","0","0","0","0");<br/>Temp[6]=  new Array("0","3","3","3","3","1","1","1","1","0","0","0","0","0","0","0");<br/>Temp[7]=  new Array("0","0","0","0","3","1","1","0","0","0","0","0","0","0","0","0");<br/>Temp[8]=  new Array("0","1","1","1","1","3","0","0","0","0","0","0","0","0","0","0");<br/>Temp[9]=  new Array("0","1","1","1","1","3","0","0","0","2","1","1","1","1","1","1");<br/>Temp[10]= new Array("0","1","1","1","1","3","0","0","0","2","1","1","1","1","1","1");<br/>Temp[11]= new Array("0","1","1","1","1","3","0","0","0","0","0","0","0","0","0","0");<br/>Temp[12]= new Array("0","1","1","1","1","3","0","0","1","1","1","1","0","3","1","1");<br/>Temp[13]= new Array("0","1","1","1","1","3","0","0","1","1","1","1","0","3","1","1");<br/>Temp[14]= new Array("0","1","1","1","1","3","0","0","0","0","0","0","0","0","0","0");<br/>Temp[15]= new Array("0","1","1","1","1","3","0","0","0","2","1","1","1","1","1","0");<br/>Tiles[17]=Temp;<br/>}<br/>if(1==1){ //Tile018<br/>var Temp= new Array();<br/>Temp[0]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[1]=  new Array("1","1","1","1","1","1","2","0","1","1","1","1","1","1","2","0");<br/>Temp[2]=  new Array("1","1","1","1","1","1","2","0","1","1","1","1","1","1","2","0");<br/>Temp[3]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[4]=  new Array("1","1","2","0","1","1","1","1","1","1","2","0","1","1","1","1");<br/>Temp[5]=  new Array("1","1","2","0","1","1","1","1","1","1","2","0","1","1","1","1");<br/>Temp[6]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[7]=  new Array("0","1","1","1","1","1","2","0","0","1","1","1","1","1","2","0");<br/>Temp[8]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[9]=  new Array("1","1","1","1","1","1","2","0","1","1","1","1","1","1","2","0");<br/>Temp[10]= new Array("1","1","1","1","1","1","2","0","1","1","1","1","1","1","2","0");<br/>Temp[11]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[12]= new Array("1","1","2","0","1","1","1","1","1","1","2","0","1","1","1","1");<br/>Temp[13]= new Array("1","1","2","0","1","1","1","1","1","1","2","0","1","1","1","1");<br/>Temp[14]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[15]= new Array("0","1","1","1","1","1","2","0","0","1","1","1","1","1","2","0");<br/>Tiles[18]=Temp;<br/>}<br/>if(1==1){ //Tile019<br/>var Temp= new Array();<br/>Temp[0]=  new Array("1","1","1","1","1","1","1","1","0","0","0","0","0","0","0","0");<br/>Temp[1]=  new Array("2","3","3","3","3","3","3","2","1","1","1","1","1","1","2","0");<br/>Temp[2]=  new Array("3","0","0","0","0","1","0","3","1","1","1","1","1","1","2","0");<br/>Temp[3]=  new Array("3","0","0","0","1","0","2","3","0","0","0","0","0","0","0","0");<br/>Temp[4]=  new Array("3","0","0","1","0","2","1","3","1","1","2","0","1","1","1","1");<br/>Temp[5]=  new Array("3","0","1","0","2","1","2","3","1","1","2","0","1","1","1","1");<br/>Temp[6]=  new Array("3","1","0","2","1","2","2","3","0","0","0","0","0","0","0","0");<br/>Temp[7]=  new Array("2","3","3","3","3","3","3","2","0","1","1","1","1","1","2","0");<br/>Temp[8]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[9]=  new Array("1","1","1","1","1","1","2","0","1","1","1","1","1","1","2","0");<br/>Temp[10]= new Array("1","1","1","1","1","1","2","0","1","1","1","1","1","1","2","0");<br/>Temp[11]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[12]= new Array("1","1","2","0","1","1","1","1","1","1","2","0","1","1","1","1");<br/>Temp[13]= new Array("1","1","2","0","1","1","1","1","1","1","2","0","1","1","1","1");<br/>Temp[14]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[15]= new Array("0","1","1","1","1","1","2","0","0","1","1","1","1","1","2","0");<br/>Tiles[19]=Temp;<br/>}<br/>if(1==1){ //Tile020<br/>var Temp= new Array();<br/>Temp[0]=  new Array("0","0","0","0","0","0","0","0","1","1","1","1","1","1","1","1");<br/>Temp[1]=  new Array("1","1","1","1","1","1","2","0","2","3","3","3","3","3","3","2");<br/>Temp[2]=  new Array("1","1","1","1","1","1","2","0","3","0","0","0","0","1","0","3");<br/>Temp[3]=  new Array("0","0","0","0","0","0","0","0","3","0","0","0","1","0","2","3");<br/>Temp[4]=  new Array("1","1","2","0","1","1","1","1","3","0","0","1","0","2","1","3");<br/>Temp[5]=  new Array("1","1","2","0","1","1","1","1","3","0","1","0","2","1","2","3");<br/>Temp[6]=  new Array("0","0","0","0","0","0","0","0","3","1","0","2","1","2","2","3");<br/>Temp[7]=  new Array("0","1","1","1","1","1","2","0","2","3","3","3","3","3","3","2");<br/>Temp[8]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[9]=  new Array("1","1","1","1","1","1","2","0","1","1","1","1","1","1","2","0");<br/>Temp[10]= new Array("1","1","1","1","1","1","2","0","1","1","1","1","1","1","2","0");<br/>Temp[11]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[12]= new Array("1","1","2","0","1","1","1","1","1","1","2","0","1","1","1","1");<br/>Temp[13]= new Array("1","1","2","0","1","1","1","1","1","1","2","0","1","1","1","1");<br/>Temp[14]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[15]= new Array("0","1","1","1","1","1","2","0","0","1","1","1","1","1","2","0");<br/>Tiles[20]=Temp;<br/>}<br/>if(1==1){ //Tile021<br/>var Temp= new Array();<br/>Temp[0]=  new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1");<br/>Temp[1]=  new Array("2","3","3","3","3","3","3","2","2","3","3","3","3","3","3","2");<br/>Temp[2]=  new Array("3","0","0","0","0","1","0","3","3","0","0","0","0","1","0","3");<br/>Temp[3]=  new Array("3","0","0","0","1","0","2","3","3","0","0","0","1","0","2","3");<br/>Temp[4]=  new Array("3","0","0","1","0","2","1","3","3","0","0","1","0","2","1","3");<br/>Temp[5]=  new Array("3","0","1","0","2","1","2","3","3","0","1","0","2","1","2","3");<br/>Temp[6]=  new Array("3","1","0","2","1","2","2","3","3","1","0","2","1","2","2","3");<br/>Temp[7]=  new Array("2","3","3","3","3","3","3","2","2","3","3","3","3","3","3","2");<br/>Temp[8]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[9]=  new Array("1","1","1","1","1","1","2","0","1","1","1","1","1","1","2","0");<br/>Temp[10]= new Array("1","1","1","1","1","1","2","0","1","1","1","1","1","1","2","0");<br/>Temp[11]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[12]= new Array("1","1","2","0","1","1","1","1","1","1","2","0","1","1","1","1");<br/>Temp[13]= new Array("1","1","2","0","1","1","1","1","1","1","2","0","1","1","1","1");<br/>Temp[14]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[15]= new Array("0","1","1","1","1","1","2","0","0","1","1","1","1","1","2","0");<br/>Tiles[21]=Temp;<br/>}<br/>if(1==1){ //Tile022<br/>var Temp= new Array();<br/>Temp[0]=  new Array("1","3","3","2","2","3","3","2","0","2","2","0","2","2","0","3");<br/>Temp[1]=  new Array("1","1","1","3","3","2","2","3","3","2","2","0","2","2","0","3");<br/>Temp[2]=  new Array("1","1","1","1","1","3","3","2","2","3","3","0","2","2","0","3");<br/>Temp[3]=  new Array("1","1","1","1","1","1","1","3","3","2","2","3","3","2","0","3");<br/>Temp[4]=  new Array("0","0","0","1","1","1","1","1","1","3","3","2","2","3","3","3");<br/>Temp[5]=  new Array("0","0","0","0","0","1","1","1","1","1","1","3","3","2","2","3");<br/>Temp[6]=  new Array("0","0","0","0","0","0","0","1","1","1","1","3","3","3","3","0");<br/>Temp[7]=  new Array("0","0","0","0","0","0","0","0","0","1","1","3","0","0","0","0");<br/>Temp[8]=  new Array("0","0","0","0","0","0","0","0","0","0","3","1","1","1","1","0");<br/>Temp[9]=  new Array("1","1","1","1","1","1","2","0","0","0","3","1","1","1","1","0");<br/>Temp[10]= new Array("1","1","1","1","1","1","2","0","0","0","3","1","1","1","1","0");<br/>Temp[11]= new Array("0","0","0","0","0","0","0","0","0","0","3","1","1","1","1","0");<br/>Temp[12]= new Array("1","1","2","0","1","1","1","1","0","0","3","1","1","1","1","0");<br/>Temp[13]= new Array("1","1","2","0","1","1","1","1","0","0","3","1","1","1","1","0");<br/>Temp[14]= new Array("0","0","0","0","0","0","0","0","0","0","3","1","1","1","1","0");<br/>Temp[15]= new Array("0","1","1","1","1","1","2","0","0","0","3","1","1","1","1","0");<br/>Tiles[22]=Temp;<br/>}<br/>//Tiles Missing<br/>if(1==1){ //Tile029<br/>var Temp= new Array();<br/>Temp[0]=  new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2");<br/>Temp[1]=  new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2");<br/>Temp[2]=  new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2");<br/>Temp[3]=  new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2");<br/>Temp[4]=  new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2");<br/>Temp[5]=  new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2");<br/>Temp[6]=  new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2");<br/>Temp[7]=  new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2");<br/>Temp[8]=  new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2");<br/>Temp[9]=  new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2");<br/>Temp[10]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2");<br/>Temp[11]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2");<br/>Temp[12]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2");<br/>Temp[13]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","3");<br/>Temp[14]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","3","3","2");<br/>Temp[15]= new Array("3","0","2","2","0","2","2","0","2","2","0","3","3","2","2","3");<br/>Tiles[29]=Temp;<br/>}<br/>if(1==1){ //Tile030<br/>var Temp= new Array();<br/>Temp[0]=  new Array("0","1","1","1","1","1","1","0","0","1","1","1","1","1","1","0");<br/>Temp[1]=  new Array("1","0","1","1","1","1","0","2","1","0","1","1","1","1","0","2");<br/>Temp[2]=  new Array("1","1","0","1","1","0","2","1","1","1","0","1","1","0","2","1");<br/>Temp[3]=  new Array("1","1","1","0","0","2","1","1","1","1","1","0","0","2","1","1");<br/>Temp[4]=  new Array("1","1","1","0","0","1","1","1","1","1","1","0","0","1","1","1");<br/>Temp[5]=  new Array("1","1","0","2","1","0","1","1","1","1","0","2","1","0","1","1");<br/>Temp[6]=  new Array("1","0","2","1","1","1","0","1","1","0","2","1","1","1","0","1");<br/>Temp[7]=  new Array("0","2","1","1","1","1","1","0","0","2","1","1","1","1","1","0");<br/>Temp[8]=  new Array("2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2");<br/>Temp[9]=  new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1");<br/>Temp[10]= new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1");<br/>Temp[11]= new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1");<br/>Temp[12]= new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1");<br/>Temp[13]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3");<br/>Temp[14]= new Array("2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2");<br/>Temp[15]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3");<br/>Tiles[30]=Temp;<br/>}<br/>if(1==1){ //Tile031<br/>var Temp= new Array();<br/>Temp[0]=  new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3");<br/>Temp[1]=  new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3");<br/>Temp[2]=  new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3");<br/>Temp[3]=  new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3");<br/>Temp[4]=  new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3");<br/>Temp[5]=  new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3");<br/>Temp[6]=  new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3");<br/>Temp[7]=  new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3");<br/>Temp[8]=  new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3");<br/>Temp[9]=  new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3");<br/>Temp[10]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3");<br/>Temp[11]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3");<br/>Temp[12]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3");<br/>Temp[13]= new Array("3","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3");<br/>Temp[14]= new Array("2","3","3","2","2","0","2","2","0","2","2","0","2","2","0","3");<br/>Temp[15]= new Array("3","2","2","3","3","0","2","2","0","2","2","0","2","2","0","3");<br/>Tiles[31]=Temp;<br/>}<br/>if(1==1){ //Tile032<br/>var Temp= new Array();<br/>Temp[0]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","3");<br/>Temp[1]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","3","3","2");<br/>Temp[2]=  new Array("0","0","0","0","0","0","0","0","0","0","0","3","3","0","2","2");<br/>Temp[3]=  new Array("0","0","0","0","0","0","0","0","0","3","3","2","2","0","2","2");<br/>Temp[4]=  new Array("0","0","0","0","0","0","0","3","3","2","0","2","2","0","2","2");<br/>Temp[5]=  new Array("0","0","0","0","0","3","3","0","2","2","0","2","2","0","2","2");<br/>Temp[6]=  new Array("0","0","0","3","3","2","2","0","2","2","0","2","2","0","2","2");<br/>Temp[7]=  new Array("0","3","3","2","0","2","2","0","2","2","0","2","2","0","2","2");<br/>Temp[8]=  new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2");<br/>Temp[9]=  new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2");<br/>Temp[10]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2");<br/>Temp[11]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2");<br/>Temp[12]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2");<br/>Temp[13]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2");<br/>Temp[14]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2");<br/>Temp[15]= new Array("3","0","2","2","0","2","2","0","2","2","0","2","2","0","2","2");<br/>Tiles[32]=Temp;<br/>}<br/>if(1==1){ //Tile033<br/>var Temp= new Array();<br/>Temp[0]=  new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3");<br/>Temp[1]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[2]=  new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1");<br/>Temp[3]=  new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1");<br/>Temp[4]=  new Array("2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2");<br/>Temp[5]=  new Array("1","1","0","2","1","0","1","1","1","1","0","2","1","0","1","1");<br/>Temp[6]=  new Array("1","0","2","1","1","1","0","1","1","0","2","1","1","1","0","1");<br/>Temp[7]=  new Array("0","2","1","1","1","1","1","0","0","2","1","1","1","1","1","0");<br/>Temp[8]=  new Array("0","1","1","1","1","1","1","0","0","1","1","1","1","1","1","0");<br/>Temp[9]=  new Array("1","0","1","1","1","1","0","2","1","0","1","1","1","1","0","2");<br/>Temp[10]= new Array("1","1","0","1","1","0","2","1","1","1","0","1","1","0","2","1");<br/>Temp[11]= new Array("1","1","1","0","0","2","1","1","1","1","1","0","0","2","1","1");<br/>Temp[12]= new Array("1","1","1","0","0","1","1","1","1","1","1","0","0","1","1","1");<br/>Temp[13]= new Array("1","1","0","2","1","0","1","1","1","1","0","2","1","0","1","1");<br/>Temp[14]= new Array("1","0","2","1","1","1","0","1","1","0","2","1","1","1","0","1");<br/>Temp[15]= new Array("0","2","1","1","1","1","1","0","0","2","1","1","1","1","1","0");<br/>Tiles[33]=Temp;<br/>}<br/>if(1==1){ //Tile034<br/>var Temp= new Array();<br/>Temp[0]=  new Array("3","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[1]=  new Array("2","3","3","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[2]=  new Array("2","2","0","3","3","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[3]=  new Array("2","2","0","2","2","3","3","0","0","0","0","0","0","0","0","0");<br/>Temp[4]=  new Array("2","2","0","2","2","0","2","3","3","0","0","0","0","0","0","0");<br/>Temp[5]=  new Array("2","2","0","2","2","0","2","2","0","3","3","0","0","0","0","0");<br/>Temp[6]=  new Array("2","2","0","2","2","0","2","2","0","2","2","3","3","0","0","0");<br/>Temp[7]=  new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","3","3","0");<br/>Temp[8]=  new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3");<br/>Temp[9]=  new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3");<br/>Temp[10]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3");<br/>Temp[11]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3");<br/>Temp[12]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3");<br/>Temp[13]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3");<br/>Temp[14]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3");<br/>Temp[15]= new Array("2","2","0","2","2","0","2","2","0","2","2","0","2","2","0","3");<br/>Tiles[34]=Temp;<br/>}<br/>//Tiles Missing<br/>if(1==1){ //Tile081 (Grass)<br/>var Temp= new Array();<br/>Temp[0]=  new Array("0","0","0","0","0","0","2","1","0","0","0","0","0","0","2","1");<br/>Temp[1]=  new Array("0","0","0","0","0","2","0","2","0","0","0","0","0","2","0","2");<br/>Temp[2]=  new Array("2","2","0","0","2","1","1","2","2","2","0","0","2","1","1","2");<br/>Temp[3]=  new Array("2","0","2","0","2","1","2","1","2","0","2","0","2","1","2","1");<br/>Temp[4]=  new Array("2","0","1","2","2","2","2","0","2","0","1","2","2","2","2","0");<br/>Temp[5]=  new Array("0","2","0","1","2","2","1","0","0","2","0","1","2","2","1","0");<br/>Temp[6]=  new Array("1","1","2","1","2","2","0","0","1","1","2","1","2","2","0","0");<br/>Temp[7]=  new Array("0","1","1","2","2","1","0","0","0","1","1","2","2","1","0","0");<br/>Temp[8]=  new Array("0","0","0","0","0","0","2","1","0","0","0","0","0","0","2","1");<br/>Temp[9]=  new Array("0","0","0","0","0","2","0","2","0","0","0","0","0","2","0","2");<br/>Temp[10]=  new Array("2","2","0","0","2","1","1","2","2","2","0","0","2","1","1","2");<br/>Temp[11]=  new Array("2","0","2","0","2","1","2","1","2","0","2","0","2","1","2","1");<br/>Temp[12]=  new Array("2","0","1","2","2","2","2","0","2","0","1","2","2","2","2","0");<br/>Temp[13]=  new Array("0","2","0","1","2","2","1","0","0","2","0","1","2","2","1","0");<br/>Temp[14]=  new Array("1","1","2","1","2","2","0","0","1","1","2","1","2","2","0","0");<br/>Temp[15]=  new Array("0","1","1","2","2","1","0","0","0","1","1","2","2","1","0","0");<br/>Tiles[81]=Temp;<br/>}<br/>if(1==1){ //Tile082 (Bollard)<br/>var Temp= new Array();<br/>Temp[0]=  new Array("0","0","0","0","0","0","3","3","3","3","3","0","0","0","0","0");<br/>Temp[1]=  new Array("0","0","0","0","3","3","2","1","1","1","2","3","3","0","0","0");<br/>Temp[2]=  new Array("0","0","0","3","2","1","0","0","0","0","0","1","2","3","0","0");<br/>Temp[3]=  new Array("0","0","3","2","0","0","0","0","0","0","0","0","0","2","3","0");<br/>Temp[4]=  new Array("0","0","3","1","0","0","0","0","0","0","0","0","0","1","3","0");<br/>Temp[5]=  new Array("0","0","3","2","1","1","0","0","0","0","0","1","1","2","3","0");<br/>Temp[6]=  new Array("0","0","3","2","1","2","1","1","1","1","1","2","1","2","3","0");<br/>Temp[7]=  new Array("0","1","3","2","1","2","2","0","0","0","2","2","1","2","3","0");<br/>Temp[8]=  new Array("1","1","3","1","1","2","2","0","0","0","2","2","1","1","3","0");<br/>Temp[9]=  new Array("1","2","3","1","1","1","1","0","0","0","1","1","1","1","3","0");<br/>Temp[10]= new Array("1","2","3","2","1","1","1","0","0","0","1","1","1","2","3","0");<br/>Temp[11]= new Array("1","2","3","2","1","2","2","0","0","0","2","2","1","2","3","0");<br/>Temp[12]= new Array("0","2","2","3","1","2","2","0","0","0","2","2","1","3","2","0");<br/>Temp[13]= new Array("0","1","2","2","3","3","2","0","0","0","2","3","3","2","0","0");<br/>Temp[14]= new Array("0","0","1","2","2","2","3","3","3","3","3","2","2","0","0","0");<br/>Temp[15]= new Array("0","0","0","1","1","1","2","2","2","2","2","0","0","0","0","0");<br/>Tiles[82]=Temp;<br/>}<br/>//Tiles Missing<br/>if(1==1){ //Tile085 (TRAINER (085-092) )<br/>var Temp= new Array();<br/>Temp[0]=  new Array("4","4","4","4","4","3","3","3","3","3","3","4","4","4","4","4");<br/>Temp[1]=  new Array("4","4","4","4","3","2","2","2","2","2","2","3","4","4","4","4");<br/>Temp[2]=  new Array("4","4","4","3","2","2","2","2","2","2","2","2","3","4","4","4");<br/>Temp[3]=  new Array("4","4","4","3","2","2","2","2","2","2","2","2","3","4","4","4");<br/>Temp[4]=  new Array("4","4","3","3","3","2","1","1","1","1","2","3","3","3","4","4");<br/>Temp[5]=  new Array("4","4","3","3","1","3","3","3","3","3","3","1","3","3","4","4");<br/>Temp[6]=  new Array("4","3","1","3","1","1","1","1","1","1","1","1","3","1","3","4");<br/>Temp[7]=  new Array("4","3","1","1","1","1","3","1","1","3","1","1","1","1","3","4");<br/>Temp[8]=  new Array("4","4","3","3","1","1","3","1","1","3","1","1","3","3","4","4");<br/>Temp[9]=  new Array("4","4","3","3","3","1","1","2","2","1","1","3","3","3","4","4");<br/>Temp[10]= new Array("4","3","1","1","3","3","3","3","3","3","3","3","1","1","3","4");<br/>Temp[11]= new Array("4","3","1","1","3","3","3","3","3","3","3","3","1","1","3","4");<br/>Temp[12]= new Array("4","4","3","3","3","2","2","3","3","2","2","3","3","3","4","4");<br/>Temp[13]= new Array("4","4","4","3","2","3","3","2","2","3","3","2","3","4","4","4");<br/>Temp[14]= new Array("4","4","4","3","2","2","2","3","3","2","2","2","3","4","4","4");<br/>Temp[15]= new Array("4","4","4","4","3","3","3","4","4","3","3","3","4","4","4","4");<br/>Tiles[85]=Temp;<br/>}<br/>if(1==1){ //Tile086<br/>var Temp= new Array();<br/>Temp[0]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[1]=  new Array("4","4","4","4","4","3","3","3","3","3","3","4","4","4","4","4");<br/>Temp[2]=  new Array("4","4","4","4","3","2","2","2","2","2","2","3","4","4","4","4");<br/>Temp[3]=  new Array("4","4","4","3","2","2","2","2","2","2","2","2","3","4","4","4");<br/>Temp[4]=  new Array("4","4","4","3","2","2","2","2","2","2","2","2","3","4","4","4");<br/>Temp[5]=  new Array("4","4","3","3","3","2","1","1","1","1","2","3","3","3","4","4");<br/>Temp[6]=  new Array("4","4","3","3","3","3","3","3","3","3","3","3","3","3","4","4");<br/>Temp[7]=  new Array("4","3","1","3","1","1","1","1","1","1","1","1","3","1","3","4");<br/>Temp[8]=  new Array("4","3","1","1","1","1","3","1","1","3","1","1","1","1","3","4");<br/>Temp[9]=  new Array("4","3","3","3","1","1","3","1","1","3","1","1","3","3","4","4");<br/>Temp[10]= new Array("4","3","1","3","3","1","1","2","2","1","1","3","2","3","4","4");<br/>Temp[11]= new Array("4","4","3","3","3","3","3","3","3","3","3","3","1","3","4","4");<br/>Temp[12]= new Array("4","4","4","3","3","2","3","3","3","3","1","1","3","3","4","4");<br/>Temp[13]= new Array("4","4","4","4","3","3","3","2","2","3","1","1","3","4","4","4");<br/>Temp[14]= new Array("4","4","4","4","3","2","2","3","3","4","3","3","4","4","4","4");<br/>Temp[15]= new Array("4","4","4","4","4","3","3","3","4","4","4","4","4","4","4","4");<br/>Tiles[86]=Temp;<br/>}<br/>if(1==1){ //Tile087<br/>var Temp= new Array();<br/>Temp[0]=  new Array("4","4","4","4","4","3","3","3","3","3","3","4","4","4","4","4");<br/>Temp[1]=  new Array("4","4","4","4","3","2","2","2","2","2","2","3","4","4","4","4");<br/>Temp[2]=  new Array("4","4","4","3","2","2","2","2","2","2","2","2","3","4","4","4");<br/>Temp[3]=  new Array("4","4","4","3","2","2","2","2","2","2","2","2","3","4","4","4");<br/>Temp[4]=  new Array("4","4","3","3","2","2","2","2","2","2","2","2","3","3","4","4");<br/>Temp[5]=  new Array("4","4","3","3","3","2","2","2","2","2","2","3","3","3","4","4");<br/>Temp[6]=  new Array("4","3","1","3","3","3","3","3","3","3","3","3","3","1","3","4");<br/>Temp[7]=  new Array("4","3","1","1","3","3","3","3","3","3","3","3","1","1","3","4");<br/>Temp[8]=  new Array("4","4","3","3","1","1","3","3","3","3","1","1","3","3","4","4");<br/>Temp[9]=  new Array("4","4","3","3","3","3","2","2","2","2","3","3","3","3","4","4");<br/>Temp[10]= new Array("4","3","1","3","3","2","3","3","3","3","2","3","3","1","3","4");<br/>Temp[11]= new Array("4","3","1","3","3","2","2","1","1","2","2","3","3","1","3","4");<br/>Temp[12]= new Array("4","4","3","3","3","3","2","2","2","2","3","3","3","3","4","4");<br/>Temp[13]= new Array("4","4","4","3","2","3","3","3","3","3","3","2","3","4","4","4");<br/>Temp[14]= new Array("4","4","4","3","2","2","2","3","3","2","2","2","3","4","4","4");<br/>Temp[15]= new Array("4","4","4","4","3","3","3","4","4","3","3","3","4","4","4","4");<br/>Tiles[87]=Temp;<br/>}<br/>if(1==1){ //Tile088<br/>var Temp= new Array();<br/>Temp[0]=  new Array("4","4","4","4","4","3","3","3","3","3","3","4","4","4","4","4");<br/>Temp[1]=  new Array("4","4","4","4","3","2","2","2","2","2","2","3","4","4","4","4");<br/>Temp[2]=  new Array("4","4","4","3","2","2","2","2","2","2","2","2","3","4","4","4");<br/>Temp[3]=  new Array("4","4","4","3","2","2","2","2","2","2","2","2","3","4","4","4");<br/>Temp[4]=  new Array("4","4","3","3","2","2","2","2","2","2","2","2","3","3","4","4");<br/>Temp[5]=  new Array("4","4","3","3","3","2","2","2","2","2","2","3","3","3","4","4");<br/>Temp[6]=  new Array("4","3","1","3","3","3","3","3","3","3","3","3","3","1","3","4");<br/>Temp[7]=  new Array("4","3","1","1","3","3","3","3","3","3","3","3","1","1","3","4");<br/>Temp[8]=  new Array("4","3","3","3","1","1","3","3","3","3","1","1","3","3","4","4");<br/>Temp[9]=  new Array("4","3","1","3","3","3","2","2","2","2","3","3","3","3","4","4");<br/>Temp[10]= new Array("4","4","3","3","3","2","3","3","3","3","2","3","1","1","3","4");<br/>Temp[11]= new Array("4","4","4","3","3","2","2","1","1","2","2","3","1","1","3","4");<br/>Temp[12]= new Array("4","4","4","4","3","3","2","2","2","2","3","3","3","3","4","4");<br/>Temp[13]= new Array("4","4","4","4","3","2","3","3","3","3","4","4","4","4","4","4");<br/>Temp[14]= new Array("4","4","4","4","4","3","3","3","4","4","4","4","4","4","4","4");<br/>Temp[15]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Tiles[88]=Temp;<br/>}<br/>if(1==1){ //Tile089<br/>var Temp= new Array();<br/>Temp[0]=  new Array("4","4","4","4","4","3","3","3","3","3","3","4","4","4","4","4");<br/>Temp[1]=  new Array("4","4","4","4","3","2","2","2","2","2","2","3","4","4","4","4");<br/>Temp[2]=  new Array("4","4","4","3","2","2","2","2","2","2","2","2","3","4","4","4");<br/>Temp[3]=  new Array("4","4","3","3","1","2","2","2","2","2","2","2","3","4","4","4");<br/>Temp[4]=  new Array("4","3","1","1","1","1","2","2","2","2","2","3","3","3","4","4");<br/>Temp[5]=  new Array("4","4","3","3","2","2","2","3","3","3","3","3","3","3","4","4");<br/>Temp[6]=  new Array("4","4","4","3","1","3","1","1","3","3","3","3","3","3","4","4");<br/>Temp[7]=  new Array("4","4","4","3","1","3","1","1","3","1","1","3","3","4","4","4");<br/>Temp[8]=  new Array("4","4","4","3","1","1","1","1","1","1","1","3","4","4","4","4");<br/>Temp[9]=  new Array("4","4","4","4","3","2","1","1","1","3","3","2","3","4","4","4");<br/>Temp[10]= new Array("4","4","4","4","4","3","3","3","3","3","2","2","3","4","4","4");<br/>Temp[11]= new Array("4","4","4","4","4","4","3","3","1","1","3","2","3","4","4","4");<br/>Temp[12]= new Array("4","4","4","4","4","4","3","3","1","1","3","2","3","4","4","4");<br/>Temp[13]= new Array("4","4","4","4","4","3","2","2","3","3","3","3","4","4","4","4");<br/>Temp[14]= new Array("4","4","4","4","4","3","2","2","2","2","3","4","4","4","4","4");<br/>Temp[15]= new Array("4","4","4","4","4","4","3","3","3","3","4","4","4","4","4","4");<br/>Tiles[89]=Temp;<br/>}<br/>if(1==1){ //Tile090<br/>var Temp= new Array();<br/>Temp[0]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[1]=  new Array("4","4","4","4","4","3","3","3","3","3","3","4","4","4","4","4");<br/>Temp[2]=  new Array("4","4","4","4","3","2","2","2","2","2","2","3","4","4","4","4");<br/>Temp[3]=  new Array("4","4","4","3","2","2","2","2","2","2","2","2","3","4","4","4");<br/>Temp[4]=  new Array("4","4","3","3","1","2","2","2","2","2","2","2","3","4","4","4");<br/>Temp[5]=  new Array("4","3","1","1","1","1","2","2","2","2","2","3","3","3","4","4");<br/>Temp[6]=  new Array("4","4","3","3","2","2","2","3","3","3","3","3","3","3","4","4");<br/>Temp[7]=  new Array("4","4","4","3","1","3","1","1","3","3","3","3","3","3","4","4");<br/>Temp[8]=  new Array("4","4","4","3","1","3","1","1","3","1","1","3","3","4","4","4");<br/>Temp[9]=  new Array("4","4","4","3","1","1","1","1","1","1","1","3","4","4","4","4");<br/>Temp[10]= new Array("4","4","4","4","3","2","1","1","1","3","3","2","3","4","4","4");<br/>Temp[11]= new Array("4","4","4","4","4","3","3","3","3","3","3","2","3","4","4","4");<br/>Temp[12]= new Array("4","4","4","3","3","3","3","3","3","1","1","3","3","4","4","4");<br/>Temp[13]= new Array("4","4","3","2","2","3","2","2","3","1","1","3","2","3","4","4");<br/>Temp[14]= new Array("4","4","4","3","2","2","3","3","3","3","3","2","2","3","4","4");<br/>Temp[15]= new Array("4","4","4","4","3","3","3","4","4","4","4","3","3","4","4","4");<br/>Tiles[90]=Temp;<br/>}<br/>if(1==1){ //Tile091<br/>var Temp= new Array();<br/>Temp[0]=  new Array("4","4","4","4","4","3","3","3","3","3","3","4","4","4","4","4");<br/>Temp[1]=  new Array("4","4","4","4","3","2","2","2","2","2","2","3","4","4","4","4");<br/>Temp[2]=  new Array("4","4","4","3","2","2","2","2","2","2","2","2","3","4","4","4");<br/>Temp[3]=  new Array("4","4","4","3","2","2","2","2","2","2","2","1","3","3","4","4");<br/>Temp[4]=  new Array("4","4","3","3","3","2","2","2","2","2","1","1","1","1","3","4");<br/>Temp[5]=  new Array("4","4","3","3","3","3","3","3","3","2","2","2","3","3","4","4");<br/>Temp[6]=  new Array("4","4","3","3","3","3","3","3","1","1","3","1","3","4","4","4");<br/>Temp[7]=  new Array("4","4","4","3","3","1","1","3","1","1","3","1","3","4","4","4");<br/>Temp[8]=  new Array("4","4","4","4","3","1","1","1","1","1","1","1","3","4","4","4");<br/>Temp[9]=  new Array("4","4","4","3","2","3","3","1","1","1","2","3","4","4","4","4");<br/>Temp[10]= new Array("4","4","4","3","2","2","3","3","3","3","3","4","4","4","4","4");<br/>Temp[11]= new Array("4","4","4","3","2","3","1","1","3","3","4","4","4","4","4","4");<br/>Temp[12]= new Array("4","4","4","3","2","3","1","1","3","3","4","4","4","4","4","4");<br/>Temp[13]= new Array("4","4","4","4","3","3","3","3","2","2","3","4","4","4","4","4");<br/>Temp[14]= new Array("4","4","4","4","4","3","2","2","2","2","3","4","4","4","4","4");<br/>Temp[15]= new Array("4","4","4","4","4","4","3","3","3","3","4","4","4","4","4","4");<br/>Tiles[91]=Temp;<br/>}<br/>if(1==1){ //Tile092<br/>var Temp= new Array();<br/>Temp[0]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[1]=  new Array("4","4","4","4","4","3","3","3","3","3","3","4","4","4","4","4");<br/>Temp[2]=  new Array("4","4","4","4","3","2","2","2","2","2","2","3","4","4","4","4");<br/>Temp[3]=  new Array("4","4","4","3","2","2","2","2","2","2","2","2","3","4","4","4");<br/>Temp[4]=  new Array("4","4","4","3","2","2","2","2","2","2","2","1","3","3","4","4");<br/>Temp[5]=  new Array("4","4","3","3","3","2","2","2","2","2","1","1","1","1","3","4");<br/>Temp[6]=  new Array("4","4","3","3","3","3","3","3","3","2","2","2","3","3","4","4");<br/>Temp[7]=  new Array("4","4","3","3","3","3","3","3","1","1","3","1","3","4","4","4");<br/>Temp[8]=  new Array("4","4","4","3","3","1","1","3","1","1","3","1","3","4","4","4");<br/>Temp[9]=  new Array("4","4","4","4","3","1","1","1","1","1","1","1","3","4","4","4");<br/>Temp[10]= new Array("4","4","4","3","2","3","3","1","1","1","2","3","4","4","4","4");<br/>Temp[11]= new Array("4","4","4","3","2","3","3","3","3","3","3","4","4","4","4","4");<br/>Temp[12]= new Array("4","4","4","3","3","1","1","3","3","3","3","3","3","4","4","4");<br/>Temp[13]= new Array("4","4","3","2","3","1","1","3","2","2","3","2","2","3","4","4");<br/>Temp[14]= new Array("4","4","3","2","2","3","3","3","3","3","2","2","3","4","4","4");<br/>Temp[15]= new Array("4","4","4","3","3","4","4","4","4","3","3","3","4","4","4","4");<br/>Tiles[92]=Temp;<br/>}<br/>//Tiles Missing<br/>if(1==1){ //Tile111 (TRAINER ON POKEMON (111-118) )<br/>var Temp= new Array();<br/>Temp[0]=  new Array("4","4","4","4","4","3","3","3","3","3","3","4","4","4","4","4");<br/>Temp[1]=  new Array("4","4","4","4","3","2","2","2","2","2","2","3","4","4","4","4");<br/>Temp[2]=  new Array("4","4","4","4","3","2","2","3","3","2","2","3","4","4","4","4");<br/>Temp[3]=  new Array("4","4","4","4","3","1","3","1","1","3","1","3","4","4","4","4");<br/>Temp[4]=  new Array("4","4","3","3","3","3","1","1","1","2","3","3","3","3","4","4");<br/>Temp[5]=  new Array("4","4","3","1","1","3","1","2","2","2","3","1","1","3","4","4");<br/>Temp[6]=  new Array("4","4","3","3","1","1","3","2","2","3","1","1","3","3","4","4");<br/>Temp[7]=  new Array("4","4","4","3","3","1","1","3","3","3","1","3","3","4","4","4");<br/>Temp[8]=  new Array("4","4","4","4","3","0","1","1","1","1","0","3","4","4","4","4");<br/>Temp[9]=  new Array("4","4","4","4","2","3","1","1","1","1","3","2","4","4","4","4");<br/>Temp[10]= new Array("4","4","4","4","3","2","1","1","1","1","2","3","4","4","4","4");<br/>Temp[11]= new Array("4","4","4","3","2","3","1","2","2","1","3","2","3","4","4","4");<br/>Temp[12]= new Array("4","4","4","3","1","1","3","3","3","3","1","1","3","4","4","4");<br/>Temp[13]= new Array("4","4","4","3","2","2","1","1","1","1","2","2","3","4","4","4");<br/>Temp[14]= new Array("4","4","4","4","3","1","2","3","3","2","1","3","4","4","4","4");<br/>Temp[15]= new Array("4","4","4","4","3","3","3","1","4","3","3","3","4","4","4","4");<br/>Tiles[111]=Temp;<br/>}<br/>if(1==1){ //Tile112<br/>var Temp= new Array();<br/>Temp[0]=  new Array("4","4","4","4","4","3","3","3","3","3","3","4","4","4","4","4");<br/>Temp[1]=  new Array("4","4","4","4","3","2","2","2","2","2","2","3","4","4","4","4");<br/>Temp[2]=  new Array("4","4","4","4","3","2","2","3","3","2","2","3","4","4","4","4");<br/>Temp[3]=  new Array("4","4","4","4","3","1","3","1","1","3","1","3","4","4","4","4");<br/>Temp[4]=  new Array("4","4","3","3","3","3","1","1","1","2","3","3","3","3","4","4");<br/>Temp[5]=  new Array("4","4","3","1","1","3","1","2","2","2","3","1","1","3","4","4");<br/>Temp[6]=  new Array("4","4","3","3","1","1","3","2","2","3","1","1","3","3","4","4");<br/>Temp[7]=  new Array("4","4","4","3","3","1","1","3","3","3","1","3","3","4","4","4");<br/>Temp[8]=  new Array("4","4","4","4","3","0","1","1","1","1","0","3","4","4","4","4");<br/>Temp[9]=  new Array("4","4","4","4","2","3","1","1","1","1","3","2","4","4","4","4");<br/>Temp[10]= new Array("4","4","4","4","3","2","1","1","1","1","2","3","4","4","4","4");<br/>Temp[11]= new Array("4","4","4","3","2","3","1","2","2","1","3","2","3","4","4","4");<br/>Temp[12]= new Array("4","4","4","3","2","2","3","3","3","3","2","2","3","4","4","4");<br/>Temp[13]= new Array("4","4","4","3","1","1","1","1","1","1","1","1","3","4","4","4");<br/>Temp[14]= new Array("4","4","4","4","3","1","2","3","3","2","1","3","4","4","4","4");<br/>Temp[15]= new Array("4","4","4","4","3","3","3","1","4","3","3","3","4","4","4","4");<br/>Tiles[112]=Temp;<br/>}<br/>if(1==1){ //Tile113<br/>var Temp= new Array();<br/>Temp[0]=  new Array("4","4","4","4","4","4","3","2","2","3","4","4","4","4","4","4");<br/>Temp[1]=  new Array("4","4","4","4","4","3","1","1","1","1","3","4","4","4","4","4");<br/>Temp[2]=  new Array("4","4","3","3","3","3","1","1","1","2","3","3","3","3","4","4");<br/>Temp[3]=  new Array("4","4","3","1","2","3","1","2","2","2","3","2","1","3","4","4");<br/>Temp[4]=  new Array("4","4","3","1","1","1","3","3","3","3","1","1","1","3","4","4");<br/>Temp[5]=  new Array("4","4","4","3","1","3","2","2","2","2","3","1","3","4","4","4");<br/>Temp[6]=  new Array("4","4","4","3","3","2","2","2","2","2","2","3","3","4","4","4");<br/>Temp[7]=  new Array("4","4","4","4","1","3","2","2","2","2","3","1","4","4","4","4");<br/>Temp[8]=  new Array("4","4","4","3","3","3","3","3","3","3","3","3","3","4","4","4");<br/>Temp[9]=  new Array("4","4","4","3","1","2","2","3","3","2","2","1","3","4","4","4");<br/>Temp[10]= new Array("4","4","4","4","3","2","2","1","1","2","2","3","4","4","4","4");<br/>Temp[11]= new Array("4","4","4","3","2","3","2","2","2","2","3","2","3","4","4","4");<br/>Temp[12]= new Array("4","4","3","3","1","3","2","3","3","2","3","1","3","3","4","4");<br/>Temp[13]= new Array("4","4","3","1","1","1","3","1","1","3","1","1","1","3","4","4");<br/>Temp[14]= new Array("4","4","3","2","2","1","3","3","3","3","1","2","2","3","4","4");<br/>Temp[15]= new Array("4","4","4","3","3","3","3","4","4","3","3","3","3","4","4","4");<br/>Tiles[113]=Temp;<br/>}<br/>if(1==1){ //Tile114<br/>var Temp= new Array();<br/>Temp[0]=  new Array("4","4","4","4","4","4","3","2","2","3","4","4","4","4","4","4");<br/>Temp[1]=  new Array("4","4","4","4","4","3","1","1","1","1","3","4","4","4","4","4");<br/>Temp[2]=  new Array("4","4","3","3","3","3","1","1","1","2","3","3","3","3","4","4");<br/>Temp[3]=  new Array("4","4","3","1","2","3","1","2","2","2","3","2","1","3","4","4");<br/>Temp[4]=  new Array("4","4","3","1","1","1","3","3","3","3","1","1","1","3","4","4");<br/>Temp[5]=  new Array("4","4","4","3","1","3","2","2","2","2","3","1","3","4","4","4");<br/>Temp[6]=  new Array("4","4","4","3","3","2","2","2","2","2","2","3","3","4","4","4");<br/>Temp[7]=  new Array("4","4","4","4","1","3","2","2","2","2","3","1","4","4","4","4");<br/>Temp[8]=  new Array("4","4","4","3","3","3","3","3","3","3","3","3","3","4","4","4");<br/>Temp[9]=  new Array("4","4","4","3","1","2","2","3","3","2","2","1","3","4","4","4");<br/>Temp[10]= new Array("4","4","4","4","3","2","2","1","1","2","2","3","4","4","4","4");<br/>Temp[11]= new Array("4","4","4","3","2","3","2","2","2","2","3","2","3","4","4","4");<br/>Temp[12]= new Array("4","4","3","3","1","3","2","3","3","2","3","1","3","3","4","4");<br/>Temp[13]= new Array("4","4","3","2","2","1","3","1","1","3","1","2","2","3","4","4");<br/>Temp[14]= new Array("4","4","3","1","1","1","3","3","3","3","1","1","1","3","4","4");<br/>Temp[15]= new Array("4","4","4","3","3","3","3","4","4","3","3","3","3","4","4","4");<br/>Tiles[114]=Temp;<br/>}<br/>if(1==1){ //Tile115<br/>var Temp= new Array();<br/>Temp[0]=  new Array("4","4","4","4","3","3","3","4","3","3","3","3","4","4","4","4");<br/>Temp[1]=  new Array("4","4","4","3","1","1","2","3","2","2","2","2","3","4","4","4");<br/>Temp[2]=  new Array("4","4","3","1","2","2","3","2","2","2","2","2","3","4","4","4");<br/>Temp[3]=  new Array("4","4","3","2","2","2","3","1","1","3","1","1","3","4","4","4");<br/>Temp[4]=  new Array("4","3","3","2","3","3","1","3","3","1","1","3","4","3","3","4");<br/>Temp[5]=  new Array("3","1","3","1","1","1","1","3","2","2","2","2","3","2","1","3");<br/>Temp[6]=  new Array("2","1","1","0","3","2","1","3","1","2","2","2","3","2","1","3");<br/>Temp[7]=  new Array("3","1","1","3","3","1","1","2","3","2","2","2","3","1","2","3");<br/>Temp[8]=  new Array("4","3","3","1","1","1","3","1","3","1","1","3","2","2","2","3");<br/>Temp[9]=  new Array("4","4","4","4","3","3","3","1","3","3","3","1","2","3","3","4");<br/>Temp[10]= new Array("4","4","4","4","3","1","1","3","3","1","1","1","2","3","4","4");<br/>Temp[11]= new Array("4","4","4","4","3","1","2","1","3","2","1","2","1","3","4","4");<br/>Temp[12]= new Array("4","4","4","4","4","3","1","3","3","3","3","1","2","3","4","4");<br/>Temp[13]= new Array("4","4","4","4","3","1","2","3","4","4","4","3","1","2","3","4");<br/>Temp[14]= new Array("4","4","4","3","2","2","2","3","4","4","4","4","2","2","3","4");<br/>Temp[15]= new Array("4","4","4","4","3","3","3","4","4","4","4","4","3","3","4","4");<br/>Tiles[115]=Temp;<br/>}<br/>if(1==1){ //Tile116<br/>var Temp= new Array();<br/>Temp[0]=  new Array("4","4","4","4","3","3","3","4","3","3","3","3","4","4","4","4");<br/>Temp[1]=  new Array("4","4","4","3","1","1","2","3","2","2","2","2","3","4","4","4");<br/>Temp[2]=  new Array("4","4","3","1","2","2","3","2","2","2","2","2","3","4","4","4");<br/>Temp[3]=  new Array("4","4","3","2","2","2","3","1","1","3","1","1","3","4","4","4");<br/>Temp[4]=  new Array("4","3","3","2","3","3","1","3","3","1","1","3","4","3","3","4");<br/>Temp[5]=  new Array("3","1","3","1","1","1","1","3","2","2","2","2","3","2","1","3");<br/>Temp[6]=  new Array("2","1","1","0","3","2","1","3","1","2","2","2","3","2","1","3");<br/>Temp[7]=  new Array("3","1","1","3","3","1","1","2","3","2","2","2","3","1","2","3");<br/>Temp[8]=  new Array("4","3","3","1","1","1","3","1","3","1","1","3","2","2","2","3");<br/>Temp[9]=  new Array("4","4","4","4","3","3","3","1","3","3","3","1","2","3","3","4");<br/>Temp[10]= new Array("4","4","4","4","3","1","1","3","3","1","1","1","2","3","4","4");<br/>Temp[11]= new Array("4","4","4","4","3","1","2","1","3","2","1","2","1","3","4","4");<br/>Temp[12]= new Array("4","4","4","4","4","3","1","3","3","3","3","1","2","2","3","4");<br/>Temp[13]= new Array("4","4","4","4","3","1","2","3","4","4","4","4","3","1","2","3");<br/>Temp[14]= new Array("4","4","3","2","2","2","3","4","4","4","4","4","3","2","2","3");<br/>Temp[15]= new Array("4","4","4","3","3","3","4","4","4","4","4","4","4","3","3","4");<br/>Tiles[116]=Temp;<br/>}<br/>if(1==1){ //Tile117<br/>var Temp= new Array();<br/>Temp[0]=  new Array("4","4","4","4","3","3","3","3","4","3","3","3","4","4","4","4");<br/>Temp[1]=  new Array("4","4","4","3","2","2","2","2","3","2","1","1","3","4","4","4");<br/>Temp[2]=  new Array("4","4","4","3","2","2","2","2","2","3","2","2","1","3","4","4");<br/>Temp[3]=  new Array("4","4","4","3","1","1","3","1","1","3","2","2","2","3","4","4");<br/>Temp[4]=  new Array("4","3","3","4","3","1","1","3","3","1","3","3","2","3","3","4");<br/>Temp[5]=  new Array("3","1","2","3","2","2","2","2","3","1","1","1","1","3","1","3");<br/>Temp[6]=  new Array("3","1","2","3","2","2","2","1","3","1","2","3","0","1","1","2");<br/>Temp[7]=  new Array("3","2","1","3","2","2","2","3","2","1","1","3","3","1","1","3");<br/>Temp[8]=  new Array("3","2","2","2","3","1","1","3","1","3","1","1","1","3","3","4");<br/>Temp[9]=  new Array("4","3","3","2","1","3","3","3","1","3","3","3","4","4","4","4");<br/>Temp[10]= new Array("4","4","3","2","1","1","1","3","3","1","1","3","4","4","4","4");<br/>Temp[11]= new Array("4","4","3","1","2","1","2","3","1","2","1","3","4","4","4","4");<br/>Temp[12]= new Array("4","4","3","2","1","3","3","3","3","1","3","4","4","4","4","4");<br/>Temp[13]= new Array("4","3","2","1","3","4","4","4","3","2","1","3","4","4","4","4");<br/>Temp[14]= new Array("4","3","2","2","4","4","4","4","3","2","2","2","3","4","4","4");<br/>Temp[15]= new Array("4","4","3","3","4","4","4","4","4","3","3","3","4","4","4","4");<br/>Tiles[117]=Temp;<br/>}<br/>if(1==1){ //Tile118<br/>var Temp= new Array();<br/>Temp[0]=  new Array("4","4","4","4","3","3","3","3","4","3","3","3","4","4","4","4");<br/>Temp[1]=  new Array("4","4","4","3","2","2","2","2","3","2","1","1","3","4","4","4");<br/>Temp[2]=  new Array("4","4","4","3","2","2","2","2","2","3","2","2","1","3","4","4");<br/>Temp[3]=  new Array("4","4","4","3","1","1","3","1","1","3","2","2","2","3","4","4");<br/>Temp[4]=  new Array("4","3","3","4","3","1","1","3","3","1","3","3","2","3","3","4");<br/>Temp[5]=  new Array("3","1","2","3","2","2","2","2","3","1","1","1","1","3","1","3");<br/>Temp[6]=  new Array("3","1","2","3","2","2","2","1","3","1","2","3","0","1","1","2");<br/>Temp[7]=  new Array("3","2","1","3","2","2","2","3","2","1","1","3","3","1","1","3");<br/>Temp[8]=  new Array("3","2","2","2","3","1","1","3","1","3","1","1","1","3","3","4");<br/>Temp[9]=  new Array("4","3","3","2","1","3","3","3","1","3","3","3","4","4","4","4");<br/>Temp[10]= new Array("4","4","3","2","1","1","1","3","3","1","1","3","4","4","4","4");<br/>Temp[11]= new Array("4","4","3","1","2","1","2","3","1","2","1","3","4","4","4","4");<br/>Temp[12]= new Array("4","3","2","2","1","3","3","3","3","1","3","4","4","4","4","4");<br/>Temp[13]= new Array("3","2","1","3","4","4","4","4","3","2","1","3","4","4","4","4");<br/>Temp[14]= new Array("3","2","2","3","4","4","4","4","4","3","2","2","2","3","4","4");<br/>Temp[15]= new Array("4","3","3","4","4","4","4","4","4","4","3","3","3","4","4","4");<br/>Tiles[118]=Temp;<br/>}<br/>if(1==1){ //Tile119<br/>var Temp= new Array();<br/>Temp[0]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[1]=  new Array("0","0","0","0","0","3","3","3","3","3","3","0","0","0","0","0");<br/>Temp[2]=  new Array("0","0","0","0","3","2","2","2","2","2","2","3","0","0","0","0");<br/>Temp[3]=  new Array("0","0","0","3","2","2","2","2","2","2","2","2","3","0","0","0");<br/>Temp[4]=  new Array("0","0","3","2","2","2","2","2","2","2","2","2","2","3","0","0");<br/>Temp[5]=  new Array("0","3","3","3","3","3","3","3","3","3","3","3","3","3","3","0");<br/>Temp[6]=  new Array("0","0","0","3","2","2","2","2","2","2","2","2","3","0","0","0");<br/>Temp[7]=  new Array("0","0","0","3","2","2","2","2","2","2","2","2","3","0","0","0");<br/>Temp[8]=  new Array("0","0","0","3","2","2","3","3","3","3","2","2","3","0","0","0");<br/>Temp[9]=  new Array("0","0","0","3","2","2","3","2","2","3","2","2","3","0","0","0");<br/>Temp[10]= new Array("0","0","0","3","2","2","3","2","2","3","2","2","3","0","0","0");<br/>Temp[11]= new Array("0","0","0","3","2","2","3","3","3","3","2","2","3","0","0","0");<br/>Temp[12]= new Array("0","0","1","3","2","2","3","3","3","3","2","2","3","1","0","0");<br/>Temp[13]= new Array("0","0","1","1","3","3","3","3","3","3","3","3","1","1","0","0");<br/>Temp[14]= new Array("0","0","0","1","1","1","1","1","1","1","1","1","1","0","0","0");<br/>Temp[15]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Tiles[119]=Temp;<br/>}<br/>if(1==1){ //Tile120<br/>var Temp= new Array();<br/>Temp[0]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[1]=  new Array("0","0","0","0","0","0","1","2","2","1","0","0","0","0","0","0");<br/>Temp[2]=  new Array("0","0","0","0","1","2","3","3","3","3","2","1","0","0","0","0");<br/>Temp[3]=  new Array("0","0","0","1","2","3","2","2","2","2","3","2","1","0","0","0");<br/>Temp[4]=  new Array("0","0","1","2","3","2","2","3","3","3","2","3","2","1","0","0");<br/>Temp[5]=  new Array("0","0","2","3","2","2","3","2","2","2","3","2","2","2","0","0");<br/>Temp[6]=  new Array("0","0","2","3","2","3","2","3","3","2","2","3","2","2","0","0");<br/>Temp[7]=  new Array("0","0","2","3","2","3","2","2","2","3","2","3","2","2","0","0");<br/>Temp[8]=  new Array("0","0","2","3","2","2","3","2","2","3","2","3","2","2","0","0");<br/>Temp[9]=  new Array("0","0","2","2","3","2","2","3","3","2","2","3","2","2","0","0");<br/>Temp[10]= new Array("0","0","1","2","2","3","2","2","2","2","3","2","2","0","0","0");<br/>Temp[11]= new Array("0","0","0","1","2","2","3","3","3","3","2","2","1","0","0","0");<br/>Temp[12]= new Array("0","0","0","3","3","2","2","2","2","2","2","3","3","0","0","0");<br/>Temp[13]= new Array("0","0","3","3","3","3","3","2","2","3","3","3","3","3","0","0");<br/>Temp[14]= new Array("0","3","3","3","3","3","3","3","3","3","3","3","3","3","3","0");<br/>Temp[15]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3");<br/>Tiles[120]=Temp;<br/>}<br/>if(1==1){ //Tile121 (Multiplayer player icon)<br/>var Temp= new Array();<br/>Temp[0]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[1]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[2]=  new Array("4","4","4","4","4","4","4","3","3","3","4","4","4","4","4","4");<br/>Temp[3]=  new Array("4","4","4","4","4","4","3","2","2","2","3","4","4","4","4","4");<br/>Temp[4]=  new Array("4","4","4","4","4","3","2","1","2","1","2","3","4","4","4","4");<br/>Temp[5]=  new Array("4","4","4","4","3","2","2","1","2","1","2","2","3","4","4","4");<br/>Temp[6]=  new Array("4","4","4","4","3","2","2","2","2","2","2","2","3","4","4","4");<br/>Temp[7]=  new Array("4","4","4","4","3","2","1","2","2","2","1","2","3","4","4","4");<br/>Temp[8]=  new Array("4","4","4","4","4","3","2","1","1","1","2","3","4","4","4","4");<br/>Temp[9]=  new Array("4","4","4","4","4","4","3","2","2","2","3","4","4","4","4","4");<br/>Temp[10]= new Array("4","4","4","4","4","4","4","3","3","3","4","4","4","4","4","4");<br/>Temp[11]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[12]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[13]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[14]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[15]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Tiles[121]=Temp;<br/>}<br/>if(1==1){ //Tile122 (Secret Base mat)<br/>var Temp= new Array();<br/>Temp[0]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[1]=  new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Temp[2]=  new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3");<br/>Temp[3]=  new Array("2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2");<br/>Temp[4]=  new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3");<br/>Temp[5]=  new Array("3","0","0","0","0","0","0","0","0","0","0","0","0","0","0","3");<br/>Temp[6]=  new Array("3","0","3","3","3","3","3","3","3","3","3","3","3","3","0","3");<br/>Temp[7]=  new Array("3","0","3","2","1","2","1","2","1","2","1","2","1","3","0","3");<br/>Temp[8]=  new Array("3","0","3","2","1","2","1","2","1","2","1","2","1","3","0","3");<br/>Temp[9]=  new Array("3","0","3","3","3","3","3","3","3","3","3","3","3","3","0","3");<br/>Temp[10]= new Array("3","0","0","0","0","0","0","0","0","0","0","0","0","0","0","3");<br/>Temp[11]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3");<br/>Temp[12]= new Array("2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2");<br/>Temp[13]= new Array("3","3","3","3","3","3","3","3","3","3","3","3","3","3","3","3");<br/>Temp[14]= new Array("1","1","1","1","1","1","1","1","1","1","1","1","1","1","1","1");<br/>Temp[15]= new Array("0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0");<br/>Tiles[122]=Temp;<br/>}<br/>if(1==1){ //Tile123 (TEST POKEMON		(123-130) )<br/>var Temp= new Array();<br/>Temp[0]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[1]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[2]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[3]=  new Array("4","4","4","4","4","4","3","3","3","4","4","4","4","4","4","4");<br/>Temp[4]=  new Array("4","4","4","4","4","3","2","2","2","3","4","4","4","4","4","4");<br/>Temp[5]=  new Array("4","4","4","4","3","1","2","0","2","1","3","4","4","4","4","4");<br/>Temp[6]=  new Array("4","4","4","4","3","1","2","2","2","1","3","4","4","4","4","4");<br/>Temp[7]=  new Array("4","4","4","4","3","1","1","3","1","1","3","4","4","4","4","4");<br/>Temp[8]=  new Array("4","4","4","4","4","3","1","2","1","3","4","4","4","4","4","4");<br/>Temp[9]=  new Array("4","4","4","4","4","4","3","3","3","4","4","4","4","4","4","4");<br/>Temp[10]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[11]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[12]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[13]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[14]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[15]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Tiles[123]=Temp;<br/>}<br/>if(1==1){ //Tile124<br/>var Temp= new Array();<br/>Temp[0]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[1]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[2]=  new Array("4","4","4","4","4","4","3","3","3","4","4","4","4","4","4","4");<br/>Temp[3]=  new Array("4","4","4","4","4","3","2","2","2","3","4","4","4","4","4","4");<br/>Temp[4]=  new Array("4","4","4","4","3","1","2","0","2","1","3","4","4","4","4","4");<br/>Temp[5]=  new Array("4","4","4","4","3","1","2","2","2","1","3","4","4","4","4","4");<br/>Temp[6]=  new Array("4","4","4","4","3","1","1","3","1","1","3","4","4","4","4","4");<br/>Temp[7]=  new Array("4","4","4","4","4","3","1","2","1","3","4","4","4","4","4","4");<br/>Temp[8]=  new Array("4","4","4","4","4","4","3","3","3","4","4","4","4","4","4","4");<br/>Temp[9]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[10]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[11]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[12]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[13]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[14]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[15]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Tiles[124]=Temp;<br/>}<br/>if(1==1){ //Tile125<br/>var Temp= new Array();<br/>Temp[0]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[1]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[2]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[3]=  new Array("4","4","4","4","4","4","3","3","3","4","4","4","4","4","4","4");<br/>Temp[4]=  new Array("4","4","4","4","4","3","1","3","1","3","4","4","4","4","4","4");<br/>Temp[5]=  new Array("4","4","4","4","3","1","3","2","3","1","3","4","4","4","4","4");<br/>Temp[6]=  new Array("4","4","4","4","3","1","3","2","3","1","3","4","4","4","4","4");<br/>Temp[7]=  new Array("4","4","4","4","3","1","1","3","1","1","3","4","4","4","4","4");<br/>Temp[8]=  new Array("4","4","4","4","4","3","1","3","1","3","4","4","4","4","4","4");<br/>Temp[9]=  new Array("4","4","4","4","4","4","3","3","3","4","4","4","4","4","4","4");<br/>Temp[10]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[11]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[12]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[13]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[14]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[15]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Tiles[125]=Temp;<br/>}<br/>if(1==1){ //Tile126<br/>var Temp= new Array();<br/>Temp[0]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[1]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[2]=  new Array("4","4","4","4","4","4","3","3","3","4","4","4","4","4","4","4");<br/>Temp[3]=  new Array("4","4","4","4","4","3","1","3","1","3","4","4","4","4","4","4");<br/>Temp[4]=  new Array("4","4","4","4","3","1","3","2","3","1","3","4","4","4","4","4");<br/>Temp[5]=  new Array("4","4","4","4","3","1","3","2","3","1","3","4","4","4","4","4");<br/>Temp[6]=  new Array("4","4","4","4","3","1","1","3","1","1","3","4","4","4","4","4");<br/>Temp[7]=  new Array("4","4","4","4","4","3","1","3","1","3","4","4","4","4","4","4");<br/>Temp[8]=  new Array("4","4","4","4","4","4","3","3","3","4","4","4","4","4","4","4");<br/>Temp[9]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[10]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[11]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[12]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[13]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[14]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[15]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[16]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Tiles[126]=Temp;<br/>}<br/>if(1==1){ //Tile127<br/>var Temp= new Array();<br/>Temp[0]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[1]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[2]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[3]=  new Array("4","4","4","4","4","4","3","3","3","4","4","4","4","4","4","4");<br/>Temp[4]=  new Array("4","4","4","4","4","3","2","1","1","3","4","4","4","4","4","4");<br/>Temp[5]=  new Array("4","4","4","4","3","2","2","1","2","1","3","4","4","4","4","4");<br/>Temp[6]=  new Array("4","4","4","4","3","2","1","1","2","1","3","4","4","4","4","4");<br/>Temp[7]=  new Array("4","4","4","4","3","1","1","2","1","1","3","4","4","4","4","4");<br/>Temp[8]=  new Array("4","4","4","4","4","3","1","2","1","3","4","4","4","4","4","4");<br/>Temp[9]=  new Array("4","4","4","4","4","4","3","3","3","4","4","4","4","4","4","4");<br/>Temp[10]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[11]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[12]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[13]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[14]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[15]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Tiles[127]=Temp;<br/>}<br/>if(1==1){ //Tile128<br/>var Temp= new Array();<br/>Temp[0]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[1]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[2]=  new Array("4","4","4","4","4","4","3","3","3","4","4","4","4","4","4","4");<br/>Temp[3]=  new Array("4","4","4","4","4","3","2","1","1","3","4","4","4","4","4","4");<br/>Temp[4]=  new Array("4","4","4","4","3","2","2","1","2","1","3","4","4","4","4","4");<br/>Temp[5]=  new Array("4","4","4","4","3","2","1","1","2","1","3","4","4","4","4","4");<br/>Temp[6]=  new Array("4","4","4","4","3","1","1","2","1","1","3","4","4","4","4","4");<br/>Temp[7]=  new Array("4","4","4","4","4","3","1","2","1","3","4","4","4","4","4","4");<br/>Temp[8]=  new Array("4","4","4","4","4","4","3","3","3","4","4","4","4","4","4","4");<br/>Temp[9]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[10]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[11]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[12]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[13]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[14]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[15]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Tiles[128]=Temp;<br/>}<br/>if(1==1){ //Tile129<br/>var Temp= new Array();<br/>Temp[0]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[1]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[2]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[3]=  new Array("4","4","4","4","4","4","3","3","3","4","4","4","4","4","4","4");<br/>Temp[4]=  new Array("4","4","4","4","4","3","1","1","2","3","4","4","4","4","4","4");<br/>Temp[5]=  new Array("4","4","4","4","3","1","2","1","2","2","3","4","4","4","4","4");<br/>Temp[6]=  new Array("4","4","4","4","3","1","2","1","1","2","3","4","4","4","4","4");<br/>Temp[7]=  new Array("4","4","4","4","3","1","1","2","1","1","3","4","4","4","4","4");<br/>Temp[8]=  new Array("4","4","4","4","4","3","1","2","1","3","4","4","4","4","4","4");<br/>Temp[9]=  new Array("4","4","4","4","4","4","3","3","3","4","4","4","4","4","4","4");<br/>Temp[10]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[11]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[12]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[13]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[14]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[15]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Tiles[129]=Temp;<br/>}<br/>if(1==1){ //Tile130<br/>var Temp= new Array();<br/>Temp[0]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[1]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[2]=  new Array("4","4","4","4","4","4","3","3","3","4","4","4","4","4","4","4");<br/>Temp[3]=  new Array("4","4","4","4","4","3","1","1","2","3","4","4","4","4","4","4");<br/>Temp[4]=  new Array("4","4","4","4","3","1","2","1","2","2","3","4","4","4","4","4");<br/>Temp[5]=  new Array("4","4","4","4","3","1","2","1","1","2","3","4","4","4","4","4");<br/>Temp[6]=  new Array("4","4","4","4","3","1","1","2","1","1","3","4","4","4","4","4");<br/>Temp[7]=  new Array("4","4","4","4","4","3","1","2","1","3","4","4","4","4","4","4");<br/>Temp[8]=  new Array("4","4","4","4","4","4","3","3","3","4","4","4","4","4","4","4");<br/>Temp[9]=  new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[10]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[11]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[12]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[13]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[14]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Temp[15]= new Array("4","4","4","4","4","4","4","4","4","4","4","4","4","4","4","4");<br/>Tiles[130]=Temp;<br/>}<br/>}<br/><br/>function prepTiles(){					//Called to initialize tiles<br/>TileImg= new Array();<br/>var i=0;<br/>for (i=0;i&lt;=Tiles.length-1+1;i++)<br/>{<br/>	TileImg[i]=document.createElement("canvas");//HIDDEN CANVAS FOR FASTER TILES<br/>	TileImg[i].setAttribute('width', 16);<br/>	TileImg[i].setAttribute('height', 16);<br/>    } <br/>}<br/><br/>function updateTiles(){					//Called to update colour scheme<br/>var C=Colours[1];<br/>var i=0;<br/>	for (i=0;i&lt;=Tiles.length-1+1;i++)<br/>	{<br/>		if (Tiles[i]!=null) { //do something<br/>			if (i&gt;84&amp;&amp;i&lt;93){ //If Player<br/>				Colours[1]="#C0C0C0";<br/>			}<br/>			else{<br/>				Colours[1]=C;<br/>			}<br/>		renderTile(i,0,0,TileImg[i]);<br/>							} <br/>	}<br/>Colours[1]=C;<br/>}<br/><br/>function renderTile(Nos,Xg,Yg,ToDraw){	//Draws a single tile at the location from array<br/>//var canvas = can.getContext('2d');<br/>var can1 = ToDraw.getContext('2d');<br/>bkcanv.setAttribute('width', canvasX);<br/>bkcanv.setAttribute('height', canvasY);<br/>bkctx = bkcanv.getContext('2d');<br/><br/>var Draw= new Array();<br/>Draw=Tiles[Nos];<br/>var Run= Tiles[Nos].length-1;<br/>if (Run&gt;1) {<br/>var Colour=0;<br/>	var i=0;<br/>		for (i=0;i&lt;=15;i++)<br/>			{<br/>				var n=0;<br/>				for (n=0;n&lt;=15;n++)<br/>					{<br/>						var T=0;<br/>						var Colour=Draw[i][n];<br/>						if (Colour==3)<br/>						{<br/>							Colour=Colours[3];<br/>							T=1;<br/>						}<br/>						if (Colour==2)<br/>						{<br/>							Colour=Colours[2];<br/>							T=1;<br/>						}<br/>						if (Colour==1)<br/>						{<br/>							Colour=Colours[1];<br/>							T=1;<br/>						}<br/>						if (Colour==0)<br/>						{<br/>							Colour=Colours[0];<br/>							T=1;<br/>						}<br/>						if (T==1)<br/>						{<br/>							bkctx.fillStyle = Colour;<br/>							bkctx.fillRect (Xg+n,Yg+i,1,1);<br/>						}<br/>					}<br/>			}<br/>}<br/>can1.drawImage(bkcanv,0,0);	<br/>//canvas.drawImage(bkcanv,0,0);					    <br/>}<br/><br/>function drawTile(Nos,Xg,Yg,ToDraw){	//Draws a single tile at the location from image<br/>//var canvas = can.getContext('2d');<br/>var can1 = ToDraw.getContext('2d');<br/>can1.drawImage(TileImg[Nos],Xg,Yg);	<br/>//canvas.drawImage(bkcanv,0,0);					    <br/>}<br/>}<br/><br/>if(1==1){								//Player functions<br/>function changeState(){					//Changes player movements<br/>if(PlrState=="Walk"){<br/>PlrCos= new Array("Costumes","085","086","087","088","089","090","091","092");<br/>}<br/>if(PlrState=="Horse"){<br/>PlrCos= new Array("Costumes","111","112","113","114","115","116","117","118");<br/>}<br/>}<br/><br/>function movePlayer(Dir,OX,OY){			//Player movement control<br/>PlrMove=1;<br/>if(GameState=="Play"){<br/>	if (Dir==0){<br/>		CamX=CamX+0;<br/>		CamY=CamY-1;<br/>		Cos=PlrCos[3];<br/>		C2=PlrCos[4];<br/>	}<br/>	if (Dir==90){<br/>		CamX=CamX+1;<br/>		CamY=CamY+0;<br/>		Cos=PlrCos[7];<br/>		C2=PlrCos[8];<br/>	}<br/>	if (Dir==180){<br/>		CamX=CamX+0;<br/>		CamY=CamY+1;<br/>		Cos=PlrCos[1];<br/>		C2=PlrCos[2];<br/>	}<br/>	if (Dir==270){<br/>		CamX=CamX-1;<br/>		CamY=CamY+0;<br/>		Cos=PlrCos[5];<br/>		C2=PlrCos[6];<br/>	}<br/>	<br/>	if(1==1){		//Animation<br/>	var Cos2=Math.round(C2);<br/>	Cos=Math.round(Cos);<br/>	var XXXX=(Xin+1)*16;<br/>	var YYYY=(Yin+1)*16;<br/>	var R=sense((CamX+1),(CamY+1));<br/>	if (R){<br/>		Render=0;<br/>		animate(Cos,Cos2,XXXX,YYYY,true);<br/>		Switched=0;<br/>	}<br/>	else{<br/>		CamX=OX;<br/>		CamY=OY;<br/>		updateMap();<br/>		drawTile(Cos,XXXX,YYYY,can);<br/>		PlrMove=0;<br/>	}<br/>	}<br/>}<br/>}<br/><br/>function controls(evt){					//Controls<br/>var OX=CamX;<br/>var OY=CamY;<br/>if(PlrMove==0){	//If it can move...<br/>var keyType=0;<br/>var Dir=-1;<br/>	switch (evt) {<br/>		case 38:  /* Up arrow was pressed */<br/>		keyType="Arrow";<br/>		Dir=0;<br/>		break;<br/>		<br/>		case 40:  /* Down arrow was pressed */<br/>		keyType="Arrow";<br/>		Dir=180;<br/>		break;<br/>		<br/>		case 37:  /* Left arrow was pressed */<br/>		keyType="Arrow";<br/>		Dir=270;<br/>		break;<br/>		<br/>		case 39:  /* Right arrow was pressed */<br/>		keyType="Arrow";<br/>		Dir=90;<br/>		break;<br/>		<br/>		case 13:<br/>		keyType="Start";<br/>		break;	<br/><br/>		case 88:<br/>		keyType="A";<br/>		break;<br/>	}<br/>	Cos=Cos;<br/>	var C2 = 0;<br/>if (MoveAllowed){<br/>	if(keyType=="Arrow"){<br/>		movePlayer(Dir,OX,OY);<br/>	}<br/>	else<br/>	{<br/>		PlrMove=0;<br/>	}<br/>}<br/>	<br/>if(keyType=="Start"){<br/>	MoveAllowed=!MoveAllowed;		<br/>	GameState="Play";<br/>	if (!MoveAllowed){<br/>		GameState="Pause";<br/>	}<br/>	PlrKey=0;<br/>	PlrMove=0;<br/>	MenuItem=1;<br/>	MenuSelection=0;<br/>	}<br/><br/><br/>if(keyType=="Arrow"){<br/>	if(GameState=="Pause"){<br/>		menu(Dir);<br/>	}<br/>}<br/>if(keyType=="A"){<br/>	if(GameState=="Pause"){<br/>		menu(keyType);<br/>	}<br/>}<br/>}<br/>}<br/><br/>if(1==1){								//PLAYER CONTROLS (ARROWS)<br/>function keyDown(evt){					//When a key is pressed (Allows for smoother controls)<br/>PlrKey=evt.keyCode;<br/>}<br/><br/>function keyUp(evt){					//When a key is released<br/>if(PlrKey==0)<br/>{} <br/>else{<br/>if (evt.keyCode==PlrKey)<br/>{<br/>PlrKey=0;<br/>}<br/>}<br/>}<br/><br/>function controlTest(){					//Run every now and again to move player<br/>if(PlrKey==0)<br/>{} <br/>else{<br/>controls(PlrKey);<br/>}<br/>}<br/>}<br/><br/>if(1==1){								//Buttons<br/>function showHide(){<br/>//alert("hello");<br/>var I=document.alternate.checkgroup.checked;<br/><br/>	if(I==true)<br/>		{<br/>			document.getElementById("Buttons").style.visibility = "visible"; <br/>		}<br/>	else{<br/>			document.getElementById("Buttons").style.visibility = "hidden"; <br/>		}<br/>}<br/><br/>function moveRight(){<br/>PlrKey=39;<br/>controlTest();<br/>PlrKey=0;<br/>}<br/>function moveUp(){<br/>PlrKey=38;<br/>controlTest();<br/>PlrKey=0;<br/>}<br/>function moveDown(){<br/>PlrKey=40;<br/>controlTest();<br/>PlrKey=0;<br/>}<br/>function moveLeft(){<br/>PlrKey=37;<br/>controlTest();<br/>PlrKey=0;<br/>}<br/>function start(){<br/>PlrKey=13;<br/>controlTest();<br/>PlrKey=0;<br/>}<br/>function pressA(){<br/>PlrKey=88;<br/>controlTest();<br/>PlrKey=0;<br/>}<br/><br/><br/>}<br/>}<br/><br/>if(1==1){								//Animation<br/>function animate(Tile1,Tile2,X,Y,Plr){	//First tile, second tile, X/Y location and if it is the player<br/>var Wait=100;<br/>aniP2(Tile1,X,Y,Plr);<br/>setTimeout(function(){aniP2(Tile2,X,Y,Plr)}, Wait);<br/>setTimeout(function(){aniP2(Tile1,X,Y,Plr)}, Wait*2);<br/>if (Plr)<br/>{<br/>setTimeout("PlrMove=0;Render=1;",Wait*2);<br/>}<br/>}<br/><br/>function aniP2(Tile1,X,Y,Plr){			//Needed for animation sync. of player<br/>canvas.save();<br/>updateMap();<br/>if (Plr) {}<br/>else<br/>{<br/>	var XXXX=(Xin+1)*16;<br/>	var YYYY=(Yin+1)*16;<br/>	drawTile(Cos,XXXX,YYYY,can);<br/>}<br/>drawTile(Tile1,X,Y,can);<br/>canvas.restore();<br/>}<br/><br/>function drawPlayer(){					//Draws current player facing down<br/>drawTile((Math.round(Cos)),(Xin+1)*16,(Yin+1)*16,can);<br/>}<br/>}<br/><br/>if(1==1){								//Misc. (Sensing/Array items)<br/>function CPUSense(tileX,tileY){			//Sensing (Gets the tile location and checks if it is an obstruction<br/>if(MapName=="Display"){return true} else{<br/>var R=true;<br/>var x=Map[1].length-1+1;<br/>var y=Map.length-1+1;<br/>	if (tileX&gt; -1 &amp;&amp;  tileX&lt; x)<br/>						{} else{<br/>						R=false;<br/>						}<br/>	if (tileY &gt; -1 &amp;&amp;  tileY  &lt; y)<br/>						{}else{<br/>						R=false;<br/>						}<br/><br/>if (R){		<br/>var T=Map[tileY][tileX];<br/>var Y=contains(CPURealObs,T);<br/><br/>if (Y)<br/>	{<br/>		R=false;<br/>	}<br/>else<br/>	{<br/>		R=true;<br/>	}<br/>}<br/>return R;<br/>}<br/>}<br/><br/>function sense(tileX,tileY){			//Sensing (Gets the tile location and checks if it is an obstruction<br/>if(MapName=="Display"){return true} else{<br/>var R=true;<br/>var x=Map[1].length-1+1;<br/>var y=Map.length-1+1;<br/>	if (tileX&gt; -1 &amp;&amp;  tileX&lt; x)<br/>						{} else{<br/>						R=false;<br/>						}<br/>	if (tileY &gt; -1 &amp;&amp;  tileY  &lt; y)<br/>						{}else{<br/>						R=false;<br/>						}<br/><br/>if (R){		<br/>var T=Map[tileY][tileX];<br/>mapCPU();<br/>var D=cCPU[tileY][tileX];<br/>var Y=contains(PlrObs,T);<br/>var Q=contains(CPUObs,D);<br/><br/>if (Y)<br/>	{<br/>		R=false;<br/>	}<br/>else<br/>	{<br/>		if(Q){<br/>			R=false;<br/>		}<br/>		else{<br/>			R=true;<br/>		}<br/>	}<br/>}<br/>return R;<br/>}<br/>}<br/><br/>function contains(a, obj) {				//Array Contains<br/>  var i = a.length;<br/>  while (i--) {<br/>    if (a[i] === obj) {<br/>      return true;<br/>    }<br/>  }<br/>  return false;<br/>}<br/><br/>function indexOf(a, obj) {				//Index of item in an array<br/>  var i = a.length;<br/>  while (i--) {<br/>    if (a[i] === obj) {<br/>      return i;<br/>    }<br/>  }<br/>  return 0;<br/>}<br/>}<br/><br/>if(1==1){								//Sounds<br/>function playSound(s) {					//Plays a sound<br/>if(SoundOn){<br/>	for (a=0;a&lt;Sounds.length;a++) {<br/>		thistime = new Date();<br/>		if (Sounds[a]['finished'] &lt; thistime.getTime()) {	//Channel finished?<br/>		SoundNames[a]=s;<br/>			Sounds[a]['finished'] = thistime.getTime() + document.getElementById(s).duration*1000;<br/>			Sounds[a]['channel'].src = document.getElementById(s).src;<br/>			Sounds[a]['channel'].load();<br/>			Sounds[a]['channel'].play();<br/>			break;<br/>		}<br/>	}<br/>}<br/>}<br/><br/>function stopSound(s) {					//Stops a sound<br/>	for (a=0;a&lt;Sounds.length;a++) {<br/>		if (SoundNames[a]= s) {<br/>			SoundNames[a]="";<br/>			Sounds[a]['channel'].pause();<br/>			break;<br/>		}<br/>	}<br/>}<br/><br/>function stopAllSounds(){				//Stops all sounds<br/>	for (a=0;a&lt;Sounds.length;a++) {<br/>			SoundNames[a]="";<br/>			Sounds[a]['channel'].pause();<br/>	}<br/>}<br/><br/>function toggleSounds(){				//Toggles sounds on and off<br/>stopAllSounds();<br/>SoundOn=!SoundOn;<br/>}<br/>}<br/><br/>if(1==1){								//Game Start		NO SCRIPT AFTER THIS			NO SCRIPT AFTER THIS<br/>beginGame();<br/>//document.getElementById("Dean&amp;COPKMN").style.visibility = "hidden"; //HIDES GAME (TOGGLE BUTTONS FIRST THOUGH)<br/>}<br/>&lt;/script&gt;<br/>&lt;/div&gt;<br/><br/>&lt;/body&gt;<br/>&lt;/html&gt;</pre>
		  </div><br/><br/>As with all html5 it only works on a html5 enabled browser. So for the bug.<br/><br/>Load it up and move around (arrow keys), then leave the game for 1-2 minutes. You get back and try to move and it will lag.<br/><br/>Any ideas for what is causing it, or any fixes?]]></content:encoded>
      </item>
    <item>
        <title>chap 7 prefrences</title>
        <link>http://marakana.com/forums/android/learning_android_book/377.html</link>
        <author>Amna Akhtar</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/377.html</guid>
        <pubDate>Sat, 09 Jul 2011 12:48:54 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[while testing the chap 7 code I am able to see my registered password and username saved along with the api root <a href="http://yamba.marakana.com/api.but" rel="nofollow">http://yamba.marakana.com/api.but</a> when I try to reboot the phone and restart the app the login info is saved but I am unable to post."failed to post is the error "checked everything but not sure where am i going wrong.please advise]]></content:encoded>
      </item>
    <item>
        <title>Issue w/ persisting prefs data to file and creating db to file</title>
        <link>http://marakana.com/forums/android/learning_android_book/366.html</link>
        <author>Syed Shah</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/366.html</guid>
        <pubDate>Tue, 28 Jun 2011 12:27:09 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[I have two issues and I believe they are related.  It has to do with my inability to save preference data to file and to save database to file.  The appropriate files under each scenario are not being created (and hence not accessible) in <strong>data/data/com.marakana.yamba</strong>.  I don't see the files and these are the errors I see on each of the two issues.  Please advise.<br/><br/>FYI, I don't know if this is a permissions issue or not but currently the permission set on data/data/com.marakana.yamba directory is <strong>drwxr-x--x</strong><br/><br/><br/><br/><strong>Issue 1(no prefs file):</strong><br/><br/>06-27 16:1 7:02.029: ERROR/ApplicationContext(284): Couldn't create directory for SharedPreferences file /data/data/com.marakana.yamba/shared_prefs/com.marakana.yamba_preferences.xml<br/><br/><br/><br/><strong>Issue 2(no db file):</strong><br/><br/>06-28 19:12:37.342: INFO/Database(285): sqlite returned: error code = 14, msg = cannot open file at source line 25467<br/>06-28 19:12:37.342: ERROR/Database(285): sqlite3_open_v2("/data/data/com.marakana.yamba/databases/timeline.db", &amp;handle, 6, NULL) failed<br/>06-28 19:12:37.361: ERROR/AndroidRuntime(285): FATAL EXCEPTION: UpdaterService-Updater<br/>06-28 19:12:37.361: ERROR/AndroidRuntime(285): android.database.sqlite.SQLiteException: unable to open database file<br/>06-28 19:12:37.361: ERROR/AndroidRuntime(285):     at android.database.sqlite.SQLiteDatabase.dbopen(Native Method)<br/>06-28 19:12:37.361: ERROR/AndroidRuntime(285):     at android.database.sqlite.SQLiteDatabase.&lt;init&gt;(SQLiteDatabase.java:1812)<br/>06-28 19:12:37.361: ERROR/AndroidRuntime(285):     at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:817)<br/>]]></content:encoded>
      </item>
    <item>
        <title>how to play beep using webview and javascript</title>
        <link>http://marakana.com/forums/android/examples/365.html</link>
        <author>Kazim Hussain</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/365.html</guid>
        <pubDate>Mon, 27 Jun 2011 22:33:45 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[got a problem that .. made chess game when playr turns i want to play a beep how can i do that ... because i wrote code on javascript but in emulator i m not getting sound but in browser i can get the beep<br/>what is the solution and any alternate of it ?  ]]></content:encoded>
      </item>
    <item>
        <title>Perference Info not saving.</title>
        <link>http://marakana.com/forums/android/learning_android_book/363.html</link>
        <author>Syed Shah</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/363.html</guid>
        <pubDate>Thu, 23 Jun 2011 12:25:11 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hello, I am trying out Chapter 7 code on Preferences and SharedPreferences and while I get the perfs screen from the options menu to load and am able to enter in the appropriate information, I am unable to see the same perfs data re-appear on the perfs screen once I re-start the emulator.  I was of the understanding that the data would persist to a file and re-load via perfsmanager.  Please advise.<br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>HTML5 WebGL 3D engine</title>
        <link>http://marakana.com/forums/html5/general/361.html</link>
        <author>Olga Yurova</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/361.html</guid>
        <pubDate>Tue, 21 Jun 2011 07:36:28 -0700</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[Hi everyone. This is my first thread.<br/><br/>I work in Cloudmach. We develop <a href="http://cloudmach.com" rel="nofollow">HTML5 WebGL 3D platform</a> for developing browser 3D games.<br/><br/>So i wonder is it interesting for Marakana community to read articles about HTML5 and  WebGL?<br/><br/>Here is a little video about our technology:<br/><br/><object class="youtube" type="application/x-shockwave-flash" data="http://www.youtube.com/v/LX82JCTop6c"><param name="movie" value="http://www.youtube.com/v/LX82JCTop6c"/></object> <br/>]]></content:encoded>
      </item>
    <item>
        <title>Custom keyboard Predictive text</title>
        <link>http://marakana.com/forums/android/general/346.html</link>
        <author>Sabir Hussain</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/346.html</guid>
        <pubDate>Wed, 01 Jun 2011 00:30:13 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[I am developing a custom keyboard for android which will be the default keyboard of my smartphone and it will work with any app.. I want to add a feature of predictive text in it so that during chat /messages/mail if i type "Ro" it will predict some words like "Roller" "Rolling" "Round" etc<br/>in a single line <br/><br/>Any idea/help will be greatly appreciated]]></content:encoded>
      </item>
    <item>
        <title>How to Disable Home Key</title>
        <link>http://marakana.com/forums/android/general/344.html</link>
        <author>Kanon Mehra</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/344.html</guid>
        <pubDate>Sun, 29 May 2011 21:40:57 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[I want to make Lock and wipe application. Therefore I need to disable or Lock Home Key till my application is running user should not be able to exit from the UI of my application.]]></content:encoded>
      </item>
    <item>
        <title>Starting PrefsActivity in Options Menu - Quick tip..</title>
        <link>http://marakana.com/forums/android/learning_android_book/343.html</link>
        <author>Tom Farrell</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/343.html</guid>
        <pubDate>Sat, 28 May 2011 12:50:59 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Let me first start by letting the author of this book know that out of the few I have read over the past year, this is the only one that had been able to keep my attention past he first 2-3 chapters.  I love the book, and would gladly have spent $50 on it.<br/><br/>In our options menu (Chapter 7), instead of passing StatusActivity's context in the form of: <br/><br/><br/>startActivity(new Intent(this, Preferences.class);<br/><br/>we want to do:<br/><br/>startActivity(new Intent(getApplicationContext(), Preferences.class);<br/><br/>You want to avoid passing one activity's context (this) to another in an explicit Intent, especially when you have something like a settings screen and want to enter your info and be done with it.  When you pass one activity's context to another, you end up making the new activity ineligible for garbage collection for the entire life of the fist activity.    When you get into a situation where you have a larger application with many explicit intent calls, you can see how this could quickly become a memory and performance problem. <br/><br/>-Tom]]></content:encoded>
      </item>
    <item>
        <title>Device Administration</title>
        <link>http://marakana.com/forums/android/general/341.html</link>
        <author>Gaurav Gupta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/341.html</guid>
        <pubDate>Fri, 27 May 2011 05:09:13 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Hi<br/><br/>I am trying to do device administration <br/>http://androiddoc.toolib.net/guide/topics/admin/device-admin.html<br/>I am able to perform all the operations discussed there. <br/>For eg <br/> Lock and wipe phone . <br/><br/>But the limitation of Device Administration example is that it can only lock the phone screen. <br/>The user  manually has to set password if the device is to be secured. <br/>But this restricts the user to enter password everytime the screen is locked. <br/><br/>I have seen other application like Norton Security. They prompt the user once for the password at the time of installation of the application. The user can unlock screen without entering password. The password is prompted only when the device is lost or user locks the device remotely. At this point of time screen can only be opened by entering the password.  <br/><br/>I want to do the same kind of operation . Please suggest how can i set security pattern/password through my application i.e. I ask the user to set a password at the time of installation of my app . This password would be asked only if the user locks the phone remotely . <br/><br/>Or is there any other way to take control of Handset screen till the correct password is filled by user. i.e. <br/><br/><br/><br/>Regards<br/>Gaurav Gupta]]></content:encoded>
      </item>
    <item>
        <title>Fiero on Rails and Test First Development</title>
        <link>http://marakana.com/forums/ruby/ruby_on_rails/340.html</link>
        <author>Ruby Spurs</author>
        <guid isPermaLink="true">http://marakana.com/forums/ruby/ruby_on_rails/340.html</guid>
        <pubDate>Thu, 26 May 2011 21:53:17 -0700</pubDate>
        <category>Ruby - Ruby on Rails</category>
        <content:encoded><![CDATA[Fiero is the feeling of ecstatic triumph gamers feel when they solve a problem after working at it for ages. The ultimate expression of fiero is when you feel giddy. When you are compelled to shout or raise the roof because you feel like a hero or heroine of smartness.<br/><br/>I experience this in programming every so often. It is what keeps me returning to it, during the slow climb of learning all of the basics. While creating a basic Rails application today as outlined in <a href="http://ruby.railstutorial.org/" rel="nofollow">http://ruby.railstutorial.org/</a>, I found it. This is because of the detail of rspec error reporting.<br/><br/>The other languages I'm familiar with report errors, but the reports are often vague or misleading or talk about something else that's perhaps somewhat *near* the thing that is broken, but really you must hunt it down yourself. Syntax alone can be a huge generator of error messages and denier of fiero.<br/><br/>I think the magical combination of a good text editing program (in my case the wonderful, very aggressively helpful Textmate) and rspec can put you on the track to Fiero.<br/><br/>Textmate will insert matching parenthesis, quotations, and alert of unfinished brackets before you've even thought of them (ok, sometimes it adds extra sets, hence it being aggressively helpful), and indents so that your code is beautiful from the moment you start writing it down. Begins and ends are divided up so those are easy to track, also. As much as I love vi, this alone avoids hours of code-tweaking.<br/><br/>Developer friends used to joke about the "generate all code" button, and Rails comes close to doing this -- at least it generates the framework. It'll even take care of data migrations and set up user record templates. As a novice database programmer, I'm really intrigued by the way Rails elegantly manages data types, data migration and validation. I can see that it makes building a website something like magic. The frame of the website magically flies out of Rails like a Patronus from a wand, waiting for data to be added.<br/><br/>Rails is user friendly and developer friendly! <br/><br/>Test-first development is very newbie-friendly too - as introduced by Alex Chaffee, Marakana Ruby and Rails Boot Camp instructor and co-creator of <a href="http://testfirst.org/" rel="nofollow">http://testfirst.org/</a>. Setting up the framework first and then the tests for each part of a website leads to a more stable website and better code. It's also a much better way of writing code. I've certainly experienced the enthusiasm that leads to writing a giant amount of code to do everything at once, and then many things break and you have no idea *what* to fix.<br/><br/>Test-first development controls the chaos and breaking so that at least you only break one thing at a time. And then fix it!<br/><br/>In my case, I was editing tests that all of these three websites had the correct title.<br/><br/>Rspec generated a beautiful error message with color-coded text to show me where it'd failed... after staring at it for a while, I realized it told me exactly where to go. The ERB file where I'd mistakenly duplicated a paste to say:<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>describe "GET 'about'" do<br/>    it "should be successful" do<br/>      get 'about'<br/>      response.should be_success<br/>    end<br/>  <br/>    it "should have the right title" do<br/>          get 'home'<br/>          response.should have_selector("title",<br/>                            :content =&gt; "Ruby on Rails Tutorial Sample App | Home")<br/>        end<br/>  end<br/></pre>
		  </div><br/><br/>This was just proofreading. Once I saw the typos, major fiero. I felt like it was my birthday. I exclaimed. I explained to a neighboring student what I'd found after struggling with why it was failing. Much excitement, I fixed it, and instead of my tests going red, it was green all the way.<br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>(Solved) Why is my Toast not showing Ex 6-5</title>
        <link>http://marakana.com/forums/android/learning_android_book/339.html</link>
        <author>Tom Farrell</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/339.html</guid>
        <pubDate>Thu, 26 May 2011 17:09:32 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[EDIT; Nevermind!  Typo on my part.  I spelled onPostExecute incorrectly, so never actually did override the method. :)<br/><br/>Hi.  Love the book, so far.   I am having a problem with the code in example 6-5 with my Toast messages not showing up.   I know that in my subclassed AsyncTask that the code in DoInBackground is executing, as my online statuses are updating, but it seems like PostExecute is not being called.   Here's my code.   If anyone can clear this up for me, that would be wonderful - Tom<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>public class StatusActivity extends Activity implements OnClickListener {<br/>	private static final String TAG = "StatusActivity";<br/>	private EditText editText;<br/>	private Button buttonUpdate;<br/>	private Twitter twitter;<br/>	<br/>    /** Called when the activity is first created. */<br/>    @SuppressWarnings("deprecation")<br/>	@Override<br/>    public void onCreate(Bundle savedInstanceState) {<br/>        super.onCreate(savedInstanceState);<br/>        setContentView(R.layout.status);<br/>        <br/>        editText = (EditText)findViewById(R.id.editText);<br/>        <br/>        buttonUpdate = (Button)findViewById(R.id.buttonUpdate);<br/>        buttonUpdate.setOnClickListener(this);<br/>        <br/>        twitter = new Twitter("u", "p");<br/>        twitter.setAPIRootUrl("http://yamba.marakana.com/api");<br/>        <br/>    }<br/><br/>	@Override<br/>	public void onClick(View v) {<br/>		new PostToTwitter().execute(editText.getText().toString());<br/>		Log.d(TAG, "onclick");<br/>	}<br/>	<br/>	public class PostToTwitter extends AsyncTask&lt;String, Integer, String&gt; {<br/><br/>		@Override<br/>		protected String doInBackground(String... status) {<br/>			try {<br/>				Twitter.Status s = twitter.updateStatus(status[0]);<br/>				return s.toString();<br/>			}<br/>			catch (TwitterException e) {<br/>				Log.d(TAG, e.toString());<br/>				return "could not post!";<br/>			}<br/>		}<br/>		protected void onProgressUpdate(Integer... values) {<br/>			super.onProgressUpdate();<br/>		}<br/>		<br/>		protected void onPostExceute(String result) {<br/>			Toast message = new Toast(getApplicationContext());<br/>			message.setText(result);<br/>			message.setDuration(Toast.LENGTH_LONG);<br/>			message.show();<br/>		}<br/>	}//end PostToTwitter<br/>}//end StatusActivity<br/></pre>
		  </div>]]></content:encoded>
      </item>
    <item>
        <title>O&apos;Reilly Errata page</title>
        <link>http://marakana.com/forums/android/learning_android_book/338.html</link>
        <author>Brian Kurzius</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/338.html</guid>
        <pubDate>Thu, 26 May 2011 10:30:08 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[For anyone else who is looking for this, I just found that O'Reilly maintains errata pages for all books. The one for this book is here:<br/><br/>http://oreilly.com/catalog/errata.csp?isbn=0636920010883<br/><br/>It has tabs for "Confirmed" and "Unconfirmed" errors. Please make sure to report any errors you might find here -- and there -- so that other can benefit from them.]]></content:encoded>
      </item>
    <item>
        <title>Chapter 9:  Runtime Error in example 9.2 (Updater class)</title>
        <link>http://marakana.com/forums/android/learning_android_book/337.html</link>
        <author>Brian Kurzius</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/337.html</guid>
        <pubDate>Thu, 26 May 2011 10:11:13 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Just a heads up:<br/><br/>In chapter 9 if you use the code for example 9.1 (DbHelper)<br/><br/>and then rewrite the Updater class to match example 9.2 you'll get this run time error:<br/><br/>E/AndroidRuntime(  867): FATAL EXCEPTION: UpdaterService-Updater<br/>E/AndroidRuntime(  867): android.database.sqlite.SQLiteException: table timeline has no column named source: , while compiling: INSERT INTO timeline(created_at, text, source, _id, user) VALUES(?, ?, ?, ?, ?);<br/><br/>The easiest fix is to comment out the line that adds "source" to values:<br/><br/>values.clear(); <br/>values.put(DbHelper1.C_ID, status.id); <br/>values.put(DbHelper1.C_CREATED_AT, status.createdAt.getTime()); //values.put(DbHelper1.C_SOURCE, status.source); <br/>values.put(DbHelper1.C_TEXT, status.text); <br/>values.put(DbHelper1.C_USER, status.user.name); <br/><br/>It seems the error is in the downloadable files too (Yamba-4) <br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>Undefined method &apos;task&apos; error when using rake? Rake version 0.9.0 broken.</title>
        <link>http://marakana.com/forums/ruby/ruby_on_rails/336.html</link>
        <author>Mary Jenn</author>
        <guid isPermaLink="true">http://marakana.com/forums/ruby/ruby_on_rails/336.html</guid>
        <pubDate>Thu, 26 May 2011 08:01:58 -0700</pubDate>
        <category>Ruby - Ruby on Rails</category>
        <content:encoded><![CDATA[When I attempted to do a migration recently, I received the following error: <br/><br/><code class="inline">rake aborted!</code><br/><code class="inline">undefined method `task' for #&lt;MyApp::Application:0x000001012d3be0&gt;</code><br/><br/>It turns out that the new version of rake is broken, and it is automatically updated when you run bundle. Since that's the case, we need roll back to v 0.8.7. I found some resources with different recommendations for fixes, but following is what worked for me: <br/><br/>First, we need to uninstall rake 0.9.0. In your terminal, type <code class="inline">gem uninstall rake -v 0.9</code><br/><br/>Open your Gemfile. Add the following line <code class="inline">gem 'rake', '~&gt; 0.8.7'</code> Save it. <br/><br/>Go back to your terminal and type <code class="inline">bundle update rake</code>. <br/><br/>Run your migration! <br/><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>transmitting mouse clicks thorugh transparaent layers</title>
        <link>http://marakana.com/forums/html5/general/335.html</link>
        <author>Steve Adams</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/335.html</guid>
        <pubDate>Wed, 25 May 2011 15:13:46 -0700</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[I don't know anything yet about HTML 5 or CSS 3 but I have a problem that doesn't seem to have a solution with the existing HTML/CSS versions and I'm wondering if one exists over here.<br/><br/>I have a flying butterfly that I implemented with Swishmax as a .swf.  It's easy enough to place the swf above page content and let it fly independently of the content.  But now people are asking me if I can let it fly over their page content.  The problem is that even though the butterfly background is transparent, the .swf layer blocks the mouse clicks from being seen at the link level, so the page links don't work.  This problem can be observed by just placing a transparent png over a link and observing that a click over the visible link doesn't activate the link.<br/><br/>So did HTML 5 or CSS 3 make it possible to transmit mouse clicks through transparent layers to link elements in a lower layer?  Is there any solution in HTML 5 / CSS 3 that would let the butterfly roam over the page contents and still have the page links be clickable?<br/><br/>Thanks for any ideas<br/><br/>Steve]]></content:encoded>
      </item>
    <item>
        <title>Chapter 8 UpdaterService.onStartCommand() crash</title>
        <link>http://marakana.com/forums/android/learning_android_book/334.html</link>
        <author>Brian Kurzius</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/334.html</guid>
        <pubDate>Wed, 25 May 2011 14:47:29 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Just a heads up for anyone who has had this problem:<br/><br/>In Chapter 8, when testing the UpdaterService on the emulator, it crashed for me when I tried to start the service using the menu. It appears that onStartCommand is not available in SDKVersion 4 so in order to fix this you need to change your AndroidManifest.xml file to:<br/><br/>&lt;uses-sdk android:minSdkVersion="5" /&gt;<br/><br/>If you need to use the earlier SDKversion use onStart() instead of onStartCommand()]]></content:encoded>
      </item>
    <item>
        <title>array#slice and pineapples</title>
        <link>http://marakana.com/forums/ruby/examples/333.html</link>
        <author>Ruby Spurs</author>
        <guid isPermaLink="true">http://marakana.com/forums/ruby/examples/333.html</guid>
        <pubDate>Tue, 24 May 2011 23:24:02 -0700</pubDate>
        <category>Ruby - Examples</category>
        <content:encoded><![CDATA[Language immersion means you dream in it. In my case, I made code that created pineapple slices out of thin air.<br/><br/>In my dream, a pineapple materialized, hovered in midair, then magically was cut info perfect slices. This may have been partly inspired by a certain popular game having to do with fruit and ninjas.<br/><br/>Since the 3-d printers aren't up to fresh fruit yet, you can do the closest thing by slicing up an array.<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>pineapple = [:rooty, :tooty, :fresh, :and, :fruity]<br/><br/>#Now make the first slice:<br/><br/>pineapple[0,1]<br/>=&gt; [:rooty]<br/></pre>
		  </div><br/><br/>You might think this would return:<br/>=&gt; [:rooty, :tooty]<br/><br/>If you're cutting a slice of pineapple, you need to cut twice - once for each edge of the piece. <br/><br/>For arrays, you're cutting into the space around the elements. <br/><br/>So pineapple[0,1] starts just before :rooty (making the first cut) and ends just between :rooty and :tooty (second cut). <br/><br/><br/>The remaining slices are:<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>pineapple [1,1]<br/> =&gt; [:tooty] <br/>pineapple [2,1]<br/> =&gt; [:fresh] <br/>pineapple [3,1]<br/> =&gt; [:n] <br/>pineapple [4,1]<br/> =&gt; [:fruity] <br/></pre>
		  </div><br/>You can see that the arguments [0,1] don't measure the span (i.e., from space 0 before :rooty to space 1 after it) -- instead, they start at space 0 and go 1 span forward.<br/><br/>Slicing also simply returns values. It doesn't change the array or create any new ones. <br/>Much like pineapples...it's good and good for you.<br/><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>Beginner Rails Code Sample: Build a Basic Rails App</title>
        <link>http://marakana.com/forums/ruby/ruby_on_rails/332.html</link>
        <author>Mary Jenn</author>
        <guid isPermaLink="true">http://marakana.com/forums/ruby/ruby_on_rails/332.html</guid>
        <pubDate>Tue, 24 May 2011 14:55:47 -0700</pubDate>
        <category>Ruby - Ruby on Rails</category>
        <content:encoded><![CDATA[Building your first app in Rails 3 is pretty simple and if you've got your git account, a heroku account and all the components installed and know your way around UNIX, you can have one up and running in just minutes. <br/><br/>Go to your terminal and enter the following: <br/><code class="inline">rails new demo_app</code><br/><br/>You should get in return about 75 lines of text that look something like this: <br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">      create  <br/>      create  README<br/>      create  Rakefile<br/>      create  config.ru<br/>      create  .gitignore<br/>      create  Gemfile<br/>      create  app<br/>      create  app/controllers/application_controller.rb<br/>      create  app/helpers/application_helper.rb<br/>      create  app/mailers<br/>      create  app/models<br/>      create  app/views/layouts/application.html.erb<br/>      create  config<br/>      create  config/routes.rb<br/>      create  config/application.rb<br/>      create  config/environment.rb<br/>      create  config/environments<br/>      create  config/environments/development.rb<br/>      create  config/environments/production.rb<br/>      create  config/environments/test.rb<br/>      create  config/initializers<br/>      create  config/initializers/backtrace_silencers.rb<br/>      create  config/initializers/inflections.rb<br/>      create  config/initializers/mime_types.rb<br/>      create  config/initializers/secret_token.rb<br/>      create  config/initializers/session_store.rb<br/>      create  config/locales<br/>      create  config/locales/en.yml<br/>      create  config/boot.rb<br/>      create  config/database.yml<br/>      create  db<br/>      create  db/seeds.rb<br/>      create  doc<br/>      create  doc/README_FOR_APP<br/>      create  lib<br/>      create  lib/tasks<br/>      create  lib/tasks/.gitkeep<br/>      create  log<br/>      create  log/server.log<br/>      create  log/production.log<br/>      create  log/development.log<br/>      create  log/test.log<br/>      create  public<br/>      create  public/404.html<br/>      create  public/422.html<br/>      create  public/500.html<br/>      create  public/favicon.ico<br/>      create  public/index.html<br/>      create  public/robots.txt<br/>      create  public/images<br/>      create  public/images/rails.png<br/>      create  public/stylesheets<br/>      create  public/stylesheets/.gitkeep<br/>      create  public/javascripts<br/>      create  public/javascripts/application.js<br/>      create  public/javascripts/controls.js<br/>      create  public/javascripts/dragdrop.js<br/>      create  public/javascripts/effects.js<br/>      create  public/javascripts/prototype.js<br/>      create  public/javascripts/rails.js<br/>      create  script<br/>      create  script/rails<br/>      create  test<br/>      create  test/fixtures<br/>      create  test/functional<br/>      create  test/integration<br/>      create  test/performance/browsing_test.rb<br/>      create  test/test_helper.rb<br/>      create  test/unit<br/>      create  tmp<br/>      create  tmp/sessions<br/>      create  tmp/sockets<br/>      create  tmp/cache<br/>      create  tmp/pids<br/>      create  vendor/plugins<br/>      create  vendor/plugins/.gitkeep</pre>
		  </div><br/><br/>Move into the demo_app directory and run bundler. <br/><code class="inline">cd demo_app</code><br/><code class="inline">bundle</code><br/><br/>What you get in return should look something like this: <br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">Fetching source index for <a href="http://rubygems.org/" rel="nofollow">http://rubygems.org/</a><br/>Installing rake (0.9.0) <br/>Using abstract (1.0.0) <br/>Using activesupport (3.0.7) <br/>Using builder (2.1.2) <br/>Using i18n (0.5.0) <br/>Using activemodel (3.0.7) <br/>Using erubis (2.6.6) <br/>Installing rack (1.2.3) <br/>Using rack-mount (0.6.14) <br/>Using rack-test (0.5.7) <br/>Using tzinfo (0.3.27) <br/>Using actionpack (3.0.7) <br/>Using mime-types (1.16) <br/>Using polyglot (0.3.1) <br/>Using treetop (1.4.9) <br/>Using mail (2.2.19) <br/>Using actionmailer (3.0.7) <br/>Installing arel (2.0.10) <br/>Using activerecord (3.0.7) <br/>Using activeresource (3.0.7) <br/>Using bundler (1.0.10) <br/>Using thor (0.14.6) <br/>Using railties (3.0.7) <br/>Using rails (3.0.7) <br/>Using sqlite3 (1.3.3) <br/>Your bundle is complete! It was installed into /Users/maryjenn/.rvm/gems/ruby-1.9.2-p0<br/></pre>
		  </div><br/><br/>Start your rails server using <code class="inline">rails server</code><br/>Then, open your browser to <em>http://localhost:3000/</em>. You should see the default Rails Welcome page. It looks like this:<br/><img src="http://www.maryfjenn.com/media/railsdefault.gif" alt=""/><br/>Next, let's add your app to your git repository. Use <code class="inline">ctrl + c</code> to stop your server. Type the following in your terminal: <br/><code class="inline">git init</code>. This initializes your git repository. <br/><code class="inline">git add .</code> This adds the app to your repository. <br/><code class="inline">git commit -m "new app"</code> This commits the app to your repository. The "-m" allows you to add a note about what is in the commit. This is especially useful when you are collaborating on a project with others and need to communicate what changes you made. <br/><br/>Next, let's get it on the web! We'll push it to Heroku. First, create a Heroku repository: <br/><code class="inline">heroku create</code>. <br/><br/>You'll get a nice URL like this: <em>http://falling-sky-128.heroku.com/</em>. If you go to the URL, you'll see a sort of placeholder for your app, but you won't see what you see on your local server because we haven't added it yet. Let's do that. <br/><br/><code class="inline">git push heroku master</code><br/><br/>You should then see something that looks like this in your terminal: <br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>Counting objects: 63, done.<br/>Delta compression using up to 2 threads.<br/>Compressing objects: 100% (48/48), done.<br/>Writing objects: 100% (63/63), 86.11 KiB, done.<br/>Total 63 (delta 2), reused 0 (delta 0)<br/><br/>-----&gt; Heroku receiving push<br/>-----&gt; Rails app detected<br/>-----&gt; Detected Rails is not set to serve static_assets<br/>       Installing rails3_serve_static_assets... done<br/>-----&gt; Configure Rails 3 to disable x-sendfile<br/>       Installing rails3_disable_x_sendfile... done<br/>-----&gt; Configure Rails to log to stdout<br/>       Installing rails_log_stdout... done<br/>-----&gt; Gemfile detected, running Bundler version 1.0.7<br/>       Unresolved dependencies detected; Installing...<br/>       Using --without development:test<br/>       Fetching source index for <a href="http://rubygems.org/" rel="nofollow">http://rubygems.org/</a><br/>       Installing rake (0.9.0) <br/>       Installing abstract (1.0.0) <br/>       Installing activesupport (3.0.7) <br/>       Installing builder (2.1.2) <br/>       Installing i18n (0.5.0) <br/>       Installing activemodel (3.0.7) <br/>       Installing erubis (2.6.6) <br/>       Installing rack (1.2.3) <br/>       Installing rack-mount (0.6.14) <br/>       Installing rack-test (0.5.7) <br/>       Installing tzinfo (0.3.27) <br/>       Installing actionpack (3.0.7) <br/>       Installing mime-types (1.16) <br/>       Installing polyglot (0.3.1) <br/>       Installing treetop (1.4.9) <br/>       Installing mail (2.2.19) <br/>       Installing actionmailer (3.0.7) <br/>       Installing arel (2.0.10) <br/>       Installing activerecord (3.0.7) <br/>       Installing activeresource (3.0.7) <br/>       Using bundler (1.0.7) <br/>       Installing thor (0.14.6) <br/>       Installing railties (3.0.7) <br/>       Installing rails (3.0.7) <br/>       Installing sqlite3 (1.3.3) with native extensions <br/>       Your bundle is complete! It was installed into ./.bundle/gems/<br/>-----&gt; Compiled slug size is 3.8MB<br/>-----&gt; Launching... done, v4<br/>       <a href="http://falling-sky-128.heroku.com/" rel="nofollow">http://falling-sky-128.heroku.com/</a> deployed to Heroku<br/><br/>To <a href="mailto:git@heroku.com">git@heroku.com</a>:falling-sky-128.git<br/> * [new branch]      master -&gt; master<br/></pre>
		  </div><br/><br/>Go to the URL Heroku created for you, and you should see your default Rails app! See? Easy! <br/><br/>Next, let's do some editing of the files rails generated to build some simple functionality into the app we created by creating a list. Let's do a song list--we'll list them by title and artist. We'll use Rails' scaffolding feature for this exercise, but in a professional context, it is not often used because it generates a lot of extra files that may or may not be used. <br/><code class="inline">rails generate scaffold song title:string artist:string</code><br/>In your terminal, you should see this: <br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"> invoke  active_record<br/>      create    db/migrate/20110525191620_create_songs.rb<br/>      create    app/models/song.rb<br/>      invoke    test_unit<br/>      create      test/unit/song_test.rb<br/>      create      test/fixtures/songs.yml<br/>       route  resources :songs<br/>      invoke  scaffold_controller<br/>      create    app/controllers/songs_controller.rb<br/>      invoke    erb<br/>      create      app/views/songs<br/>      create      app/views/songs/index.html.erb<br/>      create      app/views/songs/edit.html.erb<br/>      create      app/views/songs/show.html.erb<br/>      create      app/views/songs/new.html.erb<br/>      create      app/views/songs/_form.html.erb<br/>      invoke    test_unit<br/>      create      test/functional/songs_controller_test.rb<br/>      invoke    helper<br/>      create      app/helpers/songs_helper.rb<br/>      invoke      test_unit<br/>      create        test/unit/helpers/songs_helper_test.rb<br/>      invoke  stylesheets<br/>      create    public/stylesheets/scaffold.css</pre>
		  </div><br/><br/>Let's do a migration: <code class="inline">rake db:migrate</code><br/><br/>You'll see that rake has built a table for your songs! <br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">(in /Users/maryjenn/src/demo_app)<br/>==  CreateSongs: migrating ====================================================<br/>-- create_table(:songs)<br/>   -&gt; 0.0018s<br/>==  CreateSongs: migrated (0.0019s) ===========================================</pre>
		  </div><br/><br/>Start the rails server again and go to <em>localhost:3000</em> in your browser. You'll still see the rails default welcome page. <br/><br/>What? Why is that? Well, I'll talk about that in a minute and show you how to fix it, but add "/songs" to your URL. You should see a page with a header "Listing songs". Woohoo! We've actually built something! Now, play around with it. Notice there is a link to add new songs, so why not add a couple. <br/><br/>Now, let's go look at the terminal. Notice that there is something going on under the hood, so to speak: <br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">Parameters: {"utf8"=&gt;"?", "authenticity_token"=&gt;"oJP1EQL/KyGiswURylv9ySUVaWkjfwkAOge5GLI+8R0=", "song"=&gt;{"title"=&gt;"Go Do", "artist"=&gt;"Jonsi"}, "commit"=&gt;"Create Song"}<br/>  <strong>AREL (0.5ms) </strong> INSERT INTO "songs" ("title", "artist", "created_at", "updated_at") VALUES ('Go Do', 'Jonsi', '2011-05-26 15:19:40.314160', '2011-05-26 15:19:40.314160')</pre>
		  </div><br/><br/>This is Active Record adding your entries to your app's data table. I'll get into Active Record in my next code sample, so be sure to check that one out. For now, let's change the routes so that the URL goes directly to our app, then deploy it to Heroku. <br/><br/>To redirect the URL, first go to <em>/public/index.html</em> and change name of that file to something like "old_index.html".<br/><br/>Then, go to <em>/config/routes.rb</em> and find the line that reads <code class="inline">#root :to =&gt; "welcome#index"</code>. Uncomment it and change it to <code class="inline">root :to =&gt; "songs#index"</code>. Save it. <br/><br/>Ctrl+C and Restart your server, then reload <em>localhost:3000</em> in your browser. You should see your app, with the entries you have already made! <br/><br/>Now let's push it and deploy it. <br/><code class="inline">git add .</code><br/><code class="inline">git commit -m "did migration and changed route"</code><br/><code class="inline">git push heroku master</code><br/><code class="inline">heroku rake db:migrate</code> This adds your data table to your deployed app. Don't forget this! <br/><br/>Go check out your Heroku URL. Remember? The one that is similar to <em>http://flowing-river-673.heroku.com</em>. Your app should be there with the same functionality as what you saw on localhost. <br/><br/>Congratulations! You've built your first rails app!<br/><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>push, pop, and pop-bead bracelets</title>
        <link>http://marakana.com/forums/ruby/examples/331.html</link>
        <author>Ruby Spurs</author>
        <guid isPermaLink="true">http://marakana.com/forums/ruby/examples/331.html</guid>
        <pubDate>Tue, 24 May 2011 00:00:50 -0700</pubDate>
        <category>Ruby - Examples</category>
        <content:encoded><![CDATA[Push and pop methods are ways of manipulating an array.<br/><br/>When I learned of this, I immediately thought of pop-beads -- those blister-packs filled with hundreds of plastic beads found in drugstores everywhere, targeted towards small children and Etsy crafters. <br/><br/>In order to make strings of bright, artsy jewelry, you snap beads to each other. The beads have a hole on one side and a joint on the other, so it's a very easy puzzle.<br/><br/>So, when you snap a bead onto another, that is like the push method.<br/><br/>You use push to add an object to the end of an array. <br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>bead = ["red", "orange", "yellow", "green"]<br/>=&gt; ["red", "orange", "yellow", "green"]<br/>bead.push("blue")<br/>=&gt; ["red", "orange", "yellow", "green", "blue"]<br/></pre>
		  </div><br/><br/>You can add more than one argument with push if you're on a modest beading frenzy:<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>bead.push("indigo","violet"]<br/>=&gt; ["red", "orange", "yellow", "green", "blue", "indigo", "violet"]<br/></pre>
		  </div><br/>The opposite of push is pop, which makes perfect sense. Beads pop off of their strings as easily as they're pushed on. <br/><br/>Pop removes the last object off the end of the array. Just flick that bead off into the stratosphere. <br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>bead.pop<br/>=&gt; "violet"<br/></pre>
		  </div><br/><br/>Just remember pop removes that object permanently from the array.<br/><br/>Or at least until you push it back in.<br/><br/><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>Simple database application</title>
        <link>http://marakana.com/forums/android/examples/330.html</link>
        <author>Andrzej Sydor</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/330.html</guid>
        <pubDate>Mon, 23 May 2011 09:06:29 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Can we get simple/example application which use SQLite? <br/><br/>I need application where in folder 'assets' a have database SQLite, when i install on Android, then copy/update the database in phone. <br/><br/>And i can run sql statement 'select/update/insert' ? <br/><br/>(Android 2.1) !!!]]></content:encoded>
      </item>
    <item>
        <title>LDAP Authentication</title>
        <link>http://marakana.com/forums/tomcat/general/327.html</link>
        <author>Steve Gavette</author>
        <guid isPermaLink="true">http://marakana.com/forums/tomcat/general/327.html</guid>
        <pubDate>Wed, 18 May 2011 12:43:18 -0700</pubDate>
        <category>Tomcat - General</category>
        <content:encoded><![CDATA[I am having trouble getting LDAP authentication to work. I know that Tomcat is attaching to the directory, but it does not use it to authenticate users. Any help appreciated.]]></content:encoded>
      </item>
    <item>
        <title>Installing mobile ad network code &amp; whats the bestm mobile ad network?</title>
        <link>http://marakana.com/forums/android/examples/324.html</link>
        <author>Jerry Franks</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/324.html</guid>
        <pubDate>Fri, 13 May 2011 15:01:13 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Any suggestions on which mobile add network to work with?  I'm having some trouble installing some code from AdMob.  Any tutorials on this?]]></content:encoded>
      </item>
    <item>
        <title>strange error when building Yamba (which fails)</title>
        <link>http://marakana.com/forums/android/learning_android_book/322.html</link>
        <author>Jim Graham</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/322.html</guid>
        <pubDate>Fri, 13 May 2011 09:08:32 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Every time I try to build Yamba, since getting rid of a previous error about a redundant<br/>class (org/json) by putting jtwitter.jar below android.jar in Yamba/.classpaath, I get<br/>the following error:<br/><br/>---------------------------  CUT HERE  ---------------------------<br/><br/>[2011-05-12 13:36:14 - Yamba] Dx <br/>trouble processing "java/nio/CharBuffer.class":<br/><br/>Ill-advised or mistaken usage of a core class (java.* or javax.*)<br/>when not building a core library.<br/><br/>This is often due to inadvertently including a core library file<br/>in your application's project, when using an IDE (such as<br/>Eclipse). If you are sure you're not intentionally defining a<br/>core class, then this is the most likely explanation of what's<br/>going on.<br/><br/>However, you might actually be trying to define a class in a core<br/>namespace, the source of which you may have taken, for example,<br/>from a non-Android virtual machine project. This will most<br/>assuredly not work. At a minimum, it jeopardizes the<br/>compatibility of your app with future versions of the platform.<br/>It is also often of questionable legality.<br/><br/>If you really intend to build a core library -- which is only<br/>appropriate as part of creating a full virtual machine<br/>distribution, as opposed to compiling an application -- then use<br/>the "--core-library" option to suppress this error message.<br/><br/>If you go ahead and use "--core-library" but are in fact<br/>building an application, then be forewarned that your application<br/>will still fail to build or run, at some point. Please be<br/>prepared for angry customers who find, for example, that your<br/>application ceases to function once they upgrade their operating<br/>system. You will be to blame for this problem.<br/><br/>If you are legitimately using some code that happens to be in a<br/>core package, then the easiest safe alternative you have is to<br/>repackage that code. That is, move the classes in question into<br/>your own package namespace. This means that they will never be in<br/>conflict with core system classes. JarJar is a tool that may help<br/>you in this endeavor. If you find that you cannot do this, then<br/>that is an indication that the path you are on will ultimately<br/>lead to pain, suffering, grief, and lamentation.<br/><br/>[2011-05-12 13:36:14 - Yamba] Dx 1 error; aborting<br/>[2011-05-12 13:36:15 - Yamba] Conversion to Dalvik format failed with error 1<br/><br/>---------------------------  CUT HERE  ---------------------------<br/><br/>Can someone please tell me how to get rid of this?  Eclipse reports zero<br/>errors in the java and xml code, and seems to build fine, until it spews<br/>this, umm, whatever it is.<br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>java.net.UnknownHostException: yamba.marakana.com</title>
        <link>http://marakana.com/forums/android/learning_android_book/319.html</link>
        <author>Sherif Shehab</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/319.html</guid>
        <pubDate>Tue, 10 May 2011 01:48:30 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi Guys , <br/>i'm getting this error when i'm trying to update my status in Yamaba application ,i'm behind proxy and configured it successfully  in the emulator , and i can open any web site  successfully.<br/>Here is the error :<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">05-10 11:32:06.959: WARN/System.err(455): winterwell.jtwitter.TwitterException: java.net.UnknownHostException: yamba.marakana.com<br/>05-10 11:32:06.989: WARN/System.err(455):     at winterwell.jtwitter.URLConnectionHttpClient.post(URLConnectionHttpClient.java:223)<br/>05-10 11:32:06.989: WARN/System.err(455):     at winterwell.jtwitter.Twitter.post(Twitter.java:1944)<br/>05-10 11:32:07.000: WARN/System.err(455):     at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:2555)<br/>05-10 11:32:07.009: WARN/System.err(455):     at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:2502)<br/>05-10 11:32:07.009: WARN/System.err(455):     at com.sherif.tweet.StatusAct$PostToTwitter.doInBackground(StatusAct.java:44)<br/>05-10 11:32:07.019: WARN/System.err(455):     at com.sherif.tweet.StatusAct$PostToTwitter.doInBackground(StatusAct.java:1)<br/>05-10 11:32:07.029: WARN/System.err(455):     at android.os.AsyncTask$2.call(AsyncTask.java:185)<br/>05-10 11:32:07.039: WARN/System.err(455):     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)<br/>05-10 11:32:07.049: WARN/System.err(455):     at java.util.concurrent.FutureTask.run(FutureTask.java:138)<br/>05-10 11:32:07.049: WARN/System.err(455):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)<br/>05-10 11:32:07.079: WARN/System.err(455):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)<br/>05-10 11:32:07.079: WARN/System.err(455):     at java.lang.Thread.run(Thread.java:1019)<br/>05-10 11:32:07.099: WARN/System.err(455): Caused by: java.net.UnknownHostException: yamba.marakana.com<br/>05-10 11:32:07.109: WARN/System.err(455):     at java.net.InetAddress.lookupHostByName(InetAddress.java:506)<br/>05-10 11:32:07.109: WARN/System.err(455):     at java.net.InetAddress.getAllByNameImpl(InetAddress.java:294)<br/>05-10 11:32:07.119: WARN/System.err(455):     at java.net.InetAddress.getAllByName(InetAddress.java:256)<br/>05-10 11:32:07.139: WARN/System.err(455):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.&lt;init&gt;(HttpConnection.java:69)<br/>05-10 11:32:07.139: WARN/System.err(455):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.&lt;init&gt;(HttpConnection.java:48)<br/>05-10 11:32:07.169: WARN/System.err(455):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection$Address.connect(HttpConnection.java:322)<br/>05-10 11:32:07.179: WARN/System.err(455):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnectionPool.get(HttpConnectionPool.java:89)<br/>05-10 11:32:07.179: WARN/System.err(455):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getHttpConnection(HttpURLConnectionImpl.java:285)<br/>05-10 11:32:07.189: WARN/System.err(455):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.makeConnection(HttpURLConnectionImpl.java:267)<br/>05-10 11:32:07.209: WARN/System.err(455):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:205)<br/>05-10 11:32:07.209: WARN/System.err(455):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:614)<br/>05-10 11:32:07.229: WARN/System.err(455):     at winterwell.jtwitter.URLConnectionHttpClient.post(URLConnectionHttpClient.java:215)<br/></pre>
		  </div><br/><br/>Any recommendations ? <br/><br/>Thanks <br/>Sherif <br/> ]]></content:encoded>
      </item>
    <item>
        <title>Optimizing Eclipse on OSX</title>
        <link>http://marakana.com/forums/android/general/318.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/318.html</guid>
        <pubDate>Fri, 06 May 2011 12:51:54 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[If you find Eclipse running sluggishly on OSX, and taking a lot of CPU, here's something that worked for me (Eclipse 3.5, but should be same for 3.6):<br/><br/>Edit <code class="inline">eclipse.ini</code> located in <code class="inline">/Applications/eclipse-3.5/Eclipse.app/Contents/MacOS</code><br/><br/>Make sure the following properties are set at 512m or so:<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>--launcher.XXMaxPermSize<br/>512m<br/>-XX:MaxPermSize=512m<br/>-Xms512m<br/>-Xmx512m<br/></pre>
		  </div><br/><br/>Save the file and restart Eclipse.<br/><br/>Marko<br/>]]></content:encoded>
      </item>
    <item>
        <title>dbHelper error in TimelineActivity v.1</title>
        <link>http://marakana.com/forums/android/learning_android_book/317.html</link>
        <author>C Keogh</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/317.html</guid>
        <pubDate>Wed, 04 May 2011 16:27:58 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi,<br/><br/>I am having a problem with the SQLiteOpenHelper dbHelper flaging up as an error in TimelineActivity version 1, in Chapter 10 page 139 of the book. I currently have DbHelper set as an internal class in StatusData, as directed in chapter 9. Is it possible to reference dbHelper directly without referencing the outerclass StatusData. I do not have enough Java or Android knowledge to work this out. Any help would be appreciated.<br/><br/>Ciaran]]></content:encoded>
      </item>
    <item>
        <title>Streaming live: Developing for Android, iOS, and Windows Phone 7 – learn what it takes!</title>
        <link>http://marakana.com/forums/java/general/315.html</link>
        <author>Max Walker</author>
        <guid isPermaLink="true">http://marakana.com/forums/java/general/315.html</guid>
        <pubDate>Tue, 03 May 2011 16:04:00 -0700</pubDate>
        <category>Java - General</category>
        <content:encoded><![CDATA[On the evening of May 4th, 2011 we'll be joining forces with <a href="http://microsoft.com" rel="nofollow">Microsoft</a> and four San Francisco Bay Area user groups (<a href="http://www.sfjava.org" rel="nofollow">SF Java</a>, <a href="http://www.sfhtml5.org" rel="nofollow">SF HTML5</a>, <a href="http://www.sfandroid.org" rel="nofollow">SF Android</a> and <a href="http://www.sfphp.org" rel="nofollow">SF PHP</a>)  for the event <a href="http://www.sfjava.org/events/17369330/" rel="nofollow">Developing for Android, iOS, and Windows Phone 7 - learn what it takes!</a><br/><br/>We'll be streaming the entire event live from Microsoft at <a href="http://justin.tv/marakana_techtv" rel="nofollow">http://justin.tv/marakana_techtv</a> around 6pm PST. So, check it out and pass it on!<br/><br/>More info on the event can be found here at the <a href="http://www.sfjava.org/events/17369330/" rel="nofollow">San Francisco Java User Group</a> meetup page.<br/>]]></content:encoded>
      </item>
    <item>
        <title>Streaming live: Learn what it takes to go native on mobile! Check out Android, iOS, and WP7</title>
        <link>http://marakana.com/forums/html5/general/314.html</link>
        <author>Max Walker</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/314.html</guid>
        <pubDate>Tue, 03 May 2011 16:01:08 -0700</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[On the evening of May 4th, 2011 we'll be joining forces with <a href="http://microsoft.com" rel="nofollow">Microsoft</a> and four San Francisco Bay Area user groups (<a href="http://www.sfjava.org" rel="nofollow">SF Java</a>, <a href="http://www.sfhtml5.org" rel="nofollow">SF HTML5</a>, <a href="http://www.sfandroid.org" rel="nofollow">SF Android</a> and <a href="http://www.sfphp.org" rel="nofollow">SF PHP</a>)  for the event <a href="http://www.sfhtml5.org/events/17382201/" rel="nofollow">Learn what it takes to go native on mobile! Check out Android, iOS, and WP7</a><br/><br/>We'll be streaming the entire event live from Microsoft at <a href="http://justin.tv/marakana_techtv" rel="nofollow">http://justin.tv/marakana_techtv</a> around 6pm PST. So, check it out and pass it on!<br/><br/>More info on the event can be found here at the <a href="http://www.sfhtml5.org/events/17382201/" rel="nofollow">San Francisco HTML5 User Group</a> meetup page.<br/>]]></content:encoded>
      </item>
    <item>
        <title>OAuth in Android</title>
        <link>http://marakana.com/forums/android/examples/312.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/312.html</guid>
        <pubDate>Sat, 30 Apr 2011 04:56:02 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Here's a simple example that uses OAuth to authorize your app with Twitter. I use Jamba-modified JTwitter library here. The source code is included, but you must get your own OAuth key from Twitter by going to <a href="https://dev.twitter.com/apps/new" rel="nofollow">https://dev.twitter.com/apps/new</a>.<br/><br/>You should enter something like this when registering your app:<br/><br/><img src="https://marakana.com/static/tutorials/Twitter-New-App.png" alt=""/><br/><br/><br/><strong>MainActivity.java</strong><br/><br/>Note that I use SignPost and JTwitter libraries with this code (provided in source). Also, the key to this code is the callback from the browser back to the app. You need to see the Manifest file down below to get the whole picture.<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>package com.marakana.oauth;<br/><br/>import oauth.signpost.OAuth;<br/>import oauth.signpost.OAuthConsumer;<br/>import oauth.signpost.OAuthProvider;<br/>import oauth.signpost.basic.DefaultOAuthProvider;<br/>import oauth.signpost.commonshttp.CommonsHttpOAuthConsumer;<br/>import oauth.signpost.exception.OAuthCommunicationException;<br/>import oauth.signpost.exception.OAuthExpectationFailedException;<br/>import oauth.signpost.exception.OAuthMessageSignerException;<br/>import oauth.signpost.exception.OAuthNotAuthorizedException;<br/>import winterwell.jtwitter.OAuthSignpostClient;<br/>import winterwell.jtwitter.Twitter;<br/>import winterwell.jtwitter.TwitterException;<br/>import android.app.Activity;<br/>import android.content.Intent;<br/>import android.content.SharedPreferences;<br/>import android.net.Uri;<br/>import android.os.AsyncTask;<br/>import android.os.Bundle;<br/>import android.preference.PreferenceManager;<br/>import android.util.Log;<br/>import android.view.View;<br/>import android.widget.EditText;<br/>import android.widget.Toast;<br/><br/>public class MainActivity extends Activity {<br/>  private static final String TAG = "OAuthDemo";<br/>  private static final String OAUTH_KEY = "YOUR_KEY_GOES_HERE";<br/>  private static final String OAUTH_SECRET = "YOUR_SECRET_GOES_HERE";<br/>  private static final String OAUTH_CALLBACK_SCHEME = "x-marakana-oauth-twitter";<br/>  private static final String OAUTH_CALLBACK_URL = OAUTH_CALLBACK_SCHEME<br/>      + "://callback";<br/>  private static final String TWITTER_USER = "YOUR_EMAIL_GOES_HERE";<br/><br/>  private OAuthSignpostClient oauthClient;<br/>  private OAuthConsumer mConsumer;<br/>  private OAuthProvider mProvider;<br/>  private Twitter twitter;<br/>  SharedPreferences prefs;<br/><br/>  /** Called when the activity is first created. */<br/>  @Override<br/>  public void onCreate(Bundle savedInstanceState) {<br/>    super.onCreate(savedInstanceState);<br/>    setContentView(R.layout.main);<br/>    // mConsumer = new DefaultOAuthConsumer(OAUTH_KEY, OAUTH_SECRET);<br/>    mConsumer = new CommonsHttpOAuthConsumer(OAUTH_KEY, OAUTH_SECRET);<br/>    mProvider = new DefaultOAuthProvider(<br/>        "https://api.twitter.com/oauth/request_token",<br/>        "https://api.twitter.com/oauth/access_token",<br/>        "https://api.twitter.com/oauth/authorize");<br/><br/>    // Read the prefs to see if we have token<br/>    prefs = PreferenceManager.getDefaultSharedPreferences(this);<br/>    String token = prefs.getString("token", null);<br/>    String tokenSecret = prefs.getString("tokenSecret", null);<br/>    if (token != null &amp;&amp; tokenSecret != null) {<br/>      // We have token, use it<br/>      mConsumer.setTokenWithSecret(token, tokenSecret);<br/>      // Make a Twitter object<br/>      oauthClient = new OAuthSignpostClient(OAUTH_KEY, OAUTH_SECRET, token,<br/>          tokenSecret);<br/>      twitter = new Twitter(TWITTER_USER, oauthClient);<br/>    }<br/>  }<br/><br/>  /* Callback once we are done with the authorization of this app with Twitter. */<br/>  @Override<br/>  public void onNewIntent(Intent intent) {<br/>    super.onNewIntent(intent);<br/>    Log.d(TAG, "intent: " + intent);<br/><br/>    // Check if this is a callback from OAuth<br/>    Uri uri = intent.getData();<br/>    if (uri != null &amp;&amp; uri.getScheme().equals(OAUTH_CALLBACK_SCHEME)) {<br/>      Log.d(TAG, "callback: " + uri.getPath());<br/><br/>      String verifier = uri.getQueryParameter(OAuth.OAUTH_VERIFIER);<br/>      Log.d(TAG, "verifier: " + verifier);<br/><br/>      new RetrieveAccessTokenTask().execute(verifier);<br/>    }<br/><br/>  }<br/><br/>  public void onClickAuthorize(View view) {<br/>    new OAuthAuthorizeTask().execute();<br/>  }<br/><br/>  public void onClickTweet(View view) {<br/>    if (twitter == null) {<br/>      Toast.makeText(this, "Authenticate first", Toast.LENGTH_LONG).show();<br/>      return;<br/>    }<br/><br/>    EditText status = (EditText) findViewById(R.id.status);<br/>    new PostStatusTask().execute(status.getText().toString());<br/>  }<br/><br/>  public void onClickGetStatus(View view) {<br/>    if (twitter == null) {<br/>      Toast.makeText(this, "Authenticate first", Toast.LENGTH_LONG).show();<br/>      return;<br/>    }<br/>    new GetStatusTask().execute();<br/>  }<br/><br/>  /* Responsible for starting the Twitter authorization */<br/>  class OAuthAuthorizeTask extends AsyncTask&lt;Void, Void, String&gt; {<br/><br/>    @Override<br/>    protected String doInBackground(Void... params) {<br/>      String authUrl;<br/>      String message = null;<br/>      try {<br/>        authUrl = mProvider.retrieveRequestToken(mConsumer, OAUTH_CALLBACK_URL);<br/>        Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(authUrl));<br/>        startActivity(intent);<br/>      } catch (OAuthMessageSignerException e) {<br/>        message = "OAuthMessageSignerException";<br/>        e.printStackTrace();<br/>      } catch (OAuthNotAuthorizedException e) {<br/>        message = "OAuthNotAuthorizedException";<br/>        e.printStackTrace();<br/>      } catch (OAuthExpectationFailedException e) {<br/>        message = "OAuthExpectationFailedException";<br/>        e.printStackTrace();<br/>      } catch (OAuthCommunicationException e) {<br/>        message = "OAuthCommunicationException";<br/>        e.printStackTrace();<br/>      }<br/>      return message;<br/>    }<br/><br/>    @Override<br/>    protected void onPostExecute(String result) {<br/>      super.onPostExecute(result);<br/>      if (result != null) {<br/>        Toast.makeText(MainActivity.this, result, Toast.LENGTH_LONG).show();<br/>      }<br/>    }<br/>  }<br/><br/>  /* Responsible for retrieving access tokens from twitter */<br/>  class RetrieveAccessTokenTask extends AsyncTask&lt;String, Void, String&gt; {<br/><br/>    @Override<br/>    protected String doInBackground(String... params) {<br/>      String message = null;<br/>      String verifier = params[0];<br/>      try {<br/>        // Get the token<br/>        Log.d(TAG, "mConsumer: " + mConsumer);<br/>        Log.d(TAG, "mProvider: " + mProvider);<br/>        mProvider.retrieveAccessToken(mConsumer, verifier);<br/>        String token = mConsumer.getToken();<br/>        String tokenSecret = mConsumer.getTokenSecret();<br/>        mConsumer.setTokenWithSecret(token, tokenSecret);<br/><br/>        Log.d(TAG, String.format("verifier: %s, token: %s, tokenSecret: %s",<br/>            verifier, token, tokenSecret));<br/><br/>        // Store token in prefs<br/>        prefs.edit().putString("token", token).putString("tokenSecret",<br/>            tokenSecret).commit();<br/><br/>        // Make a Twitter object<br/>        oauthClient = new OAuthSignpostClient(OAUTH_KEY, OAUTH_SECRET, token,<br/>            tokenSecret);<br/>        twitter = new Twitter("MarkoGargenta", oauthClient);<br/><br/>        Log.d(TAG, "token: " + token);<br/>      } catch (OAuthMessageSignerException e) {<br/>        message = "OAuthMessageSignerException";<br/>        e.printStackTrace();<br/>      } catch (OAuthNotAuthorizedException e) {<br/>        message = "OAuthNotAuthorizedException";<br/>        e.printStackTrace();<br/>      } catch (OAuthExpectationFailedException e) {<br/>        message = "OAuthExpectationFailedException";<br/>        e.printStackTrace();<br/>      } catch (OAuthCommunicationException e) {<br/>        message = "OAuthCommunicationException";<br/>        e.printStackTrace();<br/>      }<br/>      return message;<br/>    }<br/><br/>    @Override<br/>    protected void onPostExecute(String result) {<br/>      super.onPostExecute(result);<br/>      if (result != null) {<br/>        Toast.makeText(MainActivity.this, result, Toast.LENGTH_LONG).show();<br/>      }<br/>    }<br/>  }<br/><br/>  /* Responsible for getting Twitter status */<br/>  class GetStatusTask extends AsyncTask&lt;Void, Void, String&gt; {<br/>    @Override<br/>    protected String doInBackground(Void... params) {<br/>      return twitter.getStatus().text;<br/>    }<br/><br/>    @Override<br/>    protected void onPostExecute(String result) {<br/>      super.onPostExecute(result);<br/>      Toast.makeText(MainActivity.this, result, Toast.LENGTH_LONG).show();<br/>    }<br/>  }<br/><br/>  /* Responsible for posting new status to Twitter */<br/>  class PostStatusTask extends AsyncTask&lt;String, Void, String&gt; {<br/>    @Override<br/>    protected String doInBackground(String... params) {<br/>      try {<br/>        twitter.setStatus(params[0]);<br/>        return "Successfully posted: " + params[0];<br/>      } catch (TwitterException e) {<br/>        return "Error connecting to server.";<br/>      }<br/>    }<br/><br/>    @Override<br/>    protected void onPostExecute(String result) {<br/>      super.onPostExecute(result);<br/>      Toast.makeText(MainActivity.this, result, Toast.LENGTH_LONG).show();<br/>    }<br/><br/>  }<br/>}<br/></pre>
		  </div><br/><br/><br/><strong>AndroidManifest.xml</strong><br/><br/>The key here is the intent filter that serves as a callback to our main activity to complete the authentication process.<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>&lt;?xml version="1.0" encoding="utf-8"?&gt;<br/>&lt;manifest<br/>  xmlns:android="http://schemas.android.com/apk/res/android"<br/>  package="com.marakana.oauth"<br/>  android:versionCode="1"<br/>  android:versionName="1.0"&gt;<br/>  &lt;uses-sdk<br/>    android:minSdkVersion="11" /&gt;<br/>  &lt;uses-permission<br/>    android:name="android.permission.INTERNET" /&gt;<br/><br/><br/>  &lt;application<br/>    android:icon="@drawable/icon"<br/>    android:label="@string/app_name"&gt;<br/>    &lt;activity<br/>      android:name=".MainActivity"<br/>      android:label="@string/app_name"<br/>      android:launchMode="singleInstance"&gt;<br/>      &lt;intent-filter&gt;<br/>        &lt;action<br/>          android:name="android.intent.action.MAIN" /&gt;<br/>        &lt;category<br/>          android:name="android.intent.category.LAUNCHER" /&gt;<br/>      &lt;/intent-filter&gt;<br/><br/>      &lt;!-- Used for OAuth callback --&gt;<br/>      &lt;intent-filter&gt;<br/>        &lt;action<br/>          android:name="android.intent.action.VIEW" /&gt;<br/>        &lt;category<br/>          android:name="android.intent.category.DEFAULT" /&gt;<br/>        &lt;category<br/>          android:name="android.intent.category.BROWSABLE" /&gt;<br/>        &lt;data<br/>          android:scheme="x-marakana-oauth-twitter"<br/>          android:host="callback" /&gt;<br/>      &lt;/intent-filter&gt;<br/><br/>    &lt;/activity&gt;<br/><br/>  &lt;/application&gt;<br/>&lt;/manifest&gt;<br/></pre>
		  </div><br/><br/><br/><strong>main.xml Layout</strong><br/><br/>Nothing special here, just basic UI stuff.<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>&lt;?xml version="1.0" encoding="utf-8"?&gt;<br/>&lt;LinearLayout<br/>  xmlns:android="http://schemas.android.com/apk/res/android"<br/>  android:orientation="vertical"<br/>  android:layout_width="match_parent"<br/>  android:layout_height="match_parent"<br/>  android:gravity="center_horizontal"&gt;<br/><br/>  &lt;TextView<br/>    android:layout_width="match_parent"<br/>    android:layout_height="wrap_content"<br/>    android:text="@string/app_name"<br/>    android:textSize="50sp"<br/>    android:gravity="center" /&gt;<br/>  &lt;Button<br/>    android:layout_width="wrap_content"<br/>    android:layout_height="wrap_content"<br/>    android:text="Authenticate"<br/>    android:onClick="onClickAuthorize"<br/>    android:textSize="40sp"&gt;&lt;/Button&gt;<br/>  &lt;EditText<br/>    android:layout_height="wrap_content"<br/>    android:layout_width="match_parent"<br/>    android:id="@+id/status"<br/>    android:textSize="40sp"<br/>    android:hint="What's up?"&gt;&lt;/EditText&gt;<br/>  &lt;Button<br/>    android:layout_width="wrap_content"<br/>    android:layout_height="wrap_content"<br/>    android:text="Tweet"<br/>    android:onClick="onClickTweet"<br/>    android:textSize="40sp"&gt;&lt;/Button&gt;<br/>  &lt;Button<br/>    android:layout_width="wrap_content"<br/>    android:layout_height="wrap_content"<br/>    android:text="Get Status"<br/>    android:textSize="40sp"<br/>    android:onClick="onClickGetStatus"&gt;&lt;/Button&gt;<br/><br/>&lt;/LinearLayout&gt;<br/></pre>
		  </div><br/><br/>Source code is here:<br/><a href="https://github.com/marakana/OAuthDemo" rel="nofollow">https://github.com/marakana/OAuthDemo</a><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>Can access Service using startService but not using bindService !!!</title>
        <link>http://marakana.com/forums/android/examples/308.html</link>
        <author>Terry D&apos;Souza</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/308.html</guid>
        <pubDate>Thu, 28 Apr 2011 03:36:51 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[<br/>Hi Experts, <br/><br/>   I am new to your site and new to Android Services. I read you Services Demo and other articles.<br/><br/>I have created a Service using AIDL, which at present doesn't do any thing great, but is inspired from TunnelDroid's code. I have created aidl, Service class, added to manifest, and in my Activity have ServiceConnection and am trying to bind to the service.<br/>But the app shows <code class="inline">"WARN/ActivityManager(64): Unable to start service Intent { cmp=orange.android.vpn/.utilities.service.ITunnelManagerService }: not found" </code><br/>when I try to connect thru bindService, but can start the Service successfully using startService(). <br/>My activity is loaced in "orange.android.vpn" and Service related files in "orange.android.vpn.utilities.service" packages respectively. <br/><br/>Manifest file contains :<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>&lt;service android:name=".utilities.openvpn.TunnelManagerService"&gt;&lt;/service&gt;<br/></pre>
		  </div><br/><br/>Can anyone help me know why am I not able to start the service using bind. BindSErvice code is :<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>tunManagerServiceStarted = bindService(new Intent(this.getApplicationContext(), ITunnelManagerService.class), tunConnection, Context.BIND_AUTO_CREATE);<br/><br/>//TRIED VARIOUS WAYS<br/>//Intent i = new Intent();<br/>//i.setClassName( "orange.android.vpn.utilities.service", "orange.android.vpn.utilities.service.TunnelManagerService" );<br/>//tunManagerServiceStarted = bindService( i, tunConnection, Context.BIND_AUTO_CREATE);<br/><br/>//       THIS WORKS PERFECTLY - but doesn't call onServiceConnected of tunConnection <br/>//startService(new Intent(this, TunnelManagerService.class));<br/></pre>
		  </div><br/><br/>startService() can start it and bindService cannot find it, thats bothering me and I want to bind it. Why bindService can't find it, does it need to in some other location (other than /gen), or soem permissions, or what ??? Can't make out after reading a lot also.<br/><br/>Any guidens is highly appreciated. Am trying to figure out htis from last 2 days, but couldn't find solution. Please help me. <br/><br/>Thanks<br/>]]></content:encoded>
      </item>
    <item>
        <title>Yamba @GitHub</title>
        <link>http://marakana.com/forums/android/learning_android_book/303.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/303.html</guid>
        <pubDate>Mon, 18 Apr 2011 09:02:26 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Yamba code from Learning Android book is now also available at GihHub:<br/><br/><code class="inline">git@github.com:marakana/LearningAndroidYamba.git</code><br/><a href="https://github.com/marakana/LearningAndroidYamba" rel="nofollow">https://github.com/marakana/LearningAndroidYamba</a><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>Error while updating status message</title>
        <link>http://marakana.com/forums/android/learning_android_book/302.html</link>
        <author>Paras Mendiratta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/302.html</guid>
        <pubDate>Sat, 16 Apr 2011 23:02:15 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi<br/><br/>I am getting a crashing error while trying to post message on twitter.<br/>Is the jtwitter.jar file is corrupted?<br/><br/><br/>04-17 02:34:03.218: ERROR/AndroidRuntime(9513): FATAL EXCEPTION: AsyncTask #1<br/>04-17 02:34:03.218: ERROR/AndroidRuntime(9513): java.lang.RuntimeException: An error occured while executing doInBackground()<br/>04-17 02:34:03.218: ERROR/AndroidRuntime(9513):     at android.os.AsyncTask$3.done(AsyncTask.java:200)<br/>04-17 02:34:03.218: ERROR/AndroidRuntime(9513):     at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)<br/>04-17 02:34:03.218: ERROR/AndroidRuntime(9513):     at java.util.concurrent.FutureTask.setException(FutureTask.java:124)<br/>04-17 02:34:03.218: ERROR/AndroidRuntime(9513):     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)<br/>04-17 02:34:03.218: ERROR/AndroidRuntime(9513):     at java.util.concurrent.FutureTask.run(FutureTask.java:137)<br/>04-17 02:34:03.218: ERROR/AndroidRuntime(9513):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)<br/>04-17 02:34:03.218: ERROR/AndroidRuntime(9513):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)<br/>04-17 02:34:03.218: ERROR/AndroidRuntime(9513):     at java.lang.Thread.run(Thread.java:1096)<br/>04-17 02:34:03.218: ERROR/AndroidRuntime(9513): Caused by: java.lang.IllegalArgumentException<br/><strong>04-17 02:34:03.218: ERROR/AndroidRuntime(9513):     at java.util.Date.parse(Date.java:447)<br/>04-17 02:34:03.218: ERROR/AndroidRuntime(9513):     at java.util.Date.&lt;init&gt;(Date.java:157)<br/>04-17 02:34:03.218: ERROR/AndroidRuntime(9513):     at winterwell.jtwitter.Twitter$Status.&lt;init&gt;(Twitter.java:659)<br/></strong>04-17 02:34:03.218: ERROR/AndroidRuntime(9513):     at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:3231)<br/>04-17 02:34:03.218: ERROR/AndroidRuntime(9513):     at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:3161)<br/>04-17 02:34:03.218: ERROR/AndroidRuntime(9513):     at com.angel.yamba.StatusActivity$PostToTwitter.doInBackground(StatusActivity.java:69)<br/>04-17 02:34:03.218: ERROR/AndroidRuntime(9513):     at com.angel.yamba.StatusActivity$PostToTwitter.doInBackground(StatusActivity.java:1)<br/>04-17 02:34:03.218: ERROR/AndroidRuntime(9513):     at android.os.AsyncTask$2.call(AsyncTask.java:185)<br/>04-17 02:34:03.218: ERROR/AndroidRuntime(9513):     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)<br/>04-17 02:34:03.218: ERROR/AndroidRuntime(9513):     ... 4 more<br/>]]></content:encoded>
      </item>
    <item>
        <title>Can&apos;t connect to server? Read this first!</title>
        <link>http://marakana.com/forums/android/learning_android_book/297.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/297.html</guid>
        <pubDate>Sat, 09 Apr 2011 20:22:28 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[So, some of you have been having problems connecting to the server as outlined in the book. The problem usually manifests itself with a Toast saying "Failed to post" or logcat showing  <code class="inline">winterwell.jtwitter.TwitterException$E401: Unauthorized</code> or <code class="inline">winterwell.jtwitter.TwitterExeception: java.io.IOException: Received authentication challenge is null</code> exceptions.<br/><br/>The problem is that your application on your device cannot login to the server successfully. So, couple of things to test:<br/><br/>
<ul><li> Do you have network connection on your device? If running on the emulator, look for little <strong>3G icon</strong> in the notification bar. If you have an X instead, your emulator is not online. Try restarting it.</li><li> Does your network connection work? To test this, open the browser on the device and try to got to Google.com, for example.</li><li> Do you have correct server API? I use our own API at <strong>http://yamba.marakana.com/api</strong> for testing purposes. You can use any server out there that a) implements Twitter-API, and b) supports simple authentication. Twitter.com doesn't any more. <a href="http://identi.ca/" rel="nofollow">Identi.ca</a> for example does. You can also look at other providers at <a href="http://status.net/" rel="nofollow">Status.net</a>.</li><li> Do you have right username and password? In the book, I used student and password for login. Since this is public knowledge, it may change although I'll try to keep it as that. Alternatively, you could create your own login at <a href="http://yamba.marakana.com/" rel="nofollow">yamba.marakana.com</a> to be sure.</li></ul><br/><br/><strong>Update</strong>: <a href="http://yamba.marakana.com/" rel="nofollow">yamba.marakana.com</a> now supports custom users. So, feel free to create your own login.<br/><br/>Anything else related to connecting to server, please post here. Good luck!<br/>Marko]]></content:encoded>
      </item>
    <item>
        <title>The code in the book &quot;Learning Android&quot; does not run</title>
        <link>http://marakana.com/forums/android/learning_android_book/296.html</link>
        <author>Saurav Malik</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/296.html</guid>
        <pubDate>Sat, 09 Apr 2011 12:14:42 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi Marco,<br/><br/>Thanks for giving us such a very useful book. But, i am strucking out at one point when i was reading your book. The sample code given under the heading "Chapter 6. Android User Interface -&gt; Threading in Android -&gt; AsyncTask" in the book "Learning Android" not working. <br/><br/>I have downloaded the specified JAR file (jtwitter-yamba.jar) but it still gives the message "Failed to post". <br/><br/>It shows this in the logcat<br/><br/>WARN/System.err(312): winterwell.jtwitter.TwitterException$E401: Unauthorized <a href="http://yamba.marakana.com/api/statuses/update.json" rel="nofollow">http://yamba.marakana.com/api/statuses/update.json</a> (yogeshupside)04-09 00:20:24.608:<br/><br/>at winterwell.jtwitter.URLConnectionHttpClient.processError(URLConnectionHttpClient.java:125)04-09 00:20:24.608: <br/><br/>at winterwell.jtwitter.URLConnectionHttpClient.post(URLConnectionHttpClient.java:219)04-09 00:20:24.628: <br/><br/>at winterwell.jtwitter.Twitter.post(Twitter.java:1944)04-09 00:20:24.628: WARN/System.err(312):     at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:2555)04-09 00:20:24.648: <br/><br/>at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:2502)04-09 00:20:24.648: <br/><br/>at com.marakana.yamba1.StatusActivity$PostToTwitter.doInBackground(StatusActivity.java:60)04-09 00:20:24.669: <br/><br/>at com.marakana.yamba1.StatusActivity$PostToTwitter.doInBackground(StatusActivity.java:1)04-09 00:20:24.669: <br/><br/>at android.os.AsyncTask$2.call(AsyncTask.java:185)04-09 00:20:24.688: <br/><br/>at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)04-09 00:20:24.688: <br/><br/>at java.util.concurrent.FutureTask.run(FutureTask.java:137)04-09 00:20:24.708: <br/><br/>at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)04-09 00:20:24.708: <br/><br/>WARN/System.err(312):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)04-09 00:20:24.728: <br/><br/>WARN/System.err(312):     at java.lang.Thread.run(Thread.java:1096)<br/><br/><br/>Please Marko guide me on this that what should i do here?<br/><br/>Thanks in advance<br/>Saurav]]></content:encoded>
      </item>
    <item>
        <title>unable to login to yamba.marakana.com with defaults creds</title>
        <link>http://marakana.com/forums/android/learning_android_book/294.html</link>
        <author>John O&apos;Dowd</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/294.html</guid>
        <pubDate>Fri, 08 Apr 2011 11:01:10 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi Marko,<br/>I really like your book and am following through the examples but in the last few days I can no longer login to yamba.marakana.com using the default creds and registeration is by invite only. Is there another way to test the code in the book<br/>Thanks<br/>J]]></content:encoded>
      </item>
    <item>
        <title>Services Connection Error</title>
        <link>http://marakana.com/forums/android/learning_android_book/293.html</link>
        <author>Steve Hansen</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/293.html</guid>
        <pubDate>Fri, 08 Apr 2011 10:41:41 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[So, all was going well until I got to the end of services section (CH. 8) with a fatal on grabbing the timeline UpdaterServices Twitter.Status status :timeline. There is a failure to connect to the the service resulting in a fatal crash. I've had several shots at debugging (including loading the straight book code with the same result. Don't quite understand the authentication challenge from the winterwell svc. Any pointers would be appreciated,<br/>Cheers, Steve<br/><br/><br/><br/>04-08 16:54:52.087: ERROR/UpdaterService(627): Failed to connect to twitter service<br/>04-08 16:54:52.087: ERROR/UpdaterService(627): winterwell.jtwitter.TwitterException: java.io.IOException: Received authentication challenge is null<br/>04-08 16:54:52.087: ERROR/UpdaterService(627):     at winterwell.jtwitter.URLConnectionHttpClient.processError(URLConnectionHttpClient.java:165)<br/>04-08 16:54:52.087: ERROR/UpdaterService(627):     at winterwell.jtwitter.URLConnectionHttpClient.getPage(URLConnectionHttpClient.java:91)<br/>04-08 16:54:52.087: ERROR/UpdaterService(627):     at winterwell.jtwitter.Twitter.getStatuses(Twitter.java:1691)<br/>04-08 16:54:52.087: ERROR/UpdaterService(627):     at winterwell.jtwitter.Twitter.getFriendsTimeline(Twitter.java:1454)<br/>04-08 16:54:52.087: ERROR/UpdaterService(627):     at com.marakana.yamba3.UpdaterService$Updater.run(UpdaterService.java:75)<br/>04-08 16:54:52.087: ERROR/UpdaterService(627): Caused by: java.io.IOException: Received authentication challenge is null<br/>04-08 16:54:52.087: ERROR/UpdaterService(627):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.processAuthHeader(HttpURLConnectionImpl.java:1153)<br/>04-08 16:54:52.087: ERROR/UpdaterService(627):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.processResponseHeaders(HttpURLConnectionImpl.java:1095)<br/>04-08 16:54:52.087: ERROR/UpdaterService(627):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.retrieveResponse(HttpURLConnectionImpl.java:1048)<br/>04-08 16:54:52.087: ERROR/UpdaterService(627):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:726)<br/>04-08 16:54:52.087: ERROR/UpdaterService(627):     at winterwell.jtwitter.URLConnectionHttpClient.processError(URLConnectionHttpClient.java:120)<br/>]]></content:encoded>
      </item>
    <item>
        <title>jQuery Tutorial: Using Themeroller to Instantly  Build a Tab Navigation</title>
        <link>http://marakana.com/forums/web_dev/general/292.html</link>
        <author>Mary Jenn</author>
        <guid isPermaLink="true">http://marakana.com/forums/web_dev/general/292.html</guid>
        <pubDate>Thu, 07 Apr 2011 21:37:07 -0700</pubDate>
        <category>Web Dev - General</category>
        <content:encoded><![CDATA[I am in love with jQuery and the people who have developed the library and so generously shared, like the folks at <a href="http://www.jquery.com" rel="nofollow">jquery.com</a> who have developed <a href="http://jqueryui.com/themeroller/" rel="nofollow">ThemeRoller</a>. Your life is about to get so much easier as a web developer because you don't have to reinvent the wheel!<br/><br/>Look at the slick tab navigation I created in literally <strong>5 minutes</strong> (image is not actual size): <br/><br/><img src="http://www.maryfjenn.com/media/tabs.png" alt=""/><br/><br/>So just how easy is it? <br/>1) Go to <a href="http://jqueryui.com/themeroller/" rel="nofollow">ThemeRoller</a>. <br/><br/>2) Click on the "Gallery" tab on the top of the black navigation to the left. Notice all the widgets on the main page. Which would you like on your site? <br/><br/>3) Select a theme from the gallery. Notice how the colors of all the widgets change. For this exercise, I selected "Sunny". <br/><br/>4) If you're feeling particular or don't see the color palette you need, click the "edit" button at the bottom of the theme icon and use hexadecimal color codes to change your colors. <br/>...OR simply click "Download" to download the theme as is. If you have done some editing, click the orange "Download Theme" button.<br/><br/>5) This will take you to a page that says "Build Your Download". Select the elements you will need for your project. I think keeping it simpler is better--you don't want a bunch of code you don't need. For example, I did not select "Position", since the tabs nav is the only element I am using. <br/> <br/>6) You will receive a zipped file with everything you need, except your content of course. <br/><br/>7) Expand it and open the folder. Inside you will see folders that contain an index.html file, a .js file, and a .css file. <br/><br/>8) Edit the index.html file to remove all of the extraneous text--like the greeting and explanation, so that all that remains is the necessary html for the file and the formatted tabs navigation. you may want to leave the other two alone because they're pretty complex--unless you want to tinker with them to see what they do, or your skills are more advanced. You can always use a different .css file and .js file for the rest of the site. You may want to move the call to the .js file to the bottom so the page loads more quickly. <br/><br/>9) Replace the default content with your own, and add tabs and sections as you need them. <br/><br/>So there you go! Polished tab navigation, in just minutes! <br/><br/>If you feel that I have forgotten anything feel free to post any questions you may have below.  <br/><br/><br/><br/><br/><br/><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>jQuery Code Example: Using the Zebra method.</title>
        <link>http://marakana.com/forums/web_dev/general/291.html</link>
        <author>Mary Jenn</author>
        <guid isPermaLink="true">http://marakana.com/forums/web_dev/general/291.html</guid>
        <pubDate>Thu, 07 Apr 2011 09:06:47 -0700</pubDate>
        <category>Web Dev - General</category>
        <content:encoded><![CDATA[Here is a simple example of how to shade alternating items in an ordered list using the Zebra method, then highlight each item with a color as the mouse rolls over it. You'll need 3 files: an HTML, a .css, and a .js First, the HTML:<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>&lt;html&gt;<br/>  &lt;head&gt;<br/>    &lt;title&gt;<br/>      Zebra Example<br/>    &lt;/title&gt;<br/>    &lt;link href="zebra.css" type="text/css" rel="stylesheet"&gt;<br/>  &lt;/head&gt;<br/>  &lt;body&gt;<br/>    &lt;div&gt;<br/>	  &lt;ol&gt;<br/>		&lt;li class="line"&gt;Here is a list item&lt;/li&gt;<br/>		&lt;li class="line"&gt;Here is another list item...&lt;/li&gt;<br/>		&lt;li class="line"&gt;And another...&lt;/li&gt;<br/>		&lt;li class="line"&gt;And another...&lt;/li&gt;<br/>		&lt;li class="line"&gt;And another...&lt;/li&gt;<br/>		&lt;li class="line"&gt;And another...&lt;/li&gt;<br/>		&lt;li class="line"&gt;And another!&lt;/li&gt;<br/>		&lt;li class="line"&gt;Roll over the list items to see what happens.&lt;/li&gt;<br/>	  &lt;/ol&gt;<br/>    &lt;/div&gt;<br/>  &lt;script src="libs/jquery-1.4.4.js"&gt;&lt;/script&gt;<br/>  &lt;script src="highlighting.js"&gt;&lt;/script&gt;<br/>  &lt;/body&gt;<br/>&lt;/html&gt;<br/><br/></pre>
		  </div><br/><br/>Then, the .css:<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>* {<br/>    margin: 3;<br/>    padding: 3;<br/>}<br/><br/>body {<br/>  background-color: #ffffff;<br/>  color: #000000;<br/>  font-family: sans-serif;<br/>  font-size: 1em;<br/>  line-height: 1.65;<br/><br/>}<br/><br/>li.line {<br/>  list-style-type: none;<br/>  border-top-style: dotted;<br/>  border-top-width: 1px;<br/>  clear: both;<br/>  padding-bottom: 2px;<br/>  padding-top: 2px;<br/>  position: relative;<br/>  width: 66%;<br/>}<br/><br/>.zebra {<br/>  background-color: #EFEFEF;<br/>}<br/><br/>.zebraOver {<br/>  background-color: #F6CECE;<br/>}<br/></pre>
		  </div><br/>Then the .js: <br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>$(document).ready(function() {<br/>  $('.line:odd').addClass('zebra');<br/><br/>  $('.line').hover( <br/>     function() {  // mouseover <br/>          $(this).addClass('zebraOver'); <br/>     }, <br/>     function() {  // mouseout <br/>          $(this).removeClass('zebraOver'); <br/>     } <br/>   );<br/>});<br/></pre>
		  </div><br/><br/>Note the names of the .js &amp; .css files in the HTML code. <br/>]]></content:encoded>
      </item>
    <item>
        <title>jQuery Code Example: How to do a Hide/Show Toggle Button</title>
        <link>http://marakana.com/forums/web_dev/general/290.html</link>
        <author>Mary Jenn</author>
        <guid isPermaLink="true">http://marakana.com/forums/web_dev/general/290.html</guid>
        <pubDate>Wed, 06 Apr 2011 22:14:01 -0700</pubDate>
        <category>Web Dev - General</category>
        <content:encoded><![CDATA[This is a function that slowly hides content when you click a button, changes the value of the button from "Hide" to "Show", then slowly shows content when the button is clicked again. You'll need to create 3 files: an HTML file, a .css, and a .js Note the names of the .css files and .js files at the bottom of the HTML. Have fun playing around with the properties to give it some color or move things around. <br/><br/>Let's start with the HTML:<div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>&lt;html&gt;<br/>  &lt;head&gt;<br/>    &lt;title&gt;<br/>     Toggle Button Example<br/>    &lt;/title&gt;<br/>    &lt;link href="togglebutton.css" type="text/css" rel="stylesheet"&gt;<br/>  &lt;/head&gt; <br/>  &lt;body id="public"&gt;<br/>    &lt;div&gt;<br/><br/>      &lt;!-- Body Header --&gt;<br/>      &lt;div id="header"&gt;<br/>        &lt;h1&gt;<br/>          This is the Header. It can also be a logo. <br/>        &lt;/h1&gt;<br/>        &lt;p&gt;Here is some text in the header! Click the "Hide" button to hide this, along with the header and the footer.<br/>        &lt;/p&gt;<br/>      &lt;/div&gt;<br/>      <br/>      &lt;!-- Body Content --&gt;<br/>      &lt;div id="content"&gt;<br/>        &lt;input type="button" value="Hide" id="toggleButton" style="float:right;"&gt;<br/>        &lt;h2&gt;<br/>          Content Header<br/>        &lt;/h2&gt;<br/>        &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<br/>	&lt;/p&gt;<br/>      &lt;/div&gt;<br/>      &lt;!-- Footer --&gt;<br/>      &lt;div id="footer"&gt;<br/>       This is the footer! This toggles too!<br/>      &lt;/div&gt;<br/>     &lt;/div&gt;<br/>    <br/>    &lt;script src="libs/jquery-1.4.4.js"&gt;&lt;/script&gt;<br/>    &lt;script src="hideshow.js"&gt;&lt;/script&gt;<br/>  &lt;/body&gt;<br/>&lt;/html&gt;<br/></pre>
		  </div><br/>Next, some CSS formatting with a stylesheet: <div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>body {<br/>  background-color: #CCCCCC;<br/>  color: #333333;<br/>  font-family: sans-serif;<br/>  font-size: 1em;<br/>  line-height: 1.65;<br/>  <br/>}<br/><br/><br/>#content {<br/>	background-color: #FFFFFF;<br/>	border-color: transparent;<br/>	-moz-box-shadow: 5px 7px 7px rgba(194, 194, 194, 0.3);<br/>	-moz-border-radius: 5px 5px 5px 5px;<br/>	-webkit-border-radius: 5px 5px 5px 5px;<br/>	border-width: 1px;<br/>	float: left;<br/>	min-height: 250px;<br/>	padding: 2%;<br/>	width: 50%;<br/>}<br/><br/>#content h2 {<br/>  color: #666666;<br/>  font-weight: normal;<br/>}<br/><br/>#footer {<br/>	float: left;<br/>  padding: 18px;<br/>  width: 64%;<br/>}</pre>
		  </div><br/><br/>Then, the jQuery: <div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/><br/>$(function() {<br/>$('#toggleButton').click( function() {<br/>  $('#header').toggle('5000');<br/>  $('#footer').toggle('5000', function(){<br/>	if ($('#header').is(':visible')) {<br/>	 $('#toggleButton').val('Hide') <br/>	} else {<br/>		$('#toggleButton').val('Show') <br/>	  }<br/>    });<br/>  });<br/>});<br/></pre>
		  </div>]]></content:encoded>
      </item>
    <item>
        <title>Unable to resolve host &quot;yamba.marakana.com&quot;</title>
        <link>http://marakana.com/forums/android/learning_android_book/289.html</link>
        <author>Sanoop Yadav</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/289.html</guid>
        <pubDate>Tue, 05 Apr 2011 23:45:43 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[Hi,<br/><br/>Yamba Application was running as expected but today I am getting below exception -<br/><br/>04-06 12:03:30.180: ERROR/StatusActivity(656): winterwell.jtwitter.TwitterException: java.net.UnknownHostException: Unable to resolve host "yamba.marakana.com": No address associated with hostname<br/>04-06 12:03:30.180: ERROR/StatusActivity(656):     at winterwell.jtwitter.URLConnectionHttpClient.post(URLConnectionHttpClient.java:223)<br/>04-06 12:03:30.180: ERROR/StatusActivity(656):     at winterwell.jtwitter.Twitter.post(Twitter.java:1944)<br/>04-06 12:03:30.180: ERROR/StatusActivity(656):     at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:2555)<br/>04-06 12:03:30.180: ERROR/StatusActivity(656):     at winterwell.jtwitter.Twitter.updateStatus(Twitter.java:2502)<br/>04-06 12:03:30.180: ERROR/StatusActivity(656):     at com.parth.mt.StatusActivity$PostToTwitter.doInBackground(StatusActivity.java:91)<br/>04-06 12:03:30.180: ERROR/StatusActivity(656):     at com.parth.mt.StatusActivity$PostToTwitter.doInBackground(StatusActivity.java:1)<br/>04-06 12:03:30.180: ERROR/StatusActivity(656):     at android.os.AsyncTask$2.call(AsyncTask.java:252)<br/>04-06 12:03:30.180: ERROR/StatusActivity(656):     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)<br/>04-06 12:03:30.180: ERROR/StatusActivity(656):     at java.util.concurrent.FutureTask.run(FutureTask.java:137)<br/>04-06 12:03:30.180: ERROR/StatusActivity(656):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1081)<br/>04-06 12:03:30.180: ERROR/StatusActivity(656):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:574)<br/>04-06 12:03:30.180: ERROR/StatusActivity(656):     at java.lang.Thread.run(Thread.java:1020)<br/>04-06 12:03:30.180: ERROR/StatusActivity(656): Caused by: java.net.UnknownHostException: Unable to resolve host "yamba.marakana.com": No address associated with hostname<br/><br/><br/>Same log entry found in System.err Tag also.<br/><br/><br/><br/>And I have not changed anything in doInBackground() method, I was trying to use UpdateService.<br/>I have also matched doInBackground() code with yamba3 package.<br/><br/>please suggest.<br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>live wallpaper</title>
        <link>http://marakana.com/forums/android/examples/288.html</link>
        <author>Soundarya Lekshmi</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/288.html</guid>
        <pubDate>Tue, 05 Apr 2011 04:41:25 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Is there code available for live wallpaper in android?]]></content:encoded>
      </item>
    <item>
        <title>Learning Android is out</title>
        <link>http://marakana.com/forums/android/learning_android_book/285.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/learning_android_book/285.html</guid>
        <pubDate>Thu, 24 Mar 2011 09:34:35 -0700</pubDate>
        <category>Android - Learning Android book</category>
        <content:encoded><![CDATA[<a href="http://oreilly.com/catalog/0636920010883/" rel="nofollow">Learning Android</a> is out. This forum is for any questions and comments regarding the book.]]></content:encoded>
      </item>
    <item>
        <title>Disconnect incoming or outgoing call</title>
        <link>http://marakana.com/forums/android/examples/283.html</link>
        <author>Vikrant Kumar</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/283.html</guid>
        <pubDate>Tue, 22 Mar 2011 22:28:13 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Hello sir/mam<br/><br/>i want to disconnect the incoming or outgoing call in programmatic way. i don't know how to do it. <br/><br/>please give me some suggestion .<br/><br/>your suggestion is impotent for me<br/><br/>thanks in advance.]]></content:encoded>
      </item>
    <item>
        <title>Add new framework to android</title>
        <link>http://marakana.com/forums/android/general/280.html</link>
        <author>Tri Nguyen Minh</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/280.html</guid>
        <pubDate>Mon, 21 Mar 2011 20:08:43 -0700</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Hi all members,<br/><br/>I am a new android programmer. I have a question need to your help.<br/>I downloaded android source from git. Structure of folder like: <br/><br/>Android<br/>       |-bionic<br/>       |-build<br/>       |-dalvik<br/>       |-development<br/>       |-framework---|-base-|-core<br/>................................|- camera<br/>................................|- media<br/>................................|- wifi<br/>................................|- ....<br/>................................|- <strong>MyFramework</strong>-|-java-|-MyClass.java<br/>.........................................................-|- jni                                                                 <br/>....................-|- opt      <br/>....................-|- policies<br/><br/>       |-packages<br/>       |-system<br/>       |-.....<br/><br/>Now, i want to add a new framework to android (<strong>MyFramework</strong>). Which files do i need to change, or create new in order to adding <strong>MyFramework </strong> to android.jar?<br/><br/>Hope your help,<br/><br/>Thanks and best regards,]]></content:encoded>
      </item>
    <item>
        <title>Audio streamin from https site</title>
        <link>http://marakana.com/forums/android/examples/273.html</link>
        <author>Muhammad Usman</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/273.html</guid>
        <pubDate>Thu, 10 Mar 2011 22:09:50 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Hi everyone I'm a bit new to android I have developed an app which is streaming the audio from server everything was going fine until my app crashed, I debugged it and found out the android media player is throwing exception while streaming through HTTPS link. I have almost about 20 links from where I'm streaming audio to my app and about half are HTTPS links and they are not playing. If anyone understand it please answer I need help, if you can give me any piece of code that would be much easier for me to understand.Thanks in advance]]></content:encoded>
      </item>
    <item>
        <title>StickyScreen.org using HTML5 localStorage</title>
        <link>http://marakana.com/forums/html5/general/262.html</link>
        <author>Kathryn Aaker</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/262.html</guid>
        <pubDate>Fri, 18 Feb 2011 16:03:16 -0800</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[I love <a href="http://stickyscreen.org" rel="nofollow">stickyscreen.org</a>.  It gives you a super simple text area to add a message to yourself on a sticky note, set that as your browser homepage, and see it every time you open a new window or tab in your browser.<br/><br/>StickyScreen uses browser cookies to store your 'note to self' locally, rather than save it up to a server.  I decided to re-implement it using HTML5's awesome localStorage Web Storage mechanism.<br/><br/>I was happy to learn about localStorage, as in the Flash world we've had Local Shared Objects (which serve a similar purpose) since Flash 6.<br/><br/>Check it out here (view source):<br/><a href="http://kathryn-mac-files.s3.amazonaws.com/marakana/stickynote.html" rel="nofollow"><br/><img src="http://kathryn-mac-files.s3.amazonaws.com/marakana/stickynote.jpg" alt=""/><br/></a><br/><br/>The HTML5 magic happens in just these two methods of the localStorage object:<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>      this.storeNote = function(noteText){<br/>        localStorage.setItem('noteText', noteText);<br/>      }<br/>      this.retrieveNote = function(){<br/>        return localStorage.getItem('noteText');<br/>      }<br/></pre>
		  </div><br/><br/>(Yeah, yeah.  I don't really need the wrapper methods but I might want to add features later.)<br/><br/><em>setItem</em> takes two parameters - a key and a value, both which must be strings.<br/><br/>In this case, I'm just storing a single value, so I have a key: 'noteText', and a value: 'The text you typed in'.<br/><br/>If I wanted to offer different customizations to the StickyNote, I could store them in separate keys.<br/><br/>The stored value must be a string, but if you want to save a JSON object to localStorage, you can just stringify it:<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>localStorage.setItem('myData', JSON.stringify({color:'#ffffff',width:500,height:500}))<br/></pre>
		  </div><br/><br/>In Firefox, you can see the key-value pairs you've stored using Firebug, through the DOM inspector or on the console:<br/><img src="http://kathryn-mac-files.s3.amazonaws.com/marakana/firebug_dom.jpg" alt=""/><br/><img src="http://kathryn-mac-files.s3.amazonaws.com/marakana/firebug_console.jpg" alt=""/><br/><br/>Chrome's Developer Tools give you an additional tool, under the "Resources" tab:<br/><img src="http://kathryn-mac-files.s3.amazonaws.com/marakana/chrome_resources.jpg" alt=""/><br/><br/><strong>Some Notes:<br/></strong><br/>The localStorage object is scoped to the full origin: (scheme + host + port, e.g. <a href="http://www.google.com:80" rel="nofollow">www.google.com:80</a>), so you'll only be able to access it from within the same subdomain/domain/port.<br/><br/>Calling getItem('key') on a key that doesn't exist just returns <em>null</em> and doesn't throw an exception.<br/><br/>Other available methods and attributes on localStorage:<br/><em>removeItem('key')</em> - removes specified key and value from storage<br/><em>clear()</em> - removes all key-value pairs from storage<br/><em>key(index)</em> - retrieves key-value pair at that index on the localStorage object<br/><em>length</em> - returns number of saved key-value pairs<br/><br/>You can also use localStorage just as a regular object:<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>  localStorage.noteText = 'Save me!';<br/>  note.text = localStorage.noteText;<br/>  localStorage['noteText'] = 'Save me!';<br/>  delete localStorage.noteText;<br/></pre>
		  </div><br/><br/>Chrome will let you run the html file locally off your filesystem (it scopes it as 'localhost'), but Firefox seems to require the page to be run off of a server.<br/><br/>The recommendation is that browser implementations limit the stored data to 5MB.  I believe some limit you to 10MB, but as it's still under development it's hard to know how things will shake out.<br/><br/>There you go!  Let me know if you find it useful:<br/>kathryn@kathrynaaker.com<br/>]]></content:encoded>
      </item>
    <item>
        <title>Canvas Pixel Manipulation Experiment</title>
        <link>http://marakana.com/forums/html5/general/255.html</link>
        <author>Kathryn Aaker</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/255.html</guid>
        <pubDate>Thu, 03 Feb 2011 11:04:33 -0800</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[From Peter Lubbers's HTML5 class in San Francisco - February 2011<br/><br/>This is a little experiment that paints an image onto the canvas element, then reacts to the mouse position, "streaking" all the pixels to the right of the mouse to create colorful horizontal line patterns.<br/>    <br/>It relies mostly on (context's) getImageData and putImageData, with pixel manipulation between the two steps.<br/><br/>Check it out here:<br/><a href="http://kathryn-mac-files.s3.amazonaws.com/html5_canvas_pixel_streaking/canvas_streaker.html" rel="nofollow">http://kathryn-mac-files.s3.amazonaws.com/html5_canvas_pixel_streaking/canvas_streaker.html</a><br/><br/>And download the source here:<br/><a href="http://kathryn-mac-files.s3.amazonaws.com/html5_canvas_pixel_streaking/canvas_pixel_streaking.zip" rel="nofollow">http://kathryn-mac-files.s3.amazonaws.com/html5_canvas_pixel_streaking/canvas_pixel_streaking.zip</a><br/><br/>Some interesting things I learned:<br/><br/>You have to wait for image.onload before you can run drawImage:<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>  this.init = function(imageSource){  <br/>    this.canvas = document.getElementById('streaky');<br/>    this.context = this.canvas.getContext('2d');<br/>    <br/>    // create and paint the JPG<br/>    this.image = new Image();<br/>    _this = this;<br/>    this.image.onload = function(){_this.setupStreaker()}<br/>    this.image.src = imageSource;<br/>    <br/>  }<br/><br/>  this.setupStreaker = function(){    <br/>    this.context.drawImage(this.image,0,0,this.image.width,this.image.height);<br/>    <br/>    ...<br/>  }<br/></pre>
		  </div><br/><br/>Also, CanvasPixelArray isn't a JavaScript Array, so you don't have the same handy methods for reading/manipulating it.  Hence, to copy it, I did this:<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>  var d = this.imageData.data;<br/>  this.originalImageData = [];<br/>  for (var i=0,l=d.length;i&lt;l;++i) this.originalImageData[i] = d[i];<br/></pre>
		  </div><br/><br/><br/>This post was helpful in learning how to access individual pixels:<br/><a href="http://hacks.mozilla.org/2009/06/pushing-pixels-with-canvas/" rel="nofollow">http://hacks.mozilla.org/2009/06/pushing-pixels-with-canvas/</a><br/><br/>Canvas is fun!]]></content:encoded>
      </item>
    <item>
        <title>draging screen, best way to handle?</title>
        <link>http://marakana.com/forums/android/examples/254.html</link>
        <author>Joe Vasher</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/254.html</guid>
        <pubDate>Thu, 03 Feb 2011 08:33:27 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[I'm working on a project (and learning as I go) to display a time graph on the screen. The time graph will only partially display on screen, so for the user to view other parts, they will need to drag it on screen. I will draw this as I go, but I need to figure out how to best handle this.<br/><br/>First off, where should I place a OnTouch event (assuming that is the best way to determine when the user is dragging the screen?) Do you have a suggestion of an article/code snippet to show this?<br/><br/>Second off, I would like to use a timer event to help with smooth scrolling of the graphics on the screen. When the user flings or drags the screen (at various rates) I will only slightly increment the graphics until I have reached the point of displayed. Should I use a timer, or just loop through the graphics? If using a timer, where do I place this (big problem with my understanding of articles I have read on this subject?) Do I create another thread for the timer? Code snippets/articles would be a huge help.<br/><br/>Thanks in advance<br/><br/>I included the code that i'm using. ALL criticism welcome (after all i'm learning.) <br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>package org.jvasher.LogCalc;<br/><br/>import android.app.Activity;<br/>import android.os.Bundle;<br/>import android.view.Window;<br/><br/>public class LogCalc extends Activity {<br/>	/** Called when the activity is first created. */<br/><br/>	@Override<br/>	public void onCreate(Bundle savedInstanceState) {<br/>		super.onCreate(savedInstanceState);<br/>		requestWindowFeature(Window.FEATURE_NO_TITLE);<br/>		setContentView(new GraphPanel(this));<br/>	}<br/><br/>}<br/></pre>
		  </div><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/><br/>package org.jvasher.LogCalc;<br/><br/>import android.graphics.Canvas;<br/>import android.view.SurfaceHolder;<br/><br/>public class GraphThread extends Thread {<br/>    private SurfaceHolder graphSurfaceHolder;<br/>    private GraphPanel graphPanel;<br/>    private boolean running = false;<br/> <br/>    public GraphThread(SurfaceHolder surfaceHolder, GraphPanel panel) {<br/>        graphSurfaceHolder = surfaceHolder;<br/>		graphPanel = panel;<br/>	}<br/> <br/>    public void setRunning(boolean run) {<br/>        running = run;<br/>    }<br/> <br/>    @Override<br/>    public void run() {<br/>        Canvas c;<br/>        while (running) {<br/>            c = null;<br/>            try {<br/>                c = graphSurfaceHolder.lockCanvas(null);<br/>                synchronized (graphSurfaceHolder) {<br/>                    graphPanel.onDraw(c);<br/>                }<br/>            } finally {<br/>                if (c != null) {<br/>                    graphSurfaceHolder.unlockCanvasAndPost(c);<br/>                }<br/>            }<br/>        }<br/>    }}<br/></pre>
		  </div><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/><br/>	private GraphThread graphThread;<br/><br/>	public GraphPanel(Context context) {<br/>		super(context);<br/>		getHolder().addCallback(this);<br/>		graphThread = new GraphThread(getHolder(), this);<br/>	}<br/><br/>	private void GraphClear(Canvas c) {<br/>		int canvasWidth = c.getWidth() - 50;<br/>		int canvasHeight = c.getHeight() - 40;<br/>		int barDrawH = canvasHeight - BAROFFSET;<br/>		int alpha = 255;<br/>		int lineOffset = ((canvasHeight - BAROFFSET - 20) / 4);<br/>		canvasArea.top = 10;<br/>		canvasArea.left = 10;<br/>		canvasArea.bottom = canvasHeight;<br/>		canvasArea.right = canvasWidth;<br/>		// fill canvas area<br/>		paint.setDither(true);<br/>		paint.setAntiAlias(true);<br/>		paint.setStyle(Paint.Style.FILL);<br/>		paint.setARGB(alpha, 200, 200, 200);<br/>		c.drawRoundRect(canvasArea, 6, 6, paint);<br/>		// draw time bar<br/>		paint.setAntiAlias(false);<br/>		paint.setStrokeWidth(2);<br/>	<br/>		paint.setARGB(alpha, 22, 22, 22);<br/>		c.drawText("Jan 5, 2011", (canvasWidth / 2) - 40,20, paint);<br/>		<br/>		for(int i = lineOffset + 20; i &lt; canvasHeight - lineOffset; i += lineOffset) {<br/>			paint.setARGB(alpha, 0, 100, 100);<br/>			c.drawLine(10, i, canvasWidth, i, paint); // draw duty change bars<br/>		}<br/>		paint.setStrokeWidth(3);<br/>		paint.setARGB(alpha, 22, 22, 22);<br/>		c.drawLine(10, barDrawH, canvasWidth, barDrawH++, paint); // draw shadow<br/>		for (int i = 0; i &lt; 6; i++) {<br/>			paint.setARGB(alpha, 0, 100, 100);<br/>			c.drawLine(10, barDrawH + (i * 3), canvasWidth, barDrawH + (i * 3),<br/>					paint);<br/>			alpha = alpha - 10;<br/>		}<br/>		c.drawLine(10, barDrawH += 18, canvasWidth, barDrawH, paint);<br/>		c.drawLine(10, barDrawH += 3, canvasWidth, barDrawH, paint);<br/>		barDrawH += 3;<br/>		for (int i = 0; i &lt; 6; i++) {<br/>			paint.setARGB(alpha, 0, 100, 100);<br/>			c.drawLine(10, barDrawH + (i * 3), canvasWidth, barDrawH + (i * 3),<br/>					paint);<br/>			alpha = alpha + 10;<br/>		}<br/>	}<br/><br/>	@Override<br/>	public void onDraw(Canvas canvas) {<br/>		paint.setColor(Color.GREEN);<br/><br/>		canvas.drawColor(Color.BLACK);<br/>		this.GraphClear(canvas);<br/>	}<br/><br/>	@Override<br/>	public void surfaceChanged(SurfaceHolder arg0, int arg1, int arg2, int arg3) {<br/>	}<br/><br/>	@Override<br/>	public void surfaceCreated(SurfaceHolder holder) {<br/>		graphThread.setRunning(true);<br/>		graphThread.start();<br/>	}<br/><br/>	@Override<br/>	public void surfaceDestroyed(SurfaceHolder holder) {<br/>		boolean retry = true;<br/>		graphThread.setRunning(false);<br/>		while (retry) {<br/>			try {<br/>				graphThread.join();<br/>				retry = false;<br/>			} catch (InterruptedException e) {<br/>				// we will try it again and again...<br/>			}<br/>		}<br/>	}<br/>}<br/></pre>
		  </div>]]></content:encoded>
      </item>
    <item>
        <title>Best way to launch different tasks</title>
        <link>http://marakana.com/forums/android/general/250.html</link>
        <author>David Dayer</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/250.html</guid>
        <pubDate>Mon, 31 Jan 2011 01:32:03 -0800</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Hello Marakana community!<br/><br/>I am developing an application for blind people. I have to work all the time with the TextToSpeech module, GPS and Network conection.<br/><br/>I need to do a query like this: Consult the GPS, do a JSON call and calling the TextToSpeech(TTS) module.<br/><br/>I am wondering the best way to deal with the different tasks which communicate with the UI main thread. I have seen so far:<br/>Handler objects and AsyncTask class.<br/><br/>I have to lunch each task secuentially, so I want to call the TTS after retrieving data from the network. So I have used "mHandler.post(Runnable)" and inside that runnable calling another one and so on.<br/><br/>However I have seen in Marko's book that is recommendable the use of the AsynTask class. But in this case i think I have to implement a different class for every task, whereas I dont know if that tasks will execute secuentally. Somthing like:<br/><br/>AsyntaskClass1 at1;<br/>AsyntaskClass2 at2;<br/>AsyntaskClass3 at3;<br/><br/>at1.execute();<br/>at2.execute();<br/>at3.execute();<br/><br/>Will that tasks execute in order? Cause the TTS module have to wait for the network task to finish...<br/><br/>Thanks for your help,<br/><br/>BR.David.<br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>SD card API</title>
        <link>http://marakana.com/forums/android/examples/248.html</link>
        <author>Prashanth Pp</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/248.html</guid>
        <pubDate>Sat, 29 Jan 2011 19:57:55 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[can someone help me out in using APIs to access the SD card.. I need to get the list of files on the SD card and then get the content of the file specified... ]]></content:encoded>
      </item>
    <item>
        <title>Android - Service variable access</title>
        <link>http://marakana.com/forums/android/general/243.html</link>
        <author>David Dayer</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/general/243.html</guid>
        <pubDate>Tue, 25 Jan 2011 04:03:41 -0800</pubDate>
        <category>Android - General</category>
        <content:encoded><![CDATA[Hello,<br/><br/>I am implementing an application in Android that needs to access the Location object.<br/>I am running all the logistics for this object in an object. <br/><br/>Afterwards I am binding my Activity to that Service, ServiceGPS.java, the service and Location update seems to works ok, but the problem is that I cant not access to the Location object inside the ServiceGPS.<br/><br/>The connection to the service is defined as I update a global variable in my Activity class<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>private ServiceConnection mConnection = new ServiceConnection() {		<br/>	@Override<br/>	public void onServiceConnected(ComponentName className, IBinder service) {<br/>		@SuppressWarnings("unchecked")<br/>		ServiceGPS mService = ((LocalBinder&lt;ServiceGPS&gt;)service).getService();<br/>        // Get hold of your resource, db etc and pass it through to a object that will use it<br/>		mLocationManager = mService.getmLocation();			<br/>	}<br/>	<br/>	@Override<br/>	public void onServiceDisconnected(ComponentName arg0) {<br/>		// TODO Auto-generated method stub			<br/>	}	<br/>};</pre>
		  </div><br/>If i debug the code, mLocationManager recibes the correct values. But I want to access mService.getmLocation() in my activity, but i cant.<br/><br/>As i cant declare mService as a class member.<br/><br/>Any suggestions?<br/><br/>Thanks a lot for your priceless help.<br/><br/>BR,<br/>David.<br/>	]]></content:encoded>
      </item>
    <item>
        <title>Sprint 4G launch Event</title>
        <link>http://marakana.com/forums/marakana/announcements/241.html</link>
        <author>Tony D&apos;Anna</author>
        <guid isPermaLink="true">http://marakana.com/forums/marakana/announcements/241.html</guid>
        <pubDate>Thu, 20 Jan 2011 11:49:49 -0800</pubDate>
        <category>Marakana - Announcements</category>
        <content:encoded><![CDATA[My name is Tony D'Anna. I am the Engineering manager for Sprint in Northern California and the Pacific Northwest. <br/><br/>I would like to invite this community to the Sprint 4G launch event in San Francisco.<br/><br/>Sprint will be showcasing the latest 4G capable Android devices on February 17th at the Design Center in San Francisco. This event is free with valet parking provided. Details and registration link are below. <br/><br/>The event is aimed at business leaders. All developers and Android fans are welcome. <br/><br/>Spots are limited. The event is expected to be full.<br/><br/>Cut and paste link into browser to register. <br/><br/>http://events.sprint.com/4GSanFrancisco<br/><br/><br/>Thursday, February 17, 2011 | San Francisco Design Center | San Francisco, CA<br/><br/><br/>Turbo Charge Your Business!<br/><br/>Sprint is pleased to announce the arrival of 4G service in San Francisco and is requesting your presence at this exclusive launch event.  4G is the next generation of wireless networks providing a high speed, high capacity service for video, data and voice.  Sprint is the first national wireless carrier delivering 4G today.  <br/><br/>You and a guest are invited to this cutting edge, high-energy technology showcase complete with delicious food and exciting product demonstrations.  Learn the benefits and advantages 4G will bring to your business, see competitive comparisons, proof points and gain hands on experience that brings to life what 4G can do for you.  <br/><br/>When:             Thursday, February 17, 2011<br/>                      10:30 AM Registration <br/>                      11:00 AM - 1:00 PM Presentation, 4G Experience &amp; Lunch<br/><br/>Where:            San Francisco Design Center  <br/>                      East Hall<br/>                      620 7th Street<br/>                      San Francisco, CA  94103<br/>                     *Complimentary valet parking available as well as ASL interpreters<br/><br/>Dress:            Business Casual<br/><br/><br/><br/><br/> <br/><br/>Space is limited, so please register NOW!<br/><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>Android Preferences</title>
        <link>http://marakana.com/forums/android/examples/182.html</link>
        <author>Sravani M</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/182.html</guid>
        <pubDate>Fri, 22 Oct 2010 04:10:10 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[i am using Android prefernces in my application.<br/><br/>i was able to create the first page having Preference Screen.in the second preference screen i have custom preferences. My issues are<br/>1. on clicking on the custom preference i want a popup with multiple edit text and OK button and CANCEL button.<br/>2. How to get the text entered in the text boxes on clicking of OK button to the java class.<br/><br/>Please let me know how this can be done.<br/><br/>Thanks,<br/>Sravani<br/>]]></content:encoded>
      </item>
    <item>
        <title>how do i delete mongrel temorary file??</title>
        <link>http://marakana.com/forums/ruby/ruby_on_rails/174.html</link>
        <author>Amit Tomar</author>
        <guid isPermaLink="true">http://marakana.com/forums/ruby/ruby_on_rails/174.html</guid>
        <pubDate>Tue, 05 Oct 2010 05:12:52 -0700</pubDate>
        <category>Ruby - Ruby on Rails</category>
        <content:encoded><![CDATA[Hii all,<br/>                                             mongrel1.1.2<br/>                                             ruby 1.8.6<br/>                                             apche 2.2.16<br/><br/>i am running Apche frontend to mongrel and  trying to upload some large file(from rails application) to filesystem.Few things i observed.<br/><br/>1 - The uploaded data is stored in a file "mongrel.4124.0"<br/>2 - the mongrel file is copied to a CGI.4124.0 file (I suppose this is the regular Ruby tempfile)<br/>3 - the tempfile is copied to the right location with the code above.<br/><br/>after upload finishes ruby's temporary file is being garbaselly  collected but mongrel temporary file is still holding memory and i would like to avoid this situation.<br/>Now again i tried to uplaod same files same things happens but this time mongrel old temorary file is being deleted but new mongerl file again holding the memory..<br/>                                                                                           what coud i do  now<br/><br/>Thanks<br/>Amit Singh Tomar.<br/>]]></content:encoded>
      </item>
    <item>
        <title>Android Service - Cannot access location</title>
        <link>http://marakana.com/forums/android/examples/170.html</link>
        <author>Varun Verma</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/170.html</guid>
        <pubDate>Fri, 24 Sep 2010 07:01:02 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Hello Experts,<br/>I am new to Android ... so just exploring ...<br/><br/>I created an application that  starts a service. This service has to access the Location. <br/>I am currently unable to do so ... I have given permission to my Mainifest file ..<br/><br/>I think the issue is that the application has the permission, but the Service does not !<br/>What happens is that the service keeps running even if the application is stopped ..<br/><br/>Does the Service need special / different permissions ?<br/>How do I assign permissions to Service ( my service class extends : Service) <br/><br/><br/>Please help.<br/><br/>Thanks in advance.<br/><br/>Regards<br/>Varun]]></content:encoded>
      </item>
    <item>
        <title>how do i force apache to handle download request running apache+mongrel</title>
        <link>http://marakana.com/forums/ruby/ruby_on_rails/169.html</link>
        <author>Amit Tomar</author>
        <guid isPermaLink="true">http://marakana.com/forums/ruby/ruby_on_rails/169.html</guid>
        <pubDate>Thu, 23 Sep 2010 07:15:20 -0700</pubDate>
        <category>Ruby - Ruby on Rails</category>
        <content:encoded><![CDATA[hii all, Am running apche as frontend to mongrel ,i added these line in<br/>Apache's httpd.conf file<br/><br/>LoadModule rewrite_module modules/mod_rewrite.so<br/><br/>LoadModule proxy_module modules/mod_proxy.so<br/><br/>LoadModule proxy_balancer_module modules/mod_proxy_balancer.so<br/><br/>LoadModule proxy_http_module modules/mod_proxy_http.so<br/><br/>LoadModule xsendfile_module modules/mod_xsendfile.so<br/><br/>XSendFile on<br/><br/>XsendFileAllowAbove on<br/><br/>&lt;VirtualHost *:80&gt;<br/><br/>ServerName src<br/><br/>DocumentRoot  C:/InstantRails-2.0-win/rails_apps/src/public/<br/><br/>ProxyPass / <a href="http://localhost:3000/" rel="nofollow">http://localhost:3000/</a><br/><br/>ProxyPassReverse / <a href="http://localhost:3000" rel="nofollow">http://localhost:3000</a><br/>&lt;/VirtualHost&gt;<br/><br/>Now in my application i have to downlaod large stream and i don't want<br/>rails to serve it,i would like apache to server this request but with<br/>current setting rail i serving this request.<br/><br/>this is my code for download<br/><br/>filename = "#{@stream.location}"<br/><br/>response.headers['Content-Type'] = "application/force-download"<br/><br/>response.headers['Content-Disposition'] = "attachment;<br/>filename=\"#{File.basename(filename)}\""<br/><br/>response.headers["X-Sendfile"] = filename<br/><br/>response.headers['Content-length'] = File.size(filename)<br/><br/>render :nothing =&gt; true<br/><br/>with current setting am able to downlaod files of 1.1. gb only once to<br/>download it again i have to restart both mongrel and apache...]]></content:encoded>
      </item>
    <item>
        <title>Targeting 1.5, 1.6, etc and HVGA and WVGA screens</title>
        <link>http://marakana.com/forums/android/examples/168.html</link>
        <author>Fred Grott</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/168.html</guid>
        <pubDate>Mon, 20 Sep 2010 04:49:10 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Our tools kind of betray us when we want to target multiple screen sizes and multiple andorid OS versions..for example if you use ADT and target min 3 and  you are given this:<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/><br/>&lt;supports-screens android:smallScreens="true"<br/>                  android:normalScreens="true"<br/>                  android:largeScreens="true"<br/>                  android:anyDensity="false" /&gt;<br/></pre>
		  </div><br/><br/>In the AndroidManifest and this will display wrong on the WVGA devices with a band of black around the application.<br/><br/>Thus, you need to edit the AndroidManinfest to:<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>&lt;!-- Targeting 3 automatically sets anyDensity false goofing up<br/>      WVGA screens..set to true --&gt;<br/>&lt;supports-screens android:smallScreens="true"<br/>                  android:normalScreens="true"<br/>                  android:largeScreens="true"<br/>                  android:anyDensity="true" /&gt;<br/></pre>
		  </div><br/><br/>Once the change is made your application targeting both android versions 15, 1.6, etc and different screen sizes will display properly on all screens including WVGA.]]></content:encoded>
      </item>
    <item>
        <title>Graph not displaying on ajax request</title>
        <link>http://marakana.com/forums/ruby/ruby_on_rails/164.html</link>
        <author>Swetha A</author>
        <guid isPermaLink="true">http://marakana.com/forums/ruby/ruby_on_rails/164.html</guid>
        <pubDate>Wed, 15 Sep 2010 23:47:25 -0700</pubDate>
        <category>Ruby - Ruby on Rails</category>
        <content:encoded><![CDATA[Hi ,<br/><br/>I need to show a page loading progress bar while the graph is being loaded.<br/><br/>For this i am using ajax link_to_remote helper and calling my graph in partials.<br/><br/>I am using "korin-open_flash_chart_2_plugin" for graphs and my rails version is 2.0.2.<br/><br/>The graph is working fine with non-ajax helpers. But on ajax request i am getting the following error :<br/>Open Flash Chart<br/>IO ERROR<br/>Loading test data<br/>Error #2032<br/><br/>So i am unable to resolve this error. I tried a lot in resolving it.<br/>I need any help/ideas regarding this error.Thanks in advance]]></content:encoded>
      </item>
    <item>
        <title>Apache Tomcat Scalability</title>
        <link>http://marakana.com/forums/tomcat/general/151.html</link>
        <author>Jorge Mario Gonzalez Figueroa</author>
        <guid isPermaLink="true">http://marakana.com/forums/tomcat/general/151.html</guid>
        <pubDate>Sat, 14 Aug 2010 09:16:17 -0700</pubDate>
        <category>Tomcat - General</category>
        <content:encoded><![CDATA[What's better having a tomcat with n webapps or having 2 tomcats on the same machine with n/2 webapps on each tomcat instance?]]></content:encoded>
      </item>
    <item>
        <title>mutual SSL authentication</title>
        <link>http://marakana.com/forums/apache/general/148.html</link>
        <author>Roel Brutas</author>
        <guid isPermaLink="true">http://marakana.com/forums/apache/general/148.html</guid>
        <pubDate>Wed, 04 Aug 2010 11:55:38 -0700</pubDate>
        <category>Apache - General</category>
        <content:encoded><![CDATA[Sasa,<br/><br/>I am setting up a mutual SSL authentication between our server and our clients application. The following are the entry on my vhost.. the SSLCertificateFile and SSLCACertificateFile are from Verisign.<br/><br/>SSLEngine on<br/>SSLVerifyClient require<br/>SSLVerifyDepth 10<br/>LogLevel debug<br/>SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP:+eNULL<br/>SSLCertificateFile /www/staging/apache2/conf/ssl.crt/biwebservices.qa.crt<br/>SSLCertificateKeyFile /www/staging/apache2/conf/ssl.crt/biwebservices.qa.privkey<br/>SSLCACertificateFile /www/staging/apache2/conf/ssl.crt/intermediate.crt<br/><br/><br/>when the client tries connecting to me, they receiving "HANDSHAKE_FAILURE" error and my logs are showing the following error when i enabled the debug.<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">[Wed Aug 04 14:22:51 2010] [info] Seeding PRNG with 136 bytes of entropy<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_kernel.c(1875): OpenSSL: Handshake: start<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_kernel.c(1883): OpenSSL: Loop: before/accept initialization<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1858): OpenSSL: read 11/11 bytes from BIO#41d4a0 [mem: 430bd8] (BIO dump follows)<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1791): +-------------------------------------------------------------------------+<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1830): | 0000: 16 03 00 00 41 01 00 00-3d 03                    ....A...=.       |<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1834): | 0011 - &lt;SPACES/NULS&gt;<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1836): +-------------------------------------------------------------------------+<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1858): OpenSSL: read 59/59 bytes from BIO#41d4a0 [mem: 430be3] (BIO dump follows)<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1791): +-------------------------------------------------------------------------+<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1830): | 0000: 4c 59 af fc 74 38 f2 ed-7d ee 5d d9 9c eb 56 c6  LY..t8..}.]...V. |<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1830): | 0010: 91 db fe b0 4d ca 89 c2-43 cd dd d7 f5 2a 4f 1a  ....M...C....*O. |<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1830): | 0020: 00 00 16 00 04 00 05 00-0a 00 09 00 64 00 62 00  ............d.b. |<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1830): | 0030: 03 00 06 00 13 00 12 00-63 01                    ........c.       |<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1834): | 0059 - &lt;SPACES/NULS&gt;<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1836): +-------------------------------------------------------------------------+<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_kernel.c(1883): OpenSSL: Loop: SSLv3 read client hello A<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_kernel.c(1883): OpenSSL: Loop: SSLv3 write server hello A<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_kernel.c(1883): OpenSSL: Loop: SSLv3 write certificate A<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_kernel.c(1883): OpenSSL: Loop: SSLv3 write certificate request A<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_kernel.c(1883): OpenSSL: Loop: SSLv3 flush data<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1858): OpenSSL: read 5/5 bytes from BIO#41d4a0 [mem: 430bd8] (BIO dump follows)<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1791): +-------------------------------------------------------------------------+<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1830): | 0000: 15 03 00 00 02                                   .....            |<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1836): +-------------------------------------------------------------------------+<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1858): OpenSSL: read 2/2 bytes from BIO#41d4a0 [mem: 430bdd] (BIO dump follows)<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1791): +-------------------------------------------------------------------------+<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1830): | 0000: 01 29                                            .)               |<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1836): +-------------------------------------------------------------------------+<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_kernel.c(1888): OpenSSL: Read: SSLv3 read client certificate A<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1858): OpenSSL: read 5/5 bytes from BIO#41d4a0 [mem: 430bd8] (BIO dump follows)<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1791): +-------------------------------------------------------------------------+<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1830): | 0000: 16 03 00 01 04                                   .....            |<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1836): +-------------------------------------------------------------------------+<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1858): OpenSSL: read 260/260 bytes from BIO#41d4a0 [mem: 430bdd] (BIO dump follows)<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1791): +-------------------------------------------------------------------------+<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1830): | 0000: 10 00 01 00 8a 69 8b 55-3a 26 e6 3a f0 2c bd 8e  .....i.U:&amp;.:.,.. |<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1830): | 0010: 87 79 d3 eb d6 02 32 6b-00 8b 03 ee 33 be 73 ff  .y....2k....3.s. |<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1830): | 0020: c7 cd ab 81 f0 33 0a c0-02 82 9c 3b 6c 3a 6a c6  .....3.....;l:j. |<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1830): | 0030: a5 34 3f 69 0b c9 e3 5d-45 ad d5 e8 1c 48 ea 41  .4?i...]E....H.A |<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1830): | 0040: a9 74 e8 ee b8 e3 f1 96-18 25 9c 91 2e 01 1b 0d  .t.......%...... |<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1830): | 0050: f9 3d ba 0c 5a ab 78 66-4a 0e ea 41 d5 71 dd c1  .=..Z.xfJ..A.q.. |<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1830): | 0060: 84 ef 8d 8b d1 15 5f 7c-b4 a6 43 85 49 e4 75 ce  ......_|..C.I.u. |<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1830): | 0070: 94 91 83 6c 38 09 31 1b-2d 2d d4 65 83 02 1d a6  ...l8.1.--.e.... |<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1830): | 0080: dd 3c dc e1 92 8a 18 25-d7 d0 fe 22 74 70 09 c8  .&lt;.....%..."tp.. |<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1830): | 0090: 87 48 c1 ba 3e de 9e c3-01 6d 7d b3 ba 11 8b 49  .H..&gt;....m}....I |<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1830): | 00a0: 30 8d dd 19 52 57 9b 1c-08 a8 16 e6 b5 3a 95 61  0...RW.......:.a |<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1830): | 00b0: 6b 11 4b 1c 12 1f 07 55-10 dc f8 c0 55 4a 46 2c  k.K....U....UJF, |<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1830): | 00c0: c4 46 4b 04 c3 dc e0 7c-2a 9c 9f 5e de 6c 4c c4  .FK....|*..^.lL. |<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1830): | 00d0: e1 13 e9 47 e9 86 cf 23-ed b2 f7 d3 1c f0 63 a6  ...G...#......c. |<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1830): | 00e0: 20 28 15 49 e9 0b 43 36-e6 15 cc ad 5c 57 04 4b   (.I..C6....\\W.K |<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1830): | 00f0: 0d 9a f5 bd e5 7e da 04-6a 6a 32 15 36 cd 2f 1b  .....~..jj2.6./. |<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1830): | 0100: ee af 1b 71                                      ...q             |<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_io.c(1836): +-------------------------------------------------------------------------+<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_kernel.c(1893): OpenSSL: Write: SSLv3 read client certificate B<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_kernel.c(1912): OpenSSL: Exit: error in SSLv3 read client certificate B<br/>[Wed Aug 04 14:22:51 2010] [debug] ssl_engine_kernel.c(1912): OpenSSL: Exit: error in SSLv3 read client certificate B<br/>[Wed Aug 04 14:22:51 2010] [info] [client 172.16.1.119] SSL library error 1 in handshake (server biwebservices.qa.hibbertgroup.com:443)<br/>[Wed Aug 04 14:22:51 2010] [info] SSL Library Error: 336105671 error:140890C7:SSL routines:SSL3_GET_CLIENT_CERTIFICATE:peer did not return a certificate No CAs known to server for verification?<br/></pre>
		  </div><br/><br/>any help is greatly appreciated. CLient is using java ee apps to connect to us.<br/><br/><br/>Btw, i've been to your apache class last february.]]></content:encoded>
      </item>
    <item>
        <title>Learn About SVG and Vector-Based Technologies</title>
        <link>http://marakana.com/forums/html5/general/143.html</link>
        <author>Johanne Quiambao</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/143.html</guid>
        <pubDate>Fri, 16 Jul 2010 10:20:26 -0700</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[<a href="http://www.sfhtml5.org/" rel="nofollow"> The San Francisco HTML5 User Group</a> put together an event on June 24th, 2010 with Oswald Campesato who shared with us his passion for SVG and showed us how to tap into this amazing technology! ... (video and slides after the break)]]></content:encoded>
      </item>
    <item>
        <title>Trouble with syntax/dialect with Hibernate and MySQL 6</title>
        <link>http://marakana.com/forums/hibernate/general/141.html</link>
        <author>Broc Nelson</author>
        <guid isPermaLink="true">http://marakana.com/forums/hibernate/general/141.html</guid>
        <pubDate>Tue, 13 Jul 2010 14:33:42 -0700</pubDate>
        <category>Hibernate - General</category>
        <content:encoded><![CDATA[I got all my environment setup with MySQL 6 and got syntax errors from Hibernate on startup. Rolled back to MySQL 5.1 and it worked fine. Is there another dialect to fix this? Currently using the org.hibernate.dialect.MySQLInnoDBDialect. Am i doing something wrong?<br/><br/>App working fine with 5.1, just wondering about the problems with MySQL 6.<br/><br/>Thanks,<br/>Broc]]></content:encoded>
      </item>
    <item>
        <title>how to create multiply views screen?</title>
        <link>http://marakana.com/forums/android/examples/128.html</link>
        <author>Avi Cohen</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/128.html</guid>
        <pubDate>Sun, 23 May 2010 13:04:27 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[hello,<br/>i'm beginner at android development. i want to create an activity, which shows a question with 4 answers, and at the bottom of the screen i want to place a timer. i have already found timer example, and i created a question with the answers. the problem that they are 2 different projects and activities, and i am looking for the best way to implement it. i think i can't show 2 activities on one screen, but i can show 2 views or shell i use the ViewGroup, or maybe to copy-paste one of the activities code to another ( its the easiest way but probably the most ugliest way to implement it).<br/>please tell me what is the best way, that i will study and not to waste time to study all the ways and only then to choose one of them.<br/><br/><br/>thanks!]]></content:encoded>
      </item>
    <item>
        <title>Forms In HTML5</title>
        <link>http://marakana.com/forums/html5/general/125.html</link>
        <author>Serete Itebete</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/125.html</guid>
        <pubDate>Wed, 19 May 2010 15:56:19 -0700</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[HTML 5 has features in which used to be difficult in previous versions of Html, javascript and CSS combination.<br/><br/>In this example:<br/><br/>HTML5 : Input validation<br/><br/>CSS3 : - renders the angled words on the top left<br/>       - the rounded corners<br/><br/><strong>signup.html</strong><br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>&lt;!DOCTYPE html&gt;<br/>&lt;html&gt;<br/>&lt;head&gt;<br/>&lt;title&gt;Marakana Form Example&lt;/title&gt;<br/>    &lt;meta http-equiv="Content-type" content="text/html;charset=UTF-8"&gt;<br/>&lt;link rel="stylesheet" href = "myCSSfile.css"&gt;<br/><br/>&lt;script type="text/javascript"&gt;<br/>&lt;/script&gt;<br/><br/>&lt;/head&gt;<br/><br/>  &lt;body&gt;<br/>  &lt;div id="container"&gt;<br/>    &lt;header&gt;<br/>        &lt;h1&gt;Class Signup&lt;/h1&gt;<br/>        &lt;h3 align="center"&gt;Get your top rated Open Source technology Training&lt;/h3&gt;<br/>        &lt;h2&gt;&amp;nbsp;&lt;/h2&gt;<br/>        &lt;h4&gt;Get Training Results Now!&lt;/h4&gt;<br/>    &lt;/header&gt;<br/><br/>    &lt;nav&gt;<br/>        &lt;h2&gt;Classes&lt;/h2&gt;<br/>        &lt;a href="" title="Home"&gt;Home&lt;/a&gt;<br/>        &lt;a href="signup.html" title="Get Ready To Learn"&gt;Sign Up&lt;/a&gt;<br/>        &lt;a href="" title="More About Marakana.com"&gt;About Marakana.com&lt;/a&gt;<br/>    &lt;/nav&gt;<br/><br/>    &lt;section&gt;<br/>      &lt;article&gt;<br/>        &lt;h2&gt;HTML5&lt;/h2&gt;<br/>        &lt;p id="leaderboardStatus"&gt;Marakana Training: Connecting...&lt;/p&gt;<br/>        &lt;div id="leaderboard"&gt;&lt;/div&gt;<br/>      &lt;/article&gt;<br/><br/>     &lt;article&gt;<br/>        &lt;h2&gt;Class Sign Up&lt;/h2&gt;<br/>        &lt;p&gt;&lt;strong&gt;Free Open Source Class&lt;/strong&gt;: $0 &lt;/p&gt;<br/>        &lt;p&gt;Payment to Other Open Source Classes&lt;/p&gt;<br/>        &lt;p&gt;&lt;strong&gt;NOTE :&lt;/strong&gt; All Participants for training need to have basic programming knowledge to success in open source. &lt;/p&gt;<br/>        &lt;form method="post"<br/>              enctype="application/x-www-form-urlencoded"<br/>              action=""&gt;<br/>          &lt;p&gt;&lt;label&gt;Name: &lt;input name="name" required&gt;&lt;/label&gt;&lt;/p&gt;<br/>          &lt;p&gt;&lt;label&gt;Tel: &lt;input name="telnumber" type=tel&gt;&lt;/label&gt;&lt;/p&gt;<br/>          &lt;p&gt;&lt;label&gt;Email: &lt;input name="emailaddress required" type=email&gt;&lt;/label&gt;&lt;/p&gt;<br/>          &lt;p&gt;&lt;label&gt;Employer(If Any): &lt;input type="datetime"&gt;&lt;/label&gt;&lt;/p&gt;<br/>          &lt;fieldset&gt;<br/>            &lt;legend&gt;Programming Experience: &lt;/legend&gt;<br/>            &lt;p&gt;&lt;label&gt; &lt;input type=radio name=size name="programming" value="None"&gt;None &lt;/label&gt;&lt;/p&gt;<br/>            &lt;p&gt;&lt;label&gt; &lt;input type=radio name=size name="programming" value="Basic"&gt;Basic &lt;/label&gt;&lt;/p&gt;<br/>            &lt;p&gt;&lt;label&gt; &lt;input type=radio name=size name="programming" value="Expert"&gt;Expert &lt;/label&gt;&lt;/p&gt;<br/>         &lt;/fieldset&gt;<br/><br/>         &lt;fieldset&gt;<br/>          &lt;legend&gt;Meals Offered During Training Classes: &lt;/legend&gt;<br/>          &lt;p&gt;&lt;label&gt; &lt;input type=checkbox name="extra" value="pasta"&gt;Pasta meal&lt;/label&gt;&lt;/p&gt;<br/>          &lt;p&gt;&lt;label&gt; &lt;input type=checkbox name="extra" value="sandwich"&gt;Sandwich&lt;/label&gt;&lt;/p&gt;<br/>          &lt;p&gt;&lt;label&gt; &lt;input type=checkbox name="extra" value="pizza"&gt;Pizza&lt;/label&gt;&lt;/p&gt;<br/>         &lt;/fieldset&gt;<br/><br/>         &lt;fieldset&gt;<br/>         &lt;legend&gt;Expectations: &lt;/legend&gt;<br/>          &lt;p&gt;<br/>           &lt;label for="confidence"&gt;Your Learning Confidence Level&lt;/label&gt;<br/>           &lt;input id="confidence"  name="level" type="range" min="1" max="100" value="0"&gt;<br/>           &lt;output name="result"  onforminput="value=level.value"  &gt;0&lt;/output&gt;<br/>         &lt;/P&gt;<br/>         &lt;p&gt;&lt;label&gt;Notes: &lt;textarea name="comments" maxlength=140&gt;&lt;/textarea&gt;&lt;/label&gt;&lt;/p&gt;<br/>        &lt;/fieldset&gt;<br/>         &lt;p&gt;&lt;button&gt;Submit&lt;/button&gt;&lt;p&gt;<br/>        &lt;/form&gt;<br/><br/>      &lt;/article&gt;<br/>    &lt;/section&gt;<br/><br/>   &lt;aside&gt;<br/>      &lt;h4&gt;Sponsors&lt;/h4&gt;<br/>	  &lt;h2&gt;&lt;p align="center"&gt;Kaazing&lt;/p&gt;&lt;/h2&gt;<br/>      &lt;h2&gt;&lt;p align="center"&gt;SFHTML5.org&lt;/p&gt;&lt;/h2&gt;<br/>      &lt;p align="center"&gt;&lt;img src="html5.jpg" alt="OpenSource Training" width="149" height="207"&gt;&lt;/p&gt;<br/>   &lt;/aside&gt;<br/><br/>    &lt;footer&gt;<br/>        &lt;p&gt;Simply Powered by HTML5&lt;/p&gt;<br/>    &lt;/footer&gt;<br/><br/>&lt;/div&gt;<br/><br/>&lt;/html&gt;<br/></pre>
		  </div><br/><br/>The HTML5 page cannot work without corresponding CSS file <br/><br/><strong>myCSSfile.css</strong><br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>/* <br/>/* myCSSfile.css: Published with permission from the <br/>/* author: Peter Lubbers, Kaazing HTML5 Training <br/>*/<br/><br/>body {<br/>	background-color:#CCCCCC;<br/>	font-family:Geneva,Arial,Helvetica,sans-serif;<br/>	margin: 0px auto;<br/>	max-width:1000px;<br/>	border:solid;<br/>	border-color:#FFFFFF;<br/>}<br/><br/>header {<br/>	background-color: #F47D31;<br/>	display:block;<br/>	color:#FFFFFF;<br/>	text-align:center;<br/>	width:100%;<br/>}<br/><br/>h1 {<br/>	font-size: 72px;<br/>	margin: 0px;<br/>}<br/><br/>h2 {<br/>	font-size: 24px;<br/>	margin: 0px;<br/>	text-align:center;<br/>	color: #F47D31;<br/>}<br/><br/>h3 {<br/>	font-size: 18px;<br/>	margin: 0px;<br/>	text-align:center;<br/>	color: #F47D31;<br/>}<br/><br/>h4 {<br/>	color: #F47D31;<br/>	background-color: #fff;<br/>	-webkit-box-shadow: 2px 2px 20px #888;<br/>	-webkit-transform: rotate(-45deg);<br/>	position: absolute;<br/>	padding: 0px 150px;<br/>	top: 50px;<br/>	left: -120px;<br/>	text-align:center;<br/>	<br/>}<br/><br/>header h2 {<br/>	margin: 0px;<br/>}<br/><br/>nav {<br/>	display:block;<br/>	width:25%;<br/>	float:left;<br/>}<br/><br/>nav a:link, nav a:visited {<br/>	display: block;<br/>	border-bottom: 3px solid #fff;<br/>	padding: 10px;<br/>	text-decoration: none;<br/>	font-weight: bold;<br/>	margin: 5px;<br/>}<br/><br/>nav a:hover {<br/>	color: white;<br/>	background-color: #F47D31;<br/>}<br/><br/>nav h3 {<br/>	margin: 15px;<br/>	color: white;<br/>}<br/><br/>#container {<br/>	background-color: #888;<br/>}<br/><br/>section {<br/><br/>	display:block;<br/>	width:50%;<br/>	float:left;<br/>}<br/><br/>article {<br/>	background-color: #eee;<br/>	display:block;<br/>	margin: 10px;<br/>	padding: 10px;<br/>	-webkit-border-radius: 10px;<br/>	-moz-border-radius: 10px;<br/>	border-radius: 10px;<br/>}<br/><br/>article h2 {<br/>}<br/><br/>aside {<br/>	display:block;<br/>	width:25%;<br/>	float:left;<br/>}<br/><br/>footer {<br/>	clear: both;	<br/>	display: block;<br/>	background-color: #F47D31;<br/>	color:#FFFFFF;<br/>	text-align:center;<br/>	padding: 15px;<br/>}<br/><br/><br/>/* links */<br/>a {<br/>	color: #F47D31;<br/>}<br/><br/>a:hover {<br/>	text-decoration: underline;<br/>}<br/></pre>
		  </div><br/><br/><br/><strong>Screenshot</strong><br/><br/><img src="http://marakana.com/static/tutorials/html5/HTML5-Forms-signup.gif" alt=""/><br/><br/><strong>Source Code</strong><br/><br/><a href="http://marakana.com/static/tutorials/html5/HTML5-Forms.zip" rel="nofollow">http://marakana.com/static/tutorials/html5/HTML5-Forms.zip</a><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>Exception trying to get class files working</title>
        <link>http://marakana.com/forums/spring/general/124.html</link>
        <author>Pia Srivastava</author>
        <guid isPermaLink="true">http://marakana.com/forums/spring/general/124.html</guid>
        <pubDate>Tue, 18 May 2010 13:00:20 -0700</pubDate>
        <category>Spring - General</category>
        <content:encoded><![CDATA[Hi Sasa,<br/><br/>I am trying to get the last example of spring-hibernate working and keep getting the exception below. When I try to add a user in the forum, it requests a user name and password.<br/>Where do I set this up or alternately, how can I remove this request for authentication?<br/><br/><br/>This is my tomcat-users.xml file:<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>&lt;?xml version='1.0' encoding='utf-8'?&gt;<br/>&lt;!--<br/>  Licensed to the Apache Software Foundation (ASF) under one or more<br/>  contributor license agreements.  See the NOTICE file distributed with<br/>  this work for additional information regarding copyright ownership.<br/>  The ASF licenses this file to You under the Apache License, Version 2.0<br/>  (the "License"); you may not use this file except in compliance with<br/>  the License.  You may obtain a copy of the License at<br/><br/>      <a href="http://www.apache.org/licenses/LICENSE-2.0" rel="nofollow">http://www.apache.org/licenses/LICENSE-2.0</a><br/><br/>  Unless required by applicable law or agreed to in writing, software<br/>  distributed under the License is distributed on an "AS IS" BASIS,<br/>  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<br/>  See the License for the specific language governing permissions and<br/>  limitations under the License.<br/>--&gt;<br/>&lt;tomcat-users&gt;<br/>  &lt;role rolename="tomcat"/&gt;<br/>  &lt;role rolename="role1"/&gt;<br/>  &lt;user username="tomcat" password="tomcat" roles="tomcat"/&gt;<br/>  &lt;user username="both" password="tomcat" roles="tomcat,role1"/&gt;<br/>  &lt;user username="role1" password="tomcat" roles="role1"/&gt;<br/> &lt;role rolename="manager"/&gt;<br/>  &lt;user username="tomcat" password="secret" roles="manager"/&gt;<br/><br/>&lt;role rolename="manager"/&gt;<br/> &lt;user username="admin" password="secret" roles="manager"/&gt;<br/><br/>&lt;/tomcat-users&gt;                  <br/></pre>
		  </div><br/><br/>Thanks,<br/>Pia]]></content:encoded>
      </item>
    <item>
        <title>Android JUnit Testing</title>
        <link>http://marakana.com/forums/android/examples/121.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/121.html</guid>
        <pubDate>Mon, 17 May 2010 13:12:03 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[This is an example of how to setup Android JUnit testing. What we have here is a project to be tested (TestDemo) as well as the project that will run the tests on it (TestDemoTest). In other words, TestDemo is a testee and TestDemoTest is a tester code.<br/><br/>TestDemo is a simple weight converter converting from metric kilograms to imperial pounds and vice versa.<br/><br/><strong>TestDemo - Weight Converter Application</strong><br/><br/>Let's explain the testee code first - a simple weight converter application. It consists for a single activity that has two text input fields with listeners for user typing in them.<br/><br/><strong>res/layout/main.xml</strong><br/><br/>The user interface is fairly simple, with a single LinearLayout, couple of TextViews and couple of <code class="inline">EditText</code> fields. We only care about the <code class="inline">EditText</code> fields in this case.<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>&lt;?xml version="1.0" encoding="utf-8"?&gt;<br/>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"<br/>  android:orientation="vertical" android:layout_width="fill_parent"<br/>  android:layout_height="fill_parent" android:layout_gravity="center"&gt;<br/>  &lt;TextView android:layout_width="fill_parent"<br/>    android:layout_height="wrap_content" android:text="@string/titleConverter"<br/>    android:gravity="center" android:textSize="20sp"<br/>    android:layout_margin="20dp" /&gt;<br/>  &lt;TextView android:layout_width="wrap_content"<br/>    android:layout_height="wrap_content" android:text="@string/titleKilos"<br/>    android:textSize="20sp"&gt;&lt;/TextView&gt;<br/>  &lt;EditText android:layout_height="wrap_content" android:hint="@string/titleKilos"<br/>    android:id="@+id/editKilos" android:layout_width="fill_parent"&gt;&lt;/EditText&gt;<br/>  &lt;TextView android:layout_width="wrap_content"<br/>    android:layout_height="wrap_content" android:text="@string/titlePounds"<br/>    android:textSize="20sp"&gt;&lt;/TextView&gt;<br/>  &lt;EditText android:layout_height="wrap_content" android:id="@+id/editPounds"<br/>    android:hint="@string/titlePounds" android:layout_width="fill_parent"&gt;&lt;/EditText&gt;<br/>&lt;/LinearLayout&gt;<br/></pre>
		  </div><br/><br/><strong>src/com/marakana/TestDemo.java</strong><br/><br/>The Java class represents our one and only activity. It only overrides <code class="inline">onCreate()</code> method where we find the two <code class="inline">EditText</code> fields we care about, and assign the <code class="inline">OnKeyListeners</code> to listen when the user types something in the field. We then try to convert from one unit to another by parsing the input and multiplying it with a conversion number. As the number parsing may fail, we catch those exceptions and report it as an error.<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>package com.marakana;<br/><br/>import android.app.Activity;<br/>import android.os.Bundle;<br/>import android.util.Log;<br/>import android.view.KeyEvent;<br/>import android.view.View;<br/>import android.view.View.OnKeyListener;<br/>import android.widget.EditText;<br/><br/>public class TestDemo extends Activity {<br/>  static final String TAG = "TestDemo";<br/>  EditText editKilos, editPounds;<br/>  public static final String ERROR = "ERROR";<br/><br/>  /** Called when the activity is first created. */<br/>  @Override<br/>  public void onCreate(Bundle savedInstanceState) {<br/>    super.onCreate(savedInstanceState);<br/>    setContentView(R.layout.main);<br/><br/>    // Find views<br/>    editKilos = (EditText) findViewById(R.id.editKilos);<br/>    editPounds = (EditText) findViewById(R.id.editPounds);<br/><br/>    // Setup listener for Kilos to Pounds<br/>    editKilos.setOnKeyListener(new OnKeyListener() {<br/>      public boolean onKey(View view, int keyCode, KeyEvent event) {<br/>        if (event.getAction() != KeyEvent.ACTION_UP)<br/>          return false;<br/>        try {<br/>          Log.d(TAG, String<br/>                  .format("Kilos: %s", editKilos.getText().toString()));<br/>          double kilos = Double.parseDouble(editKilos.getText().toString());<br/>          double pounds = kilos * 2.20462262;<br/>          editPounds.setText(new Double(pounds).toString());<br/>        } catch (NumberFormatException e) {<br/>          editPounds.setText(ERROR);<br/>          Log.e(TAG, "e:" + e);<br/>        }<br/>        return true;<br/>      }<br/>    });<br/><br/>    // Setup listener for Pounds to Kilos<br/>    editPounds.setOnKeyListener(new OnKeyListener() {<br/>      public boolean onKey(View view, int keyCode, KeyEvent event) {<br/>        if (event.getAction() != KeyEvent.ACTION_UP)<br/>          return false;<br/>        try {<br/>          Log.d(TAG, String.format("Pounds: %s", editPounds.getText()<br/>              .toString()));<br/>          double pounds = Double.parseDouble(editPounds.getText().toString());<br/>          double kilos = pounds * 0.45359237;<br/>          editKilos.setText(new Double(kilos).toString());<br/>        } catch (NumberFormatException e) {<br/>          editKilos.setText(ERROR);<br/>          Log.e(TAG, "e:" + e);<br/>        }<br/>        return true;<br/>      }<br/>    });<br/><br/>  }<br/>}<br/></pre>
		  </div><br/><br/><br/><strong>Output</strong><br/><br/>The output of this stand-alone application looks like this:<br/><img src="http://marakana.com/static/tutorials/TestDemo.png" alt=""/><br/><br/><strong>Source Code</strong><br/><a href="http://marakana.com/static/tutorials/TestDemo.zip" rel="nofollow">http://marakana.com/static/tutorials/TestDemo.zip</a><br/><br/><br/><br/><strong>TestDemoTest</strong><br/><br/>Now let's look at the application that will test our TestDemo weight converter. This is a separate project, but it is set to be dependent on the TestDemo project since it needs to be able to load its classes. Notice also that we are using different Java packages for the two applications, to further separate them. TestDemo code lives in <code class="inline">com.marakana</code> package while TestDemoTest is in <code class="inline">com.marakana.test</code> package.<br/><br/>In Eclipse, to setup dependency of one project on another, open up TestDemoTest's project properties (right-click on project), select Java Build Path, click on Project tab, and select Add... to add the TestDemo project.<br/><br/><strong>src/com/marakana/test/TestDemoTests.java</strong><br/><br/>Just like in JUnit, you organize your test code in test cases, each typically a Java class. A test case consists of multiple unit tests, essentially Java methods. These tests either pass or fail by making certain assertions. You can also set up and tear down a test case.<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>package com.marakana.test;<br/><br/>import android.test.ActivityInstrumentationTestCase2;<br/>import android.test.TouchUtils;<br/>import android.test.ViewAsserts;<br/>import android.test.suitebuilder.annotation.SmallTest;<br/>import android.widget.EditText;<br/><br/>import com.marakana.TestDemo;<br/><br/>/*<br/> * Test code to test com.marakana.TestDemo<br/> * <br/> * To run on command line:<br/> * adb -e shell am instrument -w -e class com.marakana.test.TestDemoTests <br/> *              com.marakana.test/android.test.InstrumentationTestRunner<br/> */<br/>public class TestDemoTests extends ActivityInstrumentationTestCase2&lt;TestDemo&gt; {<br/>  EditText editKilos, editPounds;<br/>  TestDemo activity;<br/><br/>  public TestDemoTests(String name) {<br/>    super("com.marakana", TestDemo.class);<br/>    setName(name);<br/>  }<br/><br/>  protected void setUp() throws Exception {<br/>    super.setUp();<br/>    <br/>    // Find views<br/>    activity = getActivity();<br/>    editKilos = (EditText)activity.findViewById(com.marakana.R.id.editKilos);<br/>    editPounds = (EditText)activity.findViewById(com.marakana.R.id.editPounds);<br/>  }<br/><br/>  protected void tearDown() throws Exception {<br/>    super.tearDown();<br/>  }<br/>  <br/>  @SmallTest<br/>  public void testViewsCreated() {<br/>    assertNotNull(getActivity());<br/>    assertNotNull(editKilos);<br/>    assertNotNull(editPounds);<br/>  }<br/>  <br/>  @SmallTest<br/>  public void testViewsVisible() {<br/>    ViewAsserts.assertOnScreen(editKilos.getRootView(), editPounds);<br/>    ViewAsserts.assertOnScreen(editPounds.getRootView(), editKilos);<br/>  }<br/>  <br/>  @SmallTest<br/>  public void testStartingEmpty() {<br/>    assertTrue("Kilos field is empty", "".equals(editKilos.getText().toString()));<br/>    assertTrue("Pounds field is empty", "".equals(editPounds.getText().toString()));<br/>  }<br/>  <br/>  @SmallTest<br/>  public void testKilosToPounds() {<br/>    editKilos.clearComposingText();<br/>    editPounds.clearComposingText();<br/>    <br/>    TouchUtils.tapView(this, editKilos);<br/>    sendKeys("1");<br/>    <br/>    double pounds;<br/>    try {<br/>      pounds = Double.parseDouble(editPounds.getText().toString());<br/>    } catch (NumberFormatException e) {<br/>      pounds = -1;<br/>    }<br/>    assertTrue("1 kilo is 2.20462262 pounds", pounds &gt; 2.2 &amp;&amp; pounds &lt; 2.3);<br/>  }<br/><br/>}<br/></pre>
		  </div><br/><br/>What we have here is slightly different than a regular Java JUnit test case. For one, we subclass <code class="inline">ActivityInstrumentationTestCase2</code> instead of standard <code class="inline">TestCase</code>. This is because our code is testing an Activity and <code class="inline">ActivityInstrumentationTestCase2</code> knows a bit more about activities.<br/><br/>Notice that our setup code gets the activity to be tested, in this case TestDemo activity. We also find all the views we care about in this activity so we can simulate user input. In this case, we find the two EditText fields for kilos and pounds.<br/><br/>What follows is a set of simple tests. Each test needs to either pass or fail. That is done via calling appropriate asset. Most assert methods are straight-forward from JUnit, but Android adds a few Android-specific ones. Notice the use of <code class="inline">ViewAsserts</code>, for instance. Also, notice the use of <code class="inline">TouchUtils</code> to send key strokes to the activity.<br/><br/>When you have your projects setup properly, you can run the TestDemoTest code as Android JUnit Test. Select your TestDemoTest project, right click and choose Run As -&gt; Android JUnit Test. This should open another view and show you the execution of the code right in Eclipse. The output would look like this:<br/><br/><strong>Output</strong><br/><img src="http://marakana.com/static/tutorials/TestDemoTest.png" alt=""/><br/><br/><strong>Source Code</strong><br/><a href="http://marakana.com/static/tutorials/TestDemoTest.zip" rel="nofollow">http://marakana.com/static/tutorials/TestDemoTest.zip</a><br/><br/>Notice that you can also run Android JUnit tests from command line as well. This helps with automation of testing. The typical command would look like:<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">$ adb -e shell am instrument -w -e class com.marakana.test.TestDemoTests com.marakana.test/andr<br/>oid.test.InstrumentationTestRunner</pre>
		  </div><br/><br/>And the output would be something like this:<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>com.marakana.test.TestDemoTests:....<br/>Test results for InstrumentationTestRunner=....<br/>Time: 5.716<br/><br/>OK (4 tests)<br/></pre>
		  </div><br/><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>Comprehensions Examples</title>
        <link>http://marakana.com/forums/python/python/117.html</link>
        <author>Ismail Ceylan</author>
        <guid isPermaLink="true">http://marakana.com/forums/python/python/117.html</guid>
        <pubDate>Mon, 10 May 2010 12:17:03 -0700</pubDate>
        <category>Python - Python</category>
        <content:encoded><![CDATA[The Range() function can be used to create simple lists, however we usually need more complicated lists than what this function provides. The use of the Range() function is demonsrated below with some straightforward examples before we go on with List Comprehensions (some of the code is taken from the Marakana Python Training):<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">&gt;&gt;&gt; help(range)<br/>Help on built-in function range in module __builtin__:<br/><br/>range(...)<br/>    range([start,] stop[, step]) -&gt; list of integers<br/>    <br/>    Return a list containing an arithmetic progression of integers.<br/>    range(i, j) returns [i, i+1, i+2, ..., j-1]; start (!) defaults to 0.<br/>    When step is given, it specifies the increment (or decrement).<br/>    For example, range(4) returns [0, 1, 2, 3].  The end point is omitted!<br/>    These are exactly the valid indices for a list of 4 elements.<br/><br/>&gt;&gt;&gt; range(10)<br/>[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]<br/>&gt;&gt;&gt; range(3,10)<br/>[3, 4, 5, 6, 7, 8, 9]<br/>&gt;&gt;&gt; range(3,10,2)<br/>[3, 5, 7, 9]<br/>&gt;&gt;&gt; range(10,2,-1)<br/>[10, 9, 8, 7, 6, 5, 4, 3]<br/>&gt;&gt;&gt; range(10,2,-3)<br/>[10, 7, 4]<br/></pre>
		  </div><br/><br/>The syntax of the List Comprehensions is as follows:<br/><br/><code class="inline">[a_function_of_x for x in a_sequence]</code><br/><br/>The simplest case is when the function is a constant function of x which can be useful to create lists with equal elements:<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">&gt;&gt;&gt; [0 for x in range(10)]<br/>[0, 0, 0, 0, 0, 0, 0, 0, 0, 0]<br/>&gt;&gt;&gt; [() for x in range(10)]<br/>[(), (), (), (), (), (), (), (), (), ()]</pre>
		  </div><br/><br/>We get more interesting results when the function is actually depends on the value of x. This can be a mathematical function as demonstrated below:<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">&gt;&gt;&gt; [x**2 for x in range(8)]<br/>[0, 1, 4, 9, 16, 25, 36, 49]<br/>&gt;&gt;&gt; [(x,x**2,x**3) for x in range(8)]<br/>[(0, 0, 0), (1, 1, 1), (2, 4, 8), (3, 9, 27), (4, 16, 64), (5, 25, 125), (6, 36, 216), (7, 49, 343)]<br/>[math.sin(x) for x in range(0,4*math.pi,math.pi/2)]<br/>[0.0, 0.8414709848078965, 0.90929742682568171, 0.14112000805986721, -0.7568024953079282, -0.95892427466313845, -0.27941549819892586, 0.65698659871878906, 0.98935824662338179, 0.41211848524175659, -0.54402111088936977, -0.99999020655070348]<br/></pre>
		  </div><br/><br/>However, a function can be simply anything that produces a single output of any type. In the example below this list comprehension is used to create a list of playing cards in a deck:<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">"""lab08_2.py Use list comprehensions to make a deck of cards."""<br/><br/>def GetCards():<br/>    """Return a deck of cards as a list of strings."""<br/><br/>    values = [str(x) for x in range(2, 11)] + ['Jack','Queen','King','Ace']<br/>    suits = ('Clubs', 'Diamonds', 'Hearts', 'Spades') <br/>    deck = [v + ' of ' +  s for s in suits for v in values] + ["Joker"] * 2<br/>    return deck<br/><br/>def main():<br/>    deck = GetCards()<br/>    print "The deck contains:"<br/>    for i, card in enumerate(deck):<br/>        if card is deck[-1]:<br/>            print 'and %s.' % card,<br/>        else:<br/>            print '%s, ' % card,<br/>        if i % 4 == 3:<br/>            print<br/><br/>if __name__ == '__main__':<br/>    main()<br/>"""<br/>$ lab08_2.py<br/>The deck contains:<br/>2 of Clubs,  3 of Clubs,  4 of Clubs,  5 of Clubs, <br/>6 of Clubs,  7 of Clubs,  8 of Clubs,  9 of Clubs, <br/>10 of Clubs,  Jack of Clubs,  Queen of Clubs,  King of Clubs, <br/>Ace of Clubs,  2 of Diamonds,  3 of Diamonds,  4 of Diamonds, <br/>5 of Diamonds,  6 of Diamonds,  7 of Diamonds,  8 of Diamonds, <br/>9 of Diamonds,  10 of Diamonds,  Jack of Diamonds,  Queen of Diamonds, <br/>King of Diamonds,  Ace of Diamonds,  2 of Hearts,  3 of Hearts, <br/>4 of Hearts,  5 of Hearts,  6 of Hearts,  7 of Hearts, <br/>8 of Hearts,  9 of Hearts,  10 of Hearts,  Jack of Hearts, <br/>Queen of Hearts,  King of Hearts,  Ace of Hearts,  2 of Spades, <br/>3 of Spades,  4 of Spades,  5 of Spades,  6 of Spades, <br/>7 of Spades,  8 of Spades,  9 of Spades,  10 of Spades, <br/>Jack of Spades,  Queen of Spades,  King of Spades,  Ace of Spades, <br/>Joker,  and Joker.<br/>$ <br/>"""<br/></pre>
		  </div><br/><br/>The line "[v + ' of ' +  s for s in suits for v in values]" creates the strings that represents the playing cards one a at time and stores it within a list. Note that it is possible to use multiple sequences when necessary.  ]]></content:encoded>
      </item>
    <item>
        <title>Examples about using the __name__ variable</title>
        <link>http://marakana.com/forums/python/python/116.html</link>
        <author>Ismail Ceylan</author>
        <guid isPermaLink="true">http://marakana.com/forums/python/python/116.html</guid>
        <pubDate>Mon, 10 May 2010 11:57:10 -0700</pubDate>
        <category>Python - Python</category>
        <content:encoded><![CDATA[Every Python module includes a set of magic variables which can be seen by using the dir() function after importing the module. One of these magic variables, "__name__", stores either the name of that module or the string value "__main__". If the module is being run by itself than we have __name__ = '__main__'. However, whenever the module is imported from another location than the magic variable __name__ stores the name of that module. This can be confirmed by running the print command on the variable:<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">&gt;&gt;&gt;print __name__<br/>__main__</pre>
		  </div><br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">&gt;&gt;&gt;import math<br/>&gt;&gt;&gt;print math.__name__<br/>math</pre>
		  </div><br/><br/>This property is very useful while writing and testing modules that could potentially be imported. The following piece of code is taken from the Marakana Python Training. It demonstrates how this magic variable can be used to test a module you wrote in a way that is not seen from outside of the code:<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">#!/usr/bin/env python<br/>"""Unwraps and prints out a 2-D sequence.<br/>Note that the testing only happens when this module<br/>is the "__main__" module.<br/>"""<br/>def PrintTable(table):<br/>    """Prints out a 2-D sequence"""<br/>    for row in table:<br/>        for column in row:<br/>            print column,<br/>        print<br/>    print<br/><br/>def Test():<br/>    tests = (["Hi", "Hola"], <br/>             (('H','i'), ('H','o','l','a')), <br/>             [["Hi"], ["Hola"]]<br/>             )<br/>    for test in tests:<br/>        print test<br/>        PrintTable(test)<br/><br/>if __name__ == '__main__':<br/>    Test()<br/>"""<br/>$ tables.py<br/>['Hi', 'Hola']<br/>H i<br/>H o l a<br/><br/>(('H', 'i'), ('H', 'o', 'l', 'a'))<br/>H i<br/>H o l a<br/><br/>[['Hi'], ['Hola']]<br/>Hi<br/>Hola<br/><br/>$ """<br/><br/></pre>
		  </div><br/><br/>The line "if __name__ == '__main__':" checks if we are running this module by itself or importing it. The condition within the if statement evaluates to 'True' if we run the module by itself and the test code given in the function Test() is run. This is demontrated below by running this code in the interpreter:<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">['Hi', 'Hola']<br/>H i<br/>H o l a<br/><br/>(('H', 'i'), ('H', 'o', 'l', 'a'))<br/>H i<br/>H o l a<br/><br/>[['Hi'], ['Hola']]<br/>Hi<br/>Hola</pre>
		  </div><br/><br/>However, when the module is imported, the condition evaluates to 'False' and the module is imported without any of the test code being run:<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">&gt;&gt;&gt;import tables<br/>&gt;&gt;&gt;</pre>
		  </div><br/><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>Instructor Expertviews</title>
        <link>http://marakana.com/forums/marakana/experience/112.html</link>
        <author>Aleksandar Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/marakana/experience/112.html</guid>
        <pubDate>Wed, 05 May 2010 11:32:11 -0700</pubDate>
        <category>Marakana - Experience</category>
        <content:encoded><![CDATA[We often ask our instructors to introduce themselves to our community. We typically ask them the following questions:
<ul><li>Can you tell me a bit about yourself and what you do?</li><li>Why are you passionate about the field that you are in?</li><li>What makes you excited about sharing what you know with others?</li><li>What's your approach to teaching?</li><li>What do people say about you after attending one of your classes?</li><li>What else is interesting about you?</li></ul><br/>We typically record these expertviews and post them as videos on our website.<br/>]]></content:encoded>
      </item>
    <item>
        <title>Building the Android kernel</title>
        <link>http://marakana.com/forums/android/examples/111.html</link>
        <author>Velibor Cakarevic</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/111.html</guid>
        <pubDate>Wed, 05 May 2010 08:32:33 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[<strong>Downloading Android kernel code</strong><br/><br/>If you download Android 2.1 platform you will not get the <em>source code</em> of the kernel. This is due to that there is quite a huge amount of code needed to be downloaded, it takes time to build the kernel and not many application developers are interested in the kernel code. Below is a description of how to download the Android source code and compile it for ARM, using Linux as your OS. <em>Note that porting to hardware is not in the scope of this description.</em><br/><br/>First go to your home directory and  create a directory where you wish to work in, e.g. myAndroid and step into that directory. <em>Note that '$' is not part of a command but illustrates in this document the commands.</em><br/>$ cd ~ <br/>$ mkdir myAndroid<br/>$ cd myAndroid<br/><br/>To clone the common Android kernel and get the kernel code  use the command:<br/><br/>$ git clone <a href="git://android.git.kernel.org/kernel/common.git" rel="nofollow">git://android.git.kernel.org/kernel/common.git</a> android-kernel<br/><br/>The command creates a new folder called 'android-kernel' (you can choose another name if you wish) in your 'myAndroid' folder and downloads the kernel code.<br/><br/>Go to that folder:<br/><br/>$ cd android-kernel<br/><br/><br/><strong>Building the Android kernel code</strong><br/><br/>Android relies on Linux version 2.6. When building the kernel you will do these commands:<br/>$ make menuconfig<br/>$ make<br/><br/>The command 'make menuconfig' configures the kernel. This process involves specifying what functionality to put into the kernel. Additionally, decisions have to be made (when possible) whether kernel code should be statically or dynamically linked. Statically linking means that all modules are built and linked into the kernel. Optimized static kernels execute much faster, since there are no shared object lookups and their binary size is smaller.<br/><br/>With dynamic loading you can choose to manually load the modulus to the kernel by using insmod or modprobe tool/command. Loadable kernel modules allow changing code during runtime. Loadable modules are pieces of kernel code which are not linked (included) directly in the kernel. One compiles them separately, and can insert and remove them into the running kernel at almost any time. If you want a module to be dynamically loaded give it the option &lt;M&gt; during 'make config' procedure.<br/><br/>If you want to make an own module you should enable the  module support after doing 'make menuconfig'<br/><br/>Loadable module support ---&gt;
  [*] Enable loadable module support<br/><br/>When building for another processor architecture than the one that your host processor uses you must use a crosscompiler and set the architecture parameter. This will show you how to compile the code for an ARM processor architecture. Before doing 'make menuconfig' set the architecture parameter:<br/><br/>$ export ARCH=arm <br/><br/>Now start the configuration of the kernel:<br/><br/>$ make menuconfig<br/><br/><img src="http://marakana.com/static/tutorials/make_menuconfig.jpg" alt=""/><br/><strong>Picture 1</strong> shows the menu when configuring the kernel. <br/><br/>After having modified the configuration you will at the exit be prompted by a question, whether you wish to save the changes. Choose Yes if you want to do so. You can check the generated .config file by: <br/><br/>$ nano .config<br/><br/>To set the crosscompiler use do the command:<br/><br/>$ export CROSS_COMPILE=arm-unknown-linux-gnueabi- <br/><br/>Note! I am using a compiler that you may not have. If you have downloaded the whole Android 2.1 platform (perhaps you have it in another folder) you could use <br/>~/<em>your_android_platform_folder</em>/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi- <br/><br/>In that case the command to set the cross-compiler as the one delivered and precompiled in the Android platform is:<br/><br/>$ export CROSS_COMPILE=~/<em>your_android_platform_folder</em>/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi- <br/><br/>Make starts the build process and builds the kernel according to the configuration file. To start the build process do:<br/><br/>$ make<br/><br/>The image is generated in the folder: arch/arm/boot/zImage<br/> <br/>If you wish to search for the zImage use the find command:<br/>$ find -name 'zImage'<br/><br/><br/><strong>Some tips</strong><br/><br/>When configuring the kernel in the menu (see figure 1) there may be some flags that you cannot remove. However you can still modify the '.config'-file directly if you wish to. You should on the other hand be sure of what you are doing. When building again, i.e. <em>make</em> you will be prompted by a question if you wish to keep that flag. Press '<em>n</em>' to exclude the module. If this question does not appear it is most likely that the module has not been removed.<br/><br/>When working with building of the kernel, the best approach is to remove modules that are not necessary in your kernel, and when adding new modules add them step by step. This will give you a fair chance to fix errors such as build failures, but also track down crashes when running on target.<br/><br/>When you have build errors and keep removing flags (i.e. modules) it is good to remove the object files and make a new build. Removing the objectfiles and rebuilding the kernel is done accordingly:<br/>$ make clean<br/>$ make]]></content:encoded>
      </item>
    <item>
        <title>contextual hibernate sessions</title>
        <link>http://marakana.com/forums/hibernate/general/110.html</link>
        <author>Pia Srivastava</author>
        <guid isPermaLink="true">http://marakana.com/forums/hibernate/general/110.html</guid>
        <pubDate>Tue, 04 May 2010 19:44:41 -0700</pubDate>
        <category>Hibernate - General</category>
        <content:encoded><![CDATA[Can you explain, in a few sentences, what that means? And whether we used contextual sessions in our class examples?<br/><br/>Thank you,<br/>Pia]]></content:encoded>
      </item>
    <item>
        <title>What is Different in HTML5?</title>
        <link>http://marakana.com/forums/html5/general/109.html</link>
        <author>Serete Itebete</author>
        <guid isPermaLink="true">http://marakana.com/forums/html5/general/109.html</guid>
        <pubDate>Mon, 03 May 2010 11:27:01 -0700</pubDate>
        <category>HTML5 - General</category>
        <content:encoded><![CDATA[One of the many features in HTML5 is separation of presentation from the code (tag). HTML5 is meant to simplify the tags and heavy relies on Cascading Style Sheets (CSS) especially CSS3 to handle the presentation of the html page. <br/><br/>Consider this basic html page;<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;<br/>&lt;html&gt;<br/>  &lt;head&gt;<br/>    &lt;title&gt;Hello World, this is HTML4.01 Driven!&lt;/title&gt;<br/>    &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;<br/>  &lt;/head&gt;<br/>  &lt;body&gt;<br/>      &lt;h1&gt;Header&lt;/h1&gt;<br/>      &lt;div id ="content"&gt;<br/>          &lt;table width="50%" cellspacing="10"&gt;<br/>              &lt;tr&gt;<br/>                  &lt;th rowspan="20" width="15%"&gt;<br/>                         Navigation&lt;p&gt;<br/>                        &lt;a href=""&gt;Android&lt;/a&gt;<br/>                        &lt;a href=""&gt;Java Web etc&lt;/a&gt;<br/>                        &lt;a href=""&gt;HTML5&lt;/a&gt;<br/>		        &lt;a href="signup.html"&gt;Signup&lt;/a&gt;<br/>                  &lt;/th&gt;<br/>                  &lt;th&gt;&lt;/th&gt;<br/>                  &lt;th rowspan="20" width="20%"&gt;<br/>                      Right column information is put right here in the hope <br/>                      that it will be displayed and information will get<br/>                      as much attention as necessary<br/>                  &lt;/th&gt;<br/>              &lt;/tr&gt;<br/>              &lt;tr&gt;<br/>                  &lt;td&gt;&lt;h2&gt;Android&lt;/h2&gt;&lt;/td&gt;<br/>              &lt;/tr&gt;<br/>              &lt;tr&gt;<br/>                  &lt;td&gt;Mobile development has be changed with Android game plan Everyone watch out the Droids are coming&lt;/td&gt;<br/>              &lt;/tr&gt;<br/>              &lt;tr&gt;<br/>                  &lt;td&gt;&lt;h3&gt;Java Web with Spring and Hibernate&lt;/h3&gt;&lt;/td&gt;<br/>              &lt;/tr&gt;<br/>              &lt;tr&gt;<br/>                  &lt;td&gt;Java Web with Spring and Hibernate is close to MVC development that can be made&lt;/td&gt;<br/>              &lt;/td&gt;<br/>              &lt;tr&gt;<br/>                  &lt;td&gt;&lt;h3&gt;HTML5&lt;/h3&gt;&lt;/td&gt;<br/>              &lt;/tr&gt;<br/>              &lt;tr&gt;<br/>                  &lt;td&gt;The web is changing at break neck speed. watch out you tags&lt;/td&gt;<br/>              &lt;/tr&gt;<br/>              &lt;tr&gt;<br/>                  &lt;td&gt;&lt;h3&gt;Article Footer&lt;/h3&gt;&lt;/td&gt;<br/>              &lt;/tr&gt;<br/>          &lt;/table&gt;<br/>          &lt;h3&gt;Footer&lt;/h3&gt;<br/>      &lt;/div&gt;<br/>  &lt;/body&gt;<br/>&lt;/html&gt;<br/></pre>
		  </div><br/><br/><br/><br/>HTML5 version of the above page;<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>&lt;!DOCTYPE html&gt;<br/>&lt;html&gt;<br/>	&lt;head&gt;<br/>		&lt;title&gt;Hello World, this is HTML5 Driven&lt;/title&gt;<br/>		&lt;meta charset="utf-8"/&gt;<br/>		&lt;link rel="stylesheet" href="myCSSfile.css"&gt;<br/>	&lt;/head&gt;<br/>	&lt;body&gt;<br/>		&lt;header&gt;<br/>		&lt;h1&gt; Sofware Technology&lt;/h1&gt;<br/>		&lt;h2&gt; Java Web with Spring and Hibernate&lt;/h2&gt;<br/>		&lt;h3&gt; HTML5&lt;/h3&gt;<br/>		&lt;/header&gt;<br/>		<br/>    &lt;div id="container"&gt;<br/><br/>        &lt;nav&gt;<br/>          &lt;h3&gt;Software Technology&lt;/h3&gt;<br/>          &lt;a href=""&gt;Android&lt;/a&gt;<br/>          &lt;a href=""&gt;Java Web etc&lt;/a&gt;<br/>          &lt;a href=""&gt;HTML5&lt;/a&gt;<br/>		  &lt;a href="signup.html"&gt;Signup&lt;/a&gt;<br/>        &lt;/nav&gt;	<br/>		<br/>		&lt;section&gt;<br/>		&lt;article&gt;<br/>			&lt;header&gt;<br/>				Android<br/>			&lt;/header&gt;<br/>			&lt;p&gt;	Mobile development has be changed with Android game plan &lt;/p&gt;<br/>			&lt;p&gt; Everyone watch out the Droids are coming &lt;/p&gt;<br/>		&lt;/article&gt;<br/>		&lt;article&gt;<br/>			&lt;header&gt;<br/>				Java Web with Spring and Hibernate<br/>			&lt;/header&gt;<br/>			&lt;p&gt; Java Web with Spring and Hibernate is close to MVC development that can be made &lt;/p&gt;<br/>			<br/>		&lt;/article&gt;<br/>		&lt;article&gt;<br/>			&lt;header&gt;<br/>				HTML5<br/>			&lt;/header&gt;<br/>			&lt;p&gt;<br/>				The web is changing at break neck speed. watch out you tags<br/>			&lt;/p&gt;<br/>		&lt;/article&gt;<br/>		&lt;/section&gt;<br/>		&lt;aside&gt;<br/>			&lt;h3&gt;Sofware insights&lt;/h3&gt;<br/>			&lt;p&gt;The software that we are looking into is something close to the cutting edge technologies as possible&lt;/p&gt;<br/>		&lt;/aside&gt;<br/>		&lt;footer&gt;<br/>			&lt;h2&gt;Marakana.com&lt;/h2&gt;<br/>		&lt;/footer&gt;<br/>		&lt;/div&gt;		<br/>	&lt;/body&gt;<br/>&lt;/html&gt;<br/></pre>
		  </div><br/><br/>Note the HTML5 version has simplified previouse tags that were constant in every html page that were mainly browser necessary ie:<br/><br/>Open tags <br/><code class="inline">&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;</code><br/>changes to this simple HTML5 tag;<br/><code class="inline">&lt;!DOCTYPE html&gt;</code><br/><br/>and meta tag <br/><code class="inline">&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;</code><br/>changes to this simplified HTML5 tag<br/><code class="inline">&lt;meta charset=UTF-8" /&gt;</code><br/><br/>HTML5 simplifies the structure of the regular page make the life of web designers &amp; developers easier. The beauty is not just in the structure of HTML5 pages but is the use of css to handle present the HTML page <br/><br/>HTML introduces lots of new tags that serve various individual functions. In this basic example the new Tags used include;<br/><br/><strong>&lt;header&gt; ..Header &lt;/header&gt;</strong> - to give the article or the page a header.<br/><strong>&lt;footer&gt;..Footer&lt;/footer&gt;</strong> - to give article or page a footer<br/><strong>&lt;nav&gt; &lt;a href="link"&gt;link&lt;/a&gt;&lt;/nav&gt;</strong> - to contain the navigation links with the page.<br/><strong>&lt;section&gt;... &lt;/section&gt;</strong> - to separate a section of the page.<br/><strong>&lt;aside&gt;...&lt;/aside&gt;</strong> - a separate piece of information that can be placed on the page.<br/><br/><br/>Also note that most browsers latest versions only have support for HTML5 with the exception of internet explorer (upcoming Internet Explorer 9 is expected to support HTML5) but with the use of HTML5shiv project code to enable current IE browsers recognize HTML5 tags, this is inserted in the &lt;head&gt; tag of the html page<br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">&lt;head&gt;<br/>...<br/>&lt;!--[if lt IE 9]&gt;<br/>      &lt;script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"&gt;&lt;/script&gt;<br/>&lt;![endif]--&gt;<br/>&lt;/head&gt;<br/></pre>
		  </div><br/> <br/>The associated css file is shown here;<br/><strong>myCSSfile.css</strong><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>/* <br/>/* myCSSfile.css: Published with permission from the <br/>/* author: Peter Lubbers, Kaazing HTML5 Training <br/>*/<br/><br/>body {<br/>	background-color:#CCCCCC;<br/>	font-family:Geneva,Arial,Helvetica,sans-serif;<br/>	margin: 0px auto;<br/>	max-width:900px;<br/>	border:solid;<br/>	border-color:#FFFFFF;<br/>}<br/><br/>header {<br/>	background-color: #F47D31;<br/>	display:block;<br/>	color:#FFFFFF;<br/>	text-align:center;<br/>}<br/><br/>header h2 {<br/>	margin: 0px;<br/>}<br/><br/>h1 {<br/>	font-size: 72px;<br/>	margin: 0px;<br/>}<br/><br/>h2 {<br/>	font-size: 24px;<br/>	margin: 0px;<br/>	text-align:center;<br/>	color: #F47D31;<br/>}<br/><br/>h3 {<br/>	font-size: 18px;<br/>	margin: 0px;<br/>	text-align:center;<br/>	color: #F47D31;<br/>}<br/><br/>h4 {<br/>	color: #F47D31;<br/>	background-color: #fff;<br/>	-webkit-box-shadow: 2px 2px 20px #888;<br/>	-webkit-transform: rotate(-45deg);<br/>	-moz-box-shadow: 2px 2px 20px #888;<br/>	-moz-transform: rotate(-45deg);<br/>	position: absolute;<br/>	padding: 0px 150px;<br/>	top: 50px;<br/>	left: -120px;<br/>	text-align:center;<br/>	<br/>}<br/><br/>nav {<br/>	display:block;<br/>	width:25%;<br/>	float:left;<br/>}<br/><br/>nav a:link, nav a:visited {<br/>	display: block;<br/>	border-bottom: 3px solid #fff;<br/>	padding: 10px;<br/>	text-decoration: none;<br/>	font-weight: bold;<br/>	margin: 5px;<br/>}<br/><br/>nav a:hover {<br/>	color: white;<br/>	background-color: #F47D31;<br/>}<br/><br/>nav h3 {<br/>	margin: 15px;<br/>	color: white;<br/>}<br/><br/>#container {<br/>	background-color: #888;<br/>}<br/><br/>section {<br/>	display:block;<br/>	width:50%;<br/>	float:left;<br/>}<br/><br/>article {<br/>	background-color: #eee;<br/>	display:block;<br/>	margin: 10px;<br/>	padding: 10px;<br/>	-webkit-border-radius: 10px;<br/>	-moz-border-radius: 10px;<br/>	border-radius: 10px;<br/>}<br/><br/>article header {<br/>	-webkit-border-radius: 10px;<br/>	-moz-border-radius: 10px;<br/>	border-radius: 10px;<br/>	padding: 5px;<br/><br/>}<br/><br/>article footer {<br/>	-webkit-border-radius: 10px;<br/>	-moz-border-radius: 10px;<br/>	border-radius: 10px;<br/>	padding: 5px;<br/>}<br/><br/>article h1 {<br/>	font-size: 18px;<br/>}<br/><br/>	<br/>aside {<br/>	display:block;<br/>	width:25%;<br/>	float:left;<br/>}<br/><br/>aside h3 {<br/>	margin: 15px;<br/>	color: white;<br/>}<br/><br/>aside p {<br/>	margin: 15px;<br/>	color: white;<br/>	font-weight: bold;<br/>	font-style: italic;<br/>}<br/>	<br/><br/>footer {<br/>	clear: both;	<br/>	display: block;<br/>	background-color: #F47D31;<br/>	color:#FFFFFF;<br/>	text-align:center;<br/>	padding: 15px;<br/>}<br/><br/>footer h2 {<br/>	font-size: 14px;<br/>	color: white;<br/>}<br/><br/><br/>/* links */<br/>a {<br/>	color: #F47D31;<br/>}<br/><br/>a:hover {<br/>	text-decoration: underline;<br/>}</pre>
		  </div><br/><br/><br/><strong>Screenshot of HTML5 index page</strong><br/><br/><br/><strong>Source code of HTML5 page</strong><br/><br/><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>MyTwitter - Updated</title>
        <link>http://marakana.com/forums/android/examples/108.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/108.html</guid>
        <pubDate>Mon, 03 May 2010 10:50:38 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[This is the updated version of MyTwitter example code. I've also created the new chart that explains the whole project. <br/><br/><img src="http://marakana.com/static/tutorials/MyTwitter-3.png" alt=""/><br/><br/>Source code (Eclipse project)<br/><a href="http://marakana.com/static/tutorials/MyTwitter-3.zip" rel="nofollow">http://marakana.com/static/tutorials/MyTwitter-3.zip</a><br/><br/>APK file<br/><a href="http://marakana.com/static/tutorials/MyTwitter-3.apk" rel="nofollow">http://marakana.com/static/tutorials/MyTwitter-3.apk</a><br/><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>mapping hashmap to a database table</title>
        <link>http://marakana.com/forums/hibernate/general/107.html</link>
        <author>Pia Srivastava</author>
        <guid isPermaLink="true">http://marakana.com/forums/hibernate/general/107.html</guid>
        <pubDate>Thu, 29 Apr 2010 17:29:02 -0700</pubDate>
        <category>Hibernate - General</category>
        <content:encoded><![CDATA[I have a ShoppingCart class which contains a HashMap of ShoppingCartItem.<br/><br/>My Questions:<br/> 1.How the heck do I annotate that using hibernate?<br/> 2.How should my shopping_cart table look?<br/><br/>Thanks,<br/>Pia]]></content:encoded>
      </item>
    <item>
        <title>Retrospectives</title>
        <link>http://marakana.com/forums/agile/agile/105.html</link>
        <author>Aleksandar Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/agile/agile/105.html</guid>
        <pubDate>Sun, 25 Apr 2010 12:26:50 -0700</pubDate>
        <category>Agile - Agile</category>
        <content:encoded><![CDATA[<a href="http://www.sfagile.org/" rel="nofollow">San Francisco Agile User Group</a> hosted <a href="http://www.sfagile.org/calendar/12622343/" rel="nofollow">an event on March 23rd</a> with Chris Sims and Steve Bockman who talked about <em>Retrospectives</em>. ... (video and photos after the break)]]></content:encoded>
      </item>
    <item>
        <title>JDBC not bound in this context</title>
        <link>http://marakana.com/forums/spring/general/104.html</link>
        <author>Roberto Edrosa</author>
        <guid isPermaLink="true">http://marakana.com/forums/spring/general/104.html</guid>
        <pubDate>Fri, 16 Apr 2010 10:21:27 -0700</pubDate>
        <category>Spring - General</category>
        <content:encoded><![CDATA[Hello Sasa,<br/><br/>Am getting JDBC not bound in this context when trying to run the sforums-spring-hibernate project. Could you please help me get this web app running?<br/><br/>Thanks,<br/>Bobby<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>C:\Users\HyperCare&gt;catalina.bat run<br/>Using CATALINA_BASE:   "F:\apache-tomcat-6.0.26"<br/>Using CATALINA_HOME:   "F:\apache-tomcat-6.0.26"<br/>Using CATALINA_TMPDIR: "F:\apache-tomcat-6.0.26\temp"<br/>Using JRE_HOME:        "C:\Program Files\Java\jdk1.6.0_18"<br/>Using CLASSPATH:       "F:\apache-tomcat-6.0.26\bin\bootstrap.jar"<br/>Apr 16, 2010 10:13:13 AM org.apache.catalina.core.AprLifecycleListener init<br/>INFO: Loaded APR based Apache Tomcat Native library 1.1.20.<br/>Apr 16, 2010 10:13:13 AM org.apache.catalina.core.AprLifecycleListener init<br/>INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].<br/>Apr 16, 2010 10:13:15 AM org.apache.coyote.http11.Http11AprProtocol init<br/>INFO: Initializing Coyote HTTP/1.1 on http-8080<br/>Apr 16, 2010 10:13:15 AM org.apache.coyote.ajp.AjpAprProtocol init<br/>INFO: Initializing Coyote AJP/1.3 on ajp-8009<br/>Apr 16, 2010 10:13:15 AM org.apache.catalina.startup.Catalina load<br/>INFO: Initialization processed in 1992 ms<br/>Apr 16, 2010 10:13:15 AM org.apache.catalina.core.StandardService start<br/>INFO: Starting service Catalina<br/>Apr 16, 2010 10:13:15 AM org.apache.catalina.core.StandardEngine start<br/>INFO: Starting Servlet Engine: Apache Tomcat/6.0.26<br/>Apr 16, 2010 10:13:15 AM org.apache.catalina.startup.HostConfig deployDescriptor<br/>INFO: Deploying configuration descriptor host-manager.xml<br/>Apr 16, 2010 10:13:15 AM org.apache.catalina.startup.HostConfig deployDescriptor<br/>INFO: Deploying configuration descriptor manager.xml<br/>Apr 16, 2010 10:13:15 AM org.apache.catalina.startup.HostConfig deployDescriptor<br/>INFO: Deploying configuration descriptor sforums-spring-hibernate.xml<br/>2010-04-16 10:13:16,732 [main] INFO  org.springframework.web.context.ContextLoader - Root WebApplicationContext: initial<br/>ization started<br/>2010-04-16 10:13:16,825 [main] INFO  org.springframework.web.context.support.XmlWebApplicationContext - Refreshing org.s<br/>pringframework.web.context.support.XmlWebApplicationContext@1428ea: display name [Root WebApplicationContext]; startup d<br/>ate [Fri Apr 16 10:13:16 PDT 2010]; root of context hierarchy<br/>2010-04-16 10:13:17,044 [main] INFO  org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean de<br/>finitions from ServletContext resource [/WEB-INF/applicationContext.xml]<br/>2010-04-16 10:13:17,605 [main] INFO  org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean de<br/>finitions from ServletContext resource [/WEB-INF/spring-validators.xml]<br/>2010-04-16 10:13:17,668 [main] INFO  org.springframework.web.context.support.XmlWebApplicationContext - Bean factory for<br/> application context [org.springframework.web.context.support.XmlWebApplicationContext@1428ea]: org.springframework.bean<br/>s.factory.support.DefaultListableBeanFactory@1049d3<br/>2010-04-16 10:13:18,183 [main] INFO  org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instanti<br/>ating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1049d3: defining beans [org.spr<br/>ingframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.annotation.internalCo<br/>mmonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.<br/>context.annotation.internalRequiredAnnotationProcessor,messageSource,dataSource,sessionFactory,txManager,org.springframe<br/>work.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource<br/>#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalT<br/>ransactionAdvisor,daoRepository,userValidator,changeablePasswordUserValidator]; root of factory hierarchy<br/>2010-04-16 10:13:18,198 [main] INFO  org.springframework.beans.factory.support.DefaultListableBeanFactory - Destroying s<br/>ingletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1049d3: defining beans [org.springfram<br/>ework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.annotation.internalCommonAnn<br/>otationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context<br/>.annotation.internalRequiredAnnotationProcessor,messageSource,dataSource,sessionFactory,txManager,org.springframework.ao<br/>p.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.<br/>springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransact<br/>ionAdvisor,daoRepository,userValidator,changeablePasswordUserValidator]; root of factory hierarchy<br/>2010-04-16 10:13:18,276 [main] ERROR org.springframework.web.context.ContextLoader - Context initialization failed<br/>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource': Invocation of init<br/>method failed; nested exception is javax.naming.NameNotFoundException: Name jdbc is not bound in this Context<br/>        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireC<br/>apableBeanFactory.java:1337)<br/>        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCap<br/>ableBeanFactory.java:473)<br/>        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBea<br/>nFactory.java:409)<br/>        at java.security.AccessController.doPrivileged(Native Method)<br/>        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapab<br/>leBeanFactory.java:380)<br/>        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)<br/>        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegis<br/>try.java:221)<br/>        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)<br/>        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)<br/>        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)<br/>        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListable<br/>BeanFactory.java:423)<br/>        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplic<br/>ationContext.java:729)<br/>        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)<br/>        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)<br/>        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)<br/>        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)<br/>        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)<br/>        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)<br/>        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)<br/>        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)<br/>        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)<br/>        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)<br/>        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)<br/>        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)<br/>        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)<br/>        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)<br/>        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)<br/>        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)<br/>        at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)<br/>        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)<br/>        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)<br/>        at org.apache.catalina.core.StandardService.start(StandardService.java:519)<br/>        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)<br/>        at org.apache.catalina.startup.Catalina.start(Catalina.java:581)<br/>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br/>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br/>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br/>        at java.lang.reflect.Method.invoke(Method.java:597)<br/>        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)<br/>        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)<br/>Caused by: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context<br/>        at org.apache.naming.NamingContext.lookup(NamingContext.java:770)<br/>        at org.apache.naming.NamingContext.lookup(NamingContext.java:153)<br/>        at org.apache.naming.factory.ResourceLinkFactory.getObjectInstance(ResourceLinkFactory.java:97)<br/>        at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)<br/>        at org.apache.naming.NamingContext.lookup(NamingContext.java:793)<br/>        at org.apache.naming.NamingContext.lookup(NamingContext.java:140)<br/>        at org.apache.naming.NamingContext.lookup(NamingContext.java:781)<br/>        at org.apache.naming.NamingContext.lookup(NamingContext.java:140)<br/>        at org.apache.naming.NamingContext.lookup(NamingContext.java:781)<br/>        at org.apache.naming.NamingContext.lookup(NamingContext.java:140)<br/>        at org.apache.naming.NamingContext.lookup(NamingContext.java:781)<br/>        at org.apache.naming.NamingContext.lookup(NamingContext.java:153)<br/>        at org.apache.naming.SelectorContext.lookup(SelectorContext.java:152)<br/>        at javax.naming.InitialContext.lookup(InitialContext.java:392)<br/>        at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:155)<br/>        at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:88)<br/>        at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:153)<br/>        at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178)<br/>        at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95)<br/>        at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)<br/>        at org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:200)<br/>        at org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:186)<br/>        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowi<br/>reCapableBeanFactory.java:1368)<br/>        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireC<br/>apableBeanFactory.java:1334)<br/>        ... 39 more<br/>Apr 16, 2010 10:13:18 AM org.apache.catalina.core.StandardContext start<br/>SEVERE: Error listenerStart<br/>Apr 16, 2010 10:13:18 AM org.apache.catalina.core.StandardContext start<br/>SEVERE: Context [/sforums-spring-hibernate] startup failed due to previous errors<br/>Apr 16, 2010 10:13:18 AM org.apache.catalina.startup.HostConfig deployDirectory<br/>INFO: Deploying web application directory docs<br/>Apr 16, 2010 10:13:18 AM org.apache.catalina.startup.HostConfig deployDirectory<br/>INFO: Deploying web application directory examples<br/>Apr 16, 2010 10:13:19 AM org.apache.catalina.startup.HostConfig deployDirectory<br/>INFO: Deploying web application directory ROOT<br/>Apr 16, 2010 10:13:19 AM org.apache.coyote.http11.Http11AprProtocol start<br/>INFO: Starting Coyote HTTP/1.1 on http-8080<br/>Apr 16, 2010 10:13:19 AM org.apache.coyote.ajp.AjpAprProtocol start<br/>INFO: Starting Coyote AJP/1.3 on ajp-8009<br/>Apr 16, 2010 10:13:19 AM org.apache.catalina.startup.Catalina start<br/>INFO: Server startup in 4214 ms<br/></pre>
		  </div>]]></content:encoded>
      </item>
    <item>
        <title>MySecure - Exploring App Security</title>
        <link>http://marakana.com/forums/android/examples/101.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/101.html</guid>
        <pubDate>Mon, 12 Apr 2010 21:20:52 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[This application demonstrates some of the features and limitations of an Android app. It shows you how to backup your data, explore the file system of your device, activate a heartbeat service to report on location, and even how to wipe out data via a secret SMS message. The real goal is to illustrate how to create a security application. This is by no means a commercial product, but an educational example of various Android features. ...]]></content:encoded>
      </item>
    <item>
        <title>Classroom Setup Guidelines</title>
        <link>http://marakana.com/forums/marakana/experience/100.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/marakana/experience/100.html</guid>
        <pubDate>Sat, 10 Apr 2010 22:22:35 -0700</pubDate>
        <category>Marakana - Experience</category>
        <content:encoded><![CDATA[Properly and completely set up training room ensures a smooth-running class and a great hands-on learning environment for the students. We want the very best for our students and we want to make your classroom setup as smooth as possible.<br/><br/>If you have any questions whatsoever, please do not hesitate to contact us.<br/><br/>Each student and the instructor should have a workstation that fulfills the following requirements.<br/><br/><strong>Hardware</strong>
<ul><li> Required: Windows, Linux or OS X based machine</li><li> Required: 1 GB+ RAM recommended (512 MB minimum)</li><li> Required: Approximately 400MB free hard disk space to do all installs</li><li> Recommended: Internet Access</li><li> Recommended: The machines are networked together via TCP/IP. </li></ul><br/><br/><strong>Software</strong><br/>Typically our instructor brings the required software and shares it with students via a web server over the local network.<br/><br/><strong>Visuals</strong>
<ul><li> Required: Self-contained/direct-display projector for instructor or similar presentation equipment</li><li> Required: Whiteboard, chalkboard, or similar presentation equipment for instructor.</li><li> Recommended: Easel stand with large paper, for making posters and other activities.</li></ul><br/>]]></content:encoded>
      </item>
    <item>
        <title>Training Day Schedule</title>
        <link>http://marakana.com/forums/marakana/experience/99.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/marakana/experience/99.html</guid>
        <pubDate>Sat, 10 Apr 2010 22:19:33 -0700</pubDate>
        <category>Marakana - Experience</category>
        <content:encoded><![CDATA[This is our typical training day schedule:<br/><br/><img src="http://marakana.com/static/delivery/TrainingDaySchedule-color.png" alt=""/><br/>]]></content:encoded>
      </item>
    <item>
        <title>Compass</title>
        <link>http://marakana.com/forums/android/examples/98.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/98.html</guid>
        <pubDate>Sat, 10 Apr 2010 21:36:14 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[This is a little example on how to write a simple compass application in Android. It illustrates two points:<br/>
<ul><li> How to use Sensors</li><li> How to create custom Views (widgets)</li></ul> ...]]></content:encoded>
      </item>
    <item>
        <title>Online Training Best Practices</title>
        <link>http://marakana.com/forums/marakana/experience/97.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/marakana/experience/97.html</guid>
        <pubDate>Sat, 10 Apr 2010 10:51:04 -0700</pubDate>
        <category>Marakana - Experience</category>
        <content:encoded><![CDATA[Online training is quite a different experience then face-to-face. For one, participants can easily wonder off, or get stuck with topics and feel they can't catch up.<br/><br/>We've done a lot of online training, and here are some things that we see work well:<br/><br/>
<ul><li> Limit the class to couple of hours, ideally up to three to roughly correspond to half days of regular training.</li><li> Have a short break often, possibly at top of each hour. Limit it to 5-10 minutes max.</li><li> We use <a href="http://www.gotomeeting.com/" rel="nofollow">GoToMeeting.com</a>. It has zillion features just like WebEx and other tools do. BUT, try to limit its use to: screen sharing for you and chat window for users.</li><li> Mute the users so there's no noise on the line. Have them ask questions at any point <strong>publicly</strong> via chat window. The reason for this is that a question one person has is a questions others likely also have.</li><li> Make sure you are in a quiet room.</li><li> VoIP is a single most common point of failure. Use telephone on your end. Suggest the same to users. Get a good phone so they can hear you. VoIP over the computer is just NOT reliable, will make your computer run slower, and if you drop off the line (e.g. your computer dies) you can't tell users that you are just rebooting.</li><li> Learn certain features of GoToMeeting. Screen share and chat are essential to understand, but file sharing with users is another good one. You may write some code that you'd want to send to them.</li><li> Use a tool such as <a href="http://www.omnigroup.com/products/omnidazzle/" rel="nofollow">OmniDazzle</a> to visually communicate main points.</li><li> Use relative time instead of absolute time (e.g. top of the hour versus 10AM). People are in different time zones than you are.<br/></li></ul><br/><br/>Hope this hels.<br/>Marko<br/>]]></content:encoded>
      </item>
    <item>
        <title>Using NDK for Performance - Dalvik Versus Native</title>
        <link>http://marakana.com/forums/android/examples/96.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/96.html</guid>
        <pubDate>Thu, 08 Apr 2010 21:35:00 -0700</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[<em>Updated for non-recursive algorithm, by popular demand</em><br/><br/>NDK is very useful for developing parts of your Android application in native code. The main motivation is performance.<br/><br/>In this example, I wrote a simple SDK+NDK application that uses the same Fibonacci algorithm implemented both in C and Java. The results in performance are astonishing. ...]]></content:encoded>
      </item>
    <item>
        <title>Strings versus Symbols</title>
        <link>http://marakana.com/forums/ruby/examples/87.html</link>
        <author>Zachary Kaplan</author>
        <guid isPermaLink="true">http://marakana.com/forums/ruby/examples/87.html</guid>
        <pubDate>Wed, 24 Mar 2010 17:31:43 -0700</pubDate>
        <category>Ruby - Examples</category>
        <content:encoded><![CDATA[Perhaps your one of the many who find themselves having difficulty understanding Ruby's Symbols and the difference between a Symbol and a String?<br/><br/>Well look no further! After reading this post, you should have a clearer understanding of the differences between a String and Symbol, as well as the ability to determine when to use which.<br/><br/>So let's fire up our IRB's and learn the fundamentals of Symbols.<br/><br/>First, Symbols may contain letters, numbers, underscores and whitespace. Let's look at some of the ways we can initialize Symbols.<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">ruby 1.9 &gt; cb = :chunky_bacon<br/> =&gt; :chunky_bacon<br/><br/>ruby 1.9 &gt; cb = :"  chunky bacon 23  "<br/>=&gt; :"  chunky bacon 23  "</pre>
		  </div><br/><br/>A common pattern of using Symbols in Ruby is for the key of a hash. In the next example, I'll create two hashes exactly the same. TIP: I will be using parallel assignment to assign both variables with one "equals" sign.. however you could have just as well assigned these variables on separate lines. Whatever floats your boat!<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>ruby 1.9 &gt; hash1, hash2 = {:cb =&gt; 'chunky bacon'}, {:cb =&gt; 'chunky bacon'}<br/>=&gt; [{:cb=&gt;"chunky bacon"}, {:cb=&gt;"chunky bacon"}] </pre>
		  </div><br/><br/>In essence, these two hashes are exactly the same.<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>ruby 1.9 &gt; hash1 == hash2<br/>=&gt; true</pre>
		  </div><br/><br/>Let's try the String equivalent. Instead of using Symbols for our hash's keys, we'll use Strings.<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">ruby 1.9 &gt; hash3, hash4 = { 'cb' =&gt; 'chunky bacon' }, { 'cb' =&gt; 'chunky bacon' } <br/> =&gt; [{"cb"=&gt;"chunky bacon"}, {"cb"=&gt;"chunky bacon"}]</pre>
		  </div><br/><br/>Now we'll run the same equivalence test we ran on our Symbols just to see if we get the  same results.<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">ruby 1.9 &gt; hash3 == hash4<br/>=&gt; true</pre>
		  </div><br/><br/>Okay. So it worked. Just like their Symbol equivalents. So now you may be thinking - huh?<br/><br/>I think this is mostly where the confusion lies; we've seen both Symbols and Strings used in the same exact way with the same exact results. So what's the difference, and why would you use one over the other?<br/><br/>Well as it turns out, Symbols actually are different than Strings, regardless of whatever similarities they share!<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>ruby 1.9 &gt; hash2 == hash3<br/>=&gt; false<br/></pre>
		  </div><br/><br/>In the next example, we'll discover the benefit of using a Symbol vs String.<br/><br/>Ruby assigns every object an Object ID. Sort of like a row in a virtual database table with this really wacky and long number as the row's primary key. So when accessing an Object (which everything in Ruby happens to be), Ruby will look for that given Object's ID. Which brings us to our point, the main difference between Strings and Symbols is that a Symbol is immutable; it cannot change. This is advantageous in that when Ruby tries to remember which Symbol Object was the key of your hashes, it must only look for one Object ID because the :cb keys in hash3 and hash4 are actually the same Symbol Object. Ruby only keeps one Object for a given Symbol in it's fantasy virtual database table. This also means Ruby has less things to remember. Don't believe me? Look for yourself!<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">ruby 1.9 &gt; hash1.each_key { |key| puts key.object_id }<br/>396040<br/> =&gt; {:cb=&gt;"chunky bacon"} <br/><br/>ruby 1.9 &gt; hash2.each_key { |key| puts key.object_id }<br/>396040<br/> =&gt; {:cb=&gt;"chunky bacon"} </pre>
		  </div><br/><br/>Yes I know it's mind blowing. So Strings on the other hand, aren't so interested in making Ruby's life easier for finding them, thus each String Object is assigned it's own Object ID, even though both of your keys were created the same. Check out our String equivalents..<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">hash3.each_key { |key| puts key.object_id }<br/>2157104740<br/> =&gt; {"cb"=&gt;"chunky bacon"} <br/><br/>hash4.each_key { |key| puts key.object_id }<br/>2157090908<br/> =&gt; {"cb"=&gt;"chunky bacon"} </pre>
		  </div><br/><br/>Lastly, because Symbols are immutable and cannot be changed, they do not have any methods to perform concatenation, difference, or append. Which brings us to our last examples:<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>ruby 1.9 &gt; symbol = :chunky_bacon<br/>=&gt; :chunky_bacon<br/><br/>ruby 1.9 &gt; symbol + :another_chunk_of_bacon<br/>NoMethodError: undefined method `+' for :chunky_bacon:Symbol<br/><br/>ruby 1.9 &gt; symbol &lt;&lt; :another_chunk_of_bacon<br/>NoMethodError: undefined method `&lt;&lt;' for :chunky_bacon:Symbol</pre>
		  </div><br/><br/>And of course, we know that Strings can be added together, appended, concatenated and so on.<br/><br/><div class="code">
		    <span>Code:</span><br/>
		    <pre style="height:expression(this.scrollHeight > 350 ? '350px' : 'auto');"><br/>ruby 1.9 &gt; string = "chunky bacon"<br/>=&gt; "chunky bacon"<br/><br/>ruby 1.9 &gt; string + " another chunk of bacon"<br/>=&gt; "chunky bacon another chunk of bacon"<br/><br/>ruby 1.9 &gt; string &lt;&lt; " another chunk of bacon"<br/>=&gt; "chunky bacon another chunk of bacon"<br/></pre>
		  </div><br/><br/>So - what does all this mean?<br/><br/>It means you now have a clearer understanding of Ruby Symbols. And now that you're armed with the knowledge of a common use pattern when Ruby programmers use Symbols versus Strings - you're ready to make logical decisions when you'll need one or the other.<br/><br/>You've learned how to initialize a new Symbol in more ways than one.<br/><br/>You've learned that Symbols are immutable. They cannot change.<br/><br/>You've learned that because Symbols are immutable, they are fast and efficient for Ruby to find.<br/><br/>Hope you enjoyed reading this!]]></content:encoded>
      </item>
    <item>
        <title>Rails Resources</title>
        <link>http://marakana.com/forums/ruby/ruby_on_rails/76.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/ruby/ruby_on_rails/76.html</guid>
        <pubDate>Thu, 11 Feb 2010 17:09:25 -0800</pubDate>
        <category>Ruby - Ruby on Rails</category>
        <content:encoded><![CDATA[<br/><strong>Rails tutorials, books, and other learning resources</strong><br/><br/><a href="http://railscasts.com/" rel="nofollow">Railscasts</a><br/><em>Ruby on Rails screencasts</em><br/><br/><a href="http://onlamp.com/pub/a/onlamp/2005/10/13/what_is_rails.html?page=1" rel="nofollow">What is Ruby on Rails</a><br/><em>A tutorial from ONLamp.com</em><br/><br/><a href="http://juixe.com/techknow/index.php/2006/08/12/top-13-ruby-on-rails-presentations/" rel="nofollow">Top 13 Ruby on Rails Presentations</a><br/><em>Good presentations on Rails.</em><br/>]]></content:encoded>
      </item>
    <item>
        <title>Ruby Resources</title>
        <link>http://marakana.com/forums/ruby/ruby_on_rails/75.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/ruby/ruby_on_rails/75.html</guid>
        <pubDate>Thu, 11 Feb 2010 16:20:20 -0800</pubDate>
        <category>Ruby - Ruby on Rails</category>
        <content:encoded><![CDATA[<strong>Ruby tutorials, books, and other learning resources</strong><br/><br/><a href="http://ruby-doc.org/docs/ProgrammingRuby/" rel="nofollow">Programming Ruby - The Pragmatic Programmer's Guide</a><br/><em>This book is a tutorial and reference for the Ruby programming language. Use Ruby, and you'll write better code, be more productive, and enjoy programming more. </em><br/><br/><a href="http://en.wikibooks.org/wiki/Ruby_Programming" rel="nofollow">Ruby Programming</a><br/><em>From Wikibooks, the open-content textbooks collection</em><br/><br/><a href="http://www.ruby-lang.org/en/about/" rel="nofollow">About Ruby</a><br/><em>Wondering why Ruby is so popular? This article/tutorial explains it.</em><br/><br/><a href="http://www.troubleshooters.com/codecorn/ruby/basictutorial.htm" rel="nofollow">Ruby Basic Tutorial</a><br/><em>This is a Ruby tutorial for one not knowing Ruby.</em><br/><br/><a href="http://www.infoq.com/minibooks/ruby" rel="nofollow">Mr. Neighborly's Humble Little Ruby Book</a><br/><em>It walks you through the very basics of working with Ruby, but by the end of it, you'll no doubt be sweatin' it to the oldies.   It covers the base syntax of the language, including working with values, flow control, and object oriented programming, into some of the library functionality of Ruby, such as databases, web services, and string manipulation.</em><br/><br/><a href="/static/tutorials/RubyCourse.pdf" rel="nofollow">Ruby Course</a><br/><em>An immersive course in Ruby. A set of PDF slides.</em><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>Development of an Android App - MyTwitter Part 4</title>
        <link>http://marakana.com/forums/android/examples/73.html</link>
        <author>Serete Itebete</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/73.html</guid>
        <pubDate>Thu, 04 Feb 2010 21:19:38 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Goal of part 4<br/><br/>Basic MyTwitter is complete and we turn to enhance the application.<br/><br/>1. Using BroadcastReceiver &amp; Notification services in the MyTwitter application<br/>2. Use LocationServices through LocationHelper ...]]></content:encoded>
      </item>
    <item>
        <title>Development of an Android App - MyTwitter Part 3</title>
        <link>http://marakana.com/forums/android/examples/72.html</link>
        <author>Serete Itebete</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/72.html</guid>
        <pubDate>Wed, 03 Feb 2010 22:46:04 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Goals of Part 3<br/><br/>1. Using Database Handler (DbHandler)<br/>2. Adding a Service (UpdaterService)<br/>3. Creating a Custom Adapter (TimelineAdapter)<br/>4. Presentation (timeline.xml &amp; row.xml)<br/>5. Timeline Activity (Timeline)<br/><br/>To further enhance the MyTwitter application beyond the simple twitter update functionality and preference menu. A few enhancements are necessary including;<br/><br/>It would be nice to view all the status updates of th people who you are following and can be viewed. The status updates could be stored in a database and together with a service can be used to fetch the twitter status information in the background. ...]]></content:encoded>
      </item>
    <item>
        <title>Handling absolute URI in Virtual Host</title>
        <link>http://marakana.com/forums/apache/general/70.html</link>
        <author>Anthony Hoepelman</author>
        <guid isPermaLink="true">http://marakana.com/forums/apache/general/70.html</guid>
        <pubDate>Wed, 03 Feb 2010 12:04:28 -0800</pubDate>
        <category>Apache - General</category>
        <content:encoded><![CDATA[I have a question that I can't seem to find in books or on the apache site. Or maybe I'm not looking in the right place.<br/> <br/> One of the applications I support runs in Tomcat port 8880 and at times it is down for maintenance. To avoid modifying the folders or files in the application I set up an apache virtual host and start apache during maintenance.<br/> <br/>The idea is to have one instance of apache have multiple virtual hosts for each tomcat port that might be down.<br/> <br/>The virtual host works but not if the server receives an absolute URL/URI. Unfortunately that's how the end user shortcut icon is set up.<br/> <br/>So, a call to http//:myserver:8880 works, but http//:myserver:8880/myapp gives me <br/><br/>Bad Gateway<br/>The proxy server received an invalid response from an upstream server.<br/><br/><br/>What can I add to my virtual host so that http//:myserver:8880/myapp takes me to DocumentRoot /aa/adm/tomcat/webapps/amisys-maint<br/><br/>Listen 8880<br/>&lt;VirtualHost IP:8880&gt;<br/>    DocumentRoot /aa/adm/tomcat/webapps/amisys-maint<br/>    ServerName myserver.avmed.com:8880<br/>&lt;/VirtualHost&gt;<br/><br/><br/>]]></content:encoded>
      </item>
    <item>
        <title>Development of an Android App - MyTwitter Part 2</title>
        <link>http://marakana.com/forums/android/examples/69.html</link>
        <author>Serete Itebete</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/69.html</guid>
        <pubDate>Tue, 02 Feb 2010 22:38:08 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Goal of the part 2;<br/><br/>1. Build a User Interface (UI) for our application<br/>2. Connect the UI to the application logic including menu system through preferences<br/>3. Jtwitter connection to the application to twitter (you must have an twitter account) ...]]></content:encoded>
      </item>
    <item>
        <title>Development of an Android App - MyTwitter Part 1</title>
        <link>http://marakana.com/forums/android/examples/67.html</link>
        <author>Serete Itebete</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/67.html</guid>
        <pubDate>Mon, 01 Feb 2010 23:14:39 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[This is a sample android app that works with a twitter account and allows the user to post twitter account updates. The app will also automatically connect to twitter.com every once in a while to check for new friend statuses, and notify us of us.<br/><br/>The goal of this application is to illustrate all the major pieces of Android application development by implementing them in an actual app.<br/><br/><strong>Project Overview</strong><br/>This is basically all the bits and pieces that we'll build as part of this project.<br/><img src="http://marakana.com/static/tutorials/MyTwitter.png" alt=""/><br/><br/>The application will encompass various android interfaces to make this happen. ...]]></content:encoded>
      </item>
    <item>
        <title>Using Intent Demo</title>
        <link>http://marakana.com/forums/android/examples/65.html</link>
        <author>Serete Itebete</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/65.html</guid>
        <pubDate>Tue, 26 Jan 2010 07:45:04 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[After writing a single activity, there comes a need to transition to another activity to perform another task either with or without information from the first activity.<br/><br/>Android platform allows transition by means of Intent Interface.<br/><br/>In this example there are two activities - IntentActionDemo.java and IntentA.java that both extend the super class Activity. Do not forget to declare any new activity in the AndroidManifest.xml with permission.<br/><br/>I have introduced buttons in both activities which have a listener to allow an intent to transition from one intent to the other activity and vis-versa. ...]]></content:encoded>
      </item>
    <item>
        <title>ContentProvider User Demo</title>
        <link>http://marakana.com/forums/android/examples/64.html</link>
        <author>Serete Itebete</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/64.html</guid>
        <pubDate>Tue, 19 Jan 2010 04:46:10 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Content Providers are the Android platforms way of sharing information betweeen multiple applications through its ContentResolver interface. Each application has access to the SQLite database to maintain their information and this cannot be shared with another application.<br/><br/>In this demo, we use the content provider information avaialable through the <code class="inline">getContentResolver()</code> method to get device information with the contentresolver instance and quierying the provided cursor. Apart from query, you can with the related methods, the ability to insert, update, delete and getType (to extract the MIME type).  <br/><br/>End result is the list of all the system setting on the user on the android device. ...]]></content:encoded>
      </item>
    <item>
        <title>Preferences Demo</title>
        <link>http://marakana.com/forums/android/examples/63.html</link>
        <author>Serete Itebete</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/63.html</guid>
        <pubDate>Thu, 14 Jan 2010 21:07:01 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Preferences in Android are used to keep track of application and user preferences. <br/><br/>In any application, there are default preferences that can accessed through the PreferenceManager instance and its related method <code class="inline">getDefaultSharedPreferences(Context)</code><br/><br/>With the SharedPreference instance one can retrieve the int value of the any preference with the <code class="inline">getInt(String key, int defVal)</code>. The preference we are interested in this case is <em>counter</em><br/><br/>In our case, we can modify the SharedPreference instance in our case using the <code class="inline">edit()</code> and use the <code class="inline">putInt(String key, int newVal)</code> We increased the count for our application that presist beyond the application and displayed accordingly. ...]]></content:encoded>
      </item>
    <item>
        <title>Using Telephony API</title>
        <link>http://marakana.com/forums/android/examples/62.html</link>
        <author>Serete Itebete</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/62.html</guid>
        <pubDate>Wed, 13 Jan 2010 13:51:25 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[The telephony API is used to among other things monitor phone information including the current states of the phone, connections, network etc.<br/><br/>In this example, we want to utilize the telephone manager part of the Application Framework and use phone listeners (PhoneStateListener) to retrieve various phone states.  <br/><br/>This is a simple tutorial utilizing the telephony API and its associated listener which can be good before implementing other application functions related to a phone state like connecting the Call. <br/><br/>This is a small example that can be used expanded with the various methods available, please see <a href="http://developer.android.com/reference/android/telephony/package-summary.html" rel="nofollow">http://developer.android.com/reference/android/telephony/package-summary.html</a> ...]]></content:encoded>
      </item>
    <item>
        <title>ServicesDemo - Using Android Services</title>
        <link>http://marakana.com/forums/android/examples/60.html</link>
        <author>Serete Itebete</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/60.html</guid>
        <pubDate>Tue, 05 Jan 2010 10:18:06 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[To create a application to run in the background of other current activities, one needs to create a Service. The Service can run indefinitely (unbounded) or can run at the lifespan of the calling activity(bounded).<br/><br/>Please note that a Service has a different lifecycle than activities therefore have different methods. But to begin a service in the application a call to <code class="inline">startService()</code> which envokes the service <code class="inline">onCreate()</code> method and <code class="inline">onStart()</code> beginning running the service. ...]]></content:encoded>
      </item>
    <item>
        <title>Audio Demo</title>
        <link>http://marakana.com/forums/android/examples/59.html</link>
        <author>Serete Itebete</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/59.html</guid>
        <pubDate>Sat, 02 Jan 2010 17:13:47 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[In this demo, we work with the audio media player API to play a raw media file and can also be used for streaming media.<br/><br/>Most importantly is the creation of the media player instance <code class="inline">MediaPlayer player = MediaPlayer.create(this.context, <em>media source</em>)</code>. Use of the various player instance methods like <code class="inline">player.play()</code> or <code class="inline">player.pause()</code> to do as they suggest to play and pause the media playback. <br/><br/>The AudioDemo is straight forward creating the layout and listening to the button click events and response accordingly. When the audiodemo starts note the change of the button change from "Play" to "Stop" and when the demo is paused a return of button text to "Play" Added a toast message to notify the user what is going on. ...]]></content:encoded>
      </item>
    <item>
        <title>WebViewDemo</title>
        <link>http://marakana.com/forums/android/examples/58.html</link>
        <author>Serete Itebete</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/58.html</guid>
        <pubDate>Mon, 28 Dec 2009 20:33:04 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[In this demo, we get to view a web address in a totally different way by sidestepping the default browser and creating our own custom webviewer.<br/><br/>The key to creating the custom webviewer is the <code class="inline">MyWebViewClient</code> class that extends the WebViewClient class. With its key method <code class="inline">shouldOverrideUrlLoading(view,url)</code> that gives control to application when a new url is loaded in the provided view. ...]]></content:encoded>
      </item>
    <item>
        <title>SQL Demo</title>
        <link>http://marakana.com/forums/android/examples/55.html</link>
        <author>Serete Itebete</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/55.html</guid>
        <pubDate>Wed, 23 Dec 2009 13:18:37 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[This example shows how to interact with Android SDK internal database SQLite to perform a simple action of inserting and querying data from a database table and database display content.<br/><br/>Our simple data format is: [row id] [time recorded] [Hello Android Event] ...]]></content:encoded>
      </item>
    <item>
        <title>Rules for Renegades by Christine Comaford-Lynch</title>
        <link>http://marakana.com/forums/marakana/announcements/51.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/marakana/announcements/51.html</guid>
        <pubDate>Sun, 13 Dec 2009 13:16:03 -0800</pubDate>
        <category>Marakana - Announcements</category>
        <content:encoded><![CDATA[This is a presentation that Christine Comaford-Lynch did at Entrepreneurs' Organization Gather-Around-The-Guru series on Rules for Renegades: how to make more money, rock your career, and revel in you individuality. Christine published the book with the same title.<br/><br/><object class="video" type="application/x-shockwave-flash" data="/3rdparty/mediaplayer/player-viral.swf?file=http://marakana.com/external/video/GATG-Christine.flv"><param name="movie" value="/3rdparty/mediaplayer/player-viral.swf?file=http://marakana.com/external/video/GATG-Christine.flv"/></object>]]></content:encoded>
      </item>
    <item>
        <title>Android Bluetooth API</title>
        <link>http://marakana.com/forums/android/examples/50.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/50.html</guid>
        <pubDate>Fri, 27 Nov 2009 15:25:00 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Android was release in version 1.0 without the Bluetooth support. The API was yanked out of the final release at the last minute. The reason was that the development team felt they didn't have the time to complete it properly and didn't want to commit to half-fast API.<br/><br/>Android 2.0 (SDK level 5) finally brings the official support for the Bluetooth. It is offered via <code class="inline">android.bluetooth</code> package.<br/><br/><strong>Note</strong> that the emulator still doesn't support Bluetooth emulation. And since my Dev2/G2 is still running Android 1.5, I do not have a way to test this code and evolve it.<br/><br/>The main access to Bluetooth is done via the <code class="inline">BluetoothAdapter</code>. The adapter, returned via <code class="inline">getDefaultAdapter()</code> static method, offers access to various devices. The <code class="inline">startDiscovery()</code> method on the adapter will start the discovery of other discoverable devices. It is a synchronous call that can take some time to complete. ...]]></content:encoded>
      </item>
    <item>
        <title>Using NDK to Call C code from Android Apps</title>
        <link>http://marakana.com/forums/android/examples/49.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/49.html</guid>
        <pubDate>Wed, 25 Nov 2009 15:45:56 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[<strong>Updated for NDK 1.6</strong><br/><br/>While Android SDK is great for application development, every once in a while you may need access to native code. This code is usually done in C. While you were able to access native code via Java Native Interface (JNI) all along, the process was rather hard. You would've typically had to compile everything on your host computer for the target architecture, requiring you to have the entire toolchain on your development machine.<br/><br/>Android NDK (Native Development Kit) simplifies working with native code. It includes the entire toolchain needed to build for your target platform (ARM). It is designed to help you create that shared library. ...]]></content:encoded>
      </item>
    <item>
        <title>Implementing Remote Interface Using AIDL</title>
        <link>http://marakana.com/forums/android/examples/48.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/48.html</guid>
        <pubDate>Wed, 25 Nov 2009 12:27:51 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Each application in Android runs in its own process. An application cannot directly access another application's memory space. This is called application sandboxing.<br/><br/>In order to allow cross-application communication, Android provides an implementation of interprocess communication (IPC) protocol. IPC protocols tend to get complicated because of all the marshaling/un marshaling of data that is necessary.<br/><br/>To help with this, Android provides Android Interface Definition Language, or AIDL. It is a lightweight implementation of IPC using a syntax that is very familiar to Java developers, and a tool that automates the stub creation.<br/><br/>In order to allow for one application to call into another, we typically have to:<br/><br/>1. Define the AIDL interface<br/>2. Implement the Stub for the remote service<br/>3. Expose the remote service to the local client ...]]></content:encoded>
      </item>
    <item>
        <title>JNI Example</title>
        <link>http://marakana.com/forums/java/examples/47.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/java/examples/47.html</guid>
        <pubDate>Wed, 25 Nov 2009 10:13:56 -0800</pubDate>
        <category>Java - Examples</category>
        <content:encoded><![CDATA[JNI is an interface that allows Java to interact with code written in another language. Motivation for JNI is code reusability and performance. WIth JNI, you can reuse existing/legacy code with Java (mostly C/C++). In terms of performance,  native code used to be up to 20 times faster than Java, when running in interpreted mode. Modern JIT compilers (HotSpot) make this a moot point.<br/><br/>JNI can also be used to invoke Java code from within natively-written applications - such as those written in C/C++.<br/>In fact, the <code class="inline">java</code> command-line utility is an example of one such application, that launches Java code in a Java Virtual Machine. ...]]></content:encoded>
      </item>
    <item>
        <title>Using Sensors API</title>
        <link>http://marakana.com/forums/android/examples/43.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/43.html</guid>
        <pubDate>Wed, 18 Nov 2009 15:51:18 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Sensor support in Android is fairly simple yet versatile. It is handled via the <code class="inline">SensorManager</code> which is provided from your app context via <code class="inline">getSystemService()</code>. Once you have the sensor manager, you have to register to get its notifications. To do this, we implement the SensorListener interface. <br/><br/>Notice that we register to get sensor updates in onResume() and unregister in onPause(). This is important. Sensors data come in erratic intervals and can consume a lot of CPU and battery power. To optimize our app for performance, it is the best practice to get the notifications just while your app is in running state. ...]]></content:encoded>
      </item>
    <item>
        <title>Using Location API</title>
        <link>http://marakana.com/forums/android/examples/42.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/42.html</guid>
        <pubDate>Wed, 18 Nov 2009 15:01:54 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Android supports location-based services, as you'd expect from any modern mobile OS. In Android, LocationManager is responsible for handling this.<br/><br/>To get the location manager, we ask the context to getSystemService() for location services. Next we ask the location manager for list of all available providers. ...]]></content:encoded>
      </item>
    <item>
        <title>Using Connectivity API</title>
        <link>http://marakana.com/forums/android/examples/41.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/41.html</guid>
        <pubDate>Wed, 18 Nov 2009 14:24:01 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Connectivity API is supported via ConnectivityManager. As always, you get this manager fro the system via getSystemService(). Once you have the manager, you can get info for various networks, namely WiFi and mobile. In this example, we simply print this info out to a TextView. ...]]></content:encoded>
      </item>
    <item>
        <title>Using WiFi API</title>
        <link>http://marakana.com/forums/android/examples/40.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/40.html</guid>
        <pubDate>Wed, 18 Nov 2009 12:19:54 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Android comes with a complete support for the WiFi connectivity. The main component is the system-provided WiFiManager. As usual, we obtain it via getSystemServices() call to the current context.<br/><br/>Once we have the WiFiManager, we can ask it for the current WIFi connection in form of WiFiInfo object. We can also ask for all the currently available networks via getConfiguredNetworks(). That gives us the list of WifiConfigurations.<br/><br/>In this example we are also registering a broadcast receiver to perform the scan for new networks. ...]]></content:encoded>
      </item>
    <item>
        <title>Using Camera API</title>
        <link>http://marakana.com/forums/android/examples/39.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/android/examples/39.html</guid>
        <pubDate>Wed, 18 Nov 2009 11:36:31 -0800</pubDate>
        <category>Android - Examples</category>
        <content:encoded><![CDATA[Android SDK supports the connectivity to the built-in camera. Using the camera to take photos is relatively easy. It is somewhat harder to setup the camera preview to work properly.<br/><br/>In our main activity, we create the Preview object. This object will create the Camera object and return it to the CameraDemo activity. ...]]></content:encoded>
      </item>
    <item>
        <title>SSL Vhost Problems: Please help</title>
        <link>http://marakana.com/forums/apache/general/15.html</link>
        <author>Mewbie Mewbie</author>
        <guid isPermaLink="true">http://marakana.com/forums/apache/general/15.html</guid>
        <pubDate>Fri, 26 Jun 2009 01:15:06 -0700</pubDate>
        <category>Apache - General</category>
        <content:encoded><![CDATA[I didn't want to mess up your post with newbie questions as it's a very informative post. Hope that is OK.<br/><br/>I feel I'm over thinking this, just confused and have been trying literally for weeks to get this to work. Here goes:<br/><em>I'm running remotely: Linux Debian / apache2-mpm-prefork 2.2.9-10+lenny2 <br/>Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0 Server at ********* Port 80</em><br/><br/>I have been trying to install AjaxTerm (www page can access your nix box via terminal window): <a href="http://antony.lesuisse.org/software/ajaxterm/" rel="nofollow">http://antony.lesuisse.org/software/ajaxterm/</a><br/>Once it's installed properly it can be accessed at: <br/>http://localhost:8022 (works for me using lynx)<br/>https://yoursite.com:8022 (doesn't work)<br/> <br/>I have followed a variety of tutorials:<br/>https://help.ubuntu.com/community/AjaxTerm<br/>and:<br/>https://svn.kirya.net/filedetails.php?repname=ajaxterm&amp;path=%2Ftrunk%2Fdebian%2FREADME.Debian&amp;rev=96&amp;sc=1<br/>and every post I can find out there....<br/><br/>It either makes entire site stop working (except tomcat on port 8080), or redirects entire site to a non working AjaxTerm page (except tomcat on port 8080).<br/><br/>The last URL (kirya) I get this error in apache2 logs:<br/>[Tue Jun 23 10:20:36 2009] [warn] Init: SSL server IP/port conflict: localhost:443 (/etc/apache2/sites-enabled/ajaxterm:4) vs. mysite.org:443 (/etc/apache2/sites-enabled/ssl:1)<br/>[Tue Jun 23 10:20:36 2009] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!!<br/>and then 100's of these errors:<br/>[Tue Jun 23 10:20:36 2009] [notice] child pid 27477 exit signal Segmentation fault (11)<br/><br/>So that error is what brought me here on google searching. From what I understand in the SSL Vhost Problems post in this forum:<br/>1 IP can host multiple domains. <br/>But what if, like me, it's 1 IP and 1 domain. On the post it says: <br/><br/>ServerName webmail.example.com<br/>....<br/>ServerName secure.example.com<br/><br/>Now are these domains you must own? Or you can put any name and it's just for the config to reference to?<br/>I don't 'own' any domain names, I just have a free domain name from DYNDNS that i use and it works fine.<br/><br/>Confusing as I never read about anyone needing to do this on all AjaxTerm post that I could find. It was all about adding those configs only.<br/><br/>(btw I have posted about my AjaxTerm problems at 4-5 forums.. all unanswered :( and from what I see it's not an AjaxTerm problem, but putting the proper configs in 000-default file or the SSL file or creating new site enabled file like on the kirya site tutorial)<br/><br/>These are <em>some</em> of the changes I have done for this:<br/>As per Ubuntu tutorial:<br/><strong>pico /etc/apache2/sites-enabled/ssl<br/>This section had this:</strong><br/>&lt;VirtualHost *:443&gt;<br/>ServerAdmin webmaster@localhost<br/><br/>DocumentRoot /var/www/<br/>SSLEngine On<br/>SSLCertificateFile /etc/apache2/ssl/apache.pem<br/><br/>&lt;Directory /&gt;<br/><br/><strong>Changed it to:</strong><br/>&lt;VirtualHost *:443&gt;<br/>ServerAdmin webmaster@localhost<br/><br/>DocumentRoot /var/www/<br/>SSLEngine On<br/>SSLCertificateFile /etc/apache2/ssl/apache.pem<br/>SetEnvIf Request_URI "^/u" dontlog<br/>ErrorLog /var/log/apache2/error.log<br/>Loglevel warn<br/><br/>ProxyRequests Off<br/>&lt;Proxy *&gt;<br/>AuthUserFile /srv/ajaxterm/.htpasswd<br/>AuthName EnterPassword<br/>AuthType Basic<br/>require valid-user<br/><br/>Order Deny,allow<br/>Allow from all<br/>&lt;/Proxy&gt;<br/>ProxyPass / <a href="http://localhost:8022/" rel="nofollow">http://localhost:8022/</a><br/>ProxyPassReverse / <a href="http://localhost:8022/" rel="nofollow">http://localhost:8022/</a><br/><br/>&lt;Directory /&gt; <br/>=============================================<br/><br/>As per kirya site:<br/><strong>pico /etc/apache2/sites-available/ajaxterm</strong>  &lt;makes new file<br/><strong>add these lines:</strong><br/>    Listen 443<br/>    NameVirtualHost *:443<br/><br/>    &lt;VirtualHost *:443&gt;<br/>       ServerName mysite.org<br/>       SSLEngine On<br/>       SSLCertificateKeyFile /etc/apache2/ssl/apache.pem<br/>       SSLCertificateFile /etc/apache2/ssl/apache.pem<br/><br/>       # Suppresses the Via header<br/>       ProxyVia Off<br/>       # Do not flood the log<br/>       #CustomLog /var/log/apache2/access.log combined env=!dontlog<br/>       #SetEnvIf Request_URI "^/ajaxterm/u" dontlog<br/><br/>       ProxyRequests Off<br/>       &lt;Proxy *&gt;<br/>               Order deny,allow<br/>               Allow from all<br/>       &lt;/Proxy&gt;<br/>       ProxyPass /ajaxterm/ <a href="http://localhost:8022/" rel="nofollow">http://localhost:8022/</a><br/>       ProxyPassReverse /ajaxterm/ <a href="http://localhost:8022/" rel="nofollow">http://localhost:8022/</a><br/>    &lt;/VirtualHost&gt;<br/><br/><br/>Then enable it by: <strong>a2ensite ajaxterm</strong><br/><br/><strong>Thank you very much for your time and help :D !</strong><br/><br/><br/>PS. I use a self signed certificate that I made doing (as per a post on ubuntu):<br/>mkdir /etc/apache2/ssl<br/>/usr/sbin/make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.pem <br/><br/>I made a typo in my sites name (though my https does work).<br/>When I try to repeat those steps to fix it I get permission denied. Is there a way to edit it or should I just delete 'apache.pem' then find another method to make this cert so I have options to add wild card names?<br/>(I have no idea where it put the .key &amp; .crt files I have read about, but like I say https does work)<br/><br/>I'm thinking to use this method for a new cert if you think this will work: <br/>http://blog.bodhizazen.net/linux/ssl-certificate-with-virtual-hosts/]]></content:encoded>
      </item>
    <item>
        <title>Twiddle syntax vs listMemoryPools()?</title>
        <link>http://marakana.com/forums/jboss/application_server/14.html</link>
        <author>Keath Lewin</author>
        <guid isPermaLink="true">http://marakana.com/forums/jboss/application_server/14.html</guid>
        <pubDate>Wed, 25 Feb 2009 18:17:46 -0800</pubDate>
        <category>JBoss - Application Server</category>
        <content:encoded><![CDATA[I know I figured this out during class, but I can't translate my notes now that it's come time to use it in real life . . . any help would be appreciated!<br/><br/>I'm trying to poll the memory pools to figure out which pool is filling and emptying more often than desired.  I can obviously get this information manually via jmx-console, but I need to poll over time, so CLI is preferred.<br/><br/>I've tried several dozen varieties of this, the least-dumb-looking of which are below.  Google's been no help thus far, and this is probably not a challenging question for those more java-savvy than I, so I'm hoping there's an easy answer?<br/><br/><blockquote>twiddle -s localhost invoke "jboss.system:type=ServerInfo listMemoryPools(1)"<br/>twiddle -s localhost invoke "jboss.system:type=ServerInfo:listMemoryPools(1)"<br/>twiddle -s localhost invoke "jboss.system:type=ServerInfo,listMemoryPools(1)"<br/>twiddle -s localhost invoke "jboss.system:type=ServerInfo" listMemoryPools(1)<br/>etc, etc, etc . . .</blockquote><br/><br/>Where am I going wrong?]]></content:encoded>
      </item>
    <item>
        <title>Tomcat cluster with IIS6 Front end ...</title>
        <link>http://marakana.com/forums/tomcat/general/13.html</link>
        <author>Jamie Gibbon</author>
        <guid isPermaLink="true">http://marakana.com/forums/tomcat/general/13.html</guid>
        <pubDate>Thu, 05 Feb 2009 10:14:31 -0800</pubDate>
        <category>Tomcat - General</category>
        <content:encoded><![CDATA[Hi Guys,<br/><br/>Our client has requested a change in the deployment strategy for their Tomcat cluster. Instead of fronting it with Apache they want to use IIS6. <br/><br/>Can anyone provide me with some experienced feedback on this configuration? My brief amount of research seems to indicate that this can be done but it is not clear if Tomcat can still be clustered.<br/><br/>Thanks in advance for your responses.<br/><br/>Jamie]]></content:encoded>
      </item>
    <item>
        <title>SSL Vhost problems</title>
        <link>http://marakana.com/forums/apache/general/12.html</link>
        <author>Juan O&apos;Brien</author>
        <guid isPermaLink="true">http://marakana.com/forums/apache/general/12.html</guid>
        <pubDate>Fri, 03 Oct 2008 10:21:25 -0700</pubDate>
        <category>Apache - General</category>
        <content:encoded><![CDATA[I have apache 2.2 ssl installed on Windows 2k3 Server and am having issues.<br/><br/>1. Issue is being able to have a vhost talk on 443 i am getting this error:  Invalid method in request \x16\x03\x01<br/><br/>2. I am unable to created a CSR when i run commands to create csr i get back an error telling me it cant find path its looking for a linux path and i have apache running on windows.<br/><br/>error: C:\Apache2.2\bin&gt;openssl req -config openssl.cnf -new -out naqc.csr -keyout naqc<br/>.pem<br/>error on line -1 of openssl.cnf<br/>5960:error:02001002:system library:fopen:No such file or directory:.\crypto\bio\<br/>bss_file.c:122:fopen('openssl.cnf','rb')<br/>5960:error:2006D080:BIO routines:BIO_new_file:no such file:.\crypto\bio\bss_file<br/>.c:125:<br/>5960:error:0E078072:configuration file routines:DEF_LOAD:no such file:.\crypto\c<br/>onf\conf_def.c:197:<br/><br/>Any help will be appreciated.  I can send me my configs as well.  Thanks in advance.<br/>]]></content:encoded>
      </item>
    <item>
        <title>Ports needed between IIS and Tomcat using JK redirector2.dll</title>
        <link>http://marakana.com/forums/tomcat/general/9.html</link>
        <author>Gary Allgood</author>
        <guid isPermaLink="true">http://marakana.com/forums/tomcat/general/9.html</guid>
        <pubDate>Mon, 24 Sep 2007 09:09:00 -0700</pubDate>
        <category>Tomcat - General</category>
        <content:encoded><![CDATA[Hi, I have been very busy since training last month with Tomcat and<br/>the training helped greatly. I am having one issue that I hope you<br/>can help me shed some light on. I have searched high and low and<br/>don't seem to be able to find anything to fully explain the<br/>redirector2.dll for IIS, my question to you is does the redirector<br/>using port 8009 require more than that port open in the firewall<br/>between IIS and Tomcat?<br/><br/>With my IIS Server in the DMZ and the isapi filter setup as<br/>documented would I need ports 8009 and 443 opened to reach the Tomcat<br/>server in the business network? In other words does 8009 create a<br/>tunnel over say port 443? If so I would need both ports open on the<br/>firewall and that would make sense. But my understanding of the<br/>redirector is it takes the traffic destined for 443 and tunnels it<br/>via port 8009?<br/><br/>I seem to be stuck at this point never seeing the 8009 port hit the<br/>firewall unless I specifically call in via the URL.<br/><br/>Your help is most appreciated,<br/><br/>Gary<br/>]]></content:encoded>
      </item>
    </channel>
</rss>