Emulator 1.5 displaying blurry images. Emulator FWQVGA displaying misplaced layout

by Gabriel SimēŽ«es » Mon, 10 May 2010 05:37:59 GMT

Sponsored Links

Id like to know if you guys face the same problems I do.
Unfortunately Im not able to try my layouts in real devices right
now, so I have to trust the Android Emulator.

The problem is: using some specific configurations things are
displayed just the way I need them to, in others they dont; and in
the end I dont know if this is the real expected behavior of if it is
just the emulator.

1: All my pngs are bluried on my avd using android sdk 1.5. Well, they
display just great for the others. This affects not only images loaded
onto a imageview but also my icon (png 48x48).
2: I have an AVD to simulate a FWQVGA, which is a SDK 2.1 avd using
WQVGA432 skin. Here I face two problems:
- The avd works only for the first time I launch it. Things are
displayed correctly until I close it and reopen. Without installing my
app again (which means starting the same app I instaled in the session
before) widgets are displayed as the skin was a WQVGA400.
- If I set android:largeScreens="false" so android uses compatibility
mode for large display devices, FWQVGA display widgets wrong, as a
WQVGA400 avd. By what I know and understand a FWQVGA device is a
normal display device, so android:largeScreens="false" should not
affect it.

Have anyone ever faced this problems?

Gabriel Simes


Other Threads

1. NotifyMessage cannot be resolved to a type


I copy this sample code from book, because it show "NotifyMessage cannot be resolved to a type" message,
can anybody help me, how can I find a NotifyMessage.class? thank you.



import java.util.Timer;
import java.util.TimerTask;

import android.app.Activity;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class Notify1Activity extends Activity {

private static final int NOTIFY_ME_ID = 1337;
private Timer timer = new Timer();
private int count = 0;

/** Called when the activity is first created. */
public void onCreate(Bundle savedInstanceState) {

Button btn = (Button) findViewById(R.id.notify);

btn.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
TimerTask task = new TimerTask() {
public void run() {
timer.schedule(task, 5000);

btn = (Button) findViewById(R.id.cancel);

btn.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
NotificationManager mgr = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);

private void notifyMe() {
final NotificationManager mgr = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
Notification note = new Notification(R.drawable.red_ball,
"Status message!", System.currentTimeMillis());

PendingIntent i = PendingIntent.getActivity(this, 0, new Intent(this,
NotifyMessage.class), 0);
note.setLatestEventInfo(this, "Notification Title",
"This is the notification message", i);
note.number = ++count;
mgr.notify(NOTIFY_ME_ID, note);



2. MediaRecorder API: preview is not happening and audio sounds muffled


I am not able to see video preview. Here is is how I set up the
MediaCorder, before I fire it up:


                mrec.setVideoSize(320, 240); // QCIF


Am I missing something?

Thanks in advance.



3. Site idea: istheadcsubmissionsiteopenyet.com

4. How to support multiple language key character mapping

5. Determining Who Passed an Intent to You

6. How to place an ImageView to a specific location on the screen ?

7. Video with MediaRecorder