In this assignment, you will learn how to create an application using the Android OS. You will also notice that an Android application can mashup different services provided by the OS such as sensors, databases, and maps to interact asynchronously. The application will have three parts ---
- In the first part, the application will track your device's current location. The code provided shows how to read the GPS data and you should implement dynamic tracking functionality.
- In the second, your application will mash-up with google maps, i.e., your location will be marked on the map. Most of the code required for this part is given, except that you need to generate your MAP API key and update appropriate file.
- In the last part, you will store and display alerts. This part requires you to code some parts.
You don't need a physical device for this project. The entire application will function within a device emulator that is packaged with the android SDK.
Jan 19, 2019 The Mashup Radio app Gives You your favorite Paris Radio streaming live on your android devices. Just download Arijit Singh Songs app from old new songs and pocket over new, top and Hit Arijit Singh Video Songs collection. This app for Arijit Singh All. Nov 18, 2013 How to install Mashup repo on XBMC. Mashup is the best repo to watch free movies, TV shows and streaming live TV. Mashup is very well organized and constantly updated. After Installing Mashup if. The Android App. In this assignment, you will learn how to create an application using the Android OS. You will also notice that an Android application can mashup different services provided by the OS such as sensors, databases, and maps to interact asynchronously.
UPDATES
Updates override other information specified on this page.- 01-12-2012: The AlertMeActivity_2.java (part 3) file has been modified to add a missing function. Please use the new file from now on.
- 01-13-2012: Fixed a bug in AlertProvider.java (part 3) file. The URIs had to bee updated. Modify the CONTENT_URI in the file to include your unity id, instead of mine.
Android Development Environment
![Mashup Tv Download For Android Mashup Tv Download For Android](/uploads/1/2/5/0/125077848/255998001.jpg)
![Mashup Tv Download For Android Mashup Tv Download For Android](/uploads/1/2/5/0/125077848/230335797.jpg)
Before you can begin writing your first android application you need to configure your environment. Follow instruction in Android Quick Start, to get started with Android SDK. You may also run the 'Hello, World' program as a warm up.
Now, create a new Android project with the following values..
- Project Name: [unity_id]_soc_project1
- Build Target: Google APIs, API level 10 (Note: If the API doesn't show up, you have not installed it. Use the Android SDK Manager to install the required API)
- Application Name: [unity_id]
- Package Name: edu.ncsu.[unity_id].soc_project1
- Activity Name: AlertMeActivity
- Min SDK: 10 (Google API)
Part 1: Getting your current location from the GPS Provider
Android SDK provides an API for applications to access the GPS sensors on a device making it easy to develop location based services (LBS). In this part you will learn how to use the API to get a device's current location. Review the AlertMeActivity to understand how to retrieve and display a device's current position. To test it, follow these instructions -
We have provided you with some helper classes and configuration files to make the assignment easier. Please copy the following files into the specified directories.
- main.xml under the res/layout folder (replaces existing file)
- AlertMeActivity.java in the edu.ncsu.[unity_id].soc_project1 package under the src folder (replaces existing file)
Your application needs the ACCESS_FINE_LOCATION permission to access the GPS sensors. Read about Android Permissions and add the ACCESS_FINE_LOCATION permission to the application manifest.
- Before launching your application, you need to create an Android Virtual Device (AVD). Use the Android AVD Manager inside eclipse to create one (make sure the target of the AVD is Google APIs, API level 10).
- Launch your project on the AVD you just created.
- You can emulate a GPS sensor on the AVD using the DDMS perspective in Eclipse which looks like this.
- Your job in this part is to complete the icode in AlertMeActivity.java to display the GPS co-ordinates you manually send from the DDMS perspective The activity should display the location which looks similar to this.
- Hint: You need to add a LocationListener to request automatic location updates. Refer to the dev guide to figure out how to do it.
Part 2: Marking your location on the Map
Now that you can read locations from the GPS sensors on the phone, this part asks you to mark those locations on Google maps. To assist in this process we have provided the followig resources.
- AlertsPositionOverlay.java in the edu.ncsu.soc.[unity_id].soc_project1 package under the src folder.
- Replace the contents of the AlertMeActivity.java file with that of AlertMeActivity_1.java. Note: Do not rename the file, just change the contents.
- Replace the contents of the main.xml file with main_1.xml.
- <uses-library android:name='com.google.android.maps' /> as a child of the application element
Dj Mashup Downloads
Before we make use of this class we must first get the map to display within our application to do this we need to generate an Maps API key. To generate the key you must..
- Follow the instructions found here (Getting the MD5 Fingerprint of the SDK Debug Certificate) to generate the fingerprint. The keytool application should be in your path if the Java SDK is in your path. If not, then find the location of the SDK on your computer go to the bin directory and you should find the keytool program there.
- Follow the instructions found here (Registering the Certificate Fingerprint with the Google Maps Service) to generate the Maps API key. You will need a valid google account to complete this step.
- Using the key acquired in the previous step, open the res/layout/main.xml and find the MapView element. Replace the placeholder [put key here] text within that element with the API key.
- Update the AlertMeActivity.java with the changes you made for previous part (i.e., adding the LocationListener).
- Restart your application and the UI should look like this.
- Your application now tracks your location on the map.
Part 3: Store and retrieve alerts at Places of your interest
Android uses a service-oriented architecture by making most of the phone's features available via ContentProviders. For example, CONTACTS are one of the content providers that let you programatically get a list of all of your contacts. In addition, Android also lets you create your own content providers. Information on how to retrieve data from a content provider can be found in this document.
Our application will provide a content provider --- AlertProvider. Before we start do the following modifications -
- Copy AlertItem.java in the edu.ncsu.[unity_id].soc_project1 package under the src folder.
- Copy AlertProvider.java to the edu.ncsu.[unity_id].soc_project1 package under the src folder.
- Replace the contents of the AlertsPositionOverlay.java file with that of AlertsPositionOverlay_1.java. Note: Do not rename the file, just change the contents.
- Replace the contents of the AlertMeActivity.java file with that of AlertMeActivity_2.java. Note: Do not rename the file, just change the contents.
- <provider android:authorities='edu.ncsu.[unity_id].soc_project1' android:name='.AlertProvider' /> as a child of the application element
Now, if you click on the map, a text input box opens up asking you to enter an alert (but does nothing). Your task in this part is to modify AlertsPositionsOverlay.java so that the alert you enter gets stored in the conten provider for this place (latitude and longitude).
Further, modify the AlertMe.java file such that each time a place is marked on the map, the content provider is checked for alerts closest to this place (function to find distance between two latitude and longitude pairs is given in AlertMeActivity.java). And, if the closest alert is less than 50m from the current position, that alert has to be displayed on the screen like this.
Dont worry about more than one alert at the same (lat,long). I wont test this scenario.
Deliverables
Mashup Tv Download For Android Download
- The [unity_id]_soc_project1.apk file in the bin/ directory of your project
- A zip file containing the source code for the following java classes..
- AlertMeActivity.java
- AlertsPositionOverlay.java
- AlertProvider.java
- AlertItem.java
- [Optional] Any other classes needed to execute your program
- A README.txt file containing any special instructions for your submission.