Issue passing context

by Jeffrey » Wed, 30 Mar 2011 00:38:36 GMT


Sponsored Links
 So I'm trying to use openGl to draw an image for a live wallpaper,
using the below method:

https://github.com/markfguerra/GLWallpaperService

And to draw then image Im referencing the foloowimg tutorial:

 http://obviam.net/index.php/texture-mapping-opengl-android-displaying-images-using-opengl-and-squares/ 

The only problem I'm having is the very last part, passing the context
to the square object, because I'm not loading a GLSurfaceview. I've
tried to figure this out myself but my low knowledge of android is
making it difficult. Please help.

-- 



Re: Issue passing context

by Jeffrey » Wed, 30 Mar 2011 00:44:01 GMT


 The issue is with the last part of the second link, also the xoom
needs better autocorrect...




-- 


Sponsored Links


Re: Issue passing context

by Jeffrey » Wed, 30 Mar 2011 01:01:27 GMT


 Sorry, the issue is the last part of the second link. Also, Xoom needs
better auto correct...




-- 



Other Threads

1. Syncing Cookies

Hi,

My application maintains a session with to a my server using cookies.
One feature  requires opening a Web View to a URL on my server.
Before showing the Web View, I do syncCookie() (see below).

The feature works on the emulator but does not work on the device
(2.1).
Any ideas?

ThnX!

 public static void syncCookie() {
        CookieSyncManager mgr =
CookieSyncManager.createInstance(Screen.activity);
        CookieManager cookieManager = CookieManager.getInstance();
        cookieManager.removeSessionCookie();
        cookieManager.setCookie(ServerProxy.URL,
ServerProxy.sessionId);
        mgr.sync();
    }

-- 

2. Disable dexopt

Hi,

When I build framworks/base/services/java, push it to the phone for
testing, and restart, i get a lot of dex optimizations for every apk
in the system. It takes a lot of time, how can i avoid this ? it
doesn't happen when i rebuild and update other parts of the system
like frameworks/base.

10x.

here is part of the dexopt, dexinv:

D/installd(   94): DexInv: --- BEGIN '/system/app/Launcher.apk' ---
D/dalvikvm( 5156): creating instr width table
D/dalvikvm( 5156): DexOpt: load 54ms, verify 133ms, opt 4ms
D/installd(   94): DexInv: --- END '/system/app/
Launcher.apk' (success) ---
I/dalvikvm( 5067): DexOpt: mismatch dep signature for '/cache/dalvik-
cache/sys...@framework@services....@classes.dex'

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. Using the Android Camera

4. System not support the long-pressed behavior entering screen-off mode

5. sysinfo function porting to NDK

6. Parsing HID report using hid class driver

7. Trouble debugging application on device