Android :: How To Know An Opengl Method Is Implemented - In Runtime

Sep 13, 2010

I mean in runtime. Sometimes I get "called unimplemented OpenGL ES API" error but it can not be catched. Is there a way to figure out what function is implemented or not, in runtime?

Android :: how to know an opengl method is implemented - in runtime


Android :: Any Set Style Method At Runtime In Layout File?

Feb 1, 2009

I created my style in styles.xml, lets say MyStyle. I can use it in any layout file by style="@style/MyStyle". Also my generated R class have R.style.MyStyle, my question is if I can use it at runtime to "setStyle" - unfortunately View doesn't have such a method. If not what is R.style.MyStyle used for? (I already know that custom themes IDs are also in R.style and can be used to setTheme, but MyStyle is not a theme).

View 14 Replies View Related

Android :: Method To Capture Video From OpenGL App?

Sep 16, 2010

Does anyone knows some convinient method to capture video from OpenGL app on Android device? For example can we capture video from a view, opengl view? I just stopped on: 1) We can get frames using glReadPixels. (No video on this step?) 2) MediaRecorder can encode video, but how can we provide it our raw source, if possible? 3) Any working ports of ffmpeg(for example) or other encoding library? There are some tutorials of portng ffmpeg to use withing NDK. So, having raw frames and working port of ffmeg we can create video? Any issues on this step? Anyone managed to port any encoding library successfully?

View 3 Replies View Related

Android :: Method To Capture Video To File Or Stream From OpenGL App?

Sep 16, 2010

Does anyone knows some convinient method to capture video to file or stream from OpenGL app on Android device? For example, can we capture video from a view, opengl view?

I just found out the following:
1) We can get frames using glReadPixels. (No video on this step?)
2) MediaRecorder can encode video, but how can we provide it our raw source, if possible?
3) Any working ports of ffmpeg(for example) or other encoding libraries? There are some tutorials of portng ffmpeg to use withing NDK. So, having raw frames and working port of ffmeg we can create video? Any issues on this step? Anyone managed to port any encoding library successfully? What components do I need from ffpmeg?

View 1 Replies View Related

Android : Is OpenGL Faster Than Canvas / Drawable Method For Graphics?

Nov 6, 2009

Or does it merely provide more options for graphics?

View 2 Replies View Related

Android :: Method To Draw Bitmaps Faster On Droid Canvas / OpenGL?

Jun 15, 2010

I currently have a game written using the Android canvas. It is completely 2D, and I draw bitmaps as sprites on the canvas, and it technically works, but I have a few features that I need to add that will require drawing many more bitmaps on the screen, and there will be a lot more movement.

The app needs more power.

What is the best way to go from this method of drawing Bitmaps on a canvas to using OpenGL so I can draw them faster?

View 2 Replies View Related

Android :: Runtime Error Using Exported - Signed Apk But No Runtime Error Using Eclipse IDE

Mar 2, 2009

1) I am developing my app in Eclipse 3.4.1 with Android (ver 1.1_r1) plugin. My app compiles and executes without errors when using the Eclipse IDE.

However, when I export my app (unsigned) using Eclipse (via {select project} >right-click>Android tools>export unsigned application package), sign it, and try to run it on the Emulator, it throws a runtime error when I try to update my sqlite database, at which time the specific error created is: SQLite error#14, unable to open database. It is able to read from the database without problems. (I have also verified that the database is: open, is not readonly, is not locked by another thread, is not in the middle of a transaction.)

I have limited experience, but this seems more like a "system" problem given that the app works OK in Eclipse IDE but then fails as an exported/signed apk. Some googling of SQLite resources revealed a similar error on a non-Android platform which was fixed by: "Set your permissions correctly on /var/tmp, or whatever directory you are using to hold temporary files".

Does Android have temporary files, and if so how does it handle permissions on temporary files? Is there a way to check or set these permissions to see if this fixes my problem here?

2) Not sure if it is related, but after I have run the exported/signed app which causes the runtime error, if I reboot the Emulator, and try to run the program using the Eclipse IDE , the program fails with the same exact error. PLUS I also noticed the following error message while the program is installing/running: 03-01 22:22:29.282: ERROR/PackageManager(53): Package com.northwestradiology has mismatched uid: 0 on disk, 10019 in settings; read messages:

I can restore the Eclipse version of my program to be able to execute without runtime errors by utilizing the -wipe-data option for the emulator. But note that if I run my signed APK using an emulator created with the -wipe-data option, it still throws the runtime error listed above...

View 2 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

Implemented AdMob Android Without XML

Jun 18, 2013

create to get ads on my free application, ok first off I have been following this book

Beginning Android games 2011
Beginning Android Games

Now this book implements a very nice and simple game framework which I use (a simpler version can be found here.The Android Game Framework: Part I - Kilobolt

Now this framework doesn't use any type of XML file what so ever, it uses a framebuffer to draw things onto the screen. now when the application is first started, this is the first method called which is in the AndroidGame.java

[HIGH]
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
[code]...

View 1 Replies View Related

Android :: How Is This Floating Menu Implemented

Nov 11, 2010

What is this widget called (the one with the three buttons).

View 4 Replies View Related

Android :: How Animations Work - Implemented

Jun 16, 2009

I've been looking around in the framework source and I can get my head around some things. For instance, in the ScrollView, the animated scrolling is done by using computeScroll(). To make the screen redraw (and thus call computeScroll() again), postInvalidate() is used. Why is that one used, instead of a regular invalidate-call?

Secondly, I wonder some things about the Animation framework. I know how a ViewGroup is responsible for animating the children (modifying the Canvas and so on), but what drives the animation, i.e. what makes the screen redraw over and over again? In the case of the ScrollView, it's the call to postInvalidate() made from computeScroll(), but what is it in the case of an Animation?

View 3 Replies View Related

Android :: Code Which Would Be Much Easier Implemented As ArrayList

Apr 3, 2009

I notice in the source code they are not used in critical loops, e.g. in View.java :
http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;...
I can see this kind of code which would be much easier implemented as an ArrayList :

1867 private void addInArray(View child, int index) { 1868 View[] children = mChildren;
1869 final int count = mChildrenCount;
1870 final int size = children.length;
1871 if (index == count) { 1872 if (size == count) { 1873 mChildren = new View[size + ARRAY_CAPACITY_INCREMENT];
1874 System.arraycopy(children, 0, mChildren, 0, size);
1875 children = mChildren;
1876 } 1877 children[mChildrenCount++] = child;
1878 } else if (index < count) { 1879 if (size == count) { 1880 mChildren = new View[size + ARRAY_CAPACITY_INCREMENT];
1881 System.arraycopy(children, 0, mChildren, 0, index);
1882 System.arraycopy(children, index, mChildren, index + 1, count - index);
1883 children = mChildren; 1884 } else { 1885 System.arraycopy(children, index, children, index + 1, count - index);
1886 } 1887 children[index] = child;
1888 mChildrenCount++;
1889 } else { 1890 throw new IndexOutOfBoundsException("index=" + index + " count=" + count);
1891 } 1892 };

View 3 Replies View Related

Android :: Navigation Overlays For Tracks Are Implemented?

Oct 21, 2010

Can somebody point me to the right direction how the navigation overlays for My Tracks are implemented? I'm talking about the "buttons" for navigating appearing on the left and right side if you tap on the screen. Any pointers?

View 3 Replies View Related

Android :: Include .jar Files In Droid For Particular app In Which KSOAP Implemented?

Jan 29, 2010

How to include .jar files in android for a particular application in which KSOAP is implemented?

View 2 Replies View Related

Android :: Build Spreadsheet-like Grid / Would Need To Be Implemented At Framework Level?

Mar 3, 2009

Is it possible to build a spreadsheet-like grid? I would like to select single cells, or one row at a time,like a database viewer.

Or would it need to be implemented at the framework level?

I'm thinking of a UI equivalent of something like this AJAX control, which may be opened in the WebView: http://www.hisdigital.com/misc/flexigrid/.

View 2 Replies View Related

General :: How FM And HandsFree Is Implemented In 2DIN Android 2.3 Head-units

May 15, 2013

I have seen several 2DIN car headunits that has Android 2.3 supports FM Radio and Handsfree and can be controlled through the UI itself. how is it implemented?

eg: In eBay, search for item No : 130862564199

View 1 Replies View Related

Android :: Method OnBackPressed() Of Type FirstGroup Must Override Superclass Method

Sep 7, 2010

I'm trying to override the onBackPressed() method of the ActivityGroup class:

public class MyClass extends ActivityGroup {

@Override
public void onBackPressed() {
// do something
return;
}

but I'm getting the error The method onBackPressed() of type MyClass must override a superclass method. I'm relatively new to Java, I've seen here that people do it and it works for them Why I'm getting this error? I'm writing an app for android 1.5, could the problem be here?

View 1 Replies View Related

Android :: Show Method Definition - Eclipse Recognizes Warning On Method

Nov 22, 2010

In Eclipse, when I mouse hover over a built-in method, it displays a method definition including stuff like what the method does, input objects, return objects etc. If I have a yellow line (warning) under the method I'm trying to use, I can't get the mouse-over to show the definition. If I try hitting F3, I get a "The Jar of this class file belongs to container "Android 1.6" How do I show the definition of the method I am using when there is a warning?

View 1 Replies View Related

Android :: How To SetRouting - And DoRouting Which To Select Endpoint Audio Device Is Implemented

May 14, 2009

I want to add one more endpoint audio device in android and am trying to modify the setRouting() functions to support the selection of the new added audio device. As far I traced, the doRouting() in class AudioHardwareOss should perform the audio endpoint device selection. However, donRouting() just returns NO_ERROR without any other functionalities. So, my question is where and how endpoint audio device selection is achieved.

View 2 Replies View Related

Android :: Tabbed Application With Location Listener Implemented In TabActivity TabHost

Sep 25, 2010

I have an application that has a tabActivity and 3 tabs. all off the tabs use a location listener and work with locations. i implement onPause and onResume for every tab to remove and start listening for location accordingly. is this the right way to go? i had another idea to work with and that was implementing a location listener to the tabActivity and doing broadcasts to the child tabs with the location, but it seemed more complicated.

The problem with my current solution is that whenever i switch tab i lose the location i got in the previous and i cant use getlastknown location because i dont want the last location on start of the application.(does this make sense?) what can i do to solve this problem. a thing that will work better will be to have one variable that will hold the last location from the onLocationChanged and i can observe its changes and call methods onChange.

View 1 Replies View Related

HTC Incredible :: 30 Day Return Policy Implemented?

May 22, 2010

Are we allowed to return 30 days from the day we ordered the phone, or 30 days from when we received the phone? (april 19th and april 28th for me). If the droid 2 is coming out with similar specs and a keyboard i think i want that.

View 10 Replies View Related

Android :: Method.getAnnotation( ) Or Method.isAnnotationPresent( ) Not Working

May 12, 2010

I am trying to use annotation - method.getAnnotation( ) or method.isAnnotationPresent( ) and it is not working. I am using eclipse emulator for 2.1 OS version with JDK 1.6. Following is information about what I did..................

View 4 Replies View Related

Android :: How To Reduce Power Usage In Location Based Application In Android How Can Implemented

Apr 17, 2010

How can reduce the power usage in my application.

View 1 Replies View Related

Android :: Set Focus In Unfilled Edittext How Can Implemented Android Application

Apr 22, 2010

I am implementing one application gust i am adding validations in login page implemented then two fields required username and password button login i am applying validations then focus are not getting then set focus in unfilled edittext

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

Not filling username then filling password then username entered some toast displayed fine focus are entered in username edittext this is the problem how can implemented focus in unfilled username.

View 2 Replies View Related

Android :: How To Start A Remote Service In Android That Is Implemented In Another App - Different Package

Jun 19, 2010

i'm a bit stuck with remote services in android. thing is i implemented a remote service in package "a.b.c" and i want other applications to be able to access this service. i got rid of the whole crappy aidl-stuff and designed the "interface" of the service to work via broadcasted intents. works fine so far...

problem is: how do i get a different application (different package, different project, maybe even a different developer, ...) to start/stop the service?

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

This will crash my app immediately on startup. what did i do wrong? how will i get this to work?

once it's running, commands and data will be passed via broadcasts. so that should be no real problem...

View 1 Replies View Related

Android :: Implemented An Android Shake Detector That Works Well On Most Phones?

Jul 11, 2010

Has anyone implemented an Android Shake Detector that works well on most phones?I thought it would be fairly simple to implement but I keep getting false results. Basically, what I'm doing is setting up a sensor Listener, checking to make sure it is a SensorManager.SENSOR_ACCELEROMETER event, then only checking the event if the last event I received was more than 50 milliseconds ago (to try to reduce the amount of checking I do).Then I look for 3 "Shakes" within 4 seconds.A "Shake" to me being a speed reading of over 1000 followed by a speed reading of less than 400 within 1 second. If I don't get three "Shakes" within 4 seconds then the counter is reset to zero.At times it seems to work well but I continue to have instances where I just pick up the phone, and it triggers all three shakes, which makes very little sense to me because at other times, I can physically shake the phone quite hard, and not trigger all three shakes.As I said.. it works about 90% of the time correctly, but a 10% error rate is making the feature I want to implement useless.

View 5 Replies View Related

Android :: Created A Method In Another Class But I Can't Use It In OnClick Method From Main Class

Nov 1, 2010

I created a method called insertTable in a class called Table but i can't use it in my onClick method in the main class :

CODE:.......

I want to do a income.insertTable in the onClick method but eclipse say that i need to create a local variable.

View 3 Replies View Related

Android :: How Much Of The Java 6 API Is Implemented By Android

Jul 7, 2009

I want to port an small open source AES encryption class to Android, and it would cut my work down a lot if the API of Android is as close as possible to the Java 6 API.

How much is implemented (or referenceable), as I have tried searching about this on google, and i have not yet come up with anything useful?

View 3 Replies View Related

Android :: Call OnDraw In Another Method - Then - Refresh - That Call In Another Method

Jun 6, 2010

Basically I'm calling the onDraw method like so...

code:...................

You see I'm drawing it on top of a Camera view and the information being drawn is subject to change. I have a listener setup which will update the variables being drawn at the appropriate time but I now want to "refresh" this draw in that listener.

View 1 Replies View Related







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