Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8946667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:34:40+00:00 2026-06-15T12:34:40+00:00

I am following the tutorial here along with somebody’s help request here … I

  • 0

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?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T12:34:41+00:00Added an answer on June 15, 2026 at 12:34 pm

    Apparently the Base64 file I had entered got modified from the original one; the ‘encodeBase64String’ doesn’t exist, and using:

    int flag = 0;
    String image_str = Base64.encodeToString(byte_arr, flag);
    

    Fixed the problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Help! I've no idea what's going wrong here, I'm following along a tutorial video
Can anyone please help. I'm following a tutorial found here as I have a
I'm fairly new to python and following along with part 4 of the tutorial
I'm new to jQuery and have been following the tutorial here for a Panel
I'm new to iOS programming and I'm reading this tutorial to get along http://www.raywenderlich.com/1797/how-to-create-a-simple-iphone-app-tutorial-part-1
I'm following the tutorial here: http://iphone-3d-programming.labs.oreilly.com/ch01.html#ch01_id36002837 When I try to run the program, I
I'm following the tutorial here . I created a new Web Application. I then
following a RoR security tutorial (here) , i wrote something along the lines of
I'm trying to learn some basic java programming for games. I'm following this tutorial
I'm following this tutorial here, and everything has worked out very well so far.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.