Detect rotation of device

by XXL » Tue, 10 Feb 2009 06:40:35 GMT


Sponsored Links
 hi all
is it possible to detect if the device has been rotated?

if it is in horizontal or vertical position? like the WII controller

Thx guys

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



Detect rotation of device

by XXL » Wed, 11 Feb 2009 01:52:24 GMT


 one more..

if it is possible...
can the rotation be simulated in the programming IDE?
--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Detect rotation of device

by Mark Murphy » Wed, 11 Feb 2009 08:49:47 GMT


 


<Ctrl>-<F12>

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com 
Android Training in Sweden --  http://www.sotrium.com/training.php 

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



Detect rotation of device

by srajpal » Thu, 12 Feb 2009 00:44:10 GMT


 here is a great set of tutorials that teach you about rotation on the
android system
shows you how to override and detect

 http://androidguys.com/?tag=android-rotation 





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



Other Threads

1. Animation with only one view

Hello,

I have a view that browses data with a large amount of numbers. When
going to the previous or next record if you're not really paying
attention it's possible to not detect that it actually moved because
many times the numbers are very similar. I have added a page counter
to the view (1/20, 2/20, ...) but even that is not the best solution,
I don't think.

I would like to do a slide out/in or some other type of animation when
chaning records as to provide a positive move but my problem is that
it is only one view. I am not changing views, just changing the data
with in the existing view. I have managed to make some terrible
transition animations but nothing is working as I would like. For
example, I slide the current view out then in the animation listener
when completed, I update the view and slide it in. It's not a nice
smooth transition and the screen is blank for a short period of time
between the two animations as one slides out, then blank, then one
slides in.

Can anyone point me in the right direction to make this type of
animation work correctly?

Thanks,

Jeremy

-- 

2. Several Overlays on Mapview

Hi guys,

I am pretty new to Android and have a problem. I am working on a
navigation app and found a source I am working with for getting a
route by start and end location (here: 
http://code.google.com/p/j2memaprouteprovider/w/list).

Now I am trying to add several overlays like circles or even several
routes, but I doesn't work. Only the route provided is shown alone on
the mapvier. Here's the part of my activity code.
________________________________________________________________________________________

List<Overlay> mapOverlaysMarkerStart =
APTester1StartMAP.getOverlays();
                        Drawable drawable =
this.getResources().getDrawable(R.drawable.pushpin);
                        HelloItemizedOverlay itemizedoverlay = new
HelloItemizedOverlay(drawable,this);

GeoPoint point = new GeoPoint(start_lat_int,start_lon_int);
OverlayItem overlayitemStart = new OverlayItem(point, "abc", "123");

GeoPoint point2 = new GeoPoint(dest_lat_int, dest_lon_int);
OverlayItem overlayitemDest = new OverlayItem(point2, "cde", "456");



                        itemizedoverlay.addOverlay(overlayitemStart);
                        itemizedoverlay.addOverlay(overlayitemDest);

                        mapOverlaysMarkerStart.add(itemizedoverlay);



                                        String url2 = RoadProvider
                                                .getUrl(48.365647, 10.889969, 
48.003063, 11.355514);
                                                //.getUrl(start_lat, start_lon, 
dest_lat, dest_lon);
                                        InputStream is2 = getConnection(url2);
                                        mRoad = RoadProvider.getRoute(is2);
                                        mHandler.sendEmptyMessage(0);



______________________________________________________________________________________



There's always only one route shown, and not all together and I don't
know why. Unfortunatelly I am not familiar with canvas and overlays.

It woud be great if someone could take a look at the
j2memaprouteprovider code and help me out!!!

So long

ChrO

-- 

3. Is singleTask honored by "The Monkey"?

4. Display Independent Pixel issues

5. Install Adobe AIR Runtime on emulator?

6. About Android Application

7. Edittext fill up space inside scrollpane and releative layout