Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View izotx's full-sized avatar

Janusz Chudzynski izotx

View GitHub Profile
@izotx
izotx / Google Analytics
Last active December 21, 2015 16:18
Google Analytics How hard is to write it in a right way?
//That's a correct version of onLoad method it takes a NSNUmber as a time parameter, not NSTimeInterval.
With prior Google's implementation I couldn't even build the project without warnings or errors.
- (void)onLoad:(NSNumber *)loadTime name:(NSString *)name andLabel:(NSString *)label{
// May return nil if a tracker has not already been initialized with a
// property ID.
id tracker = [[GAI sharedInstance] defaultTracker];
@izotx
izotx / TestActivty
Last active December 20, 2015 19:38
Test Activity with a constructor
import android.app.Activity;
public class TestActivity extends Activity {
public TestActivity() {
System.out.println("hello world!");
}
}