NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

package com.example.asusrog.papajohns;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.SupportMapFragment;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.Marker;
import com.google.android.gms.maps.model.MarkerOptions;

public class MapActivity extends AppCompatActivity {
static final LatLng papaJohnsJawadDoom = new LatLng(26.2287868,50.5340824);
static final LatLng papaJohnsSeefMall = new LatLng(26.2288922,50.535206);
static final LatLng papaJohnsManama1 = new LatLng(26.2359241,50.5757537);
static final LatLng papaJohnsManama2 = new LatLng(26.2337547,50.5940752);
static final LatLng papaJohnsMuharraq = new LatLng(26.2688048,50.6243908);
static final LatLng papaJohnsAmwaiIslands = new LatLng(26.287645,50.6630376);
static final LatLng papaJohnsArad = new LatLng(26.2552216,50.6487755);
static final LatLng papaJohnsManama3 = new LatLng(26.2138929,50.5776437);
static final LatLng papaJohnsTubli = new LatLng(26.2019204,50.5610103);
static final LatLng papaJohnsSalmabad = new LatLng(26.1866269,50.5304403);
static final LatLng papaJohnsIsaTown = new LatLng(26.1721267,50.5459542);
static final LatLng papaJohnsAali = new LatLng(26.1628504,50.5219147);
static final LatLng papaJohnsHamala = new LatLng(26.1487517,50.4860804);
static final LatLng papaJohnsRiffa = new LatLng(26.1273761,50.5713479);
static final LatLng papaJohnsZallag = new LatLng(26.0490613,50.4984347);
static final LatLng papaJohnsSarMall = new LatLng(26.1997198,50.4981031);


private GoogleMap googleMap;
static final LatLng BAHRAIN = new LatLng(25.955383728818585, 50.59382401406765);
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_map);

SupportMapFragment fm = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map);
googleMap = fm.getMap();

// Move the camera instantly to BAHRAIN with a zoom of 15.
googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(BAHRAIN, 15));
// Zoom out, animating the camera.
googleMap.animateCamera(CameraUpdateFactory.zoomTo(10), 2000, null);



Marker SarMall = googleMap.addMarker(new MarkerOptions()
.position(papaJohnsSarMall)
.title("Sar Mall")
.icon(BitmapDescriptorFactory
.fromResource(R.drawable.papajohnss)));
Marker JawadDoom = googleMap.addMarker(new MarkerOptions()
.position(papaJohnsJawadDoom)
.title("Jawad Doom")
.icon(BitmapDescriptorFactory
.fromResource(R.drawable.papajohnss)));

Marker SeefMall = googleMap.addMarker(new MarkerOptions()
.position(papaJohnsSeefMall)
.title("Seef Mall")
.icon(BitmapDescriptorFactory
.fromResource(R.drawable.papajohnss)));

Marker Manama1 = googleMap.addMarker(new MarkerOptions()
.position(papaJohnsManama1)
.title("Manama")
.icon(BitmapDescriptorFactory
.fromResource(R.drawable.papajohnss)));

Marker Manama2 = googleMap.addMarker(new MarkerOptions()
.position(papaJohnsManama2)
.title("Manama")
.icon(BitmapDescriptorFactory
.fromResource(R.drawable.papajohnss)));

Marker Manama3 = googleMap.addMarker(new MarkerOptions()
.position(papaJohnsManama3)
.title("Manama")
.icon(BitmapDescriptorFactory
.fromResource(R.drawable.papajohnss)));

Marker Muharraq = googleMap.addMarker(new MarkerOptions()
.position(papaJohnsMuharraq)
.title("Muharraq")
.icon(BitmapDescriptorFactory
.fromResource(R.drawable.papajohnss)));

Marker AmwaiIslands = googleMap.addMarker(new MarkerOptions()
.position(papaJohnsAmwaiIslands)
.title("Amwai Islands")
.icon(BitmapDescriptorFactory
.fromResource(R.drawable.papajohnss)));

Marker Arad = googleMap.addMarker(new MarkerOptions()
.position(papaJohnsArad)
.title("Arad")
.icon(BitmapDescriptorFactory
.fromResource(R.drawable.papajohnss)));

Marker Tubli = googleMap.addMarker(new MarkerOptions()
.position(papaJohnsTubli)
.title("Tubli")
.icon(BitmapDescriptorFactory
.fromResource(R.drawable.papajohnss)));

Marker Salmabad = googleMap.addMarker(new MarkerOptions()
.position(papaJohnsSalmabad)
.title("Salmabad")
.icon(BitmapDescriptorFactory
.fromResource(R.drawable.papajohnss)));

Marker IsaTown = googleMap.addMarker(new MarkerOptions()
.position(papaJohnsIsaTown)
.title("Isa Town")
.icon(BitmapDescriptorFactory
.fromResource(R.drawable.papajohnss)));

Marker Aali = googleMap.addMarker(new MarkerOptions()
.position(papaJohnsAali)
.title("A'ali")
.icon(BitmapDescriptorFactory
.fromResource(R.drawable.papajohnss)));

Marker Hamala = googleMap.addMarker(new MarkerOptions()
.position(papaJohnsHamala)
.title("Hamala")
.icon(BitmapDescriptorFactory
.fromResource(R.drawable.papajohnss)));

Marker Riffa = googleMap.addMarker(new MarkerOptions()
.position(papaJohnsRiffa)
.title("Riffa")
.icon(BitmapDescriptorFactory
.fromResource(R.drawable.papajohnss)));

Marker Zallag = googleMap.addMarker(new MarkerOptions()
.position(papaJohnsZallag)
.title("Zallag")
.icon(BitmapDescriptorFactory
.fromResource(R.drawable.papajohnss)));
}



@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_map, menu);
return true;
}

@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();

//noinspection SimplifiableIfStatement
// if (id == R.id.action_settings) {
// return true;
// }

return super.onOptionsItemSelected(item);
}
}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.