Source: Sohu it
According to foreign media reports, Google's mobile operating system Android July 27 is about to go public soon, January 1, 2.0, Beijing time. At the I/O developer conference in March, Google officially presented some new features of the android 2.0 mobile operating system, including Android search, te
Keywords: Android/GPS/geocoding API/getlocationfrom () return null
I plan to develop a program for address location resolution. The following methods are widely used on the Internet:
The getfromlocation () and getfromlocationname () functions are quite popular and informative.
For details, see the following link:
Geographic and anti-encoding of Android maps:
Ht
Google Maps API V2 Android mobile phone development in China does not support Google Play service problems-graphic tutorial
The use of Google Maps in China is a headache and troublesome. I cannot understand why Google cannot be us
Recently, due to work relationships, we need to push messages to customers on the Android mobile phone platform. The original push technology on the Android mobile phone platform uses c2dm (cloud to device messaging framework ), however, this year, Google announced its end of support and development and its acceptance of new user registration.
In Android, you only need to use texttospeech to use the voice playback function. This class implements many speech-related functions. You must set the language for this class. Currently, five languages are supported, the cup holder does not support Chinese characters.
The implementation is simple, but you must first install the Language Pack. In settings, set the language input and output, and set the Tex
Register Google map API key
Cheungmine
Next, yesterday's topic, today we will first demonstrate how to generate a Google Android-certified fingerprint, which is used to register a Google Map API key. With this key, we can develop
In order to successfully apply for the android map API key, you must prepare a Google account and System Certificate. Generally, Google accounts are required to publish keys on Google. Google accounts are common and Gmail accounts
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
This document describes how to use the Google Map service. Main reference source: https://developers.google.com/maps/documentation/android/start? Hl = zh-CN. It still takes a long time to connect the simulator and the actual mobile phone. Latest GoogleMaps Android API v2 has integrated the map service into
Android requires that each application be digitally signed before it can be used. The signature contains information such as the key, creator, and Creation Unit, and is saved in a keystore. Google map provides the map service for every registered application. application developers need to transmit the keystore fingerprint to Google to obtain the
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
=" +Str+ "language=zh-cnsensor=false"; returnGetValues (NULL, URL); } } Call the GetAddress () method to pass the latitude and longitude to get the detailed address returned is a JSON string, you can parse a bitMapsapiutils.getinstance (). GetAddress (getLocation (context)); Calculate route dataYou can get the time and distance from the beginning to the end.Call the Getroutes () method to transmit the start and end pointsMapsapiutils.getinstance (). GETLATLNG ("39.90403,116.407526"); Get lat
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/android/reference/com/
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
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
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
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
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.