r/Android • u/santaschesthairs Bundled Notes | Redirect File Organizer • Jan 26 '15
Guide The new step by step guide detailing how to get started developing Android apps, with no prior experience necessary. Includes every resource I used, simple explanations and an interesting first app tutorial. Everything you need to get started in Android Development is here.
A year ago, almost to the day, I compiled a post of all the resources that would be required for a complete programming noob to set out making an Android app. At the time the post was one of the highest on r/Android of all time. This year, having vastly improved my own skills, I’m out to make the ultimate guide to creating Android apps without prior experience.
Here is a link to the old post, in case you’re interested.
There are two ways of approaching this post:
- Be at a computer, follow the explanations and instructions and you’ll have an app and some basic skills to branch off by the end of it.
- Just read the post and learn some basic app skills.
What is Java?
Java is a programming language like C++, Python and Ruby. Essentially, most apps on the Android platform (most games and other apps are written in different languages) are written in Java. Approaching a programming language without prior experience is challenging, but with a little patience it is doable.
Java is an OOP or Objected Oriented-Programming Language
This means that Java is a programming language based on the concept of objects, which are essentially fields of data that can run code and store variables. For example, a String object is an object that contains any combination of letters, numbers and other characters. A String is formatted in quotation marks, here is an example use:
String name = "Dennis";
String surname = "Cometti";
String FullName = name + " " + surname;
After this runs, the variable FullName will equal “Dennis Cometti”. A String is an example of a basic object, other basic Objects in Java include Integers (any whole number), booleans (a true or false value) and floating points (decimal values like 3.0).
I HIGHLY recommend checking out this website for a more detailed explanation.
Objects can also contain other objects and variables, for example you could define a ‘Quote’ Object that contains two values: The actual quote and the name of the quoted person.
A lot of the fundamentals in Java are essentially plain English
All of Java is written in English, the structure of the words change but if enough attention is given to it can actually be very easy to understand. For example:
String name = "DENNIS";
name = name.toLowerCase();
It couldn’t be any clearer, this will assign the lower case converted “DENNIS” ("dennis") to the 'name' variable. After you have typed ‘name.’ Android Studio will give you a list of possible methods (like toLowerCase() or toUpperCase()) that can be used, so you get some guidance.
Classes, methods and objects in Java
• A variable holds a field of data. A variable might be a surname, your weight or the distance travelled by your car. A String is a variable that could contain “Dennis” and an int is a variable that could contain the number 89.
• A method is a function (like name.toLowerCase()). Basically a method does things using variables or any number of lines of code. You can write your own methods, for example in the app we will be making soon we will be making a method called getQuote(). A method might display a quote on a screen or change the text in a TextView.
• An object holds both variables and methods; one object might be the details of your car, a second object might represent my car.
• A class is a template that holds variables, methods and other objects.
So what is the difference between classes and objects?
A class would be a Car (containing no details but rather a template). An object would be your Car (containing all the details about the car).
A class would be a String (containing no details but rather a template). An object would be a ‘name’ (containing the String “Dennis”).
If you are confused, don’t worry, once you have followed the instructions you’ll understand it much clearer.
Some Java related resources
How do you get started making an app?
Get Android Studio
Android Studio is the new (just out of beta) Android Integrated Development Environment, don’t let the words confuse you – it’s essentially a program that has all the tools you need to make an app. Some people come across some issues installing Android Studio make sure you are Googling any issues that you come across in this stage, but you should be fine. You’ll come across many things you don’t understand when making apps but I guarantee you 1000 people have had the same problem before and there will be help or tutorials online (you shouldn’t need them for this exercise).
Instruction #1: Download and install the Java JDK
Instruction #2: Download and install Android Studio, but don’t open it yet.
Strings in Android
Strings as mentioned earlier, are used everywhere: App Dialogs, Titles, Messages, Error Logs and literally wherever you see characters. The problem is, when you are making an app with many Strings it can become quite fiddly. So Google created a solution: a single file that stores all of your Strings in one place, so you can get that one file translated and refer to those strings in tons of different parts of the code. Here’s a link from Google that can explain it in more detail
How Android Studio works
Android Studio contains all the tools you need to make an app: for this tutorial you won’t be using many. When you create a new ‘Project’ (App) Android Studio will generate all the files and folders necessary to begin a project. This screenshot shows what it generates This looks quite complex but it’s actually quite simple. For example the ‘layout’ folder will contain all the layouts of the app screens you’ll use, which brings us to the next few steps.
We are going to make a simple Quote app! It will show a quote plus the name of the person who made the quote and loop through as many quotes as you like when you tap the screen.
Instruction #3: Open Android Studio and click the create new project button.
Instruction #4: Follow these screenshots exactly to set up the new project
Instruction #5: You should land on this page, if not, open the layouts folder and click the file inside it
Instruction #6:
The screen you are on now is the layout screen, if you click the design button towards the bottom you will be greeted with a drag and drop editor. For now replace all of the text in the text tab with this: http://pastebin.com/pRisAsPF
This has formatted the layout of the main app Activity, but you can change some things around. Try changing the text from “Tap the screen to begin” to something else. Extra points to anyone who can change the font color.
Instruction #7:
Now we have to make a new class, and the quote Object we spoke about earlier. These screenshots show how to make a new class: http://imgur.com/a/3I7v9
You’ll now land on the empty Quote class, but we are going to fill it with a bit of code now. You will see ‘public class Quote{}’, in between these two squiggly brackets paste this code: http://pastebin.com/VhHbWwSN Just click OK to any popup boxes.
What this class does is allows the app to create a Quote object that we can use, you ‘instantiate’ the class and pass through a quote and name (where it says public Quote(String mQuote, String mPerson)) and then you can retrieve the quote or person name later. More on this soon.
Instruction #8:
Click on the Quotebook class here: http://i.imgur.com/bG2d0VD.png Then copy and paste this code in between the onCreate(){ brackets but after all of the other code inside: http://pastebin.com/wz8gbWWA
You’ll notice some red squiggly lines telling you there is an error, so just under the line that says public class Quotebook extends Activity { add in this variable/line: int count = 0;
This is what the two sections should look like after the have been copied and pasted: http://pastebin.com/3FXi14XZ
Explanation time!
setContentView(R.layout.activity_quotebook);
RelativeLayout touch = (RelativeLayout) findViewById(R.id.touch);
final TextView quoteText = (TextView) findViewById(R.id.quote);
final TextView personText = (TextView) findViewById(R.id.person);
The first line sets the app page (Activity) to be the layout we created earlier. The following lines just declare the Textboxes on the layout we created so we can change the text in them.
final ArrayList<Quote> quoteList = new ArrayList<Quote>();
Quote quote1 = new Quote("You're more of a fun vampire. You don't suck blood, you just suck.", "Troy Barnes");
quoteList.add(quote1);
Quote quote2 = new Quote("Cool Beans", "Rod Kimble");
quoteList.add(quote2);
The first line here creates an Array/List that we can add as many quotes as we like to, note how the List is called ‘quoteList’.
The next 4 lines are where the Quote class we created earlier are coming in to play. What we are doing here is passing a quote and a person’s name (separated by a comma) through to the Quote class and it becomes a variable, we then add that Variable to the quoteList.
This is where it gets a little tricky:
touch.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (count < quoteList.size()) {
Quote q = quoteList.get(count);
quoteText.setText(q.getQuote());
personText.setText(q.getPerson());
count = count + 1;
} else{
count = 0;
}}});
This looks complex but if you imagine it as a plain English sentence it makes far more sense.
If every quote has been cycled through, set the count to 0 so it starts again. If we have not gone through every quote, get the Quote variable in the quoteList at the count we are up to, then set the text on the quote and person textboxes to the quote data we just grabbed
If you read through the code and the English algorithm above a few times you should be able to understand what this code is doing.
Instruction #9:
Find the two folders on the left hand side labelled ‘values’ and ‘values-v21’, they should both contain a file called styles.xml In the ‘values’ folder, change the parent= value to be:
parent="android:Theme.Holo.NoActionBar"
In the ‘values-v21’ folder, change the parent= value to be:
parent="android:Theme.Material.NoActionBar"
This just changes the App Theme, you could every try change to other themes.
Instruction #10:
To do this next step, you have to: - Ensure that you have your phones USB drivers properly installed.
Enable Developer Settings then enable USB Debugging.
Have your phone plugged in and accept the popup that checks if you would like to connect to your computer (Android Studio/ADB)
Then, you have to click the green play button, the app will compile and if you have set it up correctly it should send it to your phone and open the app!
If you have issues here, Google your phone + abd drivers/android studio.
Instruction #11:
Change the quotes around, try and add more! If you have a particular interest in an area change the quotes and make a targeted app like a movie quotes app that has all your favourite quotes or lines.
Change the font, colours, formatting or use. Share your own versions in the comments!
If you enjoyed that, here are all the resources you need to dive deeper in to Android Development.
Libraries
Libraries are like pre-made bundles of code that you can use instead of coding everything yourself. For example the IO Commons library contains a huge range of methods that manipulate files in one line, like copyFile(), moveFile() and getExtension() instead of having to do them manually. There are specifically made Android libraries from Google that allow you to use newer Android features like the navigation drawer on older devices.
Android Arsenal is a great site for finding Android Libraries: https://android-arsenal.com/
And here is how to add them to Android Studio: http://stackoverflow.com/questions/16588064/how-do-i-add-a-library-project-to-the-android-studio
More advanced Pro-Tips
- Stack Overflow is a fantastic community if you have any development questions - but Google it first.
- Check out /r/androiddev
- Follow Google Design Guidelines.
- If you don't really understand some code or how to do a particular task, Google it, comment what you are trying to do and ask around.
- Use libraries wherever you can.
A list of advanced development related resources
A list of design related resources
Well that’s it for now! If you need any motivation: I’m 17 years old and started doing this when I was 15. If I can do it, you can.
If you’d like to thank me in some way for the post, give my app a look: Redirect File Organizer. I only need 2000 downloads to pay for university starting next year!
Please leave as many comments, screenshots and queries as you can – I’d love to hear what you think!
162
u/santaschesthairs Bundled Notes | Redirect File Organizer Jan 26 '15 edited Jan 26 '15
Here is what the app should look like if you follow the steps correctly: http://imgur.com/a/CMJGc
First one to recreate this screenshot with a different quote wins (nothing)!
Edit: I'm off to sleep, good luck and thanks for the reaction already! I'll be replying to a lot tomorrow morning!
353
u/maxymanhandler Jan 26 '15 edited Jan 26 '15
Ahh, the genius is at it again!
edit: thanks guys! you can all have an upvote :)
17
u/LeMonkeyFace6 Jan 26 '15
Dennis Cometti.
Found the Aussie.
14
u/marsrover001 S20_FE Jan 26 '15
Thought I was in /community for a second. Nice post, leaned a lot.
11
u/cypressious Jan 26 '15
The toLowerCase explanation is wrong. You need to assign the return value.
7
u/SureForMen Jan 26 '15
This is great, but I wish you'd done it with the latest version of the Android studio program, I'm trying to follow your guide but stuff is all different, I'm learning from fresh, so I don't have a clue how to work around the differences from the screenshots and what I have on screen :(
5
u/ckretbeat Jan 26 '15
can you create a pdf from this? i really like this. but i dont have time right now and i am scared that it will be lost someday
4
u/bone0101 Jan 26 '15
Very nice!
4
u/boonexus Jan 26 '15
There is an Official Course from Google on Udacity : Am currently following this. You can add this to the resources as well : https://www.udacity.com/wiki/ud853
7
u/[deleted] Jan 26 '15
Finally! This is something that I've been looking for years!
About four years ago I got some of those Java Programming books for dummies and honestly they just went over my head. This seems to be... easier (??) to understand and follow. Once I've gotten some sleep (been up for almost three days now), I'm going to go over this more and more, set everything up and I'm going to follow every step in here exactly as you describe. I hope, hope, hope this won't be as bad as I think it could be.
Thank you!
3
u/Poromenos Nexus 6P Jan 26 '15
Just think, in a while, a few people will release their first apps as a direct result of you posting this guide.
3
u/booty_flexx Jan 26 '15 edited Jan 26 '15
How were you not gilded for this yet? Give me a minute and that will no longer be the case. You just gave me everything I need to start doing something I've been shelving for a while now. Time for me to evolve. Thank you.
Edit: done deal
Edit 2: I originally said Guilded, like you joined the dark brotherhood or something.
3
u/jessejamess Nexus 4 Jan 26 '15
I'm so happy you made this I want to cry I have been wanting a tutorial like this for years
3
u/XxCLEMENTxX Huawei Mate 10 Pro Jan 26 '15 edited Jan 26 '15
Thanks for the guide.
Don't know if you're still answering comments but I have a few issues.
First off, I don't have styles-v21. Never created. I even reinstalled Android Studio and the SDK for this.
I have basic C# experience so the programming fundemental understanding is here :p
Anyways, I'm getting these errors:http://prntscr.com/5xfq0wEdit: These were solved by removing the pasted text and typing them manually.
Any ideas?
2
u/Stakoman Jan 26 '15
my problem? i start doing small things with java....but for me how can I get the feeling of doing something with code lines to something I can really see like a box or a car or i don't know....something "real" lol
sorry for my bad english
2
u/Tective Jan 26 '15
I guess I should finally buy an Android phone...
2
u/Netcooler Jan 26 '15
Not a programmer yet, and can't try this out until I finish my own schoolwork, but bought your app for support. You deserve this!
Any chance of seeing this post in a PDF format or anything like that?
2
u/M00nfish Jan 26 '15
What is the big difference between writing an app for Android and one for Iphone or Windows Phone?
Do they use different programming languages? Or do you just need to use a different compiler?
2
u/Stouts Jan 26 '15
Just a quick suggestion: when giving code examples, I would stick to using traditional quotation marks. A lot of IDEs will not recognize the styled ones you've used and this will be result in a lot of confusion for beginners who are wondering why their string declarations / assignments aren't working.
So:
becomes
Otherwise, great write up - should help a lot of people!
2
u/Shape_Shiftr Jan 26 '15
What is the difference between using Android Studio vs the Android Development Tools for Eclipse? Is one highly recommended over the other?
2
u/amauros Google Pixel 2 XL | Pseudo Panda Jan 27 '15
Thank you so much for this. In AP Economics, we just started a business project and my friend and I made an idea for an app and I've been thinking of coding the app to show off the design of the app and eventually make it functional. In case we don't have enough time, how can I make renders of the design of the app instead of actually coding it? I want to show a few screenshot renders of the app at the presentation, if we don't code the actual app.
5
u/three3thrice Teal Jan 26 '15
I plan on reading and using this, so don't take this as nit-picking...
A class would be a Car
A class would be a String
3
u/asd2erfsdfsdf Jan 26 '15
I don't know where you're from, but this doesn't make any sense for the rest of the English-speaking world.
"is a "quote" or "double quote".'is an apostrophe, and most people would take "double apostrophe" to mean''which is just wrong and won't work.39
u/burntcookie90 Jan 26 '15
This is great! Join us on /r/androiddev or the less popular /r/learnandroid if you have questions!
Also, you're welcome to pm me and I'll try and help when I get some time, always looking to help people learn.
15
u/Oozehead OnePlus One 64GB | Sultan 6.0.1 Jan 26 '15
Can't wait to get started, I did Java for a year at college so I know the basics, so glad I found this.
65
u/DannyBiker Galaxy Note 9 Jan 26 '15 edited Jan 26 '15
Wow, thank you, it's really helpful. I would also suggest the following Udemy class : The Complete Android Lollipop Development Course-Build Apps!
I'm not affiliated in any way to the teacher of the class (read : this is not hidden advertising), I'm just a regular student of it who tried A LOT of different tutorials/courses on how to get started with Java/Android in the past. It is by far the best I've followed : the guy is pretty clear in his explanations, he answers questions quite quickly and it's recent so it talks about Lollipop, MD and Android Studio. The course is not finished yet, the guy actually asked us what kind of apps we wanted to see him cover in the next lessons and he keeps adding stuff to the basic Java tutorial.
Just don't expect to develop your dream app in a matter of days but it's a great place to get started and dig from. It's not free but it's Udemy, they have deals and coupons almost weekly. I would also suggest this Java Course (which is free).
12
u/[deleted] Jan 26 '15 edited Jan 26 '15
I only have one "values" folder and the Quotebook.java still shows errors after adding int count = 0; .. Help?! :(Edit: managed to find a fix for the values folder in Google.. but still have errors in Quotebook.java
Edit2: fixed the errors myself; press alt + enter and import for all the errors
Edit3: now I have trouble with the app, when It install the app in my phone, it just crashes, and same when I try to start it again .. help :S?
Edit4: FIXED; in AndroidManifest.xml change line
"android:theme="@style/AppTheme" to
"android:theme="@style/Theme.AppCompact.NoActionBar"
10
u/skidloader Jan 26 '15
Thanks for the write up, but no where in here is anything about testing! One of the first things that a new Android dev should be concerned about is how they will test their code. Navigating the muddy Android testing waters can be a daunting task for a new dev, do you have any insight on this?
19
u/Shanks512 Jan 26 '15
Step1: SAVE
Step2: ???
Step3: PROFIT!!
7
u/superbang Jan 26 '15
Well here goes my afternoon
5
u/xRLG Jan 26 '15
This is amazing. I have always wanted to make an android app, but I thought you already had to be an expert at java. I will definitely try this. Even if I won't make a useful app it will still be great experience.
5
u/rectic Jan 26 '15
As a current android developer, this looks fantastic for new people, good work man!
4
u/quadrofolio Jan 26 '15
Thanks for a really nice step-by-step. Going to give it the ol' college try!
4
u/[deleted] Jan 26 '15
I have absolutely no use for this whatsoever at this moment in my life, but I wanted to acknowledge the hard work and effort you have put into this post - I am guessing for no personal gain. (Other than helping fellow citizens!).
So, nice work, and I have saved it just in case I do ever have a use.
1
u/ChemicalDesert Pixel 4 XL Jan 26 '15
I've just begun learning how to code in C++ at school, do you think I could learn java at the same time for Android apps? Or should I learn one first then the other to avoid confusion? Great post by the way ill be bookmarking this for sure
1
u/boopbeepboopbeep Jan 26 '15
Thank you so much for this! As someone whose never programed before would you recommend to learn a scripting language fist, like Python? Or is learning Java straight out the gate not as terribly daunting as it seems.
1
u/ClassicalAnt6 Nexus 5 FOREVER Jan 26 '15
Can anyone help me here. Can't find the new java class
Pic
1
u/[deleted] Jan 26 '15
If one has a basic understanding of Java already, but without GUI/Swing, is that a good foundation? I am OCAJSE7 certified, not sure how helpful that will be.
Thank you for compiling this.
1
u/hydrox24 Galaxy Note III Jan 26 '15
One typo that could confuse some people quite a bit:
Where I think you mean
1
u/notrichardparker Google Pixel 2 XL | 8.1 Jan 28 '15
On the last quote, clicking does nothing at first. Click again and then it goes back to beginning. How can I change it to not have that "gap" and just go straight to the beginning?
1
u/Loddewyk Wet Xperia C5 Ultra Jan 29 '15
I get this, http://i.imgur.com/46FTMjE.png?1
I cant figure out why it has a different default code from "Blank Activity"
1
u/[deleted] Jan 29 '15
Help please. http://imgur.com/cTm4T5k
1
u/smackmesideways Feb 01 '15
Do you watch afl by any chance?
1
u/Lirry18 Feb 18 '15
Its almost working! The only problem i have is that if i use the app, the Quotes themselves can be changed in the app it self.. Any ideas how to fix this? Thanks for this great tutorial btw!
1
u/vocalistsXD Mar 26 '15
do you still check messages here? is there an updated guide/version? i'mma do this after this school's semester!
1
u/Kagron May 19 '15
Hi! I saved this for later because of college and other things and finally got around to messing with it and just had a few questions that maybe were answered in some of the guides you posted, but I didn't really find. First of all, great guide and thank you! I just finished a C++ course and figured I would try and teach myself some Java over the summer.
My first question is when you're making the layout in Quotebook.java, at the end of the line theres a '(R.id.quote/person)' and I was wondering what exactly the R means? Is it a variable you declared somewhere and I missed it? Is it something from the android packages? I kinda assumed the id was "linking" the layouts to the text, but I can't figure out what the R means.. Maybe it was in one of the guides you posted but I didn't see it when I read them!
Second question is when you're making the quote class, the first line is super(). I was wondering what exactly this does? Is this making it a parent class, and if so, why? There's no other classes inside and I'm just generally confused by what it does. I read a little bit about super and sub classes so I'm still iffy about them.
Thanks again for the guide! Very good introduction.
1
u/[deleted] Jul 22 '15
How much money can you make from android app development??
6
u/edaisson S6 Edge+ Jan 26 '15
Thank you! Now off to become the next Flappy Bird-type dev and cash out a payday.
3
u/in4real Jan 26 '15
Nice app tutorial. Thanks.
3
u/neo-1989 Jan 26 '15
Thank you! Now hopefully I can turn my app idea into something real!
3
u/dei2anged LG G4 Jan 26 '15
Thus is awesome, I'm going to try going through the next chance I get!
3
u/Swirls109 Jan 26 '15
This is absolutely fantastic. Your time is very much appreciated.
3
u/[deleted] Jan 26 '15
Thank you so very much for this. I've been wanting to get into programming for a long long time but I've been stuck at how to get started and what road to take. I think this will be perfect.
3
u/ApertureLabia ASUS Zenfone 2 Laser Jan 26 '15
Thanks for this. I've had an idea for a pretty simple app that would be useful to me for a while. Maybe a few hundred other people as well.
3
u/Thameswater Motorola Moto X 2014 16GB Bamboo pure edition UK Jan 26 '15
I want to start teaching my nephew code (so I can learn, I find it easier when learning with someone) this is really helpful. Thanks
3
u/Takashimmortal Oneplus 2 Sandstone Jan 26 '15
Can't wait to get my hands on this. Thank you so much!
3
u/massive_cock Jan 26 '15
I have a genius idea and was floundering in my attempt to implement it. Bookmarked your guide to see if it can change that! Thank you!
3
u/[deleted] Jan 26 '15
Thank you for this. I am in a highschool AP Programming class and we have all been trying to figure out android development but there hasn't been that many good resources. I will be sharing this with the rest of the class.
3
u/crazycroz Galaxy S5 Jan 26 '15
I guess this is a reason to put a hard drive in my good computer. Thanks! My apple fan boy friend is always bragging how his making an app. Now I finally have the resources to shut him up!
3
u/GreatGreenSaurian Jan 26 '15
bookmarked
3
u/dzakadzaka Jan 26 '15
I can into this
3
u/[deleted] Jan 26 '15
I have been thinking of an idea for a game for a while, might try this out.
3
u/[deleted] Jan 26 '15
I recommend the big nerd ranch android bootcamp book.
3
u/ScrewAttackThis Pixel XL Jan 26 '15
I'll be checking this out later. I'm experienced in programming, but haven't dabbled in Android for a while. Just thought up of a good project last night, so it's cool seeing this pop up.
http://developer.android.com/training/index.html
That's a good resource, as well, from Google.
3
u/SKS81 Jan 26 '15
Crazy awesome
3
u/ISniffDope Jan 26 '15
Incredible
3
u/GiveMeYourMilk69 Galaxy S8 Jan 26 '15
Wow! Thanks will check this out later!
3
u/Nigyims Jan 26 '15
Wow and my school needed 15 weeks to teach me this. This is 15 weeks of notes. And somehow i learned better than from my mumbling tutor.
3
u/[deleted] Jan 26 '15
This is the perfect fucking post. There's no excuse for slackers like me to escape from doing actual work anymore! Thank you so much!
3
u/dingari Jan 26 '15
Booleans and floats are actually primitive types in Java. You're correct about String and Integer being objects, but the more commonly used "int" is a primitive type.
Just thought I should mention this since you can run into trouble with the == comparator and object types. Instances of String and Integer (or any comparable object) should not be compared with == but rather with .equals().
3
u/lukasavija Jan 26 '15
http://i.imgur.com/Cmqkz4J.png
3
u/acondie13 Nexus 6P Jan 26 '15
If only I had an app idea.
3
u/noratat Pixel 5 Jan 27 '15
I didn't see anything in the links about version control - I know some people consider that a tertiary subject or advanced, but to me it's absolutely fundamental, especially for beginners. It's incredibly important to be able to get something working and then be able to experiment without fear of being unable to go back, especially when just you're just starting out and learning how it all works.
I'd strongly recommend at least mentioning the topic in the list of resources.
3
u/falconbox Jan 27 '15
You underestimate how little I know about programming.
3
u/wizarduss Jan 27 '15
I edited the code that iterates through the quotes a bit so you don't have to tap twice when you've arrived at the last one. Now, it just checks if you've arrived at the final entry, by checking if count is bigger than or equal to the list size. If this is, it resets count back to 0. After that it sets the new quote, and adds one to the count.
3
u/animonger May 15 '15
A lot of the information in the android studio UI has changed, such as the new preview builds not rendering the preview properly, the 'values' folder structure being changed, and other small things that make this guide very difficult for someone who has never seen the Android Studio UI.
2
u/Hellaman nexus 5 Jan 26 '15
Don't know if there are any experienced people here but i have a problem with sending a notification through the alarm manager, if anyone can help ill explain more
2
u/virgosuper_cluster Jan 26 '15
Thank you.
2
u/redtrader Jan 26 '15
Good job OP!
2
u/[deleted] Jan 26 '15
I've been considering taking a course at Treehouse for this very thing. I can't wait to delve into this guide. Thanks OP!
2
u/bassitone AT&T HTC One (m8) | Carbon Jan 26 '15
As someone learning Java for class and who has always been a little curious about making an app to do something (no idea what at the moment!), this could be great practice!
Once I get enough Google Play credit from those surveys, you'll have another download for sure. (Broke grad student, what can I say)
2
u/mamatoto Jan 26 '15
This is great. Thanks for taking the time to do it
2
u/lee66cj5 Jan 26 '15
Thanks for the great writeup.
2
u/psistarpsi Jan 26 '15
Thanks for sharing!
2
u/[deleted] Jan 26 '15
Simply thank you. You're a credit to the industry and this community!
2
u/WordcloudYou Jan 26 '15
Word cloud out of all the comments.
Don't like this? Message me!
2
u/RecursiveCursive Jan 27 '15
By default, the Quotebook class is defined as
public class Quotebook extends ActionBarActivity {
but according to your instruction I had expected
public class Quotebook extends Activity{
I am getting a lot of red squigglies and am wondering if this has anything to do with it.
Thanks for the tutorial!
2
u/fucking_righteous Jan 27 '15
OP this guide is centimetre perfect!
2
u/silverpennies Jan 27 '15
Thanks for sharing!
2
u/united_fan Jan 27 '15
Saved for later
2
u/[deleted] Jan 27 '15
I wish someone could explain python like this
2
u/RikudoSenjutsu Note 5 Jan 27 '15
2015 has just begun and we already got the first hero. Thanks man, I can start making a wallpaper app :)
2
u/grasisgroen Jan 30 '15
For some reason Android Studio is running extremely slow on my laptop, making it almost impossible to use. I also keep reading that Eclipse is the preferred program to use, what is the difference?
2
u/droppies OnePlus 7 Pro Feb 23 '15
Dear /u/santaschesthairs
I having problems on step 8, whatever I try, it will not recognize most of the methods (they just have squiggly lines under them, and when hovering over it it tells me "Cannot resolve symbol [Name of symbol, ex. RelativeLayout]"
Here is a crash report http://pastebin.com/cdAnW1hV (taken from the gradle console when running the debug (For some reason the debug window dissapears after it is done...)
I am also missing the "Values-v21" folder and the styles.xml file in the values folder. (I guess this isn't a big deal, since it is just looks.)
I hope you can help me with this.
2
u/rickrizzo Moto X 2014 Mar 03 '15
Finally a simple and easy to follow tutorial. Thank you so much!
2
u/uw_NB Jan 26 '15
for those who are interested i recommend starting it now, earlier is better. The reason is softwares gona be updated regularly thus most of the programming guides out there get outdated pretty fast. Since this one just came out, its best to use it early.
2
u/FilipinosRich LG Nexus 5X Jan 27 '15
I get an error: unfortunately, the Quotebook has stopped.
On both my OnePlus One as my Note 4, how do I stop this?