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.
app/manifests/AndroidManifest.xml - to force orientation
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
Decode quotesTap on letter in code, then letter in alphabetTap on coded letter (red)Tap on letter (not dot)"Finished! Quote souce: "". Errors: "NextResetVirgilA snake lurks in the grass.We cannot all of us do everything.God delights in an odd number.Let us singing as we go. The road will be less tedious.Love conquers all, and we must yield to Love.A wet summer and a fine winter should be the farmer\'s prayer.Practice and thought might gradually forge many an art.Time flies, never to be recalled.Vice thrives and lives by concealment.I fear the Greeks even when they bring gifts.They can because they think they can.Fortune favours the brave.Believe an expert.Marcus Aurelius AntoninusHow much time he saves who does not look to see what his neighbour says or does or thinks.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.It is not death that a man should fear, but he should fear never beginning to live.It is the act of a madman to pursue impossibilities.Look well into thyself. There is a source of strength which will always spring up if you will always look there.Remember this. There is a proper dignity and proportion to be observed in the performance of every act of life.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.Waste no more time talking about great souls and how they should be. Become one yourself!By a tranquil mind I mean nothing else than a mind well ordered.Never esteem anything as of advantage to you that will make you break your word or lose your self-respect.Nothing happens to anybody which he is not fitted by nature to bear.The universe is change, our life is what our thoughts make it.Think not disdainfully of death, but look on it with favour, for even death is one of the things that Nature wills.Very little is needed to make a happy life.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.You will find rest from vain fancies if you perform every act in life as though it were your last.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.ConfuciusBefore you embark on a journey of revenge, dig two graves.Everything has its beauty but not everyone sees it.Forget injuries, never forget kindnesses.He who will not economize will have to agonize.I hear and I forget. I see and I remember. I do and I understand.Ignorance is the night of the mind, but a night without moon and star.It does not matter how slowly you go so long as you do not stop.Men\'s natures are alike, it is their habits that carry them far apart.Our greatest glory is not in never falling, but in getting up every time we do.Respect yourself and others will respect you.To see what is right, and not to do it, is want of courage or of principle.What the superior man seeks is in himself. What the small man seeks is in others.When anger rises, think of the consequences.When we see men of a contrary character, we should turn inwards and examine ourselves.Wheresoever you go, go with all your heart.He who speaks without modesty will find it difficult to make his words good.If a man takes no thought about what is distant, he will find sorrow near at hand.Is virtue a thing remote? I wish to be virtuous, and lo! Virtue is at hand.Learning without thought is labour lost. Thought without learning is perilous.Recompense injury with justice, and recompense kindness with kindness.The cautious seldom err.How much time he saves who does not look to see what his neighbour says or does or thinks.AnonymousYou 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.A camel is a horse designed by committee.Accept nothing, challenge everything.Artificial intelligence is no match for natural stupidity.A conscience is what hurts when all your other parts feel so good.Begin with the end in mind.Blessed are those who can laugh at themselves, for they shall never cease to be amused.Build something that\'s foolproof and they invent a better fool.Dancing is a perpendicular expression of a horizontal desire.Five out of four people have problems with fractions.Friends may come and go, but enemies accumulate.History is not about who\'s right. It\'s about who\'s left.Hope for the best, but prepare for the worst.I always mean what I say but I don\'t always say what I mean.If intelligence had anything to do with the voting process, then all the smart people would vote the same.Never be afraid to try something new. Remember, amateurs built the ark, professionals built the Titanic.Nobody\'s perfect. I\'m nobody. Therefore, I must be perfect.Question it if it\'s free.Reach for the stars, or you\'ll never touch the sky.There are ten types of people in the world, those who understand binary and those who don\'t.There are two types of people in the world, those who sort people into different categories, and those who don\'t.Time flies like an arrow, fruit flies like a banana. But what are time flies and why do they like an arrow?Without education, we are in horrible and deadly danger of taking educated people seriously.HoraceMix a little foolishness with your prudence. It\'s good to be silly at the right moment.The appearance of right often leads us wrong.There is a measure in everything. There are fixed limits beyond which and short of which right cannot find a resting place.He who has begun has half done. Dare to be wise. Begin!He wins every hand who mingles profit with pleasure.It is when I struggle to be brief that I become obscure.Once a word has been allowed to escape, it cannot be recalled.Cease to ask what the morrow will bring forth. And set down as gain each day that Fortune grants.In adversity remember to keep an even mind.Pale Death with impartial tread beats at the poor man\'s cottage door and at the palaces of kings.Seize the day, put no trust in the morrow!Life grants nothing to us mortals without hard work.OvidAll things may corrupt when minds are prone to evil.By faithful study of the nobler arts, our nature\'s softened, and more gentle grows.Chance is always powerful. Let your hook be always cast. In the pool where you least expect it, there will be a fish.Take rest. A field that has rested gives a bountiful crop.So I can\'t live either without you or with you.Nothing is stronger than habit.To be loved, be lovable.We can learn even from our enemies.PlatoBe kind, for everyone you meet is fighting a hard battle.Death is not the worst that can happen to men.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.Never discourage anyone who continually makes progress, no matter how slow.No human thing is of serious importance.Only the dead have seen the end of war.The price good men pay for indifference to public affairs is to be ruled by evil men.Thinking is the talking of the soul with itself.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.Wise men talk because they have something to say, fools, because they have to say something.You can discover more about a person in an hour of play than in a year of conversation.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.The greatest penalty of evildoing, namely, to grow into the likeness of bad men.Mankind censure injustice fearing that they may be the victims of it, and not because they shrink from committing it.The beginning is the most important part of the work.The direction in which education starts a man will determine his future life.Wealth is the parent of luxury and indolence, and poverty of meanness and viciousness, and both of discontent.JuvenalBe gentle with the young.Fortune can, for her pleasure, fools advance, and toss them on the wheels of Chance.One path alone leads to a life of peace: The path of virtue.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.It is not easy for men to rise whose qualities are thwarted by poverty.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!Who will guard the guards themselves?You should pray for a sound mind in a sound body.AristotleHappiness depends upon ourselves.How many a dispute could have been deflated into a single paragraph if the disputants had dared to define their terms.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.It is in justice that the ordering of society is centered.It is the mark of an educated mind to be able to entertain a thought without accepting it.Law is mind without reason.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.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.Pleasure in the job puts perfection in the work.Poverty is the parent of revolution and crime.The gods too are fond of a joke.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.The only stable state is the one in which all men are equal before the law.To give a satisfactory decision as to the truth it is necessary to be rather an arbitrator than a party to the dispute.To perceive is to suffer.We are what we repeatedly do. Excellence then, is not an act, but a habit.Young people are in a condition like permanent intoxication, because youth is sweet and they are growing.It is not always the same thing to be a good man and a good citizen.Misfortune shows those who are not really friends.It is possible to fail in many ways, while to succeed is possible only in one way.To be conscious that we are perceiving or thinking is to be conscious of our own existence.We make war that we may live in peace.With regard to excellence, it is not enough to know, but we must try to have and use it.In all things of nature there is something of the marvellous.Time crumbles things; everything grows old under the power of Time and is forgotten through the lapse of Time.Even when laws have been written down, they ought not always to remain unaltered.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.It is the nature of desire not to be satisfied, and most men live only for the gratification of it.Law is order, and good law is good order.Man is by nature a political animal.BierceAbsurdity is a statement or belief manifestly inconsistent with one\'s own opinion.Acquaintance is a person whom we know well enough to borrow from, but not well enough to lend to.Admiration is our polite recognition of another\'s resemblance to ourselves.Bore is a person who talks when you wish him to listen.Brain is an apparatus with which we think we think.Cabbage is a familiar kitchen-garden vegetable about as large and wise as a man\'s head.Cogito cogito ergo cogito sum means I think that I think, therefore I think that I am.Politeness is the most acceptable hypocrisy.Politics is the strife of interests masquerading as a contest of principles.The gambling known as business looks with austere disfavor upon the business known as gambling.There is nothing new under the sun but there are lots of old things we don\'t know.To be positive is to be mistaken at the top of one\'s voice.G. K. Chesterton"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."An adventure is only an inconvenience rightly considered. An inconvenience is an adventure wrongly considered.Art, like morality, consists of drawing the line somewhere.Beware of no man more than yourself; we carry our worst enemies within us.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.Democracy means government by the uneducated, while aristocracy means government by the badly educated.Don\'t ever take a fence down until you know the reason it was put up.Education is simply the soul of a society as it passes from one generation to another.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.Fallacies do not cease to be fallacies because they become fashions.I believe in getting into hot water; it keeps you clean.I owe my success to having listened respectfully to the very best advice, and then going away and doing the exact opposite.I say that a man must be certain of his morality for the simple reason that he has to suffer for it.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.Man seems to be capable of great virtues but not of small virtues; capable of defying his torturer but not of keeping his temper.Music with dinner is an insult both to the cook and the violinist.Poets have been mysteriously silent on the subject of cheese.Real development is not leaving things behind, as on a road, but drawing life from them, as on a root.The Bible tells us to love our neighbors, and also to love our enemies, probably because they are generally the same people.The thing I hate about an argument is that it always interrupts a discussion.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.To have a right to do a thing is not at all the same as to be right in doing it.There are no wise few. Every aristocracy that has ever existed has behaved, in all essential points, exactly like a small mob.All slang is a metaphor, and all metaphor is poetry.Literature is a luxury. Fiction is a necessity.The rich are the scum of the earth in every country.There is no such thing on earth as an uninteresting subject. The only thing that can exist is an uninterested person.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.It isn\'t that they can\'t see the solution. It is that they can\'t see the problem.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.Impartiality is a pompous name for indifference, which is an elegant name for ignorance.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.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.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.The poor object to being governed badly, while the rich object to being governed at all.I\'ve searched all the parks in all the cities, and found no statues of committees.The big commercial concerns of today are quite exceptionally incompetent. They will be even more incompetent when they are omnipotent.EuripidesCircumstances rule men and not men rule circumstances.Do not consider painful what is good for you.Short is the joy that guilty pleasure brings.Talk sense to a fool and he calls you foolish.The wisest men follow their own direction.Waste not fresh tears over old griefs.Your very silence shows you agree.Slight not what\'s near, while aiming at what\'s far.A bad beginning makes a bad ending.The company of just and righteous men is better than wealth and a rich estate.Time will explain it all. He is a talker, and needs no questioning before he speaks.Dishonor will not trouble me, once I am dead.I have been versed in the reasonings of men, but Fate is stronger than anything I have known.In case of dissension, never dare to judge till you\'ve heard the other side.Leave no stone unturned.In this world, second thoughts, it seems, are best.The day is for honest men, the night for thieves.When love is in excess it brings a man no honour nor worthiness.The gods visit the sins of the fathers upon the children.Whoso neglects learning in his youth, loses the past and is dead for the future.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.Slow but sure moves the might of the gods.AeschylusCircumstances rule men and not men rule circumstances.In war, truth is the first casualty.It is a profitable thing, if one is wise, to seem foolish.It is in the character of very few men to honor without envy a friend who has prospered.Only when man\'s life comes to its end in prosperity can one call that man happy.For somehow this is tyranny\'s disease, to trust no friends.Time as he grows old teaches all things.Words are the physicians of the mind diseased.Destiny waits alike for the free man as well as for him enslaved by another\'s might.His resolve is not to seem, but to be, the best.SocratesCircumstances rule men and not men rule circumstances.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.Do not do to others what angers you if done to you by others.Envy is the ulcer of the soul.If a man is proud of his wealth, he should not be praised until it is known how he employs it.Remember that there is nothing stable in human affairs. Therefore avoid undue elation in prosperity, or undue depression in adversity.Think not those faithful who praise all thy words and actions, but those who kindly reprove thy faults.Thou shouldst eat to live, not live to eat.Having the fewest wants, I am nearest to the gods.I know nothing except the fact of my ignorance.I am not an Athenian or a Greek, but a citizen of the world.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.The hour of departure has arrived, and we go our ways, I to die, and you to live. Which is better God only knows.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.False words are not only evil in themselves, but they infect the soul with evil.Wealth is the parent of luxury and indolence, and poverty of meanness and viciousness, and both of discontent.I have hardly ever known a mathematician who was capable of reasoning.Bodily exercise, when compulsory, does no harm to the body, but knowledge which is acquired under compulsion obtains no hold on the mind.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.Democracy, which is a charming form of government, full of variety and disorder, and dispensing a sort of equality to equals and unequals alike.Oscar WildeCircumstances rule men and not men rule circumstances.I have the simplest tastes. I am always satisfied with the best.A thing is not necessarily true because a man dies for it.Consistency is the last refuge of the unimaginative.I put all my genius into my life. I put only my talent into my works.An excellent man. He has no enemies, and none of his friends like him.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.No great artist ever sees things as they really are. If he did, he would cease to be an artist.Man is least himself when he talks in his own person. Give him a mask, and he will tell you the truth.A little sincerity is a dangerous thing, and a great deal of it is absolutely fatal.A poet can survive everything but a misprint.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.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.It is always a silly thing to give advice, but to give good advice is absolutely fatal.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.All art is immoral.He is really not so ugly after all, provided, of course, that one shuts one\'s eyes, and does not look at him.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.One can survive everything nowadays except death.Psychology is in its infancy, as a science. I hope in the interests of Art, it will always remain so.Life is much too important a thing ever to talk seriously about it.Experience is the name men give to their mistakes.Hard work is simply the refuge of people who have nothing whatever to do.Life imitates art far more than art imitates Life.Anybody can make history. Only a great man can write it.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.I can resist everything except temptation.My experience is that as soon as people are old enough to know better, they don\'t know anything at all.In this world there are only two tragedies. One is not getting what one wants, and the other is getting it.What is a cynic? A man who knows the price of everything and the value of nothing.Children begin by loving their parents. After a time they judge them. Rarely if ever do they forgive them.Education is an admirable thing. But it is well to remember from time to time that nothing that is worth knowing can be taught.Art is the only serious thing in the world. And the artist is the only person who is never serious.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.If one tells the truth, one is sure, sooner or later, to be found out.Patriotism is the vice of nations.Only the shallow know themselves.The old believe everything. The middle aged suspect everything. The young know everything.To love oneself is the beginning of a lifelong romance.One should always be a little improbable.I always pass on good advice. It is the only thing to do with it. It is never of any use to oneself.Only dull people are brilliant at breakfast.I love talking about nothing. It is the only thing I know anything about.To live is the rarest thing in the world. Most people exist, that is all.A man who does not think for himself does not think at all.Jonathan SwiftSatire is a sort of glass, wherein beholders do generally discover everybody\'s face but their own.Laws are like cobwebs, which may catch small flies, but let wasps and hornets break through.There is nothing in this world constant, but inconstancy.There are few, very few, that will own themselves in a mistake, though all the world sees them to be in downright nonsense.Falsehood flies, and truth comes limping after it.One enemy can do more hurt, than ten friends can do good.Nothing is so hard for those who abound in riches, as to conceive how others can be in want.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.Good manners is the art of making those people easy with whom we converse.Pride, ill nature, and want of sense, are the three great sources of ill manners.Reason is a very light rider and easily shook off.We have just enough religion to make us hate, but not enough to make us love one another.Every man desires to live long, but no man would be old.The Stoical scheme of supplying our wants by lopping off our desires, is like cutting off our feet when we want shoes.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.Ambition often puts men upon doing the meanest offices; so climbing is performed in the same posture with creeping.The sight of you is good for sore eyes.I won\'t quarrel with my bread and butter.She\'s no chicken. She\'s on the wrong side of thirty, if she be a day.She looks as if butter wouldn\'t melt in her mouth.He was a bold man that first ate an oyster.That\'s as well said, as if I had said it myself.You must take the will for the deed.Fingers were made before forks, and hands before knives.Alexander PopeA little learning is a dangerous thing.They dream in courtship, but in wedlock wake.Histories are more full of examples of the fidelity of dogs than of friends.Nature and Nature\'s laws lay hid in night. God said, \"Let Newton be!\" and all was light.Luxurious lobster nights, farewell, for sober, studious days!"Blessed is the man who expects nothing, for he shall never be disappointed.True ease in writing comes from art, not chance, as those move easiest who have learned to dance.To err is human, to forgive divine.To be angry is to revenge the fault of others upon ourselves.At every word a reputation dies.The hungry judges soon the sentence sign, and wretches hang that jurymen may dine.I never knew any man in my life who could not bear another\'s misfortunes perfectly like a Christian.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.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.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.Some people will never learn anything, for this reason, because they understand everything too soon.The most positive men are the most credulous.Charles DickensThe civility which money will purchase, is rarely extended to those who have none.If there were no bad people, there would be no good lawyers.Ask no questions, and you\'ll be told no lies.Throughout life, our worst weaknesses and meannesses are usually committed for the sake of the people we most despise.The pain of parting is nothing to the joy of meeting again.There are only two styles of portrait painting; the serious and the smirk.How can you capture the sympathies of the audience unless you have a small man, fighting against a bigger one?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.Here\'s the rule for bargains. \"Do other men, for they would do you.\" That\'s the true business precept.Rich folks may ride on camels, but it isn\'t so easy for them to see out of a needle\'s eye.Charity begins at home, and justice begins next door.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.Never be mean in anything. Never be false. Never be cruel.It was as true as turnips is. It was as true as taxes is. And nothing\'s truer than them.Let sleeping dogs lie. Who wants to rouse them?A man must take the fat with the lean.Anthony TrollopeThe man who worships mere wealth is a snob.There is no royal road to learning, no short cut to the acquirement of any art.There is no way of writing well and also of writing easily.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.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.But who ever yet was offered a secret and declined it?There is such a difference between life and theory.Flirting I take to be the excitement of love, without its reality, and without its ordinary result in marriage.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.Fame is a skittish jade, more fickle even than Fortune, and apt to shy, and bolt, and plunge away on very trifling causes.The grace and beauty of life will be clean gone when we all become useful men.The double pleasure of pulling down an opponent, and of raising oneself, is the charm of a politician’s life.Of all the needs a book has, the chief need is that it be readable.Jane AustenIt is a truth universally acknowledged that a single man in possession of a good fortune must be in want of a wife.One cannot be always laughing at a man without now and then stumbling on something witty.For what do we live, but to make sport for our neighbors and laugh at them in our turn?It was, perhaps, one of those cases in which advice is good or bad only as the event decides.One half of the world cannot understand the pleasures of the other.There certainly are not so many men of large fortune in the world as there are pretty women to deserve them.Surprises are foolish things. The pleasure is not enhanced, and the inconvenience is often considerable.There are people who the more you do for them, the less they will do for themselves.A woman, especially if she has the misfortune of knowing anything, should conceal it as well as she can.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.The person, be it gentleman or lady, who has not pleasure in a good novel must be intolerably stupid.William Makepeace ThackerayHe who meanly admires mean things is a snob.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?Stupid people, people who do not know how to laugh, are always pompous and selfconceited.Despair is perfectly compatible with a good dinner, I promise you.How hard it is to make an Englishman acknowledge that he is happy!I never know whether to pity or congratulate a man on coming to his senses.Rudyard KiplingGardens are not made by singing \"Oh, how beautiful,\" and sitting in the shade.Take everything you like seriously, except yourselves.There\'s no jealousy in the grave. Funny how the new things are the old things.Words are, of course, the most powerful drug used by mankind.He travels the fastest who travels alone.It\'s pretty, but is it Art?We have forty million reasons for failure, but not a single excuse.All the people like us are We, and everyone else is They.Borrow trouble for yourself, if that\'s your nature, but don\'t lend it to your neighbours.William ShakespeareWhat\'s in a name? That which we call a rose, by any other name would smell as sweet.The course of true love never did run smooth.Uneasy lies the head that wears a crown.A man can die but once.As merry as the day is long.Cowards die many times before their deaths. The valiant never taste of death but once.Neither a borrower nor a lender be.There is nothing either good or bad, but thinking makes it so.Some are born great, some achieve greatness, and some have greatness thrust upon \'em.Nothing can come of nothing.We are such stuff as dreams are made on, and our little life is rounded with a sleep.
app/res/layout/activity_main.xml - screen format
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= '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=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