We can't add the resources in framework???

by mohammed sameer mulla » Fri, 04 Sep 2009 16:10:43 GMT


Sponsored Links
 Hi,

i have requirement to implement button in lockscreen.
So i have added new image here *frameworks\base\core\res\res\drawable.*
And i have modified the Keyguard_screen_lock.xml. Here i have added the
ImageButton view.
And i have even modified the strings.xml to display different string.

As in the following discussion it has told like this.

*You must not add public resources because it would change the public
API and thus make your Android phone/device potentially incompatible
with other Android devicesYou must not add public resources because it would
change the public
API and thus make your Android phone/device potentially incompatible
with other Android devices.*
**
*Please find the previous discussion in the bellow link*

(



Other Threads

1. How to get the SMS massage?

I have a problem, how to get the sms massage in adroid. I have found a
solution how to get the incoming sms massage but still i can not get
to the already stored massages. Please help.
Luke

--~--~---------~--~----~------------~-------~--~----~

2. GMAPS is not being displayed in the emulator

Hi all,
 I am able to connect to the* internet* using emulator browser *(working
behind the proxy) *but the GMAPS is not being working...I get following
exception about the file not found exception(*FIRST*) when i start the
emulator . I even tried by writing simple gmap program generating the map
key gives second error(*SECOND)*.



*FIRST)Below red-text is shown on the DDMS  log-cat when i run any program
to start the emulator....*
01-13 15:41:33.091: DEBUG/LocationManagerService(54): Constructed
LocationManager Service
01-13 15:41:33.151: DEBUG/libhardware(54): using QEMU GPS Hardware emulation
01-13 15:41:33.170: ERROR/GpsLocationProvider(54): Could not open GPS
configuration file /etc/gps.conf
01-13 15:41:33.170: ERROR/GpsLocationProvider(54):
java.io.FileNotFoundException: /etc/gps.conf
01-13 15:41:33.170: ERROR/GpsLocationProvider(54):     at
org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:227)
01-13 15:41:33.170: ERROR/GpsLocationProvider(54):     at
java.io.FileInputStream.<init>(FileInputStream.java:76)
01-13 15:41:33.170: ERROR/GpsLocationProvider(54):     at
com.android.internal.location.GpsLocationProvider.<init>(GpsLocationProvider.java:179)
01-13 15:41:33.170: ERROR/GpsLocationProvider(54):     at
com.android.server.LocationManagerService._loadProvidersNoSync(LocationManagerService.java:356)
01-13 15:41:33.170: ERROR/GpsLocationProvider(54):     at
com.android.server.LocationManagerService.loadProvidersNoSync(LocationManagerService.java:340)
01-13 15:41:33.170: ERROR/GpsLocationProvider(54):     at
com.android.server.LocationManagerService.loadProviders(LocationManagerService.java:333)
01-13 15:41:33.170: ERROR/GpsLocationProvider(54):     at
com.android.server.LocationManagerService.<init>(LocationManagerService.java:447)
01-13 15:41:33.170: ERROR/GpsLocationProvider(54):     at
com.android.server.ServerThread.run(SystemServer.java:230)
01-13 15:41:33.170: ERROR/AndroidRuntime(54): Crash logging skipped, no
checkin service
01-13 15:41:33.180: DEBUG/LocationManagerService(54): Found dir
/data/location/gps
01-13 15:41:33.191: DEBUG/LocationManagerService(54): name = gps
01-13 15:41:33.201: DEBUG/GpsLocationProvider(54): enable
01-13 15:41:33.230: DEBUG/GpsLocationProvider(54): GpsEventThread starting


*SECOND) Follwing error is seen when executing a simple gmap program(have
added needed permissions)*
**
01-13 15:49:20.495: INFO/ActivityManager(54): Start proc
com.examples.android.mapviewexample for activity
com.examples.android.mapviewexample/.MapViewExample: pid=496 uid=10047
gids={}
01-13 15:49:20.505: DEBUG/dalvikvm(485): LinearAlloc 0x0 used 541260 of
4194304 (12%)
01-13 15:49:20.545: INFO/jdwp(496): received file descriptor 10 from ADB
01-13 15:49:20.815: WARN/Maps_Persistence(496): Couldn't find file:
/data/data/com.examples.android.mapviewexample/files/DATA_Tiles
01-13 15:49:21.035: INFO/MapActivity(496): Handling network change
notification:CONNECTED
01-13 15:49:21.045: ERROR/MapActivity(496): Couldn't get connection factory
client
01-13 15:49:21.184: INFO/ActivityManager(54): Displayed activity
com.examples.android.mapviewexample/.MapViewExample: 1170 ms
01-13 15:49:21.206: INFO/ARMAssembler(54): generated
scanline__00000077:03545404_00000A04_00000000 [ 29 ipp] (51 ins) at
[0x27a1d0:0x27a29c] in 2018301 ns
01-13 15:49:21.415: ERROR/OSNetworkSystem(496): unknown socket error -1
01-13 15:49:21.446: WARN/AndroidHttpConnectionFactory(496): IOException in
HttpClient: unknown error
01-13 15:49:21.886: ERROR/OSNetworkSystem(496): unknown socket error -1
01-13 15:49:21.905: WARN/AndroidHttpConnectionFactory(496): IOException in
HttpClient: unknown error
01-13 15:49:22.145: ERROR/OSNetworkSystem(496): unknown socket error -1
01-13 15:49:22.176: WARN/AndroidHttpConnectionFactory(496): IOException in
HttpClient: unknown error
01-13 15:49:22.406: ERROR/OSNetworkSystem(496): unknown socket error -1
01-13 15:49:22.426: WARN/AndroidHttpConnectionFactory(496): IOException in
HttpClient: unknown error
01-13 15:49:22.666: ERROR/OSNetworkSystem(496): unknown socket error -1
01-13 15:49:22.907: WARN/AndroidHttpConnectionFactory(496): IOException in
HttpClient: unknown error
01-13 15:49:23.135: ERROR/OSNetworkSystem(496): unknown socket error -1
01-13 15:49:23.176: WARN/AndroidHttpConnectionFactory(496): IOException in
HttpClient: unknown error
01-13 15:49:23.406: ERROR/OSNetworkSystem(496): unknown socket error -1
01-13 15:49:23.426: WARN/AndroidHttpConnectionFactory(496): IOException in
HttpClient: unknown error
01-13 15:49:23.675: ERROR/OSNetworkSystem(496): unknown socket error -1
01-13 15:49:23.716: WARN/AndroidHttpConnectionFactory(496): IOException in
HttpClient: unknown error
01-13 15:49:23.945: ERROR/OSNetworkSystem(496): unknown socket error -1
01-13 15:49:23.965: WARN/AndroidHttpConnectionFactory(496): IOException in
HttpClient: unknown error
01-13 15:49:24.195: ERROR/OSNetworkSystem(496): unknown socket error -1
01-13 15:49:24.224: WARN/AndroidHttpConnectionFactory(496): IOException in
HttpClient: unknown error
01-13 15:49:24.446: ERROR/OSNetworkSystem(496): unknown socket error -1
01-13 15:49:24.476: WARN/AndroidHttpConnectionFactory(496): IOException in
HttpClient: unknown error
01-13 15:49:24.705: ERROR/OSNetworkSystem(496): unknown socket error -1
01-13 15:49:24.785: DEBUG/dalvikvm(496): GC freed 6261 objects / 399048
bytes in 76ms

*Kindly help me on this issue...*
**
*Thank you,*
*Regards,*
* Sheik*

--~--~---------~--~----~------------~-------~--~----~

3. How to debug Android application like (Browser, Camera etc.)

4. How to Use Google Accounts in Android Application

5. Android Instrumentation Non UI Results

6. Android Limitation on Instrumentation

7. Is there some kind of Widget Engine/Platform/Runtime will appear in future android platform?