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 6819759
In Process

The Archive Base Latest Questions

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

MyObject class public class MemberDetailsObject implements Serializable { String memberid; String memberName; String mobileNumber;

  • 0

MyObject class

public class MemberDetailsObject implements Serializable {

String memberid;
String memberName;
String mobileNumber;
String photo;
String phoneType;
String latitute ;
String longitude;
String dateNTime;
String locationName;
String date;
String time;
Bitmap memberImage;
public String getMemberid() {
    return memberid;
}
public void setMemberid(String memberid) {
    this.memberid = memberid;
}
public String getMemberName() {
    return memberName;
}
public void setMemberName(String memberName) {
    this.memberName = memberName;
}
public String getMobileNumber() {
    return mobileNumber;
}
public void setMobileNumber(String mobileNumber) {
    this.mobileNumber = mobileNumber;
}
public String getPhoto() {
    return photo;
}
public void setPhoto(String photo) {
    this.photo = photo;
}
public String getPhoneType() {
    return phoneType;
}
public void setPhoneType(String phoneType) {
    this.phoneType = phoneType;
}
public String getLatitute() {
    return latitute;
}
public void setLatitute(String latitute) {
    this.latitute = latitute;
}
public String getLongitude() {
    return longitude;
}
public void setLongitude(String longitude) {
    this.longitude = longitude;
}
public String getDateNTime() {
    return dateNTime;
}
public void setDateNTime(String dateNTime) {
    this.dateNTime = dateNTime;
}
public String getLocationName() {
    return locationName;
}
public void setLocationName(String locationName) {
    this.locationName = locationName;
}
public String getDate() {
    return date;
}
public void setDate(String date) {
    this.date = date;
}
public String getTime() {
    return time;
}
public void setTime(String time) {
    this.time = time;
}
public Bitmap getMemberImage() {
    return memberImage;
}
public void setMemberImage(Bitmap memberImage) {
    this.memberImage = memberImage;
}
public MemberDetailsObject(String memberid, String memberName,
        String mobileNumber, String photo, String phoneType, String latitute,
        String longitude, String dateNTime, String locationName, String date,
        String time, Bitmap memberImage) {
    super();
    this.memberid = memberid;
    this.memberName = memberName;
    this.mobileNumber = mobileNumber;
    this.photo = photo;
    this.phoneType = phoneType;
    this.latitute = latitute;
    this.longitude = longitude;
    this.dateNTime = dateNTime;
    this.locationName = locationName;
    this.date = date;
    this.time = time;
    this.memberImage = memberImage;
}




}

I am trying to pass it using

Intent viewProfile = new Intent(getApplicationContext(), ScreenMemberProfile.class);       
viewProfile.putExtra("memberList", memberList.get(positon)); 

however the problem is that bitmap is not serilizable, may i know any other alternative

  • 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-26T21:20:41+00:00Added an answer on May 26, 2026 at 9:20 pm

    Passing a Bitmap through Activities is possible but is very expensive for memory.
    Instead of passing a Bitmap object you should save it on external memory (cache / sd card) and pass its path (wrapped in Serializable Object) to the next Activity, and in the next Activity decode that path into Bitmap and use accordingly.

    public class MemberDetailsObject implements Serializable {
        // other member ... 
        String memberImagePath;
        // rest of the class ...
    }
    

    For more detail see here:

    How to send image from one activity to another

    how do you pass images (bitmaps) between android activities using bundles?

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

Sidebar

Related Questions

Imagine I have an entity: public class MyObject { public string Name { get;
I have a class: public class MyObject { public string Name; public int Age;
I have a class: public class MyObject { public string Code; public string FullName;
Assuming the following view model definition: public class MyObject { public string Name {
I have an object - @Entity public class myObject{ public string fieldA; public string
Please consider the following: public class MyObject { public bool B; public string Txt;
Given: I have a class: class MyObject { public string Field1; public string Field2;
Let's say I have a List<MyObject> , which stores class MyObject { public String
I have an object like this: class MyObject { public string Object.Prop1 { get;
I have a object: public class MyObject { int id; string value; } I

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.