[android-beginners] Re: Eclipse: Easy way to refactor/rename package?

2010-07-19 Thread DanH
Do you have Rename under File?  I'm pretty sure it's the same
function.  Just highlight the project to rename that, the package to
rename that.

On Jul 19, 1:50 pm, Nick Richardson richardson.n...@gmail.com wrote:
 Xavier,

 I had read about that option while searching around... but i do not have
 that option under Android Tools.  I've checked for updates of the plugin
 through Eclipse and it appears that i am running the latest version (Android
 Development Tools 0.9.7.v201005071157-36220).  Is there a newer version than
 this?  If so, Eclipse doesn't want to grab it 
 fromhttps://dl-ssl.google.com/android/eclipse/.

 Is it possible that the rename option is not available on a Mac?  (I doubt
 it).  Is there a specific version of ADT that i need in order to have this
 option show up?

 The options i have available under Android Tools are:
 * New Test Project
 * New Resource File
 * Export Signed Application Package
 * Export Unsigned Application Package
 * Fix Project Properties



 On Mon, Jul 19, 2010 at 11:12 AM, Xavier Ducrohet x...@android.com wrote:
  - Right click project
  - Choose Android Tools  Rename application package

  This will go and change everything that needs changing.

  Now, for your specific case of having 2 versions of your app, I
  recommend splitting your project in a common library and 2
  applications projects.
  See here for more details:

 http://developer.android.com/guide/developing/eclipse-adt.html#librar...

  On Mon, Jul 19, 2010 at 10:55 AM, Nick Richardson
  richardson.n...@gmail.com wrote:
   Thanks for the replies,
   I did use the refactor option to rename the package and the project, but
   then there were a few updates that were needed in the manifest, and one
   other place i can't remember now.
   I was simply wondering if there was an automated way to make all these
   changes at once using the ADT plugin, or if i was going to have to do
  this
   manually every time i have an update to my app.
   //Nick
   On Sun, Jul 18, 2010 at 10:47 AM, Mark H. Nichols code.pr...@gmail.com
   wrote:

   On Jul 18, 2010, at 3:41 AM, Nick Richardson wrote:

Hopefully simple question:

I would like to create a second copy of my app and release it as a
  free
version.  I have copied my project to a new one in eclipse, but now i
  would
like to rename the project and package to upload to the market.

Is there an easy way using ADT or otherwise that will do this for me?
   I
found a few posts online with reference to right clicking the project
  and
selecting Rename from Android Tools, but i do not have that
  option.

If there's not an automated way, what are the steps i need to be sure
  to
take to insure that everything is renamed correctly before i upload?

   If you are using Eclipse, you can use the Refactor tool to do what you
   want. Right-click on the project to be renamed, select Refactor from the
   object menu, and then rename from there.

   Mark

   --
   You received this message because you are subscribed to the Google
   Groups Android Beginners group.

   NEW! Try asking and tagging your question on Stack Overflow at
  http://stackoverflow.com/questions/tagged/android

   To unsubscribe from this group, send email to
   android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-beginners?hl=en

   --
   //Nick Richardson
   //richardson.n...@gmail.com

   --
   You received this message because you are subscribed to the Google
   Groups Android Beginners group.

   NEW! Try asking and tagging your question on Stack Overflow at
  http://stackoverflow.com/questions/tagged/android

   To unsubscribe from this group, send email to
   android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-beginners?hl=en

  --
  Xavier Ducrohet
  Android SDK Tech Lead
  Google Inc.

  Please do not send me questions directly. Thanks!

  --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.

  NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

 --
 //Nick Richardson
 //richardson.n...@gmail.com

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at

Re: [android-beginners] Re: Eclipse: Easy way to refactor/rename package?

2010-07-19 Thread Xavier Ducrohet
it's not the same function.

The custom rename will update the manifest to make sure the
activities, services, etc... are properly defined based on the new
name. It's also going to update XML files that reference the package
name (such as namespaces for custom attributes for custom views),
etc...

I have, however, spoken too soon. The feature didn't make it in ADT
0.9.7, but it'll be in the next ADT update.

Xav

On Mon, Jul 19, 2010 at 2:06 PM, DanH danhi...@ieee.org wrote:
 Do you have Rename under File?  I'm pretty sure it's the same
 function.  Just highlight the project to rename that, the package to
 rename that.

 On Jul 19, 1:50 pm, Nick Richardson richardson.n...@gmail.com wrote:
 Xavier,

 I had read about that option while searching around... but i do not have
 that option under Android Tools.  I've checked for updates of the plugin
 through Eclipse and it appears that i am running the latest version (Android
 Development Tools 0.9.7.v201005071157-36220).  Is there a newer version than
 this?  If so, Eclipse doesn't want to grab it 
 fromhttps://dl-ssl.google.com/android/eclipse/.

 Is it possible that the rename option is not available on a Mac?  (I doubt
 it).  Is there a specific version of ADT that i need in order to have this
 option show up?

 The options i have available under Android Tools are:
 * New Test Project
 * New Resource File
 * Export Signed Application Package
 * Export Unsigned Application Package
 * Fix Project Properties



 On Mon, Jul 19, 2010 at 11:12 AM, Xavier Ducrohet x...@android.com wrote:
  - Right click project
  - Choose Android Tools  Rename application package

  This will go and change everything that needs changing.

  Now, for your specific case of having 2 versions of your app, I
  recommend splitting your project in a common library and 2
  applications projects.
  See here for more details:

 http://developer.android.com/guide/developing/eclipse-adt.html#librar...

  On Mon, Jul 19, 2010 at 10:55 AM, Nick Richardson
  richardson.n...@gmail.com wrote:
   Thanks for the replies,
   I did use the refactor option to rename the package and the project, but
   then there were a few updates that were needed in the manifest, and one
   other place i can't remember now.
   I was simply wondering if there was an automated way to make all these
   changes at once using the ADT plugin, or if i was going to have to do
  this
   manually every time i have an update to my app.
   //Nick
   On Sun, Jul 18, 2010 at 10:47 AM, Mark H. Nichols code.pr...@gmail.com
   wrote:

   On Jul 18, 2010, at 3:41 AM, Nick Richardson wrote:

Hopefully simple question:

I would like to create a second copy of my app and release it as a
  free
version.  I have copied my project to a new one in eclipse, but now i
  would
like to rename the project and package to upload to the market.

Is there an easy way using ADT or otherwise that will do this for me?
   I
found a few posts online with reference to right clicking the project
  and
selecting Rename from Android Tools, but i do not have that
  option.

If there's not an automated way, what are the steps i need to be sure
  to
take to insure that everything is renamed correctly before i upload?

   If you are using Eclipse, you can use the Refactor tool to do what you
   want. Right-click on the project to be renamed, select Refactor from the
   object menu, and then rename from there.

   Mark

   --
   You received this message because you are subscribed to the Google
   Groups Android Beginners group.

   NEW! Try asking and tagging your question on Stack Overflow at
  http://stackoverflow.com/questions/tagged/android

   To unsubscribe from this group, send email to
   android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-beginners?hl=en

   --
   //Nick Richardson
   //richardson.n...@gmail.com

   --
   You received this message because you are subscribed to the Google
   Groups Android Beginners group.

   NEW! Try asking and tagging your question on Stack Overflow at
  http://stackoverflow.com/questions/tagged/android

   To unsubscribe from this group, send email to
   android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-beginners?hl=en

  --
  Xavier Ducrohet
  Android SDK Tech Lead
  Google Inc.

  Please do not send me questions directly. Thanks!

  --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.

  NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
  For more options, visit this group at

[android-beginners] Re: Eclipse: Easy way to refactor/rename package?

2010-07-18 Thread DanH
File - Rename?  You might have to do it twice -- once on the project
and once on the package.

On Jul 18, 3:41 am, Nick Richardson richardson.n...@gmail.com wrote:
 Hopefully simple question:

 I would like to create a second copy of my app and release it as a free
 version.  I have copied my project to a new one in eclipse, but now i would
 like to rename the project and package to upload to the market.

 Is there an easy way using ADT or otherwise that will do this for me?  I
 found a few posts online with reference to right clicking the project and
 selecting Rename from Android Tools, but i do not have that option.

 If there's not an automated way, what are the steps i need to be sure to
 take to insure that everything is renamed correctly before i upload?

 Thanks,

 --
 //Nick Richardson
 //richardson.n...@gmail.com

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Eclipse: Easy way to refactor/rename package?

2010-07-18 Thread DanH
As for steps to insure everything is renamed correctly, that would be
a clean, build, and thorough test -- what you should be doing
anyway, of course.

On Jul 18, 3:41 am, Nick Richardson richardson.n...@gmail.com wrote:
 Hopefully simple question:

 I would like to create a second copy of my app and release it as a free
 version.  I have copied my project to a new one in eclipse, but now i would
 like to rename the project and package to upload to the market.

 Is there an easy way using ADT or otherwise that will do this for me?  I
 found a few posts online with reference to right clicking the project and
 selecting Rename from Android Tools, but i do not have that option.

 If there's not an automated way, what are the steps i need to be sure to
 take to insure that everything is renamed correctly before i upload?

 Thanks,

 --
 //Nick Richardson
 //richardson.n...@gmail.com

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en