Decode quotes game

A quote is coded. You click on a letter in the quote, then your guess in an alphabet. It gradually gets decoded (hopefully!). When finished, you learn who wrote it.

Stringsapp/res/values/strings.xml
Screen formatapp/res/layout/activity_main.xml
Code for appapp/java/com.(the project name)/MainActivity
Code for alphabet gridviewapp/java/com.(the project name)/ImageAlphabet
Code for quote gridviewapp/java/com.(the project name)/ImageQuote



app/manifests/AndroidManifest.xml - to force orientation

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.edkins.mosaic" > <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme" > <activity android:name=".MainActivity" android:screenOrientation="landscape"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest>


app/res/drawable - pictures

There are 3 x 58 image files, one for each letter and capital, plus some punctuation. The three versions are black (j), blue (b) and red (r). So a black K is "jk.gif" and a capital red K is "caprk.gif". There is also a space "space.gif" and a grey full stop "coded.gif".




app/res/mipmap/ic_launcher.png/ - icon for launching app




app/res/values/strings.xml - strings

<resources> <string name="app_name">Decode quotes</string> <string name="howTo">Tap on letter in code, then letter in alphabet</string> <string name="quoteError">Tap on coded letter (red)</string> <string name="alphabetError">Tap on letter (not dot)</string> <string name="finish">"Finished! Quote souce: "</string> <string name="finish2">". Errors: "</string> <string name="newQuote">Next</string> <string name="clearSelection">Reset</string> <string name="virgil">Virgil</string> <string name="virgil1">A snake lurks in the grass.</string> <string name="virgil2">We cannot all of us do everything.</string> <string name="virgil3">God delights in an odd number.</string> <string name="virgil4">Let us singing as we go. The road will be less tedious.</string> <string name="virgil5">Love conquers all, and we must yield to Love.</string> <string name="virgil6">A wet summer and a fine winter should be the farmer\'s prayer.</string> <string name="virgil7">Practice and thought might gradually forge many an art.</string> <string name="virgil8">Time flies, never to be recalled.</string> <string name="virgil9">Vice thrives and lives by concealment.</string> <string name="virgil10">I fear the Greeks even when they bring gifts.</string> <string name="virgil11">They can because they think they can.</string> <string name="virgil12">Fortune favours the brave.</string> <string name="virgil13">Believe an expert.</string> <string name="marcus">Marcus Aurelius Antoninus</string> <string name="marcus1">How much time he saves who does not look to see what his neighbour says or does or thinks.</string> <string name="marcus2">If you are distressed by anything external, the pain is not due to the thing itself, but to your estimate of it, and this you have the power to revoke at any moment.</string> <string name="marcus3">It is not death that a man should fear, but he should fear never beginning to live.</string> <string name="marcus4">It is the act of a madman to pursue impossibilities.</string> <string name="marcus5">Look well into thyself. There is a source of strength which will always spring up if you will always look there.</string> <string name="marcus6">Remember this. There is a proper dignity and proportion to be observed in the performance of every act of life.</string> <string name="marcus7">The happiness of your life depends upon the quality of your thoughts, therefore guard accordingly, and take care that you entertain no notions unsuitable to virtue, and reasonable nature.</string> <string name="marcus8">Waste no more time talking about great souls and how they should be. Become one yourself!</string> <string name="marcus9">By a tranquil mind I mean nothing else than a mind well ordered.</string> <string name="marcus10">Never esteem anything as of advantage to you that will make you break your word or lose your self-respect.</string> <string name="marcus11">Nothing happens to anybody which he is not fitted by nature to bear.</string> <string name="marcus12">The universe is change, our life is what our thoughts make it.</string> <string name="marcus13">Think not disdainfully of death, but look on it with favour, for even death is one of the things that Nature wills.</string> <string name="marcus14">Very little is needed to make a happy life.</string> <string name="marcus15">Whatever is in any way beautiful hath its source of beauty in itself, and is complete in itself, praise forms no part of it. So it is none the worse nor the better for being praised.</string> <string name="marcus16">You will find rest from vain fancies if you perform every act in life as though it were your last.</string> <string name="marcus17">Never let the future disturb you. You will meet it, if you have to, with the same weapons of reason which today arm you against the present.</string> <string name="confucius">Confucius</string> <string name="confucius1">Before you embark on a journey of revenge, dig two graves.</string> <string name="confucius2">Everything has its beauty but not everyone sees it.</string> <string name="confucius3">Forget injuries, never forget kindnesses.</string> <string name="confucius4">He who will not economize will have to agonize.</string> <string name="confucius5">I hear and I forget. I see and I remember. I do and I understand.</string> <string name="confucius6">Ignorance is the night of the mind, but a night without moon and star.</string> <string name="confucius7">It does not matter how slowly you go so long as you do not stop.</string> <string name="confucius8">Men\'s natures are alike, it is their habits that carry them far apart.</string> <string name="confucius9">Our greatest glory is not in never falling, but in getting up every time we do.</string> <string name="confucius10">Respect yourself and others will respect you.</string> <string name="confucius11">To see what is right, and not to do it, is want of courage or of principle.</string> <string name="confucius12">What the superior man seeks is in himself. What the small man seeks is in others.</string> <string name="confucius13">When anger rises, think of the consequences.</string> <string name="confucius14">When we see men of a contrary character, we should turn inwards and examine ourselves.</string> <string name="confucius15">Wheresoever you go, go with all your heart.</string> <string name="confucius16">He who speaks without modesty will find it difficult to make his words good.</string> <string name="confucius17">If a man takes no thought about what is distant, he will find sorrow near at hand.</string> <string name="confucius18">Is virtue a thing remote? I wish to be virtuous, and lo! Virtue is at hand.</string> <string name="confucius19">Learning without thought is labour lost. Thought without learning is perilous.</string> <string name="confucius20">Recompense injury with justice, and recompense kindness with kindness.</string> <string name="confucius21">The cautious seldom err.</string> <string name="confucius22">How much time he saves who does not look to see what his neighbour says or does or thinks.</string> <string name="anonymous">Anonymous</string> <string name="anonymous1">You can fool all of the people some of the time, and some of the people all of the time, but you can\'t fool all of the people all of the time.</string> <string name="anonymous2">A camel is a horse designed by committee.</string> <string name="anonymous3">Accept nothing, challenge everything.</string> <string name="anonymous4">Artificial intelligence is no match for natural stupidity.</string> <string name="anonymous5">A conscience is what hurts when all your other parts feel so good.</string> <string name="anonymous6">Begin with the end in mind.</string> <string name="anonymous7">Blessed are those who can laugh at themselves, for they shall never cease to be amused.</string> <string name="anonymous8">Build something that\'s foolproof and they invent a better fool.</string> <string name="anonymous9">Dancing is a perpendicular expression of a horizontal desire.</string> <string name="anonymous10">Five out of four people have problems with fractions.</string> <string name="anonymous11">Friends may come and go, but enemies accumulate.</string> <string name="anonymous12">History is not about who\'s right. It\'s about who\'s left.</string> <string name="anonymous13">Hope for the best, but prepare for the worst.</string> <string name="anonymous14">I always mean what I say but I don\'t always say what I mean.</string> <string name="anonymous15">If intelligence had anything to do with the voting process, then all the smart people would vote the same.</string> <string name="anonymous16">Never be afraid to try something new. Remember, amateurs built the ark, professionals built the Titanic.</string> <string name="anonymous17">Nobody\'s perfect. I\'m nobody. Therefore, I must be perfect.</string> <string name="anonymous18">Question it if it\'s free.</string> <string name="anonymous19">Reach for the stars, or you\'ll never touch the sky.</string> <string name="anonymous20">There are ten types of people in the world, those who understand binary and those who don\'t.</string> <string name="anonymous21">There are two types of people in the world, those who sort people into different categories, and those who don\'t.</string> <string name="anonymous22">Time flies like an arrow, fruit flies like a banana. But what are time flies and why do they like an arrow?</string> <string name="anonymous23">Without education, we are in horrible and deadly danger of taking educated people seriously.</string> <string name="horace">Horace</string> <string name="horace1">Mix a little foolishness with your prudence. It\'s good to be silly at the right moment.</string> <string name="horace2">The appearance of right often leads us wrong.</string> <string name="horace3">There is a measure in everything. There are fixed limits beyond which and short of which right cannot find a resting place.</string> <string name="horace4">He who has begun has half done. Dare to be wise. Begin!</string> <string name="horace5">He wins every hand who mingles profit with pleasure.</string> <string name="horace6">It is when I struggle to be brief that I become obscure.</string> <string name="horace7">Once a word has been allowed to escape, it cannot be recalled.</string> <string name="horace8">Cease to ask what the morrow will bring forth. And set down as gain each day that Fortune grants.</string> <string name="horace9">In adversity remember to keep an even mind.</string> <string name="horace10">Pale Death with impartial tread beats at the poor man\'s cottage door and at the palaces of kings.</string> <string name="horace11">Seize the day, put no trust in the morrow!</string> <string name="horace12">Life grants nothing to us mortals without hard work.</string> <string name="ovid">Ovid</string> <string name="ovid1">All things may corrupt when minds are prone to evil.</string> <string name="ovid2">By faithful study of the nobler arts, our nature\'s softened, and more gentle grows.</string> <string name="ovid3">Chance is always powerful. Let your hook be always cast. In the pool where you least expect it, there will be a fish.</string> <string name="ovid4">Take rest. A field that has rested gives a bountiful crop.</string> <string name="ovid5">So I can\'t live either without you or with you.</string> <string name="ovid6">Nothing is stronger than habit.</string> <string name="ovid7">To be loved, be lovable.</string> <string name="ovid8">We can learn even from our enemies.</string> <string name="plato">Plato</string> <string name="plato1">Be kind, for everyone you meet is fighting a hard battle.</string> <string name="plato2">Death is not the worst that can happen to men.</string> <string name="plato3">Desires are only the lack of something: and those who have the greatest desires are in a worse condition than those who have none, or very slight ones.</string> <string name="plato4">Never discourage anyone who continually makes progress, no matter how slow.</string> <string name="plato5">No human thing is of serious importance.</string> <string name="plato6">Only the dead have seen the end of war.</string> <string name="plato7">The price good men pay for indifference to public affairs is to be ruled by evil men.</string> <string name="plato8">Thinking is the talking of the soul with itself.</string> <string name="plato9">We can easily forgive a child who is afraid of the dark. The real tragedy of life is when men are afraid of the light.</string> <string name="plato10">Wise men talk because they have something to say, fools, because they have to say something.</string> <string name="plato11">You can discover more about a person in an hour of play than in a year of conversation.</string> <string name="plato12">The partisan, when he is engaged in a dispute, cares nothing about the rights of the question, but is anxious only to convince his hearers of his own assertions.</string> <string name="plato13">The greatest penalty of evildoing, namely, to grow into the likeness of bad men.</string> <string name="plato14">Mankind censure injustice fearing that they may be the victims of it, and not because they shrink from committing it.</string> <string name="plato15">The beginning is the most important part of the work.</string> <string name="plato16">The direction in which education starts a man will determine his future life.</string> <string name="plato17">Wealth is the parent of luxury and indolence, and poverty of meanness and viciousness, and both of discontent.</string> <string name="juvenal">Juvenal</string> <string name="juvenal1">Be gentle with the young.</string> <string name="juvenal2">Fortune can, for her pleasure, fools advance, and toss them on the wheels of Chance.</string> <string name="juvenal3">One path alone leads to a life of peace: The path of virtue.</string> <string name="juvenal4">Refrain from doing ill, for one all powerful reason, lest our children should copy our misdeeds. We are all too prone to imitate whatever is base and depraved.</string> <string name="juvenal5">It is not easy for men to rise whose qualities are thwarted by poverty.</string> <string name="juvenal6">The people that once bestowed commands, consulships, legions, and all else, now concerns itself no more, and longs eagerly for just two things, bread and circuses!</string> <string name="juvenal7">Who will guard the guards themselves?</string> <string name="juvenal8">You should pray for a sound mind in a sound body.</string> <string name="aristotle">Aristotle</string> <string name="aristotle1">Happiness depends upon ourselves.</string> <string name="aristotle2">How many a dispute could have been deflated into a single paragraph if the disputants had dared to define their terms.</string> <string name="aristotle3">Humour is the only test of gravity, and gravity of humour; for a subject which will not bear raillery is suspicious, and a jest which will not bear serious examination is false wit.</string> <string name="aristotle4">It is in justice that the ordering of society is centered.</string> <string name="aristotle5">It is the mark of an educated mind to be able to entertain a thought without accepting it.</string> <string name="aristotle6">Law is mind without reason.</string> <string name="aristotle7">Man perfected by society is the best of all animals; he is the most terrible of all when he lives without law, and without justice.</string> <string name="aristotle8">One swallow does not make a summer, neither does one fine day; similarly one day or brief time of happiness does not make a person entirely happy.</string> <string name="aristotle9">Pleasure in the job puts perfection in the work.</string> <string name="aristotle10">Poverty is the parent of revolution and crime.</string> <string name="aristotle11">The gods too are fond of a joke.</string> <string name="aristotle12">The moral virtues, then, are produced in us neither by nature nor against nature. Nature, indeed, prepares in us the ground for their reception, but their complete formation is the product of habit.</string> <string name="aristotle13">The only stable state is the one in which all men are equal before the law.</string> <string name="aristotle14">To give a satisfactory decision as to the truth it is necessary to be rather an arbitrator than a party to the dispute.</string> <string name="aristotle15">To perceive is to suffer.</string> <string name="aristotle16">We are what we repeatedly do. Excellence then, is not an act, but a habit.</string> <string name="aristotle17">Young people are in a condition like permanent intoxication, because youth is sweet and they are growing.</string> <string name="aristotle18">It is not always the same thing to be a good man and a good citizen.</string> <string name="aristotle19">Misfortune shows those who are not really friends.</string> <string name="aristotle20">It is possible to fail in many ways, while to succeed is possible only in one way.</string> <string name="aristotle21">To be conscious that we are perceiving or thinking is to be conscious of our own existence.</string> <string name="aristotle22">We make war that we may live in peace.</string> <string name="aristotle23">With regard to excellence, it is not enough to know, but we must try to have and use it.</string> <string name="aristotle24">In all things of nature there is something of the marvellous.</string> <string name="aristotle25">Time crumbles things; everything grows old under the power of Time and is forgotten through the lapse of Time.</string> <string name="aristotle26">Even when laws have been written down, they ought not always to remain unaltered.</string> <string name="aristotle27">He who is unable to live in society, or who has no need because he is sufficient for himself, must be either a beast or a god.</string> <string name="aristotle28">It is the nature of desire not to be satisfied, and most men live only for the gratification of it.</string> <string name="aristotle29">Law is order, and good law is good order.</string> <string name="aristotle30">Man is by nature a political animal.</string> <string name="bierce">Bierce</string> <string name="bierce1">Absurdity is a statement or belief manifestly inconsistent with one\'s own opinion.</string> <string name="bierce2">Acquaintance is a person whom we know well enough to borrow from, but not well enough to lend to.</string> <string name="bierce3">Admiration is our polite recognition of another\'s resemblance to ourselves.</string> <string name="bierce4">Bore is a person who talks when you wish him to listen.</string> <string name="bierce5">Brain is an apparatus with which we think we think.</string> <string name="bierce6">Cabbage is a familiar kitchen-garden vegetable about as large and wise as a man\'s head.</string> <string name="bierce7">Cogito cogito ergo cogito sum means I think that I think, therefore I think that I am.</string> <string name="bierce8">Politeness is the most acceptable hypocrisy.</string> <string name="bierce9">Politics is the strife of interests masquerading as a contest of principles.</string> <string name="bierce10">The gambling known as business looks with austere disfavor upon the business known as gambling.</string> <string name="bierce11">There is nothing new under the sun but there are lots of old things we don\'t know.</string> <string name="bierce12">To be positive is to be mistaken at the top of one\'s voice.</string> <string name="chesterton">G. K. Chesterton</string> <string name="chesterton1">"My country, right or wrong," is a thing that no patriot would think of saying except in a desperate case. It is like saying, "My mother, drunk or sober."</string> <string name="chesterton2">An adventure is only an inconvenience rightly considered. An inconvenience is an adventure wrongly considered.</string> <string name="chesterton3">Art, like morality, consists of drawing the line somewhere.</string> <string name="chesterton4">Beware of no man more than yourself; we carry our worst enemies within us.</string> <string name="chesterton5">By a curious confusion, many modern critics have passed from the proposition that a masterpiece may be unpopular to the other proposition that unless it is unpopular it cannot be a masterpiece.</string> <string name="chesterton6">Democracy means government by the uneducated, while aristocracy means government by the badly educated.</string> <string name="chesterton7">Don\'t ever take a fence down until you know the reason it was put up.</string> <string name="chesterton8">Education is simply the soul of a society as it passes from one generation to another.</string> <string name="chesterton9">Every man is important if he loses his life; and every man is funny if he loses his hat and has to run after it.</string> <string name="chesterton10">Fallacies do not cease to be fallacies because they become fashions.</string> <string name="chesterton11">I believe in getting into hot water; it keeps you clean.</string> <string name="chesterton12">I owe my success to having listened respectfully to the very best advice, and then going away and doing the exact opposite.</string> <string name="chesterton13">I say that a man must be certain of his morality for the simple reason that he has to suffer for it.</string> <string name="chesterton14">It is not bigotry to be certain we are right; but it is bigotry to be unable to imagine how we might possibly have gone wrong.</string> <string name="chesterton15">Man seems to be capable of great virtues but not of small virtues; capable of defying his torturer but not of keeping his temper.</string> <string name="chesterton16">Music with dinner is an insult both to the cook and the violinist.</string> <string name="chesterton17">Poets have been mysteriously silent on the subject of cheese.</string> <string name="chesterton18">Real development is not leaving things behind, as on a road, but drawing life from them, as on a root.</string> <string name="chesterton19">The Bible tells us to love our neighbors, and also to love our enemies, probably because they are generally the same people.</string> <string name="chesterton20">The thing I hate about an argument is that it always interrupts a discussion.</string> <string name="chesterton21">There is a great deal of difference between an eager man who wants to read a book and the tired man who wants a book to read.</string> <string name="chesterton22">To have a right to do a thing is not at all the same as to be right in doing it.</string> <string name="chesterton23">There are no wise few. Every aristocracy that has ever existed has behaved, in all essential points, exactly like a small mob.</string> <string name="chesterton24">All slang is a metaphor, and all metaphor is poetry.</string> <string name="chesterton25">Literature is a luxury. Fiction is a necessity.</string> <string name="chesterton26">The rich are the scum of the earth in every country.</string> <string name="chesterton27">There is no such thing on earth as an uninteresting subject. The only thing that can exist is an uninterested person.</string> <string name="chesterton28">Tradition means giving votes to the most obscure of all classes, our ancestors. It is the democracy of the dead. Tradition refuses to submit to the small and arrogant oligarchy of those who merely happen to be walking about.</string> <string name="chesterton29">It isn\'t that they can\'t see the solution. It is that they can\'t see the problem.</string> <string name="chesterton30">Compromise used to mean that half a loaf was better than no bread. Among modern statesmen it really seems to mean that half a loaf is better than a whole loaf.</string> <string name="chesterton31">Impartiality is a pompous name for indifference, which is an elegant name for ignorance.</string> <string name="chesterton32">Among the rich you will never find a really generous man even by accident. They may give their money away, but they will never give themselves away. They are egotistic, secretive, dry as old bones. To be smart enough to get all that money you must be dull enough to want it.</string> <string name="chesterton33">When a politician is in opposition, he is an expert on the means to some end. When he is in office, he is an expert on the obstacles to it.</string> <string name="chesterton34">I believe what really happens in history is this. The old man is always wrong, and the young people are always wrong about what is wrong with him.</string> <string name="chesterton35">The poor object to being governed badly, while the rich object to being governed at all.</string> <string name="chesterton36">I\'ve searched all the parks in all the cities, and found no statues of committees.</string> <string name="chesterton37">The big commercial concerns of today are quite exceptionally incompetent. They will be even more incompetent when they are omnipotent.</string> <string name="euripides">Euripides</string> <string name="euripides1">Circumstances rule men and not men rule circumstances.</string> <string name="euripides2">Do not consider painful what is good for you.</string> <string name="euripides3">Short is the joy that guilty pleasure brings.</string> <string name="euripides4">Talk sense to a fool and he calls you foolish.</string> <string name="euripides5">The wisest men follow their own direction.</string> <string name="euripides6">Waste not fresh tears over old griefs.</string> <string name="euripides7">Your very silence shows you agree.</string> <string name="euripides8">Slight not what\'s near, while aiming at what\'s far.</string> <string name="euripides9">A bad beginning makes a bad ending.</string> <string name="euripides10">The company of just and righteous men is better than wealth and a rich estate.</string> <string name="euripides11">Time will explain it all. He is a talker, and needs no questioning before he speaks.</string> <string name="euripides12">Dishonor will not trouble me, once I am dead.</string> <string name="euripides13">I have been versed in the reasonings of men, but Fate is stronger than anything I have known.</string> <string name="euripides14">In case of dissension, never dare to judge till you\'ve heard the other side.</string> <string name="euripides15">Leave no stone unturned.</string> <string name="euripides16">In this world, second thoughts, it seems, are best.</string> <string name="euripides17">The day is for honest men, the night for thieves.</string> <string name="euripides18">When love is in excess it brings a man no honour nor worthiness.</string> <string name="euripides19">The gods visit the sins of the fathers upon the children.</string> <string name="euripides20">Whoso neglects learning in his youth, loses the past and is dead for the future.</string> <string name="euripides21">When good men die their goodness does not perish, but lives though they are gone. As for the bad, all that was theirs dies and is buried with them.</string> <string name="euripides22">Slow but sure moves the might of the gods.</string> <string name="aeschylus">Aeschylus</string> <string name="aeschylus1">Circumstances rule men and not men rule circumstances.</string> <string name="aeschylus2">In war, truth is the first casualty.</string> <string name="aeschylus3">It is a profitable thing, if one is wise, to seem foolish.</string> <string name="aeschylus4">It is in the character of very few men to honor without envy a friend who has prospered.</string> <string name="aeschylus5">Only when man\'s life comes to its end in prosperity can one call that man happy.</string> <string name="aeschylus6">For somehow this is tyranny\'s disease, to trust no friends.</string> <string name="aeschylus7">Time as he grows old teaches all things.</string> <string name="aeschylus8">Words are the physicians of the mind diseased.</string> <string name="aeschylus9">Destiny waits alike for the free man as well as for him enslaved by another\'s might.</string> <string name="aeschylus10">His resolve is not to seem, but to be, the best.</string> <string name="socrates">Socrates</string> <string name="socrates1">Circumstances rule men and not men rule circumstances.</string> <string name="socrates2">By all means marry. If you get a good wife, you\'ll be happy. If you get a bad one, you\'ll become a philosopher.</string> <string name="socrates3">Do not do to others what angers you if done to you by others.</string> <string name="socrates4">Envy is the ulcer of the soul.</string> <string name="socrates5">If a man is proud of his wealth, he should not be praised until it is known how he employs it.</string> <string name="socrates6">Remember that there is nothing stable in human affairs. Therefore avoid undue elation in prosperity, or undue depression in adversity.</string> <string name="socrates7">Think not those faithful who praise all thy words and actions, but those who kindly reprove thy faults.</string> <string name="socrates8">Thou shouldst eat to live, not live to eat.</string> <string name="socrates9">Having the fewest wants, I am nearest to the gods.</string> <string name="socrates10">I know nothing except the fact of my ignorance.</string> <string name="socrates11">I am not an Athenian or a Greek, but a citizen of the world.</string> <string name="socrates12">I decided that it was not wisdom that enabled [poets] to write their poetry, but a kind of instinct or inspiration, such as you find in seers and prophets who deliver all their sublime messages without knowing in the least what they mean.</string> <string name="socrates13">The hour of departure has arrived, and we go our ways, I to die, and you to live. Which is better God only knows.</string> <string name="socrates14">It would be better for me that multitudes of men should disagree with me rather than that I, being one, should be out of harmony with myself.</string> <string name="socrates15">False words are not only evil in themselves, but they infect the soul with evil.</string> <string name="socrates16">Wealth is the parent of luxury and indolence, and poverty of meanness and viciousness, and both of discontent.</string> <string name="socrates17">I have hardly ever known a mathematician who was capable of reasoning.</string> <string name="socrates18">Bodily exercise, when compulsory, does no harm to the body, but knowledge which is acquired under compulsion obtains no hold on the mind.</string> <string name="socrates19">The people have always some champion whom they set over them and nurse into greatness. This and no other is the root from which a tyrant springs. When he first appears he is a protector.</string> <string name="socrates20">Democracy, which is a charming form of government, full of variety and disorder, and dispensing a sort of equality to equals and unequals alike.</string> <string name="wilde">Oscar Wilde</string> <string name="wilde1">Circumstances rule men and not men rule circumstances.</string> <string name="wilde2">I have the simplest tastes. I am always satisfied with the best.</string> <string name="wilde3">A thing is not necessarily true because a man dies for it.</string> <string name="wilde4">Consistency is the last refuge of the unimaginative.</string> <string name="wilde5">I put all my genius into my life. I put only my talent into my works.</string> <string name="wilde6">An excellent man. He has no enemies, and none of his friends like him.</string> <string name="wilde7">After the first glass you see things as you wish they were. After the second glass you see things as they are not. Finally, you see things as they really are, and that is the most horrible thing in the world.</string> <string name="wilde8">No great artist ever sees things as they really are. If he did, he would cease to be an artist.</string> <string name="wilde9">Man is least himself when he talks in his own person. Give him a mask, and he will tell you the truth.</string> <string name="wilde10">A little sincerity is a dangerous thing, and a great deal of it is absolutely fatal.</string> <string name="wilde11">A poet can survive everything but a misprint.</string> <string name="wilde12">Most modern calendars mar the sweet simplicity of our lives by reminding us that each day that passes is the anniversary of some perfectly uninteresting event.</string> <string name="wilde13">And, after all, what is a fashion? From the artistic point of view, it is usually a form of ugliness so intolerable that we have to alter it every six months.</string> <string name="wilde14">It is always a silly thing to give advice, but to give good advice is absolutely fatal.</string> <string name="wilde15">The more we study Art, the less we care for Nature. What Art really reveals to us is Nature\'s lack of design, her curious crudities, her extraordinary monotony, her absolutely unfinished condition.</string> <string name="wilde16">All art is immoral.</string> <string name="wilde17">He is really not so ugly after all, provided, of course, that one shuts one\'s eyes, and does not look at him.</string> <string name="wilde18">People who count their chickens before they are hatched act very wisely because chickens run about so absurdly that it\'s impossible to count them accurately.</string> <string name="wilde19">One can survive everything nowadays except death.</string> <string name="wilde20">Psychology is in its infancy, as a science. I hope in the interests of Art, it will always remain so.</string> <string name="wilde21">Life is much too important a thing ever to talk seriously about it.</string> <string name="wilde22">Experience is the name men give to their mistakes.</string> <string name="wilde23">Hard work is simply the refuge of people who have nothing whatever to do.</string> <string name="wilde24">Life imitates art far more than art imitates Life.</string> <string name="wilde25">Anybody can make history. Only a great man can write it.</string> <string name="wilde26">One is tempted to define man as a rational animal who always loses his temper when he is called upon to act in accordance with the dictates of reason.</string> <string name="wilde27">I can resist everything except temptation.</string> <string name="wilde28">My experience is that as soon as people are old enough to know better, they don\'t know anything at all.</string> <string name="wilde29">In this world there are only two tragedies. One is not getting what one wants, and the other is getting it.</string> <string name="wilde30">What is a cynic? A man who knows the price of everything and the value of nothing.</string> <string name="wilde31">Children begin by loving their parents. After a time they judge them. Rarely if ever do they forgive them.</string> <string name="wilde32">Education is an admirable thing. But it is well to remember from time to time that nothing that is worth knowing can be taught.</string> <string name="wilde33">Art is the only serious thing in the world. And the artist is the only person who is never serious.</string> <string name="wilde34">To be really mediaeval one should have no body. To be really modern one should have no soul. To be really Greek one should have no clothes.</string> <string name="wilde35">If one tells the truth, one is sure, sooner or later, to be found out.</string> <string name="wilde36">Patriotism is the vice of nations.</string> <string name="wilde37">Only the shallow know themselves.</string> <string name="wilde38">The old believe everything. The middle aged suspect everything. The young know everything.</string> <string name="wilde39">To love oneself is the beginning of a lifelong romance.</string> <string name="wilde40">One should always be a little improbable.</string> <string name="wilde41">I always pass on good advice. It is the only thing to do with it. It is never of any use to oneself.</string> <string name="wilde42">Only dull people are brilliant at breakfast.</string> <string name="wilde43">I love talking about nothing. It is the only thing I know anything about.</string> <string name="wilde44">To live is the rarest thing in the world. Most people exist, that is all.</string> <string name="wilde45">A man who does not think for himself does not think at all.</string> <string name="swift">Jonathan Swift</string> <string name="swift1">Satire is a sort of glass, wherein beholders do generally discover everybody\'s face but their own.</string> <string name="swift2">Laws are like cobwebs, which may catch small flies, but let wasps and hornets break through.</string> <string name="swift3">There is nothing in this world constant, but inconstancy.</string> <string name="swift4">There are few, very few, that will own themselves in a mistake, though all the world sees them to be in downright nonsense.</string> <string name="swift5">Falsehood flies, and truth comes limping after it.</string> <string name="swift6">One enemy can do more hurt, than ten friends can do good.</string> <string name="swift7">Nothing is so hard for those who abound in riches, as to conceive how others can be in want.</string> <string name="swift8">For, in reason, all government without the consent of the governed is the very definition of slavery, but in fact, eleven men well armed will certainly subdue one single man in his shirt.</string> <string name="swift9">Good manners is the art of making those people easy with whom we converse.</string> <string name="swift10">Pride, ill nature, and want of sense, are the three great sources of ill manners.</string> <string name="swift11">Reason is a very light rider and easily shook off.</string> <string name="swift12">We have just enough religion to make us hate, but not enough to make us love one another.</string> <string name="swift13">Every man desires to live long, but no man would be old.</string> <string name="swift14">The Stoical scheme of supplying our wants by lopping off our desires, is like cutting off our feet when we want shoes.</string> <string name="swift15">The latter part of a wise man’s life is taken up in curing the follies, prejudices, and false opinions he had contracted in the former.</string> <string name="swift16">Ambition often puts men upon doing the meanest offices; so climbing is performed in the same posture with creeping.</string> <string name="swift17">The sight of you is good for sore eyes.</string> <string name="swift18">I won\'t quarrel with my bread and butter.</string> <string name="swift19">She\'s no chicken. She\'s on the wrong side of thirty, if she be a day.</string> <string name="swift20">She looks as if butter wouldn\'t melt in her mouth.</string> <string name="swift21">He was a bold man that first ate an oyster.</string> <string name="swift22">That\'s as well said, as if I had said it myself.</string> <string name="swift23">You must take the will for the deed.</string> <string name="swift24">Fingers were made before forks, and hands before knives.</string> <string name="pope">Alexander Pope</string> <string name="pope1">A little learning is a dangerous thing.</string> <string name="pope2">They dream in courtship, but in wedlock wake.</string> <string name="pope3">Histories are more full of examples of the fidelity of dogs than of friends.</string> <string name="pope4">Nature and Nature\'s laws lay hid in night. God said, \"Let Newton be!\" and all was light.</string> <string name="pope5">Luxurious lobster nights, farewell, for sober, studious days!</string> <string name="pope6">"Blessed is the man who expects nothing, for he shall never be disappointed.</string> <string name="pope7">True ease in writing comes from art, not chance, as those move easiest who have learned to dance.</string> <string name="pope8">To err is human, to forgive divine.</string> <string name="pope9">To be angry is to revenge the fault of others upon ourselves.</string> <string name="pope10">At every word a reputation dies.</string> <string name="pope11">The hungry judges soon the sentence sign, and wretches hang that jurymen may dine.</string> <string name="pope12">I never knew any man in my life who could not bear another\'s misfortunes perfectly like a Christian.</string> <string name="pope13">A man should never be ashamed to own he has been in the wrong, which is but saying, in other words, that he is wiser today than he was yesterday.</string> <string name="pope14">He who tells a lie, is not sensible how great a task he undertakes; for he must be forced to invent twenty more to maintain that one.</string> <string name="pope15">Some old men, by continually praising the time of their youth, would almost persuade us that there were no fools in those days, but unluckily they are left themselves for examples.</string> <string name="pope16">Some people will never learn anything, for this reason, because they understand everything too soon.</string> <string name="pope17">The most positive men are the most credulous.</string> <string name="dickens">Charles Dickens</string> <string name="dickens1">The civility which money will purchase, is rarely extended to those who have none.</string> <string name="dickens2">If there were no bad people, there would be no good lawyers.</string> <string name="dickens3">Ask no questions, and you\'ll be told no lies.</string> <string name="dickens4">Throughout life, our worst weaknesses and meannesses are usually committed for the sake of the people we most despise.</string> <string name="dickens5">The pain of parting is nothing to the joy of meeting again.</string> <string name="dickens6">There are only two styles of portrait painting; the serious and the smirk.</string> <string name="dickens7">How can you capture the sympathies of the audience unless you have a small man, fighting against a bigger one?</string> <string name="dickens8">It was on one of those mornings, common in early spring, when the year, fickle and changeable in its youth like all other created things, is undecided whether to step backward into winter or forward into summer.</string> <string name="dickens9">Here\'s the rule for bargains. \"Do other men, for they would do you.\" That\'s the true business precept.</string> <string name="dickens10">Rich folks may ride on camels, but it isn\'t so easy for them to see out of a needle\'s eye.</string> <string name="dickens11">Charity begins at home, and justice begins next door.</string> <string name="dickens12">Annual income twenty pounds, annual expenditure nineteen, nineteen and six, result happiness. Annual income twenty pounds, annual expenditure twenty pounds ought and six, result misery.</string> <string name="dickens13">Never be mean in anything. Never be false. Never be cruel.</string> <string name="dickens14">It was as true as turnips is. It was as true as taxes is. And nothing\'s truer than them.</string> <string name="dickens15">Let sleeping dogs lie. Who wants to rouse them?</string> <string name="dickens16">A man must take the fat with the lean.</string> <string name="trollope">Anthony Trollope</string> <string name="trollope1">The man who worships mere wealth is a snob.</string> <string name="trollope2">There is no royal road to learning, no short cut to the acquirement of any art.</string> <string name="trollope3">There is no way of writing well and also of writing easily.</string> <string name="trollope4">A man\'s own dinner is to himself so important that he cannot bring himself to believe that it is a matter utterly indifferent to every one else.</string> <string name="trollope5">It is easy to love one\'s enemy when one is making fine speeches; but so difficult to do so in the actual everyday work of life.</string> <string name="trollope6">But who ever yet was offered a secret and declined it?</string> <string name="trollope7">There is such a difference between life and theory.</string> <string name="trollope8">Flirting I take to be the excitement of love, without its reality, and without its ordinary result in marriage.</string> <string name="trollope9">Ride at any fence hard enough, and the chances are you’ll get over. The harder you ride the heavier the fall, if you get a fall, but the greater the chance of your getting over.</string> <string name="trollope10">Fame is a skittish jade, more fickle even than Fortune, and apt to shy, and bolt, and plunge away on very trifling causes.</string> <string name="trollope11">The grace and beauty of life will be clean gone when we all become useful men.</string> <string name="trollope12">The double pleasure of pulling down an opponent, and of raising oneself, is the charm of a politician’s life.</string> <string name="trollope13">Of all the needs a book has, the chief need is that it be readable.</string> <string name="austen">Jane Austen</string> <string name="austen1">It is a truth universally acknowledged that a single man in possession of a good fortune must be in want of a wife.</string> <string name="austen2">One cannot be always laughing at a man without now and then stumbling on something witty.</string> <string name="austen3">For what do we live, but to make sport for our neighbors and laugh at them in our turn?</string> <string name="austen4">It was, perhaps, one of those cases in which advice is good or bad only as the event decides.</string> <string name="austen5">One half of the world cannot understand the pleasures of the other.</string> <string name="austen6">There certainly are not so many men of large fortune in the world as there are pretty women to deserve them.</string> <string name="austen7">Surprises are foolish things. The pleasure is not enhanced, and the inconvenience is often considerable.</string> <string name="austen8">There are people who the more you do for them, the less they will do for themselves.</string> <string name="austen9">A woman, especially if she has the misfortune of knowing anything, should conceal it as well as she can.</string> <string name="austen10">It would be mortifying to the feelings of many ladies, could they be made to understand how little the heart of man is affected by what is costly or new in their attire.</string> <string name="austen11">The person, be it gentleman or lady, who has not pleasure in a good novel must be intolerably stupid.</string> <string name="thackeray">William Makepeace Thackeray</string> <string name="thackeray1">He who meanly admires mean things is a snob.</string> <string name="thackeray2">The wicked are wicked, no doubt, and they go astray and they fall, and they come by their deserts. But who can tell the mischief which the very virtuous do?</string> <string name="thackeray3">Stupid people, people who do not know how to laugh, are always pompous and selfconceited.</string> <string name="thackeray4">Despair is perfectly compatible with a good dinner, I promise you.</string> <string name="thackeray5">How hard it is to make an Englishman acknowledge that he is happy!</string> <string name="thackeray6">I never know whether to pity or congratulate a man on coming to his senses.</string> <string name="kipling">Rudyard Kipling</string> <string name="kipling1">Gardens are not made by singing \"Oh, how beautiful,\" and sitting in the shade.</string> <string name="kipling2">Take everything you like seriously, except yourselves.</string> <string name="kipling3">There\'s no jealousy in the grave. </string> <string name="kipling4">Funny how the new things are the old things.</string> <string name="kipling5">Words are, of course, the most powerful drug used by mankind.</string> <string name="kipling6">He travels the fastest who travels alone.</string> <string name="kipling7">It\'s pretty, but is it Art?</string> <string name="kipling8">We have forty million reasons for failure, but not a single excuse.</string> <string name="kipling9">All the people like us are We, and everyone else is They.</string> <string name="kipling10">Borrow trouble for yourself, if that\'s your nature, but don\'t lend it to your neighbours.</string> <string name="shakespeare">William Shakespeare</string> <string name="shakespeare2">What\'s in a name? That which we call a rose, by any other name would smell as sweet.</string> <string name="shakespeare3">The course of true love never did run smooth.</string> <string name="shakespeare4">Uneasy lies the head that wears a crown.</string> <string name="shakespeare5">A man can die but once.</string> <string name="shakespeare6">As merry as the day is long.</string> <string name="shakespeare7">Cowards die many times before their deaths. The valiant never taste of death but once.</string> <string name="shakespeare8">Neither a borrower nor a lender be.</string> <string name="shakespeare9">There is nothing either good or bad, but thinking makes it so.</string> <string name="shakespeare10">Some are born great, some achieve greatness, and some have greatness thrust upon \'em.</string> <string name="shakespeare11">Nothing can come of nothing.</string> <string name="shakespeare12">We are such stuff as dreams are made on, and our little life is rounded with a sleep.</string> </resources>


app/res/layout/activity_main.xml - screen format

<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/relLayout" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <GridView android:id="@+id/alphabetView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:numColumns="26" /> <Button android:id="@+id/newButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/newQuote" android:onClick="newQuote" android:layout_below="@id/alphabetView" /> <Button android:id="@+id/clearButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/clearSelection" android:onClick="clear" android:layout_below="@id/alphabetView" android:layout_toRightOf="@id/newButton" android:layout_toEndOf="@id/newButton" /> <TextView android:id="@+id/message" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingTop="@dimen/activity_vertical_margin" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:text="@string/howTo" android:layout_below="@id/alphabetView" android:layout_toRightOf="@id/clearButton" android:layout_toEndOf="@id/clearButton" /> <GridView android:id="@+id/quoteView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:numColumns="26" android:layout_below="@id/message" /> </RelativeLayout>


app/java/com.(the project name)/MainActivity - main code for app

package com.edkins.decode; import ... import java.util.Random; public class MainActivity extends AppCompatActivity { public static int quoteLength = -1; public static int gridLength = -1; public static int quoteLetter = -1; public static int codeLetter = -1; public static int numQuotes; public static int thisQuote; public static int error; public static int [] qlet; public static int [] qletCoded; public static int [] coded = new int[27]; public static java.lang.String [] author = new java.lang.String[100]; public static java.lang.String [] quote = new java.lang.String[1000]; public static int [] by = new int[1000]; static Random random = new Random(); // Letters protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); GridView alphabet = (GridView) findViewById(R.id.alphabetView); alphabet.setAdapter(new ImageAlphabet(this)); alphabet.setOnItemClickListener(new AdapterView.OnItemClickListener() { public void onItemClick(AdapterView<?> parent, View v, int position, long id) { processLetter(position); } }); loadquotes(); setUpQuote(); codeQuote(); GridView quote = (GridView) findViewById(R.id.quoteView); quote.setAdapter(new ImageQuote(this)); quote.setOnItemClickListener(new AdapterView.OnItemClickListener() { public void onItemClick(AdapterView<?> parent, View v, int position, long id) { processQuote(position); } }); } public void processQuote(int position) { quoteLetter = position; if (qletCoded[quoteLetter]==qlet[quoteLetter]) { String mess=getString(R.string.quoteError); Toast.makeText(MainActivity.this, mess, Toast.LENGTH_SHORT).show(); quoteLetter = -1; } else if (codeLetter>=0) {testChoice();} redo(); } public void processLetter(int position) { codeLetter = position + 1; if (coded[codeLetter]==codeLetter) { String mess=getString(R.string.alphabetError); Toast.makeText(MainActivity.this, mess, Toast.LENGTH_SHORT).show(); codeLetter = -1; } if (quoteLetter>=0) {testChoice();} redo(); } public void testChoice() { int qt = qlet[quoteLetter]; if (qt>26) {qt=qt-26;} if (codeLetter==qt) { coded[codeLetter] = codeLetter; for (int i=0; i<gridLength; i++) { if (qlet[i]==codeLetter || qlet[i] == (codeLetter+26)) {qletCoded[i] = qlet[i];} } codeLetter=-1; quoteLetter=-1; checkFinished(); } else {error++;} } public void checkFinished() { int ok=1; for (int i=0;i<gridLength;i++) { if (qletCoded[i] != qlet[i]) {ok=0;} } if (ok==1){ String output = getString(R.string.finish); output = output + author [by[thisQuote]]; output = output + getString(R.string.finish2) + error; TextView text = (TextView) findViewById(R.id.message); text.setText(output); } } public void clear(View view) { codeLetter=-1; quoteLetter=-1; redo(); } public void newQuote(View view) { setUpQuote(); codeQuote(); redo(); } public void setUpQuote() { quoteLetter = -1; codeLetter = -1; error = 0; String output = getString(R.string.howTo); TextView text = (TextView) findViewById(R.id.message); text.setText(output); thisQuote = random.nextInt(numQuotes); String str=quote[thisQuote]; quoteLength = str.length(); qlet = new int[2 * quoteLength]; int posQuote=0; int posGrid=0; int posSpace=0; while (posQuote<quoteLength) { int pic = 0; char c = str.charAt(posQuote); if (c >= 'a' && c <= 'z') {pic = c - 'a' + 1;} else if (c >= 'A' && c <= 'z') {pic = c - 'A' + 27;} else if (c=='.') {pic = 53;} else if (c==',') {pic = 54;} else if (c=='"') {pic = 55;} else if (c=='\'') {pic = 56;} else if (c=='?') {pic = 57;} else if (c=='!') {pic = 58;} if (posGrid>0 && (posGrid % 26) == 0) { if (pic >= 0) { posSpace++; int num = posGrid - posSpace; for (int i=0; i<num; i++) { qlet[posGrid] = qlet[posSpace+i]; qlet[posSpace+i] = 0; posGrid++; } } } qlet[posGrid] = pic; if (pic == 0) {posSpace = posGrid;} posQuote++; posGrid++; } gridLength = posGrid; } public void codeQuote() { for (int i=1; i<=26; i++) {coded [i]=i;} for (int i=1; i<=26; i++) { int j=i; while (i==j) {j = 1+random.nextInt(26);} int save = coded [i]; coded [i] = coded [j]; coded [j] = save; } qletCoded = new int[gridLength]; System.arraycopy(qlet, 0, qletCoded, 0, gridLength); for (int i=0; i<gridLength; i++) { int let = qletCoded [i]; if (let>=1 && let<=26) {qletCoded[i] = coded [let];} else if (let>=27 && let<=52) {qletCoded[i] = 26+coded [let-26];} } } public void redo() { GridView alphabet = (GridView) findViewById(R.id.alphabetView); alphabet.setAdapter(new ImageAlphabet(this)); GridView quote = (GridView) findViewById(R.id.quoteView); quote.setAdapter(new ImageQuote(this)); } public void loadquotes() { int i = 0; int j = 0; author [i]= getString(R.string.virgil); by [j] = i; quote [j] = getString(R.string.virgil1); j++; by [j] = i; quote [j] = getString(R.string.virgil2); j++; by [j] = i; quote [j] = getString(R.string.virgil3); j++; by [j] = i; quote [j] = getString(R.string.virgil4); j++; by [j] = i; quote [j] = getString(R.string.virgil5); j++; by [j] = i; quote [j] = getString(R.string.virgil6); j++; by [j] = i; quote [j] = getString(R.string.virgil7); j++; by [j] = i; quote [j] = getString(R.string.virgil8); j++; by [j] = i; quote [j] = getString(R.string.virgil9); j++; by [j] = i; quote [j] = getString(R.string.virgil10); j++; by [j] = i; quote [j] = getString(R.string.virgil11); j++; by [j] = i; quote [j] = getString(R.string.virgil12); j++; by [j] = i; quote [j] = getString(R.string.virgil13); j++; i++; author [i]= getString(R.string.marcus); by [j] = i; quote [j] = getString(R.string.marcus1); j++; by [j] = i; quote [j] = getString(R.string.marcus2); j++; by [j] = i; quote [j] = getString(R.string.marcus3); j++; by [j] = i; quote [j] = getString(R.string.marcus4); j++; by [j] = i; quote [j] = getString(R.string.marcus5); j++; by [j] = i; quote [j] = getString(R.string.marcus6); j++; by [j] = i; quote [j] = getString(R.string.marcus7); j++; by [j] = i; quote [j] = getString(R.string.marcus8); j++; by [j] = i; quote [j] = getString(R.string.marcus9); j++; by [j] = i; quote [j] = getString(R.string.marcus10); j++; by [j] = i; quote [j] = getString(R.string.marcus11); j++; by [j] = i; quote [j] = getString(R.string.marcus12); j++; by [j] = i; quote [j] = getString(R.string.marcus13); j++; by [j] = i; quote [j] = getString(R.string.marcus14); j++; by [j] = i; quote [j] = getString(R.string.marcus15); j++; by [j] = i; quote [j] = getString(R.string.marcus16); j++; by [j] = i; quote [j] = getString(R.string.marcus17); j++; i++; author [i]= getString(R.string.confucius); by [j] = i; quote [j] = getString(R.string.confucius1); j++; by [j] = i; quote [j] = getString(R.string.confucius2); j++; by [j] = i; quote [j] = getString(R.string.confucius3); j++; by [j] = i; quote [j] = getString(R.string.confucius4); j++; by [j] = i; quote [j] = getString(R.string.confucius5); j++; by [j] = i; quote [j] = getString(R.string.confucius6); j++; by [j] = i; quote [j] = getString(R.string.confucius7); j++; by [j] = i; quote [j] = getString(R.string.confucius8); j++; by [j] = i; quote [j] = getString(R.string.confucius9); j++; by [j] = i; quote [j] = getString(R.string.confucius10); j++; by [j] = i; quote [j] = getString(R.string.confucius11); j++; by [j] = i; quote [j] = getString(R.string.confucius12); j++; by [j] = i; quote [j] = getString(R.string.confucius13); j++; by [j] = i; quote [j] = getString(R.string.confucius14); j++; by [j] = i; quote [j] = getString(R.string.confucius15); j++; by [j] = i; quote [j] = getString(R.string.confucius16); j++; by [j] = i; quote [j] = getString(R.string.confucius17); j++; by [j] = i; quote [j] = getString(R.string.confucius18); j++; by [j] = i; quote [j] = getString(R.string.confucius19); j++; by [j] = i; quote [j] = getString(R.string.confucius20); j++; by [j] = i; quote [j] = getString(R.string.confucius21); j++; by [j] = i; quote [j] = getString(R.string.confucius22); j++; i++; author [i]= getString(R.string.anonymous); by [j] = i; quote [j] = getString(R.string.anonymous1); j++; by [j] = i; quote [j] = getString(R.string.anonymous2); j++; by [j] = i; quote [j] = getString(R.string.anonymous3); j++; by [j] = i; quote [j] = getString(R.string.anonymous4); j++; by [j] = i; quote [j] = getString(R.string.anonymous5); j++; by [j] = i; quote [j] = getString(R.string.anonymous6); j++; by [j] = i; quote [j] = getString(R.string.anonymous7); j++; by [j] = i; quote [j] = getString(R.string.anonymous8); j++; by [j] = i; quote [j] = getString(R.string.anonymous9); j++; by [j] = i; quote [j] = getString(R.string.anonymous10); j++; by [j] = i; quote [j] = getString(R.string.anonymous11); j++; by [j] = i; quote [j] = getString(R.string.anonymous12); j++; by [j] = i; quote [j] = getString(R.string.anonymous13); j++; by [j] = i; quote [j] = getString(R.string.anonymous14); j++; by [j] = i; quote [j] = getString(R.string.anonymous15); j++; by [j] = i; quote [j] = getString(R.string.anonymous16); j++; by [j] = i; quote [j] = getString(R.string.anonymous17); j++; by [j] = i; quote [j] = getString(R.string.anonymous18); j++; by [j] = i; quote [j] = getString(R.string.anonymous19); j++; by [j] = i; quote [j] = getString(R.string.anonymous20); j++; by [j] = i; quote [j] = getString(R.string.anonymous21); j++; by [j] = i; quote [j] = getString(R.string.anonymous22); j++; by [j] = i; quote [j] = getString(R.string.anonymous23); j++; i++; author [i]= getString(R.string.horace); by [j] = i; quote [j] = getString(R.string.horace1); j++; by [j] = i; quote [j] = getString(R.string.horace2); j++; by [j] = i; quote [j] = getString(R.string.horace3); j++; by [j] = i; quote [j] = getString(R.string.horace4); j++; by [j] = i; quote [j] = getString(R.string.horace5); j++; by [j] = i; quote [j] = getString(R.string.horace6); j++; by [j] = i; quote [j] = getString(R.string.horace7); j++; by [j] = i; quote [j] = getString(R.string.horace8); j++; by [j] = i; quote [j] = getString(R.string.horace9); j++; by [j] = i; quote [j] = getString(R.string.horace10); j++; by [j] = i; quote [j] = getString(R.string.horace11); j++; by [j] = i; quote [j] = getString(R.string.horace12); j++; i++; author [i]= getString(R.string.ovid); by [j] = i; quote [j] = getString(R.string.ovid1); j++; by [j] = i; quote [j] = getString(R.string.ovid2); j++; by [j] = i; quote [j] = getString(R.string.ovid3); j++; by [j] = i; quote [j] = getString(R.string.ovid4); j++; by [j] = i; quote [j] = getString(R.string.ovid5); j++; by [j] = i; quote [j] = getString(R.string.ovid6); j++; by [j] = i; quote [j] = getString(R.string.ovid7); j++; by [j] = i; quote [j] = getString(R.string.ovid8); j++; i++; author [i]= getString(R.string.plato); by [j] = i; quote [j] = getString(R.string.plato1); j++; by [j] = i; quote [j] = getString(R.string.plato2); j++; by [j] = i; quote [j] = getString(R.string.plato3); j++; by [j] = i; quote [j] = getString(R.string.plato4); j++; by [j] = i; quote [j] = getString(R.string.plato5); j++; by [j] = i; quote [j] = getString(R.string.plato6); j++; by [j] = i; quote [j] = getString(R.string.plato7); j++; by [j] = i; quote [j] = getString(R.string.plato8); j++; by [j] = i; quote [j] = getString(R.string.plato9); j++; by [j] = i; quote [j] = getString(R.string.plato10); j++; by [j] = i; quote [j] = getString(R.string.plato11); j++; by [j] = i; quote [j] = getString(R.string.plato12); j++; by [j] = i; quote [j] = getString(R.string.plato13); j++; by [j] = i; quote [j] = getString(R.string.plato14); j++; by [j] = i; quote [j] = getString(R.string.plato15); j++; by [j] = i; quote [j] = getString(R.string.plato16); j++; by [j] = i; quote [j] = getString(R.string.plato17); j++; i++; author [i]= getString(R.string.juvenal); by [j] = i; quote [j] = getString(R.string.juvenal1); j++; by [j] = i; quote [j] = getString(R.string.juvenal2); j++; by [j] = i; quote [j] = getString(R.string.juvenal3); j++; by [j] = i; quote [j] = getString(R.string.juvenal4); j++; by [j] = i; quote [j] = getString(R.string.juvenal5); j++; by [j] = i; quote [j] = getString(R.string.juvenal6); j++; by [j] = i; quote [j] = getString(R.string.juvenal7); j++; by [j] = i; quote [j] = getString(R.string.juvenal8); j++; i++; author [i]= getString(R.string.bierce); by [j] = i; quote [j] = getString(R.string.bierce1); j++; by [j] = i; quote [j] = getString(R.string.bierce2); j++; by [j] = i; quote [j] = getString(R.string.bierce3); j++; by [j] = i; quote [j] = getString(R.string.bierce4); j++; by [j] = i; quote [j] = getString(R.string.bierce5); j++; by [j] = i; quote [j] = getString(R.string.bierce6); j++; by [j] = i; quote [j] = getString(R.string.bierce7); j++; by [j] = i; quote [j] = getString(R.string.bierce8); j++; by [j] = i; quote [j] = getString(R.string.bierce9); j++; by [j] = i; quote [j] = getString(R.string.bierce10); j++; by [j] = i; quote [j] = getString(R.string.bierce11); j++; by [j] = i; quote [j] = getString(R.string.bierce12); j++; i++; author [i]= getString(R.string.aristotle); by [j] = i; quote [j] = getString(R.string.aristotle1); j++; by [j] = i; quote [j] = getString(R.string.aristotle2); j++; by [j] = i; quote [j] = getString(R.string.aristotle3); j++; by [j] = i; quote [j] = getString(R.string.aristotle4); j++; by [j] = i; quote [j] = getString(R.string.aristotle5); j++; by [j] = i; quote [j] = getString(R.string.aristotle6); j++; by [j] = i; quote [j] = getString(R.string.aristotle7); j++; by [j] = i; quote [j] = getString(R.string.aristotle8); j++; by [j] = i; quote [j] = getString(R.string.aristotle9); j++; by [j] = i; quote [j] = getString(R.string.aristotle10); j++; by [j] = i; quote [j] = getString(R.string.aristotle11); j++; by [j] = i; quote [j] = getString(R.string.aristotle12); j++; by [j] = i; quote [j] = getString(R.string.aristotle13); j++; by [j] = i; quote [j] = getString(R.string.aristotle14); j++; by [j] = i; quote [j] = getString(R.string.aristotle15); j++; by [j] = i; quote [j] = getString(R.string.aristotle16); j++; by [j] = i; quote [j] = getString(R.string.aristotle17); j++; by [j] = i; quote [j] = getString(R.string.aristotle18); j++; by [j] = i; quote [j] = getString(R.string.aristotle19); j++; by [j] = i; quote [j] = getString(R.string.aristotle20); j++; by [j] = i; quote [j] = getString(R.string.aristotle21); j++; by [j] = i; quote [j] = getString(R.string.aristotle22); j++; by [j] = i; quote [j] = getString(R.string.aristotle23); j++; by [j] = i; quote [j] = getString(R.string.aristotle24); j++; by [j] = i; quote [j] = getString(R.string.aristotle25); j++; by [j] = i; quote [j] = getString(R.string.aristotle26); j++; by [j] = i; quote [j] = getString(R.string.aristotle27); j++; by [j] = i; quote [j] = getString(R.string.aristotle28); j++; by [j] = i; quote [j] = getString(R.string.aristotle29); j++; by [j] = i; quote [j] = getString(R.string.aristotle30); j++; i++; author [i]= getString(R.string.chesterton); by [j] = i; quote [j] = getString(R.string.chesterton1); j++; by [j] = i; quote [j] = getString(R.string.chesterton2); j++; by [j] = i; quote [j] = getString(R.string.chesterton3); j++; by [j] = i; quote [j] = getString(R.string.chesterton4); j++; by [j] = i; quote [j] = getString(R.string.chesterton5); j++; by [j] = i; quote [j] = getString(R.string.chesterton6); j++; by [j] = i; quote [j] = getString(R.string.chesterton7); j++; by [j] = i; quote [j] = getString(R.string.chesterton8); j++; by [j] = i; quote [j] = getString(R.string.chesterton9); j++; by [j] = i; quote [j] = getString(R.string.chesterton10); j++; by [j] = i; quote [j] = getString(R.string.chesterton11); j++; by [j] = i; quote [j] = getString(R.string.chesterton12); j++; by [j] = i; quote [j] = getString(R.string.chesterton13); j++; by [j] = i; quote [j] = getString(R.string.chesterton14); j++; by [j] = i; quote [j] = getString(R.string.chesterton15); j++; by [j] = i; quote [j] = getString(R.string.chesterton16); j++; by [j] = i; quote [j] = getString(R.string.chesterton17); j++; by [j] = i; quote [j] = getString(R.string.chesterton18); j++; by [j] = i; quote [j] = getString(R.string.chesterton19); j++; by [j] = i; quote [j] = getString(R.string.chesterton20); j++; by [j] = i; quote [j] = getString(R.string.chesterton21); j++; by [j] = i; quote [j] = getString(R.string.chesterton22); j++; by [j] = i; quote [j] = getString(R.string.chesterton23); j++; by [j] = i; quote [j] = getString(R.string.chesterton24); j++; by [j] = i; quote [j] = getString(R.string.chesterton25); j++; by [j] = i; quote [j] = getString(R.string.chesterton26); j++; by [j] = i; quote [j] = getString(R.string.chesterton27); j++; by [j] = i; quote [j] = getString(R.string.chesterton28); j++; by [j] = i; quote [j] = getString(R.string.chesterton29); j++; by [j] = i; quote [j] = getString(R.string.chesterton30); j++; by [j] = i; quote [j] = getString(R.string.chesterton31); j++; by [j] = i; quote [j] = getString(R.string.chesterton32); j++; by [j] = i; quote [j] = getString(R.string.chesterton33); j++; by [j] = i; quote [j] = getString(R.string.chesterton34); j++; by [j] = i; quote [j] = getString(R.string.chesterton35); j++; by [j] = i; quote [j] = getString(R.string.chesterton36); j++; by [j] = i; quote [j] = getString(R.string.chesterton37); j++; i++; author [i]= getString(R.string.euripides); by [j] = i; quote [j] = getString(R.string.euripides1); j++; by [j] = i; quote [j] = getString(R.string.euripides2); j++; by [j] = i; quote [j] = getString(R.string.euripides3); j++; by [j] = i; quote [j] = getString(R.string.euripides4); j++; by [j] = i; quote [j] = getString(R.string.euripides5); j++; by [j] = i; quote [j] = getString(R.string.euripides6); j++; by [j] = i; quote [j] = getString(R.string.euripides7); j++; by [j] = i; quote [j] = getString(R.string.euripides8); j++; by [j] = i; quote [j] = getString(R.string.euripides9); j++; by [j] = i; quote [j] = getString(R.string.euripides10); j++; by [j] = i; quote [j] = getString(R.string.euripides11); j++; by [j] = i; quote [j] = getString(R.string.euripides12); j++; by [j] = i; quote [j] = getString(R.string.euripides13); j++; by [j] = i; quote [j] = getString(R.string.euripides14); j++; by [j] = i; quote [j] = getString(R.string.euripides15); j++; by [j] = i; quote [j] = getString(R.string.euripides16); j++; by [j] = i; quote [j] = getString(R.string.euripides17); j++; by [j] = i; quote [j] = getString(R.string.euripides18); j++; by [j] = i; quote [j] = getString(R.string.euripides19); j++; by [j] = i; quote [j] = getString(R.string.euripides20); j++; by [j] = i; quote [j] = getString(R.string.euripides21); j++; by [j] = i; quote [j] = getString(R.string.euripides22); j++; i++; author [i]= getString(R.string.aeschylus); by [j] = i; quote [j] = getString(R.string.aeschylus1); j++; by [j] = i; quote [j] = getString(R.string.aeschylus2); j++; by [j] = i; quote [j] = getString(R.string.aeschylus3); j++; by [j] = i; quote [j] = getString(R.string.aeschylus4); j++; by [j] = i; quote [j] = getString(R.string.aeschylus5); j++; by [j] = i; quote [j] = getString(R.string.aeschylus6); j++; by [j] = i; quote [j] = getString(R.string.aeschylus7); j++; by [j] = i; quote [j] = getString(R.string.aeschylus8); j++; by [j] = i; quote [j] = getString(R.string.aeschylus9); j++; by [j] = i; quote [j] = getString(R.string.aeschylus10); j++; i++; author [i]= getString(R.string.socrates); by [j] = i; quote [j] = getString(R.string.socrates1); j++; by [j] = i; quote [j] = getString(R.string.socrates2); j++; by [j] = i; quote [j] = getString(R.string.socrates3); j++; by [j] = i; quote [j] = getString(R.string.socrates4); j++; by [j] = i; quote [j] = getString(R.string.socrates5); j++; by [j] = i; quote [j] = getString(R.string.socrates6); j++; by [j] = i; quote [j] = getString(R.string.socrates7); j++; by [j] = i; quote [j] = getString(R.string.socrates8); j++; by [j] = i; quote [j] = getString(R.string.socrates9); j++; by [j] = i; quote [j] = getString(R.string.socrates10); j++; by [j] = i; quote [j] = getString(R.string.socrates11); j++; by [j] = i; quote [j] = getString(R.string.socrates12); j++; by [j] = i; quote [j] = getString(R.string.socrates13); j++; by [j] = i; quote [j] = getString(R.string.socrates14); j++; by [j] = i; quote [j] = getString(R.string.socrates15); j++; by [j] = i; quote [j] = getString(R.string.socrates16); j++; by [j] = i; quote [j] = getString(R.string.socrates17); j++; by [j] = i; quote [j] = getString(R.string.socrates18); j++; by [j] = i; quote [j] = getString(R.string.socrates19); j++; by [j] = i; quote [j] = getString(R.string.socrates20); j++; i++; author [i]= getString(R.string.wilde); by [j] = i; quote [j] = getString(R.string.wilde1); j++; by [j] = i; quote [j] = getString(R.string.wilde2); j++; by [j] = i; quote [j] = getString(R.string.wilde3); j++; by [j] = i; quote [j] = getString(R.string.wilde4); j++; by [j] = i; quote [j] = getString(R.string.wilde5); j++; by [j] = i; quote [j] = getString(R.string.wilde6); j++; by [j] = i; quote [j] = getString(R.string.wilde7); j++; by [j] = i; quote [j] = getString(R.string.wilde8); j++; by [j] = i; quote [j] = getString(R.string.wilde9); j++; by [j] = i; quote [j] = getString(R.string.wilde10); j++; by [j] = i; quote [j] = getString(R.string.wilde11); j++; by [j] = i; quote [j] = getString(R.string.wilde12); j++; by [j] = i; quote [j] = getString(R.string.wilde13); j++; by [j] = i; quote [j] = getString(R.string.wilde14); j++; by [j] = i; quote [j] = getString(R.string.wilde15); j++; by [j] = i; quote [j] = getString(R.string.wilde16); j++; by [j] = i; quote [j] = getString(R.string.wilde17); j++; by [j] = i; quote [j] = getString(R.string.wilde18); j++; by [j] = i; quote [j] = getString(R.string.wilde19); j++; by [j] = i; quote [j] = getString(R.string.wilde20); j++; by [j] = i; quote [j] = getString(R.string.wilde21); j++; by [j] = i; quote [j] = getString(R.string.wilde22); j++; by [j] = i; quote [j] = getString(R.string.wilde23); j++; by [j] = i; quote [j] = getString(R.string.wilde24); j++; by [j] = i; quote [j] = getString(R.string.wilde25); j++; by [j] = i; quote [j] = getString(R.string.wilde26); j++; by [j] = i; quote [j] = getString(R.string.wilde27); j++; by [j] = i; quote [j] = getString(R.string.wilde28); j++; by [j] = i; quote [j] = getString(R.string.wilde29); j++; by [j] = i; quote [j] = getString(R.string.wilde30); j++; by [j] = i; quote [j] = getString(R.string.wilde31); j++; by [j] = i; quote [j] = getString(R.string.wilde32); j++; by [j] = i; quote [j] = getString(R.string.wilde33); j++; by [j] = i; quote [j] = getString(R.string.wilde34); j++; by [j] = i; quote [j] = getString(R.string.wilde35); j++; by [j] = i; quote [j] = getString(R.string.wilde36); j++; by [j] = i; quote [j] = getString(R.string.wilde37); j++; by [j] = i; quote [j] = getString(R.string.wilde38); j++; by [j] = i; quote [j] = getString(R.string.wilde39); j++; by [j] = i; quote [j] = getString(R.string.wilde40); j++; by [j] = i; quote [j] = getString(R.string.wilde41); j++; by [j] = i; quote [j] = getString(R.string.wilde42); j++; by [j] = i; quote [j] = getString(R.string.wilde43); j++; by [j] = i; quote [j] = getString(R.string.wilde44); j++; by [j] = i; quote [j] = getString(R.string.wilde45); j++; i++; author [i]= getString(R.string.swift); by [j] = i; quote [j] = getString(R.string.swift1); j++; by [j] = i; quote [j] = getString(R.string.swift2); j++; by [j] = i; quote [j] = getString(R.string.swift3); j++; by [j] = i; quote [j] = getString(R.string.swift4); j++; by [j] = i; quote [j] = getString(R.string.swift5); j++; by [j] = i; quote [j] = getString(R.string.swift6); j++; by [j] = i; quote [j] = getString(R.string.swift7); j++; by [j] = i; quote [j] = getString(R.string.swift8); j++; by [j] = i; quote [j] = getString(R.string.swift9); j++; by [j] = i; quote [j] = getString(R.string.swift10); j++; by [j] = i; quote [j] = getString(R.string.swift11); j++; by [j] = i; quote [j] = getString(R.string.swift12); j++; by [j] = i; quote [j] = getString(R.string.swift13); j++; by [j] = i; quote [j] = getString(R.string.swift14); j++; by [j] = i; quote [j] = getString(R.string.swift15); j++; by [j] = i; quote [j] = getString(R.string.swift16); j++; by [j] = i; quote [j] = getString(R.string.swift17); j++; by [j] = i; quote [j] = getString(R.string.swift18); j++; by [j] = i; quote [j] = getString(R.string.swift19); j++; by [j] = i; quote [j] = getString(R.string.swift20); j++; by [j] = i; quote [j] = getString(R.string.swift21); j++; by [j] = i; quote [j] = getString(R.string.swift22); j++; by [j] = i; quote [j] = getString(R.string.swift23); j++; by [j] = i; quote [j] = getString(R.string.swift24); j++; i++; author [i]= getString(R.string.pope); by [j] = i; quote [j] = getString(R.string.pope1); j++; by [j] = i; quote [j] = getString(R.string.pope2); j++; by [j] = i; quote [j] = getString(R.string.pope3); j++; by [j] = i; quote [j] = getString(R.string.pope4); j++; by [j] = i; quote [j] = getString(R.string.pope5); j++; by [j] = i; quote [j] = getString(R.string.pope6); j++; by [j] = i; quote [j] = getString(R.string.pope7); j++; by [j] = i; quote [j] = getString(R.string.pope8); j++; by [j] = i; quote [j] = getString(R.string.pope9); j++; by [j] = i; quote [j] = getString(R.string.pope10); j++; by [j] = i; quote [j] = getString(R.string.pope11); j++; by [j] = i; quote [j] = getString(R.string.pope12); j++; by [j] = i; quote [j] = getString(R.string.pope13); j++; by [j] = i; quote [j] = getString(R.string.pope14); j++; by [j] = i; quote [j] = getString(R.string.pope15); j++; by [j] = i; quote [j] = getString(R.string.pope16); j++; by [j] = i; quote [j] = getString(R.string.pope17); j++; i++; author [i]= getString(R.string.dickens); by [j] = i; quote [j] = getString(R.string.dickens1); j++; by [j] = i; quote [j] = getString(R.string.dickens2); j++; by [j] = i; quote [j] = getString(R.string.dickens3); j++; by [j] = i; quote [j] = getString(R.string.dickens4); j++; by [j] = i; quote [j] = getString(R.string.dickens5); j++; by [j] = i; quote [j] = getString(R.string.dickens6); j++; by [j] = i; quote [j] = getString(R.string.dickens7); j++; by [j] = i; quote [j] = getString(R.string.dickens8); j++; by [j] = i; quote [j] = getString(R.string.dickens9); j++; by [j] = i; quote [j] = getString(R.string.dickens10); j++; by [j] = i; quote [j] = getString(R.string.dickens11); j++; by [j] = i; quote [j] = getString(R.string.dickens12); j++; by [j] = i; quote [j] = getString(R.string.dickens13); j++; by [j] = i; quote [j] = getString(R.string.dickens14); j++; by [j] = i; quote [j] = getString(R.string.dickens15); j++; by [j] = i; quote [j] = getString(R.string.dickens16); j++; i++; author [i]= getString(R.string.trollope); by [j] = i; quote [j] = getString(R.string.trollope1); j++; by [j] = i; quote [j] = getString(R.string.trollope2); j++; by [j] = i; quote [j] = getString(R.string.trollope3); j++; by [j] = i; quote [j] = getString(R.string.trollope4); j++; by [j] = i; quote [j] = getString(R.string.trollope5); j++; by [j] = i; quote [j] = getString(R.string.trollope6); j++; by [j] = i; quote [j] = getString(R.string.trollope7); j++; by [j] = i; quote [j] = getString(R.string.trollope8); j++; by [j] = i; quote [j] = getString(R.string.trollope9); j++; by [j] = i; quote [j] = getString(R.string.trollope10); j++; by [j] = i; quote [j] = getString(R.string.trollope11); j++; by [j] = i; quote [j] = getString(R.string.trollope12); j++; by [j] = i; quote [j] = getString(R.string.trollope13); j++; i++; author [i]= getString(R.string.austen); by [j] = i; quote [j] = getString(R.string.austen1); j++; by [j] = i; quote [j] = getString(R.string.austen2); j++; by [j] = i; quote [j] = getString(R.string.austen3); j++; by [j] = i; quote [j] = getString(R.string.austen4); j++; by [j] = i; quote [j] = getString(R.string.austen5); j++; by [j] = i; quote [j] = getString(R.string.austen6); j++; by [j] = i; quote [j] = getString(R.string.austen7); j++; by [j] = i; quote [j] = getString(R.string.austen8); j++; by [j] = i; quote [j] = getString(R.string.austen9); j++; by [j] = i; quote [j] = getString(R.string.austen10); j++; by [j] = i; quote [j] = getString(R.string.austen11); j++; i++; author [i]= getString(R.string.thackeray); by [j] = i; quote [j] = getString(R.string.thackeray1); j++; by [j] = i; quote [j] = getString(R.string.thackeray2); j++; by [j] = i; quote [j] = getString(R.string.thackeray3); j++; by [j] = i; quote [j] = getString(R.string.thackeray4); j++; by [j] = i; quote [j] = getString(R.string.thackeray5); j++; by [j] = i; quote [j] = getString(R.string.thackeray6); j++; i++; author [i]= getString(R.string.kipling); by [j] = i; quote [j] = getString(R.string.kipling1); j++; by [j] = i; quote [j] = getString(R.string.kipling2); j++; by [j] = i; quote [j] = getString(R.string.kipling3); j++; by [j] = i; quote [j] = getString(R.string.kipling4); j++; by [j] = i; quote [j] = getString(R.string.kipling5); j++; by [j] = i; quote [j] = getString(R.string.kipling6); j++; by [j] = i; quote [j] = getString(R.string.kipling7); j++; by [j] = i; quote [j] = getString(R.string.kipling8); j++; by [j] = i; quote [j] = getString(R.string.kipling9); j++; by [j] = i; quote [j] = getString(R.string.kipling10); j++; i++; author [i]= getString(R.string.shakespeare); by [j] = i; quote [j] = getString(R.string.shakespeare2); j++; by [j] = i; quote [j] = getString(R.string.shakespeare3); j++; by [j] = i; quote [j] = getString(R.string.shakespeare4); j++; by [j] = i; quote [j] = getString(R.string.shakespeare5); j++; by [j] = i; quote [j] = getString(R.string.shakespeare6); j++; by [j] = i; quote [j] = getString(R.string.shakespeare7); j++; by [j] = i; quote [j] = getString(R.string.shakespeare8); j++; by [j] = i; quote [j] = getString(R.string.shakespeare9); j++; by [j] = i; quote [j] = getString(R.string.shakespeare10); j++; by [j] = i; quote [j] = getString(R.string.shakespeare11); j++; by [j] = i; quote [j] = getString(R.string.shakespeare12); j++; numQuotes = j; } public static Integer[] jlet = {R.drawable.space, R.drawable.ja, R.drawable.jb, R.drawable.jc, R.drawable.jd, R.drawable.je, R.drawable.jf, R.drawable.jg, R.drawable.jh, R.drawable.ji, R.drawable.jj, R.drawable.jk, R.drawable.jl, R.drawable.jm, R.drawable.jn, R.drawable.jo, R.drawable.jp, R.drawable.jq, R.drawable.jr, R.drawable.js, R.drawable.jt, R.drawable.ju, R.drawable.jv, R.drawable.jw, R.drawable.jx, R.drawable.jy, R.drawable.jz, R.drawable.capja, R.drawable.capjb, R.drawable.capjc, R.drawable.capjd, R.drawable.capje, R.drawable.capjf, R.drawable.capjg, R.drawable.capjh, R.drawable.capji, R.drawable.capjj, R.drawable.capjk, R.drawable.capjl, R.drawable.capjm, R.drawable.capjn, R.drawable.capjo, R.drawable.capjp, R.drawable.capjq, R.drawable.capjr, R.drawable.capjs, R.drawable.capjt, R.drawable.capju, R.drawable.capjv, R.drawable.capjw, R.drawable.capjx, R.drawable.capjy, R.drawable.capjz, R.drawable.punc1, R.drawable.punc2, R.drawable.punc3, R.drawable.punc4, R.drawable.punc5, R.drawable.punc6 }; public static Integer[] blet = {R.drawable.space, R.drawable.ba, R.drawable.bb, R.drawable.bc, R.drawable.bd, R.drawable.be, R.drawable.bf, R.drawable.bg, R.drawable.bh, R.drawable.bi, R.drawable.bj, R.drawable.bk, R.drawable.bl, R.drawable.bm, R.drawable.bn, R.drawable.bo, R.drawable.bp, R.drawable.bq, R.drawable.br, R.drawable.bs, R.drawable.bt, R.drawable.bu, R.drawable.bv, R.drawable.bw, R.drawable.bx, R.drawable.by, R.drawable.bz, R.drawable.capba, R.drawable.capbb, R.drawable.capbc, R.drawable.capbd, R.drawable.capbe, R.drawable.capbf, R.drawable.capbg, R.drawable.capbh, R.drawable.capbi, R.drawable.capbj, R.drawable.capbk, R.drawable.capbl, R.drawable.capbm, R.drawable.capbn, R.drawable.capbo, R.drawable.capbp, R.drawable.capbq, R.drawable.capbr, R.drawable.capbs, R.drawable.capbt, R.drawable.capbu, R.drawable.capbv, R.drawable.capbw, R.drawable.capbx, R.drawable.capby, R.drawable.capbz }; public static Integer[] rlet = {R.drawable.space, R.drawable.ra, R.drawable.rb, R.drawable.rc, R.drawable.rd, R.drawable.re, R.drawable.rf, R.drawable.rg, R.drawable.rh, R.drawable.ri, R.drawable.rj, R.drawable.rk, R.drawable.rl, R.drawable.rm, R.drawable.rn, R.drawable.ro, R.drawable.rp, R.drawable.rq, R.drawable.rr, R.drawable.rs, R.drawable.rt, R.drawable.ru, R.drawable.rv, R.drawable.rw, R.drawable.rx, R.drawable.ry, R.drawable.rz, R.drawable.capra, R.drawable.caprb, R.drawable.caprc, R.drawable.caprd, R.drawable.capre, R.drawable.caprf, R.drawable.caprg, R.drawable.caprh, R.drawable.capri, R.drawable.caprj, R.drawable.caprk, R.drawable.caprl, R.drawable.caprm, R.drawable.caprn, R.drawable.capro, R.drawable.caprp, R.drawable.caprq, R.drawable.caprr, R.drawable.caprs, R.drawable.caprt, R.drawable.capru, R.drawable.caprv, R.drawable.caprw, R.drawable.caprx, R.drawable.capry, R.drawable.caprz }; }


app/java/com.(the project name)/ImageAlphabet - code for alphabet gridview - a new file

package com.edkins.decode; import ... public class ImageAlphabet extends BaseAdapter { private AppCompatActivity mContext; public ImageAlphabet(AppCompatActivity c) {mContext = c;} public int getCount() {return 26;} public Object getItem(int position) {return null;} public long getItemId(int position) {return 0;} public View getView(int position, View convertView, ViewGroup parent) { ImageView imageView; if (convertView == null) { imageView = new ImageView(mContext); RelativeLayout rel = (RelativeLayout) mContext.findViewById(R.id.relLayout); int w = rel.getWidth() / 26; int h = (w * 112) / 84; imageView.setLayoutParams(new GridView.LayoutParams(w, h)); } else { imageView = (ImageView) convertView; } if (MainActivity.coded[position+1] == (position+1)) { imageView.setImageResource(R.drawable.coded); } else if ((MainActivity.codeLetter-1)==position) { imageView.setImageResource(MainActivity.blet[position+1]); } else { imageView.setImageResource(MainActivity.jlet[position+1]); } return imageView; } }


app/java/com.(the project name)/ImageQuote - code for quote gridview - a new file

package com.edkins.decode; import ... public class ImageQuote extends BaseAdapter { private AppCompatActivity mContext; public ImageQuote(AppCompatActivity c) {mContext = c;} public int getCount() {return MainActivity.gridLength;} public Object getItem(int position) {return null;} public long getItemId(int position) {return 0;} // create new ImageView for palette public View getView(int position, View convertView, ViewGroup parent) { ImageView imageView; if (convertView == null) { imageView = new ImageView(mContext); RelativeLayout rel = (RelativeLayout) mContext.findViewById(R.id.relLayout); int w = rel.getWidth() / 26; int h = (w * 112) / 84; imageView.setLayoutParams(new GridView.LayoutParams(w, h)); } else { imageView = (ImageView) convertView; } int sub = MainActivity.qletCoded[position]; if (sub==MainActivity.qlet[position]) { imageView.setImageResource(MainActivity.jlet[sub]); } else if (MainActivity.quoteLetter==position) { imageView.setImageResource(MainActivity.blet[sub]); } else { imageView.setImageResource(MainActivity.rlet[sub]); } return imageView; } }


Index to my other websites

© Jo Edkins 2016