I am following the tutorial here along with somebody's help request here...
I am very new to Java/Android programming, and I'm not exactly sure how to 'launch' this section of code. In my AndroidManifest.xml I have it set as the first activity, assuming this would launch right when I started it:
<activity
android:name=".UploadImage"
android:label="@string/title_activity_starting_point" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Unfortunately it doesn't work this way, because whenever I launch the app it automatically 'stops unexpectedly.' Any other Java class that I put right here launches fine, so I assumed it was something in the code. I'm just not sure where it needs to be for me to get the code 'running', as every time I compile it the program crashes on my phone.
LogCat says it is unable to resolve this line of code:
String image_str = Base64.encodeBase64String(byte_arr);
// old code was String image_str = Base64.encodeBytes(byte_arr),
// but this didn't compile for me and a comment on another website
// said that encodeBase64String could replace it...apparently not?