CHUVASH.eu
  • About
  • Search

Posts

April 12, 2011

Version 0.2.8: UI improvements

A new version is published. As one can see on the github, this version has some UI improvements: Changed library pins to green: in order not to be confusing with the highlighted pins (the red dotted ones), Updated the Swedish localization strings.

read more
April 7, 2011

.gitignore for android

.gitignore is very important. This file tells git which files not to care about. I found a good template for android .gitignore: .metadata tmp/** .DS_Store *.tmp *.bak tmp/**/* *.swp *~.nib Thumbs.db Desktop.ini *~ *.apk bin gen local.properties *.jar **.classpath** The only thing I have added is the last row: .classpath.

Comments from Wordpress.com

J. Pablo Fernández - Apr 2, 2011

read more
April 7, 2011

Publish upgrade on Market - checklist

Here comes my checklist about what has to be done in order to publish an upgrade on Market.

  • get all code from github (git pull origin master)
  • Test the application
  • Change version number in AndroidManifest.xml
  • Commit “version x.x.” and push
  • (Change google map api key in res/layout/main.xml to the prod key)
  • In Eclipse: Project → Clean
  • Right-click on project → Android tools → Export signed… (~/Skrivbord/LUSites-unaligned.apk)
  • Zipalign (e.g.: zipalign -v 4 LUSites-unaligned.apk LUSites-v0.2.7.apk)
  • Publish upgrade on market
  • Save the apk to the archive
read more
April 7, 2011

Version 0.2.7: Nations added. Ready for release

It is my pleasure to announce that a new version is ready for release. The biggest news are the nations which are now on the map. Other improvements are spelling error corrections. Great thanks to Kigsz. You can read about adding nations to the map on Lusites wiki.

read more
April 7, 2011

Good beginners' tutorial on android, eclipse and git

Smashing magazine has a pretty good tutorial how to start programming for android using git, github, eclipse and datastorage. I recommend: Get Started Developing For Android With Eclipse, Reloaded

read more
April 7, 2011

Set up the Lusites development environment

There is a very good wiki page which describes how to set up the environment. If you think something is missing there, just leave a comment here. Much of that was inspired by a useful tutorial from doityourselfandroid.com

read more
April 7, 2011

Update from git

So if you have an existing copy of the project, just type: git pull origin master Or in Egit in Eclipse, right-click on repo and run “Fetch from upstream”.

read more
April 7, 2011

New files in Eclipse

If there are new classes or files in the project (say you have got the latest version from github into existing workspace in Eclipse). In order for Eclipse to see them, right click on the package and press “Refresh”.

read more
April 7, 2011

New developer!

Today Kigsz joins the Lusites. Like!

read more
April 3, 2011

Get coordinates from Google Maps

To get longitude and latitude can be tricky at the first time. There are many ways to do this, e.g. getlatlon.com. Good enough, but not so practical if you want to collect many coordinates. You can’t search after street names, you only can scroll and drag. Another way is to use javascript to show the longitude and latitude. See this example. This works in all web browsers.Just find your object in Google Maps and paste this javascript in URL bar: javascript:void(prompt('',gApplication.getMap().getCenter())); You’ll be prompted the coordinates values. Just be sure the map is centered on your object. There is a third, even better way. Use javascript, but don’t be annoyed with prompts. In Chromium (or Google Chrome) navigate to maps.google.com find your object, open the Console in DevTools (press Ctrl-Shift-J). Right click on the object → Center the map here In console write: copy ( gApplication.getMap().getCenter().toString() ) So now you can paste it wherever you need it. But the best with it is: you can do whatever you want and need before copying. In LUSites, I save the coordinates another way, first latitude and then longitude. So I can shift values, trim unnecessary stuff and so on. Look at it: var loc = gApplication.getMap().getCenter().toString(); var locTrimmed = loc.replace(/[() ]/gi,""); var locArray = loc.split(","); var newLoc = locArray[1] + "," + locArray[0]; copy (newLoc) First I get the string of the coordinates. Then I erase the unnecessary stuff: (), blank space. After splitting I shift the longitude and the latitude and create a new string which is copied. Or, we can shorten this: var coordinates = gApplication .getMap() .getCenter() .toString() .replace(/[() ]/gi,"") .split(","); copy (coordinates[1] + "," + coordinates[0]); The same in one row (to copy-paste): var coordinates = gApplication.getMap().getCenter().toString().replace(/[() ]/gi,"").split(","); copy (coordinates[1] + "," + coordinates[0]); To avoid to copy this line of code, just press up arrow in the DevTools console.

read more
  • ««
  • «
  • 47
  • 48
  • 49
  • 50
  • 51
  • »
  • »»
© CHUVASH.eu 2026