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 set
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:
@Ove
.. solution is here: http://mysticlakesoftware.blogspot.com/ - cloning
event.values[] does work.
On Aug 23, 11:01 am, olko wrote:
> .. Ok, that should have been Sensor.TYPE_ORIENTATION i.s.o. deprecated
> SensorManager.SENSOR_ORIENTATION:
>
> Sensor sensor
above 70 degrees no matter what
orientation the phone has.
On Aug 23, 10:25 am, olko wrote:
> .. I run it on G1.
>
> On Aug 23, 10:14 am, olko wrote:
>
>
>
> > I am experimenting with orientation sensor, register it like this:
>
> > SesnorManager sensor_manager
.. I run it on G1.
On Aug 23, 10:14 am, olko wrote:
> I am experimenting with orientation sensor, register it like this:
>
> SesnorManager sensor_manager = (SensorManager)getSystemService
> (Context.SENSOR_SERVICE);
> Sensor sensor_orientation = sensor_manage
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);
sensor_manager.registerListener(sensor_li
> --
> 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
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 wrote:
> The LocationProvider seems to be not working in 1.5 CR
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?
--~--~-~--~~
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 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:
http://schemas.android.com/apk/res/
android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
http://schemas.android.com/apk/res/android";
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=gst&q=getOverlays#38bab7cdd70598f7
to create am
> It will work :)
yes, it does :)
On Mar 4, 9:45 am, Romain Guy wrote:
> It will work :)
>
> On Wed, Mar 4, 2009 at 12:39 AM,olko wrote:
>
> > I am trying to change ListView adapter on the fly like this (the
> > AdapterMain* extends BaseAdapter):
>
> &g
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 below a TextView. This is how far I am:
The ImageView makes what I want - a scaled to fill the parent
separator, but this is somewhat not an ideal solution. The
android:drawable* in the TextView do not
Hi, I am trying to get those nicely looking android list dividers
above and bellow a TextView. So far I am here:
The ImageView makes what I want - the image scales to fill the parent,
but this is not really an ideal solution. In the TextView the
android:drawable* scale horizon
21 matches
Mail list logo