[Q] building android based apps - Android Software Development

Hey guys i am new to xda but not to android so basically i am trying to learn on how to build application to make for honeycomb etc.. but i would like a little how to guide on how to get this started and going hoping someone has a video link of some sort, it will be worth it in the end i promise

I would recommend starting here with the android SDK, then install eclipse (an IDE), and then get the android plug-in for eclipse, and off you go

there are tons of tutorials about how to get your first hello, world program going. they all involve using Eclipse. I would say skip Eclipse and get the Community Edition of IntelliJ IDEA. it is the best Java ide, hands down. and they have integrated Android Dev to the heart of it, not just a plugin. Just one mans opinion. im sure others will disagree.

I agree IDEA, is a better ide imho, for android then eclipse, it just feels better.
Sent from my GT-I9100 using XDA App

Related

Best android development book

Hi,
I had a quick look through the forums but couldn't see a topic for this.
I am wanting to get started with android development and programming and am looking for a decent book to help me get started. I have went through the tutorials on the android site but I found them not to be at my level having no java experience.
I do however have programming experience through microsoft visual basic and vba and do understand the basics. i just want a book to take me from scratch with android and eclipse that starts at a fairly easy level but that is still useful once I have progressed.
Does anyone have any recommendations or even know of solid online resources?
Many thanks
Sent from my HTC Desire with oxygen gingerbread using XDA App
I heard positive things about this: wrox.com/WileyCDA/WroxTitle/Professional-Android-Application-Development.productCd-0470565527.html
Note that I do not have this book myself so I cannot tell you anything more about.
Hi,
Thanks for this, will have a look at that one and see what its like!
Cheers
Sent from my HTC Desire using XDA App
http://www.amazon.com/Teach-Yoursel...=sr_1_9?s=books&ie=UTF8&qid=1293644514&sr=1-9
Namuna said:
http://www.amazon.com/Teach-Yoursel...=sr_1_9?s=books&ie=UTF8&qid=1293644514&sr=1-9
Click to expand...
Click to collapse
I'm working through that book at the minute, and it is perfect!
Since you've got previous programming experience (it would be good if you had .Net experience) then it's just a case of translating what you know into a different language.
Admittedly, I'm finding it quite easy, coming from a strong C# and .Net background. I think it's probably the easiest transition going, but I'd recommend the book regardless.
Thanks for that as well! It also looks very helpful, i would expect coming from a .net environment to take to Android programming easy enough once i understand how the basics of eclipse and the coding syntax works for it!
I have bought the Wrox programmer to programmer book but i am also going to bear in mind the Teach Yourself Android book as well, had a flick through it there on amazon preview and it looks very easy to use, i like that it is split into hours so you know where you should be and how long it will take.
Thanks for the replies!
I would recommend Commonsware's books. You get a full year's access to 3 books.
http://commonsware.com/
However, I would start with some Java book first. I heard that Head First Java is good.
I second the Commonwares books. The weekly chats alone are worth the price!
doctormetal said:
I heard positive things about this: wrox.com/WileyCDA/WroxTitle/Professional-Android-Application-Development.productCd-0470565527.html
Click to expand...
Click to collapse
Yep, I have this book and find it great. One thing is nice is that he uses the same program for all his examples, thus building up one app. His writing style is very fluid too. I recommend it.
Sent from my SAMSUNG-SGH-I897 using XDA App
i would love to start learning java myself, ive been playing with appinventor, i have graphic design skills but im far from a programmer, playing with appinventor has really spark a fire for me to actually learn real code, i know its a far stretch from appinventor but ive been playing with tools like eclipse for android sdk, i would love to find a good book on a certain way to go about using all these tools together, much research to be done!
Not a book but google for "Android App Course", those labs are a good introduction to android...

Development Using an Android Tablet (e.g. Transformer Prime)

Let me preface that I am familiar with developing Java web apps in both Linux and Windows, but I am just starting to delve into developing Android applications. Forgive me if this has been addressed somewhere else - I couldn't find anything on this subject.
How viable would it be to use a tablet for development, specifically for developing Android applications? To be clear, I'm not talking about writing apps for the tablet - I'm talking about setting up a development environment on the tablet and using it to develop stuff with. Has anyone successfully done this? It seems like something like the Transformer Prime would be a good candidate for this. Are there IDEs for Android, or anything that could be ported over?
The IDE used by most Android developers is eclipse, which isn't available in Android. Not sure if it's possible on the Prime yet, but you would need to install a full blown OS (like Ubuntu). Once that was done it could be used for development.
EDIT: check out javaIDEdroid in the market. I haven't used it, but it claims to allow exactly what you're looking for.
Sent from my SPH-D710 using XDA App
ioos said:
The IDE used by most Android developers is eclipse, which isn't available in Android. Not sure if it's possible on the Prime yet, but you would need to install a full blown OS (like Ubuntu). Once that was done it could be used for development.
EDIT: check out javaIDEdroid in the market. I haven't used it, but it claims to allow exactly what you're looking for.
Sent from my SPH-D710 using XDA App
Click to expand...
Click to collapse
That's cool, I'll check it out.
I primarily use Eclipse. I wonder if it could be recompiled to run in Android? Or maybe the best solution is just to dual boot the thing with Android and Ubuntu.

Platform

I'm kind of a newb to the programming world and I have made some simple programs using eclipse IDE. Now my question is that is there a better IDE or I can continue programming with the same? Many thanks
Sent from my Micromax A87 using xda premium
RazaVakil7995 said:
I'm kind of a newb to the programming world and I have made some simple programs using eclipse IDE. Now my question is that is there a better IDE or I can continue programming with the same? Many thanks
Sent from my Micromax A87 using xda premium
Click to expand...
Click to collapse
Why don't you try the new Android Studio, it was announced at the I/O event. It's based in IntelliJ IDEA which has been featured on the Portal before, it's meant to be very good. I haven't tried it yet though, although I don't doubt it's better than Eclipse. Anyway, you can find out about Android Studio here.
HTCDreamOn said:
Why don't you try the new Android Studio, it was announced at the I/O event. It's based in IntelliJ IDEA which has been featured on the Portal before, it's meant to be very good. I haven't tried it yet though, although I don't doubt it's better than Eclipse. Anyway, you can find out about Android Studio here.
Click to expand...
Click to collapse
any updates on android studio?
i started not long time ago with some eclipse coding and then started to work, and now when i have some time i would like to back to android apps
my question is eclipse vs android studio? eclipse have lots of tutorials and all... but will android studio overcome eclipse? and is it NOW good time to start with it or i should use eclipse first?

IDE of choice for newcommers

Hello,
i have recently decided getting into android application development and now the first big question arises.
Which IDE should i start on if i have no previous experience ?
I m guessing that all of them are pretty much equal to what they are capable on and it mostly goes down to developers preference so i assume i will not find a definate answer here but perhaps an upside/downside comparison for some of them.
As i have found out as of Google I/O 2013 the Android team has moved to IntelliJ Idea with the new Android Studio IDE.
Even if its not superior to the IDEs currently available it might be in the future so my choice is swinging towards Android Studio with no valid arguments why.
I would like to hear some opinion about Android Studio if there are any major downsides compared to other IDEs available and if its a good idea to give it a shot without previous experience.
Thanks in advance,
D
Hmm. Nobody use Android Studio?
druvisk, I think Android Studio is a good choice for you.
Android Studio should be okay for beginners I suppose.
I looked at it a while ago, and as far as I could tell, there was no support for native code/the NDK, and I need that for my apps, so I'm just sticking with Eclipse.
I'm using eclipse i think it's not that hard for beginners (i am a beginner too)
I think you should seriously consider using a multi-platform development environment, so that your final product can work on both Android and iOS, hopefully also on Windows Phone (or maybe even desktop PC). There are tons of those - affordable and high quality. Use google to find those. From the top of my head: Cocos2d/3d, Moai, Marmolade, Corona, Unity, Gideros, GameMaker, and many more....
Hi, I think that you have to go ahead with Eclipse.
You only need to download it in the android developers main web and you can already follow some official tutorials without searching the options on the Android Studio IDE. (That can be different)
After you get some experience you can go with Netbeans or the Android Studio itself.
Only TRUE cross development tool
druvisk said:
Hello,
i have recently decided getting into android application development and now the first big question arises.
Which IDE should i start on if i have no previous experience ?
I m guessing that all of them are pretty much equal to what they are capable on and it mostly goes down to developers preference so i assume i will not find a definate answer here but perhaps an upside/downside comparison for some of them.
As i have found out as of Google I/O 2013 the Android team has moved to IntelliJ Idea with the new Android Studio IDE.
Even if its not superior to the IDEs currently available it might be in the future so my choice is swinging towards Android Studio with no valid arguments why.
I would like to hear some opinion about Android Studio if there are any major downsides compared to other IDEs available and if its a good idea to give it a shot without previous experience.
Thanks in advance,
D
Click to expand...
Click to collapse
I recommend Gingee IDE. Super easy to use, and most important - helps you to use one code to generate an app in any desired OS, with no extra optimization needed.
Let me know if you need to hear more details. Or just go to gingeegames dot com.
Android Studio is great for those who haven't really been into Android before
Sent from my SM-N9005 using XDA Premium 4 mobile app
I'm working with Eclipse since the beginning and I'm quite happy with it. You can install ADT plugin, control the SDK manager and even profile your app with DDMS view.
I'd vote for Eclipse ...best IDE for beginners..
Eclipse. Android Studio still needs improvements from what I hear. Stick with Eclipse and you'll have everything you need.
RED_ said:
Eclipse. Android Studio still needs improvements from what I hear. Stick with Eclipse and you'll have everything you need.
Click to expand...
Click to collapse
This is correct.
Eclipse is the best right now.
Android Studio may be the best but Google really isn't in a rush to help developers out.
adrian.adamiak said:
I think you should seriously consider using a multi-platform development environment, so that your final product can work on both Android and iOS, hopefully also on Windows Phone (or maybe even desktop PC). There are tons of those - affordable and high quality. Use google to find those. From the top of my head: Cocos2d/3d, Moai, Marmolade, Corona, Unity, Gideros, GameMaker, and many more....
Click to expand...
Click to collapse
Like the original poster I'm also a newcomer with only basic knowledge of coding. I'm looking for a multi-platform dev environment thats more a GUI possibly with drag and drop features so I don't have to code. I see there are plenty of app making websites available but rather than cloud based I'm wanting a programme I can download.
Gingee looks good and one of it's features they're marketing is that you can "build your app/game without writing one line of code". Would the options mentioned above be similar to Gingee or do you have any other recommendations to meets my criteria?
I would go with Android Studio, since it's under heavy development, and Google is replacing Eclipse with AS, so you won't have to switch to an other IDE in the future.
I think IntelliJ Idea is the best IDE for Java developers. I tried Eclipse several times, but still can't understand, why would anyone switch from IntelliJ Idea to anything else.
andras_k said:
I would go with Android Studio, since it's under heavy development, and Google is replacing Eclipse with AS, so you won't have to switch to an other IDE in the future.
Click to expand...
Click to collapse
AS replacing Eclipse, I dont see that happening ever. Google never dedicates time and effort into anything, and an IDE is a big project.
I use netbeans with ndk for android c++ development
http://forum.xda-developers.com/showpost.php?p=53586100&postcount=4
Stick with Eclipse
I would recommend sticking with Eclipse as there is not many examples on using Android Studio for the newbies ... Now this is if you are looking to build native android applications.
I would not recommend any IDE that states you can build a application without coding ... Learn to code would be my honest suggestion.
Livecode??
I am disappoint.
Not one mention of LiveCode!
For anyone who has EVER used HyperCard on an old school Mac, you'll know how to use LiveCode. And they have a community open source edition, and can deploy to pretty much any target, save for Windows Phone.
I've written all kinds of one off custom apps with it.
To code for Android I have only been using Eclipse until now, and it meets all my needs. I think it's a very good tool ... as long as it's working, and to be honest this is not always the case. There where some incompatibilities of the ADT some month ago with the current licensing library, so I downloaded the very new version of Eclipse and ADT this month. Eclipse found some weird errors in Google's very own appcompat library ... I guess this is not my fault at all. Frequently Eclipse simply gets stuck loading content, and the only way to get rid of this problem is rebooting Windows. I don't know if such weird stuff is also occurring on Android Studio.

[Tool] Which IDE do you prefer? Eclipse, Android Studio or something else?

Hello,
I have built my first Android app using Eclipse and I think it was pretty quick and helpful in many ways.
After the first project, my colleague asked me to switch to Android Studio, but my question is: is it better than Eclipse? Which one do you prefer?
Thank you all in advance,
Andrea
Android Studio is "The Way Forward" but still has lots of problems, and runs slow for me.
I'm just trying Studio now with a new app I'm working on. NDK integration isn't good (but better than 2013).
I don't even use Eclipse anymore, just ant etc scripts on command line and default linux GUI editor (Pluma) for editing.
But I'm trying to learn Studio because I think Google will let Eclipse support rot once Studio is officially supported. AND I'm trying to find ways to make myself more efficient. I haven't used IDEs in over 25 years (Turbo C), LOL, but it was fun back then...
Here again, Google is moving from open source stuff (Eclipse) to proprietary Android specially designed and built stuff (Studio). That has good and bad, and I'll just "go with the flow"...
mikereidis said:
Android Studio is "The Way Forward" but still has lots of problems, and runs slow for me.
I'm just trying Studio now with a new app I'm working on. NDK integration isn't good (but better than 2013).
I don't even use Eclipse anymore, just ant etc scripts on command line and default linux GUI editor (Pluma) for editing.
But I'm trying to learn Studio because I think Google will let Eclipse support rot once Studio is officially supported. AND I'm trying to find ways to make myself more efficient. I haven't used IDEs in over 25 years (Turbo C), LOL, but it was fun back then...
Here again, Google is moving from open source stuff (Eclipse) to proprietary Android specially designed and built stuff (Studio). That has good and bad, and I'll just "go with the flow"...
Click to expand...
Click to collapse
Eclipse is the best right now.
Google Studio may be in the future.
I really hope Google starts stepping up and helping developers out. Xcode for iOS is really nice to work with when devloping for iOS. It would be nice if Google put that same effort into helping devs build for Android.
jbutewicz said:
I really hope Google starts stepping up and helping developers out. Xcode for iOS is really nice to work with when devloping for iOS. It would be nice if Google put that same effort into helping devs build for Android.
Click to expand...
Click to collapse
Why would they change to being more dev friendly ?
Why would they spend more money on "expenses" when Android is #1 in terms of penetration ?
I'd be happy to see it, but I don't see them changing, and I highly suspect their team of bean counter accountants continue to conclude their profits are best when their development teams are small.
I've been researching/learning everything I can about audio on Android. It's a big mess, though it works, more or less, as in "good enough". But high performance, low latency audio such as IOS has is extremely difficult, hardware/OEM HAL/kernel driver dependent, and effectively impossible to do without at least occasional glitches on many leading devices.
These audio issues have existed for years, along with MANY others. The Android issue tracker is full of such issues. Some improvements have been made, but it's never enough.
Low level stuff like audio is where Android really falls down. The Google perspective seems to be the user perspective, which is closer to higher level Java stuff and farther away from the nuts and bolts of kernels, HALs, C and assembly language. Most of this is left to the OEMs to figure out and many take major shortcuts to reduce time to market.
andreait15 said:
Hello,
I have built my first Android app using Eclipse and I think it was pretty quick and helpful in many ways.
After the first project, my colleague asked me to switch to Android Studio, but my question is: is it better than Eclipse? Which one do you prefer?
Thank you all in advance,
Andrea
Click to expand...
Click to collapse
I'm also interested in what folks are using. I whipped up a poll this morning and posted it on Reddit/r/Android but this seems much more appropriate.
Here is the Poll
And the results so far Results
matt68000 said:
I'm also interested in what folks are using. I whipped up a poll this morning and posted it on Reddit/r/Android but this seems much more appropriate.
Here is the Poll
And the results so far Results
Click to expand...
Click to collapse
wow, these results make me only more confused.
Right now I'm using Android Studio too, and in some ways is better, especially the design views on the right side of the code, but adding libraries was a slowly death inside!!!
IntelliJ is the best. After I first-time used it, I would never switch back to eclipse.
Eclipse as an IDE, Unity3D as an engine.
esoloyu nefs
As along time eclipse user (more then 10 years) I tried out intellij a few month ago and I will never go back. IntellliJ is just the better ide
Well and now since I am using gradle I switched to android studio. Its like intelliJ with more android power
matt68000 said:
I'm also interested in what folks are using. I whipped up a poll this morning and posted it on Reddit/r/Android but this seems much more appropriate.
Here is the Poll
And the results so far
Click to expand...
Click to collapse
Great idea! As of now, it looks like the distribution of Android Studio and Eclipse w/ ADT goes head-by-head.
As for me, I prefer Android Studio. The layout previews and the built-in gradle support are the most important advantages for me. And of course the Darcula theme is also a huge plus
Still sticking with Eclipse. Android Studio has more fancy features, but we're hand coding all the XML's or dynamically creating views anyway, so while a better UI editor works for smaller apps, it's not much help for a complex one.
That and redeploying / releasing is easier (for me anyway) with Eclipse, I've heard too many issues with Gradle to make the switch yet with commercial apps. People still complain about compile time, but with DexGuard packing stuff, it's < 10s between clicking "Run" and having it on the phone, not bad for an 6MB .apk full of code.
andreait15 said:
Hello,
I have built my first Android app using Eclipse and I think it was pretty quick and helpful in many ways.
After the first project, my colleague asked me to switch to Android Studio, but my question is: is it better than Eclipse? Which one do you prefer?
Thank you all in advance,
Andrea
Click to expand...
Click to collapse
Hi , I have been using eclipse IDE for long time.It is great software to do android development.But they say that Android Studio is more context aware that eclipse and you have to write very less code.Through predictions it guesses what you want to do.So I have decided to give it try and Will be posting my finding here.
Yes this is sure that Android studio is still buggy as my team mates using this software often say that.
Let me check and I will get back.
Any one else if find major differences b/w two please explain pros/cons here.
Thanks,
Eclipse
andreait15 said:
Hello,
I have built my first Android app using Eclipse and I think it was pretty quick and helpful in many ways.
After the first project, my colleague asked me to switch to Android Studio, but my question is: is it better than Eclipse? Which one do you prefer?
Thank you all in advance,
Andrea
Click to expand...
Click to collapse
Go With eclipse
Eclipse is stable and you will find lot of android video tutorials based on eclipse
Android Studio is still not fully stable ...
aditya.kamble said:
Go With eclipse
Eclipse is stable and you will find lot of android video tutorials based on eclipse
Android Studio is still not fully stable ...
Click to expand...
Click to collapse
Have you got examples of when Android Studio has not been stable?
Just because its still in "alpha" stage doesn't mean its not stable... I've never had any issues with it since switching from eclipse. Remember its based off IntelliJ which is stable.
It is stable enough to develop apps. But we should used to that sometimes studio freeze when we plug second device, or when we trying to do something sophisticated with Gradle. Recording video sometimes generate broken mp4 file.
Another thing is Gradle, which is great tool to simplify building app. Flavors and build types wasn't so easy never before.
Now with 0.5.8 version is almost complete code completion for Gradle files. In upcoming releases we will get proguard completion.
There is several crashes here and there, but it cannot be compared to eclipse. Not the same league.
Big problem is lacking support for native code so you do develop mostly on Visual Studio.
If spending couple minutes from time to time with IDE itself doesn't scare you much, the choice is simple.
Sent from my Nexus 4 using XDA Free mobile app
Hi,
Continuing with my previous post ,
I started using android studio a week ago and following are my findings till now.
Android studio is excellent tool for android I guess because it has so many shortcuts or features etc.Sure it has some learning involved because of gradle.But once you pass basics of setting up project using gradle it is most excellent tool.Following are features
1).It will auto import classes when you write code.
2).It is truely context aware tool becuase It will present you with options relevant to piece of code(function, expression,class etc) you are writing when alt+enter is pressed.Consider alt+enter as right click.eg.If you have written any regular expression in your code then it will automatically identify it as regular expression and present you with dialog to test you regular expression there only.Same goes with SQL,HTML,XML etc it presents option with these only.Means you do not have to tell ide that I have written some regular expression please evaluate.It knows what you want.
3).You can search file using ctrl+N by specifying name of file.You can also specify filename:<line> in search box it will go to that file and to that line.
4).Another cool feature is gui editor.When writing any layout then it shows preview side by side, so you dont have to switch.Cool thing is that you can preview multiple devices at the same time.And device skin is of real device.How cool is that.
5).Now coolest feature is that you can set up multiple versions of project at the same time using build flavours using gradle.It is coolest.Just learn this you will love it.
6).No need to install ADT separately and update it separately.Studio comes with everything preloaded , and if any update comes then it is update for Android studio.
7).Real trick of using Android studio is to learn as many shortcuts as possible , Under Help in android studio there is keymapping , it contains complete list of shorcuts.
8).Code navigation is awesome in android studio.
9).It is stable.
Now I am not saying eclipse is not good IDE, but simply android studio is better than it in every aspect.
I feel that if you are new to learning android then please start using Android Studio instead of eclipse.
Please follow this channel for video tutorials on Android Studio : https://www.youtube.com/channel/UC5fT02o8H1NnGfX7j1CmP6Q
Thanks,Hit thanks if it helped.:good:
I used Eclipse for about 1.5 year. I know almost evry bug there, so after that development was pretty starightforward. Recently, I had to use AS, because of commercial project. It looks great, it's fast and I love it. If you are starting, choose AS.
I got Studio working, but it's still all new to me (so much more in an APK, it seems).
I do like it though, it brings a fresh new UI to the table. Need to figure out how to import libraries in it, though...
bassie1995 said:
I got Studio working, but it's still all new to me (so much more in an APK, it seems).
I do like it though, it brings a fresh new UI to the table. Need to figure out how to import libraries in it, though...
Click to expand...
Click to collapse
New Module > Import JAR or AAR or Import Existing Project
For libraries that are in the maven repository you can simply add the project to the build.gradle file, for example add the following to import the Google Play Services library:
Code:
compile 'com.google.android.gms:play-services:+'
Jonny said:
New Module > Import JAR or AAR or Import Existing Project
For libraries that are in the maven repository you can simply add the project to the build.gradle file, for example add the following to import the Google Play Services library:
Code:
compile 'com.google.android.gms:play-services:+'
Click to expand...
Click to collapse
Ah cool, I'll try. Thanks!
Sent from my HTC One_M8 using Tapatalk

Categories

Resources