Jul 12 | 7:25 PM |
Mark M. | has entered the room |
Mark M. | turned on guest access |
Bruce F. | has entered the room |
Mark M. |
howdy, Bruce!
|
Mark M. |
how can I help you today?
|
Bruce F. |
Hi mark
|
Jul 12 | 7:30 PM |
Bruce F. |
I'm attempting to save and restore a jpeg to sd card...
|
Bruce F. |
The save part seems to work, if I understand linux
files, but not so good on retrieving and putting it in a view. My path
is String path = Environment.getExternalStorageDirectory().toString();
|
Bruce F. |
View paste
|
Mark M. |
Use new File(Environment.getExternalStorageDirectory(), "Wallpaper.bmp")
|
Mark M. |
use that for imgFile
|
Mark M. |
you are assuming that Environment.getExternalStorageDirectory() ends in a slash in your current code
|
Mark M. |
which is probably incorrect
|
Mark M. |
BTW, if this is a JPEG, why the .bmp extension?
|
Bruce F. |
I think I tried it as an alternate solution.
|
Mark M. |
what are your symptoms?
|
Bruce F. |
The view never shows the jpeg.
|
Jul 12 | 7:35 PM |
Mark M. |
have you used breakpoints or logging to see if you make it past if (imgFile.exists()) ?
|
Bruce F. |
no
|
Mark M. |
start there
|
Mark M. |
my theory #1 is that it is the string concatention
|
Mark M. |
my theory #2 is that it is the .bmp file
extension, confusing BitmapFactory into thinking the file is a BMP file,
not a JPEG file
|
Bruce F. |
thank you
|
Jul 12 | 7:45 PM |
Mark M. |
if you have any other questions, feel free to chime in
|
Mark M. |
it's not like the chat room overfloweth this evening... :-)
|
Bruce F. |
I noticed...
|
Bruce F. |
imeoptions actiondone in a fragment xml file is not doing what I expect
|
Bruce F. |
the keyboard stays on screen, and remains when switching to other tabbed fragments
|
Mark M. |
I always manually dismiss the IME on an action
|
Mark M. | |
Mark M. |
in that project, I use the IME action for an EditText in the action bar
|
Mark M. |
I dismiss the IME when the action is invoked (pressing the action button or pressing Enter)
|
Jul 12 | 7:50 PM |
Bruce F. |
Thanks. One more...
|
Bruce F. |
I have an IME that automatically opens in ICS, but
stays closed until the edit text is pressed in Gingerbread. And the ICS
implementation was fine until I place a date picker under it in the
layout
|
Mark M. |
um, OK
|
Mark M. |
what specifically is the problem?
|
Jul 12 | 7:55 PM |
Bruce F. |
The IME automatically opens up in the ICS implementation. I don't want that.
|
Mark M. |
you will have to give something else the focus, then
|
Bruce F. |
Didn't think of that.
|
Bruce F. |
One more then. I themed the Sherlock Action bar with Gilfelt's generator, but the style disappears in landscape.
|
Mark M. |
that's certainly strange
|
Mark M. |
ABS doesn't have landscape-specific styles, as far as I see in GitHu
|
Mark M. |
er, GitHub
|
Mark M. |
I don't know off the top of my head what might cause that behavior
|
Mark M. |
Jake runs a Google Group for ABS -- you might inquire there
|
Jul 12 | 8:00 PM |
Bruce F. |
The official I/O 2012 does the exact same thing.
|
Mark M. |
well, IIRC, they're using ABS
|
Bruce F. |
Okay, I'll ask on the Google group.
|
Mark M. |
yeah, I don't see an issue on GitHub for this
|
Bruce F. |
Thank you for your (exclusive) tutoring today.
|
Mark M. |
sure, no problem
|
Bruce F. |
Bye
|
Bruce F. | has left the room |
Jul 12 | 8:30 PM |
Mark M. | turned off guest access |