Open main menu

CDOT Wiki β

Changes

MAP524/DPS924 - 2014

1,669 bytes added, 11:38, 14 November 2013
Labs Q&A Fall 2013
* Will Android do anything to prevent more than one copy of a content provider being created at the same time? If not - how to prevent data corruption or inconsistency?
 
* I managed to get Google Maps/MyPlaces app to run on the emulator. It involved copying 2 APKs from a real device onto the emulator: /data/app/com.android.vending-1.apk and /data/app/com.google.android.gms-1.apk. Strangely enough, it seems to work on an Android API emulator but not a Google API emulator; adb install looked like it froze on attempting to install the APKs to a Google API emulator. The app runs, however, I get a bunch of repeated debug messages of "Failed to find provider info for com.google.android.gsf.gservices". If you want to give it a shot, here are some basic directions:
# Ensure you are using an Android API emulator, NOT the Google API! For some reason the APKs didn't install for me (or maybe you can figure it out...)
# Install and run the app on a real Android device. This is just to ensure that you have the updated version of Google Play Services on your device, and if not, you'll be prompted to update it using a Google login. The app should run after the update.
# Copy the 2 above APKs from the device to local storage (use -s option to specify device if you currently have 2 or more connected, use adb devices to see IDs)
#* adb pull data/app/com.google.android.gms-1.apk gms-1.apk
#* adb pull data/app/com.android.vending-1.apk vending-1.apk
# Start the emulator if you haven't done so already, and install the 2 APKs to the emulator (once again use -s option to specify device if necessary)
#* adb install gms-1.apk
#* adb install vending-1.apk
# Run MyPlaces on the emulator. It should run now... I don't know if I'm allowed to put these APKs up for download... --[[User:Mdafidchao|Mdafidchao]] 11:38, 14 November 2013 (EST)
== [[Assignment 1 Q&A Fall 2013 |Assignment 1 Q&A]]==
1
edit