How to version Android app in Eclipse? - android

I would like to know how Android app versioning is done when creating apps with Eclipse.
Now I've completed my first working application and would like to develop it further. But I dont want to mess with code of a working application until improved application will be in working condition. Now I can open up new project and copy/paste all code+resources, but it will have different package name (because of duplicating variables) and as I know same Market app should be within same package.
How is this done and what tools are needed?

Use version control for this. For your needs I think Git or Subversion would be enough. So take your working app code, check it in the VCS you chose (Git, Subversion etc), tag it for a release and go from there.
There are some other aspects here. You need to learn about version control and how to use it. And you need to learn about Eclipse workspaces. To address your issue here, you can copy the eclipse project into new folder, create a eclipse workspace there, and import/add this new copy of project in it. This way, you will have one workspace for the working app, and another for your improved app.
Hope this helps you understand. If you are new to programming it may take a bit to wrap your head around it. Good luck.

You can keep your code under version control. Google offers free hosting but it can be seen by other people (if they look hard enough for it). The safest bet is to set up a free SVN server on your computer.
After you have the code under source control, you can access it through a free SVN client.

On Eclipse I use Subclipse together with my own Subversion repository. It works great.

Here is the link, Androids website accepts Git as a standard subversion system, with Repo and Gerrit as helper tools based on Git.
http://source.android.com/source/version-control.html

Related

SVN Version control How to know if same file is under use by other team mate

I want to ask about version control that we are using. And it is SVN. I am working on a project with other team members and using SVN as version control.
So it is very easy to understand and to work with. But There is one problem and that is sometimes it happen that me and my other team member start working on same file. And in the end of the day we have to merge the differences in file to settle issues down.
But my point is, Is not it far batter to know before starting work on same file that It is already under working of any team member.
I have been searching for it for hours but did not get any help.
Can someone please tell me How to do it in SVN That is provided in Android studio and on server side we are using SVN Standard Edition 3.5.10???
Note: We are using SVN and we can not change this version control at
the moment.

New to android studio. Need advice

I learned android development on eclipse a long time ago. Recently I have some free time. So I decided to catch up on it again.
When checking for eclipse, I saw that it is not supported now and android studio is the new way.
My questions are...
Can I use the old eclipse's android SDK with android studio?
What are the most important changes I need to know?( basics)
Can android studio run on my old computer screen? With a resolution of 1024x800. Because it says on the site that it needs 1280*1024 at least.
Thanks in advance .
Yes it is possible to point Android Studio at pre installed SDK/NDK, but now they have really improved the packaging and downloading of this stuff, so I would say burn it all down and start fresh. Let Android Studio manage the SDK and it will be much easier.
Otherwise, its an IDE, pretty standard stuff. You'll have to learn gradle now to manage your project, which is the main change since Eclipse was using ant. And do get a better monitor :)
Yes, you just need to change the path specified in Studio to your old Sdk that you were using with eclipse and it should work
Apart from different key mappings for shortcuts (you can use eclipse shortcuts in Studio too, by changing editor settings). Except that nothing special, but you got lot more ammo now. You will learn gradually about tests and different configurations in Gradle build System
AFAIK, that shouldnt be a problem, just that it might looked a bit crammed up
Agree with yano, ditch the Eclipse SDKs if possible. The SDK manager is pretty hassle free on Android Studio.
Secondly, the biggest changes for me were the introduction of Gradle and a more rigid project architecture. In Eclipse I was pretty used to putting elements all over the place in which ever folder or package I wanted. Android Studio is a move toward convention over configuration, so projects in Android Studio tend to have similar structures. I think this is great because it requires less configuration (and understanding of unique configurations) by me. Also, Gradle is great. It takes some getting used to (it seems very abstract in the beginning) but having the ability to add packages with a line of configuration beats manually adding libraries to my project. Beyond that, I'd say AndroidManifest is at least now partially configured by your project and that Android Studios object creation wizards handle a lot more of the boiler plate code needed to create new entities. All in all a better - more Android-centric - platform. Took me about a month to become comfortable with the switch. Wouldn't move back (even if that was advisable)
As for the min-resolution I'm pretty sure it will work. I have heard of people running below the min requirements. But it will feel cramped. All the drawers are collapsible, but I personally find Android Studio a bit more cluttered with buttons and panels than Eclipse (others may disagree). Should work, but may not be comfortable

Suggest for working together with a shared project

i am working in an app for my self, nothing big,nothing for customer.i am working with 2 friends and we d like to know the best way to share the project in order to work in the meantime. We are using dropbox,but we are not sure is the best way because some times it gets errors.
we putted all of the file system in dropbox. Then in local everyone imported the file from dropbox so we can have changes in real time. I mean i work in an activity while my friend is setting the layout ecc. The problem is that sometimes some files are missing or not sync properly.
GIT (github.com,bitbucket.org) for version controlling and code management its the best
trello if you want to discuss on some bug issue , feature etc... its free too...
Redmine is a free and open source, web-based project management and issue tracking tool. It handles multiple projects and subprojects
Azendoo some use Evernote/Google Drive/Dropbox , but I have teammates who prefer other platforms. Azendoo works as a central hub and lets everyone use the storage system they have support for email for similar concept
Podio on the other hand also adds support or customer relationship managament (CRM)
WunderList in general a to do list doing stuff collaboratively
As dragon born said, Git is a must-use !
Dropbox, is a quite good software for image / document sharing but not for code.
SugarSync is good too.
For project management, there are a lot of software such as WunderList, Trello, Azendoo, Redmine, Podio and much more. So try some and see which one you like.
Version control
What you are looking for is version control. You might wonder why you need version control. Version control stores the code at a central place for all in your team to access it. This allows you to make sure that everyone in the group is using the latest version of the code.
Version control also allows you to store changes to file. Let say you and your friend change the same file at the same time and then you both upload it to a server like dropbox that you have tag. What happens is that the last person how uploaded will overwrite the code of the first person so that persons code will be lost. Version control handles this by keeping track of the changes and if two people change the same file it will try to resolve this by merge both changes in the file. This can not always be done automatically so most version controls will ask the last party at this point how you want the changes to be merge, but no code is just lost.
Version control creates a snapshot for every committed change so you can always go back to an earlier version if something goes wrong this is useful if some party merges a file incorrectly, or you want to try something you are not sure will work.
What version controls are there?
There are many different version controls to use.
git
svn
Mercurial
How to create a version control project.
As you may have notice by now all of this software require a server of some sort. You can either host it on a server you own or you can use a free service. There are a few to choose from.
github
google code
This are just a few example of the most popular, there are a lot more option out there if you look. Read up on them and choose the one that fits you the best.
Use git for code management and easy to share.

How to put an existing Android project on source control using Subversion for Eclipse?

I have an existing Android project on which I have been working for a while, without using any source control (I know this is dumb).
Finally I have installed Subclipse, but am not sure
how to move my existing project to SVN using this plugin, and
where to host it?
Any pointers to this would be helpful. The Subclipse website is not very descriptive on how this can be done either.
Can someone please outline the steps for me?
I would recommend you to use Google Code for repository of your project. Other alternatives are SourceForge and gitHub (github is if you are using git, which is not your case) and many more. However, all the alternatives I share here are for open sourced projects and so they might not be the best fit for you. In all alternatives you have to register, then create a project (where you specify the license) and finally add your code.
As for how do you check in your project for the first time, I think this is good enough description.
If you don't wish to you use open source as pointed by Boris you can always host it yourself on your server.
Sourcerepo is another alternative and its only $3 approx, suppports svn, mercurial and git.

Github service hook for community translation webservice

I am taking care of an open source project: mixare. It's an augmented reality browser released under the GPLv3.
The source code of the project is on github and I would like to hook the localization part to some web-service a-la pootle. If necessary I can install my own instance of a translation service on our server, but also an hosted solution would be fine. So I would like to know:
Is there a preferred translation web service that syncs using github's service hooks? Any best practice to share?
Thanks a lot!
Git integration is one of major reasons why I started to write Weblate. It also supports remote trigger for git pull using URL, so it nicely integrates with Github (you just need to put the URL there).
PS: I've just noticed that Android string resources are not supported by backend I use for loading translations (translate toolkit), so it probably won't work for you...
While I appreciate your wish for git support, shouldn't you primarily be looking for a solution that will give you many and good translations?
To get many translations I'd recommend Translatewiki, unfortunately their manual setup takes some time though.
Apart from Translatewiki, transifex seems to be one of the better and not least bigger (counting translators) services. They've made their own client that take care of importing and merging translations. For gettext translations it can also pull in updated template (pot) files automatically from github, I don't know if that's also possible with Android style translations.
Both Translatewiki and Transifex are 100% free and open source software.
I've been through the same "nothing good out there" phase, so I've started writing my own, as a symfony2 bundle. Maybe it's of use to you: https://github.com/tvogt/translator-bundle
Why? Because I couldn't get weblate or pootle to work, you probably have to be familiar with all the pip and python and ve and whatever stuff. Translatewiki is only for free software. Transifix is commercial.
In 2020, with GitHub Actions (hooks executed on GitHub side), you now have GitLocalize
GitLocalize is a continuous localization tool built for communities and teams that want to simplify their workflow when translating their content.
GitLocalize automatically keeps translations up to date by syncing with your repository.
That won't apply to the OP's project github.com/mixare/mixare, which was moved to GitLab in 2018.
But it can help other projects with a similar need.
You can have a look at Amanuens - it's able to sync with any Git repository, including Github. It's totally free for open-source projects (contact support for details). Disclaimer: it is my company's service.

Categories

Resources