Android : Rotating Quad Around Its Center
Jun 18, 2010
I'm a newbie in OpenGL. :D I'm trying to rotate a quad around its center.This is my scenario: I've a quad, drawn with TRIANGLE_STRIP, at specified coordinates.Now I want to rotate of 45 degrees around its center, without move it from its position, not around the origin of the aces. I hope you are able to understand my english.How can I do that?
View 10 Replies
Sep 27, 2010
I am getting strange results with the following code:
CODE:......................
Whats the right way to specify the axis point (center of the drawable)?
View 2 Replies
View Related
Jul 29, 2010
I have a layout question.
Say I have a RelativeLayout appearing at the bottom of my screen. In this, I want to add 2 textviews, in the center, one in the top center and one in the bottom center.
|--------------------------|
| Text1 |
| Text2 |
|--------------------------|
Something like that.
View 2 Replies
View Related
Sep 21, 2010
I can't send sms's from my x10 and i ask support and they told me to put the servise center manully in wireless control<mobile network> service center number. but i couldn't find that in my phone!!!
View 11 Replies
View Related
Jun 29, 2010
I'm having great difficulty getting basic textures to work in an OpenGL ES app on my Droid (2.1-update1). I trying to render a simple textured quad - four vertices, two faces, with normals and texture coords. When rendered, the texture is garbled and full of static, similar to TV noise. Here's a pic showing the original texture map image, and then a screencap from my droid of the rendered textured quad. The basic colors are there, but obviously the texture isn't being read or applied correctly.
View 1 Replies
View Related
Nov 8, 2010
I just wanted to post my quad score on my D1...
ROM = FLY1.71
Kernel = Slyher 1.1ghz (setcpu @ 1.1)
Theme = none
anybody else care to share?
View 3 Replies
View Related
Sep 11, 2012
Does android 4.1 jelly bean support quad core to its full potential or are we dealing with the same thing when phones came out with dual cores but android 2.3 gingerbread didnt support it.
View 1 Replies
View Related
Jan 5, 2014
I have a note 3 mediatek device (mtk6582) and when i play games or just using it for more than 30-40 min. It gets really hot, i mean really hott..{90c}....(especially when i'm playing games). And I think it may be beacause of GPU (mali 400) but I cant find a way to undervolt it... I think I must have custom kernel to do that...so any other method to undervolt the gpu.
But I also think that it could be the battery that is not the best quality...and if the battery is not that good can this heat up the cpu. (or generally the motherboard).
View 2 Replies
View Related
Jan 13, 2014
Bought the Ainol AX1 Quadcore Dual Sim from Aliexpress. Everything is fine on it except that it reboots every now and then. It usually happens after charging. The reboot that happens is shorter than the normal manual reboot. I'm thinking that an upgrade may work but I do not know where or how to upgrade this device. I have an Huawei G300 Android phone that informs me automatically if an upgrade is available. For this tablet, an upgrade can only be done by downloading an upgrade file and loading it manually?
View 1 Replies
View Related
Jan 11, 2014
How to root tablets with this processor.
View 1 Replies
View Related
Jan 21, 2013
Got a U9510, D Quad (unlocked and unbranded outright) (didn't see my phone listed so posting in this section)
Worked great, rooted easily. Installed Chainfire 3D, was all fine. Uninstall as decided I dont need it.
Then stupidly decided to try reinstall and try Beta EGL driver after browsing and finding some EGL level support.
Now the screen is blank, no lights, no boot logo, nothing, and I want to cry. (Though I have not been able to pull the battery)
Plug in via USB still shows up as Android device etc.
I dont know how to pull the battery on this phone, it's not easily accessible, I took the screws out of the back plate and tried to lift up the plate but couldn't see how to do it, so just put the screws back in.
Also it's new, so no SD card yet, internal only.
USB Setting is default to storage device, but internal doesn't show up on that setting, it does on MTP.
What steps to recovery?
Most similar issue I've found is this, but only seems like the same symptoms, not same cause: [URL]....
No mention of EGL, and I had no problems with Chainfire until I tried EGL.
Anyway to uninstall the driver over USB? And how to get the backplate off without damage to pull the battery?
I don't have anything critical on the phone storage I can't replace easily, have flashed roms before etc, but prefer to recover/undo if possible. And again with the storage issue, how would I gain access to the internal storage without the screen on?
edit: The removable disk drive shows up for the SD card (but obviously inaccessible since no microSD in phone), but I'm poor till wednesday night, so cant go out and get a microSD to attempt a fix yet.
HiSuite can't connect to the phone (HiSuite USB mode needs to be turned on OR USB debugging, debugging is) so I presume the phone is not in a fully powered on state running the OS (unable to start graphics driver etc).
edit2: The manual states if I want to change the battery to contact an authorised service provider (!), but can hold the power button for more than 10 seconds to force a restart (but I wonder if that will work in its current state?)
View 1 Replies
View Related
Aug 30, 2010
I'm using Rotating Progress Bar in my Android Music Plyer Application....I'm not able to stop it. While working with horizontal Progress bar i used handler to stop and start it. But while working with Rotating One, The progress bar goes into Infinite Loop..
View 2 Replies
View Related
Feb 25, 2010
How can i rotate a view and keep it like that. I have tried the Animation method discuss in the following discussion thread.
http://groups.google.com/group/android-developers/browse_thread/threa...
this works fine for the animation, but it does not handle the key press events itself.my requirement is simple, I need to show a text on a button upside down. Somewhat as if the parent view is drawn landscape and button is portrait.
View 2 Replies
View Related
Sep 27, 2010
I created a little texture drawing class from observing the LabelMaker example in the Android SDK. One thing I can't find however is how to rotate textures drawn with glDrawTexiOES. is it possible? I've just tried glRotatef but it has no effect.
View 1 Replies
View Related
Jul 24, 2009
I'm trying to find a way to rotate a View, or (more conveniently) an entire layout, upside down and have it stay that way. I found the rotation and animation classes in the SDK, and these come close to what I want, but at the end of the animation I want my Layout to stay rotated; repeating the animation or just flipping back right- side-up doesn't help me with my app unfortunately.The only thing I can think of so far would be to find the source code for the rotate class, and override it such that the "...and then flip it back around to be right-side-up" code never happens. I'm not sure exactly where I'd find the original rotate code for reference if I were to do something that extensive however.I've found references online to the full android source - is that basically what I'd be looking at downloading to be able to attempt something like this? Am I missing a simple option on the rotation that would let it just stay put after I rotate it? Any help would be very much appreciated!
View 6 Replies
View Related
Aug 30, 2010
Is anybody aware of an app that will sync with my calendar for my rotating schedule? I work Monday, Tuesday, Wednesday, and every other Saturday Sunday, from 1545 to 0145. I've tried the reoccurring event, but I don't want to have to go through and delete every other Saturday Sunday. I would like to be able to set it so I can enter it, and it will set it up for a couple years.
View 4 Replies
View Related
Oct 24, 2009
I'm trying to draw some large circles on the canvas which are partly offscreen, then use animation to rotate them in be fully visible. My circles successfully rotate in, but when they come into view they're clipped at the place that was the screen edge when they were originally drawn. Is there any way to prevent this? I guess my larger question is how can you draw elements beyond the edges of the screen and then animate them into view?
View 2 Replies
View Related
Jun 9, 2009
I'm using the 1.5 SDK. I read in 1.0 that rotating the device would cause onCreate() to be called in our apps (possibly recreating the entire app?). Is there a way to test rotating the device in the emulator? I just want to see what happens, I don't have a device to test this. Will the behavior be the same for 1.5 as it was in 1.0?
View 3 Replies
View Related
Sep 25, 2010
I need to apply different layouts for portrait and landscape orientations of my activity. Besides, I need to show alert if orientation is portrait. Why onConfigurationChanged is called twice? How can I avoid it?
View 3 Replies
View Related
Sep 11, 2010
How to restore the dialog etc after rotating the screen? For example, pop up an alertDialog to tell user some information. then the user rotate the screen to another orientation. How to restore the alertDialog? Can any one guide me to do it?
In restoreManagedDialogs, it has something to do with mManagedDialogs.As you can see, for advanced feature, you must do the saving and restoring job by yourself. It may be a night mare when you have tons customized dialogs. I have not tried the complex dialog (has input EdiText, listView, say). In this way, I'd like to warn users: Never rotate the screen when inputing your info in the dialog... OR, lock the rotation dynamically when showing the dialog.
View 2 Replies
View Related
Aug 22, 2010
Can anyone explain the difference between a Penta-Band antenna and a Quad-Band antenna?
View 3 Replies
View Related
Aug 13, 2010
My first activity is creating a second activity within its onCreate:
CODE:............
The second activity has EditText views for the username and password along with submit and cancel buttons. When either button is pushed, the text from username and password is sent back to activity one (via onActivityResult), which connects to a server to see if the username is available. While connecting to the server showDialog is used to show a ProgressDialog. When the server responds, the ProgressDialog is dismissed and an AlertDialog is shown. This works fine as long as the device is not rotated.
Here's the problem: if the user rotates the device from within the second activity and pushes submit, the first activity re-invokes its onCreate, which ends up launching the second activity again since the username and password are still null.
Does anyone have any suggestions to get around this?
Is there a method that could be used to pass data from activity-2 to activity-1's onCreate? I wouldn't want to use a database in this case, as that seems like overkill.
I've thought about containing the server communication and dialogs to activity 2, but then I'd have duplicate server code in activity 1 and activity 2 (activity 1 connects to the server for other things too). Another issue I'd have with this approach is that the user has an option to cancel creating the password, in which case I want the app to finish. If I called finish from activity 2, activity 1 would appear and I don't want that to show unless a username and password have been created.
It just occurred to me - if I could replace activity 2 with a dialog it might make things simpler. The dialog view needs to have 2 EditTexts and 2 buttons. Can I create something like this and use the showDialog method?
View 1 Replies
View Related
Dec 20, 2009
I have a pretty simple view hierarchy, including an ImageView in a FrameLayout with a source drawable that is bigger than the window size.Using scaleType=center the image is cropped and centered, as expected, when laid out.In response to user interaction we need to rotate the ImageView.I am using a rotate animation XML definition and View.startAnimation.This works with one remaining problem: the cropped part of the image remains cropped when rotated,so when the image is rotated by 90 degrees in portrait orientation the image is clearly cropped on the top and bottom. Essentially it looks like a rectangle the size of the view window is being rotated,rather than the oversize image in its entirety (note it is intentionally oversize in the hope of avoiding this cropping problem).We want the image to fill the screen regardless of the angle of rotation.What am I missing?
View 2 Replies
View Related
Jul 6, 2010
I have thread in "onCreate" which is getting content from web. While the content is getting, I have progress dialog.
new Thread() {
public void run() {
Get_content() ;
handler.sendEmptyMessage(0);
}
}.start();
if I rotate the display (to landscape mode) while this is running, my application gets Force close . In the log I have this:"thread main exiting due to uncaught exception"
View 4 Replies
View Related
Feb 19, 2010
I need to take a picture with the camera and, if depending on the picture size, rotate it before saving it into the gallery. I'm using
Intent imageCaptureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
imageCaptureIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri);
startActivityForResult(imageCaptureIntent, IMAGE_CAPTURE);
To take the pic and save it to a temporary file. Then
Bitmap bmp = BitmapFactory.decodeFile(imagePath);
String str = android.provider.MediaStore.Images.Media.insertImage(cr, bmp, name, description);
To save it. This is the code i have tried to use to rotate the bitmap.............
View 1 Replies
View Related
Nov 8, 2010
I'm just starting to get the hang of animations, tweened animations that is. I have made several imageviews with pictures rotating and moving, and its all very fun, but I don't know what the best approach for doing multiple animations is.
For example I created a LinearLayout and stuck some ImageViews in it and wrote this:
CODE:...............
for each imageview. So they all spin. But now I want to step it up a gear. But reaidng other sources on the net it seems some people use canvas to do animations. What is the best way?
View 1 Replies
View Related
Aug 31, 2010
Today randomly my phone has stopped rotating when in any application, from the browser to messages to mail. I don't know what could have caused this, as I have been using it normal ever since I got it and not messed with anything. Running stock froyo, does anyone know of this and if there is a way to fix? I already tried disabling and enabling autorotate from the settings off and on a couple of times and nothing.
View 1 Replies
View Related
Jun 8, 2010
My Evo seems to have a very strong preference for landscape view. Any time I am not holding the phone completely straight up it drops to landscape. Then even if I do push it back straight up it doesn't wanna go back to portrait view. Has anyone else experienced this and are there any tricks to get rid of the problem?
View 8 Replies
View Related
May 19, 2010
If I rotate a photo and transfer it to computer or email or anything the rotation does not stick, only in the image gallery.
View 4 Replies
View Related
Oct 4, 2010
I just realized that you get a scientific calculator when rotating the phone. I plugged in a few items and noticed the sine, cosine and probably other items are WRONG!
View 5 Replies
View Related