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

  • Home
  • SEARCH
  • 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 6787287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:20:53+00:00 2026-05-26T17:20:53+00:00

This is somewhat of an open question. I’m in the process of developing a

  • 0

This is somewhat of an open question.

I’m in the process of developing a simple game for android and I’ve gotten to the point where I’m trying to enable thee user to save their progress and return later.

As i’m a beginner, I’m not exactly sure where to start, so I was hoping some of you might have at least some suggestions.

A little info on the setup of the game:

All animation is done in a thread through a canvas and alternation of stored bitmap frames based on a 30 ms loop.

Everything is an object, the characters, the background is simply a 2d array of objects. and each object is generally referenced and created dynamically through a hashmap.

Now how to save? I know I could brute force it, and simply save coordinates and current actions blah blah etc. etc. for each object in each map.

But is there a better way to do this? I’ve briefly read that in python there’s a method of sterilizing objects called “pickle,” and there is something similar called “kryo.” Am I looking in the right direction?

  • 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-05-26T17:20:54+00:00Added an answer on May 26, 2026 at 5:20 pm

    You should look into Java serialization. It’s not perfect, it has problems, but it’s the safest, quickest way to turn a complex tree of objects into something that you can save to a file or a db, and load it back when you need.

    Else, there’s always the possibility to use your own specific serialization using INSERT SQL queries, etc. But be very careful, it’s easy to miss parts of what you want to save / restore. One example of that would be to turn your objects tree into XML and save that XML as a file. There are very good 3rd-party libs to map objects to XML and back in Java.

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

Sidebar

Related Questions

This is somewhat related to the question posed in this question but I'm trying
This is somewhat of a follow-up question to this question . Suppose I have
this is somewhat of an odd question. I wrote a C function. Its 'like'
somewhat open ended question here as I am mostly looking for opinions. I am
I hope the title of this question is somewhat clear, I couldn't figure out
This will be a somewhat abstract question. I am working on a Data Access
This is a somewhat subjective question, but I'd like to hear the pros/cons for
This is probably a somewhat out-of-wack question. I use tramp to edit remote files,
My question is somewhat difficult to explain. What I am trying to do is,
Once and for all I want to clearify this somewhat subjective and argumentative area

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.