Why Simple Calculator not running? - General Questions and Answers

I tried running the following tutorial for designing a basic calculator:
startandroid.ru/en/lessons/complete-list/225-lesson-19-creating-a-simple-calculator.htmlllllllllll
I copied and pasted everything,but it didn't work!I've run it on a real device and it gave me:"The application has stopped unexpectedly",while on emulator nothing appeared at all! Here's the Logcat when running on a real deviceSee attachments)
I am using Eclipse Luna,and installed latest SDK Tools(As far as I know)!

Related

Configuring ADT plugin for eclipse -- no Android option in preferences

I'm trying to setup eclipse for Android but have run into an issue.
I'm following the guide here: bah, I can't post outside links from being a new user. But if you go to developer (dot) android (dot) com/sdk/eclipse-adt.html -- This is the part that I'm stuck on.
I've got eclipse to download the ADT plugin, but when trying to follow "Configuring the ADT plugin" I open the preferences via Windows > Preferences (step 1), but there is no "Android" option on the left hand side as indicated in step (2).
Any idea why this would be happening?
Thanks,
~kb
EDIT: This should really be in the base android development forum. I've messaged a moderator to hopefully get it moved, sorry for posting it in the wrong forum.
The Android option is not coming up under Window>Preferences in Eclipse after installing the ADT?
One reason that this may be occurring is because of Windows 7 security settings. Try starting up Eclipse with “Run as administrator.”
1) Start Eclipse with ‘Run as administrator’ (It may ask to change workspace directory. I just made it c:\workspace temporarily.)
2) Download the ADT plug-in with Eclipse as directed in the Android documentation
3) Profit
Note: I did not have to run as administrator every time. Once it was installed I could see it when I started Eclipse normally, but I had to set the Android SDK directory again.
-Rob
Credit to www(dot)hambonious(dot)com
this is happening to me also, but it was on ubuntu after i upgraded from lucid to maverick. ...i hate upgrading ubuntu...
Did you guys find any solution yet? I can't see "Android" under preferences either. And I upgraded to Ubuntu 10.10 recently.
I don't think the dev kit works well with Eclipse 3.6.
Try the 3.5 download
http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/galileosr2
It is 3.5.
eclipse : issue fixed
I just signed in as I wanted to let you know about that issue I got.. fixed !
I tried several tricks so to speak, uninstalled Eclipse, uninstalled ADT plugin, reinstall the SDK, tried with and without adding the SKD path to the $PATH...
Using linux, I just deleted the .eclipse directory that was in my home directory.
You will have to add the repository for the ADT plugin to be installed, install the plugin... and restart Eclipse (not to mention you'll have to reinstall ALL the plugin you added, correct me if IM wrong).
Then you should be able to set the preferences about the SDK path... and have a new menu item (new project -> android )
Dont ask me what happened while upgrading my ubuntu from 10.04 to 10.10, I actually didnt take some time to investigate about it (ubuntu64 10.10)
(sorry about my english by the way)
Cheers,
Fabrice (France)
you're welcome.
Thanks LinuxFab, I'll give it a try.
Did this work?
I'm using a mac, so I'm wondering if this fix at least worked for ubuntu, lemme know! Thanks

[Q] Setting up Eclipse

Hey all I was wondering if someone could help me out in installing and setting up eclipse. I tried before and ended up installing something called glassfish3 or something like that so what would be ideal is a list of links to the downloads I need to get maybe in the order I need to install them in? =P It would really be greatly appreciated!
Thanks,
D3luSi0n4L
Anyone? Please! I have the JDK & Java & Eclipse installed and Eclipse will not startup, I get an error....
"A Java Runtime Enviroment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java Virtual machine was found after searching the following locations:
C:\eclipse\jre\bin\javaw.exe
javaw.exe in your current PATH"
Someone suggested that I need to install the SDK but I thought that was only needed specifically for Android? & Before i setup Android I'd like to have Eclipse fully functional to avoid and problems that could occur. I installed Eclipse for EE Developers or whatever, the biggest file they and I installed JDK 6 Update 21
Eclipse (Top One) : eclipse*dot*org/downloads/
Java : oracle*dot*com/technetwork/java/javase/downloads/index.html
Any and all help is greatly appreciated!
Sincerely,
D3luSi0n4L
I'm almost close of not asking any more questions but I had problems with apk manager, I got it right, and I had problems with Avabox, and I got that right but now I'm having problems with Eclipse. I installed basically both files of Eclipse the big file and the small fiile (I didn't know which one I needed).
when I open the eclipse program I get this message:
"Failed to load the JNI shared library : c:\program files (x86)\java\jre6\bin\client\jvm.dll
I don't know what this means. can someone help me? thanks.
Sorry I'm also a noob at installing eclipse, but thought this might be a good place to ask my question too. I found a tutorial on how to install everything (i.e. eclipse, JDK, and SDK) put it said I needed to change my PATH to point to /tools and now after doing that I can't open eclipse. I go the same error you did in your first post. I'm thinking I needed the other lines that were in the PATH, but now I don't know what they were.
If you follow the steps here, it is fairly simple and easy:
http://developer.android.com/sdk/installing.html
You have to download first de java JDK (jre is not enought) and then download and instal eclipse... Just follow the instructions on the link
Sent from my GT-P1000 using XDA App
I've gone through this and had eclipse up and running. Even created some AVDs. Here is the part that screwed it up though.
"On Windows, right-click on My Computer, and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double-click on Path (under System Variables). Add the full path to the tools/ and platform-tools/ directories to the path. "
D3luSi0n4L said:
Anyone? Please! I have the JDK & Java & Eclipse installed and Eclipse will not startup, I get an error....
"A Java Runtime Enviroment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java Virtual machine was found after searching the following locations:
C:\eclipse\jre\bin\javaw.exe
javaw.exe in your current PATH"
Someone suggested that I need to install the SDK but I thought that was only needed specifically for Android? & Before i setup Android I'd like to have Eclipse fully functional to avoid and problems that could occur. I installed Eclipse for EE Developers or whatever, the biggest file they and I installed JDK 6 Update 21
Eclipse (Top One) : eclipse*dot*org/downloads/
Java : oracle*dot*com/technetwork/java/javase/downloads/index.html
Any and all help is greatly appreciated!
Sincerely,
D3luSi0n4L
Click to expand...
Click to collapse
I downloaded the 32 bit version of eclipse and javaw.exe was not missing anymore. How do i use eclipse though?
Edit: I get it, JDK.

Android Screencast (My Mobiler for Android) and Android Screen Monitor

Hey guys, i just wanted to share these applications that i found awhile back. I have them posted in the old vogue forums but they still come in very handy to me.
I DID NOT DEVELOPE ANY OF THIS SOFTWARE. CREDIT GOES TO THE DEVELOPERS
Some of you may already have these.
If you have Android SDK, ADB and JAVA, all you need to do is download the attached files, extract, and run them.
Link To Android SDK
Link To Java
Android Screen Monitor
This is a really nice and easy to use screen monitoring\screenshot program.
ASM is an Android Debug Bridge (adb) client, When it starts monitoring screen,
ASM connects to adb on port 5037 and receives frame buffer continuously on the device or emulator and transfer image to your desktop window.
You can rotate and scaling monitor window and export a image into PNG file as screen shot tool.
ADB Must be installed
If you have sdk installed skip step 1.
If you have Java JRE(JDK) installed skip step 2
Make sure you have your phone plugged in usb.
1. Make sure ADB is functional
2. Download Android SDK for Windows and place the android-sdk-windows folder on the root of your C:\ Drive.
3. Download and install Latest version of Java
4. Download the attached asm.zip and extract asm.jar out.
5. Place the asm.jar in \android-sdk-windows\tools folder.
6. Right click on asm.jar and place a shortcut on your desktop. Run the jar file or shortcut to bring up the monitor
right click on monitor screen to:
get screenshots
change to landscape\portrait
zoom in or out
_____________________________________________________________
ANDROID SCREENCAST(My Mobiler for Android)
Features
- Mouse and keyboard control FOR ROOTED DEVICES ONLY
- Landscape mode (right click)
- Video recording
- Basic file browser
INSTRUCTIONS
SDK, ADB, and Java are required
Download the attached java file, unzip it, and just run it.
If you have trouble, put it in your sdk\Tools folder and make a shortcut to your desktop.
Should go in the Apps forum, not the android development forum.
dude0909 said:
Should go in the Apps forum, not the android development forum.
Click to expand...
Click to collapse
I thought i was in that forum. Dont know how i got here. Weird
anyone tried these yet?
incubus26jc said:
anyone tried these yet?
Click to expand...
Click to collapse
Yes, I just tried out the Android Screencast. It seemed to work well. I am not sure what I would use it for, but it did work.
I didn't try ASM because I use DDMS for screenshots. DDMS is built into the Android SDK and works perfectly without needing anything extra.
Thanks for the contributions though.
greek keyboard
although it is rather slow, it works Ok.
I can use the english keyboard for composing messages, working with contacts, but when I turn the PC-keyboard to the greek language, I cannot use it with the phone.
Any suggestion pls?
g00gl3 said:
Yes, I just tried out the Android Screencast. It seemed to work well. I am not sure what I would use it for, but it did work.
Click to expand...
Click to collapse
Screencast is great for people like me who are physically disabled and can't use their hands. I used to use EveryWan Personal Edition by Sparus Software which only works with Windows mobile devices...hope screencast will become as good as (or better than) EveryWan!
inverted screen
Hello
I tried the 2 apps : they work fine but the screen display is inverted !
Any idea?
Thanks
my device : ZTE Blade + FLB Froyo 2.2 ROM
(update: same result with webkey)
the same problem with zte blade and CyanogenMod-7.0.0-RC4

[Q] Which version of ECLIPSE do you recommend ???

Hello all. Pls answer this quick question.
Inspite of being an xda member for a while, i haven't had the knowledge of android development. Im just starting to learn things from now.
So, i think i should learn java (dalvik VM part). Now Im just following a book of developing android apps for noobs. I need to install eclipse and install ADT plugin for eclipse.
Well, im on windows7 ultimate 32bit version. I previously had an ECLIPSE HELIOS VERSION (i think it is eclipse classic 3.6, not sure but it shows eclipse helios on startup). I installed this eclipse helios version. But the problem is i cant install the ADT plugin in any way.
I tried "https://" with no luck. Also tried "http://" with no luck. Also tried "INSTALL FROM ZIP ARCHIVE" with no luck. Also tried this with older ADT zip archives ofcourse with no luck.
The single most error it shows for all these attempts is "Cannot complete the install because one or more required/requested items could not be found."
What do you say. Is the eclipse version having bug with ADT plugin. Or do i need to download another eclipse version. If so please give me the direct file download link for the version you recommend (please since im completely new to this).
Now also installed eclipse indigo and the same problem continued. What should I do.
Sent from my Blade using XDA App
You need to be connected to the internet to installed the required items. I had that error and once I connected to the internet I was fine. But I also had to download the ZIP file because the http-https didn't work for me either.
bharatgaddameedi said:
Hello all. Pls answer this quick question.
Inspite of being an xda member for a while, i haven't had the knowledge of android development. Im just starting to learn things from now.
So, i think i should learn java (dalvik VM part). Now Im just following a book of developing android apps for noobs. I need to install eclipse and install ADT plugin for eclipse.
Well, im on windows7 ultimate 32bit version. I previously had an ECLIPSE HELIOS VERSION (i think it is eclipse classic 3.6, not sure but it shows eclipse helios on startup). I installed this eclipse helios version. But the problem is i cant install the ADT plugin in any way.
Also tried "INSTALL FROM ZIP ARCHIVE" with no luck. Also tried this with older ADT zip archives ofcourse with no luck.
The single most error it shows for all these attempts is "Cannot complete the install because one or more required/requested items could not be found."
What do you say. Is the eclipse version having bug with ADT plugin. Or do i need to download another eclipse version. If so please give me the direct file download link for the version you recommend (please since im completely new to this).
Click to expand...
Click to collapse
I'm having a similar problem. I've downloaded the JDK, Android SDK, and Eclipse indigo. I first tried importing the plugin to classic, and it said "requires plugin org.eclipse.wst.sse.ui". So I went back to Eclipse's site and found a version that included WST. Now it's telling me that it can't find one of the files. I've tried both the https, http, and zip versions. I've scoured developer.android, and there's nothing describing my problem.
I'm trying to get into the Android programming scene, but it seems like the "initiation ceremony" is getting the better of me.
Resolved
I managed to find a solution to the problem. Rather than installing Indigo, I reverted to a version of Helios, and everything worked perfectly

[Q] SDK Manager doesn't run/start

Hello everybody.
I'm new here and I looked for an answer for me but I didn't found it.
My problem is:
I've used Eclipse Luna and ADT Bundle with no problems while several months. Two days ago I installed Android Studio and after installation it began to download 'SDK Tools' and others. I cancelled this operation because I haven't time. Since this moment, SDK Manager doesn't run. It open an MS-DOS Windows but it only flashes, in less than one second it dissapears. I can't open it from command-line, eclipse and android studio.
I found several solutions like editing android.bat, find_java.bat, setting environments variables (JAVA_HOME, PATH was set and I added ANDROID_SWT and ANDROID_HOME), re-install Android Studio, update jdk version from jdk1.7.0_13 to jdk1.7.0_79. All didn't work.
Have anybody had this problem or similar? Can anybody help me?
Thanks in advance.
Anybody has had this error?

Categories

Resources