Working with JPEG images

by nickthecook » Tue, 06 Jan 2009 01:20:15 GMT


Sponsored Links
 Hello all,

I'm looking for a way to work with JPEG images read from a file in
Android. Specifically, I would like to scale them, and be able to get
their height and width.

I can get an InputStream to a JPEG file on the SD card, and I can work
with the raw bytes, but I'd like something a little more high-level.

Bitmap seems to be able to encode JPEGs, but not decode them.

Thanks!

--~--~---------~--~----~------------~-------~--~----~



Working with JPEG images

by Mike Reed » Tue, 06 Jan 2009 01:36:06 GMT


 BitmapFactory.decodeStream(...)




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Alarm Manager doesn't seem to wake up after a force stop.

Hi

I have read posts, some dating back to 2009 about alarm manager.

I have an alarm manager setup. It works fine. But "Settings-
seem to remove the alarm too.

Some posts seems to say that after the app is killed alarm manger
should work fine. Not for me. Am I missin somethin? or its an expected
behavior?

My Code is:

Intent intentAlarm      = new Intent(MyService.this,
MyBroadcastReceiver.class);
intentAlarm.setAction(TEST_ALARM_SERVICE); //I receive this event in
the receiver

PendingIntent sender = PendingIntent.getBroadcast(MyService.this, 0,
intentAlarm, 0);
AlarmManager am     = (AlarmManager)getSystemService(ALARM_SERVICE);

am.setRepeating(AlarmManager.ELAPSED_REALTIME, myFirstTime,
myAlramInterval, sender);

Thank you
Jacob

-- 

2. how to set margin or padding between buttons

I have a row of Buttons that are added dynamically to a TableRow in
code.  We are inserting space by creating Views to put between
Buttons.  Is there a lighter weight way to accomplish that? Button
doesn't support margin and padding goes inside the button.

-- 

3. Share pictures

4. Android Apps, move apps into phone's memory, or switch them into external memory.

5. Mod: Member Milis ID-Android Tembus Angka 7000

6. Application is not installed on your phone