Alibabacloud.com offers a wide variety of articles about google maps geocoding api android, easily find your google maps geocoding api android information here online.
Android gets weather information via Google API
Copy Code code as follows:
public class Weatheractivity extends activity {
Private TextView txcity;
Private Button btnsearch;
Private Handler Weatherhandler;
Private Dialog ProgressDialog;
private timer timer;
/** called the activity is a. */
@Override
public void OnCreate (Bundle savedinstances
, two apikeys are generally required: Debug key and release key. The so-called debug key is used during program development. Because the android program requires a digital signature for use, it is too troublesome to run the program every time during development. Therefore, the system automatically uses debug during the development process. keystore signs the program, debug. keystrore is located in c: \ Documents and Settings \
To obtain the fingerpri
1. You can see the default debug KeyStore on Eclise------preference-----------the latest version of Android Eclipse eliminates the need to generate MD5 and SHA1 yourself.2. Login to the Google website account and go to the following URL https://console.developers.google.com/project/apps~soft-edu/apiui/api?authuser= 0. Click APIs on this page to turn the
1. First find the debug keystore path:
Open Eclipse ---> Windows ---> Preferences ---> Android ---> Build
Generally, the path C: \ Users \ Administrator \. android \ debug. keystore
2. Run the following command in cmd:
1) Open the cmd Console2) navigate to the jdk bin directory.Cd D: \ dev \ java \ jdk1.6.0 _ 12 \ binD:3) execute the command to obtain the authentication fingerprint:Keytool-list-alias andr
Let's talk about the map V2 API key first:
During app packaging, You need to generate a XXX. keystore and use the sha1 generated by this secret room library to apply for the key as the key in androidmanifest. xml.
(Sometimes the key generated using Debug. keystore can also be used for unknown reasons)
Enter the subject:
According to https://developers.google.com/maps/documentation/
skip. We can easily find that the MD5 key value has been generated. (Note: My keytool.exe tool is under D: Program FilesJavajdk1.6.0 _ 23bin, so the step for me to access and obtain the MD5 key is:
1. (First, paste the debug. keystore document to D: Program FilesJavajdk1.6.0 _ 23bin) and then open the run input box in WIN + R.
2. Enter cmd to enter the Console
3. d:
4. cd D: Program FilesJavajdk1.6.0 _ 23bin
5. dir (now you enter the bin directory)
6. keytool-list-keystore debug. keystore
7. En
, so you can press the ENTER key to skip. It is easy to see that the MD5 key value has been generated. (Hint: My Keytool.exe tool is under D:program Filesjavajdk1.6.0_23bin, so the steps I get into and get MD5 key are
1. (First, paste the Debug.keystore document under D:program filesjavajdk1.6.0_23bin) and then win+r Open the Run input box
2. Enter cmd into the console
3.D:
4.CD D:program Filesjavajdk1.6.0_23bin
5.dir (You are now entering the bin directory)
6.keytool-list-keystore Debug.k
Map applications use Com.google.android.maps this package. Used by the Mapview control. But before you need to apply for a development API key, this key will be tied to the current computer user. And then through the key to the official application can get a development of the API key
First run cmd, in the DOS interface, enter
Keytool-list-v-keystore C:usersbystander.androiddebug.keystore
command, an
After configuring the development environment (including Java environment variables)
----- 1. Find your Debug. keystore file in the eclipse tool,
Choose windows --> preference --> Android --> build,
The default debug keystore value is the path of DEBUG. keystore.
----- 2. Obtain the MD5 value of DEBUG. keystore.
First, run the CMD command line to enter the path where the debug. keystore file is located,
Run the following command:
Keytool-list
When loading Google maps, the instructor said that the V3 version was used, so I searched for how to use V2 and how to apply for a key on the webpage.
I asked my teacher how to use V3. I always thought I wanted to upgrade something.
The instructor said that key is not required for V3,
This is not nonsense. I know it too. But how to use it? Oh, my God, there's no place to find it.
So we should try it wit
1. First locate the debug keystore location:
2. In "cmd", type the following command:
Keytool-list-alias androiddebugkey-keystore "C: \ Users \ itrue \. Android \ Debug. keystore"-storepass Android-keypass android
If the system prompts that keytool cannot be found, add the bin directory in JDK to the environment variable.
Obtain the authentication fing
as getting it through the network.
Best_provider = mlocationmanager. network_provider;
It turns out that the problem lies in the location service acquisition method. After using the network method, you can get the current location on the real machine.
Then the program I wrote can finally run on the real machine. paste a picture to see it.
The above text shows that the address is not found because of the network speed problem. I should have found the relevant location information through addr
1. You can see the default debug keystore in Eclise --> preference --> android --> bulid. Note that MD5 and SHA1 are no longer generated in the latest Android Eclipse version.
3. Click Credentials, select Public API Access, and enter the SHA1 in Eclipse and the Java package name of the program to be developed. Separate the SHA1 with the; sign in the middle
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.