Ok. Seems to me if you disconnect on any page, you should go to the main net page, since presumably you were in some part of net play. I think this should avoid ending up in a "lobby" after disconnecting
#Set the current path must be set like this because call all-subdir-makefiles changes LOCAL_PATH
JNI_DIR := $(call my-dir)
LOCAL_PATH := $(JNI_DIR)
include $(call all-subdir-makefiles)
include $(CLEAR_VARS)
include $(JNI_DIR)/../../../../misc/Android.mk