Android :: Java OpenGL ES 2.0 Bindings Project

Mar 12, 2010

i started a small project over at google code that provides you with bindings for OpenGL ES 2.0 in Java. I started just a couple of hours ago so it's not finished yet. The project includes the original GLSurfaceView plus all the helper classes from the latest Eclair build as well as a modified version of GLJNIView from the NDK samples which is now a fully functional GLSurfaceView subclass called GLSurfaceView20.

OpenGL ES 1.x and 2.0 are exclusive so you have to first check wheter GL ES 2.0 is supported. You can check this via the following method:

private boolean checkGL20Support( Context context ) { EGL10 egl = (EGL10) EGLContext.getEGL(); EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);

int[] version = new int[2]; egl.eglInitialize(display, version);...................

Android :: Java OpenGL ES 2.0 bindings project


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 :: Get Project And Std Java Project To Play Nice?

Aug 11, 2010

I can now get our Android project to talk to our non-Android project. But there's still an issue: I are trying to have an Android class call a non Android Hello World class. I tried compiling our non-Android Hello World class in a separate Eclipse workspace. I then packaged it into a jar. I imported that jar into our Android Hello World class.

I then called one of the methods in the non-Android Hello World class. When I ran the Android Hello World class as an Android application, the following runtime error occurred. Here are the Android debug logs:

08-11 09:07:56.764: ERROR/AndroidRuntime(333): FATAL EXCEPTION: main
08-11 09:07:56.764: ERROR/AndroidRuntime(333): java.lang.ExceptionInInitializerError
08-11 09:07:56.764: ERROR/AndroidRuntime(333): at com.hello2.hello2.onCreate(hello2.java:27)
08-11 09:07:56.764: ERROR/AndroidRuntime(333): at android.app.Instrumentation.callActivityOnCreate(I nstrumentation.java:1047).....................

View 1 Replies View Related

Android :: R.java File From Android Library Project Not Importing Into Application Project

Aug 8, 2010

I followed the instructions here on how to create an Android library project, and use it in an Android application:

http://developer.android.com/guide/developing/eclipse-adt.html

But it is not working. I can see the library project is added to my application but I cannot reference anything in it because it won't build. The R.java file from the lib is NOT being added to my application project, so the lib project contains tons of errors, everywhere it tries to reference it's own R.java file.

I don't know if this has anything to do with it, but in the console there are messages stating that the there is "No resource identifier found for attribute 'X' in package 'Lib Package'. My library package has a a few styleable attributes defined for a custom view I made, all of which are being complained about in this console message. The library builds just fine, and I don't get those messages in the console until I hook the library to my application, so I don't know what's up with this.

View 1 Replies View Related

Android :: Project For Preview Image On Opengl Texture?

Dec 10, 2009

I'm trying to get the preview images of the android Camera onto a opengl texture. I have been successful so far, it works most of the times. Though sometimes I will just get a black screen when starting/ resuming the application. I have been debugging for days, not finding any clue. When debugging I noticed that both the camera callback and the onDrawFrame are called in such situations. the bytearray of the camera does contain data.

View 10 Replies View Related

Android :: Java API For OpenGL ES 2.0?

Aug 25, 2010

I am learning Android development, specifically to eventually do OpengL 2.0 ES on it. So far I have read that the NDK supports Opengl 2.0 ES. However, is there also a Java API for it? If there is a Java API for it, which one is recommended? I know both C++ and Java, so it is not a big deal if I have to use the NDK, but I would prefer to work only in Java if possible and without a big performance hit.

View 1 Replies View Related

Android :: Testing OpenGL Rendering In Java Outside?

Aug 30, 2009

I would like to write OpenGL classes and test them in java outside of an Android device or emulator, and then use these in the Android.

Has anybody done this?: If so, are there JOGL implementations that are directly compatible?

I tried doing this on Windows using JOGL and writing wrappers, etc, but it turned out to be a real mess. I finally gave up when I didn't know how to get a GLU instance for a frustrum call.

View 4 Replies View Related

Android :: Visualizing Java Project

May 8, 2009

I have been tasked with porting a large Java code base to the Android platform. The project makes extensive use of AWT which isn't' supported on Android. I'm looking for a tool that lets me visualize all of the classes in the project. I'd like to be able to see all of the relationships between classes so that I can get a good idea of where to start the port.

View 3 Replies View Related

Android :: Use Java Classes In Project?

Apr 28, 2010

Since i'm still new on Android programming, I have some problems on some issues. I have a QuadTree data structure implementation in 3 seperated Java files and i would like to use this data structure in my application. But i don't know how to use this .java files in an Android project. I tried to put them in a new Android project, just for testing, but I get lots of errors. Could anyone help me about using this java classes in my Application?

View 3 Replies View Related

Android :: Writing Portable Java Application Using JOGL And OpenGL

Oct 24, 2009

I plan on writing a Java 3D game that will work both on PC and Android. Unfortunately it looks like there is no common OpenGL API for both platforms.Do the APIs differ significantly? Is there a way I could use the same 3D code in both versions? Is it a good idea?

View 3 Replies View Related

Android :: Conflicting Resource Id Of Two Different Project's R.java

Oct 18, 2010

I have two different project A & B. Inside the project A I link the source from project B so activity from project A can start the activity from project B. I'm using Eclipse Galileo.The problem is, when I want to edit the value of a view in activity B, the resource id from both projects have some conflicts in it. So when I call findViewById() in activity B I got a view from the activity A instead.I've declared the activity B inside the AndroidManifest in project A. I've even tried to start the activity B as the entry point of the application but it didn't show anything at all. It's like the findViewById tried to search the view of project A only although I've specified the package name correctly.

View 1 Replies View Related

Android :: How To Generate A Java Doc For Phone Project?

Sep 24, 2010

Does someone know how to generate a javadoc for an android project? I found searching the net this info http://www.androidjavadoc.com/?p=63 , but i don't understand where can i find the file "droiddoc.mk": "All javadoc stuff is concentrated in the ROOT/build/core/droiddoc.mk".

View 3 Replies View Related

Android :: No Generated R Java File In Project

Nov 3, 2010

I am doing the Notepad tutorial, exercise 2. I started by creating a new Android project and chose Create from source to import the downloaded source files for the excercise. But now I get many errors in Eclipse, and the problem is that there is no generated R.java class. How can I solve this? The folder gen / is empty. I have errors on Notepadv2.java and in res/layout/note_edit.xml and both seems to be related to the fact that the generated R.java is missing. Here is my import statements in Notepadv2.java:

import android.R;
import android.app.ListActivity;
import android.content.Intent;
import android.database.Cursor;
import android.os.Bundle;
import android.view.ContextMenu;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.ListView;
import android.widget.SimpleCursorAdapter;

They are created by the Eclipse command Ctrl+Shift+O.

View 9 Replies View Related

Android :: R.java Disappears After Project Clean

Oct 9, 2010

After I added some .png files into my Project Workspace drawable folder I refreshed my drawable folders in Eclipse and the newly added files showed up. But when I tried to access those resources using R.drawable.xyzimage, xyzimage although in the folder could not be resolved. So I did a Project Clean and guess what after this clean R.java is totally gone and all my classes accessing resources using R.java is showing all sorts of error and Eclipse won't let me run the code anymore. I have backup of my source code but I want to explore if R.java can be regenerated and how?

View 6 Replies View Related

Android :: HttpPost Not Works In Java Project

Nov 19, 2010

I've written some code for my Android device to login to a web site over https and parse some data out of the resulting pages. An HttpGet happens first to get some info needed for login, then an HttpPost to do the actual login process. The code below works great in a Java project within Eclipse which has the following Jar files on the build path: httpcore-4.1-beta2.jar, httpclient-4.1-alpha2.jar, httpmime-4.1-alpha2.jar, commons-logging-1.1.1.jar.

public static MyBean gatherData(String username, String password) {
MyBean myBean = new MyBean();
try {
HttpResponse response = doHttpGet(URL_PAGE_LOGIN, null, null);
System.out.println("Got login page");
String content = EntityUtils.toString(response.getEntity());
String token = ContentParser.getToken(content);
String cookie = getCookie(response);.......................

View 2 Replies View Related

Android :: Java Model Exception When Cleaning Project

Sep 30, 2009

I keep getting this error under several projects. 10 minutes ago I exported an android .apk, then changed the AndroidManifest.xml and now can't export. I reverted back to the original AndroidManifest.xml but still it doesn't work. I guess the plugin is broken. Is there a set of Ant tasks that can be used to build Android apps?

.............

View 2 Replies View Related

Android :: Including Prebuilt Java Classes Into Project

May 3, 2010

i'm trying to include a maven java project into my android project. the maven project is the greader-unofficial project which allows developers access to google reader accounts, and handles all of the http transactions and URI/URL building, making grabbing feeds and items from google reader transparent to the developer. the project is available here:

the code is originally written for the standard jdk and uses classes from java.net that are not a part of the standard Android SDK. i actually tried to manually resolve all dependencies and ran into a problem when i got as far as including com.sun.syndication pieces required by the class be.lechtitseb.google.reader.api.util.AtomUtil.java... some of the classes in java.net that are in the standard jdk (i'm using 1.6) are not in the Android SDK. in addition, resolving all of these dependencies manually is just ridiculous when i'm compiling a maven project that should be pretty simple.

however, i can use maven to compile the sources with no issue. how can i include this maven project, which is dependent on the complete jdk, into my android project in such a way that it will compile so that i can access the GoogleReader class from my android project? and for the record, i don't have the expertise to rewrite this entire api to work with the standard Android SDK.

View 2 Replies View Related

Android :: Amazon Web Services Java SDK Jar In Project In Eclipse

Sep 28, 2010

I'm trying to use the Amazon Web Services Java SDK jar in an Android project in Eclipse, but it has references to org.apache.commons.httpclient. All I seem to have in my Android SDK (2.2) is org.apache.commons.http.client, which is a different namespace and obviously causes the build to fail.

I'm new to Java, Eclipse, and Android dev... is there a way to "map" one name space to the other or create some sort of symbolic link? If not, does that mean I have to import a "standard" org.apache.commons library?

View 1 Replies View Related

Android :: Develop Using Libraries In Simple Java Project - Without Using Dalvik And Such

Oct 9, 2010

As I am very pissed off of using the emulator to develop any Java class, I thought of setting up a project in Eclipse and instead of the usual JRE I linked to the Android.jar (version 2.1) that usually the Android projects link to. I don't mean to use this to develop Layouts or other specific platform things, I was just trying to create a class that uses HttpClient.

It miserably crashes like this.

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

I mean I'd like to develop libraries (and test them) so that when I go to the emulator I don't have to deal with them. Is there a good way to do this? This seems not to work for some reason.

View 1 Replies View Related

Android :: Eclipse Deletes Java Files On Build Of Project

Sep 21, 2010

I have an interesting problem. I pull down an android project from cvs, which works fine. Once Eclipse builds the project, my .java files are removed. XML files, pngs, everything else is fine. I seem to be left with just the package tree, but no source files. Any thoughts?

View 1 Replies View Related

Android :: Error Loading Java.awt.font In Eclipse Project?

Sep 16, 2010

I've seen a few places where this was asked but I haven't seen where it's been resolved. I've just installed the tools needed to develop Android applications. This includes, of course, Eclipse. When I try to open the res/main.xml file, I get the error 'could not initialize class java.awt.font'.I'm running the newest version of Eclipse and all the software required for Android development. I'm running on Ubuntu 10.04 32bit. Sun JDK and JRE are installed.

View 1 Replies View Related

Android :: Way To Include Other Java Source Projects In Droid Project?

Sep 18, 2009

Is it possible to include other Java source projects in Eclipse into an Android project? Normally for a regular Java project you do this by adding the other project to the build path and including it in the Project References. This same approach lets the code compile, but when the app is deployed to the emulator, it throws a VerifyError when I try and instantiate classes from my other project. Is this possible with the Android SDK? Do you have to build them to jars and include them inside your Android project like this? I know this works, but just involves more steps to do this.

View 3 Replies View Related

Android :: Get Hold Of Context For Junit Test From Java Project?

Jul 3, 2010

I need to access and Android context for a JUnit Test. I have tried using MockContext and extending the AndroidTestCase but each time I get an error saying (stub!)

View 2 Replies View Related

Android :: Converting Android Project To Regular Java Inside Eclipse?

Apr 2, 2010

Ive inherited some code which started out as an Android project but really is just an API to be used by other applications. Hence, the 'build' process usually just produces a JAR file. The problem I am having is that I get errors from the Android build tools in my console which seem to fire everytime I make a change to some files.

View 1 Replies View Related

Android :: Android - R.java Project Won't Update?

Jul 7, 2010

my main class folder was named com.test, i changed it to com.myApplication, and now when i add objects to my layout my R.java won't get updated, all objects that i had before work fine, and they are in R.java, but anything new that i create won't get added to R.java

View 1 Replies View Related

Android :: Java Doc In Eclipse Android Project

Feb 15, 2010

In our Android project, our code is Java Doc'd and that generates everything properly. However, any reference to the Android API classes/functions results in a JavaDoc error and a link to the relevant information is not generated. Instead we get plaintext class names. How can we set up Eclipse to turn these into links to the online Android API reference (preferably) or a local copy (if necessary)?

View 3 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 :: Project Contains Errors - Eclipse Won't Compile Project

Mar 21, 2010

Somethings I'll have an? .xml file selected when I compile a project, only to have a? .out.xml generated. Deleting the file doesn't clear the error, and Eclipse won't compile the project. It just reports that your project contains errors. The solution is to go to Project/Clean. This will clear the error in the project and allow it to compile.

View 6 Replies View Related

Android :: Reference Project Library From Another Project

Jun 6, 2010

I have 2 android projects out of which I modified one to work as a library. I want the main project to refer to this library to perform few functions. While this scenario works just as expected, I want to introduce one more functionality. I want to link this library project with another just a java project which has code common to both Android and Blackberry applications. This second part however doesn't seem to work and throws "The application <appname> (<package name>) has stopped unexpectedly. Please try again" with a ForceClose button. I would greatly appreciate if someone can give a brief information on how to make this work.

View 2 Replies View Related

Android : How To Add Project Reference To Droid Project?

Jan 25, 2010

I am a C# developer and getting started with Android. I am attempting to duplicate a couple applications I already have in VS. The project is made of 2 executables and 1 common assembly. The 2 executables contain the application specific logic while the common contains centralized forms and logic (such as login form). I am using Eclipse. So how can I accomplish this layout?

View 1 Replies View Related







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