function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Chidambar KulkarniChidambar Kulkarni 

Salesforce1 - attach photo to custom object and Navigation

I am new to Salesforce.  
After doing a bit of research, I have come up with the following code (I apologize if part of the code doesn't make sense).   
I have created the following visualforce page

        <apex:page standardController="PVID__c" extensions="AccountController"> 
            <script src="/soap/ajax/29.0/connection.js"></script>
            <script type='text/javascript' src='/canvas/sdk/js/publisher.js'/>
            <script src="" type="text/javascript" />
            function myUpdate()
            var accountId = document.getElementById('accountId').value;
            '{!$RemoteAction.AccountController.StandardController}', accountId, function(result, event)
            Sfdc.canvas.publisher.publish({name: "publisher.close", payload:{ refresh:"true"}});
            <apex:form >
                <table cellspacing="20"> 
                        <td>Local Spaces</td>
                        <td style="padding:0 15px 0 15px;" ><apex:inputField value="{!PVID__c.Common_Areas_Text__c}" style="width: 300px; height: 50px"/></td>
                        <td style="padding:0 15px 0 15px;" ><apex:inputField value="{!PVID__c.Common_Areas_Rating__c}" style="width: 120px; height: 20px"/></td>
                <input id="photoFile" type="file" accept="image/*"/>
                <a href="#" data-role="button" onclick="myUpdate()">Save</a>

My AccountController apex class

    public with sharing class StandardController {
        public ApexPages.StandardController standardController { get; set; }
        public StandardController(ApexPages.StandardController standardController) {
            this.standardController = standardController;

What I am finding hard to accomplish.  

1. Attaching a pic to my custom-object (PVID__c)  

2. By default, when you press back button on android Salesforce1 app, it closes. I want to navigate back to previous visualforce page.


User-added image

Any help is appreciated, thanks.