Android :: SQLite - Works Perfect In 1.6 Emulator - Won't Work On The Phone - 2.2 - Or 2.0 - Emulator

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.

Android :: SQLite - works perfect in 1.6 emulator - won't work on the phone - 2.2 - or 2.0 - emulator


Android :: Works On Emulator - Not On Phone

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

Android : Google Maps Works On Phone NOT On Emulator / Way To Fix

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

Android :: Phone App Works On Emulator / Not On Phone?

Jun 15, 2010

I made a very simple application to start playing around with Android development. It works fine on the emulator, but it gives me the following error when I try to install it on my HTC Hero (v1.5): The application Simple Dial (process com.foo.simpledial) has stopped unexpectedly. Please try again. (Force Close button) and on in the Eclipse console, I get the following message:
[2010-06-14 23:10:52 - Simple Dial] Uploading Simple Dial.apk onto device 'HT9BSHF00222'
[2010-06-14 23:10:53 - Simple Dial] Installing Simple Dial.apk...
[2010-06-14 23:10:56 - Simple Dial] Success!
[2010-06-14 23:10:56 - Simple Dial] Starting activity com.alanvaghti.simpledial.DialActivity on device
[2010-06-14 23:10:57 - Simple Dial] ActivityManager: Can't dispatch DDM chunk 46454154: no handler defined
2010-06-14 23:10:57 - Simple Dial] ActivityManager: Can't dispatch DDM chunk 4d505251: no handler defined
[2010-06-14 23:10:57 - Simple Dial] ActivityManager: Starting: Intent { action=android.intent.action.MAIN categories={android.intent.category.LAUNCHER} comp={com.alanvaghti.simpledial/com.alanvaghti.simpledial.DialActivity} }
I did put 'android:debuggable="true"' inside the application tag on the manifest.xml

View 1 Replies View Related

Android :: Works On Emulator Not On G1

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

Android :: Where Does Emulator Store SQLite Database

Oct 2, 2009

I'm working on an Android application that stores data in a SQLite database. My question is, where does this database file get stored on the filesystem when you're using an emulator?

I have seen that it's stored in /data/data/package_name/databases

But I need to know where on my local machine's hard drive that actually maps to. The database persists on multiple runs of the emulator, even after having shut down the machine, so it can't just reside in RAM...

View 4 Replies View Related

Android :: Test If Vibration Works Using Emulator?

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

Android :: Content Provider Works In Emulator Not On Device

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

Android :: Hosting APKs Files On Site Works Only For Emulator?

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

Android :: Cannot Get Number On Real Device But Code Works In Emulator

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

Android :: Rotate Animation Code Works On Emulator But Not Device / Fox For This?

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

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

Android :: OpenGL ES Works Fine On Emulator But On HTC Hero 1.5 It Does Not Render Vertices

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

Android :: App Works On WiFi In Debug Mode Or On Emulator Not On Cell Network

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

Android :: Read LARGE Sqlite File To Be Copied Into Emulator - Or Device From Assets Folder

May 28, 2010

I guess many people already read this article:

Using your own SQLite database in Android applications: http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/comment-page-2/#comment-12368

However it's keep bringing IOException at

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

I'am trying to use a large DB file. It's as big as >8MB. I built it using sqlite3 in Mac OS X, inserted UTF-8 encoded strings (for I am using Korean), added android_meta table with ko_KR as locale, as instructed above.

However, When I debug, it keeps showing IOException at

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

I suspect it's caused by trying to read a big file. If not, I have no clue why.
I tested the same code using much smaller text file, and it worked fine.

Can anyone help me out on this? I've searched many places, but no place gave me the clear answer, or good solution. Good meaning efficient or easy.

I will try use BufferedInput(Output)Stream, but if the simpler one cannot work, I don't think this will work either.

Can anyone explain the fundamental limits in file input/output in Android, and the right way around it, possibly?

WITH MORE DETAIL:

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

View 3 Replies View Related

General :: No Network Timeout When Connection Lost On Device But Works In Emulator

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

Android :: Unable To Play Youtube Videos On SDK 1.5 Emulator - But Playing Well On SDK 1.0 Emulator

May 19, 2009

Unable to play youtube videos on SDK 1.5 emulator - but playing well on SDK 1.0 emulator. Can you update the source....

View 7 Replies View Related

Android :: Emulator - ERROR - User Data Image Is Used By Another Emulator

Apr 13, 2010

Finally strace gave me this:

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

And several other attempts to call "link" that also fail (sshfs does not support hard links).

Is it possible to change the emulator's behavior to create lock files somewhere in /tmp (using some hash of image path as lock file name)? I am OK to try this myself: which repositories from https://android.git.kernel.org/ are necessary to rebuild the emulator alone, and where in the sources is the code responsible for image locks?

View 4 Replies View Related

Android :: Emulator - SDK 1.1_r1 For Widndows XP - Crash Using Emulator -data

Apr 20, 2009

I need to run several emulator instances to test my application. When i try to run instances using emulator -data <path> option, the emulator crashes.

I got a MS Visual Studio window informing that emulator throws a "unhandled win32 exception".

The exception message in the debugger (MS Visual Studio 2008) is: "Unhandled exception at 0x77c4706c in emulator.exe: 0xC0000005: Access violation reading location 0x03216848"

The emulator runs normally without "-data" option.

View 2 Replies View Related

Android :: Emulator Error - User Data Image Is Used By Another Emulator

Nov 1, 2010

I am getting the following error when I try running my program in the emulator:

emulator: ERROR: the user data image is used by another emulator. aborting`

View 1 Replies View Related

Android :: Application In Emulator Without Restarting Emulator In Eclipse?

Apr 8, 2009

Is there a way to reload an Android application in the emulator without closing the emulator, saving any code changes, and running the emulator again? If I make even a simple change to the layout, it takes about 30 seconds by time I run it in Eclipse and Android "boots", and I can unlock the emulator to run the application. Is there any way to shorten this time when making changes, or is it something I just have to deal with?

View 3 Replies View Related

Android :: Start-emulator Task Never Gets Emulator Running

Mar 16, 2010

I downloaded the most recent version of Android for linux (android-sdk_r05-linux_86.tgz). I was trying to use the the Android Ant task(s) for packaging, building, and deploying my code. I should mention that I'm running AMD64, but have the 32-bit libraries installed. The Android Ant tasks are all broken.

First, the start-emulator task never gets the emulator running. It does get past starting adb, but then just sits there.

Second, the SDK is missing the aapt binary in the tools directory. So, the example notepad sample application will not even package correctly.

I have all the dependencies configured for Android. I can run it from the command line just fine.I assume the Ant code is out of sync with the recent SDK updates. Can anyone shed some light on this problem? At this point, I'm considering writing my own Python scripts to interact with the Android SDK. Ugh.

View 1 Replies View Related

Android :: Can't Get Emulator To Work

Jul 3, 2010

I cant get the emulator to work. It starts up but hangs forever. When I look at the logCat I see many errors and warnings.

View 3 Replies View Related

Android :: AVD - Emulator Won't Work ?

Jun 11, 2009

When I start an AVD with emulator, emulator says the following emulator: emulator window was out of view and was recentred

And then when I try to install an application to the running emulator, it says error: device offline and returns.

View 4 Replies View Related

Android :: Emulator - Dpi Device Option Not Work

Aug 22, 2009

I've launched emulator with -dpi-device option. But any icon size is not changed. Is there other options I must apply?

View 5 Replies View Related

Android :: OpenGL Coding - Emulator Doesn't Work

May 26, 2009

After spending the better half of this day getting my HTC Magic to work in developer mode, I've now found that some of my frist openGL coding attempts that appeared to work fine in the emulator doesn't work as expected on the device. I've narrowed this down to glColorf(r, g, b, a) not working as expected on the device itself. The provided OpenGL samples do work though. So for example, after modifying Cube.java from the samples to the below code I find that I get the expected grey square on the emulator but a blank white screen (background fill colour) on the device.

class Cube { public Cube() { int one = 0x10000; int vertices[] = { -one, -one, -one, one, one, -one, one, one, };
// Buffers to be passed to gl*Pointer() functions // must be direct, i.e., they must be placed on the // native heap where the garbage collector cannot // move them. // // Buffers with multi-byte datatypes (e.g., short, int, float) // must have their byte order set to native order
ByteBuffer vbb = ByteBuffer.allocateDirect(vertices.length*4); vbb.order(ByteOrder.nativeOrder()); mVertexBuffer = vbb.asIntBuffer(); mVertexBuffer.put(vertices); mVertexBuffer.position(0); }
public void draw(GL10 gl) { gl.glFrontFace(GL10.GL_CW); gl.glVertexPointer(2, gl.GL_FIXED, 0, mVertexBuffer); gl.glColor4f(0.5f, 0.5f, 0.5f, 0.5f); gl.glDrawArrays(GL10.GL_TRIANGLE_STRIP, 0, 4); }
private IntBuffer mVertexBuffer;

View 5 Replies View Related

Android :: Droid Emulator Won't Run App Started From Eclipse / Get To Work

May 8, 2010

I have followed the "Hello World" example from Google's Android developer's guide. When I try to run the application in the SDK emulator, nothing happens. The emulator startd up nicely, but after that nothing happens. I can't even see the application in the app tray.

I am using Eclipse with the Android add-on installed.

View 10 Replies View Related

Android : Eclipse Errors - Shuts Down / Work Around For It With Emulator?

May 17, 2009

When I run my applications, I get [2009-05-16 23:33:44 - Emulator] 2009-05-16 23:33:44.002 emulator[20579:10b] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz. The emulator crashes without running my app. Eclipse errors and shuts down. Are there any work around for this with the emulator?

View 2 Replies View Related

HTC Incredible :: How Exactly Does NES Emulator Work

Jun 2, 2010

Do i download the games onto a micro SD cards?

View 6 Replies View Related

Android :: Vibrator Doesn't Work - Force Close Emulator

Aug 30, 2010

I'm still an Android & Java noob, but everything I've seen is telling me this should totally work, but it doesn't! not in the emulator, not on the phone.. I'm trying to use the vibrator using vibrate(500); ..I get an " application stopped unexpectedly " error

Code below:

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

View 1 Replies View Related







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