Skip to main content

Posts

Showing posts with the label Android

Master of android repo mirrors

Sometimes you want to mirror an entire android platform repo, locally, so that you can init & sync to a working directory without being connected to the internet. Handy if your internet connection sucks, or you travel a lot. I'm sure you can use your imagination. Updating means you just have to keep track of a list of mirrors and make sure they are synced in order (for reference chaining). For AOSP, this task is pretty simple, and the first repository you'll probably mirror: popd mkdir aosp-mirror pushd $_ repo init -u https://android.googlesource.com/mirror/manifest --mirror repo sync -j[dl-jobs] NOTES: $_ in bash is the first argument to the previous command, also dl-jobs is the number of download jobs. popd is the directory we started in. If say, I were on my Mac10.8 and made a case-sensitive sparse disk, and: mkdir /Volumes/Android/mirrors && cd /Volumes/Android/mirrors/ then popd will just return the current directory, as current w...

Stumbled on Scala

I was looking for some examples of using foreground dispatch for the NfcAdapter class today, and I stumbled on the scaloid-apidemos  for the scaloid  project ( blog ), which leverages the Scala language on top of Java and works with Android. So, I'm still not sold on Scala quite yet, but I thought it was interesting enough to note that Scala works on .Net  and  Mono as well. I highly recommend just browsing the Learning Scala page.