Tuesday, 10 June 2014

GETTING GOOGLE MAP API KEY FOR SIGNED APP


If you are using MAP KEY in Signed Application means you have to keep two things in your mind:
(If you are using Normally Generated Map key means it will not show the MAP)

1.Before Creating the API Key you have to sign Your APP

2. After that you have to give your signed keystore file  and alias name in cmd

(a) You Have to do like below in CMD

C:\Program Files\Java\jdk1.6.0_18\bin>keytool -list -v -keystore "(keystore file path)" -alias (what the alias name you have given while signing the app)

Enter keystore password:
Alias name: zingmobile
Creation date: Jun 10, 2014
Entry type: PrivateKeyEntry
Certificate chain length: 1
Certificate[1]:
Owner: CN=zingmobile
Issuer: CN=zingmobile
Serial number: 5396b2e8
Valid from: Tue Jun 10 12:55:28 IST 2014 until: Mon Oct 11 12:55:28 IST 3013
Certificate fingerprints:
         MD5:  A9:C7:34:09:FE:64:44:2D:43:A7:0C:A3:58:77:07:33
         SHA1: 7B:EF:27:02:84:1F:6B:2E:54:D2:C1:F8:CF:D0:42:C2:36:F0:53:E1
         Signature algorithm name: SHA1withRSA
         Version: 3
C:\Program Files\Java\jdk1.6.0_18\bin>

(b) After that go to below link and click Create New Project

                https://console.developers.google.com/project

GETTING GOOGLE MAP API KEY

(a) First you need to get SHA1 Using CMD

C:\Program Files\Java\jdk1.6.0_18\bin>keytool -list -v -keystore "C:\Users\VENGAT\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android

Alias name: androiddebugkey
Creation date: May 18, 2013
Entry type: PrivateKeyEntry
Certificate chain length: 1
Certificate[1]:
Owner: CN=Android Debug, O=Android, C=US
Issuer: CN=Android Debug, O=Android, C=US
Serial number: 519685a5
Valid from: Sat May 18 01:01:49 IST 2013 until: Mon May 11 01:01:49 IST 2043
Certificate fingerprints:
         MD5:  3C:DA:8B:E1:BA:44:41:1B:70:0B:87:78:99:69:CD:A1
         SHA1: F7:02:FE:B4:3D:3D:59:9D:33:83:E4:93:C9:CC:AF:C9:22:12:88:E1
         Signature algorithm name: SHA1withRSA
         Version: 3
C:\Program Files\Java\jdk1.6.0_18\bin>

(b) Second go to below link and click Create New Project

Wednesday, 4 June 2014

Finishing One Activity From Another Activity

First_Activity :

Create Activity Object in First_Activity..

--> static Activity closing = this;




Second_Activity:

Close the First_Activity in Second_Activity Using Activity Object..
--> First_Activity.closing.finish();