Recently, I am working on an Android google map app that requires some fake GPS position input. Here are several easy ways for you to quickly input mock GPS locations for your Android development:
Using Emulator: 1. Using geo fix cd to your .\android-sdk\tools\ folder, and then telnet to your avd. e.g. $ telnet localhost 5554 $ geo fix -118 35 $ exit The help geo fix shows that it takes these parameters 'geo fix log lat '...
2. Using DDMS In your emulator control view, using the Location Controls to send the location, e.g.
The short makfile script below is to create and use a static c lib in gcc compiler for C code.
Requirement: 1. gcc compiler (e.g. cygwin); 2. Put in a folder the following files: main.c //main program, to call mylib.lib mylib.c //lib's src, to generate mylib.lib mylib.h //lib's hearder makefile
Usage: To run on a UNIX-like command line tool in Windows: $ make or $ make main.exe will compile and generate both mylib.lib and main.exe $ make mylib.lib will compile and generate only mylib.lib