Android software development Comapny - Android Q&A, Help & Troubleshooting

Building Your First App
Welcome to Android application development!
Welcome to Halosys technologies pvt ltd
This class teaches you how to build your first Android app. You’ll learn how to create an Android project and run a debuggable version of the app. You'll also learn some fundamentals of Android app design, including how to build a simple user interface and handle user input.
Before you start this class, be sure you have your development environment set up. You need to:
Download the Android SDK.
Install the ADT plugin for Eclipse (if you’ll use the Eclipse IDE).
Download the latest SDK tools and platforms using the SDK Manager.
If you haven't already done these tasks, start by downloading the Android SDK and following the install steps. Once you've finished the setup, you're ready to begin this class.
This class uses a tutorial format that incrementally builds a small Android app that teaches you some fundamental concepts about Android development, so it's important that you follow each step.

Related

Programming Java on NT-Including generating APKs

Programming Java on NT-Including generating APKs
I don't know anything about java but am trying to learn. Most of what I would like to create will be simple. It would be nice to be able to create APKs so I could pass on to others if I wished necessary.
I have not been very successful setting up a proper environment in windows or linux. There are numerous guides on the internet for each operating system. The problem is the world keeps revolving and by the time I find a guide and try to follow it to conclusion there have been changes that cause an incorrect environment which is unusable.
I remember programming on iPAQs (xscale-arm processor) both in c/c++ and c# on board the iPAQ. After looking around a little I have found several options for windows users (gui) and one for linux users (command line) to program on the NT in java.
I felt I should pass this information along for others. These will be listed windows Style(gui) first and then linux style(command line) last.
Windows Style environment(gui) :
Aide - https://play.google.com/store/apps/details?id=com.aide.ui&feature=search_result
Just install and you have a working environment which will compile android api10 example files with nearly no changes (example change=add res directory which had been left out of example). The only thing that was not apparent is to watch the notification area for any errors which give you the problem and how to correct them. Updates have been often and useful. My first choice for windows type (gui) environment. Check the web for more info and tutorials about this program.
Android Java Editor – https://play.google.com/store/apps/..._result#?t=W251bGwsMSwyLDEsImNvbS5hbmplZGkiXQ..
With this one I had to watch the video and pause it several times to decide how to get setup and use (no audio-just video). It works and creates APKs also but is a bit more involved and the learning curve of the program is higher due to no available directions.
Linux Style environment(command line):
Terminal IDE – https://play.google.com/store/apps/...cuside&feature=nav_result#?t=W251bGwsMSwyLDNd
Easy install, good tutorials, and very easy to learn. Can be used with a tether (wifi or cable) and telnet to use keyboard and screen from your pc. This one has updates since I downloaded and support is great. I couldn't get the software keyboard to work on stock 1.4.0 but works great in CM7. As a result I used hackers keyboard while on 1.4.0. Also creates APKs. Includes vim, Midnight Commander, etc. This is a thirty meg download and is twice that when installed but everything is installed in /data/apps/ folder so it had no impact on a stock 1.4.0 system.
Notes:
None of these require being rooted to setup and use. There are others but I have decided not to list them in this thread for various reasons. I feel I have chosen the easiest to get working and use and provide the end result of an APK if you desire.
I forgot to mention they are all free. I have just begun this project so I can't be any help on use of these programs or java. I'm just passing on information as I think others may find useful. The way I see this project is anything I learn (no matter how little) from this is added to my limited knowledge and certainly can't help.
Almost forgot, I use jota text editor to look at and create source files.https://play.google.com/store/apps/...51bGwsMSwxLDEsImpwLnNibG8ucGFuZG9yYS5qb3RhIl0.
Nvm, you're talking about developing for android on android
lufthanza said:
Nvm, you're talking about developing for android on android
Click to expand...
Click to collapse
Yes that is correct.

Help me with eclipse & android sdk!

IF POSTED IN WING AREA JUST TELL ME AND BE NICE DON'T BE A DOUCHE.NOWHERE ELSE HAVE I GOTTEN HELP been trying to install over a month now. i want to try to get started looking at things and learn Android and then to start working on unlocking bootloader or work around to glass ics and diff kernals to my motorola electrify(photon)
Sent from my Motorola Electrify using XDA
What, seems to be the problem? You can't get eclipse, or the sdk to install..? Or is linking eclipse to sdk the problem? Or environment path variable? Need a tad more information :]
That's easy:
Download the latest versions of Eclipse Classic (don't download the Java Dev version!!!) and Android SDK. Don't use installers, ALWAYS use the zipped binaries.
Unzip the binaries in any folder, it doesn't mater. Open SDK Manager (at Android SDK folder) and download the packets for the version that you desire to develop. I recommend you download the packets for Froyo, since your apps will be compatible with Froyo or any upper version.
Open Eclipse, and install ADT Plugin, as described here.
Go to Window >Preferences >Android, and type the location of Android SDK folder.
And... that's all, dude. You're ready to rock
thank you. i will try again in the morning when i have to get ready four work. i keep getting where you have to install or whatever the android sdk to eclipse (classic 3.7.2)...
Sent from my Motorola Electrify using XDA
Hmm... the key thing is to have the latest version of SDK Tools (a packet that can be downloaded from SDK Manager).

[Q] Help working with AOSP Source in Eclipse

I have been trying to import the android source into Eclipse (the entire root directory along with all of the files and subdirectories) as a single project as specified here in the AOSP documentation: http://source.android.com/source/using-eclipse.html
No matter what I do though, I end up with hundreds, if not thousands of errors. I have the latest Android SDK, have tried to set the build path to use either Android 4.2 AOSP APIs or Google SDK 4.2 APIs to no avail. I have also tried importing it as an Android Project and a standard Java project. I have followed all instructions for setting up the build environment correctly and checked to make sure it builds correctly using make.
I have tried to remove the sample code packages but am met with the same result.
I usually make changes directly to the file in a simple text editor like gedit but I wanted to use Eclipse to do error checking and validation.
Anyone know how to successfully get and build the android source in Eclipse? ANY help is greatly appreciated.
P.S
I am using Mint 64bit and Eclipse Juno
My first question would be, are you able to create a new Android application project that compiles successfully?

Ubuntu Touch app development resources

I am hoping we can compile a list of resources for those that would like to get involved in the Ubuntu touch development process.
QtQuick 5.0: QML Application Developer Resources
Create a currency converter phone app
Adding gesture support to your app
Phablet PPA
Ubuntu mobile tech forums
Compiling native apps (unofficial):
Linaro toolchain: http://launchpad.net/linaro-toolchain-binaries/+download
or for Ubuntu: apt-get install gcc-arm-gnueabihf
This is enough for compiling simple console apps (this works, I checked this). But for much more complex projects it's need additional library.
Also there is no official full supported sdk for Qt/Qml (just Qml), however you can manually compile Qt5 sources for ameabi hf. I'm failed with compiling Qt/Qml using precompiled Qt dynamic libraries from Ubuntu Phone OS image (compiled ok, but run failed). So we need dev Qt package for armeabi hf. But it need to keep in mind Ubuntu Phone OS uses libhybris and some other libs for interaction with Android libs and drivers (which are BIONIC). That's why we need to wait for proper SDK.
---------
Please, check cross-compiling and share minds how to compile native Qt/Qml
---------
Added link:
www$dot$googledrive$dot$com/host/0B5kDhuHYYcvwWDZpS0puZXhnZkk/ubuntu-sdk-dev-en.html (replase $dot$ with .)
Any resources for just creating Web Apps?
ojdon said:
Any resources for just creating Web Apps?
Click to expand...
Click to collapse
Nothing that I have seen yet but I would imagine web apps will be used in a similar fashion to Ubuntu desktop. If this is the case here are some resources that may get you up and running.
Unity Web API
Ask Ubuntu: How do I use Ubuntu webapps
Launchpad Page (may be helpful)
What about fogger? You can create your own webapps....
Sent from my GT-I9100 using xda premium
dim319 said:
Compiling native apps (unofficial):
Linaro toolchain: launchpad.net<slash>linaro-toolchain-binaries<slash>+download
or for Ubuntu: apt-get install gcc-arm-gnueabihf
This is enough for compiling simple console apps (this works, I checked this). But for much more complex projects it's need additional library.
Also there is no official full supported sdk for Qt/Qml (just Qml), however you can manually compile Qt5 sources for ameabi hf. I'm failed with compiling Qt/Qml using precompiled Qt dynamic libraries from Ubuntu Phone OS image (compiled ok, but run failed). So we need dev Qt package for armeabi hf. But it need to keep in mind Ubuntu Phone OS uses libhybris and some other libs for interaction with Android libs and drivers (which are BIONIC). That's why we need to wait for proper SDK.
---------
Please, check cross-compiling and share minds how to compile native Qt/Qml
Click to expand...
Click to collapse
If you are building simple console apps, you can also build them on the device itself through ssh, and using `sudo apt-get install gcc build-essentials`
BukaKing said:
If you are building simple console apps, you can also build them on the device itself through ssh, and using `sudo apt-get install gcc build-essentials`
Click to expand...
Click to collapse
Right, but I want to make Qt/Qml.
I got toolchain, grab sources of platform-api and libhybris from
launchpad.net/~phablet-team, made libs (some of them was grabbed form device), edit mkspecs for qmake, compiled app, pushed it on device, edited on device: /data/ubuntu/usr/share/qml-phone-shell/Applications/applications.js and finally it's work!. Even can be launched from Apps page (on device).
I solved problem with assertion from previous my post, but I got new problem which is GUI. Ubuntu Phone OS window manager put my GUI to the bottom layer, so I can't see GUI of my app until qml_phone_shell process will be killed!
----------------
Good news: I have solved all my problem. So bit later I post extended instruction on how I did it!
What this means? We can develop native C++ Qt/Qml apps without ssh and install them on device!
So the guide says the minimum requirements of developing Ubuntu apps is to use Ubuntu 12.10. But I'm on Ubuntu 12.04 and it's difficult to sacrifice. Would it be fine to develop Ubuntu apps using 12.04?
L0rDKadaj said:
So the guide says the minimum requirements of developing Ubuntu apps is to use Ubuntu 12.10. But I'm on Ubuntu 12.04 and it's difficult to sacrifice. Would it be fine to develop Ubuntu apps using 12.04?
Click to expand...
Click to collapse
Probably not. If I were you I would install 12.10 in a virtual machine until 13.04 is released. Than revisit the upgrade issue.
L0rDKadaj said:
So the guide says the minimum requirements of developing Ubuntu apps is to use Ubuntu 12.10. But I'm on Ubuntu 12.04 and it's difficult to sacrifice. Would it be fine to develop Ubuntu apps using 12.04?
Click to expand...
Click to collapse
Where did you read that? There is Ubuntu SDK for Precise (12.04), Quantal (12.10), and Raring (13.04) at ppa:canonical-qt5-edgers/qt5-proper repo!
I think it even possible to develop on Windows, however it takes a lot of work to recompile sources of parts)
dim319 said:
Right, but I want to make Qt/Qml.
I got toolchain, grab sources of platform-api and libhybris from
launchpad.net/~phablet-team, made libs (some of them was grabbed form device), edit mkspecs for qmake, compiled app, pushed it on device, edited on device: /data/ubuntu/usr/share/qml-phone-shell/Applications/applications.js and finally it's work!. Even can be launched from Apps page (on device).
I solved problem with assertion from previous my post, but I got new problem which is GUI. Ubuntu Phone OS window manager put my GUI to the bottom layer, so I can't see GUI of my app until qml_phone_shell process will be killed!
----------------
Good news: I have solved all my problem. So bit later I post extended instruction on how I did it!
What this means? We can develop native C++ Qt/Qml apps without ssh and install them on device!
Click to expand...
Click to collapse
I also managed to build a Qt/Qml hello world app on the phone itself.
You said that you already solved your problem, so maybe you already found this... I got my hello world program to show up on top by adding this to the command line when launching my program:
./hello --desktop_file_hint=/usr/share/applications/qmlscene.desktop
BukaKing said:
You said that you already solved your problem, so maybe you already found this... I got my hello world program to show up on top by adding this to the command line when launching my program:
./hello --desktop_file_hint=/usr/share/applications/qmlscene.desktop
Click to expand...
Click to collapse
It's useful for launching apps from bash on device.
I used another way. I didn't use ssh for compiling and deploying my app. Just PC and adb. And run app from UI shell (not from bash).
This is how I did:
www$dot$googledrive$dot$com/host/0B5kDhuHYYcvwWDZpS0puZXhnZkk/ubuntu-sdk-dev-en.html (replase $dot$ with .)
The best place to get started with apps on Ubuntu Touch is
developer.ubuntu.com/get-started/gomobile/

[Q] Looking for an IDE that I can use to do Android OS builds

[Q] Looking for an IDE I can use for building the Android OS?
I have spent many years developing applications and device drivers for Windows (short pause while people make grunting noises and snide remarks)... but I recently switched over to developing software for Android. I have begun getting acquainted with the Eclipse IDE for Android app development (I downloaded the ADK bundle), and have also tried to acquaint myself with the process of building an Android ROM (ie: downloading the source and doing a build of the entire Android OS and support software). It seems like people who develop software for Linux are hung on the idea that everything should be done via typing shell commands into the terminal, and because Android is an "off shoot" of Linux, that the core developers of Android do the same (getting the source and building the OS is always described in terms of terminal shell commands).
I much prefer have a graphical UI in which I can just click on menu items and buttons to do the selected build operations. Is there an IDE (some sort of enhanced source code editor or whatever) that I can use to automate "repo" operations and to automate building the Android OS???
mediawiz said:
[Q] Looking for an IDE I can use for building the Android OS?
I have spent many years developing applications and device drivers for Windows (short pause while people make grunting noises and snide remarks)... but I recently switched over to developing software for Android. I have begun getting acquainted with the Eclipse IDE for Android app development (I downloaded the ADK bundle), and have also tried to acquaint myself with the process of building an Android ROM (ie: downloading the source and doing a build of the entire Android OS and support software). It seems like people who develop software for Linux are hung on the idea that everything should be done via typing shell commands into the terminal, and because Android is an "off shoot" of Linux, that the core developers of Android do the same (getting the source and building the OS is always described in terms of terminal shell commands).
I much prefer have a graphical UI in which I can just click on menu items and buttons to do the selected build operations. Is there an IDE (some sort of enhanced source code editor or whatever) that I can use to automate "repo" operations and to automate building the Android OS???
Click to expand...
Click to collapse
No , that pretty much stops others that don't know Linux from trying to build android . But this pretty much only is limited to aosp roms ie cyanogen, aokp etc . Doesn't mean you can't make your own rom using stock and changing stuff like other rom devs do ...This is pretty much the difference in original development and
Development
Sent from my SM-N900P using Xparent BlueTapatalk 2

Categories

Resources