activity cannot be resolved

by rakesh » Tue, 02 Feb 2010 16:55:31 GMT

Sponsored Links
 int mainBackGroundColor
        = activity .getResources.getColor
when iam trying to access a color resource iam getting activity cannot
be resolved error in eclipse. how can this be resolved.

thanks in advance


activity cannot be resolved

by jotobjects » Wed, 03 Feb 2010 01:25:45 GMT

 Do you have a res/values/color.xml file with main_back_ground_color

Are you "cleaning" and rebuilding your project?  It is necessary that
bin and gen directories are recreated any time there is a change to
resources such as colors.xml


Sponsored Links

Other Threads

1. help me please.Compile Android kernel

Hello everybody i am beginner learning android porting to "mini2440"
i am clone android source code project from .i am try learning compile
from manual but i don't me for instruction how to
android to mini2440 please.Thank you very much.

I am not good at English. Sorry for any wrong sentence composition
may occur


2. porting Android GPS

I m porting the Androind GPS, however, there seems something wrong in
my android what the RPS seems does not exist. I have added chmod 0777 /
dev/oncrpc in the common/init.rc but it seems no works. The following
messages are my logcat, please teach me how to solve it, Thanks a

E/lib_api_rpc_glue(  806): Trying to create RPC client...
E/RPC     (  806): error opening /dev/oncrpc/3000008c:00010000: No
such file or directory
E/RPC     (  806): ERROR OPENING [/dev/oncrpc/3000008c:00010000]: No
such file or directory
E/RPC     (  806): failed to initialize client (permissions?)!
E/lib_api_rpc_glue(  806): Created loc_api_clnt ---- 0
D/lib_locapi(  806): loc_eng_init called, client id = -1234
D/lib_locapi(  806): loc_eng_ni_init: entered.
I/lib_locapi(  806): Starting Loc NI thread...
D/lib_locapi(  806): loc_eng_process_deferred_action started
D/lib_locapi(  806): loc_eng_set_gps_lock mode, client = -1234,
lock_type = 1
D/lib_locapi(  806): loc_eng_set_gps_lock mode failed


3. override pthread.h of bionic by the one in toolchain

4. What to check into source control?

5. Android HAL understanding

6. Review Axioo Picopad

7. seekTo behavior after onBufferingComplete