Google Map retains the reference to the context of the enclosing activity?

by Katsiaryna » Fri, 22 Jan 2010 00:08:00 GMT


Sponsored Links
 Still no luck. Seems I should report it as a bug...



> Katsiaryna



Other Threads

1. GPS port for crespo

I want to build and test my gps port (libgps) on nexus s (crespo).
However, after building from aosp version 2.3.3 + the proprietary
drivers that were post in:
http://code.google.com/android/nexus/drivers.html

I find out that although the built-in gps seems to be working in my
build (after flashing it to the device), no libgps.so is present
anywhere in the out/ folder or on the device itself.

Where is the missing libgps.so? is it a part of another lib? How can I
replace it with my own version?


-- 

2. create a new init service or process and connect to a socket

Hi,

I m trying a create a new init service to start when the OS boots. I
have created a simple example that writes the time elapsed since it
started to the log. It wakes up every three seconds. The code for
exampleservice.c looks like:

#define LOG_TAG "Example Service"
#include < utils/log.h >
#include < unistd.h >
int main(int argc, char **argv)
{
    LOGI("Service started");
    int elapsed = 0;
    while(1)
    {
         sleep(3);
         elapsed += 3;
         LOGI("Service elapsed time is %d", elapsed);
    }
}

and added the following to the init.rc

service exampleservice /system/bin/exampleservice
user exampleservice
group exampleservice
oneshot

the Android.mk file looks like the following

ifneq ($(TARGET_SIMULATOR),true)

LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)
LOCAL_SRC_FILES:= exampleservice.c
LOCAL_MODULE := exampleservice
LOCAL_C_INCLUDES := \
    $(call include-path-for, system-core)/cutils
include $(BUILD_EXECUTABLE)

endif  # TARGET_SIMULATOR != true


i have added a folder test_gopi in the directory \frameworks\base\cmds
which contains the exampleservice.c & Android.mk file

when i build i get the following error:

frameworks/base/cmds/test_gopi/exampleservice.c:2:26: error:  cutils/
log.h : No such file or directory
frameworks/base/cmds/test_gopi/exampleservice.c:3:22: error:
unistd.h : No such file or directory
frameworks/base/cmds/test_gopi/exampleservice.c: In function 'main':
frameworks/base/cmds/test_gopi/exampleservice.c:6: warning: implicit
declaration of function 'LOGI'
frameworks/base/cmds/test_gopi/exampleservice.c:10: warning: implicit
declaration of function 'sleep'
make: *** [out/target/product/devkit8000/obj/EXECUTABLES/
exampleservice_intermediates/exampleservice.o] Error 1

Please help me in solving this issue and guide me how to connect to a
socket from the service when the OS boots....

-- 

3. GPS Porting Problems On The Android 2.3

4. android eclair image ----> icon problem and what is safe mode

5. Calling an Activity when phone is locked by clicking two times on the END_CALL button

6. gmail app and encryption

7. SQLiteException: no such table .... on device