Some MapView mysteries

by Shtpavel » Wed, 21 Apr 2010 05:05:28 GMT


Sponsored Links
 So..
When i run an app with dev-sertificate, my MapView works right. But
when i signed it for market publishing, MapView do not show map at
all.
What's a problem?
Thank you!

--



Some MapView mysteries

by Mark Murphy » Wed, 21 Apr 2010 05:25:33 GMT


 


You need a Google Maps API key that corresponds to your signing key. If
you change signing key (debug -> production), you need to change your
Google Maps API key to match.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android Training in NYC: 4-6 June 2010:  http://guruloft.com 

--


Sponsored Links


Some MapView mysteries

by Shtpavel » Wed, 21 Apr 2010 13:16:06 GMT


 Thx a lot!





>



Other Threads

1. Service: both onStart() and onStartCommand() called

Hello (World).

I'm trying to create a Service which is backwards compatible, working
on both pre-2.0 and post-2.0 phones.
Therefore I implement both onStart() and onStartCommand() according
to: 
http://developer.android.com/reference/android/app/Service.html#onStartCommand(android.content.Intent,
int, int).
Where the comments on onStart() say:
// This is the old onStart method that will be called on the pre-2.0
// platform.  On 2.0 or later we override onStartCommand() so this
// method will not be called.

However, running 2.1 in the Emulator, both methods are called when I
start my Service. Is this a bug? Did anyone else have this problem?

-- 

2. RIL issue: is libreference-ril.so reliable?

Is libreference-ril.so from default platform package reliable and can
be used to provide phone functions in Android? Or one has to develop
vendor library?

I added GSM modem to the board via tty device but seems default RIL
library is not capable to provide phone operation. The following is
taken from radio log (by typing command: adb logcat  radio)

I/RIL     ( 1834): Opening tty device /dev/ttyS0
I/PHONE   ( 1944): Network Mode set to 0
I/PHONE   ( 1944): Cdma Subscription set to 1
D/PHONE   ( 1944): mDoesRilSendMultipleCallRing=true
D/PHONE   ( 1944): mCallRingDelay=3000
I/RILC    ( 1834): libril: new connection
I/RILC    ( 1834): RIL Daemon version: android reference-ril 1.0
I/RILJ    ( 1944): Connected to 'rild' socket
D/RILJ    ( 1944): [UNSL]< UNSOL_RESPONSE_RADIO_STATE_CHANGED
RADIO_UNAVAILABLE
W/GSM     ( 1944): Can't open /system/etc/voicemail-conf.xml
W/GSM     ( 1944): Can't open /system/etc/spn-conf.xml
D/GSM     ( 1944): [DSAC DEB] registerForPsRestrictedEnabled
D/GSM     ( 1944): [DSAC DEB] registerForPsRestrictedDisabled
D/GSM     ( 1944): [PdpConnection] DataConnection.clearSettings()
D/RILJ    ( 1944): [0000]> RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING
D/RIL     ( 1834): onRequest: <unknown request>
D/RILJ    ( 1944): [0000]< RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING
error: com.android.internal.telephony.CommandException:
RADIO_NOT_AVAILABLE
D/STK     ( 1944): StkService: StkService: is running
D/STK     ( 1944): StkService: NEW sInstance


As one can see from these two lines

D/RIL     ( 1834): onRequest: <unknown request>
D/RILJ    ( 1944): [0000]< RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING
error:

libreference-ril.so doesn't recognize
RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING message.

In the source file of the library hardware/ril/reference-ril/reference-
ril.c in the method onRequest() :

    if (sState == RADIO_STATE_UNAVAILABLE
        && request != RIL_REQUEST_GET_SIM_STATUS
    ) {
        RIL_onRequestComplete(t, RIL_E_RADIO_NOT_AVAILABLE, NULL, 0);
        return;
    }

Initial value of sState is RADIO_STATE_UNAVAILABLE therefore the only
message which can be processed by the RIL as the very first message
must be RIL_REQUEST_GET_SIM_STATUS.

But in fact RILJ (com.android.phone) application sends ro RILD first
message of type RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING and throws
exception getting error code RIL_E_RADIO_NOT_AVAILABLE.

Anybody knows where can be found reliable library?

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. wifi not remembering the access point

4. ContextWrapper.openOrCreateDatabase() throws NullPointerException

5. pop-up/toast notification without activity/context

6. how to block buttons with a layout above all?

7. Cupcake(API3) friendly way to pause/stop sound loops in SoundPool? Any ideas?