October 30th, 2013
What I really miss about Objective-C is the clear concept of functions(properties) visibility like the way it is realized in JAVA – static/public/protected/private. Today I found out the way of using “private” properties/functions in your Objective-C class. In your .m file just define the interface with the property you need (ARC):
@interface MyClass ()
@property (nonatomic, strong) NSArray *someArray;
// your implementation
Note: “nowadays” it is possible to omit the @synthesize line
October 8th, 2013
I have had already experience of setting up Jenkins for automated builds of iOS projects. However, in cases I had before, there was a Linux or Windows machine with installed Jenkins server. A dedicated Mac machine was added as Jenkins-node. Read the rest of this entry »
April 30th, 2013
I came across an interesting post about splash screens for Android apps. The main thesis of the article is that the Android apps does not need splash screen in most of the cases at. The splash screen is a port of the concept from iOS. For Android apps its just additional overhead that does not make really sense. Here is the link to the article.
April 29th, 2013
I use my eclipse for MAC (version Juno “Eclipse Java EE IDE for Web Developers”) for both J2EE projects and Android development. I don’t know what’s wrong, but sometime I experience weird eclipse behavior on loading my Android workspace(s). Eclipse just freezes when loading a workspace, showing only the splash screen. After google search, one finds quite quickly a work around, but I never found out, what the real cause for the problem is.
So, the solution is to change to your workspace folder. Afterwards go to
.metadata -> .plugins-> org.eclipse.e4.workbench
and delete workbench.xmi file. Then restart eclipse. Your workspace should be loaded now. Unfortunately your workspace settings like LogCat, Console are lost. You should set your environment again.
April 26th, 2013
If you want to know the size of the screen for a particular device and it’s enough to know the relative size: small, normal, large, extra large you can use the code below. The corresponding constants are described in Android developer documentation
int screenSize = getResources().getConfiguration().screenLayout &
Log.v("TEST", "small screen");
Log.v("TEST", "normal screen");
Log.v("TEST", "large screen");
Log.v("TEST", "extra large screen");
Log.v("TEST", "some other screen size");
April 25th, 2013
The topic of this post is a simple web browser view with essential functionalities: back-button, forward-button, stop-button, reload- button and close-button to get back to point in the app, the web browser was called from. The implementation is based on the WebView and the custom WebClient. The steps are quite simple. One needs a piece of layout and custom WebClient.
Read the rest of this entry »
April 24th, 2013
In this post I would like to discuss an implementation of Augmented Reality app based on unity3d ver. 4.1 + Android plugin for unity3d + metaio SDK. I’m not going to go in details of all implementation steps. I think the most critical part is to make augmented reality part of the app to communicate with the native UI. It took me a while to find out how to put a custom overlay layout upon unity view and how the message exchange between two components works. This is what I would like to describe in this post. So, to overlay your AR-app with custom layout following steps are required.
Read the rest of this entry »