Using the emulator to use the camera required an SD card and I also need to push location details. Both were achieved by:
eos:~/android/sdk/tools$ ./mksdcard 1024M mySdCardFile.img
eos:~/android/sdk/tools$ ./emulator -port 5554 -avd My_AVD_1.5 -sdcard mySdCardFile.img &
eos:~/android/sdk/tools$ telnet localhost 5554
OK
geo fix -41.3 174.773233
OK
The only problem is that the Location getTime() and getAccuracy() calls were not as expected for a live phone so also implemented the following:
EMULATOR = ( Settings.Secure.getString(this.getContentResolver(),
android.provider.Settings.Secure.ANDROID_ID) == null );
No comments:
Post a Comment