Development under Android - java

I have the Android-based tablet, and I want to do some development actions on it.
Is there a way to code and compile Java and Android applications on my tablet?

Is there a way to code and compile Java and Android applications on my tablet?
There is no supported edition of the Android SDK build chain that works on Android devices. You are welcome to type in your code on a tablet, if you are a complete glutton for punishment, but you will need to compile that code on a development machine.
I have no idea what "development actions" are. If you mean scripting, look at SL4A.

Related

How to make an Android app without using Android Studio?

I downloaded the Android studio and installed it. When I launched it, it's all "graphical". My screen reader is reading nothing on it.
I'd prefer if I could use my Notepad app, but the "stand alone" tutorials are too tiresome, and not many tutorials on the web have instructions making apps using Notepad. I wanted to know if there is an alternate IDE, or another way to code Android apps?
The Java IDE Eclipse is also not very compatible with my screen reader. I use JAWS screen reader by Freedom Scientific. I used to code Java desktop software using my Notepad, so I'm familiar with programming using Notepad.
Also, if I somehow figure out how to make Android apps using Notepad, how am I going to test them? Do I need a phone? I'm sorry for all these beginner questions, but I'm a beginner :)
You can follow this link:
http://developer.android.com/tools/building/building-cmdline.html
If you only want to build, not run, you don't need a phone. If you want test without a phone you can use an emulator by running"AVD Manager.exe" in Android SDK folder.
The good thing since the transition to android studio is that now the building of an android project is done using Gradle and can be piloted entirely by command line. So technically, you don't need an IDE at all.
Basically, every project has at least a build.gradle file that contains the instructions to build it. You only have to launch Gradle with the appropriate command to compile your app.
Yelliver mentionned the tools to build the app from the command line, there are also tools to create the project structure and the basic build files: http://developer.android.com/tools/projects/projects-cmdline.html (this documentation appears not to be entirely up-to-date, though, as it mentions the old project.properties format)
Having a phone to run your app is certainly going to be nicer and faster to develop. The emulator is far from perfect, quite slow, and sometimes not responsive. It is also easier to install other apps on your phone than on the emulator, in case your app interacts with other apps.
I wrote two small scripts for Android development without using Android Studio. They are building apk and installing it on the connected device and opening the logcat with the output of the installed application. This two scripts not even near to complete when to think all the features of the Android Studio but they are allowing to at least run the project on your phone.

Android Studio and Eclipse - which one I should use?

I want to develop some Android applications. I have had Google trying to find out how I should choose between Android Studio and Eclipse, but I don't know how I should choose between these two IDEs.
On many websites, I see developers more likely to use Eclipse than Android Studio, or it is because Android Studio was just released?
So which one should I choose?
Important: Support for the Android Developer Tools (ADT) in Eclipse is ending, per our announcement. You should migrate your app development projects to Android Studio as soon as possible. For more information on transitioning to Android Studio, see Migrating to Android Studio.
Reference for the quote.
So definitively, you should use Android Studio
You still may be more productive with Eclipse at the time of writing, as Android studio is relatively new and some obvious features (like Unit testing, for instance) are kind of present yet you just cannot get them working. It will pass many years till Android 6.0 applications you can develop with Eclipse no problem will no longer run on majority of devices on the market.
But as Android studio will likely to improve over time, and new features will be available only there in the future, I would recommend to start from that IDE for a complete beginner. Even better it may be to understand how the command line development works as this may allow to use any flexible enough IDE, does not matter is it officially supported on not.

Java Application on Smartphone

What alteration should be made in a Java Application to be able to install it on Java Enabled Smartphone?
I tried using a random app of mine to see what happens, when I open it on the cell, it says Install? I say yes, and it says invalid file.
Now I was wondering what alteration should be made?
My smartphone (Samsung S8500) runs on bada which is more or less the same as Android, but alterations in the General.
You need different SDK for smartphones. Like for Android, you need Android SDK 1.5 or any other version. You just cannot install the same application. You need to develop using the resources provided by the SDK.
If your application is Java based mobile application then you can use some tools to convert it for Android. Doesn't work every time but worth a try.
In your case, Bada OS is not like Android what i learn from here. So, you need to develop the application using J2ME .

Android Applications Development without device

This question might be silly...but still:
I would like to learn the Android SDK, now I dont have an Android based phone,Can I still develop for it even if I dont own an android phone?
thanks
Yes. The Android SDK comes with an emulator, so you can run your apps on that.
Get Eclipse and Download the Android SDK through eclipse. This will allow you to debug your apps on the emulator right from your IDE. Also allows for Android App projects and code highlighting.
Yes. There is an (essentially) fully functional emulator.

Mobile phones supporting Java Android?

What are mobile phones supporting Java Android?
Is there any Nokia phone supporting this technology?
What should the mobile contain (a framework, a plugin.. etc) if we want to deploy a Java Android Application?
Android can be deployed to many devices with custom builds of the OS; anyone can build Android . It is not limited to particular handset makers and you might want to consult the makers for official lists of deployed devices.
There is nothing the device needs to contain (other then an appropriate targeted version of Andrdoid) to deploy an application.
One important note is that the application IS NOT run in the JVM, the code is only written in Java and then converted to Dalvik bytecode when compiling (Android runs on the Dalvik Virtual Machine). Since the code is written in Java though you can make extensive use of existing libraries and use them in your applications.
There is a fairly comprehensive list on Wikipedia comparing devices running Android, including forthcoming devices.
Nokia seems to have no interest using Android platform for its devices.
If the device is a certified Android platform, there is nothing one needs to add for deployment.
I think most phones that run Android should support Android applications. However, IMHO one would be hard pressed to compile a list of those phone.But rest assured, it's a lot. Someone DID make a list! And yep, it's a lot.
Some quick Googling reveal that Nokia seems to not like Android so I would assume there is not a Nokia phone with Android.
Framework: Eclipse Galileo with the ADT plugin
My advice:
read this site inside and out! http://developer.android.com/index.html
It answers all your questions.

Categories

Resources