Office Hours — Today, December 16

Yesterday, December 15

Dec 16
7:20 PM
Mark M.
has entered the room
Mark M.
turned on guest access
7:30 PM
Steve
has entered the room
Mark M.
hello, Steve!
how can I help you today?
Steve
Hi, Mark. I've returned with some followup questions from yesterday.
Mark M.
go right ahead
7:35 PM
Steve
I tried to take the advice you gave me yesterday, and have some pseudo-code I can show you regarding an implementation of the fragment.
I'll try pasting it:
View paste (21 more lines)
class ContactListFragment extends ListFragment {
    private List<Contact> mContacts;
    private BroadcastReceiver mReceiver;
    
    @Override
    public void onCreate(...) {
        super.onCreate(...);
        setRetainInstance(true);
    }
    
    @Override
    public void onViewCreated(...) {
        super.onViewCreated(...);
        if (mContacts == null) {
            Intent i = new Intent(getActivity(), HttpService.class);
...
I haven't tried running code based on this design, but I'm wondering if you can see if there are any obvious problems.
Mark M.
hmmm... not sure about the unregisterReceiver() part
Steve
Ok.
Mark M.
that'll make this just a one-shot receiver; after the first message, it's unregistered
is that really what you want?
Steve
Yes, that's fine. I just need to get the list of contacts and I'm done.
Mark M.
OK
otherwise, this seems like it could work
Steve
Great. Thank you so much! I'll move forward on implementing it.
I don't have any more questions now, though I'm sure I'll have lots later.
Mark M.
OK
Steve
I appreciate your feedback. Take care.
Steve
has left the room
7:45 PM
Gaurav B.
has entered the room
Mark M.
hello, Guarav!
how can I help you today?
Gaurav B.
Hi Mark
Good evening
I wanted to ask that is it possible for me to support JPEG 2000 format in Android without using NDK
Mark M.
not natively
it's possible that somebody already has a library for that
Gaurav B.
I have a requirement for my app that i should be able to show images in JPEG2000 format also..
i tried JJ2000
jars..
7:50 PM
Gaurav B.
but not being able to crach it properly
have not been successful
Mark M.
?
Gaurav B.
yes
i tried using that
Mark M.
yes, that's pretty old
Gaurav B.
yes i tried that also
Mark M.
but on the whole, I think you'll be needing the NDK and something like OpenJPEG's reference implementation
Gaurav B.
you have an entire chapter about how to create static libraries
Mark M.
static libraries?
Gaurav B.
i have not worked in NDK before..actually.
Mark M.
I infrequently use it
Gaurav B.
especially with Android studio
Mark M.
historically, I have maintained my NDK code outside of the IDE
I have not yet played around with the Android Studio integration
7:55 PM
Mark M.
though that's something that I need to get around to trying sometime
Gaurav B.
I had gone through a couple of threads in stack overflow
which told me that I will require to create Android.mk and application.mk file and after which I can at least try.. incorporating the open jpeg implementation
in my current application
Mark M.
that is how I did the original work on CWAC-AndDown
Gaurav B.
Ok
thanks Mark
just one more question
will the .jp2 files will take up more memory.. as compared to jpeg files
Mark M.
I have never used JPEG2000
so I have no real idea
I just have heard of it by name
Gaurav B.
Mark M.
and it's one of those formats where if I got an image in that format, I'd be converting it to something else using ImageMagick or something
Gaurav B.
this is the thread.. which has given me a reference
Mark M.
that certainly looks promising
8:00 PM
Gaurav B.
Thanks Mark
I will take your leave.. Will let you know.. if I need anything else
Mark M.
OK
Gaurav B.
has left the room
8:25 PM
Mark M.
turned off guest access

Yesterday, December 15

 

Office Hours

People in this transcript

  • Gaurav Bhatnagar
  • Mark Murphy
  • Steve