The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,862 other subscribers

Archive for the ‘Android’ Category

Dianne Hackborn – Google+ – A few days ago I wrote a post trying to correct a lot of…

Posted by jpluimers on 2013/10/01

A long while ago, Dianne Hackborn write a G+ post that is still very relevant:

some real background on why Android’s UI was designed the way it is and how it actually works.

Recommended reading when you are interesting in the Android UI model, how it was designed to both support threading and application isolation at the same time.

–jeroen

via: Dianne Hackborn – Google+ – A few days ago I wrote a post trying to correct a lot of….

Posted in Android, Development, Mobile Development, Software Development | Leave a Comment »

I need to check this out: KBOX — a miniature Linux distribution integrated with a terminal for non-rooted Android devices

Posted by jpluimers on 2013/09/12

On my research list:

I need to check out KBOX — a miniature Linux distribution integrated with a terminal for non-rooted Android devices.

It seems to add a lot of normal unix/Linux commands to your Android terminal emulator, but does not require root access.

I usually use a Windows or Mac system to browse the files on my Android device, but this should be much more convenient and aid both software developers and power users.

Now I need a remote ssh access to my Android device (:

–jeroen

via: KBOX — a miniature Linux distribution integrated with a terminal for non-rooted Android devices – Kevin Boone’s Web site.

Posted in Android, Android Devices, Development, Mobile Development, Power User, Software Development | Leave a Comment »

On Windows: Do not install the Android SDK ADT bundle in a path with spaces

Posted by jpluimers on 2013/08/28

Some 20 years after someone thought it was a nice idea to allow spaces in path names on Windows, it still is a bad idea to rely that just “works” for everything.

Today I tried to see if it still applied what I mentioned 2 years ago during the German BASTA! Fall conference in the Rheingoldhalle when talking about cross platform .NET development using MonoDroid/MonoTouch/Visual Studio:

Android SDK
– http://developer.android.com/sdk/index.html
– Windows:
- http://dl.google.com/android/installer_r13-windows.exe
- http://dl.google.com/android/android-sdk_r13-windows.zip
Do not install in a directory with spaces (not C:\Program Files, but C:\android-sdk)

And it does still apply: though not mentioned in the Android SDK/ADT documentation, most of the batch files in the Android SDK ADT bundle are not compatible being stored in a path that has spaces.

Unquoted referrals to paths like this are used in most SDK batch files:

cd /d %~dp0

The only way to run these batch files is with the current directory being the directory of the batch file itself, or referring to them in their fully quoted form.

Another correct way would be to use short names, but that’s only done in find_java.bat:

%~dps0

Summary of the batch files and how they are affected:


+ …\adt-bundle-windows-x86-20130522\sdk\build-tools\android-4.2.2\dx.bat
+ …\adt-bundle-windows-x86-20130522\sdk\tools\android.bat
+ …\adt-bundle-windows-x86-20130522\sdk\tools\ddms.bat
+ …\adt-bundle-windows-x86-20130522\sdk\tools\draw9patch.bat
+ …\adt-bundle-windows-x86-20130522\sdk\tools\hierarchyviewer.bat
+ …\adt-bundle-windows-x86-20130522\sdk\tools\jobb.bat
+ …\adt-bundle-windows-x86-20130522\sdk\tools\lint.bat
+ …\adt-bundle-windows-x86-20130522\sdk\tools\monitor.bat
+ …\adt-bundle-windows-x86-20130522\sdk\tools\monkeyrunner.bat
+ …\adt-bundle-windows-x86-20130522\sdk\tools\traceview.bat
+ …\adt-bundle-windows-x86-20130522\sdk\tools\uiautomatorviewer.bat
– …\adt-bundle-windows-x86-20130522\sdk\tools\lib\find_java.bat
+ …\adt-bundle-windows-x86-20130522\sdk\tools\lib\post_tools_install.bat
* …\adt-bundle-windows-x86-20130522\sdk\tools\proguard\bin\proguard.bat
* …\adt-bundle-windows-x86-20130522\sdk\tools\proguard\bin\proguardgui.bat
* …\adt-bundle-windows-x86-20130522\sdk\tools\proguard\bin\retrace.bat
– …\adt-bundle-windows-x86-20130522\sdk\tools\templates\gradle\wrapper\gradlew.bat
– compatible with spaces in path
+ incompatible with spaces in path
* won't run at all when current directory is different from directory of batch file

view raw

gistfile1.txt

hosted with ❤ by GitHub

(Side note: most incompatible batch files correctly do `for %%i in (“%cd%”) do set prog_dir=%%~fsi`)

So: make sure “…”  is a path not containing spaces.

–jeroen

Posted in Android, BASTA!, Conferences, Development, Event, Mobile Development, Software Development | Tagged: , , , , , , , | Leave a Comment »

Dutch stop of the RAD Studio in Action LIVE! event: September 7th, Leiden (close to Amsterdam) with extra conference track.

Posted by jpluimers on 2013/08/27

The Dutch stop of the RAD Studio In Action LIVE! tour is on September 7th.

The venue location is via Holiday Inn Leiden Hotels: Haagse Schouwweg 10, 2332 KG  Leiden, The Netherlands.

It is close to the advertised “Amsterdam Netherlands” (about half an hour drive), close to the A44 highway and close enough to public transport. And it is indeed on Saturday September 7, 2013

Full day event: RAD Studio In Action LIVE! + conference track Read the rest of this entry »

Posted in Android, Android Devices, CodePlex, Conferences, Delphi, Delphi XE4, Delphi XE5, Development, DVCS - Distributed Version Control, Event, FreePascal, git, iOS Development, Lazarus, Mercurial/Hg, Mobile Development, Power User, Software Development, Source Code Management, SourceForge, Subversion/SVN, TFS (Team Foundation System) | Leave a Comment »

Android Play download race condition?

Posted by jpluimers on 2013/07/09

I submitted the report below to Google. What do you think, race condition?

I think this is a race condition somewhere.

Steps to reproduce:
1- Play notifies you there are multiple Apps (preferably many) that need manually updating
2- Manually select the first app and start the download for it
3- While the app is downloading, and there are more apps to update, perform step 2 for the remaining apps
4- Every some apps, there will be an app in the list that stalls before the percentage counter becomes visible (usually it displays “Downloading” forever)

This problem does not reproduce if:
A- there is only one app to download
B- if (while other apps are downloading) you do not select a fresh app to update

It does not matter if this is over WiFi, or mobile data connection. Soft/Hard rebooting the device does not help either, nor the version of the Play app (it has been this case for at least a couple of months, I only found time now to investigate the full matrix of reproducible steps, and factors influencing reproducability).

Time consuming workaround: cancel the stuck download, and retry, then continue with the list of other apps.

–jeroen

Posted in Android, Android Devices, Development, Mobile Development, Power User | Leave a Comment »

Paul Burke – Google+ – Slides from my talk at the New York Android Designers…

Posted by jpluimers on 2013/03/29

Great stuff, not only for Android design: Paul Burke – Google+ – Slides from my talk at the New York Android Designers….

Posted in Android, Development, Mobile Development | Leave a Comment »

Free Chapters 1-4 Professional Android Programming with Mono for Android and .NET/C# | Wrox P2P

Posted by jpluimers on 2013/02/27

Cool: free starter is a PDF with chapters 1-4.

–jeroen

via: Free Xamarin Studio and Free Chapters 1-4 Professional Android Programming with Mono for Android and .NET/C# | Wrox P2P.

Posted in .NET, Android, C#, Development, Mobile Development, Mono for Android, Software Development | Tagged: , , , , , | Leave a Comment »

Installing Eclipse, Android SDK and ADT on Mac OS X

Posted by jpluimers on 2012/07/24

Just in case I need to get my Android contacts issue solved by brushing off some Java knowledge and going for Java using Eclipse on my MacBook Air:

All of the above was to try out this: Android-er: Create SD Card in Android Emulator and copy files into, in Eclipse, Emulator and DDMS..

Which in turn I needed for this: Current status on the “Android help needed: App that cleans up the Contacts mess that the LinkedIn app left behind” « The Wiert Corner – irregular stream of Wiert stuff « The Wiert Corner – irregular stream of Wiert stuff.

–jeroen

Posted in Android, Development, Java, Mobile Development, Software Development | 1 Comment »

There is a great Android Design – UI Overview site, but no great UI design tools for Android

Posted by jpluimers on 2012/02/15

Recently the Android Design site was launched with great explanation on how to properly design UIs for Android Apps.

Like Apple’s iOS Human Interface Guidelines and Microsoft’s User Experience Design Guidelines for Windows Phone they are a must for any mobile developer.

Together with sites like Android UI Design Patterns, and mockup stencil tools, more Android UI mockup sketch tools and stencils allow you to give prospective users an impression on how an app might be looking like when developed.

What is lacking is a set of real Android GUI design tools. The kind of tools like the Xcode Interface Builder for iOS, or Expression Blend for Windows Phone that – together with iOS PSD templates or Windows Phone design templates (and more templates) – give you a killer start.

Also note Delphi XE2 that has a great UI designer which has consistently covered Windows UI design for 15+ years, including multi-touch and gesture support, and now covers Mac OS X and iOS for HD and 3D apps (but not yet with multi-touch or gesture support).

The only design tool for Android I could find is DroidDraw that emits the XML needed for Android UIs. It is painfully slow and lacks basic things like a property window to edit properties of UI elements.

Given the number of Android app developers, there is much room for improvement.

  • Am I missing something here?
  • What kind of tools are you using?

–jeroen

via: Android Design – UI Overview.

Posted in .NET, Android, Delphi, Development, iOS Development, Mobile Development, Software Development, Windows Phone Development | 6 Comments »