Re: [android-developers] Android 2.1 and background sensor sampling

2011-07-20 Thread Filip Havlicek
I'm not sure about 2.1 right now, but I'm sure they can be collected on 2.2 (at least with the help of the partial wake lock). 2011/7/20 Fred Niggle fred.nig...@googlemail.com Is it still the case that when the screen is off that sensor data cannot be collected in 2.1 and above? -- You

Re: [android-developers] Re: Service Being paused on screen off.

2011-07-20 Thread Filip Havlicek
Acquire a partial wake lock, that should help. 2011/7/20 Jan Nielsen j...@air-port.dk The common ways to sleep in java, only counts cpu time on the Android platform. So a Thread.sleep(60 * 1000); may become 5 or 10 minutes if the phone is in standby, since it only counts when the cpu is

Re: [android-developers] Re: Service Being paused on screen off.

2011-07-20 Thread Filip Havlicek
, Filip Havlicek havlicek.fi...@gmail.com wrote: Acquire a partial wake lock, that should help. 2011/7/20 Jan Nielsen j...@air-port.dk The common ways to sleep in java, only counts cpu time on the Android platform. So a Thread.sleep(60 * 1000); may become 5 or 10 minutes if the phone

Re: [android-developers] Re: Service Being paused on screen off.

2011-07-20 Thread Filip Havlicek
you might need to recharge the device every few hours). It might be possible to do something about it on the OS level if you root your devices, although that would need a bit more digging. Best regards, Filip Havlicek 2011/7/20 Chris Conry cjco...@gmail.com Thanks for the answers, Makes sense now

Re: [android-developers] database access via Adapter or ContentProvider

2011-07-19 Thread Filip Havlicek
Hi, that really depends on the nature of the application and how would you like to use the database. All those options are possibilities under some circumstances. Best regards, Filip Havlicek 2011/7/16 Dayvid Victor victor.d...@gmail.com Hello Everybody, I am writing an app and it has

Re: [android-developers] Stock browser not altering the history database properly on back button press

2011-07-19 Thread Filip Havlicek
Then I would expect the onChange method not to be fired at all. 2011/7/19 Daniel Drozdzewski daniel.drozdzew...@gmail.com On 19 July 2011 11:33, Filip Havlicek havlicek.fi...@gmail.com wrote: Hi everyone, I'm facing a bit of a problem now and would like to hear your opinions/advices

Re: [android-developers] Stock browser not altering the history database properly on back button press

2011-07-19 Thread Filip Havlicek
is changed. 2011/7/19 Kostya Vasilyev kmans...@gmail.com But when the user goes forward to a particular page for the first time, history is being made (== changed, sorry could not resist). 19.07.2011 14:55, Filip Havlicek пишет: Then I would expect the onChange method not to be fired

Re: [android-developers] Stock browser not altering the history database properly on back button press

2011-07-19 Thread Filip Havlicek
Tried putting if (!selfChange) return; inside the onChange method, stopped printing the history log even for active link clicks. 2011/7/19 Daniel Drozdzewski daniel.drozdzew...@gmail.com On 19 July 2011 11:59, Kostya Vasilyev kmans...@gmail.com wrote: But when the user goes forward to a

Re: [android-developers] Stock browser not altering the history database properly on back button press

2011-07-19 Thread Filip Havlicek
Actually it doesn't work even for a new URL in the history (tried typing a brand new page and then clicking a few links, still no logs). The DATE can be 0 if the URL stands for a bookmark and not a history item. If the DATE 0, it is a history item and the number is millis since 1/1/1970. The

Re: [android-developers] Prompting a user once

2011-07-15 Thread Filip Havlicek
Yes, or a simple static variable if it's the case of a per-instance dialog. 2011/7/15 TreKing treking...@gmail.com On Wed, Jul 13, 2011 at 4:01 PM, elvisdsdev elvisds...@gmail.com wrote: How do I have the app remember that it's already called the AlertDialog and the user's gone through those

Re: [android-developers] Re: database query

2011-07-15 Thread Filip Havlicek
with (assuming he has completed the really basic ones), http://developer.android.com/resources/tutorials/notepad/notepad-ex1.html On Jul 14, 2:49 pm, Filip Havlicek havlicek.fi...@gmail.com wrote: I suggest you read the tutorials on the Android Developers site. 2011/7/14 kirti waykole

Re: [android-developers] Re: How to measure activity load time

2011-07-15 Thread Filip Havlicek
I'm not sure about the others, but I have a really bad feeling about an application with more than 100 Activities. 2011/7/15 sreenivas p m sreenivas...@gmail.com i am looking for a tool that will do this, because i have a application with more then 100 activity or any method or class in

Re: [android-developers] popupwindow on onCreate()

2011-07-15 Thread Filip Havlicek
Insert some extra to the Intent indicating you don't want to show the popup? 2011/7/15 bhavani sankari bhavani...@gmail.com Hi All, I am displaying a popwindow onCreate() of an Activity A.When launching Activity A from Activity B am getting this popupwindow?...I dont want this behaviour

Re: [android-developers] Using GSM Cell Location?

2011-07-14 Thread Filip Havlicek
Hi, did you mean this? http://developer.android.com/reference/android/location/LocationManager.html#NETWORK_PROVIDER Best regards, Filip Havlicek 2011/7/13 DanielSchH dan...@schmitz-huebsch.net Hello, I´m working on a app which needs a location. I ran into some problems

Re: [android-developers] issue in xml parsing

2011-07-14 Thread Filip Havlicek
Hello, what is really your goal? To check if the magazine tag is there (ie if it is a subtag of the first category tag) or to actually parse the XML? Best regards, Filip Havlicek 2011/7/14 vani reddy vani.reddy.bl...@gmail.com Hi , How to check if a particular tag exists under a sub tag

Re: [android-developers] issue in xml parsing

2011-07-14 Thread Filip Havlicek
. Best regards, Filip Havlicek 2011/7/14 vani reddy vani.reddy.bl...@gmail.com Hi Filip, I am very much comfortable with parsing xml..I want to check if the magazine tag is there (ie if it is a subtag of the first category tag)... On Thu, Jul 14, 2011 at 1:15 PM, Filip Havlicek havlicek.fi

Re: [android-developers] Fwd: Parsing issue

2011-07-14 Thread Filip Havlicek
You probably have some error in your code. 2011/7/14 vani reddy vani.reddy.bl...@gmail.com -- Forwarded message -- From: vani reddy vani.reddy.bl...@gmail.com Date: Thu, Jul 14, 2011 at 4:14 PM Subject: Parsing issue To: android-developers@googlegroups.com Hi friends,

Re: [android-developers] Fwd: Parsing issue

2011-07-14 Thread Filip Havlicek
Can't help unless you show the code. 2011/7/14 vani reddy vani.reddy.bl...@gmail.com Hi, The same code is working fine on android emulator but its not working on the device.. On Thu, Jul 14, 2011 at 4:23 PM, Filip Havlicek havlicek.fi...@gmail.comwrote: You probably have some error

Re: [android-developers] Fwd: Parsing issue

2011-07-14 Thread Filip Havlicek
...@gmail.comwrote: hello vani ithink that picture got corrupted otherwise change the picture extension like png to jpg or jpg to png. then it works fine On Thu, Jul 14, 2011 at 4:49 PM, Filip Havlicek havlicek.fi...@gmail.com wrote: Can't help unless you show the code. 2011/7/14 vani reddy

Re: [android-developers] Fwd: Parsing issue

2011-07-14 Thread Filip Havlicek
at 5:56 PM, Filip Havlicek havlicek.fi...@gmail.comwrote: Add || localName.equalsIgnoreCase(image_url) to the other image_url condition, otherwise works fine for me. 2011/7/14 vani reddy vani.reddy.bl...@gmail.com Hi Arun, Its not the picture its the image_url i.e a string value.. On Thu

Re: [android-developers] Fwd: Parsing issue

2011-07-14 Thread Filip Havlicek
http://pastebin.com/iBhZNwu8 2011/7/14 vani reddy vani.reddy.bl...@gmail.com Hi Filip, I tried implementing what u said ,bu its not working..Can u please send me the MyXMLHandler.java file? On Thu, Jul 14, 2011 at 6:32 PM, Filip Havlicek havlicek.fi...@gmail.comwrote: Yes, works fine

Re: [android-developers] Fwd: Parsing issue

2011-07-14 Thread Filip Havlicek
http://i51.tinypic.com/2yorh95.png 2011/7/14 vani reddy vani.reddy.bl...@gmail.com hi Filip, Find the attched screenshot when i run your code from the link u gave On Thu, Jul 14, 2011 at 7:02 PM, Filip Havlicek havlicek.fi...@gmail.comwrote: http://pastebin.com/iBhZNwu8 2011/7/14

Re: [android-developers] Fwd: Parsing issue

2011-07-14 Thread Filip Havlicek
it - it assumes that characters receives the entire text portion between the tags. -- Kostya 14.07.2011 17:59, Filip Havlicek пишет: http://i51.tinypic.com/2yorh95.png 2011/7/14 vani reddy vani.reddy.bl...@gmail.com hi Filip, Find the attched screenshot when i run your code from the link u gave

Re: [android-developers] Prompting a user once

2011-07-14 Thread Filip Havlicek
Is it a global application setting or a per-instance dialog? 2011/7/13 elvisdsdev elvisds...@gmail.com New to Android and playing with GPS settings. I've successfully been able to get my location and find the nearest locations based on a personal database. So far I have two activities.

Re: [android-developers] Ayuda con el emulador Android

2011-07-14 Thread Filip Havlicek
The official language for this group is English as far as I know. 2011/7/14 Jonathan Fajardo Roa jfajardor9...@gmail.com Buenos días señores, Tengo un problema cuando voy a iniciar un emulador Android con la versión 2.3.1 y cualquiera, despues de que actualice en Windows 7 el SDK de Android

Re: [android-developers] database query

2011-07-14 Thread Filip Havlicek
I suggest you read the tutorials on the Android Developers site. 2011/7/14 kirti waykole kirti.carr...@gmail.com hello all, I am new in android . I want to use database for storing my application data.Plz tell me how to use database in android application Thanks in advance -- You received

Re: [android-developers] Google Maps Directions API JSON response Copyright tags

2011-07-14 Thread Filip Havlicek
Note: the Directions API may only be used in conjunction with displaying results on a Google map; using Directions data without displaying a map for which directions data was requested is prohibited. Additionally, calculation of directions generates copyrights and warnings which must be displayed

Re: [android-developers] android help dialog

2011-07-12 Thread Filip Havlicek
Please, write your question in understandable English. Best regards, Filip Havlicek 2011/7/12 yanamala siddaiah siddaiahforj...@gmail.com how to show help dialog . there is a icon when ever we focus on that icon it wants to show transparent dialog and when we loose focus dismiss dialog

Re: [android-developers] Re: How can Button clicks be sent to a View that has been disabled?

2011-07-08 Thread Filip Havlicek
Did you try setting setClickable(false) as well? 2011/7/8 William Ferguson william.ferguson...@gmail.com Has no one seen an incidence of this occurring? I would have said flat out it can't occur except that I see a couple of instances each day. Does this mean that all handler code needs to

Re: [android-developers] Help. I need to pull and eventually send a value via webview

2011-07-08 Thread Filip Havlicek
for supplying the other value back(but I'm really not set on any one method) On Thu, Jul 7, 2011 at 3:58 AM, Filip Havlicek havlicek.fi...@gmail.comwrote: Do you need to display the webpage? Or you are just interested in the value if the hidden input? How is the other value supposed to be sent

Re: [android-developers] Help. I need to pull and eventually send a value via webview

2011-07-08 Thread Filip Havlicek
? Thanks for the help by the way. :) On Fri, Jul 8, 2011 at 6:40 AM, Filip Havlicek havlicek.fi...@gmail.comwrote: Did you consider just downloading the page and parsing the value manually (to get the value) and then providing the downloaded page to webview (to display the page)? 2011/7/7

Re: [android-developers] Help. I need to pull and eventually send a value via webview

2011-07-07 Thread Filip Havlicek
Do you need to display the webpage? Or you are just interested in the value if the hidden input? How is the other value supposed to be sent back to the server, is it via javascript, is it a html form or something else? 2011/7/6 sabanim rickd...@gmail.com OK so it does not need to be webview but

Re: [android-developers] Android Accelerometer Sensor

2011-07-07 Thread Filip Havlicek
And what is the error? 2011/7/7 souissi haythem haythe...@gmail.com Hi, I am trying to work with Accelerometer Sensor. So i tried this example: http://blog.androgames.net/85/android-accelerometer-tutorial/ It work perfectly. But when i change AccelerometerManager activity to a service,

Re: [android-developers] Puzzling crash report. Location app doesn't work if the GPS is on

2011-07-07 Thread Filip Havlicek
In brief, Mark wanted to see the code of the null Location acquisition using GPS. 2011/7/7 Raghav Sood raghavs...@gmail.com Exactly my point. When the GPS is on it returns null for the location, but if the GPS is off then the cell phone tower location works fine. Is there any way that I can

Re: [android-developers] External data an persistence across uninstall

2011-07-05 Thread Filip Havlicek
And why would you need that? I hate those applications I need to clean up after uninstallation. If you want to persist some settings or stuff like that, you can as well synchronize them online with your server. I, as user, actually assume and agree that when I press uninstall, everything gets

Re: [android-developers] External data an persistence across uninstall

2011-07-05 Thread Filip Havlicek
Why don't you include a backup button user can use to backup the database into location he sees fit? 2011/7/5 Chris crehb...@gmail.com In my case, its a backup database file that users would like to keep even if they uninstall the app (the user's data, not mine). For other applications, I

Re: [android-developers] Problem with clicking on list

2011-07-04 Thread Filip Havlicek
Hi Dawid, read this tutorial http://developer.android.com/resources/tutorials/views/hello-listview.html it actually contains the solution for your problem. Best regards, Filip Havlicek 2011/7/1 Dawid Pacholczyk dpacholc...@gmail.com Hi everyone. I have a problem with my custom list. I`ve

Re: [android-developers] touch and click listeners

2011-07-04 Thread Filip Havlicek
Hi Dawid, a brief description of the various listeners is here http://developer.android.com/guide/topics/ui/ui-events.html Best regards, Filip Havlicek 2011/7/1 Dawid Pacholczyk dpacholc...@gmail.com Hello, I have a short question. Should I use in same time OnTouch and OnClick listeners

Re: [android-developers] How to disable the Clear Data button in Application info of Manage appliaction.

2011-07-04 Thread Filip Havlicek
Why do you need to protect it in the first place? 2011/6/30 Nimit Solanki solanki.ni...@gmail.com I am working on android 2.2, In a Application tab of android manifest provide the option of Allow clear data to set true or false. But after setting it to False, my application can't disable the

Re: [android-developers] Re: How to speed up emulator a little ?

2011-07-04 Thread Filip Havlicek
It is and there is no way to speed it up afaik. Best regards, Filip Havlicek 2011/7/4 razor razorjac...@gmail.com My HTC Desire shows steady ~60fps it's so big difference that it's hard to test anything on emulator. Regards razor -- You received this message because you are subscribed

Re: [android-developers] factory reset tips

2011-07-02 Thread Filip Havlicek
Contacts can be backed up directly from the Contacts application via the export command saving them to the SD card. 2011/7/2 bob b...@coolgroups.com My phone is misbehaving and rebooting itself all the time, so I'm going to try a factory reset. Anyone have any tips? (i.e. how to back up

Re: [android-developers] Ain't this supposed to work?

2011-07-02 Thread Filip Havlicek
Apart from what TreKing said, from a brief look at the code I really don't know what com.ibssistemas.pda.adapter.sync is so can't really help you. 2011/7/1 TreKing treking...@gmail.com Tips: 1) Give your post a relevant title: Ain't this supposed to work? tells us nothing about your problem.

Re: [android-developers] Re: Intent / PendingIntent

2011-07-02 Thread Filip Havlicek
It is pretty much explained here http://developer.android.com/reference/android/app/Activity.html 2011/7/1 kypriakos demet...@ece.neu.edu Right - and this is not a blocking operation but rather an asynchronous callback to the onActivityResult right? For some reason the callback was not

Re: [android-developers] Re: factory reset tips

2011-07-02 Thread Filip Havlicek
You don't have to synchronize your phone contacts with gmail (I, for example, don't do that). 2011/7/2 Ali Chousein ali.chous...@gmail.com Do you need to backup your contacts in this case? I would guess that your contacts are also in your G-mail and once you synchronize your phone with your

Re: [android-developers] Appwidget RemoteViews copy

2011-05-21 Thread Filip Havlicek
And? What's the problem with combining the AsyncTask and toast+bail? 2011/5/20 Niall twom...@gmail.com I'm afraid it might take ten seconds. It depends on the connection to the Internet. Thanks for your thought, though. I used have it like that. But I migrated the updating to an AsyncTask

Re: [android-developers] Appwidget RemoteViews copy

2011-05-20 Thread Filip Havlicek
remote views, just one with final information. Best regards, Filip Havlicek 2011/5/20 Niall twom...@gmail.com Thanks for your thoughts and time. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android

Re: [android-developers] Broadcast before shutting down

2011-05-13 Thread Filip Havlicek
http://developer.android.com/reference/android/content/Intent.html#ACTION_SHUTDOWN 2011/5/13 Albert albert8...@googlemail.com Hi there, Does anyone knows what broadcast event gets launched before a device is turned off (if any) - I want to be able to receive it on an app that is installed

Re: [android-developers] Landscape... only if

2011-04-25 Thread Filip Havlicek
Sure, just check the documentation. http://developer.android.com/reference/android/view/WindowManager.html#getDefaultDisplay() http://developer.android.com/reference/android/app/Activity.html#setRequestedOrientation(int) 2011/4/25 Cris94107 cris94...@gmail.com The manifest.xml files let you

Re: [android-developers] Maps - position of zoom controls

2011-04-25 Thread Filip Havlicek
Here you go http://tinyurl.com/3fha8xl 2011/4/25 Neilz neilhorn...@gmail.com When I tap my map, the zoom controls appear in the center of the screen at the bottom. Is it possible to control where they sit? I notice on the google maps app, they are aligned into the bottom right corner of

Re: [android-developers] Re: ImageView not showing image

2011-04-25 Thread Filip Havlicek
Urging for help won't help you, unless you want to repel those who might give you an advice. Post your R.layout.myimageview XML. Does it crash or just not showing up? Best regards, Filip Havlicek 2011/4/25 mack2978 smashmah...@gmail.com Pls help.. On Apr 25, 3:54 pm, mack2978 smashmah

Re: [android-developers] Re: Maps - position of zoom controls

2011-04-25 Thread Filip Havlicek
to be a way of accessing and controlling the buttons from my own ZoomControls object... On Apr 25, 11:18 am, Filip Havlicek havlicek.fi...@gmail.com wrote: Here you go http://tinyurl.com/3fha8xl 2011/4/25 Neilz neilhorn...@gmail.com When I tap my map, the zoom controls appear

Re: [android-developers] Re: Maps - position of zoom controls

2011-04-25 Thread Filip Havlicek
with MapView for a while now, so can't really give any real-life experience. Best regards, Filip Havlicek 2011/4/25 Neilz neilhorn...@gmail.com Yes, this solution does work, thanks. Actually it was the first solution I looked at - problem was it uses a deprecated method, and there doesn't seem

Re: [android-developers] Re: How to mark touch points in an image

2011-04-25 Thread Filip Havlicek
Hi, I think you can put an overlay on the image and draw your marks there. Then just sweep the overlay clean on the button click. Best regards, Filip Havlicek 2011/4/25 neohacker arunscari...@gmail.com at the touch points i should get a cross mark. This cross mark will be fixed on tapping

Re: [android-developers] Re: java

2011-04-24 Thread Filip Havlicek
. 2011/4/23 DanH danhi...@ieee.org Yes, something to become familiar with SQL would be good, though the Android interfaces differ significantly from vanilla Java's. And any sort of puzzle solver would exercise the basics. On Apr 23, 8:10 am, Filip Havlicek havlicek.fi...@gmail.com wrote

Re: [android-developers] Re: java

2011-04-23 Thread Filip Havlicek
to comprehend as what is the input, output, expected behaviour etc and one can focus on the Java itself while coding it. Best regards, Filip Havlicek 2011/4/23 DanH danhi...@ieee.org I'd suggest you get a decent book on Java and play around with it a bit before tackling Android. Shouldn't take

Re: [android-developers] Re: high scores

2011-04-16 Thread Filip Havlicek
and you want to keep high scores for every map and possibly for every game profile, database would be preferable. Best regards, Filip Havlicek 2011/4/14 Kristopher Micinski krismicin...@gmail.com That's fair, I'm admittedly not sure of best practices with SharedPreferences w.r.t amount of data

Re: [android-developers] Re: high scores

2011-04-16 Thread Filip Havlicek
You're welcome, Kris, I'm glad you can bath in the light of my knowledge :) Ibendlin, ten people is unlikely, but I can imagine 4-5 people playing games on one device (not everyone has a thousand dollars to buy a new smartphone for every child, but believe me, everyone wants to play with the new

Re: [android-developers] Re: Creator problem using location.

2011-04-08 Thread Filip Havlicek
Check out this tutorial http://developer.android.com/guide/developing/tools/aidl.html#PassingObjects You have to obtain an object from the creator first, then set its properties as needed. 2011/4/7 Sahil Verma vermas...@gmail.com The documentation for createFromParcel suggests that the

Re: [android-developers] Re: Neighboroughing cells never there.

2011-04-07 Thread Filip Havlicek
Yes, I think this bug on Samsung phones have been discussed several times already. 2011/4/5 kabracity kabrac...@gmail.com Hi Spike66, I was having the same issue yesterday; are you by any chance trying it on a Samsung phone (Galaxy, Nexus S...). I found out neighbouring cell info function

Re: [android-developers] How much time it will take approximately ?

2011-04-06 Thread Filip Havlicek
Depends on number of things I think, but I would guess it shouldn't be more than one minute. 2011/4/6 Abhilash baddam abhilash.androiddevelo...@gmail.com Hi, can anyone is having idea that how much time it will take approximately to connect from one- WiFi to another WiFi. Suppose i

Re: [android-developers] Passing data with Intent problem

2011-04-05 Thread Filip Havlicek
What error? How exactly are you sending the string from A to B and from B to C? Are you reusing the same intent or are you creating a new one? Best regards, Filip Havlicek 2011/4/5 Brad Stintson geek.bin...@gmail.com I have three activities say A,B and C. They are linked as A--B--C. Now I

Re: [android-developers] Re: new developer questions

2011-04-05 Thread Filip Havlicek
What about just reading the stuff on the web? http://developer.android.com/guide/developing/index.html http://developer.android.com/sdk/index.html 2011/4/5 hoss7 hoss...@gmail.com i have Eclipse for PHP can i work with this type of Eclipse for develop android app? On Apr 5, 11:46 am, Miguel

Re: [android-developers] Passing data with Intent problem

2011-04-05 Thread Filip Havlicek
Then it should work just fine. 2011/4/5 Brad Stintson geek.bin...@gmail.com Firstly, I send data using putExtra from A to B. Then I store data in variable and then I send again from B to C. On Tue, Apr 5, 2011 at 1:18 PM, Filip Havlicek havlicek.fi...@gmail.comwrote: What error? How

Re: [android-developers] preventing screen shutdown

2011-04-01 Thread Filip Havlicek
Hi bob, check this out http://developer.android.com/reference/android/os/PowerManager.html Best regards, Filip Havlicek 2011/4/1 bob b...@coolgroups.com I'm writing a game for Android that uses the accelerometer. However, the phone keeps turning off the screen after about 5 seconds

Re: [android-developers] Re: JSONObject optString output

2011-03-26 Thread Filip Havlicek
)); } Best regards, Filip Havlicek 2011/3/26 elioncho elion...@gmail.com Hi, Tried the get methods but still the same problem. The problems seems to be that the JSON array of values doesn't have a parent key that contains it. On Mar 25, 7:18 am, Filip Havlicek havlicek.fi...@gmail.com wrote: Hi

Re: [android-developers] Newbie: Widget onUpdate called only on creation

2011-03-25 Thread Filip Havlicek
, whose code was affected starting with 1.6. The official documentation has been updated since then. -- Kostya 24.03.2011 14:37, Filip Havlicek пишет: Didn't found any reliable source of the 1.6 claim during a quick search, but you are completely right about the 30 minute rule. 2011/3/23

Re: [android-developers] JSONObject optString output

2011-03-25 Thread Filip Havlicek
Hi, I'm using common get...() methods and they work with no problems or stripping of any kind. Try to switch to get...() methods and see if that makes any difference. Best regards, Filip Havlicek 2011/3/24 elioncho elion...@gmail.com Hello, I'm receiving a Json response like

Re: [android-developers] Parsing a large amount of data from a xml

2011-03-25 Thread Filip Havlicek
Hi, if you are bound to XML, XmlSAXParser is the fastest way to parse it (that I know of). Best regards, Filip Havlicek 2011/3/24 Sebastien S schwartz@gmail.com Hi, I'm developping an application where I had to synchronize my phone with the entreprise server. The response of the server

Re: [android-developers] Parsing a large amount of data from a xml

2011-03-25 Thread Filip Havlicek
SAX is 25% faster than XPP. Both ways, of course, depend on implementation details, although it seems the XPP way is more prone to be implemented in a slower way and by slower I mean 2-3x slower than ideal XPP implementation. Best regards, Filip Havlicek 2011/3/25 Vinay Julme vinayju

Re: [android-developers] Newbie: Widget onUpdate called only on creation

2011-03-24 Thread Filip Havlicek
Didn't found any reliable source of the 1.6 claim during a quick search, but you are completely right about the 30 minute rule. 2011/3/23 Kostya Vasilyev kmans...@gmail.com As of 1.6 (I believe) the updatePeriodMillis is forced to be at least 30 minutes. -- Kostya 23.03.2011 19:07, Eduardo

Re: [android-developers] Re: How to increase the amount of time to consider input complete, in android voice recognition?

2011-03-23 Thread Filip Havlicek
); intent.putExtra(RecognizerIntent.EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS, 2000); Try to experiment with the numbers (1000 and 2000) and with presence of only one of the extras or their combination. Best regards, Filip Havlicek 2011/3/23 vamsi shailajamudathanapa...@gmail.com Thanks Filip

Re: [android-developers] how to stop a progressbar which is runs using a thread?

2011-03-23 Thread Filip Havlicek
, then you just simply cancel the task, stop playing the music and reset the ProgressBar in onFinish / onCancelled. Best regards, Filip Havlicek 2011/3/23 gaurav gupta gaurav.gupta...@gmail.com Hi Laxmi, m using progress bar., = ProgressBar progressbar

Re: [android-developers] Re: how to reload previous activity on back button click

2011-03-22 Thread Filip Havlicek
Hi Ranveer, maybe refreshing the contents in the history Activity's onResume() method would be sufficient for your needs. Best regards, Filip Havlicek 2011/3/22 harsh chandel harshdchan...@gmail.com @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode

Re: [android-developers] How to increase the amount of time to consider input complete, in android voice recognition?

2011-03-22 Thread Filip Havlicek
Hi vamsi, check this RecognizerIntent extra http://developer.android.com/reference/android/speech/RecognizerIntent.html#EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS Best regards, Filip Havlicek 2011/3/22 vamsi shailajamudathanapa...@gmail.com Hi In android voice recognition, Can any

Re: [android-developers] Dialog, TabView

2011-03-21 Thread Filip Havlicek
, Filip Havlicek 2011/3/21 Justin Anderson magouyaw...@gmail.com Change your TabHost to display views instead of activities... TabHost doesn't handle activities very well. From what I understand it is only partially implemented and dates back to the Android 1.1 days. Thanks, Justin Anderson

Re: [android-developers] Dialog, TabView

2011-03-21 Thread Filip Havlicek
Daniel, that is not enough. Post better description of your problem and probably the whole activity code. 2011/3/21 Justin Anderson magouyaw...@gmail.com Unfortunately I've never used tabs so I won't be of much help there... I'm just regurgitating stuff that I've seen Dianne Hackborn say...

[android-developers] Problem handling screen orientation

2011-03-15 Thread Filip Havlicek
and is still the same. I'm pretty sure I'm just missing something. Anyone got a clue about this? Thanks in advance. Filip Havlicek -- 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: [android-developers] TabView, ListActivity Problem

2011-03-14 Thread Filip Havlicek
Hi, so you want the tabs to scroll with your ListView? Otherwise I really don't know why you have the ScrollView there or maybe I just don't get the problem. Post a layout of your ListActivity as perhaps some screenshots of what you got and what you want to have. Best regards, Filip Havlicek

Re: [android-developers] Re: Battery usage measurements

2011-01-21 Thread Filip Havlicek
application automatically means less for all other application on that screen). Thanks for your reply. Best regards, Filip Havlicek 2011/1/21 Kostya Vasilyev kmans...@gmail.com Filip, If your application doesn't show in the phone's battery usage list, I believe this means that it uses so

Re: [android-developers] Re: Battery usage measurements

2011-01-20 Thread Filip Havlicek
it isn't mine, I'm not sure my bosses would feel OK about it. Nevertheless, could you elaborate more about that option? I mean something like code samples, web links etc. If it would be easy enough to get that data, I might be able to persuade them. Thank you for all your replies. Best regards, Filip

Re: [android-developers] Re: Battery usage measurements

2011-01-20 Thread Filip Havlicek
to measure battery draw. Of course the phone would be wired to a workbench, and the data collected would have to be time-correlated with the testing activities, but not rocket science. On Jan 20, 4:00 pm, Filip Havlicek havlicek.fi...@gmail.com wrote: Mark, that's exactly what I wanted

Re: [android-developers] Re: Problems with getting signal strength

2011-01-19 Thread Filip Havlicek
You are completely right, I didn't even thought about the possibility of listen() overwriting previous registrations, but might have while reading the documentation. My bad. Thank you for your help. Filip Havlicek 2011/1/19 Alex maroeb...@gmail.com Try replacing m_tm.listen(m_psl

[android-developers] Battery usage measurements

2011-01-19 Thread Filip Havlicek
). Thank you for all your replies. Best regards, Filip Havlicek -- 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: [android-developers] Battery usage measurements

2011-01-19 Thread Filip Havlicek
%, if the second method consumes only 25% and achieves 80% accuracy, it's better to use that one etc. I'm looking at the dump right now and it seems kinda hard to get overall picture from it, but I might try and see. Thanks for your replies. Best regards, Filip Havlicek 2011/1/19 Dianne Hackborn

[android-developers] Problems with getting signal strength

2011-01-18 Thread Filip Havlicek
replies. Best regards, Filip Havlicek -- 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

Re: [android-developers] SQLite problem

2010-12-07 Thread Filip Havlicek
I would say show us your AndroidManifest.xml, might be some problem there. Best regards, Filip Havlicek 2010/12/7 Kostya Vasilyev kmans...@gmail.com What happens when you run it from the installed apps list? Are you doing any type of lengthy operation in onCreate / onStart / onResume

Re: [android-developers] Re: select query problem.

2010-11-11 Thread Filip Havlicek
the select, which is imho better). Best regards, Filip Havlicek 2010/11/11 pramod.deore deore.pramo...@gmail.com Logcat gives me following output 11-11 16:13:13.031: ERROR/Database(709): Failure 1 (no such column: BathRoom) on 0x145618 when preparing 'SELECT RoomID FROM roomtable where

Re: [android-developers] Re: select query problem.

2010-11-11 Thread Filip Havlicek
Indeed, you can use execSQL for statements like CREATE, UPDATE, DELETE, INSERT. For SELECT you have to use query. Best regards, Filip Havlicek 2010/11/11 Daniel Drozdzewski daniel.drozdzew...@gmail.com On Thu, Nov 11, 2010 at 11:17 AM, pramod.deore deore.pramo...@gmail.com wrote: Hi, Daniel

Re: [android-developers] How can service return a string back to Activity?

2010-11-11 Thread Filip Havlicek
Hi, there are more ways to do this, one of them might be sending a broadcast from service to activity with string in broadcast's intent as an extra. Best regards, Filip Havlicek 2010/11/11 xi developer xidevelope...@gmail.com I am new in Android . I encounter the following situation, I have

Re: [android-developers] Re: ListView.setOnItemClickListener() fails to catch selection events for custom list items

2010-11-08 Thread Filip Havlicek
Hi Bob, could you separate your problem from the rest of your project and send a new project to us demonstrating the problem? It's getting kinda hard to look at the code from the little snippets you are posting. Best regards, Filip Havlicek 2010/11/7 FractalBob ruom...@gmail.com I did

Re: [android-developers] ListView.setOnItemClickListener() fails to catch selection events for custom list items

2010-11-04 Thread Filip Havlicek
fix your problem. Best regards, Filip Havlicek 2010/11/4 FractalBob ruom...@gmail.com I thought I knew how to catch list selection events in Android and then I regained consciousness. In my situation, I have a ListView that I populate with a custom view, all of the same class (let's call

Re: [android-developers] Re: ListView.setOnItemClickListener() fails to catch selection events for custom list items

2010-11-04 Thread Filip Havlicek
Try removing the listener from TextView(s) and see if that makes any difference. 2010/11/4 FractalBob ruom...@gmail.com However, I don't implement any interfaces; is the the problem? If so, what should I implement? On Nov 4, 11:09 am, Kumar Bibek coomar@gmail.com wrote: Have you set

Re: [android-developers] Re: Read data from database and show it in table layout form

2010-11-03 Thread Filip Havlicek
Hi, I would say write layout with two TextViews or whatever you want the data to be displayed in, then write your own SimpleCursorAdapter to fit your database data into the layout. Best regards, Filip Havlicek 2010/11/3 pramod.deore deore.pramo...@gmail.com Thanks Bibek, But if suppose I am

Re: [android-developers] button click

2010-10-31 Thread Filip Havlicek
on current one. If you are trying to show, for example, tags from your xml, I would suggest parsing the whole file on first button press and save the tags along with their ids (reflecting their position in the file), then just selecting next id on next button presses. Best regards, Filip Havlicek

Re: [android-developers] Re: Market - download unsuccessful

2010-10-28 Thread Filip Havlicek
I have had some troubles with market updates recently too. Wanted to update about 10 apps, 5 of them updated fine, 3 of them updated after several tries and 2 of them didn't even download after manual deletion, had to wait for a day and then it worked fine again. Best regards, Filip Havlicek

Re: [android-developers] java.util.Date vs android.text.format.Time

2010-10-26 Thread Filip Havlicek
+ Calendar in my current project and I don't see any slowdowns or problems. Depends probably what you want to do, if you want to work with time more intensively, I would suggest you try the Time class, otherwise I doesn't matter that much I suppose. Best regards, Filip Havlicek 2010/10/26 Aaron

Re: [android-developers] java.util.Date vs android.text.format.Time

2010-10-26 Thread Filip Havlicek
Date is now used only to store the time information you get from Calendar if you want current date and time (that's why all the setters and getters are deprecated). 2010/10/26 TreKing treking...@gmail.com On Tue, Oct 26, 2010 at 10:37 AM, Aaron aaron.chan...@gmail.com wrote: Which one should

Re: [android-developers] SQL lite

2010-10-25 Thread Filip Havlicek
Hi, I think this tutorial is just what you need to read http://developer.android.com/guide/tutorials/notepad/index.html Best regards, Filip Havlicek 2010/10/24 jamesy281 jamesysm...@googlemail.com I am writing a simple app with 3 text fields and a date picker I would like to be able to save

Re: [android-developers] Re: AppWidget preferences

2010-10-24 Thread Filip Havlicek
I think it's actually a known fact in this community and has been discussed several times already. 2010/10/24 Mark Carter mjc1...@googlemail.com Yes, I noticed this just yesterday. I thought I was going mad. Still could be true. On Oct 24, 6:02 pm, Alex maroeb...@gmail.com wrote: From my

Re: [android-developers] Re: AppWidget preferences

2010-10-24 Thread Filip Havlicek
! I have also noticed that a widget is created as soon as the app is installed, i.e. before the user has added a widget. What is this phantom widget? On Oct 24, 11:31 am, Filip Havlicek havlicek.fi...@gmail.com wrote: I think it's actually a known fact in this community and has been

  1   2   >