Sorry rather a newbie learning android studio where I downloaded a project http://www.androidhive.info/2014/12...mera-image-video-to-server-with-progress-bar/ to get my hands dirty with coding a camera app to upload to a server. Can anybody get it to work after downloading it? Because somehow I couldn't get it to work after I tried compiling it, with a error for this statement in the MainActivity.java file.
I've tried changing the code statement to this but still not working -->
Someone please help! Thanks
Code:
getActionBar().setBackgroundDrawable(new ColorDrawable(Color.parseColor(getResources().getString(R.color.action_bar))));
I've tried changing the code statement to this but still not working -->
Code:
getActionBar().setBackgroundDrawable(new ColorDrawable(Color.parseColor(ContextCompat.getColor(this,R.color.action_bar))));
Someone please help! Thanks