Android SDK/ Eclipse IDE/ Java SDK Set-Up? - java

I am running Windows 7 32-bit Starter OS and I wonder if anyone would be willing to help walk me through the set up for the Java SDK, Eclipse "Indigo" IDE and Android SDK/ADT set-up as I have basically made a bloody mess of it.
I am working out of a couple of books whose instructions are more or less: "go to the download page and follow the instructions" and of course I have, but I keep hitting a brick wall and I am going to delete, re-download, and re-install the entire set-up starting from scratch in the morning.
I was using App Inventor, and had no appreciation of how much work was being done for me behind the scenes until I jumped off into this and will probably try to go back to it if and when Google completes the hand-off of the software to MIT and makes the sourcecode public like they are saying next year. Hmmmm.......
If I can work this out, I will make a click-by-click tutorial out of it and post it for others -who are bound to be having the same issues- to use... it's a rough thing to try to work out something starting from jump street and not knowing where to go when its holding up your entire operation.
I come looking for help -but will help back in return and have lots of stuff I can help with... GUI design is one area I see a lot of folks needing help with- simple little things sometimes make an unbelievable difference, etc.
Anyway if someone will help, point to help, or mention anything that will help, I will be glad.
I also have a list of compiler/console errors and warnings that I am getting when I try to import/run the example code from the books I am working out of -if that will tell anyone anything-. Also glad to receive e-mails about this from anyone.
Kind Regards, mark-p.

http://www.vogella.de/articles/Android/article.html is one of the best step by step on-line instructions on how setup your development environment

I successfully installed Android SDK in my Windows 7 machine last week and that too with all the latest updates.
http://developer.android.com/sdk/installing.html is itself a good resource. These instructions are applicable to the latest JDK version 7, Eclipse Indigo, and SDK Version 15.
The basic steps would be:
Download Install JDK 7 from Java site.
Download Eclipse Indigo as you would have done already.
Install the Android SDK from http://developer.android.com/sdk/index.html. Use the latest installer available ( Currently installer_r15-windows.exe). Note that this installation will install the sdk into Program Files\Android by default.
Run Eclipse. Go to Window -> Preferences. You will see a Android tab on the left if your SDK was installed properly.Ensure that your SDK location is same as your actual installation path.
5.Install the ADT Plugin for Eclipse.Go to Help->Install New software. Check http://developer.android.com/sdk/eclipse-adt.html#installing for detailed instructions.
Now go to Window-> Android SDK Manager.This should launch a window and the SDK Manager will try to retrieve the list of installed/available packages from the Google repository. Make sure that your internet connection is correct. If your are using a proxy server, go to Tools of SDK Manager and give the IP and port of the proxy server. I believe I wasted a lot of time since I missed the proxy settings. Also you may need to force https:// to http request.
The above step should list out a set of packages including Android 4.0(API 14) which is the latest platform available today. Select the different packages and on installation and restart of Eclipse, you should be ready to start with your Hello Android program.

Related

How do I change the SDK app engine on Eclipse

I am pretty new to coding. I help run a small charity and a friend of a friend set up a website for us which I have been running for the last few years. I have managed to sort things out with a lot of copy and pasting and trial and error but I have now hit a wall.
I could not deploy to the server so I went back and reinstalled everything. I got further with the process this time but then it told me to update the SDK. I downloaded the newest SDK but cannot add this to my project in eclipse.
I have learned a lot over the years but I am still pretty dense when it comes to certain things. Find error image here
If anyone can help and explain it in laymen terms I'd appreciate it.
Many Thanks
Here you can find information about how to manage the Cloud SDK in Cloud Tools for Eclipse.
You can either allow Cloud Tools for Eclipse to download and install
an SDK for you, or you can point it to a specific SDK you've installed
outside of Eclipse.
Managing the SDK for Your Project

How do I set up Netbeans to develop for Android in OS X?

I'm fairly new to the world of coding, but I took a Java class last fall and I really excelled in it, and I'm anxious to keep the ball rollin. We talked a little bit about Android development in class, and I'm certain that if I could just get Netbeans set up properly, I could really do a lot with it. I managed to get Xcode set up to use SDL using the Lazy Foo guides, but I haven't had any luck finding a similar guide for setting up Netbeans for Android development in OS X.
The closest I could find was this:
Setting up your Development Environment
But the directions seemed kind of vague to me, and I ended up getting stuck when I ran the libGDX setup JAR file, and I got this message: "You have no build tools! Update your Android SDK with build tools version: 20.0.0" but I already did download the Android SDK, so I don't know what's wrong!
I have lots of books on Android development, but nothing on actually setting up my chosen IDE! There must be a step by step tutorial on this out there somewhere, right?
Thanks.
Here do the following
1)download the latest version of jdk install it and set up your environmental variables.
2)download android studio and use it.
3)happy coding

android's hello world tutorial application is not working

I am new to java and android and wanted to see how developing for android works
I started by downloading the SDK FROM HERE
However after I finish making the Hello World project sample given in the website HERE, if I try to run it on the emulator as explained HERE, the emulator screen appears, but nothing seems to happen. I can see the word android on the middle of the screen with some animation happening, but that's it. The website says something about unlocking the emulator, but I have no idea what that means. What I have gathered from reading other posts is that the emulator is supposed to have some kind of slider switch as in real smart phones which should be dragged to unlock it, but I can't see it in my case. Now I have no idea why this is happening or what I should check out in order to fix this. Are there any installation logs or something else that I can check to see what the settings are?
What I have tried till now:
I downloaded the SDK ADT bundle from HERE and just unzipped it. Then looked for eclipse.exe and ran it directly. Is there anything else I should have done prior to this?
When I did it for the first time, I had only JRE installed and not JDK, which I realized after reading THIS POST. So I downloaded JDK from HERE, updated the required environment variables and restarted eclipse, but still it's the same thing.
I looked at the Eclipse isn't talking to the emulator section GIVEN HERE, but all it says is to restart eclipse and the emulator, and it doesn't do anything at all.
Rant:
I can understand if the program had failed to compile when I didn't have JDK , or if the IDE gave any indication at all of a faulty program install, but that isn't the case. Everything seems ok, there are no errors, but it just doesn't do anything. This is the type of thing that makes people pull their hair out, and personally, I think the With a single download, the ADT Bundle includes everything you need to begin developing apps: in the android website is very misleading, especially for complete beginners
Anyway, what should I do to make the tutorial program run on my computer? My computer is a bit old and slow so could that be an issue? My computer is Windows XP SP3 on Intel(R) Pentium(4) 4 CPU 3.20 GHz 3.19GHz 2.50GB RAM, but if that was the case I assume the emulator shouldn't even start up
You just have to wait a bit longer. Android loads pretty long on emulator.
Tutorial says about unlocking, because when Android is loaded, your screen on emulator will be locked.
If you find emulator too slow for you, you may want to check this topic out: Why is the Android emulator so slow? How can we speed up the Android emulator?
I had the exact same problem as you when I first got into Android development a week ago. The two things I did are simply
1) Set the usable RAM on your AVD to 768MB
2) When you run your Hello World program in your emulator, give it about 5-10 minutes. Don't touch or click the window at all, just let it load up. Later you can make it persist
3) If your home screen comes up, click and hold the mouse button in the center of the screen, then drag towards the sides and release, this should unlock the device.
Try these steps first, if they don't work then there is likely a problem with your AVD configuration.
If you are launching your app first time with emulator, it will take appropriate time.After that, on Lock icon click and slide to the right. then you can view you application. If not check for your app(icon) installed.
By seeing your configuration of PC I think it will take some time to load emulator. After emulator is load (see below image)
then and then run your code and also check in eclise-device that whether emulator is online or not.
For checking emulator in eclispe :
In second image just above windows logo you can see small rectangular button with plus sign click on that you will get list from which you can select devices. You can find similar button in you eclipse at the bottom.
I had the exact same problem and followed the exact same steps, but was also unsuccessful. I ended up creating a new AVD with a Nexus 4 instead of the latest Nexus 6. The resolution of the 4 is much lower, which I think is what solved my problem. It loaded much more quickly using the 4.
Also, When I was using the 6, I could only see "ndroi" because the size of the screen was much larger than the size of the phone. Now I can see the full device.
vs.
You may just need to relaunch the Android studio 3.6.3.
I got a similar problem. The hello world app does not install on the emulator.
Problem solved after relaunch.

Installing and using the play framework on windows vista with java

I am brand new to the play framework and could use a little bit of help understanding first why the play framework is useful, and how to install and use it on windows vista. The project that I will be working on will be to make a custom API that will power a photo sharing software to be accessed by mobile and desktop devices. I tried to go through the installation guide on the play website but I couldn't get it to work (unfortunately i'm not very good when it comes to manual installations in the command line on windows).
I would like to be able to run one of the sample projects included, but I am unsure of how to get the play command installed on the command line to run it. Any help would be greatly appreciated. Thanks in advance.
open a command window then type :
c://pathtoplaydirectory/play

Help with Blackberry development

I just installed Eclipse Classic to develop a BB app in Java..
Im following this steps bit im stuck trying to install the BlackBerry Java Plug-in item cause it tells me the plugin requires 'org.eclipse.ui' but I cant figure out how to install that.. Im pretty sure I need to add a repository to the eclispe sites but I cant find the address... anyone care to give me a hand??
thanks in advance
What version of eclipse are you running?
The BB plugin is compatible with 3.5 only; trying to install on 3.6 will cause these issues.
Also, I would strongly recommend installing throgh the eclipse plugin updater/installer to avoid issues later - the standalone installer doesn't play nicely with updates to the plugin version the last I tried it.
The update URL to use if you go this route is http://www.blackberry.com/go/eclipseUpdate/3.5/java -- you will also need to register for a blackberry developer account (free) if you decide to go this route: http://na.blackberry.com/eng/developers/ (You will be prompted for login credentials during plugin installation.)

Categories