Eclipse Landscape Emulator

by droozen » Thu, 12 Mar 2009 08:27:39 GMT


Sponsored Links
 Is there a way to launch my app from eclipse in landscape mode on the
emulator? Or am I doomed to having it launch in portrait, so eclipse
will build and deploy my app, then launching a landscape emulator from
the command line?
--~--~---------~--~----~------------~-------~--~----~



Eclipse Landscape Emulator

by Mark Murphy » Thu, 12 Mar 2009 08:30:06 GMT


 


Can't you just use <Ctrl>-<F12> to toggle between portrait and landscape?

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com 
_The Busy Coder's Guide to Android Development_ Version 2.0 Published!

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


Sponsored Links


Eclipse Landscape Emulator

by Kevin Phillips » Thu, 12 Mar 2009 08:59:00 GMT


 Hi droozen,

In Eclipse do the following.

Select your project
Go to Run > Run Configuration > Then select the "Target" tab.
under "Emulator Launch Parameters" select the "Screen Size" and set
the drop down to "HVGA-P".

I just tested this and it worked for me, my app started in Landscape
mode.

Good luck.

Kevin



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



Eclipse Landscape Emulator

by Dat Nguyen » Fri, 13 Mar 2009 01:47:16 GMT


 Try Ctrl + F11. May be this is what you need.

Dat Nguyen.






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



Other Threads

1. add new sensor?

I know the Android SDK provieds many Sensor class to use
to get data or do something.

I already verified my driver of sensor to get data
successfully under linux kernel-2.6.29

I use I2C protocol to communication with my device,
so I put sensor code under drivers/i2c/chips

NOW I want to add my sensor into Android and I hope
to link Android Sensor class with my device to reduce
develop my application.


How to do for this goal?
Could I need to modify application framework or Libraries
or another driver type for new device?
I big your help

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

2. Problem with pending intent with notification

Hello Friends, I am developing some application, in that I have
implemented notification for message receiving. but when I click on
notification it doesn't show desired intent. the code for that is as
under.

public void notifyUser(String str, Context context, long receivedSms)
{
String convertedStr = "abc";
NotificationManager noteManager = (NotificationManager) context
.getSystemService(Context.NOTIFICATION_SERVICE);
Notification note = new Notification(R.drawable.icon,
"Message Received", System.currentTimeMillis());
note.defaults = Notification.DEFAULT_LIGHTS;
Intent showSms = new Intent();
showSms.setAction("android.intent.action.MAIN"
showSms.addCategory("SMSRECEIVER"
PendingIntent contentIntent = PendingIntent.getActivity(context, 0,
showSms, 0);
if (receivedSms == 1) {
note.setLatestEventInfo(context, "SMS in Lango", convertedStr,
contentIntent);
} else if (receivedSms > 1) {
note.setLatestEventInfo(context, "SMS in Lango", Long
.toString(receivedSms + 1)
+ " Messages unread", contentIntent);
}
notificationVar = true;
noteManager.notify(R.layout.buddy_list, note);
}

Is there any problem in code???
The manifest file code for particular class as under.

<receiver android:name=".SmsReceiver">
<intent-filter>
<action android:name="android.provider.Telephony.SMS_RECEIVED"
class=".BuddyListActivity"/> />
</intent-filter>
</receiver>

Log Message:
07-15 23:23:28.636: INFO/ActivityManager(564): Starting activity:
Intent { action=android.intent.action.MAIN categories={SMSRECEIVER}
comp={com.lango.sms/com.lango.sms.SmsReceiver} }
07-15 23:23:28.986: WARN/InputManagerService(564): Window already
focused, ignoring focus gain of:
com.android.internal.view.iinputmethodclient$stub$pr...@4367da28

Thanks.

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

3. Sensor Driver

4. Calendar Sync Issue.

5. Keyboard Backlight (G1) unavailable in Cupcake 1.5

6. Content Provider Permission

7. Dose Android sdk 1.5 allow to create our own screen when a call is in or out