Android :: Draw Textured Triangles On Device Fails But Emulator Works?
Jan 21, 2010
I have a series of OpenGL-ES calls that properly render a triangle and texture it with alpha blending on the emulator (2.0.1). When I fire up the same code on an actual device (Droid 2.0.1), all I get are white squares. This suggests to me that the textures aren't loading, but I can't figure out why they aren't loading. All of my textures are 32-bit PNGs with alpha channels, under res/raw so they aren't optimized per the sdk docs. Here's how I am loading my textures:......................
View 4 Replies
Apr 2, 2010
I developed a custom content provider for extracting data from zip files. The provider works properly in the emulator but when I run the apk on the device I get no content provider followed by the url The manifest says (outside the application tag
CODE;..................
View 3 Replies
View Related
Sep 7, 2009
I am trying to create an app that gets the location and telephone number of the phone. This is the Code I am using to get the telephone number (I am focusing on sdk 1.5) and in the emulator this works.
View 5 Replies
View Related
Oct 6, 2010
I have implemented rotation of a custom view which runs perfectly on Emulator,but the screen goes blank without any error. When i disable the animation in code[commenting the lines] the view appears on device.
Please help me out. if there is any fox for this.
View 1 Replies
View Related
Feb 14, 2013
I'm developing an App that sends keep-alive packets to its server to ensure the connection is still alive.
The server is java based and thus easily to run. I run the server on a virtual machine (Windows 7). After my App is connected and the first keep-alive packet is received (it displays a message in its console output) I disable the network interface in Windows. This step is very important because by disabling it, there is no way to send any packet back to the client informing it about network changes.
The clients are configured to send every 25 seconds a keep-alive packet, so you don't need to wait long.
When you use the sample JavaClient on Windows 7 it takes less than a minute after the keep-Alive packet and an exception is thrown which triggers reconnection (which currently can't occur). This is the expected behaviour.
When you use the sample Android App on an emulator (tested Android version 2 and 4) it is the same behaviour. So in less than a minute after the keep-alive packet it recognises that the connection is dead, throws an exception, this triggers reconnection.
Problem is now when this App runs on a real device (tested several, Xpearia Arc S, one Cyanogen Mod 4 on Galaxy S3 and my Galaxy S3). I've waited 5 minutes, but there was no exception. This behaviour is reproducable.
Since this is a sample App, it uses no wakelock or service, so to test it is important to have it in foreground all the time (don't switch to other Apps or homescreen) and increase your display timeout to a few minutes to ensure that it doesn't go off. Use Logcat-Output to get informed whats happening, because there is no output in the App itself.
Now Sample-Code is in the attachement. Something had gone wrong. The Code consists of 3 Eclipse projects which you can easily import.
View 3 Replies
View Related
Oct 14, 2009
I am trying to test the availability of a service with a socket. the code is quite simple. Code...
View 5 Replies
View Related
Aug 17, 2010
I am developing a social Networking application and it works fine over WiFi but tried the same over GPRS it gives following Exception,
.....................
View 4 Replies
View Related
Aug 6, 2010
I created a sqlite database to store playlists for a media player I am developing because of extended feature (rather than using the Content Provider). It works perfectly on the 1.6 emulator but FCs on anything higher than 2.0... what has changed that I need to know about as far as opening databases in SDK 2.0+? Here is the logcat.
CODE:.............
Here is the dbhelper class
CODE:................
why can't stackoverflow just use tags like a normal syntax highlighter.
View 2 Replies
View Related
Jul 23, 2010
Windows 7 x64
Eclipse Helios x64
JDK x64
Android SDK r06
When I try to start an emulator from Eclipse (Android SDK setup application) with the scale parameter it just fails. Second Command Prompt screen (which I think is actually a Java app) shows some exception but it closes itself right after. This is very annoying because without the scale, WVGA emulator does not fit on my laptop's screen. Any idea how to fix this? And when I try to start an emulator from Command Prompt with the scale, it works.
View 1 Replies
View Related
Feb 2, 2009
I made some modifications in cupcake camera source code using Eclipse, and try to load to emulator for testing. But it fails installing the apk to the emulator due to the mis-matched signature of android,media, which is set as share user id in manifest.xml. The android,media is pre-built in the emulator. does any one know how those preload packages are signed and how to set correct signature (or keystore) in Eclipse?
View 3 Replies
View Related
Oct 15, 2009
Learning about the NDK and JNI today. I was able to build, install and run the Quake demo that was ported to Android via the NDK 1.6. Worked great. I then started looking at the hello-jni example. This example works for me in the emulator, but does NOT work for me on the G1:
I/ActivityManager( 76): Start proc com.example.hellojni for activity com.example.hellojni/.HelloJni: pid=508 uid=10030 gids={1015} I/jdwp ( 508): received file descriptor 20 from ADB W/dalvikvm( 508): Exception Ljava/lang/UnsatisfiedLinkError; thrown during Lcom/example/hellojni/HelloJni;.<clinit> W/dalvikvm( 508): Class init failed in newInstance call (Lcom/example/hellojni/HelloJni;) D/AndroidRuntime( 508): Shutting down VM W/dalvikvm( 508): threadid=3: thread exiting with uncaught exception (group=0x4001da28) E/AndroidRuntime( 508): Uncaught handler: thread main exiting due to uncaught exception E/AndroidRuntime( 508): java.lang.ExceptionInInitializerError E/AndroidRuntime( 508): at java.lang.Class.newInstanceImpl(Native Method) E/AndroidRuntime............
View 2 Replies
View Related
Jun 6, 2010
I have developed and tested my app on the emulator, and now want to install it on my HTC device. the apk installs successfully, however my database is not going with it. I have created my database using sqliteman browser b/c I have to insert a bulk data before the app starts. I have four tables in my db and call each in different activities and created all on the sqliteman. after the data is inserted I pull back the db onto the data folder of the emulator. it works perfect on the emulator but failed on the device. when I try to pull my db on the real device, it shows access denied problem
View 2 Replies
View Related
Jun 22, 2010
This code:
CODE:...........
works as expected on the emulator (on Android 2.1 virtual device) but on phone (HTC Desire Android 2.1) it just clears the screen, can't see anything drawn. If I comment out the
CODE:..................
It works on the phone, but not if I have the gluLookAt call in onDrawFrame.
What's the problem with gluLookAt in onDrawFrame?
View 1 Replies
View Related
Aug 28, 2010
I want to have a textured sphere in OpenGl ES. What is the best way to do this? One option is to create it manually. Another is to create it in e.g. Blender and load it - what file format should I use?
View 1 Replies
View Related
Sep 14, 2013
after receiving the recent update for my HTC One X (stock ROM, now Sense 5.0 and Android 4.2.2), the Notes Traveler app for my work e-mails is causing problems (it seems to lose account information regularly and notifies me of failed sync). Since it is about to be replaced soon anyway, I wanted to uninstall the app, which is not possible.
I tried to deactivate the device administrator for Lotus Notes in the system security settings. The checkbox remains checked after deactivation, although there was no error message.I tried to uninstall the app using the app management in system settings. However, the button for uninstalling is still deactivated.
When I go to device admins again and tap Lotus Notes in the list, it asks me if I want to activate it as administrator again. So here it seems as if it was removed from the admins, although the checkbox in the list is always checked.The same happens when I start Notes Traveler while Lotus Notes is seemingly not an activated administrator. I can then re-enter my password and the sync works for a while (less than 1 day) before it loses the password again and re-entering won't fix the problem unless I try removing Lotus Notes from the device admins (which causes all Traveler data to be wiped).
So it seems that the removal of Lotus Notes from device administrators does not work properly. Although I am asked for reactivation when I start the app again, the administrator is still active somewhere in the system and prevents uninstallation of the app.
I already asked HTC support but they only wrote that the system update often cannot be extracted completely and the only way to fix it was to wipe the phone. However, I never received any error message during or after the update and everything else is working perfectly well. Therefore I doubt that it is caused by a failed system update installation.
View 3 Replies
View Related
May 1, 2010
I make a simple call to Vibrator.vibrate(long time);, but in the logcat I don't see anything related to it. How can I test if the vibration works using the emulator?
View 3 Replies
View Related
Oct 10, 2010
Google mapview does not load the actual maps in the emulator, just the grid. My overlays are displayed ok. sdk version 2.2. It works fine in a real phone. I use a debug key and trippel checked the manifest. It has been working in earlier projects. I just cant figure it out.. Any ideas, what to check?
View 3 Replies
View Related
May 19, 2012
Here is my vold.fstab WHICH I think is the problem
dev_mount storage_internal /mnt/sdcard 7 /devices/platform/sdhci-tegra.3/mmc_host/mmc1
dev_mount external_sdcard /mnt/external_sd auto /devices/platform/sdhci-tegra.1/mmc_host/mmc2
dev_mount external_usb_disk /mnt/usb_storage auto /devices/platform/tegra-ehci
This is for a Dell Streak 7 ( a tegra 2 device) for a CM9 port.
View 4 Replies
View Related
Mar 17, 2009
I'm currently hosting an app on my own server so my beta testers can test it. I've set up the apk MIME type to be application/ vnd.android.package-archive, and when I try to download the app from the emulator, it downloads the 53KB apk file and installs it. When I try to do the same thing from a real ADP1 device, it only loads 43KB. When I try to install it, the system says that I'm trying to install an app that already exists (called "Android System") and that doesn't require any permissions, but nothing happens when I proceed. logcat tells me
"D/asset (16379): failed to open Zip archive '/ sdcard/download/[name of the app].apk'
Bonus points! When I try to download the app from the emulator, I can see that in the accesslog of my server. Not so when I download it from the device, even after deleting /sdcard/download/* and clearing the cache through the settings. Almost as if the device was loading an old copy from a proxy server. I'm not sure which APN I'm using, but none of the T-Mobile APNs have a proxy AFAICS. Is there a way to circumvent the proxy, assuming that this is the case? And/or tell the proxy not to cache this apk file?
View 7 Replies
View Related
Aug 7, 2010
I am doing some very basic drawing of triangles in OpenGL, but I am seeing strange rendering errors. When I draw a textured square (two triangles) part of the square is missing or the texture is stretched or corrupted. When I draw a square with no texture, part of the square is missing sometimes. I do not see a pattern to when it works and when it doesn't. It might be broken one run, then after a back button and rerun, it works the next. The triangle that's missing is not one of the triangles used to draw the square. Rather it is part of the first triangle and part of the second triangle. The triangles are the bottom right half and the top left half of the square, but the part missing is the bottom left half of the square.
View 4 Replies
View Related
Jun 17, 2010
I cannot render a large triangle on android,what I can see is a rectangle,just like the triangle drops a corner This is my vertex array: [-8240, -3540, 10120, -8240, -3540, -3800, -8240, 10582, 10120] and this is my code: gl.glVertexPointer(va.getComponentCount(), gl.GL_SHORT, 6, vertices); gl.glDrawArrays gl.GL_TRIANGLES, 0, 3);
View 2 Replies
View Related
Nov 8, 2009
Running into REALLY interesting problems with OpenGL ES. Basically when I start my program in 1.5 or 1.6 emulator, it works just fine but on HTC Hero 1.5 it does not. The problem is that the vertices are not being rendered but the gl.glClear() command is working just fine. I followed in with the debugger and it does go into the rendering function and such but still not rendering the vertices...
Here is the code in PasteBin (easier to read: http://pastebin.com/m706686e6 )
And here is the same thing pasted here:
CODE:............
Also I got my projection set in 2D ortho projection to match screen coordinates so that's why scale to 50,50 to actually make a bit bigger. I've tried using glDrawElements and glDrawArrays and nothing on the actual phone but works perfectly fine on the actual emulator. Any ideas where I might be going wrong? Why is the actual phone not rendering the vertices like the emulator is?
View 7 Replies
View Related
Jul 9, 2010
I have an android application that parses some HTML, downloads an image, and displays it. I'm using an AsyncTask to do the HTML parsing and image downloading, but that shouldn't be relevant. I never have a problem when I'm on WiFi on my phone, when I'm using the Eclipse debugger on my phone, or when I'm using the emulator. When I have my phone on the cell network (even with pretty good reception), the image sometimes fails to display. I'm having a hard time figuring out what is wrong, since the problem cannot be reproduced in the debugger. Does anyone have any idea what could be wrong?
Update: I have narrowed it down to the image downloading function. This way my original code:.......................
View 1 Replies
View Related
Sep 11, 2012
I'm working on a project to display a route in a MapView based on current location from GPS Provider. I'm able to draw the path between two points but the problem starts when the location changes to a new point causing the draw path to erase. Basically my Location Listener saves the current Geopoint and sets the new Geopoint location and after that it starts the overlay to draw a path based on those two points. I think an option could be saving the coordinates to a database and then pulling the information from there to draw the path.
private class MyLocationListener implements LocationListener {
public void onLocationChanged(Location location) {
Toast.makeText(getBaseContext(), "Tracking device..",
Toast.LENGTH_SHORT).show();
[code]....
View 1 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
Jul 6, 2010
I have tried with zero success to get a USB debug connection from a WinXP dev box to a brand X Android 1.6 tablet. I believe I had everything configured correctly on the Android and installed correctly on the dev box, but when the two are connected with a USB cable NOTHING HAPPENS; i.e. Windows finds no new hardware much less a new USB device; therefore, I cannot then install the Android SDK USB drivers on Windows and do the debug thing with Eclipse.
Either the mfg of the Android tablet device has disabled USB debugging and just didn't remove the UI that appears to enable it -- or I've left out some crucial step(s). (The device manual is 100% Chinese and I'm 0% Chinese, so it's no help. The tablet is very nearly, but not, the model A84 7" touch screen 'laptop' at 'www.lezestar.com' in case this helps.)
On the tablet:
- 'Settings/Application/Development/USB Debugging' is enabled.
- Tried 'Settings/Application/Development/Allow mock locations' enabled and not.
- Has 500MB internal flash 'hard disk'
- Has installed 2G SD card
- Firmware: 1.6
- Kernel: 2.6.29-002360g4f8dbbb-dirty
- Build No: 1.7.3
On Dev box:
- Windows XP SP3
- Device Manager finds no 'new hardware' when XP<-->Android USB cable is connected.
- Neither USBDeview.exe (Nirsoft) nor USBView.exe (Microsoft) find any evidence of connection with the Android
- Eclipse Galileo (3.5.2) with Android SDK (for 1.6) and ADV Manager.
- USB Driver package, rev 3. downloaded using ADV Manager.
Other:
- USB ports on both Tablet and dev box successfully connect a USB mouse.
- Tablet and Windows XP have been rebooted often.
Is permanently disabling debugging something that Android manufacturors are allowed to do and therefore I'm trying something that can't be done?
If the mfg has 'disabled' debugging, is there a way to work around this; e.g. download a tool that can change Android OS configuration to reenable it?
View 2 Replies
View Related
Mar 27, 2010
How good is the GPU on the Desire compared to the others? How many triangles can it do per sec? Or however its measured
View 1 Replies
View Related
Aug 1, 2012
The command "fastboot oem unlock" works on all android device?
View 2 Replies
View Related
Sep 5, 2010
In my android application I use this method in "draw" Overlay class for draw route on map. Can someone tell me if this method is good (in terms of performance) for route draw on map or I must to put code in Thread ??
I'm new to android.
public synchronized void draw(Canvas canvas, MapView mapView, boolean shadow) {
if (pointsAndTimes.isEmpty()) {
return;
}
Projection projection = mapView.getProjection();
Paint paint = new Paint();
paint.setARGB(250, 255, 0, 0);.............
View 1 Replies
View Related
Nov 3, 2009
How to know if the application is running on emulator or on a real device? I want to implement a function to detect wifi connection. If the application is running on emulator, just skip the wifi detection, while on real device, the wifi connection check should be done. how to do that?
View 11 Replies
View Related