-5

enter image description here

I want to save bitmap image in internal storage.but i got syntax error. i goggled that error but cannot get appropriate solution.

Qantas 94 Heavy
  • 15,750
  • 31
  • 68
  • 83
Muhammad Zahid
  • 607
  • 1
  • 7
  • 17
  • pls read the FAQ of the site to know how to ask a question with enough details. You have a method inside `onClick`?? – Raghunandan Jun 24 '14 at 11:55
  • The problem is that you are trying to declare a method inside another method. Move `saveToInternalSorage()` below `onCreate()`. Also post the code here directly. Don't post it as a screenshot. – Xaver Kapeller Jun 24 '14 at 12:13
  • ok.Xaver Kapeller. thanks for commenting . the problem was solved – Muhammad Zahid Jun 24 '14 at 12:17

1 Answers1

0

Error shown bcz you makes function on onClickListener. Try below code:-

        save.setOnClickListener(new OnClickListener()
        {
            @Override
            public void onClick(View arg0)
            {
                // TODO Auto-generated method stub
                saveToInternalStorage();
            }
        });

saveToInternalStorage function:-

        public void saveToInternalStorage()
        {

        }
duggu
  • 37,851
  • 12
  • 116
  • 113