hej,
I noticed the same thing that draw method is called several times
after zooming the map view and each time 0,0 coordinates are updated.
and I noticed also that if I create my path and draw it to the bitmap
for a first time when zoom change then shape is completely wrong
(sometimes it is ok)
that works thanks!
--
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
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For
hi,
Im working on API 7 and I need to launch service without showing any
activity, my service will add status bar notification so user can
interact with application later.
I cant find any other solution then launching activity that will
finish immediately after starting service but this shows a
I cant find any other solution then launching activity that will
finish immediately after starting service but this shows a blank,
white screen for a second so this is rather poor workaround.
this is what I thought but it is showing white screen for a moment so
I dont know how to remove that
On
thanks, it is what im looking for!!!
--
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
To unsubscribe from this group, send email to
hej,
I would like to have something in application I can tell that app is
running in emulator or in existing device, something like system
property
I need to switch off/replace some functionality when app is running on
emulator. such as callback for orientation listener - this will never
be
ok, so there is no environment flag that im in development mode??
--
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
To unsubscribe from this group, send email to
I ll check that method name im using!
yes it is called because my service is not running and there is no
process for my app!
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
ok, in on destroy im sending new Notification with different icon (ok
this wasnt obvious from the code I posted before):
final Notification notification = new Notification(icon, notify_title,
when);
//IM SURE THE ICON IS CHANGED
final PendingIntent contentIntent = PendingIntent.getActivity(this,
well, it seems that if I send notification with ID (ongoing ID = 0)
Notification.FLAG_ONGOING_EVENT | Notification.FLAG_FOREGROUND_SERVICE
then it will stay forever there;]
and if I send other notifications to the same ID (0), icon and intents
will update but flags stay :/
I dont know if this is
hi, I ve searched for answer here but nothing seems to work as
expected.
I have a service that in onStartCommand sends notification, created as
final Notification notification = new Notification(icon, notify_title,
when);
final Intent notificationIntent = new Intent(this, MyActivity.class);
are you creating this dialog every time you want to show it or are you
try to set progress value on already created dialog??
On 17 Lip, 11:29, Ajith Kamath sjce.aj...@gmail.com wrote:
Hi
I want to use Progress Dialog in my application with default style(Spin
Wheel).
I use setMax() to set the
so my final solution is
A. create custom adapter based on CursorAdapter (or BaseAdapter)
B. create custom row layout in xml and inflate it in adapter
C. create AlertDialog and setItem(new CharSeq[0], null) - this will
create default list with default look and feel, without this code
listView is
services are running in different process, you can bind to it so any
activity could exchange data with it. start service just starts
service
hope that helped
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email
heh, ok, but first you need to get array(list) of Element objects from
db with ids) then rewrite it to array of CharSequence and when user
clicks on item search for Eleement object in first list. this
should be far easier ;]
thanks for answers!
--
You received this message because you are
ok, that could be perferct but maybe I ll say something stupid.
If I write my custom adapter I have to pass row layout to it? right or
can I somhow avoid that and use the one builder is using???
;-)
--
You received this message because you are subscribed to the Google
Groups Android Developers
ok I just thought there is another way, thanks!
--
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
To unsubscribe from this group, send email to
hej,
I want to create a simple AlertDialog with ListView. the list contains
all entries in my local db, so in onCreateDialog I created alert
builder and added items to it with onItemClick callback.
AlertDialog.Builder builder = new AlertDialog.Builder(this);
I think this is the stupidest thing in android there should be a model
that could be easily invalidated :/
thanks Ill use that for now
any other tips highly appreciated ;]
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this
OK but still I cannot use the default adapter as I need map selected
item index to entry id!
--
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
To unsubscribe from this
it is maybe stupid question but I dont really get it from
documentation
android:icon
An icon representing the service. This attribute must be set as a
reference to a drawable resource containing the image definition. If
it is not set, the icon specified for the application as a whole is
used
, kamiseq kami...@gmail.com wrote:
I added an icon to my service but is not visible or at least I cannot
find it :/ can someone give my example where I could use it
I believe it shall appear at system settings - applications - running
services.
But I'd suggest to leave this attribute unset (thus
hi,
I did some research and I ve found out that the problem is with
orientation sensor and not with gps.
I also found http://code.google.com/p/android/issues/detail?id=3708
this and they shows some work arounds, can somebody tell me more about
this, has anyone experience with this issue??
Im
one more link
https://sites.google.com/a/bug-br.org.br/android/technical-documents/sensors-and-standby-mode
just in case it may help anyone
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
well it worked well for me :/
i did exactly as in the official tutorial
--
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
To unsubscribe from this group, send email to
hi, all
actually I have two problem right now with gps provider. I have
samsung spica so maybe this is something in a hardware.
1. location's accuracy is always set to 0 - can anybody explain it, is
it phone specific?? or something Im doing wrong.
2. I created activity that starts service in
do you work with google api, and have map.jar added?
but this seems like manifest problem and not gps.
did it worked without mapactivity? if yes then you probably dont have
map.api jar - read again tutorial
--
You received this message because you are subscribed to the Google
Groups Android
sorry for off topic but
what about activities that are bound to service that is doing some
stuff and then on bind activity gets reference to this service and
vice versa, so only if activity unregister from service before it is
destroyed, it will be garbage collected, won't be?
--
You received
well 200 rows is not a such big deal,
try using import statement or using transaction for all inserts -
anyway look for bulk operation
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
hi,
how can I assure I always go back clicking on custom menu option to
previous activity.
I think it is a good idea to start new activities by
startActivity(context, XActivity.class) but then when option is
selected I should call finish on that activity or again call
startActivity(this,
ok I know I can always press on phone back button, but I want to mimic
such a functionality and allow a user can choose option from option
menu.
the problem I see is that when starting activity by passing context
and next-activity-name I cannot get context (the caller) from intent
that started
just one more thing, what is the difference between startActivity and
startActivityForResult, can I have two activities of the same class on
a stack displaying ie list with different data each?
in another words what android really does when startActivity is
called, does it resume or create
Ok thanks,
and I ve found that writes to db had made my app unresponsive
--
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
To unsubscribe from this group, send email to
pop
On 24 June, 23:50, kamiseq kami...@gmail.com wrote:
hi,
I have two questions about sensor listeners
1. from which thread are sensor values updated and should this be
synchronized? can sensor's listener callback be a good place to call
custom's view onDraw method? as this should be done
hi,
I have two questions about sensor listeners
1. from which thread are sensor values updated and should this be
synchronized? can sensor's listener callback be a good place to call
custom's view onDraw method? as this should be done from different
thread. I cant find anything about it. In
is there anyone there who tried creating a database on an SD card?
I ve found how to create and start emulator with sdcard image but how
to manage the sdcard on emulator without eclipse plugin? which tool
should I use to browse and copy data from and to sd card??
--
You received this message
you are my man :D
thanks
On 21 June, 14:12, Mark Murphy mmur...@commonsware.com wrote:
On Mon, Jun 21, 2010 at 8:07 AM, kamiseq kami...@gmail.com wrote:
which tool
should I use to browse and copy data from and to sd card??
DDMS's File Manager, or the adb pull command.
--
Mark Murphy
hi all,
I have a small problem with my code, I am trying to create (if that
does not exist) and open connection to sqlite but it fails to open. Im
doing that cos I know that my db can be big and may not fit into
mobile local storage.
1. I get path to external storage and get the full path to
im running this app on emulator, I added permission with no success.
I dont have any caused by this is all I have from my logcat (with no
filters)
D/SqliteExternalHelper( 434): getting readwrite database
D/SqliteExternalHelper( 434): opening writable database at /
sdcard:my_external_db.db
I tried manually replacing File.pathSeparator with / but the result
was the same, i will try that again ..
so you say that the code is ok?
On 20 Cze, 17:27, Mark Murphy mmur...@commonsware.com wrote:
On Sun, Jun 20, 2010 at 11:20 AM, kamiseq kami...@gmail.com wrote:
E/Database( 434
:-) heh ok, I appreciate that :)
On 20 Cze, 18:30, Mark Murphy mmur...@commonsware.com wrote:
On Sun, Jun 20, 2010 at 12:11 PM, kamiseq kami...@gmail.com wrote:
I tried manually replacing File.pathSeparator with / but the result
was the same, i will try that again ..
so you say
status is temporary unavailable then it is available but no updates on
positions comes as I click. is it a bug or feature. I need to try this
in my phone.
On Jun 16, 2:04 pm, Mark Murphy mmur...@commonsware.com wrote:
On Wed, Jun 16, 2010 at 7:42 AM, kamiseq kami...@gmail.com wrote:
funny cos I ve
at 10:04 AM, kamiseq kami...@gmail.com wrote:
ok, so if I have a widget on my desktop on the phone and gps is switch
off (dispabled) how should I enable/disable it. I couldn't find
anything on that.
The user does that (e.g., via the Settings application). Your code
cannot change whether GPS
ok, I thought that those widgets are ordinary android apps written by
other smart gays, so that s why I was confused.
thanks
On 17 Cze, 21:13, Mark Murphy mmur...@commonsware.com wrote:
On Thu, Jun 17, 2010 at 2:14 PM, kamiseq kami...@gmail.com wrote:
once again, maybe it is too much sun over
I cant really find anything on how to start GPS device if it is
switched off and how to stop it if it is no longer needed.
can someone guide me ???
cheers
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
funny cos I ve always turned on GPS before using maps or other
application :-)
thanks
On 16 June, 12:46, Mark Murphy mmur...@commonsware.com wrote:
On Wed, Jun 16, 2010 at 3:52 AM, kamiseq kami...@gmail.com wrote:
I cant really find anything on how to start GPS device if it is
switched off
oh well what if you come back to app after a while and you need take
first row from a table. oh comon this not a rocket science. sql is all
well known. so how to query calllog in some normal manner
Put in a constraint based upon date or something.
--
You received this message because you are
do not startactivityfor result just start another activity
On 2 June, 05:29, mike hasitharand...@gmail.com wrote:
hi guys,
i have 2 activities. (Activity A and Activity B).
Main Activity A is the Starting Activity. Activity B will run on top
of Activity B and is a Blur View.
when i'm
hi all,
I am writing simple app that will read callLog content provider
transform data and write it to my own table. my app will not show data
directly from calllog content provider.
1. now one problem that I have is I cannot limit how much rows query
will return (by calling
hi, my replay below
I am writing simple app that will read callLog content provider
transform data and write it to my own table. my app will not show data
directly from calllog content provider.
Why?
I want to aggregate data from calllog, add something from me and
practice.
so I want to
On 13 May, 19:51, Leigh McRae leigh.mc...@lonedwarfgames.com wrote:
After a long battle I have some results that may help others.
Got the game to rendering the emulator correctly by building the
geometry using ByteBuffer instead of IntBuffer and ShortBuffer.
I tried converting to the
On 12 May, 22:53, Christine christine.kar...@gmail.com wrote:
1. where you open and close depends on your app. You can keep the db
open, and close and re-open in onResume and onPause, or you can open
and close before and after you access the db.
ok I know I can ;] but it was more question
blup
On 11 May, 23:10, kamiseq kami...@gmail.com wrote:
hi,
can somebody clarify few things here. I
readhttp://developer.android.com/guide/topics/intents/intents-filters.html
about intents and tried to listen for CALL action so my application
could start if user dial a number and start
hi,
Im starting with android and have few questions about database access.
1. Every tutorial I ve read (ie Notepad) that uses sqlite creates and
opens connection via SQLiteOpenHelper in onCreate callback. but I
really have never seen that the connection is closed (androids throws
exceptions that
hi,
can somebody clarify few things here. I read
http://developer.android.com/guide/topics/intents/intents-filters.html
about intents and tried to listen for CALL action so my application
could start if user dial a number and start conversation.
I tried with something like
intent-filter
use normal query from SQLiteOpenHelper like
Cursor cursor = this.query(statement, arguments); where arguments will
map to ? in your sql
On 12 Maj, 08:37, yves...@gmail.com yves...@gmail.com wrote:
Hi, I already use getContentResolver().query(uri, null, null, null,
null) to do a query. What if I
blup
On 9 Maj, 16:22, kamiseq kami...@gmail.com wrote:
hi,
Im starting with android and have few questions about database access.
1. Every tutorial I ve read (ie Notepad) that uses sqlite creates and
opens connection via SQLiteOpenHelper in onCreate callback. but I
really have never seen
read this
http://developer.android.com/guide/topics/fundamentals.html
hello and notepad tutorial
http://developer.android.com/resources/samples/index.html
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
58 matches
Mail list logo