Questions tagged [parcelable]

parcelable refers to the capability of an object to be converted to a parcel, a container for reading and writing data of various type, using type specific rather than generic serialization

parcelable is defined in the Android API as as interface for classes whose instances can be written to and restored from a parcel

References

1664 questions
1
vote
2 answers

Error when implementing Parcelable in android

The following class implements Parcelable class package mobile.bh.classes; import java.util.ArrayList; import java.util.List; import mobile.bh.activities.MethodStep; import android.content.Context; import android.graphics.Bitmap; import…
Adham
  • 63,550
  • 98
  • 229
  • 344
1
vote
1 answer

org.codehaus.jackson.map.JsonMappingException: No suitable constructor found for type

I'm coding a RESTful client for my AndroidApp. My rest webservice returns me a json and I pasrse it with springfreamwork into java class members. In this way my code is ok. I need to pass parameters from main activity to another one, so I…
Claudio Pomo
  • 2,392
  • 7
  • 42
  • 71
1
vote
2 answers

Using multiple static ArrayLists through a whole Android application

I am developing my first android Application and hoping to get some tips here. I am getting a JSONObject from an url which then will be parsed in an ArrayList. The list will be used in multiple tabs and be filtered as needed for the tabs.…
Diana
  • 43
  • 6
1
vote
0 answers

Android Parcelable in RPC

This is my first question in Stack Overflow, hope I find your expertise in solving a problem I am facing. I was trying to implement a Parcelable Code. Let me tell you - I have a ConnectDevice Class which when called establishes a connection to…
sZinc
  • 11
  • 2
1
vote
1 answer

How to send an object from one Android Activity to another using parcelable?

I'm trying to pass an object of type Team to another Activity in my app. The Team class: public class Team implements Parcelable { String teamName; //Name and Link to competition of Team TreeMap competitions; //Name…
Ben
  • 783
  • 7
  • 13
1
vote
2 answers

Android: ParcelFileDescriptor "createpipe" method 64KB error

I have an app that uses the ContentProvider class. In the openFile method, I need to be able to decode a file & return as a stream of data. So I decided to use the built in pipe. The problem is If I use the createPipe method, I am able to write only…
rtindru
  • 5,107
  • 9
  • 41
  • 59
1
vote
2 answers

Read parcelable not working while writing does

I am send data from one service to other service using parecable, when I write data contains proper value but when read data from parcelable it return null values. can any one tell me what is the problem with this code? Parcelable class package…
Subham
  • 503
  • 1
  • 9
  • 22
1
vote
4 answers

how to pass objects between intents

I have a class that contains data i want to pass it between intents, this class have arraylist that contains another class objects. this is my class public class ParsedData implements Parcelable { public String error; public…
AnasBakez
  • 1,230
  • 4
  • 20
  • 36
1
vote
2 answers

Android parcelable and Intent: redBundle: bad magic number

I have an array list of objects and I am using this example to get this arrayList from one activity to another activity: http://androidideasblog.blogspot.in/2010/02/passing-list-of-objects-between.html Here is a part of my code: Activity 1: Intent…
Milos Cuculovic
  • 19,631
  • 51
  • 159
  • 265
0
votes
1 answer

Syntax for creating a Object implementing Parcelable from getParcelableExtra(intent_name)

I am implementing the DataDroid model of RESTful communication and I have come across a compiler error while implementing my SearchCriteria. The problem is that in order to pass the SearchCriteria around as an intent extra, I had to make it…
tacos_tacos_tacos
  • 10,277
  • 11
  • 73
  • 126
0
votes
1 answer

Service in Android : Parcelable ArrayList between service and activity via Notification

I send from a Service a notification which contents Parcelable ArrayList. //my service code Intent intent = new Intent(mContext, AutoSearchActivity.class); //In this list, there is 3…
johann
  • 1,115
  • 8
  • 34
  • 60
0
votes
3 answers

Should I save my objects as parcels or store their variables individually?

I wish to store several instances of a simple class as part of saving my apps state when the activity is not in focus. public class Player { int score1; int score2; int total; } I've been told parceling is the way to go. What advantages…
Declan McKenna
  • 4,321
  • 6
  • 54
  • 72
0
votes
3 answers

how to get my arraylist string value?

Hi I created fully xml based android app, so I used sax parser. Now I have one doubt, my doubt is how to parse arraylist value one activity to another activity. 1st I explain my project, my first screen display 2spinner and one gird view. The two…
balaji
  • 1,555
  • 5
  • 26
  • 49
0
votes
1 answer

Android socket reusage

Is there a way other then, open/close sockets, when u use sockets on multiple activity's within the app? Can I somehow send a instance of a object to the new activity(the class uses activity object from parent), and change them? use a service? What…
0
votes
1 answer

Android, store complex objects without database?

I pass information around in my app with ArrayList and Hashmap a lot, but for persistent storage of complex objects, can I use some kind of "Parcelable" or something to store generic object types - that I can restore and stuff - without creating a…
CQM
  • 42,592
  • 75
  • 224
  • 366