Android :: Using SetCurrentTab On A TabHost In Landscape Mode Doesn't Work - In Emulator
Aug 13, 2009
Since I only have access to the emulators, I don't know if the problem can be reproduced on real phones. I'm using setCurrentTab on a TabHost to dynamically select a tab. When I am in portrait mode, it works, but as soon as I change to landscape (ctrl + f12), it doesn't work anymore. It doesn't send an exception, it just doesn't do anything. If I switch back to portrait (ctrl + f12), it doesn't work either. That means it just works when I first am in portrait mode. As soon as I change, it stops working. In order to make it work again, I need to close the application and reopen it.
The TabHost is from the current activity, which is a TabActivity.
Can you check if this happens to you too (emulator)?
View 2 Replies
Apr 11, 2010
This is probably a pretty easy to answer question, but I can't find the solution myself after a couple hours of searching the documentation and Google.I set the orientation of my Android app to landscape in the AndroidManifest.xml file: android:screenOrientation="landscape"
However, when I run the app in the simulator, it appears sideways and in portrait mode. How can I switch the emulator to landscape mode on a mac? It's running the 1.6 SDK.
View 3 Replies
View Related
Apr 30, 2010
In android emulator, I am in landscape mode and double click the text edit panel. the softkeyboard does not show up. However, it works in portrait mode.
I have check some of posts on line. They said because of hardkeyboard is available in landscape mode. If that so, how can i disable the hardkeyboard. Or is there any setting reason for this problem?
View 1 Replies
View Related
Dec 20, 2009
As we all know the droid's d-pad is located under the screen on the slider. I just wonder has anyone ever come to a situation where an app or a game needs a d-pad, but doesn't support the landscape mode, so you have no choice but to use the phone in portrait with the slider open.
and in that case would the "up" button(in landscape mode) become the "right" button, or does it still recognize it as an UP button? Is it comfortable to hold the phone that way?
I could imagine some games that are designed for the Hero/magic would require you to use the d-pad/trackball.
View 1 Replies
View Related
May 21, 2010
Ok so I'm not familiar with Android (Palm OS -> WinMo 5 -> WinMo 6 -> WinMo 6.1 -> WinMo 6.5 -> WebOS) ... One thing that I didn't like about the Pre is that Sprint Navigation is in portrait mode, so it doesn't work well for mounting in a car.Does the Android Sprint Nav work in landscape mode? This would be beautiful to have on the Evo and mounted in the car (and I heard there will be a car mount accessory for it) in landscape mode instead of my GPS I already use.. along with bluetooth to my car stereo.
View 36 Replies
View Related
Apr 22, 2010
Why is it that certain apps or websites don't work in landscape mode and your forced to type whatever with one finger in the portrait mode? Point in case the Google quick search will not switch to landscape mode when you turn the phone sideways.
View 1 Replies
View Related
May 26, 2009
After spending the better half of this day getting my HTC Magic to work in developer mode, I've now found that some of my frist openGL coding attempts that appeared to work fine in the emulator doesn't work as expected on the device. I've narrowed this down to glColorf(r, g, b, a) not working as expected on the device itself. The provided OpenGL samples do work though. So for example, after modifying Cube.java from the samples to the below code I find that I get the expected grey square on the emulator but a blank white screen (background fill colour) on the device.
class Cube { public Cube() { int one = 0x10000; int vertices[] = { -one, -one, -one, one, one, -one, one, one, };
// Buffers to be passed to gl*Pointer() functions // must be direct, i.e., they must be placed on the // native heap where the garbage collector cannot // move them. // // Buffers with multi-byte datatypes (e.g., short, int, float) // must have their byte order set to native order
ByteBuffer vbb = ByteBuffer.allocateDirect(vertices.length*4); vbb.order(ByteOrder.nativeOrder()); mVertexBuffer = vbb.asIntBuffer(); mVertexBuffer.put(vertices); mVertexBuffer.position(0); }
public void draw(GL10 gl) { gl.glFrontFace(GL10.GL_CW); gl.glVertexPointer(2, gl.GL_FIXED, 0, mVertexBuffer); gl.glColor4f(0.5f, 0.5f, 0.5f, 0.5f); gl.glDrawArrays(GL10.GL_TRIANGLE_STRIP, 0, 4); }
private IntBuffer mVertexBuffer;
View 5 Replies
View Related
Aug 30, 2010
I'm still an Android & Java noob, but everything I've seen is telling me this should totally work, but it doesn't! not in the emulator, not on the phone.. I'm trying to use the vibrator using vibrate(500); ..I get an " application stopped unexpectedly " error
Code below:
CODE:......................
View 1 Replies
View Related
Jun 23, 2010
I have problems simulating call or sms since telnet or ddms perspective on eclipse. I'm connected to the device and some commands works (window scale,...)If i try to simulate a gsm call then everything seems ok but i haven't anything on my emulator (nor incoming call nor notification) then if i launch an "gsm list" command my inbound call is listed and i can cancel it the same thing occurs with sms send everything seems ok (return OK) but there is no notification on the emulator nor sms in inbox :-(
I'm using the sdk r06 on a windows xp machine. I try with fresh avd on different platform :-(
Important : it has worked so i know it can work, but i would like to know why it doesn't work now ! Using ddms i don't see any trace on the log view.
View 1 Replies
View Related
Jul 16, 2010
I am programming an android application and my "testing" device is a Motorola Milestone (Droid). I have done a grid that scroll like the iPhone home menu ( with "points").
I got two problems:
The first one : the drag only works on the Android Device Emulator and don't on the Droid! (Maybe the multi-touch screen is a problem?) The drag is too responsible, and flip views sometimes one by one (this is ok) and sometimes 2 by 2 or 3 by 3! That is clearly problematic!
Here is the code of my OnTouch method: Code...
Update : It doesn't work anymore on the Google Nexus One!
View 2 Replies
View Related
Oct 18, 2010
Probably a very simple fix here, but I can't figure it out. I deleted a few roms off of my sd card to make room for the new warm 2.2 release and went to flash it. For some reason, when I'm in the boot screen, I select recovery, but it doesn't boot into the actual recovery mode anymore, it goes to another white screen which I think is the fastboot screen.
View 6 Replies
View Related
Nov 15, 2013
i have a samsung galaxy S1 with cyanogenmod, and i don't know what happened but when i turn on the phone it just stay on the loading screen, something like this : just a black screen with that little loading icon in it (without animation) i tried running both recovery and downloading mode (V+/v-,menu,Power) but nothing works too, and there is another strange behavior, sometimes, it show me the "Downloading.... do not turn off target !!! " message, when it is in that screen, the pc does recognies the samsung driver but i have no access to it, and Odin doesn't find the device
View 10 Replies
View Related
Jan 8, 2010
I dropped my phone (htc eris) in snow but it didn't submerge and I checked the water damage indicator and it still has the little red x's on the white strip so there was no water damage. But now the phone is randomly stuck in headphone mode. I have searched the forum and the only fix people have mentioned is rebooting and taking out the battery... That doesn't work for me.
View 2 Replies
View Related
May 2, 2010
I have so far found two bugs in Galaxo 1.6.3:
a) Speaker doesn't work in call (very weak). works well in ringtones etc.
b) Scrolling contacts by letter doesn't work.
Other than that this is a leap forward, especially with the overclock options!
Both bugs, as well as others, fixed in 1.6.3.1 update!
View 49 Replies
View Related
Mar 26, 2012
there are those of us, who due to whatever reason (helmet cams, preference for posture, etc) want to record videos in portrait mode.
What happens (on my sgs2) is that the video records just fine in whatever resolution I pick... but it records it 90 degrees rotated to the right.
The solution that is usually offered is that "you can rotate it after!" yes... but then you have to CROP part of the image and lower the resolution. 1920 x 1080 recordings end up having to be cropped so that half of the view is cut out , or even more if you are maintaining a real aspect ratio.
The questions about "why not just hold it sideways", are just as pointless as the statement by steve jobs telling iphone4 users that they were holding their phones wrong.
is this something that can be remedied ? or has google decided that people should only record videos when their phones are in landscape mode?
i understand that we cant see landscape resolution in portrait mode; but can't we just have a viewport into the camera, but record in properly oriented landscape mode? so that playback on a computer will show the full resolution, even though we will only see part of it on the phone..
View 1 Replies
View Related
Dec 1, 2013
dialer in kitkat is always in landscape mode when call is ongoing....how can we set it in portrait mode
View 1 Replies
View Related
Aug 6, 2010
I created a sqlite database to store playlists for a media player I am developing because of extended feature (rather than using the Content Provider). It works perfectly on the 1.6 emulator but FCs on anything higher than 2.0... what has changed that I need to know about as far as opening databases in SDK 2.0+? Here is the logcat.
CODE:.............
Here is the dbhelper class
CODE:................
why can't stackoverflow just use tags like a normal syntax highlighter.
View 2 Replies
View Related
Nov 24, 2010
I am New To android, my problem is when iam capturing image programetically the camera is opening in landscape mode..Than How to Avoid it?
View 1 Replies
View Related
Feb 10, 2009
I have a small application. It has some user inputs (like name, phone number, country, connection type etc, I used editText for the user to enter). Its working fine on the emulator. When I installed the same app on real device, firstly it shows the whole input screen. But when I tried to give input, (changing into landscape mode) half of the screen is not visibiling. I want to show the whole screen, I dont know how to do?
View 7 Replies
View Related
Mar 31, 2009
When we try to implement orientation in AP layer, we can set "android:screenOrientation" parameter in AndroidManifest.xml file or call "setRequestOrientation()" method of Activity class. But if I want to porting android in new HW device, how can I do? Do I need to modify the graphic driver, or just add configuration in program. (Actually I do some experiments but my AP cannot rotate) Besides, can every experts tell me when I set the "android:screenOrientation" parameter, which process will read this configuration, pass to where and which process will do the rotation?
View 2 Replies
View Related
Mar 24, 2009
There are some question bother me.
How to fix landscape mode when boot on device?
I had change manifest.xml ->
CODE:...........
But that only change sensorDemo screen. That doesn't I want. I want to set landscape mode when boot on device and show main screen. what methods does I try it?
View 3 Replies
View Related
Jan 15, 2010
I wanted a way to find out whether a softkeyboard is visible at any given time.
If I set the windowSoftInputMode property to adjustResize, I receive resize events in the portrait mode (onSizeChanged gets called). I use these events to find out whether the softkeyboard is visible or not. But I get no resize events in the landscape mode (Android SDK 2.0). Do I need to set some property explicitly to get these events in the landscape mode.
Also when the application switches between landscape and portrait, the application gets resize events. So to find out whether the keyboard is actually visible, I would need to differentiate between the 2 resize events.
So in short, is there a cleaner way (other than resize events) to find out whether the soft keyboard is visible? And if resize is the only way, how can I turn it on for landscape mode?
View 2 Replies
View Related
Jun 17, 2009
My application crashes when I switch the Android Emulator to landscape mode. But when I start the application, everything works fine, until I switch to portrait mode again.
The error only occurs when I switch from one mode to another. When I debug my app while switching to the other mode everything works fine until my program counter jumps out of the onCreate() function.
this is an error message i picked out: java.lang.RuntimeException: Unable to start activity ComponentInfo {com.prog.drink/com.prog.drink.App}: java.lang.IllegalArgumentException: Wrong state class -- expecting View State
Any idea what I could have done wrong in my app?
View 5 Replies
View Related
Dec 22, 2009
I am working currently on an application which is in landscape mode by default. I want the virtual kepad to be poped up whenever I click on the edit box. Please, help me for the same.
View 3 Replies
View Related
Jun 19, 2010
As u know, since android 1.6, there are not dirs on dirs like HVGA-L. Instead, there is only one dir like HVGA. That is, HVGA-P and HVGA-L are merged into one dir, HVGA. So, only HVGA can be selected and by default the emulator is started with portrait mode. Though I can press CTRL+F11/F12 to switch it to landscape mode, I do not like it. What I want is to start the emulator with default mode of landscape. Would anyone know how to do it?
View 3 Replies
View Related
May 5, 2009
I tried a lot of ways with no luck.
View 2 Replies
View Related
Oct 1, 2009
I am facing a problem when i put a text view on screen in landscape mode it position is fine but when i switch to portrait mode it position is remain fix it not change according to screen resolution.
View 2 Replies
View Related
Feb 24, 2009
How can I disable landscape mode for some of the views in my Android app?
View 3 Replies
View Related
May 15, 2010
I have a an application which is having some UI items like Buttons Radio Buttons etc. I want to change through code from landscape to portrait mode. I did by calling the method setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); But my UI items totally disturbed some of the i am unable to see.
View 3 Replies
View Related
Dec 27, 2009
I am using a TableLayout in my application. It contains four TableRows each containing four ImageViews. The behavior I want is to scale the layout to fit the shortest dimension. It works fine in portrait mode but fails miserably in landscape mode.
From the documentation it looks like this is because the TableRow layout_height is always set to WRAP_CONTENT. While I can set the dimensions of the individual Views, the TableLayout won't render at all if I set the View layout_height to FILL_PARENT.
I feel like there is something simple I am missing. Is there a way to get the TableLayout with TableRows to scale to fit the height in landscape mode?
XML Layout:
CODE:...................
Java:
CODE:......................
View 2 Replies
View Related