Writing Apps - Nexus One General

Back when I was a young lad, I used to enjoy a little programming. I was wondering, how complex is it to write apps for Android? What languages do you need to learn? What is there out there to help someone start?

There is a hello world tutorial (and others) here:
http://developer.android.com/guide/tutorials/hello-world.html
There are also a few eBooks out there. Oreilly has one "Android Application development", there also "Beginning Android" by Mark Murphy.
All I've done so far is a hello world, running in the emulator, then signed it and installed it on my phone (via adb).

Related

Android Emulator Idea

So i have been looking at alot of the emulators and i am kinda a noob when it comes to coding and creating Roms and so forth.
Would it be possible to make a emulator that reads the OS from the folders like the phones does. that way noobs like me could copy .apks and rom .zips.
Idk is there anyway that would be posible.
Thanks
The Android SDK contains an emulator, that you can install apps on.
I suggest you download it from here: http://developer.android.com/sdk/index.html
Then read the documentation, play and before long you will be far less of a 'noob'.
--
Simon Monk - memeapps.com
I have read it and read it many times and i get it but i still have a hard time getting everything to work i guess i will try rereading it again tonight
what isn't working, exactly?

please help me in android app development ( writing java codes )

hi every body
im not developer or programmer but im so interest in developing android applications , i prepare my PC to that by downloading JDK , SDK and eclipse , i know how to use it and create the UI for app by XML in eclipse , my problem in writting the java codes for the objects in app for example , i know how to create button or text view or edit text but when i want that button to do action on click for example to save text to SD , I HAVE TO WRITE JAVA CODE FOR THAT SO WHEN I CLICKED THE BUTTON IT WILL SAVE THE TEXT TO SD , i dont know how to write java codes , is there is soft ware that perform that or java code generator to give the code for any object action i need , just finish the XML and give me codes directly . or i have to learn JAVE first then go for app developments
please help me
thanksssss
you should learn Java first
go to youtube http://www.youtube.com/results?sear...=6289l6289l0l8480l1l1l0l0l0l0l234l234l2-1l1l0
free programming channel including android app development
merry christmas
thanksssss
1. Learn Java
2. Practice
3. Join and use Stackoverflow.com
4. ???
5. Profit!!
Lol
then eventually
6. Try Android development.
You need to really understand Java threading and algorithm design if you want to create good apps and not get neg rep for your early releases.
Hi friend i want you to tell me how to add custom font in android app development in eclipse , i want to use my font but i dont know to code it in java, i used method of get assest after i put the custom font in font folder in assest folder but when open app it hang and force closr
thanks
First of all: WTF is common with use of the font in Android with java coding????
Please be remembered, that Copernicus and Galileo, to discover that Earth ic turning around the sun, did not needed to go to the moon.
I already answered you Here how to make font for android device. Please use this, relatively easy to follow, tutorial.
and... if I'd be you, I'd think about java development ONLY after achieving master degree with Platinium Certificate of use the search button here... and on google...
God protect us against people like him.. he can go to work for Apple or Microsoft... and it wouldn't be funny

[Q] binary in android

alright finally i made up my mind for making android CLI app
now i want to make an app on linux , i can simply write a small CPP program
but what about android (Especially acer iconia)?
how should i begin
what are the tools required?
Thanks in advance
Not sure what your asking for exactly.
But if you have not developer.android.com. is a place you MUST Visit for all things android..
Android doesn't really work with CLI... You'll probably have to go with a GUI, and most apps are written in Java (other languages are somewhat tricky, as you have to use the JNI or IPC to use most android libs)... as mentioned above, you'll get the required tools on developer.android.com. Other than that: Android's libc is fundamentally broken, with many standard functions being unavailable or misbehaving -- a major cause of headaches.
i am talking in general
for example "Busybox"
its written in C/C++
i just wanna know how to compile my own C code for android
Busybox is a bit different, as it's not a user fronting app. For something like that, just cross compile to arm. I believe theres one in the ndk:
http://developer.android.com/sdk/ndk/index.html
You'll need the ndk for user fronting apps with c code as well, btw.
you can use other cross compilers as well:
https://sourcery.mentor.com/sgpp/lite/arm/portal/release324
aman11dhanpat said:
alright finally i made up my mind for making android CLI app
now i want to make an app on linux , i can simply write a small CPP program
but what about android (Especially acer iconia)?
how should i begin
what are the tools required?
Thanks in advance
Click to expand...
Click to collapse
Hello, and welcome to the exciting world of Android Development! *insert sparkles*
In the Android world, CLI apps aren't the most popular. Making an app with a GUI would be a much easier starting point to some extent.
What you'll need:
1. A computer with the necessary software installed. This can be a Linux, Mac, or even Windows machine. In the case of a Windows machine, be sure you have the correct drivers installed. With the Linux machine, be sure you have the correct udev rules for the Iconia. Install the Android SDK. Install Eclipse, and the Android plugin.
It sounds like you want to run some native code as well. Use the Android NDK. There's a nice little beginner's guide here. Every good programmer starts with their first Hello, World!
2. Preferably some experience with Java. Almost all Android apps run on the Dalvik VM.
3. Patience. A lot of patience. Compiling takes time.
4. A device to test your code on. Running in an emulator is not good enough. Enable developer debugging on your device in the settings.
Hope this helped a bit.
Thanks alot guys
now i guess i'll be able to make some of my own apps

[Q]Hardware Damage by Program?

Hello,
If you do not know me (no wonder), I am this guy in the HOX+ Thread that is trying to keep it alive, which we all know in time, ROMs will stop spreading..MODS..etc.
So, As a stage to achieve my dream of being a popular developer and programmer, I am just starting to learn Java, and taking it seriously. My plan isn't really important , whats important is that I need to know some information about Android system, and if it has already been mentioned, please redirect me to the thread explaining so.
So Here we go:
[1] I am well aware that Java used to be a CPU beast in its early development especially with SWING, being all laggy , but that is rather fixed now. Programmatically speaking , Can a program "CRASH", "DAMAGE" or "FRY" your phone? Let's say a program has an infinite loop, can such a program crash the phone? Or is there a protocol that ANDROID OS follows to stop such an application.
[2] If there is such a protocol, how does it handle over pressure. Does it crash the application? Or are there times that the application just can't be stopped with result in having to hard reboot your phone?
[3] Can a program control CPU consumption "WITHOUT" root access? And if a root access is required, is "S-OFF" required for the bootloader? If the application requires Root Access, what does it really do to your phone? Is there a system file controlling the CPU usage , that the application manually changes as the user demands?
[4] If Java securely prevents hardware failings..etc. Is there another language that can cause that? C++? C?
Basically those are the 4 main questions on my mind, which I just want to know the answers to , just to expand my knowledge when I start to dive in android development.
Thanks a lot in advance,
Ghandour
MODS: please know that the title of this category is called "Coding Discussion ,Q&A, and education resources, and I can't find any Q&A section, so since I am studying Java, so I thought its the best section. Please do excuse me if its the incorrect section.
Ghand0ur said:
Hello,
If you do not know me (no wonder), I am this guy in the HOX+ Thread that is trying to keep it alive, which we all know in time, ROMs will stop spreading..MODS..etc.
So, As a stage to achieve my dream of being a popular developer and programmer, I am just starting to learn Java, and taking it seriously. My plan isn't really important , whats important is that I need to know some information about Android system, and if it has already been mentioned, please redirect me to the thread explaining so.
So Here we go:
[1] I am well aware that Java used to be a CPU beast in its early development especially with SWING, being all laggy , but that is rather fixed now. Programmatically speaking , Can a program "CRASH", "DAMAGE" or "FRY" your phone? Let's say a program has an infinite loop, can such a program crash the phone? Or is there a protocol that ANDROID OS follows to stop such an application.
[2] If there is such a protocol, how does it handle over pressure. Does it crash the application? Or are there times that the application just can't be stopped with result in having to hard reboot your phone?
[3] Can a program control CPU consumption "WITHOUT" root access? And if a root access is required, is "S-OFF" required for the bootloader? If the application requires Root Access, what does it really do to your phone? Is there a system file controlling the CPU usage , that the application manually changes as the user demands?
[4] If Java securely prevents hardware failings..etc. Is there another language that can cause that? C++? C?
Basically those are the 4 main questions on my mind, which I just want to know the answers to , just to expand my knowledge when I start to dive in android development.
Thanks a lot in advance,
Ghandour
MODS: please know that the title of this category is called "Coding Discussion ,Q&A, and education resources, and I can't find any Q&A section, so since I am studying Java, so I thought its the best section. Please do excuse me if its the incorrect section.
Click to expand...
Click to collapse
Root apps could destroy your phone. Normal apps can just delete all files, but the OS keeps them from causing any damage to the hardware.
You can always stop apps in the settings.
You need root access for that. All other apps may not do that so that they are unable to damage the phone (see [1]).
All root apps call some busybox or system binaries using the built-in Linux shell. (The roottools library makes this very easy. Tutorial-Link)
It's the OS, not Java. All apps run in a sandbox. So using C/C++ doesn't change anything.
PS: There is no special Q&A section. This is the right one.
nikwen said:
Root apps could destroy your phone. Normal apps can just delete all files, but the OS keeps them from causing any damage to the hardware.
You can always stop apps in the settings.
You need root access for that. All other apps may not do that so that they are unable to damage the phone (see [1]).
All root apps call some busybox or system binaries using the built-in Linux shell. (The roottools library makes this very easy. Tutorial-Link)
It's the OS, not Java. All apps run in a sandbox. So using C/C++ doesn't change anything.
PS: There is no special Q&A section. This is the right one.
Click to expand...
Click to collapse
Perfect Answer and explanation. Thanks a lot mate, I had to know these answers as I want to know that my phone will be secured once i pass the "emulator" stage.
I still can't thank you enough
Ghand0ur said:
Perfect Answer and explanation. Thanks a lot mate, I had to know these answers as I want to know that my phone will be secured once i pass the "emulator" stage.
I still can't thank you enough
Click to expand...
Click to collapse
You're welcome.

[Q] Problem getting started on Android Studio

Hey guys,
I have been having trouble getting started developing applications for android. I know how to use Java, and frequently use the netbeans ide for my java homework ect. But I decided why not adventure out and build upon what I learned in school. Unfortunately I have ran into nothing but problems. The first problem is this:
"Gradle project sync failed. Basic functionality (e.g editing, debugging) will not work properly. "
In the messeages window it reads:
[file path to \app\build.gradle]
Failed to Find: com.android.support:appcompact-v7:21+
I have had trouble using grade in eclipse....well I only got eclipse to work once, when I first got my phone, and managed to make a small pop-up app for my self. I did not know any programming language at the time. I merely just copy and pasted most of the code.
and problem number two;
The generated code is riddled with errors?
I look through most of these errors and they state that certain things can be resovled. For example, cant resolve "support" <--- I think that by not having this imported correctly (I think this falls into the first problem) is causing the rest of the errors in my MainActivity file to go crazy.
Is their any way to post more information? Like a log file, maybe that might be of more help too. I just am unfamiliar with Android Studio, as of right now. Attached is a picture of the IDE when is spawns the error.
Thanks for the help in advance!
How to Fix said issue
KJ4CCH said:
Hey guys,
I have been having trouble getting started developing applications for android. I know how to use Java, and frequently use the netbeans ide for my java homework ect. But I decided why not adventure out and build upon what I learned in school. Unfortunately I have ran into nothing but problems. The first problem is this:
"Gradle project sync failed. Basic functionality (e.g editing, debugging) will not work properly. "
In the messeages window it reads:
[file path to \app\build.gradle]
Failed to Find: com.android.support:appcompact-v7:21+
I have had trouble using grade in eclipse....well I only got eclipse to work once, when I first got my phone, and managed to make a small pop-up app for my self. I did not know any programming language at the time. I merely just copy and pasted most of the code.
and problem number two;
The generated code is riddled with errors?
I look through most of these errors and they state that certain things can be resovled. For example, cant resolve "support" <--- I think that by not having this imported correctly (I think this falls into the first problem) is causing the rest of the errors in my MainActivity file to go crazy.
Is their any way to post more information? Like a log file, maybe that might be of more help too. I just am unfamiliar with Android Studio, as of right now. Attached is a picture of the IDE when is spawns the error.
Thanks for the help in advance!
Click to expand...
Click to collapse
Ok guys, I figured it out. We need to install a package from the sdk manager. The picture shows which one needs to be installed. The package is "Android Support Repository"
Seems you have already gotten the answer. But for this kind of questions, past the main line of the error log into Google is much faster than post a question, I think.

Categories

Resources