Android :: OpenGL ES Missing Some Components?

Oct 1, 2009

I'm trying to run the "HelloTriangle" example, from The OpenGL ES 2.0 Programming Guide, in the Android emulator.I import egl.EGLConfig and opengles.GL10 from javax.microedition.khronos, but the ESContext type and definitions such as GL_COMPILE_STATUS and GL_FRAGMENT_SHADER can't be resolved.I reworked the triangle example somewhat for Android in that I'm using GLSurfaceView. I undertand that it is supposed to be used instead of OpenGLContext in the newer versions of the SDK.Am I using a "non-Android" approach to OpenGL ES? If so, what's the right one?

Android :: OpenGL ES missing some components?


Android :: Missing OpenGL Drivers On Emulator

Jul 11, 2009

I am trying to set up an Android emulator to do some playing around with OpenGL ES on it, but I am stymied by the fact that, every time I run my program on it, it unceremoniously grenades itself. The problem (at least the first nasty red error line in the log) is a missing package called libhgl.so. This is the OpenGL driver file required for running OpenGL ES on Android devices, but for some reason, my emulator doesn't have it. Does anyone know where I can get drivers for the emulator, or how to get an emulator that already has them?

View 1 Replies View Related

Android :: OpenGL Speed Issue - Code Contribution To Other OpenGL

Feb 25, 2009

Single Threaded OpenGL game ! (check bottom, you can download and use the helper class) Lighting disabled ! Depth Buffer disabled ! Culling enabled ! Textures disabled !

Just 176 integers (x,y values only) making 88 vertexes along with 132 index numbers making "44 triangles only"

Framerates I get is

with GL_BLENDING disabled - 145 fps approx only! enabled - 110 fps approx only!

I have the screenshot of exact code in the draw function here.. just 2 damn lines ! I have hidden only the comments.. click here to see it http://prasna991.googlepages.com/drawframe.png

variable details in the 2 lines of code =========================== ipts = 176 elements (only x and y for each vertex) totallinetriangles * 3 = 176 lineindexes = 132 elements - type "short"

Here is the screenshot of output drawing and how it will look like http://prasna991.googlepages.com/screen.png

OpenGL single threaded Initialization Helper ================================ Here is my OpenGL helper class.. makes the OpenGL initialization for newbies a cakewalk http://prasna991.googlepages.com/OpenGLHelperclass.txt

I tested by rendering on the touch event only.. frame rate drops only when u touch and drag and here I have just tested by tapping and releasing gently on the emulator and on the device

Is this the device limitations ? So graphics is actually a lot lot lot slower than on iPhone ?

View 8 Replies View Related

Android :: NDK OpenGL - Mixing Java And Native - C - Calls To OpenGL API

Jul 24, 2010

I would like to be able to use the OpenGL API from both Java and C (via NDK).

In Java, there is a GL object passed, which has all GL methods on it.

In C, you just talk to the native library.

In a single onDrawFrame callback (for which Java is passed a GL), can I use methods on the GL object, and also call NDK methods which access the openGL library?

In other words, is the GL object just a wrapper for the same instance of the native library?

View 3 Replies View Related

Android :: Using Customized UI Components In XML

Oct 9, 2009

When I use customized components in XML, could I use a short name of component instead of a fully qualified class name? I wonder if some configuration file exists to do that work.

For example, my customized components is ex.object.RoundRect,

I should use it in xml file like this: <ex.object.RoundRect android:id="@+id/mainRoundRect01" ... />

But

I want to use it like this: <RoundRect android:id="@+id/mainRoundRect01" ... />

Is it possible? Is there a configuration file that can map the fully qualified class name to a short name?

View 2 Replies View Related

Android :: Rich UI Components

Apr 11, 2010

I am a newbie to android development and looking for developing rich UI based applications. But the tools like Droid Draw only support primitive UI elements. How do I bring in a better UI? Any sample or references or books would help.

View 2 Replies View Related

Android :: Updates To Several Different Components In The SDK?

Dec 3, 2009

Earlier today, we released updates to several different components in the Android SDK. Xav announced these updates via the Android Developers blog: http://android-developers.blogspot.com/2009/12/android-sdk-updates.html. If you want to follow the blog via Twitter, you can now do so via [url]

In addition to the new tools and platforms, there's one other important change that I wanted to point out. We've added additional clarification to the docs about android:maxSdkVersion and what effects it might have on your app if you use it. You can see these details here: [url]

View 1 Replies View Related

Android :: Widgets And Custom Components?

Sep 27, 2009

Are widgets currently not supporting any type of custom components? I've tried creating a very simple custom TextView component and it does not work when displaying the widget... Also, can we use the animation classes in widgets?

View 4 Replies View Related

Android :: Sharable Custom UI Components

Aug 11, 2010

I want to develop and distribute some custom UI components for android apps. This custom component can do some network communicatioon too with my server. So by this I want to hide the communication protocol from my component users, and will show the content as provided by my control eg sponsor ads. This concept is same as Apple's iAD. Issue: 1. I want to hide my custom component code from its users so that they just need to include it in their antivity rest its upto me. 2. I have not implemented but sure that a UI component can do network communication.

View 2 Replies View Related

Android :: Adding Components Programmatically

Sep 25, 2009

I am new to Android development. I have been searching google to add multiple components to a View programmatically .i.e add TextField, Button, etc one below the other. I could only find examples where they have used XML to design the UI. If i want to add the components programmatically how can I do that or I will have design the UI only using the XML.

View 2 Replies View Related

Android :: How To Layout 3 Components On Screen

Jun 24, 2010

I need to lay out 3 components on screen, text string, text input and image button. I am using linear layout. I put text alight left, image button alight right. I want text input occupy the reminding space of screen. How could I do that?

View 2 Replies View Related

Android :: Where Can I Find Third Party Components?

May 19, 2010

Where can I find third-party components for the Android? Components such as dials, meters, graphics of volume controls LED's, etc?

View 2 Replies View Related

Android :: Accelerometer Gravity Components

Jun 7, 2010

I know this question is definitely solved somewhere many times already, please enlighten me if you know of their existence,

Quick rundown:
I want to compute from a 3 axis accelerometer the gravity component on each of these 3 axes.
I have used 2 axes free body diagrams to work out the accelerometer's gravity component in the world X-Z, Y-Z and X-Y axes. But the solution seems slightly off, it's acceptable for extreme cases when only 1 accelerometer axis is exposed to gravity, but for a pitch and roll of both 45 degrees, the combined total magnitude is greater than gravity (obtained by Xa^2+Ya^2+Za^2=g^2; Xa, Ya and Za are accelerometer readings in its X, Y and Z axis).

More detail:
The device is a Nexus One, and have a magnetic field sensor for azimuth, pitch and roll in addition to the 3-axis accelerometer.In the world's axis (with Z in the same direction as gravity, and either X or Y points to the north pole, don't think this matters much?), I assumed my device has a pitch (P) on the Y-Z axis, and a roll (R) on the X-Z axis. With that I used simple trig to get:
Sin(R)=Ax/Gxz
Cos(R)=Az/Gxz
Tan(R)=Ax/Az
There is another set for pitch, P.Now I defined gravity to have 3 components in the world's axis, a Gxz that is measurable only in the X-Z axis, a Gyz for Y-Z, and a Gxy for X-Y axis.Gxz^2+Gyz^2+Gxy^2=2*G^2 the 2G is because gravity is effectively included twice in this definition. Oh and the X-Y axis produce something more exotic I'll explain if required later.From these equations I obtained a formula for Az, and removed the tan operations because I don't know how to handle tan90 calculations (it's infinity?).So my question is, anyone know whether I did this right/wrong or able to point me to the right direction?

View 3 Replies View Related

Android :: Add Views Dynamically Or On Top Of Other Components

Nov 19, 2010

I use a LinearLayout and first I have a MapView and below the map I have a TableLayout with informations fields.

Now I would like to add additional information fields (e.g. a new TableLayout) when the user select a specific menu item on the Options Menu. I would like to have these fields either between the MapView and the TableLayout, or on top of the bottom area of the MapView.

How can I add this TableLayout with additional information fields dynamically after the user has selected a menu item? How can I show it below the MapView or on top of the bottom area of the MapView?

View 1 Replies View Related

Android :: Download SDK Components Without The SDK Manager

Mar 17, 2010

Is posible download Android SDK components without the Android SDK manager? in windows xp

View 1 Replies View Related

Android :: Add UI Components On Specific Coordinates?

Aug 1, 2010

I have to create a UI with components(TextView, Bottons etc) placed at particular coordinates as specified in an XML coming from a server. I am currently using AbsoluteLayout but since its deprecated i want to use some other method.

View 2 Replies View Related

Android :: Control Hierarchy In Custom Components

Oct 7, 2010

I'm reading the android docs on custom component development and i'm a little confused. If you're creating an activity, you can add add a hierarchy of views via setContent. however, if you're creating a custom component, you have to handle everything in the draw() overload.if i want to build a custom component that relies on a view hierarchy, is the model simply to create a hierarchy internally and then in draw call myViewHierarchy.Draw() or something?

View 1 Replies View Related

HTC EVO 4G :: Vanilla Android Components Inside Sense

Apr 23, 2010

Is this possible? More specifically, let's say that I want to use the stock Desk Clock application on the Evo. How would I go about doing that, if at all? And if I wanted (because I'm a whore) to use the Nexus live wallpaper? I assume that that's doable, and easier as well?

View 5 Replies View Related

Android :: Modifying Components On Widget From Activity

Apr 17, 2010

On my widget I'm having a button and a textView. When clicking that button some data is registered and I want the TextView to be updated. However I can't get to the TextView instance from within my Activity it seems.

View 4 Replies View Related

Android :: Aligning Components At Desired Positions

Mar 30, 2010

Seeking help to design a layout as shown here:

http://docs.google.com/Doc?docid=0AQhgDtGvE2HgZGZ6cmtua185MTd0eGdyZmc&hl=en

The major challenge I face is aligning the components at desired positions. Please refer the three buttons(icons) and the way they are positioned.

Literally, going nuts, thinking how to position those exactly at the desired places.

View 2 Replies View Related

Android :: Possible To Download SDK Components Without Using SDK Management Utility?

Feb 4, 2010

During the installation of my Android SDK, I am getting stuck during the process where the manager goes out and downloads all the revisions of the APIs and the SDKs.

It is potentially due to a socket issue that typically occurs when a database query is called and there are a large number of TCP connections... according to googling my error (No buffer space available (maximum connections reached?): recv failed )...

So I just need to know if there is a way, other then using the Android download manager, to download / update my computer with the following Android SDK components:


Downloading Documentation for Android SDK, API 7, revision 1
No buffer space available (maximum connections reached?): recv failed
Downloading SDK Platform Android 2.1, API 7, revision 1
No buffer space available (maximum connections reached?): recv failed
Skipping 'Google APIs by Google Inc., Android API 7, revision 1'; it depends on 'SDK Platform Android 2.1, API 7, revision 1' which was not installed.
Downloading Google APIs by Google Inc., Android API 7, revision 1
No buffer space available (maximum connections reached?): recv failed
Downloading SDK Platform Android 2.0.1, API 6, revision 1
No buffer space available (maximum connections reached?): recv failed
Skipping 'Google APIs by Google Inc., Android API 6, revision 1'; it depends on 'SDK Platform Android 2.0.1, API 6, revision 1' which was not installed.
Downloading Google APIs by Google Inc., Android API 6, revision 1
No buffer space available (maximum connections reached?): recv failed
Downloading SDK Platform Android 2.0, API 5, revision 1
No buffer space available (maximum connections reached?): recv failed
Skipping 'Google APIs by Google Inc., Android API 5, revision 1'; it depends on 'SDK Platform Android 2.0, API 5, revision 1' which was not installed.
Downloading Google APIs by Google Inc., Android API 5, revision 1
No buffer space available (maximum connections reached?): recv failed
Downloading SDK Platform Android 1.6, API 4, revision 2
No buffer space available (maximum connections reached?): recv failed
Skipping 'Google APIs by Google Inc., Android API 4, revision 2'; it depends on 'SDK Platform Android 1.6, API 4, revision 2' which was not installed.
Downloading Google APIs by Google Inc., Android API 4, revision 2
No buffer space available (maximum connections reached?): recv failed
Downloading SDK Platform Android 1.5, API 3, revision 3
No buffer space available (maximum connections reached?): recv failed
Skipping 'Google APIs by Google Inc., Android API 3, revision 3'; it depends on 'SDK Platform Android 1.5, API 3, revision 3' which was not installed.
Downloading Google APIs by Google Inc., Android API 3, revision 3
No buffer space available (maximum connections reached?): recv failed
Downloading SDK Platform Android 1.1, API 2, revision 1
No buffer space available (maximum connections reached?): recv failed
Downloading Usb Driver package, revision 3
No buffer space available (maximum connections reached?): recv failed

View 2 Replies View Related

Android :: Understanding Custom Components And Multiple Resolutions

Dec 21, 2009

I had posted a similar thread a while back and received no feedback, so let me try to be more clear.I am able to use Androids components to build the most basic layouts, which include images, buttons, text areas, etc. These are like Android Lego! I can build the castle. BUT I want to design my own component, my own Lego, that draws on the screen and uses the available area that the Android components have not used. ie, I want to have a top layer of buttons, and the rest of the screen, whatever it is, I want to use to draw 2d graphics. So, I want to make my own Lego, and use it with the other Android Lego. However, I'm also trying to be a good developer and making this for whatever resolution is thrown my way. What is the best way to do this considering the deluge of different resolutions Android developers must cope with? Is there a way to do a table view and return the remaining screen size? Or, am I stuck making an entire new box of Lego here?

View 7 Replies View Related

Android :: Which Components Does Call State Ringing Block?

Apr 20, 2009

I am writing a service which listens an incoming call. I have a function but it behaves differently under these cases when i call the function in case case Telephony Manager . CALL _STATE_OFFHOOK: it works! when I call the same function in case case Telephony Manager. CALL _STATE_RINGING: it doesnt work. it seems that when an incoming call happens the system blocks some components. what should I do to prevent from this situation. Should I move my calculation to a background thread? Does it work in that way?

View 3 Replies View Related

Android :: Sequence Of Method Calls While Creating Custom Components

Jul 26, 2010

I was wondering in what order the following methods - on Draw(), on Measure(), on Size Changed() - are called automatically when we create a custom component. Not sure if this question makes sense. I've just been kinda confused as to what the methods are supposed to do exactly.

View 1 Replies View Related

Android :: Move Components Around Screen Using Standard Droid Apis?

Mar 31, 2009

I would like to produce an android user interface which allows the user to move added components/widgets around the screen by selecting them and then dragging them around.

Is this possible using the standard android apis?

View 3 Replies View Related

Android :: Droid Graphical Components (View) Have Their Own Specific Renderer?

Aug 27, 2010

Just curious to know android Graphical components (View) have their own specific renderer or they are using something like AWT, Swing or?

View 1 Replies View Related

Android :: Using External Source Inside Program (Eliminating Swing Components)

Dec 5, 2009

I am having a little trouble using some external source files. I am new to eclipse and the methods used to import external source files. Basically this is what I have done. Downloaded the source files for a java project called "TrueLicense" via CVS. Imported this library by going to "Projects" and adding the "TrueLicense" project (I am not sure if I should do this in "Source", "projects" or "Libraries"?) Imported the required classes into my android project without any compile errors.

When I run the program I get:
12-05 15:52:28.632: WARN/dalvikvm(724): VFY: unable to find class referenced in signature (Ljavax/swing/filechooser/FileFilter;)
Then a whole lot of other errors. This seems sensible as there is a sections of the TrueLicense package that used Swing. How do I only import the parts of TrueLicense that I need?

View 10 Replies View Related

Android :: After Downloading An Application With Two Launcher Components From The Marketplace - Clicking Open Will Cause A Crash

Feb 11, 2010

Create a sample application with two launcher icons.

For example, two components such as:

CODE:..................

Either install the application via downloading from the Marketplace, or via AppInstaller. When the message box asks you if you would like to run the application, an exception is thrown:

CODE:.................

The crash happens because com.android.internal.app.ResolverActivity is trying to find a (single) component which resolves the following intent: <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" />

Has been tested BOTH with the AppInstaller, and the actual Marketplace on a real device.

View 4 Replies View Related

Android :: Unzip Failed -Access Is Denied - Error While Adding SDK Components To Eclipse

May 1, 2010

Eclipse (3.5) -->Window-->Android SDK and AVD Manager--><> When Adding SDK Components, there is the following error message:

CODE:........

This is followed by another message: -Nothing is installed- I use Windows 7 64-bit system.

View 2 Replies View Related

Motorola Droid :: Will We Be Able To Retrofit 2.01 Components Into 2.1?

Jan 6, 2010

So the buzzy-buzz around here & elsewhere is that the 2.1 update for the Droid is coming very soon. Some of us have already tasted a few goodies, like the home screen, docking screen and gallery. The gallery I like, but the home screen and docking screen I don't. There's always work arounds in the way of apps; I use Home++ for example. But what if I don't like some of the things that 2.1 brings but I want all of the capability it brings? Will folks be pulling components from the ("old") 2.01 to use in place of them on 2.1? So as an example, could I run 2.1 with the old 2.01 home screen or docking station, etc? Also, will all the apps designed for 2.01 work with 2.1, or could there be problems?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved