why is using a static data member not a real solution? i have the same requirement and i use globally accessible singletons (containing static references) to share stuff between my activities. works like a charm. feels real.
i don't know whether this adds realness, but WebKit shares its cookie managers etc via the same mechanism. please let us know if you find a better solution? >Does anyone have a real answer? > >I need to do this. If you don't know how to do it please don't feel >obliged to reply to tell me it's not an androidie thing to do. > >On Nov 3, 3:32 pm, Mark Murphy <mmur...@commonsware.com> wrote: >> tomei.ninge...@gmail.com wrote: >> > From one activity, I want to pass a lot of data (about 1MB of >> > Strings). >> >> No, you don't. You want 1MB of data to be available to multiple >> activities. There is a very big difference; you do NOT want to be >> copying 1MB of Strings. >> >> > I tried sticking it in Intent.putExtra(ArrayList<String>), but if I >> > put in too much data, I get "FAILED BINDER TRANSACTION". >> >> And, among other things, this would be copying 1MB of Strings once or twice. >> >> > What's the easiest way? I don't want to publish a service, or use the >> > file system. I really want a pipe that can write data from one end and >> > read it from the other end. >> >> > I can handle the case where the starter Activity dies while the >> > "startee" activity is trying to read from the pipe. >> >> Use a static data member. >> >> -- >> Mark Murphy (a Commons >>Guy)http://commonsware.com|http://twitter.com/commonsguy >> >> Android Training in Germany, 18-22 January 2010:http://bignerdranch.com > >-- >You received this message because you are subscribed to the Google >Groups "Android Developers" group. >To post to this group, send email to android-developers@googlegroups.com >To unsubscribe from this group, send email to >android-developers+unsubscr...@googlegroups.com >For more options, visit this group at >http://groups.google.com/group/android-developers?hl=en -- jason.vp.engineering.particle -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en