Android Development
Good or bad experiences developing apps lately? What are you learning about the dev process?
Comments
-
I myself just started setting up a development environment for Android. This will be a great place to share the knowledge. Thanks Jennifer.0
-
I have been playing with android development on and off over the past several month, I still consider java awkward so nothing has been completed or submitted. But now that we have this section I have a place to go for help or to voice my java frustrations, so thank you very much for adding this section.0
-
As you may know I've received a Nexus One device in April, I've installed the complete toolchain and adapted my eclipse environment to the Google SDK during the collaboration summit days. After the common "hello world" program I've had a lot of troubles dealing with tons of different java objects / classes in the early days due to my lack of knowledge.
Now after 7-8 months spent on it I'm quite happy of the environment, personal knowledge and java basic classes.
You need to understand deeply their java classes, you can solve the same problem using different classes and use different solutions.
The key point of Android OS is basically the developing environment from my point of view. You can literally redesign the user interface by subclassing Google basic classes, redesign the home menu, items, telephone app, contacts and so on.
You need to understand their structure and APIs and when you design an embedded app for your phone/pda/... application performances and speed are really impressive (even if Snapdragon CPUs are crunching beasts compared to others...), you can design your app with an embedded browser, map, high level objects and so on. It takes a while to learn everything but when you've read few books and understand basic concepts (from forums for example) it's easy to develop for it.
Now I've some experience on the OS and the Java environment, I'm really happy to discuss some advanced topics with you if possible, even write articles or blogs if this is an interesting topic
Ben0 -
It's nice to see that you've chosen Eclipse with the Android plugin, that's how I've decided to set up development. I've had to put the set up on hold, unless I find a separate computer to run it on. Seems like a fix made to the Fedora Eclipse requires an update to a version of OpenJDK that borks some financial software I use. Hopefully they'll fix OpenJDK soon and I can join the fun.0
-
I use Eclipse for everything I've related to development (C++, Java, C with AVR GCC, Python, Php, JS, ...) so my opinion could may be a little bit influenced from the experience.
Google suggest you to use Eclipse and most of their documentation is related to it.
I personally don't install Eclipse from distribution repository (rpm -ivh ... Fedora, apt-get install ... debian, emerge ... gentoo) 'cause Eclipse is a "different beast" and has its own updates, even on heavily updated distro (Fedora or Ubuntu for example) you don't have the same features or updates from original Eclipse repository. So I've always installed Eclipse on its own from their website.
Never had a trouble with an underlying JVM but I personally don't use Fedora; mainly Gentoo, Slack, Debian and Ubuntu.
I'm glad to find someone else using droid tools from this site, I'll look forward for exchanging experiences on it.
Cheers
Ben0 -
I finally got some time to set up one of my machines for the Android development environment, and I'm a bit confused. When I started reading up a few weeks ago, I was under the impression that I could use OpenJDK as the Java component, but, when I got to the installation requirements I see this:
Supported Development Environments
Eclipse IDE
Eclipse 3.4 (Ganymede) or greater
Eclipse JDT plugin (included in most Eclipse IDE packages)
If you need to install or update Eclipse, you can download it from http://www.eclipse.org/downloads/.
Several types of Eclipse packages are available for each platform. For developing Android applications, we recommend that you install one of these packages:
Eclipse IDE for Java Developers
Eclipse Classic (versions 3.5.1 and higher)
Eclipse IDE for Java EE Developers
JDK 5 or JDK 6 (JRE alone is not sufficient)
Android Development Tools plugin (recommended)
Not compatible with Gnu Compiler for Java (gcj)
The last 3 lines seem to me to say that one needs Oracle/Sun Java JDK. Can anyone confirm this for me? I was hoping to stay Open Source.0 -
Have you tried the steps listed on http://kokoko.fluxionary.net/set-up-a-eclipse-free-environment-for-android-application-development ?0
-
Thanks Matt going to try that as soon as I get home.0
-
I also suggest this one (http://developer.android.com/guide/developing/eclipse-adt.html)
When I usually develop something with a tool I search something from the web as an alternative to manufacturer/producer source documentation; believe me or not Google did an impressive job with their docs, you can find a lot of different sources but official documentation is really clear and verbose, take a look at it.
To answer your question here's what I'm using in my Ubuntu laptop:
ben@andrea:/$ aptitude search jdk
p default-jdk - Standard Java or Java compatible Developme
v default-jdk-builddep -
p default-jdk-doc - Standard Java or Java compatible Developme
p gcj-4.4-jdk - gcj and classpath development tools for Ja
p gcj-4.5-jdk - gcj and classpath development tools for Ja
p gcj-jdk - gcj and classpath development tools for Ja
p openjdk-6-dbg - Java runtime based on OpenJDK (debugging s
p openjdk-6-demo - Java runtime based on OpenJDK (demos and e
p openjdk-6-doc - OpenJDK Development Kit (JDK) documentatio
p openjdk-6-jdk - OpenJDK Development Kit (JDK)
i A openjdk-6-jre - OpenJDK Java runtime, using Hotspot JIT
i A openjdk-6-jre-headless - OpenJDK Java runtime, using Hotspot JIT (h
i A openjdk-6-jre-lib - OpenJDK Java runtime (architecture indepen
v openjdk-6-jre-shark -
p openjdk-6-jre-zero - Alternative JVM for OpenJDK, using Zero/Sh
p openjdk-6-source - OpenJDK Development Kit (JDK) source files
As you can see I'm using openjdk, I've installed it directly from repository but I've manually downloaded Eclipse from eclipse.org site, no Ubuntu/Debian repository involved with it. I'm using Eclipse for 5/6 years and I've always avoided to install it from any distribution repository, that's because I'd like to update it manually from eclipse site and have more features/modules available.
Let me know about your tests if you need help with it
Cheers
Ben0 -
BTW - Since I'm still new to android-sdk, I don't know if this is news or not, but, from reading a few how-to's, it seems like the directions have changed. Android-sdk no longer downloads with adb, one must cd into the android-sdk-linux_86 folder in terminal and execute "tools/android update sdk" in order to download adb and other parts of the android-sdk.
So, from step three of the original link I gave:
3.) Change Directory into the "platform-tools" directory, then copy the "adb" application to your Ubuntu /usr/bin directory (sudo privs needed)
#From the extracted "android-sdk-linux_86" directory:
cd platform-tools
sudo cp adb /usr/bin/adb
it must be changed to:
3.) Change Directory into the "platform-tools" directory, then copy the "adb" application to your Ubuntu /usr/bin directory (sudo privs needed)
#From the extracted "android-sdk-linux_86" directory:
tools/android update sdk
cd platform-tools
sudo cp adb /usr/bin/adb0 -
@Goineasy9
Are you able to compile your first hello world program now ?0 -
Me and my friend had an awesome phone app idea at the weekend, I thought I'd try my hand at developing an Android application this week.
I want to give a quick overview of my preliminary thoughts on getting started on this endeavour.
Background: I've got more than 10 years Java experience, but any UI for the applications I've worked on was always a web UI. I am completely new to mobile app develop.I spent maybe a day and a half watching the excellent Android development tutorials and attempting to hack out a quick 'droid app.
I remember the disaster of trying to get my first JDK working on my 486 - what a nightmare! And getting Tomcat 3 installed and running? Forget it. I also remember the last time I made a serious stab at a learning a new technology. I tried develop a Grails/Groovy application in Eclipse. The IS guys had to rescue my laptop from me during that enterprise before I could do it any serious damage.
Installing the SDK on my mac was surprisingly simple, especially bearing in mind I'm new both to OSX and to mobile development. I don't know if it's because Android development has been well thought out and well supported, or if it's a function of both the industry's maturity and my own experience.The integration with IntelliJ was much slicker than I expected, especially since I'm using the freebie Community edition. I don't remember the exact steps to tell it I wanted to create an Android project, but it must have been ridiculously easy otherwise I would remember the trauma. I do remember a little confusion around installing the Android platform - I hadn't understood the difference between installing the SDK and then installing a specific API for it. And then when I clicked the "run" button in IntelliJ, hey presto! The emulator appeared and there was my app!
Did it work?I managed to get a rudimentary application running, with a button and some descriptive text (it's not about to win any awards). The button was supposed to launch the camera viewer, but my first few attempts just resulted in the crash notification. It didn't take long to figure out how to use logcat to see the stack trace and see I hadn't set the permissions correctly to use the camera, so I rooted through the CameraDemo example in APIDemo to figure out how to set up the AndroidManifest.xml correctly, and rather amazingly it all worked!0 -
I have a need to port a very simple console-only C language program to Android.
I assume there is a simple "terminal" application for Android this could use. Any recommandations?
The program is used on a single device only, so I would prefer to compile a binary for the particular processor instead of porting the whole thing to Java.
All comments on the practicality of this undertaking are welcomed.
TIA.
0
Categories
- All Categories
- 167 LFX Mentorship
- 219 LFX Mentorship: Linux Kernel
- 795 Linux Foundation IT Professional Programs
- 355 Cloud Engineer IT Professional Program
- 179 Advanced Cloud Engineer IT Professional Program
- 82 DevOps Engineer IT Professional Program
- 127 Cloud Native Developer IT Professional Program
- 112 Express Training Courses
- 112 Express Courses - Discussion Forum
- 6.2K Training Courses
- 48 LFC110 Class Forum - Discontinued
- 17 LFC131 Class Forum
- 35 LFD102 Class Forum
- 227 LFD103 Class Forum
- 14 LFD110 Class Forum
- 39 LFD121 Class Forum
- 15 LFD133 Class Forum
- 7 LFD134 Class Forum
- 17 LFD137 Class Forum
- 63 LFD201 Class Forum
- 3 LFD210 Class Forum
- 5 LFD210-CN Class Forum
- 2 LFD213 Class Forum - Discontinued
- 128 LFD232 Class Forum - Discontinued
- 1 LFD233 Class Forum
- 2 LFD237 Class Forum
- 23 LFD254 Class Forum
- 697 LFD259 Class Forum
- 109 LFD272 Class Forum
- 3 LFD272-JP クラス フォーラム
- 10 LFD273 Class Forum
- 152 LFS101 Class Forum
- 1 LFS111 Class Forum
- 1 LFS112 Class Forum
- 1 LFS116 Class Forum
- 1 LFS118 Class Forum
- LFS120 Class Forum
- 7 LFS142 Class Forum
- 7 LFS144 Class Forum
- 3 LFS145 Class Forum
- 1 LFS146 Class Forum
- 3 LFS147 Class Forum
- 1 LFS148 Class Forum
- 15 LFS151 Class Forum
- 1 LFS157 Class Forum
- 33 LFS158 Class Forum
- 8 LFS162 Class Forum
- 1 LFS166 Class Forum
- 1 LFS167 Class Forum
- 3 LFS170 Class Forum
- 2 LFS171 Class Forum
- 1 LFS178 Class Forum
- 1 LFS180 Class Forum
- 1 LFS182 Class Forum
- 1 LFS183 Class Forum
- 29 LFS200 Class Forum
- 736 LFS201 Class Forum - Discontinued
- 2 LFS201-JP クラス フォーラム
- 14 LFS203 Class Forum
- 102 LFS207 Class Forum
- 1 LFS207-DE-Klassenforum
- 1 LFS207-JP クラス フォーラム
- 301 LFS211 Class Forum
- 55 LFS216 Class Forum
- 48 LFS241 Class Forum
- 42 LFS242 Class Forum
- 37 LFS243 Class Forum
- 15 LFS244 Class Forum
- LFS245 Class Forum
- LFS246 Class Forum
- 50 LFS250 Class Forum
- 1 LFS250-JP クラス フォーラム
- LFS251 Class Forum
- 154 LFS253 Class Forum
- LFS254 Class Forum
- LFS255 Class Forum
- 5 LFS256 Class Forum
- 1 LFS257 Class Forum
- 1.3K LFS258 Class Forum
- 10 LFS258-JP クラス フォーラム
- 111 LFS260 Class Forum
- 159 LFS261 Class Forum
- 41 LFS262 Class Forum
- 82 LFS263 Class Forum - Discontinued
- 15 LFS264 Class Forum - Discontinued
- 11 LFS266 Class Forum - Discontinued
- 20 LFS267 Class Forum
- 24 LFS268 Class Forum
- 29 LFS269 Class Forum
- 1 LFS270 Class Forum
- 199 LFS272 Class Forum
- 1 LFS272-JP クラス フォーラム
- LFS274 Class Forum
- 3 LFS281 Class Forum
- 9 LFW111 Class Forum
- 260 LFW211 Class Forum
- 182 LFW212 Class Forum
- 13 SKF100 Class Forum
- 1 SKF200 Class Forum
- 1 SKF201 Class Forum
- 782 Hardware
- 198 Drivers
- 68 I/O Devices
- 37 Monitors
- 96 Multimedia
- 174 Networking
- 91 Printers & Scanners
- 83 Storage
- 743 Linux Distributions
- 80 Debian
- 67 Fedora
- 15 Linux Mint
- 13 Mageia
- 23 openSUSE
- 143 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 348 Ubuntu
- 461 Linux System Administration
- 39 Cloud Computing
- 70 Command Line/Scripting
- Github systems admin projects
- 90 Linux Security
- 77 Network Management
- 101 System Management
- 46 Web Management
- 64 Mobile Computing
- 17 Android
- 34 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 371 Off Topic
- 114 Introductions
- 174 Small Talk
- 19 Study Material
- 507 Programming and Development
- 285 Kernel Development
- 204 Software Development
- 1.8K Software
- 211 Applications
- 180 Command Line
- 3 Compiling/Installing
- 405 Games
- 309 Installation
- 97 All In Program
- 97 All In Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)