Have you ever has a experience with JSP

by bhathiya » Tue, 03 Nov 2009 06:26:51 GMT

Sponsored Links
 What do you think about jsp


Other Threads

1. ARCHOS 5: MediaPlayer create method returns null

Hi, my app is working perfectly and playing its music in the 1.5 and
1.6 emulators, my ADP1, and for everyone in the Android Market (at
least there were no complaints).

The problem is that when the app is run on the ARCHOS 5 tabled, the
MediaPlayer.create(Context context, int resid) method returns null.

I guess there might be a problem with the ARCHOS' Android
implementation, but did anyone experience the same problem? What might
be a possible reason for the create method to return false? The docs
don't say anything.

I'm also using SoundPool in parallel with MediaPlayer if that's


2. Programmatically get maximum heap size?

Here's my situation: I have an app which does a bunch of image
manipulations, and those images are ideally full-screen sized. It
works on a G1 (or HVGA emulator), but runs out of memory on a WVGA
emulator instance, because full-screen images use twice as many
pixels. Fine, I can work around it by manipulating smaller images,
then scaling up to WVGA at the end. There's some loss of image
quality, but this is unavoidable on a WVGA device with a 16MB heap
limit, so I'll live with that.

When a real WVGA device hits the streets in the next couple of months,
though, it's likely to have more than 16MB heap per app, for just this
kind of reason. So for best image quality, I'd like my app to adapt to
this situation, and use full-screen-sized images on such a device.
IOW, I'd like to implement a heuristic which sets the image size based
on heap size.

In order to do so, however, the app needs to know what the maximum
heap size is, and I haven't yet found an SDK call which will return
this information. The various Debug.get* memory calls all seem to be
to do with how much heap you have *allocated*, not how much you
theoretically *can* allocate. I understand that this isn't necessarily
a hard number, that issues like fragmentation and GC mean that you may
not actually be able to allocate every last byte, but a theoretical
number would still be useful.

Can anyone point me to an SDK call I've missed?



3. broken link in icons template download

4. No Android option in device driver of menuconfig for android-msm-2.6.27, donut?

5. NPE while trying to start AppWidgetManager.ACTION_APPWIDGET_PICK intent

6. Key Character Map File

7. paid apps