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
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:
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);
.. 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
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
.. 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
?
--
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
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
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?
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
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
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?
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:
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
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?
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
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
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):
I am trying to change ListView adapter on the fly like this (the
AdapterMain* extends BaseAdapter):
if(main_view) {
setListAdapter(new
AdapterMain(app_context));
}
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
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
21 matches
Mail list logo