**** BEGIN LOGGING AT Sat Feb 23 02:59:58 2013 Feb 23 03:36:10 is there one way to select all my records sqlite and save them into xml Feb 23 03:36:53 use programming for that? Feb 23 03:37:01 generate the document yourself Feb 23 03:38:44 ok one tutor to learn ow can i do it Feb 23 03:42:37 hi Feb 23 03:42:38 ok Feb 23 03:54:06 is there one way to draw square or lines to give some color to my application Feb 23 04:12:55 man this place really dies down on firday nights Feb 23 04:14:28 how can do a inputbox in android Feb 23 04:15:13 like... an EditText? Feb 23 04:15:18 i'd advise you to read d.android.com/guide Feb 23 04:16:10 i'm retrieving a dateTime object from a webserver via JSON to my application...how can i parse it to java's dateTime?? Feb 23 04:16:47 SimpleDateFormat or something like that Feb 23 04:17:07 so like, Feb 23 04:17:15 its in this order Feb 23 04:17:35 DATETIME object is inside "c" where c is a JSONObject Feb 23 04:17:47 now to retrieve the dateTime where would i store it in? Feb 23 04:21:04 how to use phone G-sensor as Joystick Wheel via usb or wifi or BT without delay ? Feb 23 04:21:34 is that safe ? http://www.guidingtech.com/14852/android-accelerometer-joystick-playing-games/ Feb 23 05:00:57 I am newbie and was checking out GCM using php: http://pastebin.com/rMytYRgj Feb 23 05:02:00 I think I'm wrong with the keys and where to use them. I get Error: "Unauthorized Error 401" whenever i execute that. Feb 23 05:04:22 Any help? Feb 23 05:09:11 P.S. the api key i used is "Key for browser apps (with referers)". Is that what i should be using? Feb 23 05:10:04 Nevermind. Used key for server apps, and it worked :) Feb 23 05:21:27 hi. is Admob 6.3.0 stable? can I depend on it? Feb 23 05:43:59 How do you guys feel about ads? To they take away from the quality of an app? Feb 23 05:44:02 *Do Feb 23 05:44:55 I was going to use them but I've noticed a lot of the top free games don't have them Feb 23 05:50:40 According to me, they are lame.. Feb 23 05:50:50 They ruin the app Feb 23 05:52:27 you guys realize android is an add distribution platform XD Feb 23 06:11:33 Hey all, if I'm trying to debug an app, is there a good way to have one of my threads push some text into the "LogCat" thing that Eclipse gets? Feb 23 06:14:25 Oh, nvm. Found the log class. Feb 23 06:18:10 >:( ... really frustrating when a bound service never binds. Feb 23 06:25:24 hi. is Admob 6.3.0 stable? can I depend on it? Feb 23 06:37:23 Does the android store still have a max app size? Feb 23 06:38:24 I think, alas, not a lot of people are here to answer ?s right now Feb 23 06:50:13 apple741: yeah i think 500mb or 1gb Feb 23 06:50:46 monsti: cool thanks, I thought I read somewhere it was only 50mb lol so thats a relief :) Feb 23 06:51:05 simpsons is 75mb ;) Feb 23 06:51:13 there are games that are 500mb Feb 23 06:56:38 Thats a good point :) Feb 23 06:56:51 What ad service would you recommend for android Feb 23 06:56:52 ? Feb 23 06:57:06 If you don't mind me asking, there are so many available :) Feb 23 07:09:46 woot. Finally have this bound service thing working. Feb 23 07:10:12 Really frustrating to spend time sweating over code only to find that something's wrong in the manifest. Feb 23 07:40:59 I wish there were just a whitesmiths style built into eclipse. Feb 23 07:41:09 Configuring this manually is really irritating Feb 23 07:41:19 Improv: there is an eclipse style plugin Feb 23 07:42:37 Oh, there's this very nice formatting thingy; I don't really need a plugin, just a whitesmiths style. Feb 23 07:42:45 But that unfortunately means writing it. Feb 23 07:43:55 hey Feb 23 07:44:03 where do i file a documentation bug? Feb 23 07:44:13 http://developer.android.com/reference/android/hardware/SensorManager.html <-- the example at the top is incorrect Feb 23 07:44:24 you cannot get system services before the onCreate() function Feb 23 07:46:19 On the upside, I love eclipse's visual feedback on style definitions. Feb 23 07:46:30 It's a lot better than going over fiddly GNU Indent options Feb 23 07:51:36 hey, where can i see the XML design of android built in controls? such as buttons, i need to find out how much margin/padding those buttons have on default Feb 23 07:52:07 viran: download the Android source code and look through it I suppose? Feb 23 07:55:45 android-sdk\sources folder isn't it? Feb 23 07:56:18 capella: i filed that bug ad put you as cc: :) Feb 23 07:56:55 yah - im trying to recreate it .... my laptop wont double touch scroll (hadd it turned off) ... thinks I need to restart Feb 23 07:57:17 capella: have a mac ? Feb 23 07:57:37 nah - wondered if it was mac specific .... yes? Feb 23 07:57:47 oh, i was only able to try it on mac Feb 23 07:58:33 right - so i thought i'd explore a little Feb 23 07:58:44 ;) Feb 23 07:59:02 ok - gotta drop out and back Feb 23 08:30:22 meh - laptop fail - wont double touch scroll Feb 23 08:37:50 huh, I have a macbook pro, never actually thought to try multitouch in emu Feb 23 08:37:57 g00s: ? Feb 23 08:38:16 hey StingRay_ Feb 23 08:38:26 you tried it ? Feb 23 08:39:16 StingRay_: not sure where we left off, try what ? Feb 23 08:41:16 is carrier billing enabled automatically with in app billing? Feb 23 08:47:49 g00s: no i mean a few lines up, multi-touch macbook avd Feb 23 08:49:01 StingRay_: quick q: on your MBP, using Chrome, does the text for d.android.com not look as crisp as other websites ? Feb 23 08:49:24 mine looks like its not antialiased correctly Feb 23 08:49:51 i tried starting chrome with --disable-remote-fonts, thinking it was a sucky hinting in the Roboto font, but that was not it Feb 23 08:55:32 g00s: ok, got the touchpad scroll working, and I see both window scroll mechanism are synched ... is that page design? I haven't look closer yet Feb 23 08:56:13 capella: only the frame the mouse is in should scroll, until you reach the end and the other page will scroll Feb 23 08:56:19 so i guess you see it too Feb 23 08:56:54 i love homer so much ;) Feb 23 08:57:37 i see it ... Feb 23 08:57:43 * capella viewing page source Feb 23 08:58:02 g00s: maybe cause they use off black and then mid grey Feb 23 08:58:36 I think they also have a silly subtle shadow on some text that makes it look messy Feb 23 08:59:39 one of the great features of FF is that i have it force serif/sans serif fonts for all web pages Feb 23 08:59:55 * capella also, not using two finger scroll ... using one finger touch pad edge scroll Feb 23 09:00:02 renders beautifully in FF, just doesn't scroll right :/ Feb 23 09:00:27 ah - right ... fires up IE for compare Feb 23 09:00:39 g00s: what do you expect, tis the web, the most standardized not standard there is Feb 23 09:00:45 :) Feb 23 09:00:56 yeah but d.android.com makes my eyes bleed Feb 23 09:01:08 opera ? Feb 23 09:01:14 capella: if you can, compare a webkit browser Feb 23 09:01:42 StingRay_: i'm using Chrome on d.android.com Feb 23 09:01:51 yea Feb 23 09:01:53 bah ... IE works as you predict Feb 23 09:01:54 try opera Feb 23 09:02:07 guess I'll have to get opera Feb 23 09:05:29 g00s: do you see it here also: http://developer.android.com/reference/android/content/package-summary.html Feb 23 09:06:16 capella: in FF, yes everything scrolls :) Feb 23 09:06:55 scrolling on the right panel works ok (jusr that panel scrolls) Feb 23 09:14:04 there are a lot of things wrong with d.android.com; another is that i can not resize the rightmost list of things. it seems to be proportional to the browser width Feb 23 09:14:18 so a lot of longer interface names get cut off Feb 23 09:14:40 i thought the old site was more /usable/ although the new one might be better organized Feb 23 09:15:37 oops, i mean the leftmost list of things :) Feb 23 09:18:16 * capella got another mozillian to admit he can repro it g00s... Feb 23 09:18:43 :) Feb 23 09:18:45 which is good, cause he'll know who to get involved Feb 23 09:19:13 cool, thanks capella Feb 23 09:19:54 brb when I know Feb 23 09:27:45 g00s: fyi chrome works properly aiui ... though the vertical scrollbar indicator doesnt track properly Feb 23 09:29:49 capella: aiui ? Feb 23 09:30:26 as i understand it ... sometimes I do stupid things :p Feb 23 09:58:43 Drakonite: http://www.androidpolice.com/2013/02/22/sonoma-wire-works-cracks-the-code-finds-a-fix-for-the-low-latency-audio-in-issue-on-android/ Feb 23 10:18:17 heeey there Feb 23 10:18:22 i'm chosing how i should save my data for my app, i'm trying to decide between serializing an array and saving to a file or using a database... how many entries do you think is a good amount before i need to start considering a database? Feb 23 10:20:05 g00s: it's a core problem with the spec though... google doesn't know what low latency audio and has screwed it all up. there needs to be a real low latency requirement as part of the checklist Feb 23 10:20:47 g00s: it doesn't actually fix the problem for one or two handsets to have low latency support if there is no way to identify them :-/ Feb 23 10:20:55 hi everybody! Can anybody tell me how I can change the mode of my default shared preferences to MODE_MULTI_PROCESS? Feb 23 10:27:10 Drakonite: i understand, just like its not good for one or two handsets to have Bluetooth Low Energy Feb 23 10:27:40 BLE needs support within the framework Feb 23 10:27:53 (not just TI/broadcomm hacks) Feb 23 10:27:58 g00s: if they fixed the req flag for it to actually be sensible and force places to correctly flag deviecs, it would be a huge step Feb 23 10:29:26 I've been out of it for a while now though, I'm not sure what the current state is on new devices, but based on how we were blown off when we talked to them about low latency audio, I don't expect things to be better Feb 23 10:30:56 erdos - think if serialising will not take too much memmory Feb 23 10:31:26 :( Feb 23 10:31:51 in addition - storing in database allows you to use cursors for loading Feb 23 10:32:44 easier to select what to load, update (it can be useful when you have deeply nested structureS) Feb 23 10:33:26 all_vs_one, erdos: the right answer completely depends on what kind of data you are actually saving, and what your access patterns are Feb 23 10:35:53 it's fairly database-y data (word, username, date), but it seems to add quite a lot of extra work to get it working with a database, i'm only expecting the app to need to store a couple of hundred rows... thoughts? Feb 23 10:39:51 hmm, i think i'll go with a database, just for the learning experience Feb 23 10:40:43 erdos - good point Feb 23 10:41:25 also you all the time is approach "getting shit done", and later "getting shit done in my way" Feb 23 10:42:25 hehe Feb 23 10:42:37 i'm only doing this project to learn the sdk, probably best not to cut corners! Feb 23 10:43:19 then for sure databse Feb 23 10:43:28 :) Feb 23 10:44:03 because it seems you know how to serialise, now you will learn db and in future you will know what to choose Feb 23 10:44:40 hey all_vs_one, what minsdk do you usually support? Feb 23 10:45:44 I can't say usually support, because I am beginner Feb 23 10:45:58 ah hehe, we're in this together then! Feb 23 10:46:13 but currently I am doing project where requirement is 2.2 Feb 23 10:46:30 well i have this, too Feb 23 10:46:34 and from experienced developers suggestion Feb 23 10:46:34 this seems to be about the standard Feb 23 10:46:45 not to touch 2.1 and lower if possible Feb 23 10:46:50 an enterprise application that is no in the appstore Feb 23 10:46:53 If you're just getting started, and this is a learning project, support 4.0+ Feb 23 10:46:59 and we are forced to keep on 2.2 Feb 23 10:46:59 Legacy support is a whole topic in itself Feb 23 10:47:11 If you're making an actual product, 2.2/2.3 Feb 23 10:47:31 thanks guys Feb 23 10:47:36 this seems like a good lively channel Feb 23 10:47:42 erdos: http://developer.android.com/about/dashboards/index.html Feb 23 10:47:58 was just about to google for this thanks :) Feb 23 10:48:11 also think about your country Feb 23 10:48:20 what most popular phone Feb 23 10:48:31 wow that's a lot still on gingerbread Feb 23 10:48:51 If you have a simple 4.0+ app, supporting 2.2 later isn't really that much work Feb 23 10:49:25 low end devices uses < 3 Feb 23 10:49:35 i noticed in the lessons there seems to be some special packages you can use to support newer features in legacy systems Feb 23 10:50:01 actually, the docs for the sdk are really nice to read Feb 23 10:50:08 there are no real "features" that are only available in 4 Feb 23 10:50:10 good documentation makes such a difference Feb 23 10:50:20 except those that depend on hardware Feb 23 10:50:40 Fragments (which you SHOULD use) and loaders are supported back to 1.6 via the support lib, even tho they weren't added until 3.0 Feb 23 10:50:42 gotcha Feb 23 10:50:56 ahh yes that was what it was Feb 23 10:51:12 The action bar (also 3.0+) it supported back to 2.1 via ActionBarSherlock Feb 23 10:51:53 ActionBarSherlock seems to be friendly lib Feb 23 10:51:58 If you want to support 2.2 from the start, use those two libraries Feb 23 10:52:05 cool Feb 23 10:52:36 And read this: http://simonvt.net/2012/02/07/what-api-level-should-i-target/ Feb 23 10:52:49 Typical beginner mistake Feb 23 10:53:03 aaaalright, will read right now Feb 23 10:53:06 thanks :) Feb 23 10:53:47 and beginners tip - if you developing on virtual machine Feb 23 10:54:01 prepare environment for hardware virtualisation Feb 23 10:54:35 notable speed difference Feb 23 10:54:49 u mean using the emulator? Feb 23 10:55:07 i got a sII, but yeah, i've definitely seen the difference! Feb 23 10:55:26 http://developer.android.com/tools/devices/emulator.html#acceleration Feb 23 10:55:44 oh that's handy Feb 23 10:55:48 thanks! Feb 23 10:56:01 my app intends to timeout really often when trying to invoke my webservice. Every second attempt is timed out.. I wonder if someone can help me out and see if there is some possible troubles in my http code: http://pastebin.com/NwqKLN4r Feb 23 10:56:52 at least on mac book (2010) it was notable acceleration Feb 23 10:58:33 Melvinkelvin - this occurs even on VM? Feb 23 11:00:55 I have only tested it on several rea devices Feb 23 11:00:57 real* Feb 23 11:01:25 when it happens, if I clean the memory and restart the app it works fine Feb 23 11:01:38 can't it be real network problems? Feb 23 11:01:41 but when I sit and debug, restarting the debugging every now and then then it happends Feb 23 11:02:30 this is the output I see in logcat: http://pastebin.com/Pxhzy24a Feb 23 11:02:45 alot of apache http warnings Feb 23 11:04:09 I can't help a lot, but check the server too Feb 23 11:04:53 Hi, can i use the new Map API when developing for older android-versions, like 2.2? Feb 23 11:05:12 will the app work on this devices? Feb 23 11:07:04 Melvinkelvin: try to google rest android Feb 23 11:08:11 http://technicalmumbojumbo.wordpress.com/2012/01/19/android-tutorial-restful-webservices-google-maps-integration/ Feb 23 11:21:24 Hi just dumped the view hierarchy of an app and I am seeing something interesting... There is View object and inside of it. there is a webkit view Feb 23 11:21:31 How did they manage to get it in there Feb 23 11:22:57 mephju: what is the class of that view? Feb 23 11:23:39 clever, android.webkit.WebView Feb 23 11:24:08 and it's inside of android.view.View Feb 23 11:24:22 like View is a ViewGroup, which ofcourse, it isn't Feb 23 11:26:57 supposing I have the View object...how could I access the WebView object Feb 23 11:28:13 mephju: are you sure its a bare View? Feb 23 11:28:29 that's what the view dump says Feb 23 11:28:33 yes. totally sure Feb 23 11:28:57 weird Feb 23 11:30:20 clever, https://dl.dropbox.com/u/19948722/Screenshot%20from%202013-02-23%2012%3A29%3A19.png Feb 23 11:31:04 on the right of that image, you can see the view hierarchy Feb 23 11:33:56 weird Feb 23 11:34:20 and to be honest, I want to access that webkit... do you know a way how to get it? Feb 23 11:35:01 mephju: i would just replace the view with a linearlayout Feb 23 11:35:32 how can I do that. wouldn't the child, which is the webkit, be replaced too Feb 23 11:36:12 just edit the xml before compiling the project Feb 23 11:36:34 ah no no Feb 23 11:36:59 it's not possible...the view is injected into my linearlayout dynamically Feb 23 11:37:06 via code.. Feb 23 11:37:17 can you edit that code? Feb 23 11:37:50 and there is no way to retrieve the WebView...no it's just class files ...the api gives me no access to the webkit Feb 23 11:38:29 If I would understand how to place a webview inside of a view, I could maybe find a way Feb 23 11:38:56 id get an instance of that View and then test if (v instanceof ViewGroup) Feb 23 11:41:45 that's worth trying Feb 23 11:45:39 if I have access to a group of testers and others do too... what ways can that group make sure that the app they are testing is not malicious in any way or that the dev is accountable for it ? any ideas ? Feb 23 11:49:12 Anyone familiar with both Qt and the Android platform? I'd like to ask some questions about android by making comparisons to Qt. Feb 23 11:51:37 clever, thx, it's a viewGroup indeed... Feb 23 11:51:44 strange :) Feb 23 11:52:16 mephju: try Log.v(TAG,"v is "+v); Feb 23 11:52:20 mephju: what does it print? Feb 23 11:54:39 clever: view is com.openx.ad.mobile.sdk.views.OXMAdBannerViewImpl@41457dd8 Feb 23 11:55:33 mephju: ah, so its not a View, its a custom View within that package Feb 23 11:55:53 and the view dumper probly cant handle that, so it just says its a view Feb 23 11:56:06 com.openx.ad.mobile.sdk.views.OXMAdBannerViewImpl likely extends ViewGroup or LinearLayout Feb 23 11:56:14 clever, just wanted to say that :) Feb 23 12:07:19 Alternatively, what's the support for Qt apps on Android? I'm watching a talk at the moment which suggests it's possible. Feb 23 12:08:31 clever, man this is great. I had a problem which was threating the success of the whole project. But now I can just circumvent it, thx man. Hope I can help you too one day Feb 23 12:12:24 When a user hits the device back button the activity gets paused? Feb 23 12:13:40 socket: ive found that the back button always destroys the activity Feb 23 12:14:33 Hey there, I got one question regarding listviews / expandable listviews: In case I got 2 or more buttons in each row, how do I detect which button has been clicked? Feb 23 12:15:06 ray122: i usualy bind an onclicklistener within the adapters getview call Feb 23 12:15:31 clever: ok I ll try that, thanks! Feb 23 12:15:42 ray122: let me pastebin an example Feb 23 12:16:01 ray122: http://privatepaste.com/ee1a687492 Feb 23 12:16:16 clever: perfect thanks Feb 23 12:16:24 ray122: in this case, there is a new instance of OnClickListener for each button and row, and they all reference the holder obj Feb 23 12:16:37 if the row gets recycled, get the holder (last line) and change the id inside it Feb 23 12:19:58 hmm, simpsons "tapped out" seems an awful lot like a reskinned "men in black" game Feb 23 12:20:10 which is probably just a reskin of another existing timesink game Feb 23 12:20:50 I wonder why Eve Online is not on android yet, considering its graphics are not demanding and people are brutally addicted Feb 23 12:22:53 root66: many of the hud elements would be tricky to render with the normal ui toolkit Feb 23 12:22:56 would need a lot of custom views Feb 23 12:25:55 huh? Feb 23 12:26:18 if its the same eve as the one i'm thinking of Feb 23 12:26:27 hi, how can i make use of Eclipse's syntax highlighter library in my android project? i want to color the code that i type in Edittext. Feb 23 12:26:45 I played eve for a month and don't recall anything that couldn't easily be done on andriod Feb 23 12:27:04 root66: the round progress bars for sheild/armor/structure mainly Feb 23 12:27:47 dude no one uses the normal ui toolkit for making professional games Feb 23 12:27:59 ...., i have been :P Feb 23 12:28:17 *professional* games Feb 23 12:28:23 http://gallery.earthtools.ca/index.py/android/device-2013-01-16-212816.png Feb 23 12:28:24 no offense Feb 23 12:28:41 root66: although this doesnt use seperate views for the ui objects, only the number plates Feb 23 12:29:01 the layering was too much of a pain, so i just did it manualy in onDraw Feb 23 12:29:31 I am not going to pretend that it always makes more sense to do it all in GL or that every professional game ever has not used native ui elements Feb 23 12:29:53 but it's rare Feb 23 12:30:06 ive only been at this for ~2 months now Feb 23 12:30:35 as an analogy, I am working on something in html/javascript right now that everyone said I should do using canvas Feb 23 12:30:41 I decided to do it all using divs and it works great Feb 23 12:30:46 probably saved me days of work Feb 23 12:31:02 but it's not a typical case Feb 23 12:31:06 the game i'm basing this on is writen in qx Feb 23 12:31:12 which literaly spams
's everywhere Feb 23 12:31:16 ah Feb 23 12:31:17 a simply button has 5 or 6 divs Feb 23 12:31:29 and not a single div, anywhere, has id= on it Feb 23 12:31:32 check this out: http://johnnystreet.com/audio.html Feb 23 12:31:40 work in progress Feb 23 12:31:45 Your browser does not implement createScriptProcessor. The animated gain indicator will not be active. If you are using Chrome, consider updating. Feb 23 12:32:07 yep Feb 23 12:32:13 hmmm, not sure what it can do Feb 23 12:32:28 try loading the first preset Feb 23 12:32:35 it might still work just without any graphical output Feb 23 12:32:38 cant click on those, its greyed out Feb 23 12:32:44 ah Feb 23 12:33:03 dont hear anything Feb 23 12:33:06 press play Feb 23 12:33:11 on the clock Feb 23 12:33:13 dont see a play button Feb 23 12:33:16 or a clock Feb 23 12:33:21 did you load the first preset? Feb 23 12:33:29 yeah, i loaded one and connected it Feb 23 12:33:50 if you clicked the preset dropdown and choose the first one, it adds some stiff and connects it all for you Feb 23 12:33:50 clever: I love your little building art Feb 23 12:34:09 anyway it might not work on your browser. sounds like it's out of date Feb 23 12:34:11 StingRay_: all of that was copied from the original game, i'm just replacing the js client with an android one Feb 23 12:34:16 oh Feb 23 12:34:23 I love that stuff though Feb 23 12:34:29 root66: Sorry, Your browser does not support the Web Audio API. Please try Chrome 10+ or Safari 6+. if i try to use firefox Feb 23 12:34:42 yeah, it means what it says Feb 23 12:34:44 firefox sucks Feb 23 12:34:50 no web audio api Feb 23 12:35:23 root66: i have seen some gameboy emulators using data: urls in