Monday, November 24, 2014

How to write a make file(Android.mk) for Android Application when you build from Android Source Code?

LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := optional

LOCAL_SRC_FILES := $(call all-java-files-under, src)

LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4 <UR-JAVA-Library>

LOCAL_PACKAGE_NAME := <APP-NAME>

LOCAL_SDK_VERSION := current

include $(BUILD_PACKAGE)

# Use the following include to make your own test apk.

include $(call all-makefiles-under,$(LOCAL_PATH))

Tuesday, November 18, 2014

Problem Solving: Improvise, Adapt, Overcome (Given a problem, what should I do??)

Given a problem, what should I do??

http://www.peakprosperity.com/blog/improvise-adapt-overcome/52001

C Debugging

What happens to the following program,

int main()
{
        char *a = malloc(sizeof(100));
        printf("a = %p\n",a);
        a++;
        printf("a = %p",a);
        free(a);
}