package com.artmanager.artmanager;

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


public class MainActivity extends ActionBarActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }


    @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_main, 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);
    }
}

@@ -166,16 +166,62 @@
 uItem;%0D%0A
+import com.artmanager.artmanager.model.Shop;%0D%0A
 %0D%0A%0D%0Apubl
@@ -439,16 +439,326 @@
 _main);%0D
+%0A%0D%0A        Shop saveShop = new Shop();%0D%0A        saveShop.setAddress(%22add%22);%0D%0A        saveShop.setCity(%22Sofia%22);%0D%0A        saveShop.setContactName(%22Didi%22);%0D%0A        saveShop.setDetails(%22det%22);%0D%0A        saveShop.setName(%22name%22);%0D%0A        saveShop.setTelephone(%22+359882545%22);%0D%0A        saveShop.saveInBackground();%0D
 %0A    %7D%0D%0A

connect project to Parse and create objects