chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
11/16/12 09:45 PM (13 years ago)

Eclipse project name is always the same?

I'm having problems importing a new Android application into Eclipse because it thinks the project name is "BT_activity_root" no matter what. I've tried changing the project name in the BT control panel, but it doesn't seem to have an effect on the source code downloaded. Is there a way to manually change the name before importing it, so that Eclipse doesn't think I have a duplicate with another app?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/16/12 10:10 PM (13 years ago)
Try doing an Import..."Existing Application into Workspace" instead of "Existing Android Application into Workspace." Bet that works. Mark
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
11/16/12 10:38 PM (13 years ago)
I always do the file-import method. Not sure what's going on - it worked fine previously, but now it doesn't. I got around it by renaming the project in Eclipse that came in as "BT_activity_root" to something more appropriate, and then importing the one I wanted and the renaming it too.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/16/12 10:45 PM (13 years ago)
You shouldn't have to rename at all...I never have had to. There is a difference in how it ends up in Package Explorer if you do an Existing Android Project vs. Existing Project. Do you have multiple buzztouch project imported into Eclipse?
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
11/16/12 11:54 PM (13 years ago)
BT_activity_root is the class file that launches first when the app runs. The earlier version of eclipse had an option to change the name of the project to whatever you liked but the new version has no such option. Instead of naming the project it automatically picks up the bundle name of the project. For eg: com.btapp.BT_activity_root. As i stated BT_activity_root is the first class file which launches when the app is launched in the device or emulator so the extension of the project in eclipse is com.btapp.BT_activity_root.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
11/17/12 09:35 AM (13 years ago)
For some reason, the bundle name isn't being picked up. When I import the file, it names everything BT_activity_root. Here are my screenshots of my process, showing the package that was downloaded from the control panel and unzipped, and each step in the "file-import" process that I went through, including how the folder appears in my "workspace" folder after the import is finished. Step 1 - package downloaded from BT.com: https://dl.dropbox.com/s/fk12yxq5fcs3raq/step1.png?dl=1 Step 2 - file-import, use existing code: https://dl.dropbox.com/s/a0x51etcv3iu2oz/step2.png?dl=1 Step 3 - select the package downloaded: https://dl.dropbox.com/s/ww9fqfvlx9862by/step3.png?dl=1 Step 4 - package is imported into Eclipse with name "BT_activity_root" https://dl.dropbox.com/s/2ylmm014qrqs86t/step4.png?dl=1 Step 5 - folder is created in workspace folder with same name: https://dl.dropbox.com/s/r93xmsw37g2agx2/step5.png?dl=1 As you can see, this works fine for the first import, and then will issue an error for every subsequent one, since the folder "BT_activity_root" is already present in my "workspace" folder. This only started happening a couple days ago, so I'm not sure what's going on.
 
Higgey
buzztouch Evangelist
Profile
Posts: 394
Reg: Sep 07, 2011
West Midlands
13,540
like
11/22/12 07:03 AM (13 years ago)
Hi, I've just had to reinstall Eclipse and I ended up with a new version - Indigo Service Release 1 Build id: 20110916-0149 I have exactly the same issue. Anyone got any further thoughts? John
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
11/22/12 08:29 AM (13 years ago)
I just import and rename. So far the only options seem to be that or to downgrade Eclipse.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
12/07/12 11:29 AM (13 years ago)
Chris, same thing for me, always the same "BT_activity_root". I've been renaming the project as-well, takes two seconds, good fix. Cheers, David https://buzztouchmods.com
 
Higgey
buzztouch Evangelist
Profile
Posts: 394
Reg: Sep 07, 2011
West Midlands
13,540
like
12/13/12 05:32 AM (13 years ago)
I've tried using Right over BT_activiy_root, Android Tools, Rename Application Package, to rename the project. This changes the package name in the manifest but the project still retains the name BT_activiy_root in Eclipse under Package Explorer. I've had a good search and tried various other options. How can I change the name correctly, please? John.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
01/07/13 03:15 PM (13 years ago)
Same problem, any workarounds for this? Renaming isn't an option as it's always picking up the BT_activity_root.java file and there's no option to rename it. Can't rename it before trying to import it either, without opening up a whole can of trouble in the project. It's the same for importing and file > new..
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/08/13 08:16 AM (13 years ago)
Right click on the project name after you import it. Go to "Refactor" and select rename. That should do the trick.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
01/08/13 08:24 AM (13 years ago)
Hi @chris1, that's what I would have suggested! It turns out I had some data 'stuck' in the workspace metadata. Cleared that and now I can do the usual refactor > rename or whatever. A bit more detail here if anyone thinks they have the same problem: https://www.buzztouch.com/forum/thread.php?fid=A36BD3EC1F1344FF38A1716&tid=A36BD3EC1F1344FF38A1716 Cheers.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/08/13 08:25 AM (13 years ago)
Glad you got it figured out!
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
01/08/13 08:26 AM (13 years ago)
Me too! thanks!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.