[Q] Programming android apps - General Questions and Answers

I've started taking up java and would like to try my hands at android.
I'm going into computer Science at my university and have been taking a Java programming class this semester.
I kinda assumed that I was learning the correct syntax needed to program in Android since I thought it was mostly java based, however ever project we've done (and will do, according to the professor) was based on importing a java library called objectdraw.
I guess my question is weather or not I can import objectdraw into an android app project.
or is there an android version?
any help would be greatly appreciated.

What parts of the objectdraw library do you generally use? I'll be happy to give you some pointers on the Android equivalents (if you don't get an answer to your question)

well, I'm pretty new at it all,
so far we've been creating objects such as rect tangles (framedRect) and other shapes.
asking you to define all of them for me would be a pain for you.
but you did answer my question which was whether or not I would simply be able to use the same commands.
any other tips for someone who's just beginning?

I'd recommend digging through the sample apps that come with the Android SDK. You'll probably find a lot of useful drawing stuff in there, and one or two of them could be a good base project to start from when writing your own apps.

Related

Best place to get started ? ? ?

. . . with understanding development using Java for Android?
Do I start with Java books?
Where do I read about how to set up an Android development environment? I'm trying to read through everything at the Android Developers website, but I was hoping someone could point me towards better/more information.
I know this is a VERY n00b question, but in order to avoid asking any further n00b questions, I'd like to come to this party better equipped.
TIA -
Darryl
You HAVE to be good at java before you can start programming for android. C/C++ too if you intend to develop something performance hungry.
I suggest that you look at an introduction to developing in Java on desktop and familiarize yourself with Java syntax. If you haven't programmed anything before then also familiarize yourself with programming techniques and object oriented programming in java.
To be honest, it takes 4 years on college to learn that. You may be able to learn it earlier, given that you put enough effort but don't expect programming anything useful anytime soon.
Thank you!! At least I have a starting point. Never too late to begin.
Gonna see if starting with Introduction to Java Programming, Comprehensive Edition is something that works for me.
Thanks again!!
sorry for double post
Ive managed to set up Eclipse 3.5 and the Android SDK.
Then I downloaded the components to develop for Android 1.5, 1.5, and 2.x(.x)
Also installed the USB driver(on an WinXP machine) and that's all there is to it, I think.
As for Java, I have an old book(or bible, judging by the size) on Java 1.5 from Deitel.
But right now, Im just looking at the official trails on sun.com:
http ://java.sun.com/docs/books/tutorial/index.html
I guess learning the syntax is one thing.
Learning programming concepts and OO are two other things.
Then there are algorithms and programming techniques.
Then there is familiarization with how the Android platform differs from regular Java applications/applets/etc.
I think that covers the basic steps towards Android programming in java.
If I missed anything, can someone fill me in please?
Thanks!
maybe someone knows of a open source repos. you can look at examples. Like planet-source-code dot com but with android examples.

Where should I start if I wanted to start developing ROMs?

I have coding experience in C++ and windows programming languages, but I haven't a clue about android. I tried searching google and this forum for a good master thread or even a book, but haven't had much luck.
Can anyone help me out?
jojo54696 said:
I have coding experience in C++ and windows programming languages, but I haven't a clue about android. I tried searching google and this forum for a good master thread or even a book, but haven't had much luck.
Can anyone help me out?
Click to expand...
Click to collapse
same here
Hello I am new to xda and I would like to start developing new custom roms and kernels however I do not know where to start.
Just some background info about me:
I am 15 yrs old
I am have programmed in the following:
c++
visual basic
c#
asm
Java
javascript
html
android 2.2 framework
window phone 7 framework
xml
ios
XNA
I have done computer repair for people along with console repair
Tools I have used:
visual studio
android sdk
eclipse
dreamweaver
dev c++
Photoshop
appmobi xdk
phonegap xda
xcode iphone sdk
and some more
Phone I currently have:
evo 3d
I am a noob to making roms and I do not know how to start if someone could help me or point me into the right direction that would great. Thanks
Click to expand...
Click to collapse
that was my post and still no replys
First of all, learn and become comfortable with Java. If you're not comfortable with Java you're going to have some problems since besides the c libraries/kernel the android source is Java/XML.
Second, you need to decide if you're going to be messing with pre-built ROMs (or RUUs or whatever) or the actual AOSP. Actual AOSP is the actual source code but if you're modding a pre-built ROM you're going to have to also learn how to deal with smali code (which as far as I know is basically machine code [if you know what that is]).. Eris has a pretty good guide-in-progress which I'll find and post here later if I can.
It's a lot of work and a lot of looking and learning and not very clear. I have a lot of respect for the people who do it a lot I'm thinking of dabbling soon...
Edit:
here: http://teambamf.net/showthread.php/2793-Guide-Eris-s-Ultimate-Guide-to-ROM-ing-and-Porting

[Q] Confused about Android/Java (please help!)

G'day.
I'm trying to get started developing Android applications but I have hit a bit of a wall.
I've been learning Java, and finally downloaded the Android SDK yesterday. The official Android Developers site says that Android applications are built using Java, but when I started following the "getting started" tutorial I quickly realized that it is not really using Java, and i hardly recognize a thing.
After a bit of searching I found that Android apps do not use Java, they use.... 'Android.'
Now, I understand that the Android language is based on Java, but I still can't help but feel as though I've been wasting my time when I could have been learning Android directly.
My questions are:
1. What is the best non-YouTube resource for learning Android? (I don't have unlimited internet)
2. Why does the Android site claim that it's apps are built with Java?
3. Why didn't they just actually use Java? Why did they have to modify it into a different language? Is it to purposefully make things more complicated and annoy people, or is Java too limited for mobile apps?
Thanks.
I don't know if you remember the big Google/Oracle (developers of Java) lawsuit a while back, although it is unrelated to Java itself, that is probably one of the reasons AOSP decided against using the actual Java language in creating apps. Since it's based on Java, people who have some Java experience would probably have a head start than someone with no Java experience.
To answer your first question, your best bet would be to go to a bookstore like Barnes and Noble and buy an Android development book. They have plenty of books out there for developing for Android and does not require the internet.

[Q] running apps on device/emulator, resources needed

Hey I've recently rooted my first phone (didn't go as smooth as i'd like it to but the phone works) Anyway, I was thinking that i might learn to develop android apps. The thing is I have a few question which i wasn't able to find answers for or they didn't help me completely.
I downloaded ADT bundle from official android developers website (basically eclipse with the plugins preinstalled, am i right).
The first problem i encountered was that the emulator was so unbelievably slow,i know it's not only my issue and that emulator is slow in general, but I wasn't expecting this. My first app the incredible Hello World app which should take user input and (probably) print it out crashed when i tried to submit the text, though that probably wasn't the fault of emulator but rather problem with my settings (seriously i had to import a lot of stuff just do a simple hello world app) So, let's get to the first question itself. Is there a way to somehow run my app on my phone/tablet (nexus 7 II) in real time? Or besides emulator and copying the app on the device there's no other option?
My second question isn't that much android orientated, but here it goes: This year we are going to learn java at school and i was thinking if i could use ADT bundle from android developers as a regular eclipse if I choose java project instead of android project. Or is it better to use separate eclipse? if so, how do i set those IDEs so that they won't interfere with one and another. It it just a matter of setting different workspaces?
The third question is: Resources. What are some good resources for developing android Apps for beginners. I do have some programming knowledge but it's lather low, i do understand basic concepts, I did use java for really basic stuff but nothing serious. What books/video tutorials or any other resources would you recommend?

[Q] development of android apps 100% on android tablet

Hello! I am new to this forum so i could have posted this into wrong section.
I want to start learning how to develop apps for android, but the thing is, i am not able to do it on PC.
Could someone tell me what android applications i need to get, to fully develop an application, which is made in the same quality as it would be made on PC. ( everything, not just programming). At the moment i got only AIDE ( Android IDE ), but i dont think that AIDE is enough to fully develop an application. If its not possible to do 100% of work on android tablet, please tell me. Thank you for your answers!
bump
Personal advice
Hi, I do have first hand experiene with Android IDE and it's OK if your not able to use your development PC and your really inspired to write some code but you most def will need an external keyboard/mouse if your going to write something bigger than a 'hello world' program. Don't get me wrong, AIDE will get the job done but it will take you much longer, i.e. a single small screen with limited ram/processor does not help.
I don't know your situation for not being able to do it on a PC but if you are serious about becomming a developer then an investment in a desktop/laptop should be at the top of your list, but if you want to test the waters first and all you have access to is a tablet with AIDE then I say go for it, I just hope that the limited enviroment does not discourage you, programming is fun and rewarding if you have the right tools.
Do you have any experience programming?
If not I would recommend you follow the Newboston series of videos for beginning programming with Java first before jumping into Android development, I say development because writing apps for Android consists mostly with writting Java that uses the provided Android API's.
Newboston beginning programming with Java video series (He uses Eclipse here but you can ignore that and just type the same code)
http://thenewboston.org/list.php?cat=31
Newboston application Android development (If you try to complete this without any Java knowledge you will cripple you chances of success)
http://thenewboston.org/list.php?cat=6
Excellent resources provided here at XDA for Android development
http://www.xda-developers.com/android/want-to-learn-how-to-program-for-android-start-here/
p.s. You would be suprised at how cheap you can find a used PC on craigslist, you don't need a gaming monster but get something that is multi-core with at least 4gigs of RAM.

Categories

Resources