Where to find Android Development Homework Problems - android

Ok so I am starting off with android development and I have found a bunch of useful tutorials so I am set there. What I am looking for is a resource that provides homework style problems to do and has the answers downloadable so I can check my solution against the "official" solution.
So for example instead of the notepad tutorial it would be: "Build an application that you can create, edit, delete notes, ...etc.". Ideally the "official" solution would have some explanation as to why they built it the way they did. (so a tutorial at the tail end)
Anyone know of any resources that provide their tutorials in this format?
Thanks.

Okay, here's one: build me an app that allows the user to make, modify, and store notes. The 'official' answer is the Notepad app in the 9th level of the api. (Note that this is different from the notepad tutorial).
The point is that asking questions is easy, the harder part is actually making a program that does the job. And #Roflecoptr is right, at this level it can be implemented very differently. But if you want that mindset, you can write your own 'homework' easily. Just think up a few things you want that are simple, build it, does it do what you want well? Then you pass.

Despite for very trivial problems I dont think this is possible, because there are way to much possible implementation possibilites so that you can't compare your solution to the "official" solution.
But why do you need something like that? If you want to learn to program on Android, you can just follow some tutorials you've already found and then modify them, adapt them to your needs. When you get more used to the development of Android apps you can just get some ideas on tutorials/android development sites and then implement your own solution. There is plenty of help available here on SO and on other development sites, which will help you if you really get stuck.

You could always go to the Android Samples page, and without looking at their implementations, do your own and compare. The samples page is here:
http://developer.android.com/resources/samples/index.html

Related

How to use mediapipe graphs like the mediapipe API-s

I'm struggling to understand how am I meant to interact with the "graph" and "calculator" stuff from the mediapipe library. More specifically, I'd like to write some Android code that uses landmarks from the holistic (pose + hands in my case) solution, with the final goal of writing a flutter application that compiles both for Android and iOS.
I've managed to build a few of the sample apps (thanks to docker), and I think I roughly understand what the graphs do. However, I don't understand how to interact with them from within the code. The Hello World! for Android tutorial doesn't really explain this. There are examples that include this type of behaviour (e.g. here), but I don't really know where is all the required information coming from (e.g. how would I find out the right functions and string constants to get holistic landmarks?)
For example, in Python I could get data via something like holistic.process(image).pose_landmarks, and then compute e.g. position or angle of hips. And as far as I can see there are some similar Android API-s available, although not for all solutions - including holistic. So what if I don't want to wait for the API-s development, and want to use the graphs instead? That part is not so clear.
As a bonus, please do feel free to drop any links which further explain/document the "graph" and "calculator" stuff I've mentioned earlier, as I've not used anything like this before and find it a little difficult to google.
Thanks.
I've realised there are docs available: https://google.github.io/mediapipe/framework_concepts/framework_concepts.html
Not sure how I've missed this...

Just starting Android Studio, I need guidance

I just decided today that I wanted to make a gallery app for my phone, pretty much just combine several features I like from different apps I've tried into one, perfect app, for me. The problem however is that although I know some java, took Programming 1 & 2 and currently taking AP Computer Science in high school, I have no idea where to begin. I roughly know and even less so understand the layout of Android Studio, but I can get by. I need help finding useful resources online to help me learn or even someone who is able to answer the probably many questions I have. I've watched some youtube videos and tried reading some tutorials but I haven't found anything that clears things up for me. I will ask a few questions now:
1.) I have no idea where to start or what to use to get the app to show images from device storage and micro sd card in a grid view. I have read things about using the RecyclerView to not use as much resources, and also something about Glide for better performance(I think thats what both those do, if I understand correctly) but I have no idea what to do with either or even how to use either.
2.) In the xml design portion I'm not good at navigating everything and understanding what I should use for what. I can make a good design in photoshop or other programs but I'm not sure how to actually take that vision and translate it into working pieces.
3.) Pretty much I just need help and will probably think of more questions as someone tries to answer those.
Thanks!
There are lots of good, free tutorials on the net. For example on the official Android Developer site: https://developer.android.com/training/index.html
- where you can find a lot of useful example code snippets, but there are other sites also - https://www.tutorialspoint.com/android/index.htm . It starts with the very basics and has lots of examples too.
Other non-free tutorials can be found at
udacity.com - Android Developer Nanodegree by Google
udemy.com
To reach data from your device storage or from your micro SD card you have to understand the principle working of content providers.
I do not recommend Recycle View, when you are a beginner, because it is a more complex thing than a List View (or Grid View). Start with these and then upgrade.
Glide is cool thing, because it saves you from a lot of useless coding and easy to use. On their GitHub page you find detailed instructions how to import it to your project - I recommend Gradle - and how to use it.
In my point of view, start reading one of the free sites patiently and than you are going to get answer for your questions, but it is very important to understand the basics.
I hope I helped! Sorry for my bad English, I used it a long time ago.

Starting point for app creating, where to start

I am looking to start writing apps for mobile devices. I know a little about this subjec, and I am proficient in both java and python. However, before jumping into creating apps I wanted to get the community's input on a question I have not yet found the answer to:
How/Where should I begin?
I understand this question is fairly general/basic for a community that focuses on solving/debugging complex programs, but if there is a recommended tutorial (or specific platform) that will help a beginner(such as myself), it would greatly reduce the frustration and amount of monotonous questions asked on this forum and others.
Regards
Coursera is offering 3 courses all using android development which started last week. That would be an excellent starting point for anyone:
https://www.coursera.org/specialization/mobilecloudcomputing/2
How/Where should I begin?
I don't know about you, but I often learn by example more than reading. You mentioned that you're proficient in java so thats a great start. After you understand the Android SDK it's really only the UI good practices you need to learn. So here's my suggestion.
Start off with something super simple. Let's say, create your own version of a calculator. Something that can add, subtract, multiply, and divide. This should be dirty, ugly, but works correctly.
After doing this, take a look at some other android calculators on the play store. Check out Simple Loan Calculator. I use this example because it offers a lot of android UI components. ViewPager, ActionBar, etc. Download this app, take a look at it, and try to mimic it. This should provide an idea on how to work with the android UI components.
What's next? After you have done these two apps you should be relatively ready to tackle your own project.
HTML apps are easy to port across multiple mobile platforms. I have set up an Android HTML template as a starting point. You can just import this project into Eclipse and take a look at that.
https://github.com/jakewp11/HTML5_Android_Template
Here is my experience for ios,
There are three things that I consider as pillars
Objective C
Memory managment
Design patterns
The first one looks obvious but I'd stress on learning concepts like protocols, categories, extensions. As a beginner I thought that learning the syntax was enough, but time and again I had to jump back to the language concepts to understand what's going.
The memory managment , the most talked and confusing subject and now since we have automatic referenc counting to make things simpler and often new Dev skips learning memory concepts (I did it). So I suggest you to have an idea what actually happens under the hood of arc " the manual memory managment"
The design patters,
When I started off , to pass data and control , what I used to do was achieve every thing through the only design patten I knew (target action) . I lack the knowledge of design patters didn't how easily I could achive better results with less code.
Some resources:
Dev.apple.com
http://www.raywenderlich.com (one of my best tutorials are here, you can find one on design patterns)
http://rypress.com/tutorials/objective-c/
And yes , the sample projects at Dev.apple are the best tutors.

Is there a good website to share and optimize code together?

Recently I am working on Android app development, and also I did iOS app before. I am not good at Android so far, so sometimes I found the app is kind lagging, thought stackoverflow.com is very nice place to share and found the bug, but I would like to ask if there are some websites that I can share all codes and details about the app, and there are also some programmers there they can read and point it out what's wrong with my app? I don't know if this question is legal here, just think it's good to have one and learn more..
You can post code and get it reviewed at https://codereview.stackexchange.com/
The best solution would probably be to push your projects to a site like Github where there's a great infrastructure in place to allow people to collaborate with you.
Asking people to do so is a different issue, but probably best achieved through posts on XDA-developers and equivalent forums.
There are plenty of places where you can post your entire source code. Here are two that I have used:
Google Code: allows you to post your code publicly with details about downloading. You can use this and google forumns to get reviewed and help. SVN access is easy to configure. Can add others to projects.
SourceForge: allows you to post code publicly and privately. SVN is easy once again. Allows you to add others users to the project with read/write/edit permissions.
Those two may not be the best places for getting reviewed and help easily, but they are wonderful for hosting and source control!
Also, these do have forumns where you can point others to your projects and ask questions!

Quick access to Android for a third person

Recently I was asked if I could help someone to get quick-started to android programming.
What would you suggest to tell this person?
Would you explain everything by hand or just refer to external links?
Which ressources would you recommend?
This whole issue should not take too much time...assuming 2-3 hours
Once my access to this issue was "Professional android application development".
Java basics are already preconditioned, so there's no need to explain ANYTHING.
For avoiding any misconceptions: This shall be just a quick start, no reference or something like this, so I just need some keywords and a hint how deeply go through it.
In my opinion, everything you really need is here: http://developer.android.com/index.html
All the downloads are easily accessible, the API reference is there, and the Dev guide is pretty well done.
This page has a getting started "Hello World" type tutorial that should work for your quick start: http://developer.android.com/guide/tutorials/hello-world.html
As far as your 2-3 hours goes. I would walk them through the hello world tutorial first as it gives a quick and dirty overview of the most important basics such as getting a project created and a virtual device up and running to test with. It will also start getting into installing and debugging.
That shouldn't take up all of your time so you may want to go into some basics of building a UI and concepts like Activities and Intents. Pointing out the API reference would be great at this point as well. I suspect that most of that 2-3 hours would be up if you get into any sort of detail on these.
Well you already mentioned a book in your question, so I would like to throw out http://commonsware.com/Android/ .
I've been working on an Android project for school, and I still have A LOT to learn, I dont think you can cover much in 2-3 hours. But anyway, with the above book, you can find an example that is similar to what your trying to accomplish(or go over), then look through the source code and what-not.
Aside from the Android Dev. website, the $40 collection of ebooks is the single best resource I have found to date other than Google searched or examples specific to my project.
Sorry if this doesnt really help your cause, but I figured it was worth pointing out.

Categories

Resources