**** BEGIN LOGGING AT Thu Sep 27 02:59:57 2012 Sep 27 03:00:11 and what is android's usability model, ron_frown? Sep 27 03:00:36 http://developer.android.com/design/index.html Sep 27 03:00:49 http://developer.android.com/design/get-started/ui-overview.html Sep 27 03:01:29 and all the other links on there Sep 27 03:01:54 the idea is that the little spinner wheels makes sense to slide up from the bottom, but show me one other widget that does that in android Sep 27 03:03:01 the timepicker dialog is SIMILAR Sep 27 03:03:17 but having potentially 60 items in the list makes the usability of those wheels a total pita Sep 27 03:11:14 super strange behavior with sqlite/listview. When calling INSERT query and successful Toast is sent I then can call an intent onItemClick (all before updating list). Then on return there are two INSERTED rows... a duplicate. Sep 27 03:11:48 Totally unwanted behavior and not immediately traceable, any ideas to what is triggering this? Sep 27 03:14:05 To add; for every onListItem intent, return sequence another INSERT seems to get called each time. Sep 27 03:17:39 I have a hunch that it could be the arraylists not getting cleared and not an issue with sqlite. Sep 27 03:18:20 nope. Sep 27 03:18:54 Tested even after clearing the arraylists in onCreateView; the issue still exists. Sep 27 03:20:51 The tutorial at http://developer.android.com/training/basics/firstapp/starting-activity.html uses the onclick event for buttons but the BluetoothChat demo uses setonclicklistener (like http://stackoverflow.com/questions/8790909/android-bluetooth-discovery-in-a-sequential-method) ... which one is more efficient? Sep 27 03:36:36 does anyone know why adding a second button and onclicklistener to the main activity of my app is causing the following error: 09-25 19:31:38.251: E/AndroidRuntime(9549): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.kevmac.sampleapplication/com.kevmac.sampleapplication.MainActivity}: java.lang.NullPointerException Sep 27 03:37:00 crashes my app immediately, but without the second button it works fine Sep 27 03:37:32 says right there Sep 27 03:37:48 you are probably binding when it didnt find that control Sep 27 03:38:15 set a breakpojnt on the click listener initialization for the second button Sep 27 03:39:24 hmm, what is this breakpoint you speak of? Sep 27 03:39:33 like for debugging? Sep 27 03:39:42 yes Sep 27 03:42:19 dodm Sep 27 03:42:30 *breakpoint didn't change anything Sep 27 03:43:23 but when i delete the initialization and run it, it works fine Sep 27 03:43:43 except for the fact that it has an unclickable second button, lol Sep 27 03:45:25 ayokmac: That's when you're supposed to start examining values. If something is null, and you expect it to not be, determine why. Sep 27 03:47:16 muaha i figured it out, button was incorrected id'd Sep 27 03:47:36 thanks maslen Sep 27 03:48:17 * maslen is on the last slide of his presentation.... can't wait till tomorrow afternoon. Sep 27 03:48:38 good luck! do it big! Sep 27 03:49:37 lol. I convinced a professor to let me do research instead of twiddling my thumbs in his class. So instead of spending an hour a week on HW, I'm spending 6 hours a week on preparing presentations (so far) Sep 27 03:51:14 But... no HW, midterms, or finals :D Sep 27 03:51:37 sounds like a good deal Sep 27 03:51:58 I'm hoping I'll have a net time savings by the end of the semester. Sep 27 04:04:48 Hey Sep 27 04:07:14 Anybody knowhow to use Htmlclient Sep 27 04:07:46 HttpClient* Sep 27 04:10:44 Anyone? Sep 27 04:11:09 hey, patience Sep 27 04:11:35 K my fault Sep 27 04:11:57 Wasn't sure if anyone was here Sep 27 04:18:24 Hey, I'm using a GestureDetector which overrides onScroll() and onSingleTapUp(). I want to use multitouch.. but when I start a scroll gesture, and keep my finger down, then tap, onSingleTapUp() does not get called Sep 27 04:18:31 Anyone know why this is, and how I can work around it? Sep 27 04:22:36 Hey Sep 27 04:22:41 Anybody knowhow to use HttpClient? Sep 27 04:24:46 Anyone here? Sep 27 04:25:17 how about do some searching like everyone else would Sep 27 04:25:48 guess I should just paste this link in here a couple of times a week: http://android-developers.blogspot.hk/2011/09/androids-http-clients.html Sep 27 04:26:02 Thanks Leeds Sep 27 04:26:08 panegyric Sep 27 04:26:08 http://bit.ly/SnbKVK Sep 27 04:26:48 ron_frown: no, that's too complex Sep 27 04:26:58 hah. thanks for that, ron_frown, i don't know why i hadn't read that previously. Sep 27 04:27:02 quite well written. Sep 27 04:27:27 bjorkintosh the design site? Sep 27 04:27:30 yeah. Sep 27 04:27:46 Anyone have any thoughts on my question? I'm very lost :( Sep 27 04:27:47 Is it possible to create alert dialogs with fancy lists? Instead of just text items, image & text type stuff? Sep 27 04:27:48 i had simply skipped it assuming it was fluffy bullshit. Sep 27 04:27:53 (incidentally, the chances of anything coming from Mars is a million to one, he said - but still, they come) Sep 27 04:28:20 you can completely design your dialogs from scratch Sep 27 04:28:26 with anything in them you want Sep 27 04:28:48 ron_frown: you may like this http://www.h-online.com/open/news/item/Wayland-prototype-for-rendering-software-that-runs-remotely-1715463.html Sep 27 04:29:16 wayland is a waaaaaays away. Sep 27 04:29:16 ron_frown: ok so it is not possible to do that using normal Builders? Sep 27 04:29:38 bjorkintosh - not really Sep 27 04:29:56 its a long ways away til everything is native wayland composition Sep 27 04:30:04 but it could be replacing x today Sep 27 04:30:13 with x extensions for all the fallback shit Sep 27 04:30:48 that architecture that g00s jsut reported was just to entice people from x11 world Sep 27 04:31:57 kill kill kill wayland Sep 27 04:32:52 What's a wayland, Sep 27 04:33:03 its a bad company Sep 27 04:34:39 another part in a string of crap ideas that reversed the evolution of "linux on desktop" Sep 27 04:36:34 wow Sep 27 04:36:35 WOW Sep 27 04:36:45 wow? Sep 27 04:36:56 thats the biggest bs statement I've heard Sep 27 04:38:03 biggest problems with linux on a desktop right now... the default process scheduler selection appear to be made primarily on polotics Sep 27 04:38:20 and x11 is old, antiquated, stale software thats slow and bloated Sep 27 04:38:32 hopefully it gives priority to the liberal apps Sep 27 04:38:41 :) Sep 27 04:38:48 and the type of people who would argue it doesnt need to be replaced... are people who have no idea about its architecture Sep 27 04:39:00 ron_frown: I'm not arguing for keeping X11 intact Sep 27 04:39:08 I'm arguing against the path taken with Wayland Sep 27 04:39:09 wayland IS the evolution for linux on the desktop Sep 27 04:39:58 this is NOT a discussion for #android-dev. Sep 27 04:40:02 ead Sep 27 04:40:10 yeah, it's not (for the channel) Sep 27 04:40:35 What's antiquated mean? Sep 27 04:40:53 old fashioned Sep 27 04:41:10 Gotit Sep 27 04:41:22 I'm really stuck here, guys. Looking for a way to detect gestures (like can be done with SimpleOnGestureListener) with multitouch. In other words, I want to be able to be "scrolling" with one finger, and still have single taps by another finger registered Sep 27 04:41:31 Damn it's like the ny times up in this shhy Sep 27 04:41:35 Preferrably without implementing detection of scrolling, flinging, etc. myself Sep 27 04:42:26 Computervision. Anyone interested ? Sep 27 04:42:35 Any nudge in the right direction would be a huge help. I'm sorta in over my head and losing a lot of dev time on this :( Sep 27 04:42:55 Seems like it should be pretty simple Sep 27 04:43:00 does the scrolling gesture stuff have a return value? Sep 27 04:43:09 No Sep 27 04:43:27 Yes, there is a return value.. the method I'm overriding needs to return a boolean Sep 27 04:43:33 I've experimented with both true and false Sep 27 04:43:36 Oh Sep 27 04:44:00 Bad programming practice Sep 27 04:44:02 http://developer.android.com/reference/android/view/GestureDetector.SimpleOnGestureListener.html if you're not familiar Sep 27 04:44:27 panegyric -- thanks Sep 27 04:44:30 do you understand what the difference is there? returning true means thats the end of the eventbubbling Sep 27 04:44:39 But in desparation and having lost several hours here, I thought I'd try both Sep 27 04:44:54 ron_frown: Yep, but it wasn't working, so I thought perhaps I misunderstood Sep 27 04:45:05 Looks like my problem must be elsewhere Sep 27 04:45:08 I dont know... I guess I've never tried to do that Sep 27 04:45:14 breakpoints and logging are your friend Sep 27 04:45:58 Hm, ok, I guess I'll try to mess with it some more Sep 27 04:46:23 I work on this project after full work days, and my brain is usually mush haha. Sep 27 04:47:00 you and me both Sep 27 04:47:23 I got hung up wiht my rom at work today... the jellybean source I have access to, appears to just be too buggy to use Sep 27 04:47:32 so I had a last minute create ics rom for our hardware Sep 27 05:07:41 was there some announcement regarding gdrive today ? Sep 27 05:10:06 what would you guys recommend for an android app 'saving a file to some shared space' … gdrive or dropbox ? Sep 27 05:13:23 support as many as you can? Sep 27 05:14:58 does gdrive even have an android api ? Sep 27 05:15:23 when i look at this, https://developers.google.com/drive/integrate-android-ui … it seems like things are limited to being associated with a file type Sep 27 05:27:02 goedemorgen Sep 27 05:36:24 if i have a mainactivity with a handler which receives message from another thread, is it's handleMessage() executed in the same thread as the main activity? Sep 27 05:40:41 hi all Sep 27 05:40:58 i am trying to hide a view with fade out animation Sep 27 05:41:13 this happens when i touch the screen Sep 27 05:42:02 after that a timer is run which enables the view with fade in animation Sep 27 05:42:35 suppose if i touch the screen in the mid way the view appears again and the fade out animation starts Sep 27 05:43:01 how can i resolve this ? Sep 27 05:47:46 a simple variable ex. IsHIding = true Sep 27 05:47:50 then on click check for it Sep 27 05:48:26 if(!IsHiding) {IsHiding=true; animate();IsHiding = false;} Sep 27 05:48:29 something like hat Sep 27 05:56:04 hey, i've seen you can use on/off images instead of the default ToggleButton look but is it possible to animate the change between states? Sep 27 06:05:28 thanks ron_frown its working Sep 27 06:08:14 is it just me or does it hangs for everyone after 7.4 mb of 10mb when downloading this file? http://repo1.maven.org/maven2/com/google/appengine/appengine-api-stubs/1.7.2/appengine-api-stubs-1.7.2.jar Sep 27 06:12:09 Kannibal, nope Sep 27 06:12:13 Got it fine Sep 27 06:12:36 ok, probably our useless office network then... Sep 27 06:12:39 thanks Sep 27 06:13:44 I can upload it somewhere else if you want Sep 27 06:23:46 hello, is name "DATABASE_NAME" is hardcoded or I can use something like "DB_NAME"? Sep 27 06:26:26 X-Raimo, whatevs Sep 27 06:27:15 X-Raimo: one way to find out ...try Sep 27 06:28:40 KNERD: I did a lot of code of DB Adapter at 2:00 AM. And it gives NullPointerException. I try to find my mistake. Sep 27 06:29:01 By the way my code is: http://paste.org.ru/?v53b4s Sep 27 06:31:29 X-Raimo: have you tried debugging it yet? Sep 27 06:32:56 KNERD: yes. It was unreasonable. Because a lot threads are and just after breakpoint in issues Exception Sep 27 06:33:23 your stacktrace didn't have any mention of your code/line? Sep 27 06:33:40 then how do you know it's the db causing this? Sep 27 06:33:56 if it was a null pointer exception there must be a line Sep 27 06:34:08 yes, true Sep 27 06:35:01 KNERD: yes. When I uncomment dbHelper.open(). It works OK Sep 27 06:35:14 here is LogCat log: http://paste.org.ru/?5ftpr6 Sep 27 06:35:40 i notices some of your code you have "null" 5 times, but on line 83, only 4 Sep 27 06:35:57 err..87 Sep 27 06:37:08 X-Raimo: i see no dbHelper.open(). Sep 27 06:37:52 guessing result is null, check data v query? Sep 27 06:38:44 KNERD: it located at another Activity class: http://paste.org.ru/?01r1io Sep 27 06:39:10 FYI, OfficeSuite Pro 6 is on sale for 25 cents right now Sep 27 06:39:40 along with these: https://play.google.com/store/apps/collection/promotion_celebrate_25_billion Sep 27 06:39:56 X-Raimo: not there either Sep 27 06:40:53 i'd buy that for a dollar Sep 27 06:41:22 hrrm.. I retract my last comment... if it was bad query it would exception, if mismatched v data it would be an empty cursor Sep 27 06:41:40 why noy just get oen office for 0 cents? Sep 27 06:42:34 i think the problem is in his array.. Sep 27 06:43:06 I was suspecting there was one when he posted the error, but i saw no code for an array until is last paste Sep 27 06:43:39 i have seen enough null pointer errors to be associated with arrays Sep 27 06:44:05 lhrrm... can you do selections like that? KEY_ID=?, new String[] { rowIndex }? Sep 27 06:44:35 does anybody here know if NFC works by tapping on the screeen? Sep 27 06:44:44 or is it just on the phone's back ? Sep 27 06:45:06 mine doesn't have NFC so I can't try it out Sep 27 06:46:50 gutano: what line it is& Sep 27 06:46:52 gutano: what line it is? Sep 27 06:48:27 86... the notation I mentioned might not be the only way, you might be able to inline values... I've just always done it by passing a selectionArgs array Sep 27 06:50:02 just not see'ing anything else too funky in that area.. Sep 27 06:54:36 gutano: It seems like not DB created because there's no /data/data/my.package/database Sep 27 06:54:41 different angle, why translate into objects instead of just using a cursor? there are all sorts of convenient mechanisms to use with a cursor.. Sep 27 06:54:57 anyone here having experience of Android TV box Sep 27 06:54:59 databases/yourdb. Sep 27 06:55:10 I mean viewing/ using Sep 27 06:55:42 gutano: /data/data/my.app/databases/myDB ? Sep 27 06:55:48 /data/data/bleh.bleh/databases/mydb.db (or DB_NAME), this is generated by sqlliteopenhelper Sep 27 06:56:00 gutano: no such file Sep 27 06:56:07 and directory Sep 27 06:57:01 so it hasn't been created for whatever reason yet, but it is not something that pre-exists Sep 27 06:58:18 I'm not sure if sqliteopenhelper does it on constructor or first time getWritable, docs should tell you Sep 27 06:59:51 "Create a helper object to create, open, and/or manage a database. This method always returns very quickly. The database is not actually created or opened until one of getWritableDatabase() or getReadableDatabase() is called." Sep 27 07:14:06 I found error Sep 27 07:18:39 X-Raimo: what was it? Sep 27 07:18:43 ugh. There's data in database which has string m³. I get it however to my android phone via php call as m² What encoding method I need to do so that it would show properly on textfield? Sep 27 07:19:57 Is there some specific tag of repo which supports python2.7? I get an invalid syntax error using the master branch. Sep 27 07:23:57 KNERD: there were no init of DB Adapter. And dbAdapter was null Sep 27 07:27:18 oh..that was easy Sep 27 07:31:54 KNERD: anyhow. Thanx for your help Sep 27 07:32:17 sure Sep 27 07:44:57 is there a tutorial out there on how to use 9patch images to skin a button? Sep 27 07:45:41 google: 9patch image button Sep 27 07:45:51 you can find a ton of tutorial Sep 27 07:46:09 and basics also on d.android.com Sep 27 07:50:26 Anyone familiar with date arithmetic in Android? Sep 27 07:51:11 I'm getting the weirdest results when using the GregorianCalendar to add days to a particular date Sep 27 07:55:52 pvankouteren: There is no "android arithmetic' The algorithm is the same no matter Sep 27 07:56:29 KNERD: yeah, true. The question actually was if there's someone familiar with date arithmetic Sep 27 07:56:54 greets all Sep 27 07:57:42 pvankouteren: maybe the easiest would be to get the julian dates add or subtract then convert to Gregorian? Sep 27 07:57:48 I used the GregorianCalendar to add a number of days to a particular date. When looking at a regular calendar, in 3 / 5 cases, the result is not correct Sep 27 07:58:19 because you just cant add days Sep 27 07:58:37 KNERD: I noticed ;) hehe Sep 27 07:58:52 What would you suggest to use then? Sep 27 07:59:57 Hi guys, quick question. Sep 27 08:00:37 what is better? implementing onClick for the whole Activity, or implementing a new listener for each button? Sep 27 08:01:32 pvankouteren: I already gave you one idea. Another is look up the algorthim for calculating dates on a gregorian calender Sep 27 08:03:21 KNERD: I'm not familiar with Julian dates. I looked it up, but there's no native class for that, is that correct? Also I tried to look for an algorithm for date calculation on a GregorianCalendar, but I only come across blogs which use GregorianCalendar, add 3 days and say "Hey look, it works!" Sep 27 08:06:38 pvankouteren: This took all of .00000000000000000000000000000002 seconds http://en.wikipedia.org/wiki/Julian_day#Converting_Julian_or_Gregorian_calendar_date_to_Julian_Day_Number Sep 27 08:08:47 pvankouteren: http://www.timeanddate.com/date/duration.html this was porbably done in JavaScript Sep 27 08:08:48 KNERD: Sorry 'bout that. I used different keywords and didn't came across that one as I looked for an implementation rather than for theory Sep 27 08:09:11 that shows you implementation Sep 27 08:13:37 pvankouteren: http://www.technicalypto.com/2010/02/different-between-two-days-implemented.html **** ENDING LOGGING AT Thu Sep 27 08:14:33 2012 **** BEGIN LOGGING AT Thu Sep 27 08:16:20 2012 Sep 27 08:16:27 KNERD: will surely try that. Thanks! When it's working I'll make sure to create a blog post about it Sep 27 08:16:38 sure Sep 27 08:18:25 pvankouteren: "The Julian Period is a chronological interval of 7980 years beginning 4713 BC. It has been used by historians since its introduction in 1583 to convert between different calendars" Sep 27 08:19:32 KNERD: Hehe learned something new today :) Sep 27 08:22:22 is the contact manager on gs2 (ICS) not capable of displaying custom data records added through a sync adapter ? i've added a custom field which shows up fine in the emulator but not on my phone :/ Sep 27 08:27:01 As per this documentation the edit text error message should clear off when a some input is made to the edit text. But it is not happening on ICS : http://developer.android.com/reference/android/widget/TextView.html#setError(java.lang.CharSequence) Sep 27 08:41:27 Hello, I'm searching now for days to find a solution for my camera problem. I build an App using the camera and used the API guides. I have no hardware to test my App so I need to test it on the dalvic vm. My App doasnt write proper video files to the sdcard and MediaRecorder crashes on stop(). Is the MediaRecorder support at the daliv vm not working properly? Sep 27 08:45:56 is there a way to reference a preference in a layout XML ? For example I want to set a label directly Sep 27 08:48:05 I don't think so Sep 27 08:48:52 Once you've inflated it you can get the preference with PreferenceActivity/PreferenceFragment#findPreference Sep 27 08:51:44 yeah, thanks Sep 27 08:53:10 As per this documentation the edit text error message should clear off when a some input is made to the edit text. But it is not happening on ICS : http://developer.android.com/reference/android/widget/TextView.html#setError(java.lang.CharSequence) Sep 27 09:12:27 hello, i have an account that i use to publish apps on the market place. But i want one of my colleagues to have access to my account as well (without having to give him my password). Is that somehow possible? Sep 27 09:13:14 You can try clicking "manage accounts" Sep 27 09:13:29 +user Sep 27 09:13:50 ahhh :) Sep 27 09:14:20 thanks a lot, I somehow didn't see that... Sep 27 09:15:40 napster: you might doing something wrong. I'm using this too, and it works just fine on ICS Sep 27 09:16:31 brian_de: I see, let me do a test app for this Sep 27 09:16:52 ... after checking the input i'm calling setError once. And when I edit the text again, the error icon disapears Sep 27 09:18:20 brian_de: ok, in my case I had to setError(null) on in explicitly Sep 27 09:23:02 napster: strange. are you using a subclass of textview (maybe there are some callbacks overwritten)? Sep 27 09:23:13 brian_de: no no Sep 27 09:23:28 just using plain EditText Sep 27 09:25:06 well I guess it's no big deal to call setError(null) just to be sure :) Sep 27 09:39:38 hi, i get an error on this line: