Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development > Developer 101

Developer 101 101 Tutorials



Reply
 
LinkBack Thread Tools
Old December 6th, 2011, 03:02 PM   #1 (permalink)
New Member
 
Join Date: Jan 2011
Posts: 5
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default Odd stuff happening in Eclipse

I am following the beginners tutorials on using Eclipse to write apps
This one Hello, World | Android Developers
I copy and paste the first missing line into my program in Eclipse as it asks and hit enter and eclipse scrolls up the code and deletes my new code.

This is baffling. How do I solve it?

Cymro is offline  
Reply With Quote
Sponsors
Old December 7th, 2011, 02:48 AM   #2 (permalink)
Premium Member
 
Join Date: Oct 2011
Location: Sydney, Australia
Posts: 193
 
Device(s): Galaxy Nexus GSM
Thanks: 2
Thanked 37 Times in 33 Posts
Default

Do means when you replace:
Code:
setContentView(R.layout.main);
with:
Code:
TextView tv = new TextView(this);
tv.setText("Hello, Android");
setContentView(tv);
What exactly are you doing? I don't get why you hitting Enter, for example. It should be enough to copy the new code, highlight the old code, then hit Control+V (or Command+V on Mac) to paste the new code over the old code.

Also, which operating system and which version of Eclipse are you using?
jiminaus is offline  
Reply With Quote
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development > Developer 101 User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 08:18 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo