from-irc

SQLiteOpenHelper.getWriteableDatabase() null pointer exception on Android

I've had fine luck using SQLite with straight, direct SQL in Android, but this is the first time I'm wrapping a DB in a ContentProvider. I keep getting a null pointer exception when calling getWritableDatabase() or getReadableDatabase(). Is this just a stupid mistake I've made with initializations in my code or is there a bigger issue? ...

appWidget Orientation Code

I have code in an appwidget that I want to run when the phone's orientation changes on the home screen, ie like when the keyboard flips out. I have an image that I want to change in an imageview in my appwidget. I can't use different layouts linked to the orientation (ie "layout" and "layout-land") because I don't know the name of the im...

Search Suggestions provider

When using a ContentProvider for provide Search Suggestions, provider could be invoked from inside the application or from the Quick Search Box, but ¿is there any way to know where the invocation came from? Additionally, is there any Intent for accessing directly to Search Settings > Searchable Items option? ...

How to create customized Views for AppWidgets?

There is a given set of predefinied Views that can be used in layouts for AppWidgets. How can a customized View added to this list? The minimum requirement is that the class is annotated with RemoteView. What else is necessary to be acceptable as view in the layout.xml? ...

Use Google apps in the emulator

Would it be possible to provide a emulator image that has all the Google apps that come with real devices, like Gmail etc? I don't have access to a 2.0 device which makes it close to impossible for me to develop/debug apps which uses AccountManager etc. ...

Is there a way to monitor and record which applications have started recently?

I would like to know which applications the user has started within the last, say, 24hours. Is this possible? ...

Application compatibility between versions

I can run my application on 1.5, 1.6 and 2.0 emulator and on a 1.5 device without any problems. But some of my users are reporting force close and strange menu entries (see the attachment) using 1.6 and higher version devices. Any ideas? This screen should look like this: http://www.taypo.com/blog/WindowsLiveWriter/TurkceKlavye0.7_6F1...

Custom Content Provider - openInputStream(), openOutputStream()

The content provider / resolver APIs provide a complicated, but robust way of transferring data between processes using an URI and the openInputStream() and openOutputStream() methods. Custom content providers have the ability to override the openFile() method with custom code to effectively resolve an URI into a Stream; however, the met...

Android IRC Office Hours Question About Android Bluetooth RSSI

Hi, I have a question about bluetooth RSSI functionality on the Android (either 2.0 or 2.1): It's easy enough to get the RSSI value when a bluetooth connection is created, but how can you repeatedly get the RSSI value of a connection that is already active? It's really important to be able to do this, because this lets you determine i...

How to size an Android view based on its parent's dimensions

How can I size a view based on the size of its parent layout. For example I have a relativelayout that fills the full screen, and I want a child view, say an imageview, to take up the whole height, and 1/2 the width? I've tried overriding all on onMeasu onLayout onSizeChanged etc and I couldn't get it working.... ...

Is there a way to read transcription of IRC Office hours somewhere ?

Hi, tried to attend some of the office hours but there were some problems with the IRC, so it was very difficult to follow the discussion. Are the past sessions recorded somewhere ? It would be great if the "best" topics are summarized and posted, so other people who wasn't at the particular discussion have the knowledge as well. Thank...

Android NDK C++ JNI (no implementation found for native...)

I'm trying to use the NDK with C++ and can't seem to get the method naming convention correct. my native method is as follows: extern "C" { JNIEXPORT void JNICALL Java_com_test_jnitest_SurfaceRenderer_drawFromJni (JNIEnv* env, jclass c) { // } } with a header wrapped in extern "C" {} aslo. Everything compiles fine, creates a .so ...

Making an HttpClient request inside a BroadcastReceiver for Intent.ACTION_NEW_OUTGOING_CALL

I'm trying to write a service for my Android phone that is similar to Google Voice: it will intercept outgoing calls, replacing the originally dialed number with a number that I look up from a web request. I know that outgoing calls can be diverted using a BroadcastReceiver that requests the Intent.ACTION_NEW_OUTGOING_CALL broadcast as ...

DDMS plugin not loading GPX files

I am unable to load a GPX file in the DDMS eclipse plugin. When specifying a GPX file, no points are added to the emulator control list. I have tried adding KML files as well, generated in Google earth. Is there a way to get these files to work? The content of the file is listed below: <?xml version="1.0" encoding="UTF-8"?> <gpx ver...

Programmatically start / launch VPN connection

I am developing Enterprise applications that need to connect to servers behind the firewall. Can my app start VPN connection programmatically? On 2.0+ platforms, VPN is supported by the platform. Assuming user has already setup VPN parameters, can my app start the VPN connection? Suppose user has not setup any VPN parameters, can my ...

Android OpenGL using both Java and C++

Can you blend Java and native OpenGL calls. For instance having the setup happen in the onSurfaceCreated, but having the onDraw call into native code (or even both)? I'm having trouble getting native code to render, but can't tell if this could be a problem or if I'm throwing c++ exceptions, but they don't bubble up... private stati...

Take picture on HTC tattoo

I wrote an application that takes picture from the camera. I use the native camera application by providing an Uri. When the user has taken the picture and goes back to the application screen, the Bitmap image is null. I dont't know why , it works well on HTC dream/g1 (android 1.5), Nexus One (android 2.1) and motorola milestone/droid (a...

OMA DRM v1 & v2 support on Android

Are OMA DRM v1 and v2 supported on Android? If no, is it planned? is there any third party library that implements OMA DRAM v1 & v2? ...

View component in Meteo/news widget

in android 2.1, there is a default meteo/news widget (I think it Genie Widget) If you open the widget , you have an application which have several tabs. When you slide on the content area under the tab, you switch the tab. Do you know which View component it uses to have this mechanism of switching tabs by sliding the content? ...

How to Parse ical file (.ics) with the ical4j API in Android?

Hello there, I am developing an application that download the schedule calendar file of specific user to the phone memory and shows to the user in different user friendly formats. Get the user's ID entered in the UI Generate the user's unique calendar URL Retrieve the calendar file over HTTP Save the file locally Display the calendar ...