How to sign your android application to use the map api in mobile device
Tech-Today

How to sign your android application to use the map api in mobile device


There are 4 steps that need to be done to release a mobile application with map on a android powered mobile device.

Assumption:
You have eclipse installed with android plugin installed. If you don't know how just follow the steps here:
http://developer.android.com/sdk/eclipse-adt.html

1.) Sign your application
Reference: http://developer.android.com/guide/publishing/app-signing.html
a.) Create a key
You can change the keystore and alias, example myCompay.keystore, myCompany
keytool -genkey -v -keystore -alias -keyalg RSA -keysize 2048 -validity 10000
b.) Right click the eclipse project, select Export as signed
c.) Execute zipalign.exe from (android_dir/tools)
zipalign -v 4 YourExportedSignedApp.apk YourApp.apk

2.) Create a map key:
Reference: http://code.google.com/intl/pl/android/add-ons/google-apis/mapkey.html
keytool -list -alias kbs -keystore .keystore, will return an md5 fingerprint of the certificate,
Example: 56:DC:C4:8F:3A:94:49:67:0A:8A:8B:11:4E:2E:C9:7A

3.) Use the key to generate Android Map API, example
0X2lgNBrb3EaoecE3zVK1JdMsn1F2LEGIRxR_ZQ

For reference: http://code.google.com/android/add-ons/google-apis/maps-overview.html

Most often it's the solution for:
Android - Failed to find provider info for com.google.settings in MapView Example error that you can see in LogCat.




- Android Studio - Displaying List View Inside Alertdialog
Android Studio - Displaying List View Inside AlertDialog 1.) Follow this code: ================>Note: custom_dialog_layout.xml is the layout that will pop-up >Note: row.xml is the item used for populating rowAlertDialog.Builder builder = new AlertDialog.Builder(new...

- Android Studio - Creating Material Design App Bar
Android Studio - Creating Material Design App Bar 1.) Set-up the color that we'll use for the app bar: ======================================== >Create a new xml inside values and name it color.xml <resources>     <color name="ColorPrimary">#FF5722</color>...

- Using Gridview Layout In Android
So, lately I've been relearning android development and as I expected there were already a lot of changes since I last code in it (eclair). Like the concept of Fragment (which I love), unfortunately statistics show that most of the users are still...

- How To Get Imei From Android Or Iphone
For android it's pretty straight forward. You just have to add read phone state permission. <uses-permission android:name="android.permission.READ_PHONE_STATE"/> And call the API: String imei = TelephonyManager.getDefault().getDeviceId(); if (TextUtils.isEmpty(imei))...

- Android's Datepickerdialog And Timepickerdialog Implementation
Layout (calendar.xml) Java Class: package org.ipiel.demo.layout; import java.text.DateFormat; import java.util.Calendar; import android.app.Activity; import android.app.DatePickerDialog; import android.app.TimePickerDialog; import android.os.Bundle;...



Tech-Today








.