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.
As you know, Google Maps is more and more popular around the world. Is it possible to integrate Google Maps into my MapGuide Enterprise Fusion viewer as base map? Yes, it is!
As MapGuide Fusion viewer uses a subset of OpenLayers, it allows us to access to the underlying OpenLayers
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
, 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
During personal space project development, modules on the page can drag and drop their positions freely. The module named "" contains an instance of a Google map object. We use the API service provided by Google Maps V3.
During the drag and drop operation on its container, in IE7, a bug occurs: the map block is overwr
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
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/
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
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
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
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
The source code is as follows:
The first two scripts in this Code point to the Services released by Google map API and ArcGIS online. With these two scripts, you can call the objects and methods in Google map. From the second ESRI script, it seems that a lot of code is used, so it may be difficult to use your own ArcGIS Server to publish a similar service, I do
When talking about the default control and gmap2 settings on the map, I mentioned the Google map local search bar control. It is very easy to add this control to the map, you do not need to call gmap2.addcontrol (). You only need one sentence:
Map. enablegooglebar ();
In this way, you can add this search box in the lower left corner of the map and replace the original Google logo image.
Currently, you can u
Android sends real-time maps and Android real-time maps
In most instant messaging, the sending location function is available. When sending a location, you should note that the items in the chat interface display real-time maps, such:
How is this implemented?
In fact, this
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.