[android-developers] Re: best way to copy an existing application
Really it depends on what he's got in the original app. Even just a provider is going to be trouble if he simply turns the whole thing into a library. On Wednesday, 13 February 2013 09:05:34 UTC-5, Digipom wrote: Hi Lew, Do you kindly have any evidence or documentation to back up your claims? I'm just curious. Why can't one just check the library checkbox? On Tuesday, February 12, 2013 5:13:25 PM UTC-5, Lew wrote: bob wrote: Does he really need to create a new library project? Yes. Or can he just check the Is Library checkbox on his existing project? No. RichardC wrote: Create an new Android Library project. Put all your existing shared code and resources into it. Create 2 new Android Projects (one with your old package name and the other with a new package name), and set them to use your Android Library project. Put the different resources into the Application Projects. To setup a Library project see: http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject John Merlino wrote: I have an application already created and up and running on google play. I need to create a second application where everything is the same, other than the background views. So I am wondering the easiest way to essentially clone an application so that all I have to do is create new keys and change the background images. thanks for response. -- Lew -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: best way to copy an existing application
Hi Lew, Do you kindly have any evidence or documentation to back up your claims? I'm just curious. Why can't one just check the library checkbox? On Tuesday, February 12, 2013 5:13:25 PM UTC-5, Lew wrote: bob wrote: Does he really need to create a new library project? Yes. Or can he just check the Is Library checkbox on his existing project? No. RichardC wrote: Create an new Android Library project. Put all your existing shared code and resources into it. Create 2 new Android Projects (one with your old package name and the other with a new package name), and set them to use your Android Library project. Put the different resources into the Application Projects. To setup a Library project see: http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject John Merlino wrote: I have an application already created and up and running on google play. I need to create a second application where everything is the same, other than the background views. So I am wondering the easiest way to essentially clone an application so that all I have to do is create new keys and change the background images. thanks for response. -- Lew -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: best way to copy an existing application
You could do that but you might end up with package name problems if you want to keep your existing package name for your old application (and a new package name for the 2nd application). So you will probable need to rename the package of the library and this will have some knock-on effects on your existing code. From John Merlino's posting I assumed he was new to Android library projects and tried to keep my suggestions to him as simple as possible. On Wednesday, February 13, 2013 2:05:34 PM UTC, Digipom wrote: Hi Lew, Do you kindly have any evidence or documentation to back up your claims? I'm just curious. Why can't one just check the library checkbox? On Tuesday, February 12, 2013 5:13:25 PM UTC-5, Lew wrote: bob wrote: Does he really need to create a new library project? Yes. Or can he just check the Is Library checkbox on his existing project? No. RichardC wrote: Create an new Android Library project. Put all your existing shared code and resources into it. Create 2 new Android Projects (one with your old package name and the other with a new package name), and set them to use your Android Library project. Put the different resources into the Application Projects. To setup a Library project see: http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject John Merlino wrote: I have an application already created and up and running on google play. I need to create a second application where everything is the same, other than the background views. So I am wondering the easiest way to essentially clone an application so that all I have to do is create new keys and change the background images. thanks for response. -- Lew -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: best way to copy an existing application
On 02/13/2013 09:05 AM, Digipom wrote: Hi Lew, Do you kindly have any evidence or documentation to back up your claims? I'm just curious. Why can't one just check the library checkbox? I'd say it's better to create a library project for the simple reason that at some point he may want to update the original app. A library project would facilitate easy updates to both applications by having a single source for the shared code, and allow him to update and customize the two versions as he pleases. The only question in my mind, besides the obvious free/demo and paid versions, is why would there be two different versions of the same app, where the only difference are the background views...? Raymond -- Raymond Rodgers http://www.badlucksoft.com/ http://anevilgeni.us/ -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: best way to copy an existing application
Ok, I was just wondering, as I once turned an app project into a library project by simply checking the checkbox, kept the old package name for the library and created a new app project with a different package. I was just wondering if there was something I might have overlooked or some bad side effect to just checking that box, though it seems to have worked to date. ;) On Wed, Feb 13, 2013 at 9:25 AM, RichardC richard.crit...@googlemail.comwrote: You could do that but you might end up with package name problems if you want to keep your existing package name for your old application (and a new package name for the 2nd application). So you will probable need to rename the package of the library and this will have some knock-on effects on your existing code. From John Merlino's posting I assumed he was new to Android library projects and tried to keep my suggestions to him as simple as possible. On Wednesday, February 13, 2013 2:05:34 PM UTC, Digipom wrote: Hi Lew, Do you kindly have any evidence or documentation to back up your claims? I'm just curious. Why can't one just check the library checkbox? On Tuesday, February 12, 2013 5:13:25 PM UTC-5, Lew wrote: bob wrote: Does he really need to create a new library project? Yes. Or can he just check the Is Library checkbox on his existing project? No. RichardC wrote: Create an new Android Library project. Put all your existing shared code and resources into it. Create 2 new Android Projects (one with your old package name and the other with a new package name), and set them to use your Android Library project. Put the different resources into the Application Projects. To setup a Library project see: http://developer.android.com/**tools/projects/projects-**eclipse.html# **SettingUpLibraryProjecthttp://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject John Merlino wrote: I have an application already created and up and running on google play. I need to create a second application where everything is the same, other than the background views. So I am wondering the easiest way to essentially clone an application so that all I have to do is create new keys and change the background images. thanks for response. -- Lew -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- Digipom http://www.digipom.com -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: best way to copy an existing application
When you say put existing shared code, does this literally mean copy and paste all the .java and layout files from the one application to the library project? On Tuesday, February 12, 2013 3:24:22 PM UTC-5, RichardC wrote: Create an new Android Library project. Put all your existing shared code and resources into it. Create 2 new Android Projects (one with your old package name and the other with a new package name), and set them to use your Android Library project. Put the different resources into the Application Projects. To setup a Library project see: http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject On Tuesday, February 12, 2013 8:08:36 PM UTC, John Merlino wrote: I have an application already created and up and running on google play. I need to create a second application where everything is the same, other than the background views. So I am wondering the easiest way to essentially clone an application so that all I have to do is create new keys and change the background images. thanks for response. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: best way to copy an existing application
Yes and change the Java package name(s) to match the name of the library package. On Wednesday, February 13, 2013 5:17:44 PM UTC, John Merlino wrote: When you say put existing shared code, does this literally mean copy and paste all the .java and layout files from the one application to the library project? On Tuesday, February 12, 2013 3:24:22 PM UTC-5, RichardC wrote: Create an new Android Library project. Put all your existing shared code and resources into it. Create 2 new Android Projects (one with your old package name and the other with a new package name), and set them to use your Android Library project. Put the different resources into the Application Projects. To setup a Library project see: http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject On Tuesday, February 12, 2013 8:08:36 PM UTC, John Merlino wrote: I have an application already created and up and running on google play. I need to create a second application where everything is the same, other than the background views. So I am wondering the easiest way to essentially clone an application so that all I have to do is create new keys and change the background images. thanks for response. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: best way to copy an existing application
Create an new Android Library project. Put all your existing shared code and resources into it. Create 2 new Android Projects (one with your old package name and the other with a new package name), and set them to use your Android Library project. Put the different resources into the Application Projects. To setup a Library project see: http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject On Tuesday, February 12, 2013 8:08:36 PM UTC, John Merlino wrote: I have an application already created and up and running on google play. I need to create a second application where everything is the same, other than the background views. So I am wondering the easiest way to essentially clone an application so that all I have to do is create new keys and change the background images. thanks for response. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: best way to copy an existing application
I don't see where it mentions to copy existing code into the library project. Am I supposed to copy and paste it? On Feb 12, 3:24 pm, RichardC richard.crit...@googlemail.com wrote: Create an new Android Library project. Put all your existing shared code and resources into it. Create 2 new Android Projects (one with your old package name and the other with a new package name), and set them to use your Android Library project. Put the different resources into the Application Projects. To setup a Library project see:http://developer.android.com/tools/projects/projects-eclipse.html#Set... On Tuesday, February 12, 2013 8:08:36 PM UTC, John Merlino wrote: I have an application already created and up and running on google play. I need to create a second application where everything is the same, other than the background views. So I am wondering the easiest way to essentially clone an application so that all I have to do is create new keys and change the background images. thanks for response. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: best way to copy an existing application
For an example look at: android-sdk\samples\android-n\TicTacToeLib android-sdk\samples\android-n\TicTacToeMain On Tuesday, February 12, 2013 8:58:16 PM UTC, John Merlino wrote: I don't see where it mentions to copy existing code into the library project. Am I supposed to copy and paste it? On Feb 12, 3:24 pm, RichardC richard.crit...@googlemail.com wrote: Create an new Android Library project. Put all your existing shared code and resources into it. Create 2 new Android Projects (one with your old package name and the other with a new package name), and set them to use your Android Library project. Put the different resources into the Application Projects. To setup a Library project see: http://developer.android.com/tools/projects/projects-eclipse.html#Set... On Tuesday, February 12, 2013 8:08:36 PM UTC, John Merlino wrote: I have an application already created and up and running on google play. I need to create a second application where everything is the same, other than the background views. So I am wondering the easiest way to essentially clone an application so that all I have to do is create new keys and change the background images. thanks for response. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: best way to copy an existing application
Does he really need to create a new library project? Or can he just check the Is Library checkbox on his existing project? https://lh5.googleusercontent.com/-V1ww5FOHONU/URq7qNZ2FxI/AMg/lrxK0vxdDgs/s1600/lib.png On Tuesday, February 12, 2013 2:24:22 PM UTC-6, RichardC wrote: Create an new Android Library project. Put all your existing shared code and resources into it. Create 2 new Android Projects (one with your old package name and the other with a new package name), and set them to use your Android Library project. Put the different resources into the Application Projects. To setup a Library project see: http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject On Tuesday, February 12, 2013 8:08:36 PM UTC, John Merlino wrote: I have an application already created and up and running on google play. I need to create a second application where everything is the same, other than the background views. So I am wondering the easiest way to essentially clone an application so that all I have to do is create new keys and change the background images. thanks for response. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: best way to copy an existing application
bob wrote: Does he really need to create a new library project? Yes. Or can he just check the Is Library checkbox on his existing project? No. RichardC wrote: Create an new Android Library project. Put all your existing shared code and resources into it. Create 2 new Android Projects (one with your old package name and the other with a new package name), and set them to use your Android Library project. Put the different resources into the Application Projects. To setup a Library project see: http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject John Merlino wrote: I have an application already created and up and running on google play. I need to create a second application where everything is the same, other than the background views. So I am wondering the easiest way to essentially clone an application so that all I have to do is create new keys and change the background images. thanks for response. -- Lew -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.