Scheming with the Coco and Android

This Example responds to double <enter-key>s. In addition to the three Android classes used in the previous Example, it uses a MotionEvent. EmptyEnter.java import android.app.Activity; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.os.Bundle; import android.support.v4.content.LocalBroadcastManager; import android.text.Editable; import android.text.TextWatcher; import android.util.Log; import android.view.inputmethod.EditorInfo; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.View; import android.widget.EditText; public class […]

Read more...

§670 · April 24, 2013 · Android · (No comments) ·


A dependable way to respond to the <enter-key> in an EditText is with a TextWatcher, a LocalBroadcastManager, and a BroadcastReceiver. I think you need to add the v4 support library to use the LocalBroadcastManager. I use the tutorial at vogella.com: 7.3 “Local broadcast events with LocalBroadcastManager” because of its complete concise code Example. In onTextChanged […]

Read more...

§634 · April 21, 2013 · Android · (No comments) ·


I took some time out to update the downloads in Android Questions, using the things I had learned while developing abicus, and I posted an excerpt from a comment on my blog’s EditText Enter Key post on stackoverflow.

Read more...

§591 · April 11, 2013 · Android · (No comments) ·


My son added a subversion repository to my site. I had added number functions, string functions, power, compares, stop, and end. I got run, goto, then, and else working and plunged on into on i goto a,b,c without committing run, goto, then, and else. The working version crashed. I couldn’t get it to compile no […]

Read more...

§562 · April 5, 2013 · abicus, Android, CoCo · (No comments) ·


My Android coco app now does arithmetic. Parens, add, sub, unary minus, times, divide, or, and, not. Now on to the string functions.

Read more...

§227 · January 24, 2013 · Android, CoCo · (No comments) ·


My simple line oriented editor with a full screen display now inserts and deletes lines and moves up and down in the file. Now to work on my interpreter. So far it does END STOP and PRINT. Next up GOTO. Already an empty enter switches back and forth between editing and direct mode.

Read more...

§224 · January 12, 2013 · Android, CoCo · (No comments) ·


I completely rewrote translate. No more SQLite and no more String manipulations other than FileStream and substring. My benchmarks are completely out of this world. Now off to the user editor.

Read more...

§221 · December 26, 2012 · Android, CoCo · (No comments) ·


I took some time out to answer a couple of questions on Stack Overflow. I have used it extensively to find out information about the Android. This is the first time I have contributed. I got a couple of plus votes for one of my answers. I was so excited. I now have a reputation […]

Read more...

§217 · November 8, 2012 · Android, PC's · (No comments) ·


I’m having a lot of fun working on my Coco simulator for the Android. Now that the translate phase is done, I am moving on to the editing phase.

Read more...

§212 · October 23, 2012 · Android, CoCo · (No comments) ·


Coco for the Android now translates symbols, keywords, number variables, string variables, number literals, string literals, and arrays. Now that everyone is up to date, back to work.

Read more...

§207 · October 17, 2012 · Android, CoCo · (No comments) ·