I am currently starting to create an app for a small charity company. But I'm not entirely sure how to properly learn how to code for the Android OS. I have searched online for tutorials, but most stop at the same stage and only show you how to launch the "helloWorld" app.
My question is this:
1) Will using solely XML be sufficient to code an app? Does it require working in partnership with Java?
2) Does anyone know of any books, recommended books of course, that break everything down for you step-by-step?
Android Developer site very good to give you all ideas. Start from Hello, World
1.) Not at all. XML is ONLY used for the layouts.
2.) There are a few books out there that I'm sure someone will come along and recommend, but I've found the tutorials here to be the best start.
In your case, I'd look at AppInventor which allows you to create small Apps without coding (at least that's what it says, haven't used it yet myself)
1) No, you can use XML for interface, but you can't write an Android app in XML :) You are not required to work with Java, but Android language is based on Java, so knowing Java is an advantage while learning to code.
2) Did you installed Eclipse and the plugin for Android?
The Android Training is pretty useful, and I've learnt a lot from the tutorials and the sample code provided there. (The Notepad app is way more complex than the Hello World tutorial ;)!).
Also, take a look at the answers on that question: How can I learn Android?
Related
I've been developing an Android application with Android Studio and now I need to be able to open it with Xamarin.forms in Visual Studio (it's a task that my teacher gave me, and it's because a classmate has been creating the iOS version and now we will combine them into one project).
I have to say that I'm pretty much a noob and been looking a few tutorials that talk about Dependency Service and other stuff, but don't seem to quite cover what I'm looking for (or, at least, not clearly enough).
If you have a precise video that explains simply how to do this, I would be grateful if you share it with me.
I thank you for your time and wish you a great day :)
It is impossible at even now in current version of Visual Srudio .
Every file in Xamain is different with Native Android . The Java code can not be directly copyed to use in Xamarin , you should translate them to C#.
Having a look at this document: Porting Java to C# for Xamarin.Android .
There are two ways to port Java code to C#. The first way is to port the code manually. ..The second porting methodology is to try and automate the process by using a code converter...There is often a non-trivial amount of work involved with bootstrapping an automated code conversion tool, and this may prove to be a barrier to use. In many cases, it may be simpler and easier to port Java to C# by hand.
Can I build an application with basics of a programming & codes researching ?
my question is that can I build an app with the basics of a programming language like Python and researching on internet on codes that I will need to use on my application.
Thank's.
Yes, you can do. You've to just brush up life cycle of app in iOS & Android e.g. view and activity. All languages are same in semantics except syntax.
Yes its possible. Using basics try with small applications.
After that you can implement advance concepts on these applications with some research and practice.
You can use another programming language like python and many more to build up android and IOS application but you can't build up and default functionality as you can built up and developed by using native programming languages.
I would like suggest that if your are targeting android then you should go for android and if you are targeting IOS then you should go for swift instead of choosing another language.
The reason behind this is that if you spend lots of time to implement something by using another programming language like python ,there is no guarantee whether you will success or not.
if you are choosing native programming language to implement anything it would be easy to implement anything.
Yes it is very possible.
Anyone who understands code can write code Programming languages doesn't matter. Most of us does the same, we know little about our environment and try to come up with a solution but if we are stuck we all search over internet to find the solution. If we can do it so can you.
Just start off by writing some code for your first App and gradually you'll improve with a good pace.
Hope this help, keep coding keep learning!!
Yes, it is possible however researching for codes alone might not be enough to gain a deep understanding about creating apps. It is better if you choose first which mobile platform do you want to pursue (iOS or Android) then start researching about the basics like using its IDE and the app lifecycle. Then create simple mobile apps until you get used to it.
P.S. This is also based from my experience because I also had a hard time learning how to create apps before.
I have to develop an android application that use geolocation, and I am confused to choose between web framework mobile and native Android application, and if I must to choose a web frawework which one do you recommend to me?
Actually there are many kinds of framework : like JQuery mobile , Phonegap , titanium , Windev for mobilephones
Regarding the firs part of your question, I'd say this depends on a couple of factors:
1.) Previous experience: Do you already possess experience working with HTML/CSS + JQuery or do you possess experience working with Java? If your answer is yes to the first part: go for web framework development. If your answer is yes to the second part (Java): go for native app development, trust me, it's really easy to pick up if you have already worked with Java before and possess basic knowledge about inheritance and working with packages etc., also, start with the tutorials on developer.android.com If your answer is no to both parts of that question then I'd suggest you go with native app development since picking up Java is relatively easier compared to HTML/CSS+Javascript, in my opinion. If your answer is yes to both parts of the question (i.e you've worked with both Java and HTML/CSS+JS) then look at point 2.
2.) Personal Preference: Clearly, you don't have one right now so just go with what feels easier.
3.) For a geolocation app I'd say native app development is easier, I've been working on a geolocation based app for a while now and I felt that using the Google Maps API was pretty easy and you'll also find significant amounts of help from stackoverflow since everyone and their mothers have tried to make a geolocation-based app. I found the answers to most of my problems here on SO.
If you need more suggestions on this matter don't hesitate from asking!
I just picked up the Android Apps for Absolute Beginners and I read the introduction, it turns out you have to know Java.... so I read Sam's Teach Yourself Java And 24 Hours and I thought I was ready to dive into Android programming. When I began reading the book I noticed there was a lot of XML stuff and I don't know XML.. my question is, how much XML do you have to know in order to write Android apps. Can someone recommend a book or resource that has information about XML and Android? I have about three years of Objective-C experience and a couple days of Java experience.
Thanks!
You don't need to know much about XML. Most of what you need can be absorbed by imitation. You don't need to know much more than the basics of XML syntax. (An easy XML tutorial can be found at W3Schools. An even briefer tutorial, as well as links to the W3Schools tutorial and other learning resources can be found at the XML Introduction page at the Mozilla Developer Network site.) As to concepts of how XML and Java work together in Android, I'd strongly recommend that you go through the training material on XML at the Android web site.
OK so there are a few questions in here that need breaking down...
"how much XML do you have to know in order to write Android apps"
You need to know the basics. XML is not a programming language (as I am sure you are aware) and is a markup language. If you have 3 years of C under your belt this will take you all of a day at most to get your head round if not less.
Read the W3 Schools guide to XML http://www.w3schools.com/xml/ it has everything you need.
"it turns out you have to know Java.... so I read Sam's Teach Yourself
Java And 24 Hours and I thought I was ready to dive into Android
programming"
Your existing knowledge should serve you well but spending 3 days on a language may simply not be enough (unless you are amazing in which case i retract this statement). Java in my own opinion is quite as nice language to learn and you should pick it up quite quickly with a little time.
Have you read the Android Developers documentation? Read it well, it has lots and lots of help. Every time I seem to write an answer or comment I reference the documentation. Have you checked the samples? I find learning by example/practically quite useful and far more engaging.
You should see and learn developer.android.com for android developers. In this website, you'll know about XML s very well and they're also sample to understand. You don't need to think about that. Check it out.
Please be aware that this answer is mostly focused on Android application development using Android Studio and may not be true for other development tools and methods.
XML is a markup language used for styling Android applications, it is generally used as a means of separating the application’s styling from the actual logic - meaning that that the “image” and “functionality” of the application are separate and if one changes, the other does not have to.
To develop an Android application, you don’t need to know XML, On Android's Developer website - it states that you can either style your application at runtime using Java or use XML. Though a basic understanding of XML may come in handy for problem-solving.
And even if you wish to use XML to style your app - you don't need /an in-depth knowledge of it as you can simply use Android Studio’s Layout-Editor (only versions 2.3 or higher can do this) - which will allow you to style your application visually and generate the corresponding XML afterwards which you're free to edit if you please.
Sources
https://developer.android.com/guide/topics/ui/declaring-layout.html
https://developer.android.com/training/basics/firstapp/building-ui.html#strings
Also see:
- TutorialsPoint's Android tutorial titled "Styles and Themes"
- W3Schools' XML tutorials.
- As well as any of the appealing links on Android's developer website, TutorialsPoint and off-course W3Schools websites.
Forgive me for any mistakes in this post and you're free to correct them, forgive me for my inability to provide all the relevant links (due to my low reputation) and I hope this helps at least someone.
I am new to Android but not to programming. I have taken C++ in school and we have been taught how to create objects, but not how to build robust programs using multiple objects. So you can see that using java to build Android apps leaves me with questions.....
thinking like an object oriented programmer, do i just shop through a list of classes until i find ones that i think would suite my app
is there a definite method of choosing the best classes for your project
do i find an app similar to the one i am trying to create and try to find what classes they used
any thoughts appreciated!!!!!!
The best way to learn (for me, at least) is by making small incremental changes to an example so I can how all the various elements of it work.
Download the examples (listed here) - but accessible from your AVD and SDK manager tool from within Eclipse (Window -> Android SDK and AVD Manager).
Start by modifying those examples. They are the best possible examples you can get for much of what you will want to do.
I'd recommend you start with Tutorials and also read about Application Fundamentals - they should get you started. Also browsing Classes is useful if you like wading through lots of technical docs (I do). Those three links are definitely worth looking at.
Well first when building Android applications you need to:
Figure out what your application will be, and how it would work.
Next you would need to find out how you will implement the android classes.
i would recommend first reading a book on Android development. One that really helped me and made me an advance developer was CommonsWare
You should really get these books. When you finish you will be well on your way.