[android-developers] SQLite Cursor.setNotificationUri() usage.

2012-09-01 Thread olko
I have a custom content provider for an SQLite database in my application, but for queries from the application itself I would like to use SQLiteDatabase directly. The question is how to notify cursors about changes in the database. I've come up with the solution below. A select query and

[android-developers] Compound drawable in CheckedTextView

2011-12-10 Thread olko
I would like to display a drawable on the left side of text in a CheckedTextView. The whole thing looks like this: AlertDialog ListView (set with setSingleChoiceItems) ListAdaper items CheckedTextView ... CheckedTextView In onPrepareDialog() I do the following:

[android-developers] SensorEventListener for SENSOR_ORIENTATION - what are the units of event.values[]?

2009-08-23 Thread olko
I am experimenting with orientation sensor, register it like this: SesnorManager sensor_manager = (SensorManager)getSystemService (Context.SENSOR_SERVICE); Sensor sensor_orientation = sensor_manager.getSensorList (SensorManager.SENSOR_ORIENTATION).get(0);

[android-developers] Re: SensorEventListener for SENSOR_ORIENTATION - what are the units of event.values[]?

2009-08-23 Thread olko
.. I run it on G1. On Aug 23, 10:14 am, olko y.olkho...@gmail.com wrote: I am experimenting with orientation sensor, register it like this: SesnorManager sensor_manager = (SensorManager)getSystemService (Context.SENSOR_SERVICE); Sensor sensor_orientation = sensor_manager.getSensorList

[android-developers] Re: SensorEventListener for SENSOR_ORIENTATION - what are the units of event.values[]?

2009-08-23 Thread olko
above 70 degrees no matter what orientation the phone has. On Aug 23, 10:25 am, olko y.olkho...@gmail.com wrote: .. I run it on G1. On Aug 23, 10:14 am, olko y.olkho...@gmail.com wrote: I am experimenting with orientation sensor, register it like this: SesnorManager sensor_manager

[android-developers] Re: SensorEventListener for SENSOR_ORIENTATION - what are the units of event.values[]?

2009-08-23 Thread olko
.. solution is here: http://mysticlakesoftware.blogspot.com/ - cloning event.values[] does work. On Aug 23, 11:01 am, olko y.olkho...@gmail.com wrote: .. Ok, that should have been Sensor.TYPE_ORIENTATION i.s.o. deprecated SensorManager.SENSOR_ORIENTATION: Sensor sensor_orientation

[android-developers] Re: Upgrading from SDK 1.1 to 1.5 - map API key not valid?

2009-08-20 Thread olko
? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 19, 1:50 pm, olko y.olkho...@gmail.com wrote

[android-developers] What happened with Network LocationProvider after 1.5 CRC37 update?

2009-08-19 Thread olko
The LocationProvider seems to be not working in 1.5 CRC37. Any ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com

[android-developers] Upgrading from SDK 1.1 to 1.5 - map API key not valid?

2009-08-19 Thread olko
I've just upgraded my SDK from 1.1 to 1.5 - everything's fine besides - one thing in debug mode map does not appear anymore. The view is there (also all overlays), but it's empty. Do I need a new map API for 1.5? Has it something to do with the debug keystore?

[android-developers] Re: What happened with Network LocationProvider after 1.5 CRC37 update?

2009-08-19 Thread olko
It seems that the Network LocationProvider is very slow after the CRC37 update - in the past ~1sec was needed to acquire a fix, now you should really be paitent - it takes ~1min before you get a fix.. On Aug 19, 9:16 pm, olko y.olkho...@gmail.com wrote: The LocationProvider seems

[android-developers] GPS on G1/G2

2009-07-18 Thread olko
I am wondering if an application that uses GPS and was developed and tested on the emulator and G1 will work on G2? I have got a comment from a G2 user that GPS did not work.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] How to redraw a child view?

2009-06-08 Thread olko
Hi, I have a custom view which is a part of ListView's items. If I invalidate the custom view its onDraw() does not seem to be called (SDK 1.1) As temporary solution I call ListView's invalidate but it feels a bit of overkill. Is there a way to invaildate/redraw separate child views?

[android-developers] Re: Main and three binder threads are running after application close

2009-05-23 Thread olko
Well, this is what I observe when I press the back button: In the main activity: - onPause() is called - onStop() is called - on Destroy() is called In the remote service: - onUnbind() is called (I unbind in onDestroy() of the main activity) - onDestroy() is called After that in the debugger:

[android-developers] Main and three binder threads are running after application close

2009-05-21 Thread olko
My application starts a remote service and binds to it. If I close the application with the back button there are still some threads running (listed in the Debug View of Eclipse) - main thread, and three Binder threads. In onDestroy() I call unbindService(service_connection) - is there something

[android-developers] Custom drawable shadow - how to make it (light-)grey?

2009-05-14 Thread olko
I have a subclassed drawable - using it as an info balloon on maps. Everything's fine besides one thing - it throws a shadow which is of the same colors as the info balloon. Does anybody know how to make the shadow (light-)grey - like usual drawable shadow?

[android-developers] LinearLayout over MapView in MapActivity

2009-05-04 Thread olko
Hi, I am trying to get an instance of LinearLayout over MapView in a MapActivity: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent

[android-developers] Null pointer exception in MapActivity

2009-03-13 Thread olko
I am using a procedure described here: http://developer.android.com/guide/tutorials/views/hello-mapview.html http://androidguys.com/?p=1413 http://groups.google.com/group/android-developers/browse_thread/thread/fe23998c189ebcbd/38bab7cdd70598f7?lnk=gstq=getOverlays#38bab7cdd70598f7 to create am

[android-developers] Re: Will it work if I setListViewAdapter dynamically?

2009-03-06 Thread olko
It will work :) yes, it does :) On Mar 4, 9:45 am, Romain Guy romain...@google.com wrote: It will work :) On Wed, Mar 4, 2009 at 12:39 AM,olkoy.olkho...@gmail.com wrote: I am trying to change ListView adapter on the fly like this (the AdapterMain* extends BaseAdapter):

[android-developers] Will it work if I setListViewAdapter dynamically?

2009-03-04 Thread olko
I am trying to change ListView adapter on the fly like this (the AdapterMain* extends BaseAdapter): if(main_view) { setListAdapter(new AdapterMain(app_context)); }

[android-developers] How to scale android:drawableTop/drawableBottom in a TextView to fill parent?

2009-03-02 Thread olko
Hi, I am trying to get those nicely looking android list dividers above and bellow a TextView. So far I am here: TextView android:id=@+id/item_footer android:layout_width=fill_parent android:layout_height=wrap_content

[android-developers] How to scale android:drawableTop/drawableBottom in a TextView to fill parent?

2009-03-02 Thread olko
Hi, I am trying to get those nicely looking android list dividers above and below a TextView. This is how far I am: TextView android:id=@+id/item_footer android:layout_width=fill_parent android:layout_height=wrap_content