[android-developers] Re: Drawing To And Then Re-Using A Bitmap In A Map Overlay

2011-09-08 Thread kamiseq
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)

[android-developers] Re: starting service from launch icon

2011-07-26 Thread kamiseq
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

[android-developers] starting service from launch icon

2011-07-24 Thread kamiseq
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

[android-developers] Re: starting service from launch icon

2011-07-24 Thread kamiseq
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

[android-developers] Re: how to distinguish app is running in emulator

2011-07-20 Thread kamiseq
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

[android-developers] how to distinguish app is running in emulator

2011-07-19 Thread kamiseq
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

[android-developers] Re: how to distinguish app is running in emulator

2011-07-19 Thread kamiseq
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

[android-developers] Re: clearing notification

2011-07-18 Thread kamiseq
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

[android-developers] Re: clearing notification

2011-07-18 Thread kamiseq
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,

[android-developers] Re: clearing notification

2011-07-18 Thread kamiseq
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

[android-developers] clearing notification

2011-07-17 Thread kamiseq
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);

[android-developers] Re: Problem with Progress Dialog

2011-07-17 Thread kamiseq
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

[android-developers] Re: alert dialog with refreshable listview

2011-07-15 Thread kamiseq
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

[android-developers] Re: startService() runs the service in a seperate process?

2011-07-14 Thread kamiseq
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

[android-developers] Re: alert dialog with refreshable listview

2011-07-14 Thread kamiseq
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

[android-developers] Re: alert dialog with refreshable listview

2011-07-14 Thread kamiseq
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

[android-developers] Re: alert dialog with refreshable listview

2011-07-14 Thread kamiseq
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

[android-developers] alert dialog with refreshable listview

2011-07-13 Thread kamiseq
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);

[android-developers] Re: alert dialog with refreshable listview

2011-07-13 Thread kamiseq
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

[android-developers] Re: alert dialog with refreshable listview

2011-07-13 Thread kamiseq
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

[android-developers] service icon

2011-07-10 Thread kamiseq
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

[android-developers] Re: service icon

2011-07-10 Thread kamiseq
, 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

[android-developers] Re: gps is off even though location updates are requested

2010-11-08 Thread kamiseq
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

[android-developers] Re: gps is off even though location updates are requested

2010-11-08 Thread kamiseq
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

[android-developers] Re: google maps api

2010-11-05 Thread kamiseq
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

[android-developers] gps is off even though location updates are requested

2010-11-05 Thread kamiseq
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

[android-developers] Re: gps

2010-11-05 Thread kamiseq
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

[android-developers] Re: activity lifetime and lifetime of instance

2010-11-05 Thread kamiseq
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

[android-developers] Re: How to dump a Sqlite statements txt file into db.

2010-11-05 Thread kamiseq
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

[android-developers] traversing activity stack

2010-09-01 Thread kamiseq
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,

[android-developers] Re: traversing activity stack

2010-09-01 Thread kamiseq
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

[android-developers] Re: traversing activity stack

2010-09-01 Thread kamiseq
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

[android-developers] Re: Sensor listeners - threads and responsiveness

2010-06-26 Thread kamiseq
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

[android-developers] Re: Sensor listeners - threads and responsiveness

2010-06-25 Thread kamiseq
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

[android-developers] Sensor listeners - threads and responsiveness

2010-06-24 Thread kamiseq
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

[android-developers] Re: creating and opening sqlitedb on sdcard for api7

2010-06-21 Thread kamiseq
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

[android-developers] Re: creating and opening sqlitedb on sdcard for api7

2010-06-21 Thread kamiseq
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

[android-developers] creating and opening sqlitedb on sdcard for api7

2010-06-20 Thread kamiseq
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

[android-developers] Re: creating and opening sqlitedb on sdcard for api7

2010-06-20 Thread kamiseq
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

[android-developers] Re: creating and opening sqlitedb on sdcard for api7

2010-06-20 Thread kamiseq
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

[android-developers] Re: creating and opening sqlitedb on sdcard for api7

2010-06-20 Thread kamiseq
:-) 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

[android-developers] Re: switching GPS on and off

2010-06-17 Thread kamiseq
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

[android-developers] Re: switching GPS on and off

2010-06-17 Thread kamiseq
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

[android-developers] Re: switching GPS on and off

2010-06-17 Thread kamiseq
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

[android-developers] switching GPS on and off

2010-06-16 Thread kamiseq
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

[android-developers] Re: switching GPS on and off

2010-06-16 Thread kamiseq
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

[android-developers] Re: content provider, activity.startManagingCursor and simple dao

2010-06-02 Thread kamiseq
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

[android-developers] Re: Android finishActivity()

2010-06-02 Thread kamiseq
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

[android-developers] content provider, activity.startManagingCursor and simple dao

2010-06-01 Thread kamiseq
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

[android-developers] Re: content provider, activity.startManagingCursor and simple dao

2010-06-01 Thread kamiseq
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

[android-developers] accessing sqlite db

2010-05-14 Thread kamiseq
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

[android-developers] Re: accessing sqlite db

2010-05-13 Thread kamiseq
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

[android-developers] Re: understanding intents and notepad sample

2010-05-13 Thread kamiseq
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

[android-developers] accessing sqlite db

2010-05-12 Thread kamiseq
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

[android-developers] understanding intents and notepad sample

2010-05-12 Thread kamiseq
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

[android-developers] Re: Sqllite database join query

2010-05-12 Thread kamiseq
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

[android-developers] Re: accessing sqlite db

2010-05-12 Thread kamiseq
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

[android-developers] Re: Complete Newbie - Looking for some help :)

2010-05-12 Thread kamiseq
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