**** BEGIN LOGGING AT Wed Mar 14 02:59:58 2012 Mar 14 03:02:04 http://www.phdcomics.com/comics.php?f=1478 Mar 14 03:02:10 That's my new advice for everyone Mar 14 03:02:57 thats funny Mar 14 03:14:19 is the number shown next to your app in the market total installs or active installs? Mar 14 03:16:28 QubeZ, total Mar 14 03:17:53 figured, thanks Mar 14 03:17:58 kinda misleading Mar 14 03:18:03 install -> uninstal... counted Mar 14 03:18:36 as a user, i'd be more interested in an app that 20k people installed and are using versus 200k that installed then 199k uninstalled Mar 14 03:19:10 To Do Mapr approaching its first 50 install milestone lol Mar 14 03:19:29 Hopefully after Friday's demo, it'll get more exposure Mar 14 03:23:17 <`z> k Mar 14 03:23:34 `z: sup man Mar 14 03:25:17 honest question... have any of you software guys that work for software companies (doing android, or otherwise) ever worked for a company where management wasnt completely fucked up. Where good hard work was rewarded, and ass kissing really got people no where? Mar 14 03:25:40 that's a very bitter question Mar 14 03:25:54 bankai_: you dont know ron_frown do you? Mar 14 03:25:55 =) Mar 14 03:26:26 ron_frown: no place; to answer your question Mar 14 03:26:28 I've been in the business for 15 yr, and thus far I've found 1 company that I worked for for 1 year, that was an honest good ideas and work are rewarded, no ego maniacs, no competition between coworkers etc Mar 14 03:27:37 fostered great software, and a nice healthy work environment Mar 14 03:27:48 ron_frown: UHG, where I work. UnitedHealth Group is like that. I've been rewarded and valued for 2 years. My manager is great and actually cares that you have a personal life and sometimes it conflicts with work. Very flexible. Mar 14 03:27:54 I dev there but not Android Mar 14 03:28:20 I find myself hugely unhappy at my current employer, despite having exciting things to work on... management is so fucking terrible that it negates any happiness in working on bleeding edge stuff Mar 14 03:28:30 and wondering if there IS a software company out there fo rme Mar 14 03:29:12 I dont feel like I am being too hard on the places I've worked for Mar 14 03:29:26 idiocy is what gets rewarded most the places I've worked Mar 14 03:29:41 well ... change your attitude hahah Mar 14 03:29:44 and when the shit hit the fan, the I told you so some how gets me thrown under the bus =) Mar 14 03:31:06 I'm having an issue setting up a menu with actionbarsherlock. I've never seen the problem before and I have no clue what to do about it. http://pastebin.com/wvFFD1HP Anyone know what to do? Mar 14 03:31:16 I think I have a lot to offer an open minded company...but I've had such a hard time finding that company... I'm ready to quit software Mar 14 03:31:35 I know you arent necessarily supposed to thoroughly enjoy your day job, but I fucking despise it. Mar 14 03:31:38 ron_frown: why would you quit building software just because you're unhappy at some company? Sounds illogical. Mar 14 03:31:51 QubeZ because thats what I KEEP finding Mar 14 03:31:58 ron_frown: look harder Mar 14 03:32:05 or be more tolerant Mar 14 03:32:11 ron_frown: join the unix admin team :) Mar 14 03:32:12 or help change the environment Mar 14 03:32:14 tolerance isnt in the cards =) Mar 14 03:32:28 QubeZ - well theres no hope of that here Mar 14 03:32:32 have you gone to your mgr to discuss your concerns? Mar 14 03:32:42 but thats not to say the next place might be understanding Mar 14 03:32:44 if they ignore you then you're in a bad place... move on Mar 14 03:32:50 cr5315 import the correct menu item and menu inflater Mar 14 03:33:13 t0mless: if I import the ABS one i get more errors Mar 14 03:33:25 fix those errors :) Mar 14 03:33:29 ... Mar 14 03:34:32 ron_frown: http://www.youtube.com/watch?v=f0Iu2CAwQaU Mar 14 03:34:41 to compound the problem big time... my wife is not supportive about anything ;-) Mar 14 03:35:01 you should not say stuff like that on irc Mar 14 03:35:11 why Mar 14 03:35:24 if you can't vent on IRC, where can you go! Mar 14 03:35:25 its a lil personal to say to 100's of people you dont know Mar 14 03:35:34 t0mless: how about real life friends? Mar 14 03:35:43 you think ron_frown has friends? Mar 14 03:35:46 wtf is wrong with you Mar 14 03:35:52 im sure he does Mar 14 03:35:57 actually I dont... but thats by choice =) Mar 14 03:36:20 ouch Mar 14 03:36:25 ron_frown I felt that way when I was a teacher... and I left teaching Mar 14 03:36:47 I dont tolerate people well... intelligence (and I dont really mean iq intelligence) is something I value hugely in people Mar 14 03:36:58 ron_frown but I've not worked for anyone developing software as of yet, only doing IT stuff and an Insurance agent atm Mar 14 03:37:01 value hugely but dont find often =) Mar 14 03:37:17 t0mless - I did noc engineering for a long time, and it was great Mar 14 03:39:44 I've found that I am particularly good with mechanics and wood working Mar 14 03:39:50 thought about building furniture for a livign Mar 14 03:40:08 one of those places where doing things with a level of elegance is appreciated =) Mar 14 03:44:34 ron_frown: a very common path for techies it seems; getting the hell out of tech Mar 14 03:49:24 because most techies get burned out Mar 14 03:49:55 I love software, honestly probably closer to obsessed with it Mar 14 03:50:05 and thats probably REALLY the problem Mar 14 03:50:25 when people do dumb shit, that just causes problems later it pisses me off more than it would the avg person Mar 14 03:50:35 QubeZ: did you launch your new app yet? Mar 14 03:52:10 brx_: i did, www.todomapr.com Mar 14 03:54:59 very cool QubeZ :) Mar 14 03:55:05 im suprised its free Mar 14 03:55:57 just want people to use it, we'll make $ off the web service coming online next month Mar 14 03:56:19 c2dm-based sharing of tasks, delegation.. even subtasks will be shared and updated in real-time (at least c2dm real-time) Mar 14 03:56:45 that's going to be a paid service? Mar 14 03:57:09 yes, premium... $12/yr -- advertised as $1 per month. Mar 14 03:57:22 premium allows you to be tribal leader.. yes, we using the tribes moniker Mar 14 03:57:32 anyone else that has To Do Mapr can be a tribal member and receive tasks Mar 14 03:57:50 Interesting concept Mar 14 03:57:50 to share tasks, you have to be premium user... but any joe schmoe can receive (after acceptance etc..) Mar 14 03:58:39 thank you Mar 14 03:59:55 we're even pitching it to vacation companies like this: Vacation company has user purchase a vacation package, they use To Do Mapr (free download) and we push their iteniary to the app (dates, places etc.. so they just map it).. company pays for our service. Mar 14 04:00:47 I need someone to find someone to sell my ideas Mar 14 04:00:57 I'll build em and someone else sell them Mar 14 04:06:50 hi Mar 14 04:08:12 I have a basic android app that loads some xml data based on a keyword. the thing is im getting the keyword in an activity, and then showing the results in another activity(listview) Mar 14 04:08:24 how could I do the same thing, using the same activity Mar 14 04:08:37 Fragments? Mar 14 04:09:18 Does any one know how to make activity slide on keyboard show like iphone? Mar 14 04:09:35 t0mless thanks Mar 14 04:12:44 can we do: @assets/fonts/somefont.ttf in XML? Mar 14 04:13:21 Don't think so, no Mar 14 04:14:28 is there some other way to use custom fonts through xml? or is the only way to do it by creating a custom class extending the desired object? Mar 14 04:15:05 Is there a way to reset a scalegesturedetector?I get an infinity for scale value... Mar 14 05:00:51 im trying to grab the display name from a contact picker but I can only manage to get the postal address: http://pastebin.com/xnXYQ5rG Mar 14 05:00:55 anyone able to take a peek? Mar 14 05:01:08 the addressCursor and query code works, displayName doesn't Mar 14 05:03:31 are you saying the .moveToFirst() on the displayNameCursor fails, or something else? Mar 14 05:03:47 wabz: I get returned null value for DISPLAY_NAME Mar 14 05:05:43 if id is a string, does putting it in the where part of the query like that really work? Mar 14 05:05:49 without quotes or as a bind parameter? Mar 14 05:06:07 you have it as a ? in the addressCursor Mar 14 05:06:55 let me try parameterizing it Mar 14 05:07:11 like ...Data._ID + " = ?", new String[] { id }, ... Mar 14 05:08:23 nope, still null Mar 14 05:09:38 i really dont get this pos contacts api.. Mar 14 05:09:52 like StructuredPostal has .CONTACT_ID but StructuredName does not Mar 14 06:09:32 hello people Mar 14 06:10:19 I'm trying to run a few robotium tests from hudson (or simply from commandline) but whenever I try to run the test I get the following error: Mar 14 06:11:00 INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for: ComponentInfo{com.my.app.tests/pl.polidea.instrumentation.PolideaInstrumentationTestRunner} Mar 14 06:11:17 any idea what is causing this error Mar 14 06:12:38 the strange thing is that I also have another project which are just android unit test for the very same application and they are built and ran just fine Mar 14 06:15:19 speaking of testing Mar 14 06:15:29 I've had a mother of a time trying to debug unit tests from eclipse Mar 14 06:15:29 the command : adb shell pm list instrumentation , does print out the test Mar 14 06:15:41 it looks like it starts unit testing... and I can see logging from the tests themselves Mar 14 06:15:53 but maybe 1 in 20 attempts it'll actually hit any breakpoints Mar 14 06:21:58 Hi! Is there a way / lib to record audio / video to a fileoutputstream? MediaRecorder can only record to a filename or to a filedescriptor :-( Mar 14 06:32:34 I need a god damn heater in my office Mar 14 06:34:54 Home Depot has those Mar 14 06:37:07 well I have a massive massive massive HVAC system at my house Mar 14 06:37:18 but my wife decided shed rather just run oil space heaters Mar 14 06:37:22 office does not have one Mar 14 06:37:28 this code retrieves the address from my contact picker code but I can't seem to get display_name working: http://pastebin.com/fgNWVqVg Mar 14 06:37:50 I tried to run another query but I keep getting error stating the contactpicker instances=2 limit=1 Mar 14 06:38:05 but im not re-calling the activity at all... just doing another query right after this one Mar 14 07:10:12 hey guys i have a question how do i create an AVD for my htc desire hd Mar 14 07:11:41 <`z> one does not simply create AVDs for android devices Mar 14 07:11:57 `z: what do i need to do as im totally new to this Mar 14 07:12:04 eagles0513875, run android avd Mar 14 07:12:07 i have eclipse setup with the plugin Mar 14 07:12:07 <`z> you know who i am? Mar 14 07:12:08 <`z> lol Mar 14 07:12:18 `z: = zhongfu :P Mar 14 07:12:22 <`z> eagles0513875, just get android sdk Mar 14 07:12:33 <`z> config it a bit Mar 14 07:12:35 <`z> and tadaa Mar 14 07:12:39 ok but Mar 14 07:12:40 <`z> but emulating is slow Mar 14 07:12:42 <`z> so.yeah Mar 14 07:12:45 first time ! Mar 14 07:12:48 when i try and run a sample project its saying i need an AVD Mar 14 07:12:55 vishrayne: first time developing for android Mar 14 07:13:15 eagles0513875, run android avd from console Mar 14 07:13:17 an AVD is a config and image for the emulator - if you want to run on hardware, configure the hardware - if you want to run on the emulator, make an AVD Mar 14 07:13:36 It'll help u create an avd ! Mar 14 07:13:52 ok Mar 14 07:14:16 android avd = command not found vishrayne Mar 14 07:15:23 eagles0513875: Windows or Linux or Mac? Mar 14 07:15:48 linux Mar 14 07:15:52 ubuntu 11.10 32 bit Mar 14 07:16:56 eagles0513875, well do android list targets Mar 14 07:17:47 vishrayne: android = command not found Mar 14 07:17:59 eagles0513875: try ./android list targets Mar 14 07:18:41 drlaban: should i be doing this from the location the SDK installer is found Mar 14 07:18:49 in the same directory Mar 14 07:18:52 or add it to your path Mar 14 07:18:53 eagles0513875: Yes, in the tools folder Mar 14 07:19:09 t0mless: I will suggest that when we know everything else is working. :) Mar 14 07:19:19 oops Mar 14 07:19:23 thats why it wasnt working Mar 14 07:19:48 fix ur path issue and try to run android avd ! Mar 14 07:19:56 seems to be doing something Mar 14 07:20:03 ok that gave me a long list of things Mar 14 07:20:13 :) Mar 14 07:20:24 i can get to the AVD manager through eclipse Mar 14 07:20:51 ok im in the AVD manager Mar 14 07:21:05 hey guys, how do I end one activity from another? Mar 14 07:21:24 what? Mar 14 07:21:26 <`z> DERP Mar 14 07:22:00 eagles0513875, "new", set options for ur emulator and u r done ! Mar 14 07:22:20 make sure u set the right os version Mar 14 07:22:21 eagles0513875: If you haven't, add whatever tools you need to your path for future reference, as t0mless said. "adb" is a must in a console when developing. Mar 14 07:22:29 true! Mar 14 07:23:00 Lochlan: A counter question: What are you trying to achieve? Mar 14 07:23:07 Lochlan: Explain the problem. Mar 14 07:23:18 SWEET Mar 14 07:23:23 Sorry ok Mar 14 07:23:37 drlaban: :) will do that Mar 14 07:23:39 thanks for your help Mar 14 07:23:41 I have one two .java files Mar 14 07:23:47 er two java files* Mar 14 07:23:52 :) Mar 14 07:24:18 ok now to start learning the api :D Mar 14 07:24:21 I know I can do finish() to finish it Mar 14 07:24:37 but how do I call finish() on one file from the other Mar 14 07:24:55 launch your intent for the other and call finish() Mar 14 07:25:04 why do u want to do that ? Mar 14 07:25:10 without some terrible badness you couldnt do that Mar 14 07:25:20 and probably have the wrong idea about why you'd want ot Mar 14 07:25:28 yeah I probably do Mar 14 07:25:54 for google apis, using OAuth2 bypasses the use of your app api key? I'm seeing Gtasks API only allows 5000 requests per day Mar 14 07:26:06 let A, B be activities.. better call finish() on A before u call startActvity for B Mar 14 07:26:14 in the OAuth2 code, I dont see any api key being set... wondering how this is working Mar 14 07:26:58 vishrayne no... call startActivity() for B and finish () in A right after the startActivity call Mar 14 07:27:22 my bad ! thanks for pointing Mar 14 07:27:28 ok so when I launch my Intent.. I want it to do it's business and then close the main app. How can I do this? Mar 14 07:27:53 do read abt startActivtyForResult Mar 14 07:30:06 where would be a good place to start with an application UI Mar 14 07:30:41 eagles0513875, http://developer.android.com/resources/tutorials/views/index.html Mar 14 07:32:19 eagles0513875, build a HWorld app, understand what views are.. then move onto more interesting things. :) Mar 14 07:32:25 actually I guess I'm really looking for a way to hide the view.. Mar 14 07:32:34 ty vishrayne Mar 14 07:33:54 Lochlan, "do business close the main app".. u mean close the first activity ? Mar 14 07:34:06 yep! or hide it Mar 14 07:34:48 hmm i suggest u use startActivtyForResult, override on ActivityResult.. then handle ur activities life Mar 14 07:36:22 read Starting Activities and Getting Results in http://developer.android.com/reference/android/app/Activity.html Mar 14 07:37:11 Has anyone here looked at the downloader sample for the expansion APKs? Mar 14 07:37:21 thanks vishrayne Mar 14 07:38:54 Lochlan, From A, startAFR(B).. do ur business thingy and call finish, which returns control to A's onActivityResult. once there based on success or error, either call B or do what ever u want. Mar 14 07:39:17 Lochlan, let android handle ur activities life :) Mar 14 07:41:12 Happy pi day all Mar 14 07:46:45 "tides turning for jobs and growth in the UK.." ..Somebody give me a fecking job then!!!1 Mar 14 07:51:02 i just read the local service example here: http://developer.android.com/reference/android/app/Service.html#LocalServiceSample ... the second code block implements doBindService() etc. what is that? are they methods I can override in an activity? Mar 14 07:53:14 whats the name of that dumbass service in windows that keeps nagging you to reboot after install fixes? Mar 14 07:53:57 apoc: it allows other activity's/services to interact with said service Mar 14 07:54:21 <`z> neekers: you just have to kill all svchost.exe processes Mar 14 07:55:31 hey guys is there a way i can full screen the emulator? Mar 14 07:55:53 im trying to do the hello android example but the emulator is not fully screen on my netbook so i cannot see the text Mar 14 07:56:25 eagles0513875_: raise the resolution on the emulator. Create a new one, with higher res. Mar 14 07:56:42 juzz: is there a way i can adjust the resolution on my current one Mar 14 07:56:53 edit the settings of it. Mar 14 07:56:59 power it down, and edit it. Mar 14 07:57:02 :) Mar 14 07:57:03 ok Mar 14 07:57:12 juzz: power what down im using an AVD Mar 14 07:57:15 not actual device Mar 14 07:57:24 i know. Mar 14 07:57:28 power down the emulator Mar 14 07:57:33 edit it´s settings. Mar 14 07:57:34 already done Mar 14 07:57:41 raise the resolution Mar 14 07:57:47 easier to create a new one though Mar 14 07:58:02 delete the old, create a new, and give it the same name. Mar 14 07:58:38 eagles0513875: if space is at a premium on your netbook f11 (or f12 cant remember) changes orientation, this sometimes helps me Mar 14 07:58:46 Hi, I have 2 tabs(same activity). I have a list view. I want to have two different adapters for the same listView. Anyway I can do it? Mar 14 07:59:22 I wan show two sets of items on the two tabs(array1 for tab1, array2 for tab2) Mar 14 08:00:48 Rrjois: call setAdapter(relevant adapter) on both listviews? Mar 14 08:00:49 brx_: thanks will test that out and see Mar 14 08:01:18 brx_, I have oly 1 listView. its 1activity Mar 14 08:01:36 brx_, 1 listView Mar 14 08:01:48 brx_: that actually didnt work btw Mar 14 08:01:56 try ctrl f11/f12 Mar 14 08:02:04 brx_: did that Mar 14 08:02:07 let me try again Mar 14 08:02:17 its in there somewhere :> Mar 14 08:02:27 alt, ctrl, smt like that :> Mar 14 08:02:40 brx_, can I have two listViews in one activity one for each tabs? Mar 14 08:03:03 ive only worked with tabactivity a couple iof times, im unsure sir Mar 14 08:03:20 im sure you can though ye Mar 14 08:03:44 each class in the tabactivity hierarchy would just extend listactivity perhaps ? Mar 14 08:03:51 `z: found a permanent solution, http://www.ehow.com/how_5573302_disable-windows-auto-update-restart.html Mar 14 08:04:05 <`z> i've got a even more permanent solution Mar 14 08:04:07 <`z> don't use windows Mar 14 08:04:12 <`z> use fedora or debian or ubuntu Mar 14 08:04:18 mint ftw! Mar 14 08:04:38 this is the last windows machine i buy, i do almost all my dev work on my macbook pro Mar 14 08:04:57 after being a windows user for 20 years or so Mar 14 08:05:00 urgh, do you not find the emulator extra sluggish on a macbook? Mar 14 08:05:34 brx_: with 8G RAM and and an SSD drive, nothing is slow on my macbook pro Mar 14 08:05:51 <`z> neekers.. internet? Mar 14 08:05:55 its really bad on mine, but mines a lower spec to be sure Mar 14 08:06:08 <`z> on my 3yo dell on ubuntu Mar 14 08:06:11 `z: everything is pretty fast Mar 14 08:06:15 <`z> ICS takes 15 minutes to start up Mar 14 08:06:17 <`z> on first boot Mar 14 08:06:34 my macbook boots in 15 seconds Mar 14 08:07:02 on what Mar 14 08:07:10 I sure as fuck dont have anything taking 15min Mar 14 08:12:40 neekers: nice :D Mar 14 08:26:04 hey guys Mar 14 08:26:04 im having issues with the hello world tutorial Mar 14 08:26:08 its not giving me a screen similar to the picture in the tutorial after the projec t is run Mar 14 08:27:25 <`z> ron_frown, ICS emulating a GNex Mar 14 08:27:31 <`z> no wait Mar 14 08:27:36 <`z> ICS on an emulated GNex* Mar 14 08:28:01 eagles0513875: how is it so different? Mar 14 08:28:04 `z: ? Mar 14 08:28:11 `z: you talkin to me Mar 14 08:28:33 I'd imagine he's talking to ron_frown Mar 14 08:29:08 SimonVT: any idea why the emulator is showing a black screen? Mar 14 08:29:19 would it be better i use my phone and ruphone?n what im developing off my Mar 14 08:29:27 You're doing it wrong Mar 14 08:29:35 ? Mar 14 08:29:40 SimonVT: atm im using an AVD Mar 14 08:30:01 and the code is exactly like the hello world code in the example Mar 14 08:30:06 Does anyone know how to get the Google Expansion APK downloader sample working on a pre 3.0 device? It appears that the sample is not setup properly. Mar 14 08:30:54 I dont have a problem there Mar 14 08:32:16 :( Mar 14 08:32:21 nobody has an idea as to my issue Mar 14 08:33:28 eagles0513875: check the xml file ensure that the "helloworld" textview is present o_O Mar 14 08:33:46 also try dropping another view onto the xml layout, see if that displays Mar 14 08:34:14 brx_: this is the default view etc Mar 14 08:34:24 brx_: which xml file the manifest Mar 14 08:34:31 the one in the layout folder Mar 14 08:34:36 main.xml prolly Mar 14 08:35:40 brx_: ya text view is in there Mar 14 08:35:59 and the text attribute has some text in there? (or at least a string reference) Mar 14 08:36:01 ? Mar 14 08:36:26 i think i see what the issue is Mar 14 08:36:26 txt color is black and background = black Mar 14 08:36:26 wait a min Mar 14 08:36:33 :D Mar 14 08:36:39 that could be an issue... Mar 14 08:36:41 brx_: ya there is a string reference Mar 14 08:37:03 is possible to make just a library with the build system ? like "make external/mylib/.../" ? Mar 14 08:37:35 that is solved :D Mar 14 08:37:45 ^^ nice Mar 14 08:37:48 much easier then i thought to change the text color Mar 14 08:37:55 used the graphical layout for the main.xml file :D Mar 14 08:38:22 well scratch that brx_ Mar 14 08:38:27 you should check out the "views" tutorial on android site Mar 14 08:38:28 now the emulator is throwing an error :( Mar 14 08:38:41 also, check out the manifest tutorial since you thought that controlled the layout :D Mar 14 08:38:44 :( Mar 14 08:38:54 brx_: im going to i started with the hello world as this is my ver first time working on something for android Mar 14 08:39:00 brx_: its throwing an error in the xml file Mar 14 08:39:21 does it actually build, or is the error prior to building? Mar 14 08:40:01 error prior to building Mar 14 08:40:28 somehow a main.out.xml is generated and then it fails there cuz the file is empty Mar 14 08:40:56 ouch :< Mar 14 08:41:02 gonna have to sort that out then arnt you Mar 14 08:41:20 brx_: yep not sure where to begin though Mar 14 08:41:24 and why its generating such Mar 14 08:41:29 Don't run from the xml file Mar 14 08:41:34 ahh Mar 14 08:42:44 ahh that solved it Mar 14 08:42:54 yet still nothing is showing up on my emulator screen Mar 14 08:43:00 no way to build independently a library ? :/ Mar 14 08:43:43 eagles0513875: try some other AVD's. or plug your droid in, its much better that way Mar 14 08:45:11 brx_: i have my droid plugged in Mar 14 08:45:23 brx_: now what Mar 14 08:45:32 then in run configurations you change runtype from auto to manual Mar 14 08:45:33 hi Mar 14 08:45:41 you will get the option to run on the device or the emulator Mar 14 08:45:55 wow... it took forever to figure out how to register here Mar 14 08:46:00 (if you are running windows you may require a usb patch) Mar 14 08:46:01 brx_: so choose the device in the AVD instead of an emulator Mar 14 08:46:11 are you using eclipse? Mar 14 08:46:53 brx_: yep Mar 14 08:47:08 at the top, next to green button, click the arrow Mar 14 08:47:10 then run config Mar 14 08:47:24 in the new windows click "target" ( i think) Mar 14 08:47:29 change from auto to manual Mar 14 08:47:36 ? Mar 14 08:47:36 how Mar 14 08:48:08 next to the "run" button, you get a drop down box Mar 14 08:48:09 should i choose a running android device brx_ ? Mar 14 08:48:24 "run configurations" Mar 14 08:48:58 im thinking of running and using my actual device Mar 14 08:49:46 try the project menu at the top, myb you can get to run configuration from there Mar 14 08:50:01 brx_: let me recreate the AVD Mar 14 08:50:03 hi Mar 14 08:50:33 sorry... new client Mar 14 08:51:00 brx_: would it be better to use the device itself Mar 14 08:51:13 well,i always use my device Mar 14 08:51:16 its faster Mar 14 08:51:25 especially when crunching numbers (obviously) Mar 14 08:52:15 brx_: this is a UI for the Libreoffice port that im working on Mar 14 08:52:18 but tbh you should be getting some output to the emulator screen from the hello world program Mar 14 08:52:52 all i see brx_ if i hit home i see the shiny android logo Mar 14 08:53:26 hmm im not sure whats happening Mar 14 08:53:37 brx_: should i have usb debugging on Mar 14 08:53:43 im no expert, but the hello world should run without any tweaking at all Mar 14 08:53:50 on the device? yes i think so Mar 14 08:53:57 that could be why Mar 14 08:54:04 but as i said earlier you may require a patch if you are running windows Mar 14 08:54:11 im not im on linux Mar 14 08:54:20 try that first, then lookup your device to see if you require a special patch Mar 14 08:54:28 what device you got? Mar 14 08:55:05 htc desire hd Mar 14 08:55:21 i have the htc desire, i required the patch in windows Mar 14 08:55:27 so if I were to get a new android phone which one is the coolest? Mar 14 08:55:34 i would wager you also require it Mar 14 08:55:37 oh and I take lots of pictures Mar 14 08:55:47 I love my Galaxy S2... Mar 14 08:56:00 can anyone tell me if i need a patch to be able to develop on my desire hd? Mar 14 08:56:10 google is your friend :) Mar 14 08:56:14 why woul dyou need to patch? Mar 14 08:56:36 t0mless: brx_ said he needed a patch on windows for his htc desire and i was wondering if i needed one for my desire hd Mar 14 08:56:44 now to find my serial number Mar 14 08:56:45 eagles0513875_: http://developer.android.com/guide/developing/device.html Mar 14 08:56:57 yep i did Mar 14 08:57:03 what kind of patch? Mar 14 08:57:09 usb Mar 14 08:57:13 hes in windows Mar 14 08:57:17 aka a driver Mar 14 08:57:20 you might need a *driver* Mar 14 08:57:24 know what i mean Mar 14 08:57:30 Tho the one in the sdk works fine for desire Mar 14 08:58:12 If I'm receiving dead code warnings in log cat due to methods not being defined is that going to cause my app to cease to function? Cause it appears to launch and work until I hit a button. Mar 14 08:58:23 brx_: im on linux not windows Mar 14 08:58:45 ahhhh my mistake :O Mar 14 08:58:52 thought you said "not" in linux Mar 14 08:59:07 not in windows and brx_ if i did im sry still half asleep this morning Mar 14 08:59:44 now to find my serial number of my device Mar 14 09:00:03 why do you need the serial number? Mar 14 09:00:10 either way, "adb devices" is the easiest way Mar 14 09:00:42 Leeds: im going to not use an emulator but my physical device Mar 14 09:00:49 yes, and? Mar 14 09:01:28 eagles0513875: go to /sdk/platform-tools/./adb devices from terminal as Leeds said Mar 14 09:01:34 i need my serial number it wont let me use my device with out specifying the serial Mar 14 09:01:43 ?? Mar 14 09:01:46 of course it will Mar 14 09:01:48 hmmm Mar 14 09:01:55 eagles0513875, adb devices Mar 14 09:02:31 I've got this crazy layout, and would like to put a semi-transparent overlay over it. The edges of the layout are like rounded corners, so I'm wondering how one would solve this problem.. Mar 14 09:02:33 or adb -d Mar 14 09:02:50 (but make sure only one device is connectd) Mar 14 09:03:41 XeruX: Same way you made those rounded corners Mar 14 09:03:51 XeruX, consider giving alpha content to background color prprty Mar 14 09:03:52 vishrayne: ya only my devices is connected Mar 14 09:04:16 eagles0513875, then adb -d shlld work Mar 14 09:04:37 SimonVT: so I'd have to create another subclass of view (which I did for the borders of the layout)? :P Mar 14 09:04:37 then in eclipse just change the run configuration/target to "manual" and you are good to go Mar 14 09:05:01 Eh, figured you took the easy way out and just used 9patches Mar 14 09:05:05 Is it possible to set alpha value to a relativelayout and ALL its children at once, or do I have to apply to each view manually? Mar 14 09:05:21 cdmdcmdmcdm: you can do a generic "Android, please open this PDF" system call, but it won't do very much if there *isn't* a reader installed - and it's not a standard thing Mar 14 09:05:35 hey folks - is there a way i can pull down and display PDFs within an app without launching a browser? Mar 14 09:05:40 also u will have to setup ur devolpmnt device, see http://developer.android.com/guide/developing/device.html Mar 14 09:05:50 eagles0513875: How far have you got so far? Did "./adb devices" work first of all? Mar 14 09:05:57 vishrayne: are you just finding what I wrote and reposting it a few minutes later? Mar 14 09:06:21 Leeds, Srry I dint saw it Mar 14 09:06:48 wow Mar 14 09:06:56 wasnt expecting that Mar 14 09:07:53 cdmdcmdmcdm, what do you mean "pull down"/ Mar 14 09:07:55 ? Mar 14 09:08:25 cdmdcmdmcdm: downloading a file is easy... 'opening' a file is easy... the problem is that you can't assume there's anything on the device which can handle PDF, so you need to provide your own Mar 14 09:08:50 patty - download. ;p Mar 14 09:09:13 nm, figured it out Mar 14 09:09:35 ok - so i found this APV pdf viewer. basically what i'm asking is this, can i bundle this PDF viewer and launch it from within my app? i just want to maintain the skin of the app basically... Mar 14 09:09:40 hmmm Mar 14 09:09:45 drlaban: ./adb from inside the sdk tools directory doesnt seem to work for me Mar 14 09:10:04 eagles0513875: It's in the "platform-tools" directory Mar 14 09:10:19 my professor actually talked about that the other day... I know that one solution could be requiring the user to install a PDF reader if they do not have one Mar 14 09:10:24 <[deXter]> cdmdcmdmcdm, I recommend using a PDF Library, like say PDFTron or something Mar 14 09:10:34 ahh ok drlaban let me try it Mar 14 09:10:48 eagles0513875: Sure, gimme a holler when you have Mar 14 09:11:23 drlaban: im getting ?????? for serial and no permissions Mar 14 09:11:31 oh.. cdmdcmdmcdm, I think I misunderstood your question, sorry Mar 14 09:11:42 im guessing i need to add the udev stuff like it says here http://developer.android.com/guide/developing/device.html Mar 14 09:11:49 eagles0513875, see http://developer.android.com/guide/developing/device.html Mar 14 09:11:51 eagles0513875: Alright, then you have to follow the guide that Leeds provided Mar 14 09:12:13 eagles0513875: It's a tiny bit fiddly but pretty straight forward. Mar 14 09:12:30 thanks :) Mar 14 09:12:36 will ask if i have any other issues Mar 14 09:12:47 you can do it! Mar 14 09:12:51 eagles0513875: I also remember that disconnecting/reconnecting the device after doing the udev martial-arting, is a good thing to do. Mar 14 09:14:23 thanks brx_ and drlaban Mar 14 09:14:33 drlaban: can i disconnect it before i do it? Mar 14 09:14:35 does anyone know of any sample project ideas/challenges? Mar 14 09:15:06 PattyMacky: rss reader :) Mar 14 09:15:27 eagles0513875: Yeah, should work out that way as well. Mar 14 09:16:17 eagles0513875: Sometimes I've been forced to reboot my machine for no apparent reason other than having udev actually apply the changes. Mar 14 09:16:47 brx_: good suggestion - and what feeds does it read/ what would it do exactly? Mar 14 09:16:58 drlaban: dont mind rebooting hehe VIVA SSD IN ME NETBOOK :P Mar 14 09:17:06 [dexter] thanks Mar 14 09:17:25 eagles0513875: But that could be because I'm not a super-duper-awesome-mega-*nix-guru who knows my way around Linux as much as I often take the "Well, rebooting usually works" route. Mar 14 09:17:37 PattyMacky: just choose a feed, your footy club or whatever and try to create an interface for it Mar 14 09:18:44 You usually have startup scripts under /etc/init.d/ that you can use instead of rebooting ;-) Mar 14 09:19:20 Check out chkconfig and the service command too, it's kind of useful to know hehe Mar 14 09:19:54 hi.. i get a Cut of Http GET reply.. Im missing half the response string.. Mar 14 09:20:02 Mikellip: Well, I often reboot when "the bloody udev restart" or "the bloody /etc/init.d/[whatever]" doesn't seem to be doing what I want it to do. Mar 14 09:20:20 Mikellip: But then I realise it probably is because I did something wrong or in the wrong order. :) Mar 14 09:20:22 im calling a REST service from android.. Mar 14 09:20:22 brx_: awesome idea, is there a library or would I just use XML? Mar 14 09:20:33 there are several Mar 14 09:20:39 what can be the case?.. Mar 14 09:20:50 DOM/document parser comes with sdk Mar 14 09:20:51 please check this out: http://pastebin.com/0L1LmzyW Mar 14 09:20:55 you are the best Koder Ever, you tell me :-P Mar 14 09:20:59 or you could try the sax parser which i think is external Mar 14 09:21:07 even i need help :p Mar 14 09:22:13 brx_: alright great... looks like i'm off to learn more about rss! Mar 14 09:22:37 PattyMacky: you will learn lots from that project, http requests, xml parsing, sqlite(if you choose to save the data locally) Mar 14 09:22:38 bestKoderEver: Do you get the entire string when you browse to it? Mar 14 09:22:51 bestKoderEver: Does it seem to get stuck on one specific character? Mar 14 09:22:55 also the UI Mar 14 09:23:24 brx_: drlaban if i am understanding right the hello world tutorial each thing i want in my program i need to add an activity for each aspect? Mar 14 09:23:34 of my program Mar 14 09:23:37 Is it not possible to set alpha to 0.5 for all children of a viewgroup apart from one? Using AlphaAnimation to apply to all children, and then set another AlphaAnimation to set alpha to 1.0f for the view I don't want to be transparent Mar 14 09:23:49 eagles0513875: -kind of- heh Mar 14 09:24:00 you should read the fundamentals tutorial Mar 14 09:24:01 eagles0513875: I have to look at it again. Can't remember what it says anymore... Mar 14 09:24:33 look at activity lifecycle document on android dev site Mar 14 09:24:55 brx_: i'm excited... I understand the basics, but I've never actually dealt with requests or third party anything. we'll see how it goes Mar 14 09:25:06 PattyMacky: good luck! Mar 14 09:25:13 eagles0513875: Did you get your device to work properly on your netbook? Mar 14 09:25:27 thanks haha Mar 14 09:25:37 i'm assuming i should figure out how RSS actually works first Mar 14 09:25:44 rss is very simple Mar 14 09:25:54 go to any wordpress site forward slash rss Mar 14 09:26:02 and look at the structure of the file Mar 14 09:26:23 oh wow Mar 14 09:26:25 note rss and atom are pretty much the same thing Mar 14 09:26:30 so you can use either Mar 14 09:26:39 that helped more than a google search for "how rss works" Mar 14 09:26:52 Sometimes Google is NOT your friend. Mar 14 09:27:05 haha Mar 14 09:27:07 But then again, depends on how specific you are. And what you're looking for. :) Mar 14 09:27:19 PattyMacky: its just a way of forming data so that you can programatically select which data you want Mar 14 09:28:51 seems to be the key already Mar 14 09:29:03 Hello... I have published an application yesterday in google play. (arancino) I can read in the developer console a bounch installs but I cannot see the stats. There should be a link to the statistics breakdown? Is it missing since the stats have not been generated? Mar 14 09:29:04 drlaban if i go to it with the browser i get 'endpoint not found' hm. Mar 14 09:29:26 bestKoderEver: Something worth looking into Mar 14 09:29:50 ..thinking.. Mar 14 09:33:03 asdraban: its slow to update :< dont expect real-time stats Mar 14 09:58:34 brx_: I have no link at all... perhaps the stats have not already been computed Mar 14 09:58:54 yes that would be my guess too asdraban Mar 14 09:59:36 It's my first app for Android... how can I promote it? Mar 14 10:00:19 buy ads? Mar 14 10:00:21 (ha ha ha) Mar 14 10:00:52 It's a free app... no banners at all so the budget is almost zero ;-) Mar 14 10:01:13 Any forum to suggest me? Mar 14 10:01:42 keywords? blogs? a website thats ranked high up on search engines? Mar 14 10:01:55 what does the app do? ill download it now and leave you a stonking review (if its any good :)) Mar 14 10:02:01 word of mouth Mar 14 10:02:08 hi Mar 14 10:02:12 a huge bursts of installs to get featured lol Mar 14 10:02:28 its not easy to get popular on the market :( Mar 14 10:02:29 ;-) it's a comics in italian language Mar 14 10:02:34 is there a guarantee about the thread that a location listener is called in? Mar 14 10:03:10 I would like to use android with openid, so that users can login with a google account, facebook account. But also I would like my users to save data on my own cloud server with the use of openid token. What are my best options, where to start? Mar 14 10:03:11 If you have children you may find it funny... Mar 14 10:03:28 what's the app name? Mar 14 10:03:39 Arancino Mar 14 10:04:41 asdraban: Arancino Adventures? Mar 14 10:04:48 Yes Mar 14 10:05:48 22 mb is quite large for people downloading over gprs, dunno how detrimental that would be Mar 14 10:06:07 yes but there are lots of images and audio Mar 14 10:06:34 Unfortunately I cannot make it "shorter" Mar 14 10:07:22 On ios It was successful... I'm satisfied... almost 2k downloads in two week Mar 14 10:07:34 wow thats impressive Mar 14 10:08:17 i dont have enough space to install the app :< Mar 14 10:08:40 i have that problem too Mar 14 10:08:44 time for a new phone Mar 14 10:11:11 asdraban: ok its installing now Mar 14 10:11:31 I'm starting to fear ;-) Mar 14 10:11:59 it looks great! Mar 14 10:12:17 not a clue what hes saying but it looks like fun Mar 14 10:12:35 Thanks a lot!! Mar 14 10:12:56 i will leave you a first class review and 5 stars Mar 14 10:13:06 On ios I have had downloads from really absurd locations! Mar 14 10:13:13 I was surprised Mar 14 10:13:52 Saudi arabia, china, japan... much downloads from real strange places Mar 14 10:14:12 I wondered if they have understood that it is in italian ;-) Mar 14 10:14:36 However it seems that they liked it Mar 14 10:15:06 It was made in phonegap so there was just some little work to adapt it for the port Mar 14 10:15:47 ok i left rating/review :> Mar 14 10:16:56 Oh my god... ;-) the first comment on the android market! Mar 14 10:17:07 has it appeared already? Mar 14 10:17:12 I'm also working on real games Mar 14 10:17:35 I code with cocos2D-x to get the maximum portability Mar 14 10:18:50 good stuff, not sure if everyone in the channel would approve of phonegap :p Mar 14 10:18:55 How is android market compared to appstore? Mar 14 10:18:57 but i dont see any harm Mar 14 10:19:43 * Leeds wonders what's strange about China... Mar 14 10:19:56 in which way do you mean asdraban ? Mar 14 10:20:06 With Arancino it was a good choose because of the sliding windows... I immediately figured it out using divs Mar 14 10:20:43 brx: visibility, number of downloads, opportunities... Mar 14 10:20:59 It seams a good place to me but I have no experiences Mar 14 10:21:13 well its harder to make money, unless you have a really good app lol Mar 14 10:21:32 its much easier to actually get a app on the market than it is with ios Mar 14 10:22:42 i think the whole dev cycle includes less bs on Android, but dont quote me on that :P Mar 14 10:23:04 i.e you click "publish" and 15 minutes later its live Mar 14 10:23:35 I confirm... they have rejectes an arancino update for a really stupid reason Mar 14 10:23:59 Yes.. it's very fast to get it online.. on appstore you wait 6 days Mar 14 10:24:12 yer Mar 14 10:24:24 not so cool heh Mar 14 10:24:34 The first time they accept almost everything... when you do an update they beg you Mar 14 10:24:36 what reason? Mar 14 10:25:14 They told me I have handled the "upside" landscape but not the "upside down" Mar 14 10:25:37 heh Mar 14 10:25:47 That is right... but why they accepted the app for the first time since it's the same? Mar 14 10:25:52 yeah, so disable it in your project :p Mar 14 10:25:55 easy fix Mar 14 10:26:32 Yes but I wait 6 days for the rejection and then 6 days more for the update review... Mar 14 10:26:35 12 days lost Mar 14 10:27:08 That's awful :) Mar 14 10:27:39 brx: thanks for the comment!!!!! Mar 14 10:27:50 :D Mar 14 10:28:09 Yeah, cus no work can be done on the app at all from when the app is submitted til it's accepted Mar 14 10:29:02 Yes.... we just wait.... Mar 14 10:29:05 waiting for the feedback must suck though SimonVT Mar 14 10:29:46 Ehi... this is a realy nice irc !! glad to have joined it ;-) Mar 14 10:29:54 but suppose you gotta learn quick from your mistakes :P Mar 14 10:29:56 It's a week.. Mar 14 10:30:27 ^^ Mar 14 10:30:52 that as well, and I've never had issues with app rejections like that Mar 14 10:35:16 brx_: drlaban question now i need to use the same version of the API that my device is running onto bee able to use the device for development? Mar 14 10:35:42 I've gotta quit now!!! Mar 14 10:35:44 See you soon! Mar 14 10:35:52 Thanks Mar 14 10:35:55 cya good luck :) Mar 14 10:36:03 thanks! Mar 14 10:36:32 eagles0513875: <= Mar 14 10:36:52 brx_: is that a yes Mar 14 10:36:58 btw didnt need to reboot Mar 14 10:37:05 udev has an init script i used to restart it :D Mar 14 10:37:12 less than or equal to Mar 14 10:37:49 ok well its complaining Mar 14 10:38:13 looking at the device chooser target has a big red x next to it Mar 14 10:38:47 would my phone being rooted and on cyanogenmod7 be the issue Mar 14 10:39:03 your device/avd should be equal to or higher than the apk build target if im correct Mar 14 10:40:08 someone else here may be able to help with tha (im no expert) Mar 14 10:40:08 brx_: :-/ ok so i cant dev for droid 4 since my phone is running 2.3.7 Mar 14 10:40:19 correct Mar 14 10:40:25 :( Mar 14 10:40:27 SAD FACE Mar 14 10:40:32 EPIC SAD FACE Mar 14 10:40:41 are you using features from the 4 api? Mar 14 10:40:50 if not then its fine, choose 2.2 Mar 14 10:41:02 brx_: i dunno im doing a UI from scratch for the libreoffice droid port Mar 14 10:42:23 Hello, When I am in portrait view I started 1 asynctask, then i switched to landscape mode, how do i keep that asynctask running and then in onPostExecute update the ui of landscape activity ? Mar 14 10:43:01 brx_: woudl 2.3.3 sdk be sufficient Mar 14 10:43:05 yep Mar 14 10:43:13 i just always choose 2.2 recently Mar 14 10:43:18 tuxattack: override the onDeviceConfigurationChanged so android doesn't restart the activity by default Mar 14 10:43:24 tuxattack: and rotate your ui manually Mar 14 10:43:58 <`z> eagles0513875, most phones should be at 2.1+ Mar 14 10:44:11 Why doesn't getLocationInWindow return any reasonable data in onResume/onCreate? Mar 14 10:45:06 `z: stock htc rom was 2.2 Mar 14 10:45:17 then they updated to 2.3 then 2.3.5 atm Mar 14 10:45:34 I am not using onDeviceConfigurationChanged as I have many asynctasks and instead I am using onSaveInstanceState Mar 14 10:45:50 tuxattack: see http://developer.android.com/guide/topics/resources/runtime-changes.html "Handling the configuration change yourself" for details Mar 14 10:46:14 tuxattack: well, obviously if you shut down the activity holding the only reference to the asynctask Mar 14 10:46:22 you're going to experience issues if that activity is destroyed Mar 14 10:46:35 as is the default behavior if you don't do what I'm saying Mar 14 10:47:16 Ok, I will try using onDeviceConfiguationChanged Mar 14 10:47:31 tuxattack: onSaveInstanceState is nothing more than 'this activity is shutting down, store this state so we can restore it later' Mar 14 10:47:50 it has nothing to do with keeping currently running tasks active Mar 14 10:48:27 Hey, brx_ gave me a good idea for a practice project (RSS reader - which we are working on already) does anyone else have any good ideas for projects to learn? Mar 14 10:48:33 <`z> o.o Mar 14 10:48:38 tuxattack: to be honest, the best solution is to not run the asynctasks from your activity Mar 14 10:48:38 <`z> eagles0513875, them 2.2 Mar 14 10:48:47 `z: im on a custom mod atm Mar 14 10:48:47 Ohh. I was thinking task will keep running and I just nee d to get refenrece to new landscape activity Mar 14 10:48:57 custom rom `z im on cyanogen mod 7 which is 2.3.7 Mar 14 10:49:25 tuxattack: no, activities shouldn't generally keep long-running asynctasks Mar 14 10:49:25 MDijkstra: Do you mean to run asynctask outside the activity ? Mar 14 10:49:32 in a service Mar 14 10:49:54 tuxattack: I mean, if you're loading something over HTTP for a couple of seconds it's usually okay Mar 14 10:50:05 yes tahts waht I am doing Mar 14 10:50:14 PattyMacky: write a "to do" or "notes" app that utilizes sqlite3 to store entries Mar 14 10:50:27 PattyMacky: this would be easier than the rss reader Mar 14 10:51:08 or write an alarm app with HUGE snooze button Mar 14 10:51:20 :DDDD Mar 14 10:51:28 m novice abt services Mar 14 10:51:32 I'm serious. been searching for one for ages Mar 14 10:51:35 just a snooze button Mar 14 10:51:38 LOL seriously Mar 14 10:51:40 ? Mar 14 10:51:41 yes Mar 14 10:51:46 all the alarm apps suck Mar 14 10:51:49 kkkshhhh Mar 14 10:51:53 the best one is the one by motorola Mar 14 10:52:05 full-screen snooze, small slider at bottom to dismiss Mar 14 10:52:12 rofl Mar 14 10:52:13 lol Mar 14 10:52:28 how can I force which recording device I'll use in Android? Mar 14 10:52:43 you won't believe how freaking stupid alarm apps have gotten on the market Mar 14 10:52:43 MDijkstra: i am novice about services Mar 14 10:52:57 full of facebook integration, horoscope integration, sleep tracking Mar 14 10:53:10 you just want that snooooooze button ey? Mar 14 10:53:15 yep Mar 14 10:53:27 there's softalarm, but it's kinda abandoned Mar 14 10:53:46 how come you havnt written it then? sounds like you have the vision Mar 14 10:53:54 (and doesn't work in its current state. doesn't unlock the phone (or turns on the display even) when ringing :) Mar 14 10:54:03 brx: imma lazy :) Mar 14 10:54:28 and my free time is taken up by helping wife with some php stuff :( Mar 14 10:54:29 no wonder you want that snooze button ^^ Mar 14 10:54:35 ;) Mar 14 10:54:57 brx_: we've already done something like that (we = group for college class) we are looking at the RSS reader and it seems there is not too many resources for HttpClient/ Document. Mar 14 10:57:04 there is! its a very common task to downlaod an xml file and then parse its contents Mar 14 10:57:14 urks Mar 14 10:57:20 you will find loads of help on stackoverflow Mar 14 10:57:23 WOOOOOHOOO Mar 14 10:57:25 hey brx_ :) Mar 14 10:57:32 working? Mar 14 10:57:39 i get an exception on requestLocationUpdates stating that looper == null is an illegalArgument Mar 14 10:57:47 brx_: yep ye :) Mar 14 10:57:50 I hate fragments. Mar 14 10:57:52 brx_: i found a few stackoverflow responses but i wasnt sure they were what I was looking for Mar 14 10:57:56 But at the same time, I love them. Mar 14 10:58:18 java.lang.RuntimeException: Unable to start activity ComponentInfo{uandi.Sita.app/uandi.Sita.app.AboutClasses.HaendlerActivity}: java.lang.IllegalArgumentException: looper==null Mar 14 10:58:30 PattyMacky: as long as you can get the remote file into an inputstream you will have made a good start Mar 14 10:58:38 http://developer.android.com/reference/android/location/LocationManager.html#requestLocationUpdates%28java.lang.String,%20long,%20float,%20android.location.LocationListener,%20android.os.Looper%29 Mar 14 10:58:41 I'm starting an Intent.ACTION_VIEW to open an URL from my Fragment, but it throws a NPE from 03-14 11:57:01.603: E/AndroidRuntime(9264): at android.support.v4.app.FragmentManagerImpl.saveFragmentBasicState(FragmentManager.java:1576) Mar 14 10:58:45 :-/ Mar 14 10:58:47 this clearly states though that the looper may be null Mar 14 10:59:21 brx_: please tell me if I am incorrect. We use httpclient and httpresponse to retrieve the xml then somehow set it to a document using Document? Mar 14 10:59:41 PattyMacky: That's just extra work Mar 14 11:00:02 Most xml libraries available in Android just takes an url/inputstream Mar 14 11:00:05 SimonVT: what do you mean? Mar 14 11:01:10 ohh so use XMLPullParser or something like it? Mar 14 11:01:28 xmlpullparser, sax parser, dom Mar 14 11:02:16 use Dom PattyMacky,along with a few other classes like Iterator and Node (if I'm correct) Mar 14 11:02:17 All can just take an inputstream Mar 14 11:02:44 so no need to set it to a document? Mar 14 11:03:58 >.< Mar 14 11:04:46 sorry, i'm new to this part.. Mar 14 11:05:10 keep searching reading you will find the answers Mar 14 11:08:32 haha trust me I am Mar 14 11:09:25 brx_: now to keep reading :) Mar 14 11:09:51 PattyMacky: find a good example code to start working from, make sure you add internet permission to the manifest otherwise you are flogging a dead horse Mar 14 11:10:10 eagles0513875: glad you made some progress :D Mar 14 11:10:32 permission was the first thing i did haha Mar 14 11:10:46 then you are on the right track! Mar 14 11:11:29 am I wrong in thinking i have to set the XML to a document before I parse it? Mar 14 11:12:29 out of curiosity does the android SDK have graphics libraries included or would i need something like the ogre SDK graphics library Mar 14 11:12:53 depends on what you mean by graphics library Mar 14 11:12:58 there's skia Mar 14 11:13:04 what do you mean by graphics library? Mar 14 11:13:27 I suppose you mean '3d engine' Mar 14 11:13:28 then no Mar 14 11:13:31 i wasnt listening before, but it depends on what you are trying to do Mar 14 11:13:41 (not that i am qualified) Mar 14 11:14:15 PattyMacky: they are talking advanced, you should concentrate on getting your xml file in an inputstream Mar 14 11:14:32 something like this MDijkstra http://www.ogre3d.org/download/sdk Mar 14 11:14:35 and then passing that inputstream to your document object...form there you can start iterating and parsing Mar 14 11:15:00 MDijkstra: then im puzzled how does unity work with and allow 3d development for android Mar 14 11:16:27 brx_: inputstream to document object - good hint Mar 14 11:17:19 google some of those classes with the prefix android and you are on to a winner! Mar 14 11:18:35 PattyMacky: if you want to parse a file in java you need a file input stream :) Mar 14 11:18:53 and there was something else you need but i forgot Mar 14 11:19:36 hes had loads of help eagles0513875, i think hes waiting for someone to write the function for him :P Mar 14 11:19:46 Does anybody know if this is the reason i can't connect to localhost ? W/webcore(694): java.lang.Throwable: EventHub.removeMessages(int what = 107) is not supported before the WebViewCore is set up. Mar 14 11:20:01 PattyMacky: you also need a buffered reader to parse the file i think as well as the file input stream Mar 14 11:20:04 brx_: ^ Mar 14 11:20:10 hehe for got the buffered reader hehe Mar 14 11:21:02 in what thread context are the locationListener callbacks executed if i omit the looper argument? Mar 14 11:21:12 and will i have to use runOnUIthread? Mar 14 11:22:45 * n20 waves towards SimonVT. Mar 14 11:23:03 where is hackkitten Mar 14 11:23:21 brx_: The code has been written plenty times, just gotta google it Mar 14 11:23:23 Hello n20 :) Mar 14 11:23:47 SimonVT: Yep! Mar 14 11:30:57 brx_: we've decided to try your second suggestion first - "to-do list" Mar 14 11:31:27 i think you will have more success with that Mar 14 11:31:35 time isn't really on our side haha Mar 14 11:31:37 SimonVT: How you doin'?! Mar 14 11:32:02 literally, a textview, an edittext, a sqlite helper class and a Button view...thats all you will need! Mar 14 11:32:11 i know sqlite can be used to store data locally, but is there a reason you chose it? Mar 14 11:32:24 how can I copy a file in the updater-script? read_file should return the contents of the file, but how do I write that to another file? or is there an easier way? I want to backup a file before I overwrite it with my new file. Mar 14 11:33:00 yes, its much better than writing to text files now isnt it? :> Mar 14 11:33:07 brx_: :) have to say android dev is very interesting :D Mar 14 11:33:21 i agree eagles0513875_ Mar 14 11:33:58 which is preferred way for UI dev Mar 14 11:34:10 i like coding everythign in java and avoiding xml files but thats just me Mar 14 11:34:31 whichever way suites you i guess Mar 14 11:34:51 brx_: true, but couldnt I just store data on the SD without sqlite? Mar 14 11:35:17 trust me it will be easier using sqlite3, especially if you want to filter your notes Mar 14 11:35:40 how much time do you have for this project? Mar 14 11:35:52 i will literally write it for you if you pay me (lol) Mar 14 11:36:06 hahah Mar 14 11:36:25 Pretty sure there's a notes tutorial on the dev page :p Mar 14 11:36:36 man im so skint, chuck me 50 quid and ill write you the most badass "to do" app you have ever seen Mar 14 11:37:18 its not a project exactly... its for our final... in two weeks we find out what we have to do.. the only thing we know now is that we have to use something that we haven't yet learned Mar 14 11:37:34 sqlite3, its a piece of piss man Mar 14 11:37:41 50 sheets and its all yours Mar 14 11:37:46 so like good students we are trying to learn as much as we can Mar 14 11:37:57 brx_: are you taking the piss, lad? Mar 14 11:37:57 plus, I'm enjoying android development Mar 14 11:38:05 pragma_: i was at first Mar 14 11:38:50 but this guy wants to pass his course and he sounds like he aint gonna get it done between me and you :P Mar 14 11:39:02 not that it matters to me... but have you all actually created a successful app? Mar 14 11:39:19 define successful >.< Mar 14 11:39:49 hi, what's the best way to have multiple items "touched" in a listview when only one is really touched? ( the one is a "header" for a section containing other items, when the header is touched I should behave like all items in it were, so the highlighting + onClick ) Mar 14 11:40:05 successful = an app that you created that you didnt have trouble figuring out how to parse an XML file Mar 14 11:40:16 >.< Mar 14 11:40:23 how can I force which recording device I'll use in Android? Mar 14 11:40:37 dzan: the highlighting can be acheived by re-using the same background drawable across multiple items Mar 14 11:40:47 such as an external mic plugged in the 3.5mm jack Mar 14 11:40:57 or success means an app that worked and did something with a purpose Mar 14 11:41:08 readme: ok so I would set that in the getView of the adapter i wrote right? any ideas on how to "activate" them all? Mar 14 11:41:21 dzan: I have no idea what you mean, activate them all? Mar 14 11:41:32 yes PattyMacky lots of people here writing and publishing apps Mar 14 11:41:34 dzan: if you set the same drawable to two items, and press one, they will both have their pressed state activated Mar 14 11:41:58 the logic will have to be your own implementation, but you can use this trick for the highlight Mar 14 11:42:06 oh, that's what I need :p but it shouldn't be "inverted" if one of the "subitems" is touched not all of the ones in the same categorie should be activated Mar 14 11:42:17 brx_: i know that... I just feel lonely... I'm the only one in my class that actually cares about this and wants to learn Mar 14 11:42:42 I've got a list with subsections, selecting an item from a subsection should only highlight + activate that one but selectin the sectionheader should... Mar 14 11:42:48 think the point is clear? :p Mar 14 11:42:52 the kid next to me is basically jerking off waiting for me to figure shit out Mar 14 11:42:53 dzan: I see Mar 14 11:43:08 I am not sure what your best bet is here. Mar 14 11:43:16 readme: the way you suggest would also work on the "inverted" way, selecting one out of a section would activate the whole section Mar 14 11:43:31 PattyMacky: read this http://www.devx.com/wireless/Article/40842 Mar 14 11:43:54 readme: uhu, what's the callback that's activated when one is pressed? I could manually iterate over the section and call the callback? but highlighting worries me Mar 14 11:44:07 onListItemClick? Mar 14 11:44:25 brx_: what about it? Mar 14 11:44:39 brb, coffee sho Mar 14 11:44:55 i thought you was gonna go with the second idea (to do app) Mar 14 11:45:22 readme: sure but that wouldn't highlight it right? Mar 14 11:45:32 how can I force which recording device I'll use in Android? such as an external mic plugged in the 3.5mm jack Mar 14 11:46:05 brx_: i am, but what exactly am I looking at? Mar 14 11:46:32 por-beast: have you tried to read documentation? Mar 14 11:46:46 dzan: you can manually set stuff as focused, but I don't know about having two items focused at once. Mar 14 11:46:58 you might have to change the background manually Mar 14 11:47:03 yes Mar 14 11:47:08 readme: with a timer then i guess Mar 14 11:47:15 I also googled for it Mar 14 11:47:25 but no answers :\ Mar 14 11:47:28 =O why would you want a timer? Mar 14 11:47:37 there is no need for a timer in this impl Mar 14 11:47:44 hey guys whats the recommended way to develop a UI using xml, or coding from scratch Mar 14 11:48:01 brx_: nevermind... thank you - i looked at the wrong tab in my browser Mar 14 11:48:06 eagles0513875_: XML please read guides on d.android.com Mar 14 11:48:06 readme: because the highlight shouldn't stay should be the same as normal highlight, it's just a second it lights up Mar 14 11:48:12 lel Mar 14 11:48:20 por-beast: so MediaRecorder.AudioSource.MIC does not work if you have external mic connected? Mar 14 11:48:23 readme: what object can i call onListItemClick on?not on listview or the adapter i see Mar 14 11:48:52 readme: i am Mar 14 11:48:53 dzan: ah, I see Mar 14 11:48:59 I'm starting an Intent.ACTION_VIEW to open an URL from my Fragment, but it throws a NPE from 03-14 11:57:01.603: E/AndroidRuntime(9264): at android.support.v4.app.FragmentManagerImpl.saveFragmentBasicState(FragmentManager.java:1576) Mar 14 11:49:03 onListItemClick is on the listview Mar 14 11:49:03 :( Mar 14 11:49:16 hokkaido: the problem Is that I don't want the system to do things "automatically" Mar 14 11:49:17 http://www.youtube.com/watch?v=wDBM6wVEO70 Mar 14 11:49:20 i was looking at a certification example test I have to take haha Mar 14 11:49:26 please check here http://stackoverflow.com/questions/9665758/real-time-audio-capture-and-playback-from-an-external-mic Mar 14 11:49:26 i was wondering how you knew Mar 14 11:50:01 hokkaido: it works when I record to a file and then use AudioTrack to play that file Mar 14 11:50:25 however, when I try to do record and playback simultaneous Mar 14 11:50:37 it capture the sound from the in-built mic Mar 14 11:50:52 ok, I see. Mar 14 11:51:48 PattyMacky: check your PM i sent you more links that could help you rather than flooding the channel Mar 14 11:52:25 JakeWharton: Hello sir! Mar 14 11:52:49 JakeWharton: Any news on the bug you filed regarding FragmentMAnager? Mar 14 11:53:12 por-beast: at least for me it seems android.media.MediaRecorder does not have methods for that :/ Mar 14 11:53:42 anyone familiar with the ICS HttpResponseCache? Mar 14 11:54:37 why to control it do you have to add directives to the URLConnection header Mar 14 11:54:38 por-beast: like I have the issue, that I can't have any control on hardware h.264 decoder. I don't want to buffer the stream, but I'd like to show it instantly without buffering. android is too limited to be used for something cool :) Mar 14 11:55:16 eheh, it seems :p Mar 14 11:55:59 I was wondering if there was a wat to set some system parameters with AudioManager.setParameters(); Mar 14 11:56:14 it's like someone thought that only viable use for video decoder is to buffer stream from youtube or similar service and display it. Mar 14 11:56:17 but I don't know where to look for those params Mar 14 11:56:24 not like you'd like to have some realtime video decoded. Mar 14 11:57:22 good god Mar 14 11:57:30 never use fedex's "smart post" option Mar 14 11:57:48 my package shipped on the 5th and every day when I check it, they change the estimated arrival date Mar 14 11:58:08 they are now estimating the 15th, and it is not even in florida yet Mar 14 11:58:16 so that date is also unlikely Mar 14 12:01:40 root66: well, in some countries if they happen to be able to get to that point, that they could deliver it, they'll come to your house while you're at work and leave a note, that "you weren't home". then you call them ask them to deliver it in the evening, but they'll say, that they don't deliver in the evenings. then you agree to leave early from work to be at home at 4 o'clock. when you get there, Mar 14 12:01:42 there is a note saying that "you weren't home at 3.20". Mar 14 12:02:00 so: fedex, ups & others suck balls :( Mar 14 12:02:23 at least in certain countries. Mar 14 12:03:07 this was just from sacramento to tampa Mar 14 12:03:34 and smart post uses the USPS to deliver it the last leg of the trip Mar 14 12:03:38 maybe they went to napa to have some wine Mar 14 12:03:49 never came back Mar 14 12:03:57 if we had just used USPS to begin with, it would have been here a week ago Mar 14 12:03:59 this is ridiculus Mar 14 12:04:03 *ridiculous Mar 14 12:04:23 root66: yeah, fedex is horrid Mar 14 12:04:52 root66: watch out, because republicans are almost successful in bankrupting the post office (they all own shares of fedex) Mar 14 12:05:44 post office has been a self sufficient org for years, too Mar 14 12:06:15 don't get political on me Mar 14 12:07:02 it turns out smartpost is not even fedex Mar 14 12:07:06 they bought the company and are just using it Mar 14 12:07:13 root66: If you don't want to attract off topic comments, then you shouldn't bikeshed Mar 14 12:07:14 and calling it fedex smartpost Mar 14 12:07:35 sorry for passing on valuable information to you about one of our country's endangered organizations Mar 14 12:12:11 laptop battery was empty... Mar 14 12:12:23 readme: wouldn't i need a timer to change the bg color back? Mar 14 12:12:51 dzan: hmm Mar 14 12:13:47 dzan: nope http://stackoverflow.com/questions/2614545/animate-change-of-view-background-color-in-android Mar 14 12:14:45 of course, the animation does some timing, I just think using "Timer" would be an ugly solution comparatively Mar 14 12:15:06 uhu you are right :-) didn't know about that Mar 14 12:15:23 I played with rotateanimation the past 2 days Mar 14 12:15:32 remembered reading something about changing color Mar 14 12:16:32 guys, can anybody please help me with this question? Mar 14 12:16:39 http://stackoverflow.com/questions/9701777/cellid-and-lac-psc-for-3g-neighboring-cells-in-android Mar 14 12:16:45 ok so I'd: simulate the click on the subelements + change bg animation of all of them ( and disable default highlighting ) Mar 14 12:17:20 dzan: you want to highlight: the sub-element, and the header, right? Mar 14 12:17:41 yes Mar 14 12:17:49 did you get my PM? Mar 14 12:18:07 readme: reading it now didn't notice it Mar 14 12:21:07 hello? Mar 14 12:21:18 JakeWharton: *ping* Mar 14 12:21:38 this is craziness, sending a POST to a particular Google site from a browser gets me a CSV report, sending it form my android app or an HTTP request "simulator" i wrote gets me a 302 (redirect) response Mar 14 12:21:59 wongk: Missing a header? Mar 14 12:22:00 afaict i have mirrored the browser Mar 14 12:22:07 mohadel: i have no idea, but I upvoted your question for you Mar 14 12:22:12 cookies, headers, etc... Mar 14 12:22:44 readme: thanks! ;) Mar 14 12:22:54 i don't know what else could be causing the behavior Mar 14 12:26:14 wongk: i once had something similar: there is in the apache http lib something like "setFollowRedirects()" Mar 14 12:26:50 dzan: yes, i have disabled following of redirects Mar 14 12:26:57 that does prevent me from receiving them :P Mar 14 12:27:00 er, doesn't Mar 14 12:27:07 wongk: you should enable it? Mar 14 12:27:10 no Mar 14 12:27:12 it has to follow the redirect no? Mar 14 12:27:14 no Mar 14 12:27:20 oh ok sorry :-) Mar 14 12:27:24 np =] Mar 14 12:53:56 a simple application has rights for starting/stopping the network on the entire android? i mean, the rights to disable wifi/etc connections Mar 14 12:55:16 hello; I wand to know if you experienced problems with google analytics code in a phonegap application on android. The problem: I past the google code. It does not track anything even if I do have network connection Mar 14 12:56:32 rendar: if it has the permissions to, yes. Mar 14 12:56:49 mind you, some permissions are only granted to system signed apps, or preloaded apps. Mar 14 12:56:55 asdraban: how long did you wait to see the results from google analytics? Mar 14 12:57:00 it takes a day to see anything Mar 14 12:59:25 hello everyone Mar 14 12:59:59 I am looking at the realtime interface Mar 14 13:00:08 It works correctly in the IOS version Mar 14 13:00:28 but I used another technique... I used a phonegap plugin Mar 14 13:00:33 I am trying to send a variable between two activities through extras in an intent, but when doing so, my app crashes. any clues? Mar 14 13:00:42 explicit intents. Mar 14 13:00:48 The same plugin does not work under Android sinze it's not been updated Mar 14 13:03:21 asdraban: i am not sure the realtime interface works as soon as you install google analytics Mar 14 13:03:27 are you certain it is supposed to work? Mar 14 13:03:45 try it in a regular browser to make sure, maybe Mar 14 13:04:14 oh, it works in ios. Mar 14 13:05:00 does phonegap have a way for you to dump the source of the rendered page? Mar 14 13:06:24 anyone seen that new touchscreen stuff? Mar 14 13:06:28 with ~0 latency Mar 14 13:07:40 That microsoft video? Mar 14 13:08:54 readme: no... I cannot dump the source... Mar 14 13:09:33 SimonVT, and the nvidia Mar 14 13:09:47 nvidia was running it on an android tablet Mar 14 13:09:51 MS was running it...on...something Mar 14 13:10:34 asdraban: I find that kind of doubtful Mar 14 13:12:38 I have verified that the past days stats don't show any android hit Mar 14 13:12:44 canadiancow|work: Link to nvidia? I've only seen the microsoft video Mar 14 13:12:54 It looks awesome Mar 14 13:13:02 http://phandroid.com/2012/03/14/microsoft-shows-off-new-touchscreen-tech-lets-hope-android-oems-come-up-with-something-similar-video/ Mar 14 13:13:09 NVIDIA DirectTouch Mar 14 13:13:16 asdraban: http://phonegap.github.com/weinre/ use this Mar 14 13:13:22 less power more speed Mar 14 13:13:24 so it's not a problem about realtime Mar 14 13:13:31 i dont think it's as good as the MS, but it's a huge improvement Mar 14 13:13:34 get the source back and inspect it Mar 14 13:14:20 wow Mar 14 13:15:50 canadiancow|work: Yeah, microsofts look more impressive Mar 14 13:15:55 Gonna be nice when it hits consumer devices Mar 14 13:16:13 will it hit non-MS devices? Mar 14 13:16:25 like honestly, MS needs some awesomesauce to lure people away from iPad and Android Mar 14 13:18:31 I don't see why not. Other touch screen manufacturers will want to follow if their competition starts making them Mar 14 13:19:06 winre-ui does not start on my Mac... however weinre.jar starts Mar 14 13:19:12 I'm sure microsoft isn't the only company trying to lower latency Mar 14 13:20:31 i wonder about deploying our application.. Mar 14 13:20:44 well SimonVT: nvidia is too :P Mar 14 13:20:48 but MS has done it better Mar 14 13:20:56 we are sending it out to our clients to test and wonder whether we should create a release package already Mar 14 13:21:23 if we, after testing, decide to deploy the release version will users be able to install it over the debug package? Mar 14 13:21:29 or will there be a key conflict? Mar 14 13:22:36 canadiancow|work: Yeah, but nvidias seems like something that could be on devices tomorrow, while microsofts solution will probably take a while before it's ready Mar 14 13:22:39 .weinre/server.properties Mar 14 13:22:42 sorry Mar 14 13:22:46 yea Mar 14 13:22:50 wrong past Mar 14 13:22:54 which is why im more hopeful for nvidia Mar 14 13:24:00 Don't care who "wins", just want better devices :p Mar 14 13:25:07 well i just mean i think it's much more likely that the next tablet i get (for free, hopefully), will have the nvidia tech than the MS tech Mar 14 13:25:19 Ah, yeah Mar 14 13:26:22 and also: can i rename the apk after exporting it? Mar 14 13:26:37 yes Mar 14 13:26:45 cool Mar 14 13:28:47 Anyone an expert with edify? how can I copy a file in the updater-script? read_file(filename) should return the contents of the file, but how do I write that to another file? is there such a command like write_file() or is there an easier way to copy? I want to backup a file before I overwrite it with my new file. Mar 14 13:37:24 how can I bring my application to foreground using Intent? Mar 14 13:37:50 zhulikas: launch the activity Mar 14 13:38:24 the problem is that I do a lot in onCreate methods Mar 14 13:38:34 use the CLEAR_TOP flag Mar 14 13:38:45 when my phone starts, I start on BOOT_COMPLETED service and at some point I get notifications Mar 14 13:38:51 guys check this out http://i.imgur.com/EXYIc.jpg Mar 14 13:38:51 and with a notification I want to start my application Mar 14 13:38:59 but it was partially started already (as I used service) Mar 14 13:39:06 and it appears that onCreate methods are not called anymore Mar 14 13:39:11 so my app is all fucked up Mar 14 13:39:15 missing half of the data Mar 14 13:39:22 which should have been downloaded on normal start Mar 14 13:39:25 zhulikas: starting the service and starting the activity are two different things Mar 14 13:39:29 zhulikas: declare the activity singletop Mar 14 13:39:36 :| Mar 14 13:39:44 you mean intent flag single top? Mar 14 13:39:51 nope, this is in the manifest. Mar 14 13:39:52 or somethere in the manifest Mar 14 13:39:55 ok Mar 14 13:39:58 zhulikas: android:launchMode="singleTop" Mar 14 13:40:04 what does it do? Mar 14 13:40:14 zhulikas: basically makes the activity a singleton Mar 14 13:40:21 zhulikas: so only one instance is allowed Mar 14 13:40:33 VJTachyon, it would be perfect if using itnent with action android.intent.action.MAIN I would be able to start my app in a way it starts when I click an icon when it is not runnign in the background Mar 14 13:40:38 zhulikas: also you should be moving stuff into your onresume Mar 14 13:40:53 zhulikas: and only doing initialization in your oncreate Mar 14 13:41:11 zhulikas: i do this exact thing with my DJ app Mar 14 13:41:20 well, fuck. That's a lot of changes Mar 14 13:41:38 zhulikas: so anytime the notification or launcher icon is clicked, it loads the same activity instead of starting a new one Mar 14 13:41:38 Little question about custom adapter tutorial: http://pastebin.com/XSGqKR7a . How come you dont have to check if convertView is of the right type if it's not null? Mar 14 13:42:27 JeroenDL: uh Mar 14 13:42:40 JeroenDL: why are you creating a new ViewHolder each time you call getView() Mar 14 13:42:41 hmmm Mar 14 13:42:45 I am not sure how this works Mar 14 13:42:45 that's really inefficient Mar 14 13:42:49 readme: it's from a tutorial Mar 14 13:42:53 it's a bad tutorial Mar 14 13:43:01 readme: haha, ok. You know a better one ? :) Mar 14 13:43:01 forget all you read and don't use it Mar 14 13:43:04 yes Mar 14 13:43:07 zhulikas: http://developer.android.com/reference/android/app/Activity.html Mar 14 13:43:14 zhulikas: hm? shouldn't you simply check if everything is downloaded correctly? Mar 14 13:43:19 isn't that your main issue Mar 14 13:43:24 http://developer.android.com/resources/tutorials/views/hello-listview.html http://www.youtube.com/watch?v=wDBM6wVEO70 Mar 14 13:43:36 right. Downloaded and UI ListViews in place with all the correct data Mar 14 13:43:38 I would rather die Mar 14 13:43:40 than check that Mar 14 13:43:50 what is a large vs normal size screen? Mar 14 13:43:50 huh Mar 14 13:43:57 this stuff really bothers me. Mar 14 13:44:05 zhulikas: you should be doing all this work in your background service and not storing much in your activity Mar 14 13:44:08 it seems you'll continue having these problems until you do that, though Mar 14 13:44:20 zhulikas: your activity/fragment should be able to populate itself from nothing with resources in the service Mar 14 13:44:26 JeroenDL: in retrospect, that holder is only created when convertView is null, but it still looks a bit slop... Mar 14 13:44:26 readme: the first one isnt about a custom adapter. But I'll check out romains vid, he's pretty awesome :) Mar 14 13:44:36 everytime you forget to think of something and it gets in an incorrect state Mar 14 13:44:43 or the download fails halfway Mar 14 13:44:47 or the device is turned off Mar 14 13:44:48 etc etc Mar 14 13:45:06 zhulikas: my DJ app storing nothing about the song/progress/anything and gets everything it needs to display properly from the service Mar 14 13:45:25 that's imo your real issue, this is just a symptom Mar 14 13:45:54 VJTachyon, activity does nothing. This is a normal cycle of my application: I start it using an icon, I start downloading the data in AsyncTask and displaying splash screen until it is done. Then I show an activity and populate it with data in it's onCreate (should use onResume to populate it with data I guess). But when I start my app from notification, the cycle is somehow skipped Mar 14 13:46:01 JeroenDL: ListView checks if convertview is of the right type by calling getItemViewType Mar 14 13:46:09 JeroenDL: most of the stuff there looks fine, except I don't see a good reason to use that ViewHolder thing Mar 14 13:46:23 zhulikas: are you using a background service to do this or not? Mar 14 13:46:28 does values-large work? Mar 14 13:46:33 to get data? Mar 14 13:46:35 zhulikas: also, fragmentactivity or activity Mar 14 13:46:37 I am using AsyncTask Mar 14 13:46:40 zhulikas: the asynctask Mar 14 13:46:40 activity Mar 14 13:46:45 Android 2.2 Mar 14 13:46:48 zhulikas: are you doing the asynctask in a background service? Mar 14 13:46:54 no Mar 14 13:46:56 readme: viewholder is recommended by google tho Mar 14 13:46:57 SimonVT: so ListView checks that for you ? And if it doesnt match, it will give 'null' ? Mar 14 13:46:58 in activity Mar 14 13:47:07 zhulikas: well if your activity is hidden, then your app is paused Mar 14 13:47:15 JeroenDL: If it has none cached of the right type, it passes null, yes Mar 14 13:47:27 SimonVT: what is the benefit of it Mar 14 13:47:30 zhulikas: oncreate only gets called on start and config changes Mar 14 13:47:31 in this example Mar 14 13:47:33 It keeps arrays of cached views Mar 14 13:47:38 hi, does anyone know an easy guide how to integrate zxing? Mar 14 13:47:43 VJTachyon, I will try to move the heavy stuff to onResume Mar 14 13:47:49 and look into that single top thingie Mar 14 13:48:05 zhulikas: also, if you have large background processes that need to be done while not in the application, you need a service Mar 14 13:48:08 readme: Not much of a benefit when it's just a single view. And these days, probably not much benefit at all Mar 14 13:48:10 maybe moving everyting to onResume might fix the issues Mar 14 13:48:20 I am using services as well. Mar 14 13:48:26 SimonVT: in his example, I don't see any arrays associated with the viewholder he is creating. it looks like he's setting the tag of the view to itself... Mar 14 13:48:33 just redundant Mar 14 13:48:35 zhulikas: yeah your onResume definitely needs to have stuff in it Mar 14 13:48:35 The reason it's recommended is that findViewById can be an expensive operation (it iterates all views in the layout) Mar 14 13:48:35 It's just that my app depends a lot on data from internet, so it's necessary to get data on start Mar 14 13:48:50 ah I see Mar 14 13:48:53 zhulikas: onresume will probably solve most of your issues Mar 14 13:48:54 and I update that data on specific periods in service Mar 14 13:48:57 so when there is only one view it's pointless. Mar 14 13:49:06 but if he had a few, it would make sense Mar 14 13:49:19 Pretty much, yeah Mar 14 13:49:33 Thanks for the extra info, SimonVT and readme Mar 14 13:49:44 readme... I used weinre but I don't see anything wrond... perhaps It don't track views since they are not from a fully qualified domain name Mar 14 13:49:55 I tried to set the domain Mar 14 13:50:21 asdraban: that is a possibility Mar 14 13:50:23 with _gaq.push(['_setDomainName', 'domain']); Mar 14 13:50:28 but no success Mar 14 13:50:37 try #google or #phonegap too Mar 14 13:50:48 ah right! Mar 14 13:50:51 there is drawable-large, but is there values-large? Mar 14 13:50:56 you might try manipulating your hosts file or something as well Mar 14 13:51:11 readme: You can imagine 2-3 years ago when they started recommending it that cpu's weren't as powerful, making all those findviewbyid's more of a performance factor Mar 14 13:51:27 snooplsm: You can use all the qualifiers for all the different folders Mar 14 13:51:35 SimonVT: thanks Mar 14 13:52:03 218ppi screen falls into what category? Mar 14 13:52:19 hdpi probably Mar 14 13:54:16 SimonVT: makes sense Mar 14 13:57:50 I'm reading the intents-filters.html page. This point confuses me.. "On the other hand, an Intent object that doesn't specify an action automatically passes the test — as long as the filter contains at least one action." ... I'm not understanding .. doesn't specify an action ... if it contains at least one action .. part. Mar 14 13:58:03 http://developer.android.com/guide/topics/intents/intents-filters.html Mar 14 13:58:27 How can it contain at least one action if it doesn't specify an action? Mar 14 13:58:53 ? Mar 14 13:59:03 as long as the FILTER contains... Mar 14 13:59:28 Oh, it's two sides .. ; ) Mar 14 13:59:34 canadiancow|work: Thanks. Mar 14 14:00:41 How can I disable focusable on items from an arrayadapter ? Mar 14 14:00:44 or what is it called ? Mar 14 14:00:48 I can't seem to find it Mar 14 14:03:21 shroomyreader: setOnClickListener(null) Mar 14 14:03:29 in your getView Mar 14 14:03:47 or setFocusable(false) Mar 14 14:04:12 How do I get a TimePickerDialog with this theme? Mar 14 14:04:14 my xml already has focusable as false Mar 14 14:04:19 I tried new TimePickerDialog(context, AlertDialog.THEME_HOLO_LIGHT...); but it look like shit :( Mar 14 14:04:40 the dialog gets the light holo theme, but the plus/minus-buttons remain the old type :( Mar 14 14:04:46 So how does one respond to a user who wants help getting my warezed app to work.... Mar 14 14:05:53 snooplsm: that setOnClickListener null sounds a bit ugly but works like a charm Mar 14 14:05:54 thanks ;) Mar 14 14:06:39 shroomyreader: no problem :) Mar 14 14:10:14 is there a way o determine the default orientation of a device? Mar 14 14:10:22 it seems the coordinate system depends on that Mar 14 14:10:28 default? Mar 14 14:10:36 as in 'how does the user usually hold it? Mar 14 14:10:45 haha Mar 14 14:10:47 why are you using coordinates? Mar 14 14:11:06 well, coordinate free tensor calculus is nice for abstract calculations Mar 14 14:11:13 but if you have numbers you have to pickout a basis Mar 14 14:11:36 and in our case the basis is given by the coordinate axis of the sensor readings i get for the accelerometer ;D Mar 14 14:11:38 tapas, android:screenOrientation="portrait" Mar 14 14:11:41 for your main activity Mar 14 14:11:45 hello all Mar 14 14:11:55 zhulikas: we have fixed the orientation for all our activities already Mar 14 14:12:22 [we use landscape] Mar 14 14:12:35 but: the Y-axis points along the longer axis on our phone test devices Mar 14 14:12:44 but along the smaller axis on our pad test device Mar 14 14:13:33 that's how android works Mar 14 14:13:39 surprises everywhere! Mar 14 14:13:42 :D Mar 14 14:14:03 I am sick of all the stupid ways stuff is implemented in android Mar 14 14:14:19 actully it's pretty cool and flexible Mar 14 14:14:31 right Mar 14 14:14:48 stupid ways ? Mar 14 14:14:48 you can implement anything, but you need to implement everything Mar 14 14:14:49 such as ? Mar 14 14:14:54 i just wonder where to find the information about the default orientation of the device.. Mar 14 14:15:15 tapas: there is no default Mar 14 14:18:08 VJTachyon: hmmm Mar 14 14:18:33 tapas: why do you need/want it? Mar 14 14:19:09 because our application displays a level for measuring inclinations Mar 14 14:19:20 if I set in my manifest android:theme="@android:style/Theme.Holo.Light", what will happen on <3.0-devices? Mar 14 14:19:28 romainguise, u know? Mar 14 14:19:35 VJTachyon: and i actually took care to use the right coordinate axes depending on device orientation Mar 14 14:19:53 lapdis, create your own theme Mar 14 14:19:53 Probably crash, lapdis Mar 14 14:19:57 put one in values-v11 Mar 14 14:20:01 one in values Mar 14 14:20:04 VJTachyon: which works fine on all our phone test devices.. but it seems the smsung galaxy uses the Y axis along the shorter device dimension Mar 14 14:20:05 values-v11 can just extend holo Mar 14 14:20:10 values can be whatever you want Mar 14 14:20:13 where all phones use Y along the longer device dimension Mar 14 14:20:26 canadiancow|work i leik ur thinkin' Mar 14 14:20:27 hii Mar 14 14:20:29 mmm.. Mar 14 14:20:53 is there a way to set a style= to a textview depending on theme white/blue? Mar 14 14:21:10 tapas: i guess i need more information on your issue, why are you dealing with coordinates like that? Mar 14 14:21:19 tapas: is this for drawing/graphics? Mar 14 14:22:09 VJTachyon: our app implements a level like this: http://upload.wikimedia.org/wikipedia/commons/thumb/f/fb/Wasserwaage_Libelle.jpg/220px-Wasserwaage_Libelle.jpg Mar 14 14:22:31 http://developer.android.com/reference/android/hardware/SensorEvent.html Mar 14 14:22:41 how can this be changed programatically?: style="@style/list_item_bl"/> in a TextView? even possible? Mar 14 14:23:16 the api doc defines the coordinate system with Y pointing in the UP - direction in the device's default orientation Mar 14 14:23:20 tapas: right im familiar, so you are drawing on a canvas and your screen dimensions are not coming back right? Mar 14 14:23:47 VJTachyon: no, we have no problem drawing stuff :D Mar 14 14:23:55 ohhh the sensor coordinates Mar 14 14:24:20 VJTachyon: the problem is measuring the angle of the devices longer axis (the horizontal axis in landscape mode) against the earth's gravity Mar 14 14:24:47 http://www.theregister.co.uk/2012/03/13/android_sdk/ Mar 14 14:24:52 who the fuck is going to use that Mar 14 14:24:55 on a pad device the up direction is the vertical screen dimension in landscape mode Mar 14 14:25:11 on a phone device the up direction is the vertical screen dimension in portrait mode Mar 14 14:25:21 that is just a toy Mar 14 14:25:30 at least on our samsung galaxy pad this is the case (sadly it's our only pad test device) Mar 14 14:25:35 Also terrible example code there Mar 14 14:25:44 tapas: ah i think i understand Mar 14 14:26:01 tapas: well why dont you just store values in the res folders for tablets Mar 14 14:26:05 VJTachyon: if you take a look at the coordinate system picture in the api docs, then X and Y are swapped for the pad Mar 14 14:26:07 and for phones Mar 14 14:26:16 if (masterWidth > masterHeight) ... oh man. People still do this? Mar 14 14:26:38 also: the api documentation clearly states that Y is "up" in the default orientation Mar 14 14:26:47 so i wonder how to get a devices default orientation :D Mar 14 14:27:03 on the pad it's obvously landscape, while on our phones it's portrait Mar 14 14:27:12 the default doesn't really matter, it's the current one that's important Mar 14 14:27:20 mrenouf|work: no, read the api docs Mar 14 14:27:33 i quote: "The coordinate-system is defined relative to the screen of the phone in its default orientation. The axes are not swapped when the device's screen orientation changes." Mar 14 14:27:43 tapas, is this GLES? Mar 14 14:28:03 what's GLES? [i guess the answer to your question is no :D] Mar 14 14:28:07 tapas: there may be another way, but otherwise values-xlarge to store something to tell it is a tablet Mar 14 14:28:13 tapas, *which* API. there are many Mar 14 14:28:23 mrenouf|work: http://developer.android.com/reference/android/hardware/SensorEvent.html Mar 14 14:28:30 Oh, sensors. Mar 14 14:28:36 yeah, that's kind of a pain Mar 14 14:29:04 VJTachyon: hmm, i never heard about values-xlarge.. Mar 14 14:29:21 tapas: you can put different constants into xml in the values folders Mar 14 14:29:28 http://developer.android.com/guide/topics/resources/providing-resources.html Mar 14 14:29:30 read up! Mar 14 14:29:48 thats how i define styles Mar 14 14:29:52 for various screen sizes Mar 14 14:29:58 VJTachyon: but it really doesn't depend on the screen size, but on the default orientation which might be totally different for other pad devices Mar 14 14:30:03 without needing to make 21341978234 layouts Mar 14 14:30:17 VJTachyon: oh, interesting in itseld :D Mar 14 14:30:20 itself Mar 14 14:30:35 tapas: well that camera is oriented by default in landscape on all those tablets Mar 14 14:30:41 tapas: maybe you can utilize that somehow? Mar 14 14:32:03 hmmm, good question Mar 14 14:32:32 tapas: or at least maybe point you in the right direction Mar 14 14:34:04 http://developer.android.com/reference/android/content/res/Configuration.html Mar 14 14:34:53 this has a ORIENTATION_LANDSCAPE and PORTRAIT field Mar 14 14:34:54 hmm Mar 14 14:35:50 ngh Mar 14 14:35:55 Android.mk is such a mess Mar 14 14:36:15 Zharf: agreed Mar 14 14:36:34 Zharf: i have wrestled with that damn file a lot Mar 14 14:37:01 it's "ok" for simple stuff, but I've too many dependent libraries here >.< Mar 14 14:39:06 Zharf: yeah i ported 5 c/c++ libraries over to the ndk Mar 14 14:41:26 hmm, that value is 1 on both devices.. Mar 14 14:42:55 tapas: what value? Mar 14 14:43:24 Configuration.orientation Mar 14 14:43:29 tapas: that configuration file is for interpreting results from config changes Mar 14 14:43:37 oh ok Mar 14 14:44:09 tapas: and getting current configurations Mar 14 14:44:12 so, is using fragments easier than activities? Mar 14 14:44:23 zhulikas: in the long run, yes Mar 14 14:44:25 and transitions, going background/foreground Mar 14 14:44:31 if that's a really complex app Mar 14 14:44:35 with tabs Mar 14 14:44:39 multiple activitygroups Mar 14 14:44:40 and shit Mar 14 14:44:44 zhulikas: definitely Mar 14 14:44:47 ok Mar 14 14:44:53 oh and please someone get rid of the frames on the android dev pages.. Mar 14 14:44:59 they mess up my browser history :D Mar 14 14:45:00 hah Mar 14 14:45:11 zhulikas: my app uses all fragments Mar 14 14:45:16 zhulikas: i only have one activity Mar 14 14:45:26 so those work in 2.2 you say, right? Mar 14 14:45:36 zhulikas: they work back to 1.6 with the compat lib Mar 14 14:45:48 so I don't need to use activities at all? Mar 14 14:46:01 or is it some sort of fallback Mar 14 14:46:06 i am trying to make this layout: first splitting the screen in half horizontally. then splitting the one half into 4 evenly spaces horizontally. and finally splitting one of these 4 spaces into 2 evenly divided spaces vertically. I tried this with linear layouts but i get a warning about using nested weights affecting performance. is this so expensive? i also tried with a table layout in the half screen with layout_weights but i didn't get any warnings abou Mar 14 14:46:06 nested weights. isn't table layout extending linear layout? any tips? thanks Mar 14 14:46:16 zhulikas: well you have some activities, but they are fragment activities Mar 14 14:46:27 sure Mar 14 14:46:28 http://developer.android.com/guide/topics/fundamentals/fragments.html Mar 14 14:46:32 ok Mar 14 14:46:41 I am a shitty android dev Mar 14 14:46:45 so i have one fragmentactivity that handles the fragment tabs Mar 14 14:46:47 don't care about new stuff Mar 14 14:46:49 and making it better Mar 14 14:46:51 any good android learning resources.. except developers site.... Mar 14 14:46:54 heh Mar 14 14:47:11 and my apps barely work Mar 14 14:47:14 ehh Mar 14 14:47:16 fuck Mar 14 14:47:32 zhulikas: the first step to recovery is admitting you have a problem Mar 14 14:47:53 I am still in a phase of blaming everything on Android Mar 14 14:47:55 And to sit in a ring with unknown people and confess and cry Mar 14 14:48:06 zhulikas: i don't know, i think you just passed that Mar 14 14:48:12 I still hate it Mar 14 14:48:14 why? Mar 14 14:48:26 more than one screen size? Mar 14 14:48:27 :) Mar 14 14:48:31 readme, I usually port iOS apps to android Mar 14 14:48:40 so I see how stuff is implemented in iOS Mar 14 14:48:41 http://android-developers.blogspot.com/2010/09/one-screen-turn-deserves-another.html Mar 14 14:48:44 ok, finally :D Mar 14 14:48:45 and how that is pain in the ass to do in android Mar 14 14:48:50 zhulikas: yeah, I've done that as well, except I don't look at the iOS code when I do it Mar 14 14:48:53 trikc of the trade Mar 14 14:48:57 since i have an OK math background i should be able to figure it out.. Mar 14 14:48:58 guys...can you tell any good resources to learn android development???? ahh..except android developers site Mar 14 14:49:06 I don't look at the code as well, but I see how it works and get comments from iOS dev Mar 14 14:49:18 I'm lost.. I'm using fragments, and each fragment might replace the current fragment with another one, and if I switch back and forth between some fragments, and click "Done" (supposed to show another fragment), onCreateView() in one of the fragments displayed earlier is executed WITHOUT being displayed. What *could* be wrong? Mar 14 14:49:20 manojhans: Lynda.com Mar 14 14:49:23 Any ideas are appreciated Mar 14 14:49:33 the guy just smiles and says 'it was pretty simple to do in iOS" Mar 14 14:49:57 while I am still having sex with Android Mar 14 14:50:12 lynda.com....dont they have paid tuts??? Mar 14 14:50:35 sorry i forgot to mention...i would prefer free resources more :-) Mar 14 14:50:41 ios devs are spoiled Mar 14 14:50:42 yeah, porting ios apps is probably the most boring form of android development :| Mar 14 14:50:48 because it's too easy for them? Mar 14 14:50:58 also custom UI everywhere Mar 14 14:51:06 the ubermensch doesn't care what is easy for who Mar 14 14:51:07 and I love to write algorithms and backend stuff more Mar 14 14:51:08 crap you can't use drawables in notifications Mar 14 14:51:09 that sucks :( Mar 14 14:51:10 yeah the custom UI is stuipid Mar 14 14:51:15 all of my problems lie in UI Mar 14 14:51:22 i just slap any client who says they want it to look exactly like iOS Mar 14 14:51:29 haha Mar 14 14:51:50 then i lay out the user experiance expectations for android users Mar 14 14:52:00 and tell them how unsupportable and stupid it will be Mar 14 14:52:06 and how google will never feature them Mar 14 14:52:12 and eventually they fall in line Mar 14 14:52:14 shroomyreader, Notification takes a resource id Mar 14 14:52:21 yeah I know Mar 14 14:52:24 http://developer.android.com/reference/android/view/Display.html#getRotation%28%29 Mar 14 14:52:26 but I don't have them in drawable Mar 14 14:52:27 yay Mar 14 14:52:31 how do I get rid of that grey title background on top of my app? Mar 14 14:52:48 feature no title Mar 14 14:52:53 tapas: ah noted.. good find Mar 14 14:52:57 before calling setCOntentView Mar 14 14:53:06 requestWindowFeature or something.... Mar 14 14:53:09 Stiffer: application style in the manifest or you can call it manually Mar 14 14:53:09 Stiffer: with the NoTitleBar theme Mar 14 14:53:11 can you give me the exact line i'm a noob Mar 14 14:53:14 zhulikas: don't do that. Use a theme. Mar 14 14:53:17 Stiffer: use a theme with notitle, or remove it in androidmanifest Mar 14 14:53:32 ok i'll try using a theme Mar 14 14:53:33 ah, yes, manifest. I do that there as well actually Mar 14 14:53:34 thanks Mar 14 14:53:50 I never had enough theming documentation Mar 14 14:54:12 VJTachyon: don't forget about this one: Mar 14 14:54:13 http://android-developers.blogspot.com/2010/09/one-screen-turn-deserves-another.html Mar 14 14:54:15 so some graphics are set dinamically:) Mar 14 14:54:46 VJTachyon, the guys I work with know too little about android Mar 14 14:54:50 i suppose pretty much every App which uses accelerometer will fail on the new pads with landscape natural orientation Mar 14 14:54:53 and they actually find it quite shitty Mar 14 14:55:01 apple fanboys Mar 14 14:55:05 in a configuration change, is a new actiivty instantiated, or does it reuse the same instance? Mar 14 14:55:08 so this will probably get asked pretty frequently in the future ;D Mar 14 14:55:38 zhulikas: get used to it Mar 14 14:55:47 zhulikas: just point out to them that Steve Wozniak likes Android better. Mar 14 14:55:48 I want to finish with Android one day Mar 14 14:56:08 canadiancow|work: that depends on if you override config changes in the manifest Mar 14 14:56:14 it's ok to make some money, but too much pain to work as a permanent dev Mar 14 14:56:16 readme, that's an authority argument. Mar 14 14:56:17 i like android better than other mobile OSs because it is grander in scope Mar 14 14:56:20 mmh, can I post a picture of a contact on a notification ? Mar 14 14:56:31 VJTachyon: default behaviour - like does it use the same instance, but go through onCreate again Mar 14 14:56:31 PaN_Y_MeDiO: no, actually it's a joke, yukyukyuk. Mar 14 14:56:35 or does it create a new instance Mar 14 14:56:45 ;) Mar 14 14:56:59 canadiancow|work: it recreates Mar 14 14:57:06 hehehe. Pitty... Mar 14 14:57:09 what does "recreate" mean Mar 14 14:57:20 http://www.technolog.msnbc.msn.com/technology/technolog/wozniak-likes-his-android-phone-lot-117736 Mar 14 14:57:24 canadiancow|work: that activity is destroyed and a new one is made? Mar 14 14:57:30 "destroyed" Mar 14 14:57:37 canadiancow|work: at least for orientation changes Mar 14 14:57:38 wozniak never liked anything apple tho Mar 14 14:57:40 so it does onDestroy and onCreate in the existing instance? Mar 14 14:57:48 woz is a massive dork, android is for massive dorks Mar 14 14:57:49 snooplsm, hehehe. He founded it! Mar 14 14:57:54 or new MyACtivity().onCreate() Mar 14 14:58:13 plus the guy crashed an airplane, can't rely on his insight any more after that head injury Mar 14 14:58:13 should I define the theme in the android manifest? If I change it in the geo layout nothing seems to change.. Mar 14 14:58:16 snooplsm, and I guess Apple is just for classy people like you,... :/ Mar 14 14:58:23 and while it has its shortcomings it has cooler problems to solve than e.g. ios Mar 14 14:58:29 canadiancow|work: new MyActivity() Mar 14 14:58:33 I mean graphical layout Mar 14 14:58:37 thanks SimonVT Mar 14 14:58:37 and the solutions will be by their very nature converge to something smarter and better :D Mar 14 14:58:46 PaN_Y_MeDiO: nope, if I recall, a guy at Apple died recently because he refused cancer treatment initially. Mar 14 14:58:46 canadiancow|work: yarp Mar 14 14:58:58 Which guy? Mar 14 14:59:10 Mr. Jobs Mar 14 14:59:16 If you mean Jobs, we are better without him Mar 14 14:59:43 cmon no< Mar 14 14:59:46 keep it classy Mar 14 14:59:52 Such a tsunami of crap when he died... Mar 14 15:00:02 As if he invented ANYTHING Mar 14 15:00:09 aaanger Mar 14 15:00:12 same thing will happen with gates etc Mar 14 15:00:29 poor guy that has to follow up jobs presentation skills though Mar 14 15:00:35 PaN_Y_MeDiO: Steve Jobs came back from the dead to endorse Android in asia! I thought everybody knew: http://www.youtube.com/watch?v=aeXXwQrQiPE Mar 14 15:01:12 xDDD Mar 14 15:01:19 for f*cks sake! Mar 14 15:01:20 xDD Mar 14 15:01:25 lol yeah, who did present the iPad3? Mar 14 15:01:40 dono Mar 14 15:01:43 don't even know his name Mar 14 15:01:44 Tim Cook Mar 14 15:01:47 its not called iPad3 Mar 14 15:01:52 I know Mar 14 15:01:57 but I refuse to call it the new iPad Mar 14 15:01:58 Ipad 2 S ? Mar 14 15:02:05 MDijkstra: haha Mar 14 15:02:08 what is it called actually ? Mar 14 15:02:09 "The New iPad" .. how stupid Mar 14 15:02:13 'the new ipad' Mar 14 15:02:13 no VJTachyon Mar 14 15:02:18 i really can't believe that name got through Mar 14 15:02:19 oh I though you were joking Mar 14 15:02:20 it's "the new iPad" Mar 14 15:02:24 ohhhh sorry Mar 14 15:02:25 i mean seriously, who would allow it to be called that Mar 14 15:02:26 gotta get the capitalizaiton right ;) Mar 14 15:02:31 ugh Mar 14 15:02:33 iPad 2 turbo omega Mar 14 15:02:34 no camelcase Mar 14 15:02:35 Jobs would have slapped someone for thinking that name up Mar 14 15:02:38 that would be java Mar 14 15:02:40 he prolly did Mar 14 15:03:02 the iPad 2 will henceforth be known as the old iPad Mar 14 15:03:05 i thought his dying breath was "Curse Zoidberg" Mar 14 15:06:00 I can't wait until the New iPad 3D Turbo 9000 Zeta 360 Mar 14 15:06:06 it will be awesome. Mar 14 15:06:13 Anyone check out my app? www.todomapr.com -- thoughts? Mar 14 15:07:39 needs more screenshots of tasks Mar 14 15:07:54 UI needs to be updated to ics style Mar 14 15:08:01 otherwise people might think it's just another navigation clone Mar 14 15:08:20 SimonVT: ya, we will be working on that Mar 14 15:08:26 going through the guidelines now with my gfx guy Mar 14 15:09:33 by ics style, you mean just to run on ICS and look that way? The pre-ICS will still look the way it does. Mar 14 15:09:59 You can put a View inside a FrameLayout, right? Mar 14 15:10:00 still flaky on theme/styles, need to read up more Mar 14 15:10:07 I like how the 5 out of the 7 reviews came from the devs Mar 14 15:10:25 pragma_: 5? only 2 Mar 14 15:10:32 I envy your UI skills Mar 14 15:10:48 pragma_: there are only 2 team members on this project Mar 14 15:11:05 so you're not crediting the graphics guy? how rude. Mar 14 15:11:22 also, i'm sure we helped. Mar 14 15:11:32 I want 10% of the profits Mar 14 15:11:34 pragma_: hehe, well its me and the gfx guy -- thats 2 people Mar 14 15:12:38 Good thing I have multiple personality disorder, and good thing my other personalities studied different things -- so I got dev skills, graphic skills, etc. Mar 14 15:12:41 * pragma_ nods. Mar 14 15:12:56 Definitely a lot of room for improvements, im open to the critcism. thank you. Mar 14 15:13:07 will def work on UI more and also screenshots of tasks Mar 14 15:13:54 forum requires javascript -- almost a blank page without it Mar 14 15:14:01 any one knows a good way to always be able to access SharedPreference, even from class outside activity??.. Mar 14 15:14:02 * pragma_ tsks at the lack of graceful degradation. Mar 14 15:14:20 pragma_: noted. Mar 14 15:15:14 anyone know the name of the sms icon in system drawables ? Mar 14 15:15:31 QubeZ: I will buy your company and all its software for $55 Mar 14 15:16:12 How'd you arrive at $55? Mar 14 15:16:20 Generosity Mar 14 15:16:29 hehe Mar 14 15:16:38 all the money you have? Mar 14 15:16:39 So you think the idea is worthless? Mar 14 15:16:48 No, I'm envious and wish to buy you out. Mar 14 15:17:24 just switched the theme for my app and noticed that certain views are now stretched out in an ugly fashion. How can this happen? :S Mar 14 15:18:07 I ought to test my relativelayouts in different resolutions Mar 14 15:18:22 I hate loading up the emulator Mar 14 15:19:58 Is it good or bad practice to show a dialog over a dialog? Mar 14 15:20:34 relative layouts? ewww Mar 14 15:20:39 hwrd|work: why would you do that? Mar 14 15:21:40 VJTachyon: they're more efficient Mar 14 15:22:15 pragma_: maybe performance wise, but not anything other way :P Mar 14 15:22:23 ... wut Mar 14 15:22:23 -thing Mar 14 15:22:37 QubeZ: If I have soemoen entering a barcode, and when trying to enter they… make a mistake? Mar 14 15:22:39 I didn't even notice the "thing" part Mar 14 15:22:43 :P Mar 14 15:22:46 relativelayout isn't quantum mechanics or anything Mar 14 15:22:48 ErrorDialog over EntryDialog Mar 14 15:22:52 * pragma_ keeps reading what he wants to read, subconscious auto-correct Mar 14 15:22:52 they're pretty straightforward Mar 14 15:23:12 hwrd|work: why not just show a Toast message and still show the entry with their old entry in there? Mar 14 15:23:28 something quick, dialog is too in your face for that type of error i'd guess Mar 14 15:23:30 hwrd|work: TextView#setError(String) Mar 14 15:23:44 evancharlton: relativelayouts are a bitch at first, the terms don't really seem intuitive Mar 14 15:24:04 evancharlton: QubeZ: I'm not questioning that there are BETTER ways to do this… Just wondering if a dialog over a dialog is bad practice :) Mar 14 15:24:15 hwrd|work: yes, it is bad practice. Mar 14 15:24:35 hwrd|work: the fact that we are giving you other options implies that what you are doing is bad practice :) Mar 14 15:24:36 pragma_: it's confusing the first, like, two times you make one Mar 14 15:24:50 good, i'm glad we're in agreement. Mar 14 15:24:57 this is BS android Mar 14 15:25:14 every system icon available expect the notify when you receive an SMS ... Mar 14 15:25:47 Eh, you just gotta find it Mar 14 15:26:06 I've looked at them all Mar 14 15:26:12 I think the sms application has it private Mar 14 15:26:51 "private"? The stock android apps are open source, so are any resources they use Mar 14 15:27:09 lol thats true Mar 14 15:27:14 * hackkitten giggles at the lack of a standard 'open/create file' dialogue in Android API Mar 14 15:27:33 hackkitten: because this is not a desktop platform Mar 14 15:27:50 and? Mar 14 15:27:53 it's a computer~ Mar 14 15:28:02 sometimes you're creating/saving content Mar 14 15:28:05 and, thats it. File -> Open is stupid on mobile. Mar 14 15:28:11 why? Mar 14 15:28:19 you don't want to open an image? Mar 14 15:28:26 an email attachment? Mar 14 15:28:32 really? Mar 14 15:28:46 hackkitten: I didn't say that did I? There are mobile UI/Workflow... does Gmail do File -> Open when you attach? Mar 14 15:31:23 well, how else would you want to attach a file to an email,. or save an attachment to SD card? Mar 14 15:31:28 just saying~ Mar 14 15:31:37 Menu option ? Mar 14 15:32:04 Actionbar option? Mar 14 15:33:49 yes, but then you still have to implement the dialogue yourself Mar 14 15:33:57 or use a 3rd-party file exlorer Mar 14 15:33:59 explorer* Mar 14 15:34:20 ?? Mar 14 15:35:24 is ADB no longer included in the NDK? Mar 14 15:35:43 gnychis: what's NDK? Mar 14 15:35:59 ah ok, google-fu helped.. Mar 14 15:36:01 gnychis: was it ever? Mar 14 15:36:11 I thought it was, or maybe in the base of the SDK? Mar 14 15:36:12 i always found it in platform-tools Mar 14 15:36:19 gnychis: sdk has adb Mar 14 15:36:57 VJTachyon: I don't see it in the zip or tgz files here: http://developer.android.com/sdk/index.html Mar 14 15:37:01 ADB is in the SDK, yes Mar 14 15:37:06 NDK is an addition to the SDK Mar 14 15:37:45 gnychis: just download the sdk Mar 14 15:38:02 android-sdk-*\platform-tools Mar 14 15:38:15 android-sdk-*\platform-tools\adb.exe Mar 14 15:39:50 if you download the Mac OS or Linux SDK from the link I gave, neither has a platform-tools directory Mar 14 15:39:57 Hey, is there somewhere I can download a zip file of the sources for each android source project (e.g. frameworks-base), or the whole thing? I just want the latest released version (4.0.3), and I don't care about all the history of the files. Mar 14 15:40:14 oh i see Mar 14 15:40:15 Please don't say "use repo". Mar 14 15:40:20 they're not directly packaged Mar 14 15:41:37 gnychis: yeah you have to download them from the manager Mar 14 15:41:53 got it, thanks for the help Mar 14 15:50:48 when i press on market in my android 2.2. device is the service that's used google play? Mar 14 15:51:04 or rather: is google-play the default market on the majority of apps? Mar 14 15:51:10 or is there a good read somewhere Mar 14 15:51:19 besides: http://developer.android.com/guide/publishing/publishing.html Mar 14 15:54:01 Come on market.. update Mar 14 15:54:11 i want to do my 10k downloads in a week dance Mar 14 15:55:48 ive been drum rolling all morning Mar 14 15:55:59 its stuck at 9980 downloads :P Mar 14 15:56:56 VJTachyon: free app? Mar 14 15:57:08 tapas: yeah its the free version of my DJ app Mar 14 15:57:16 tapas: ad/nag supported Mar 14 15:57:26 i'm waiting to do my happy tap dance for 50K installs Mar 14 15:57:36 great that my company is called "Happy Tap" Mar 14 15:57:38 snooplsm: for the transit app? Mar 14 15:57:40 haha Mar 14 15:57:49 VJTachyon: yea Mar 14 15:58:00 VJTachyon: linky link? [in query so you don't spam the channel] Mar 14 15:58:10 Once my facial recognition app comes out I will prob get my first hundy K installs Mar 14 15:58:20 tapas: https://play.google.com/store/apps/details?id=com.djtachyon.android.VirtualTurntableFree Mar 14 15:58:36 snooplsm: woo sounds cool Mar 14 15:58:58 gnah, play.google.com tries to translate the texts to german ;D Mar 14 15:59:01 and it fails Mar 14 15:59:20 VJTachyon: actually i used to dabble in DJing and my beat syncing abilities were excellent Mar 14 15:59:24 tapas: wooo you know german? Mar 14 15:59:29 tapas: oh very cool Mar 14 15:59:35 VJTachyon: my taste in music was not mass compatible though Mar 14 15:59:39 VJTachyon: yes, i am german Mar 14 15:59:39 lol Mar 14 15:59:44 sweet.. pm Mar 14 16:00:06 yeah ive been looking for translaters Mar 14 16:00:09 how do you set an id or a tag on a fragment you add programatically Mar 14 16:00:12 o.O Mar 14 16:00:53 depends on what you are adding them to? Tabs: mTabHost.newTabSpec("player") Mar 14 16:01:04 In the add transaction Mar 14 16:01:23 Not sure id is possible Mar 14 16:02:00 fragment.getId() Mar 14 16:02:12 SET man Mar 14 16:02:13 SET Mar 14 16:02:22 yea SimonVT, didnt see the three arg add() in FT Mar 14 16:02:22 thanks Mar 14 16:03:59 SimonVT: cant you do it in the instantiate too? Mar 14 16:04:37 Don't think so? Mar 14 16:04:59 good (wet) morning everyone Mar 14 16:05:12 http://developer.android.com/reference/android/app/Fragment.html#instantiate(android.content.Context, java.lang.String, android.os.Bundle) Mar 14 16:05:41 fname The class name of the fragment to instantiate. Mar 14 16:06:18 newTab.fragment = Fragment.instantiate(mActivity, newTab.clss.getName(), newTab.args); Mar 14 16:06:19 ft.add(mContainerId, newTab.fragment, newTab.tag); Mar 14 16:06:20 :P Mar 14 16:06:22 nevermind Mar 14 16:22:18 Hi Im new to android development. I want to write to the file storage on my phone. I need a Context for that. Can I just extend Application for that? Mar 14 16:24:12 bif_1964: getApplicationContext() Mar 14 16:24:14 bif_1964 if you're doing this from an Application, just use this., or this.getApplicationContext() Mar 14 16:24:53 eclipse.buildId=M20110210-1200 Mar 14 16:24:55 java.version=1.6.0_23 Mar 14 16:24:57 java.vendor=Sun Microsystems Inc. Mar 14 16:24:59 BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ja_JP Mar 14 16:25:01 Framework arguments: -product org.eclipse.epp.package.java.product Mar 14 16:25:03 Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product Mar 14 16:25:05 hackkitten: SPAMZ Mar 14 16:25:05 This is a continuation of log file C:\Users\Maya\workspace\.metadata\.bak_0.log Mar 14 16:25:10 hackkitten: FLUDZ Mar 14 16:25:11 sorry about that Mar 14 16:25:22 'copy' in Eclipse means something weird, it seems :P Mar 14 16:25:25 * VJTachyon sets mode +b hackkitten Mar 14 16:25:28 :< Mar 14 16:26:04 hackkitten: pwnd Mar 14 16:26:25 using a tabwidget in a layout causes ADT to NPE on me Mar 14 16:26:57 VJTachyon, magnets: I have a POJO, so i must extend something to get the getApplicationContext() Mar 14 16:27:31 bif_1964: pardon? Mar 14 16:28:23 I modified the BST but now the ADT reports that the OSI model regressed on the NPE when setting SOFLAM on the PINOD. Any ideas? Mar 14 16:28:37 bif_1964: pass in the context to the object Mar 14 16:28:57 VJTachyon: halp Mar 14 16:29:05 pragma_: lulz Mar 14 16:29:08 :( Mar 14 16:29:24 VJTachyon, ok i try that. thanks Mar 14 16:29:36 pragma_: i like those acronyms Mar 14 16:30:06 pragma_: do you play BF3? Mar 14 16:30:14 how could you tell? Mar 14 16:30:21 pragma_: hehe .. Mar 14 16:30:46 pragma_: I'm 30 hours into ME3 .. Mar 14 16:30:53 pragma_: im ashamed :P Mar 14 16:31:07 I played ME1 until the 2nd elevator, then got bored. Mar 14 16:33:01 lol Mar 14 16:34:18 \o/ Mar 14 16:35:02 /o/ Mar 14 16:35:05 \o\ Mar 14 16:35:14 lol Mar 14 16:35:15 (o/ Mar 14 16:35:20 nerds Mar 14 16:35:47 damn right Mar 14 16:36:01 was that a laugh out loud or another guy? Mar 14 16:36:12 ^^ Mar 14 16:36:30 hackkitten: うにゃにゃ〜〜 =^_-= Mar 14 16:37:21 p_l > はい、猫です~ Mar 14 16:37:25 woot_ Mar 14 16:38:25 Wondering if I have the guts to buy plane tickets and hotel for I/O Mar 14 16:38:30 hackkitten: p_l: http://nyan.cat/ Mar 14 16:38:34 happy st pattys Mar 14 16:38:36 and then use the time for a vacation if I can't get tickets to I/O Mar 14 16:38:47 Zooklubba: i did that last year Mar 14 16:38:54 I don't have money right now... and then I suspect I might be stopped at the border Mar 14 16:39:13 p_l: where you coming from? Mar 14 16:39:25 VJTachyon, did you get tickets? Mar 14 16:39:34 Zooklubba: last year? yeah Mar 14 16:39:40 I suspect I will be pissed if I don't get tickets, and that could spoil the vacation Mar 14 16:39:42 Zooklubba: with a little help from cold fusion hacking Mar 14 16:40:05 Zooklubba: what a mess that was Mar 14 16:40:31 im hoping the higher price will keep the goodie grubbers away Mar 14 16:40:49 VJTachyon: doesn't really matter, I will probably piss off someone at the border Mar 14 16:40:51 and i hope they keep the student ticket count low Mar 14 16:40:55 Yeah, lol. I was so anxious getting the error page after you pressed the purchase button. Mar 14 16:41:04 How come VJTachyon? Mar 14 16:41:09 ,oO( "I had a problem so I thought to use Java - now I have a ProblemFactoroy" ) Mar 14 16:41:32 Zooklubba: because student tickets are $300. A lot of them are local and just grab the goodies and put them up for sales Mar 14 16:41:48 i met like 5 students last year that had their tablets on ebay within 30 minutes Mar 14 16:41:53 ah, lol. Didn't think that far. Mar 14 16:42:00 I got a student ticket last year. Save me some cash Mar 14 16:42:24 Hope I can get one this year as well :P Mar 14 16:42:25 Zooklubba: yeah well you are one of the good guys Mar 14 16:42:38 Zooklubba: i had like 5 valid session keys last year Mar 14 16:42:46 Zooklubba: i helped a few people from my company get in that way Mar 14 16:43:18 lol nice. I guess I was just extremely lucky. Hammered the F5 button Mar 14 16:43:23 yeah we all did Mar 14 16:43:35 as long as you get past the login screen, you got a valid session id Mar 14 16:43:42 and could get back in after the site came back up Mar 14 16:43:45 Hey people! Mar 14 16:43:48 oh k Mar 14 16:44:04 but that wont work this year, im assuming they arnt going to use cold fusion again after that embarrassment Mar 14 16:44:25 but who knows Mar 14 16:44:43 i need to stay home registration day to utilize my 100mbit computers :P Mar 14 16:44:53 err 100mbit uplinked computers Mar 14 16:44:54 I was wondering, what's the right way to use a login screen regarding the activity stack? I mean, after you log in, the login screen is not something you want to go "back" to, so I guess I'd somehow delete it from the activity stack? Such that when you press back on the main screen, you get to Android's home screen? Or how to do this/ Mar 14 16:45:17 Or the app could start with the main screen and instantly put the login activity on top, disabling the back functionality? Nah... Mar 14 16:45:23 *thinking* Mar 14 16:45:25 For instance you can call finish it or flag the new activity to clear stack UnbertKant Mar 14 16:45:25 UnbertKant: Why not use a fragment instead Mar 14 16:45:40 UnbertKant: http://developer.android.com/guide/topics/fundamentals/tasks-and-back-stack.html Mar 14 16:45:46 Simply remove once user is logged in. Never show if they launch when logged in Mar 14 16:45:51 yeah that too Mar 14 16:47:03 Hm, what do you mean SimonVT? Mar 14 16:47:17 UnbertKant: http://developer.android.com/guide/topics/fundamentals/fragments.html Mar 14 16:47:59 So, the login activity would be the activity that gets started when you launch the app, it puts the main screen on top and deletes itself from the stack? Mar 14 16:48:19 UnbertKant: fragments and activities are different Mar 14 16:48:49 So I have a main activity that either contains a login fragment or a fragment that contains everything my current main activity contains? Mar 14 16:49:29 UnbertKant: sort of Mar 14 16:49:41 Could you be more vague? Mar 14 16:49:41 UnbertKant: you could do the login in a dialogfragment too Mar 14 16:49:43 ;) Mar 14 16:50:11 UnbertKant: but basically yes, the fragmentactivity can show that fragment, get the data from it, and then remove it Mar 14 16:50:47 The dialogfragment lets you see parts of the activity behind it, right? This is problematic in my case, since the first screen after login might contain information that can only be retrieved with the login credentials. Mar 14 16:51:01 UnbertKant: then a fragment is fine Mar 14 16:51:22 also, why isnt this login activity returning the credentials in the results Mar 14 16:51:32 which would then close the activity and remove it from the stack Mar 14 16:51:33 there currently is no login activity. Mar 14 16:51:52 so you mean launching the main screen which starts the login activity on top of itself? Mar 14 16:52:00 Wouldn't this cause troubles with the back button? Mar 14 16:52:14 UnbertKant: well you could cancel the login screen and go back Mar 14 16:52:20 UnbertKant: but you can override or detect that Mar 14 16:52:27 UnbertKant: if the results are empty Mar 14 16:52:45 UnbertKant: lots of different ways to do this Mar 14 16:52:48 okay, so pressing back on the login screen returns null, which causes the main screen to quit itself... Mar 14 16:52:57 UnbertKant: thats one solution Mar 14 16:53:00 yes, that's why I'm asking for the best practice here. Mar 14 16:53:10 I'd like to hear how an expert would do it. Mar 14 16:53:13 UnbertKant: well Fragments are the most encouraged implementation style now Mar 14 16:53:34 UnbertKant: because they are so versitile Mar 14 16:53:45 So it's a mainscreen activity that contains login fragment then loading screen fragment then mainscreen fragment... Mar 14 16:54:04 UnbertKant: sounds reasonable Mar 14 16:54:38 currently, the mainscreen is a TabActivity. How painful will it be to put that in a fragment? Mar 14 16:54:47 oh cool thats what my app uses Mar 14 16:54:55 well if you dont want to go with a swipe viewpager Mar 14 16:55:04 then you can use fragments in tabs Mar 14 16:55:15 I have one somewhere else, so the highest tabs can't be swiped. Mar 14 16:55:44 lemme find a couple links Mar 14 16:56:10 http://developer.android.com/resources/samples/Support4Demos/src/com/example/android/supportv4/app/FragmentTabs.html Mar 14 16:56:13 Can't you just say something like "Porting a TabActivity is hell" or "It's a piece of cake!"? :) Mar 14 16:56:51 I don't necessarily want to port all the tabs to fragments. Mar 14 16:57:06 well if you start using fragments, you probably should Mar 14 16:57:18 Yes, but not right now, there are more important things to do first. Mar 14 16:57:19 fragments is kind of an all or nothing kind of thing Mar 14 16:57:27 D'oh! Mar 14 16:57:30 at least IMHO Mar 14 16:57:32 Hi! I developed a small app with android 1.5/2.1 in mind and it works fine. But it doesnt in ICS, buttons dont do anything etc. What would be the best approach to make it compatible? are there any compatibility-checking-tools or anything around? Mar 14 16:57:46 Okay, now I get a cloud of doom hovering over my head... Mar 14 16:58:05 UnbertKant: then just fire an activity and get the results Mar 14 16:58:08 UnbertKant> Can't you just say something like "Porting a TabActivity is hell" or "It's a piece of cake!"? :) <- "TabActivity is deprecated" Mar 14 16:58:19 ^ Mar 14 16:58:40 SimonVT I know that. However, it works right now and there are more pressing issues than fixing something that currently works. Mar 14 16:58:47 life is so much easier with fragments in tabs Mar 14 16:59:10 I really intent to port it all over to fragments some day, but it's not critical right now. (Correct me if I'm wrong) Mar 14 16:59:38 And imo, so is tabhost :p Mar 14 17:00:01 yeah Mar 14 17:00:03 Guess I'll go with the login activity on top of the main activity for now. Mar 14 17:00:17 UnbertKant: yeah if you need a quick solution, thats probably it Mar 14 17:00:28 Thank you very much for your help, I really appreciate it :) Mar 14 17:01:48 Have a nice day! :) Mar 14 17:02:03 u2 Mar 14 17:04:37 hi all Mar 14 17:05:08 is there a way to traverse the assets? Mar 14 17:05:13 yes Mar 14 17:05:21 maybe Mar 14 17:05:37 thats all i got Mar 14 17:05:46 hahaha yes -> maybe -> emmh -> no at all Mar 14 17:06:34 i mean a way to obtain a list/tree of the files that where in the assets directory when de package where built Mar 14 17:07:22 asset manager has a list method Mar 14 17:07:45 but its not a File Mar 14 17:08:00 list Mar 14 17:08:07 i saw just now Mar 14 17:08:26 Return a String array of all the assets at the given path. Mar 14 17:10:28 this inlcudes both files and directories i think Mar 14 17:11:46 Intent i = new Intent("android.intent.action.MAIN"); Mar 14 17:11:47 i.setComponent(ComponentName.unflattenFromString("package")); Mar 14 17:11:47 i.addCategory("android.intent.category.LAUNCHER"); Mar 14 17:11:47 startActivity(i); Mar 14 17:11:58 can this code invoke intent chooser? Mar 14 17:12:08 I get it at some point, it asks me how I want to finish my action Mar 14 17:12:22 but not sure if that's the code which invokes it Mar 14 17:12:45 anyone in here converted a webOS app to android? Mar 14 17:12:48 I know that it is usually done with Intent.createChooser.... Mar 14 17:12:53 if you set a component, it is an explicit intent and does not show a chooser Mar 14 17:13:04 hmm Mar 14 17:13:11 so it means chooser comes not from this code? Mar 14 17:13:30 not likely Mar 14 17:13:32 ok Mar 14 17:13:33 thanks Mar 14 17:13:49 because there is only one other place Mar 14 17:13:55 so I will add a component there asw ell Mar 14 17:14:27 if you set a component, you are telling android which package should handle the intent Mar 14 17:14:37 so it will not ask the user how to handle it Mar 14 17:14:41 ok Mar 14 17:14:43 thanks Mar 14 17:15:10 everything might just work after next tryout in a phone! Mar 14 17:15:20 let's hope for the best :D Mar 14 17:20:08 good morning Mar 14 17:20:15 afternoon Mar 14 17:21:20 hmm, if I set a component, it does not start anymore Mar 14 17:21:46 zhulikas: what's your issue? Mar 14 17:21:53 zhulikas: something with an Intent? Mar 14 17:23:30 I have a broadcast receiver whcih starts on BOOT_COMPLETED, that receiver registers multiple alarms through AlarmManager and every alarm calls other broadcast receiver. That other receiver during onReceive registers a notification with an intent which opens my application Mar 14 17:23:52 now that intent which opens my application is creating a IntentChooser for some odd reason Mar 14 17:24:19 I must mention, that I call specific activity with SINGLE_TOP Mar 14 17:24:23 zhulikas: what is your action, categories and data in the created intent? Mar 14 17:24:44 notificationIntent = new Intent(context, BlaActivity.class); Mar 14 17:24:45 notificationIntent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); Mar 14 17:24:45 notificationIntent.setComponent(ComponentName.unflattenFromString("package")); Mar 14 17:24:45 notificationIntent.putExtra(EVENT_ID, obj.getId()); Mar 14 17:25:02 without setComponent it creates a chooser. With setComponent it does not work Mar 14 17:25:27 hats in the chooser Mar 14 17:25:39 what? Mar 14 17:26:23 zhulikas: do setClass(this, YourOtherActivity.class) Mar 14 17:26:29 on the intent Mar 14 17:26:43 notificationIntent.setComponent(ComponentName.unflattenFromString("package")); <- this override your constructor parameters Mar 14 17:27:20 I was wondering, maybe the problem is because of a wrong Context? Mar 14 17:27:43 not sure how though Mar 14 17:27:51 Also, learn to pastebin Mar 14 17:27:58 this is just 4 lines Mar 14 17:28:13 not too much :) Mar 14 17:28:38 s/not// Mar 14 17:29:37 zhulikas: but yeah, since you already instantiate an Intent with the context and class, there's no reason to call setComponentName() Mar 14 17:29:59 or rather setComponent() Mar 14 17:31:30 what would be the best way to run something to change the UI once a thread has finished in a different object Mar 14 17:32:39 jiduvah: you could call runOnUIThread() Mar 14 17:32:58 make a broadcast receiver in activity which registers onStart/onStop and send a message to it? Mar 14 17:33:07 no, don't do that Mar 14 17:33:11 Does SSLSocketFactory support pk12 certs or on bks? Mar 14 17:33:19 *only Mar 14 17:33:25 zhulikas, I was thinking of using an interface that I implement in the activity Mar 14 17:33:35 would this work? Mar 14 17:33:53 woho Mar 14 17:33:58 answer from googleio2012 support mail Mar 14 17:33:59 also your question looks just like what AsyncTask is for Mar 14 17:34:27 do in background (bg thread) / progress (ui thread) / oncomplete (in ui thread) Mar 14 17:34:47 Having problems with sendTextMessage. I'ts sending two identical messages on exceution =/ . Anyone been there? Mar 14 17:34:49 jiduvah: Just make sure to post back to the ui thread before calling the interface as to not cause confusion (like accidentally modifying ui from a thread) Mar 14 17:34:52 zhulikas: AsyncTask isn't always the right answer Mar 14 17:34:58 why not? Mar 14 17:35:09 zhulikas: because of limitations Mar 14 17:35:31 fuck, still gives me a chooser Mar 14 17:35:42 zhulikas: pastebin the code Mar 14 17:35:49 I am not using async, its actually the Facebook library I am using, I want to change the ui once a thread from that library has finished Mar 14 17:36:16 jiduvah: I'm assuming you pass it a callback, correct? Mar 14 17:36:44 herriojr, http://pastebin.com/zpXEqTVF Mar 14 17:37:11 I would guess so, Its not actually met working on it Mar 14 17:37:17 notificationIntent.setClass(context, TabHostActivity.class); <- Again, overrides constructor arguments Mar 14 17:37:22 :| Mar 14 17:37:23 rokk: you're probably calling it twice. Attach a debugger or emit log messages and see what happens. Mar 14 17:37:39 so, any suggestions? Mar 14 17:37:41 The next question is how the intent is invoked Mar 14 17:37:47 at the moment, the activity is passed into the object then a method is called from the activity which is inside the object Mar 14 17:37:59 it just doesn't seem right to me Mar 14 17:39:01 SimonVT: yes, but in this case, the constructor arguments are the same as that of setClass() Mar 14 17:39:23 Still unnecessary Mar 14 17:39:26 Anyway, the intent is fine Mar 14 17:39:36 jiduvah: as long as there is a WeakReference inside to the activity, it should be fine Mar 14 17:39:49 lov: nope, just calling it once...have log messages. Mar 14 17:39:49 SimonVT, http://pastebin.com/bdDhVnef Mar 14 17:40:01 herriojr: ah ok Mar 14 17:40:15 jiduvah: but assuming it is calling the function on the Activity from the separate thread, you can call activity.runOnUiThread Mar 14 17:40:25 lov: allthough the pending ident gets called twice... Mar 14 17:41:00 herriojr: its still in the different thread, which is the problem, I think I can sort it. I just need to go through the code Mar 14 17:41:07 zhulikas: how many items are showing up in the activity chooser Mar 14 17:41:20 uff Mar 14 17:41:25 jiduvah: yeah, just do what I said since you already have the Activity when the function is called? Mar 14 17:41:30 more than 5 Mar 14 17:41:40 zhulikas: are they things that are not yours? Mar 14 17:41:48 yes. Those things are not mine Mar 14 17:42:02 those are Android's Mar 14 17:42:22 SimonVT: I used the default theme, Holo and DeviceDefault to cover all Android devices in To Do Mapr. Thanks. Mar 14 17:42:43 zhulikas: ah, PendingIntent, you probably want to set the EVENT_ID as the Data url Mar 14 17:42:56 love, http://stackoverflow.com/questions/9706039/android-sendtextmessage-sends-two-identical-messages-on-exceution-how-to-fix Mar 14 17:43:00 jerriojr: its called from an activcity object that is within an object, that is within an activity Mar 14 17:43:01 I do not ;) Mar 14 17:43:02 zhulikas: since PendingIntents get cached by the system Mar 14 17:43:09 lov, http://stackoverflow.com/questions/9706039/android-sendtextmessage-sends-two-identical-messages-on-exceution-how-to-fix Mar 14 17:43:31 herriojr, arent those cached by requestCode? Mar 14 17:43:38 jiduvah: but the function called on completion is part of the Activity, correct? Mar 14 17:44:03 rokk: uh Mar 14 17:44:05 correct Mar 14 17:44:13 rokk: so the PI for your C2DM receiver gets called twice? Mar 14 17:44:20 jiduvah: then it would be fine to just call runOnUiThread() Mar 14 17:44:40 oh Mar 14 17:44:43 the 3.1421348917374910112489494 Mar 14 17:44:47 that's from memory Mar 14 17:44:49 the PI that you set when you call the SmsManager Mar 14 17:44:59 does your recipient GET two SMS messages? Mar 14 17:45:01 you keep saying PI, it's funny cause it's 3/14 Mar 14 17:45:03 herriojr: where is the method runOnUiThead()? Mar 14 17:45:05 yes iswydt Mar 14 17:45:16 jiduvah: a function of Activity Mar 14 17:45:27 lov, nah just once. The onlything is that sendTextMessage fire off double messages Mar 14 17:45:39 herriojr: really? I am a little which I never knew of it, tho I tend to use async tasks Mar 14 17:46:07 jiduvah: Views themself also have this function as well Mar 14 17:46:14 views have a post function Mar 14 17:46:21 activities have runOnUiThread Mar 14 17:46:24 yes, sorry :) Mar 14 17:46:30 different name :P Mar 14 17:46:31 rokk: .... so your recipient only gets one SMS. Mar 14 17:46:35 which means that you're only sending it once Mar 14 17:46:36 same functionality for the most part Mar 14 17:46:39 but you're getting two callbacks. Mar 14 17:46:44 that is a TOTALLY different problem Mar 14 17:46:55 view.post won't always fire if the view isn't visible or something Mar 14 17:47:06 lov: no two, did I missunderstand you? Mar 14 17:47:27 wait Mar 14 17:47:37 O_O Mar 14 17:48:21 why are you calling getResultCode on the receiver? Mar 14 17:48:53 hrm, how can I make an IntentService that only starts once, there's an activity that creates an instance of a class, that class has the intentservice it needs to work with, but like if screen orientation changes the class gets recreated and so does the intentservice Mar 14 17:49:08 related, why does my onDestroy get called right after the service is created? >.> Mar 14 17:49:11 shouldn't you be checking a value in the intent itself? Mar 14 17:49:16 know what, fuck it, I've got work to do Mar 14 17:49:28 zhulikas: http://stackoverflow.com/questions/3140072/android-keeps-caching-my-intents-extras-how-to-declare-a-pending-intent-that-ke although I disagree with the answer as I feel it should be part of the data uri Mar 14 17:49:29 ok =( Mar 14 17:51:00 "answer that I have to customize the Intents based on some unique ID e..." Mar 14 17:51:04 herriojr, I do that ;) Mar 14 17:51:21 every PendingIntent in AlarmManager is unique by requestCode Mar 14 17:51:30 how do i found out what i need to change in my app to make it run in ICS? Mar 14 17:51:31 I tested it, it works fine to register/cancel PendingIntents that way Mar 14 17:51:47 KaosK, get an ics emu and run it Mar 14 17:51:52 zhulikas: but you don't understand, the requestCode is not part of the PendingIntent Mar 14 17:51:55 KaosK, generally nothing, just rebuild against api14 and see if it works Mar 14 17:52:20 yeah i did that, and alot of stuff doesnt work for some reason :S Mar 14 17:52:32 so look and see what doesn't work and fix it Mar 14 17:52:34 hmm Mar 14 17:52:36 ok then Mar 14 17:52:40 was just wondering if there was any overview of what usually breaks Mar 14 17:52:41 because most apps should just work Mar 14 17:52:45 aha ok Mar 14 17:52:46 I will look into it Mar 14 17:52:52 but now... I already worked 8hours today Mar 14 17:52:57 I feel kinda exausted Mar 14 17:52:58 the only obvious thing that breaks is notitlebar + menu items Mar 14 17:53:03 and still need to prepare for studies tomorrow... Mar 14 17:53:08 its tempting to blame the emulator :P Mar 14 17:53:58 zhulikas: think of it like this: PendingIntents are not cached by AlarmManager, but by the system itself, and the system has absolutely no idea what its requestCode is Mar 14 17:55:26 herriojr, tricky part for me is this: Mar 14 17:55:27 intent.setAction("actionstring" + System.currentTimeMillis()); Mar 14 17:55:31 can I actually do that? Mar 14 17:55:54 man it's really annoying that the Android SQLite implementation doesn't properly implement . syntax. Mar 14 17:56:08 keeps giving me "ambiguous column name". Mar 14 17:56:14 and I tried setting DataUri for PendingIntent before and it didn't work. Or maybe something else wasn't working... damnit. Mar 14 17:56:19 for column names that are the same in both tables. Mar 14 17:58:29 hokkaido: had you tried to use OpenSL ? Mar 14 17:58:31 zhulikas: not for an activity, no Mar 14 17:58:42 zhulikas: for a dynamically created BroadcastReceiver, yes Mar 14 17:58:55 well, I don't use those for this case Mar 14 17:59:41 zhulikas: but yeah, it sounds like somehow your component name is being cleared anyways Mar 14 18:00:32 anybody seen the error: unknown option '--no-crunch'? Mar 14 18:03:16 yeik, you have an old sdk Mar 14 18:03:29 is there any chance they'll fix their SQLite implementation? Mar 14 18:03:40 ok, so just need to update the sdk tools? Mar 14 18:03:56 yes Mar 14 18:03:59 has anyone ever seen this ? http://pastebin.com/zHDxqAfP i nothing on google on it Mar 14 18:04:19 ok, installing 30 packages. Mar 14 18:04:53 fanno, seen it, no, checkedtextview isn't a checkbox probably... Mar 14 18:05:00 11112 lines... scary Mar 14 18:06:07 fanno, or whatever it's looking up isn't a checkbox Mar 14 18:06:11 pfn: i was thinking that hehe Mar 14 18:06:19 fanno, git checkout android-whatever-version-you're-trying-on Mar 14 18:06:25 and look at WebView.java line 11112 Mar 14 18:06:31 then fix your code that triggers oit Mar 14 18:07:01 pfn: the device version ? or the minimum version ? or build version ? Mar 14 18:07:10 device version Mar 14 18:07:26 webview.java doesn't have a corresponding line number in ics Mar 14 18:07:44 ics ? Mar 14 18:08:14 ics=ice cream sandwich Mar 14 18:08:27 whats the git location for 2.3.6 ? Mar 14 18:09:12 source.android.com Mar 14 18:09:18 follow the directions on getting the code downloaded Mar 14 18:09:30 github.com/android might be useful for browsing, I suppose Mar 14 18:09:36 god fucking damnit. Mar 14 18:10:29 fanno, https://github.com/android/platform_frameworks_base/blob/android-2.3.6_r1/core/java/android/webkit/WebView.java Mar 14 18:10:45 don't disrespect the use of damnit, by putting it after god. Mar 14 18:11:18 at 11k lines, the browser isn't gonna be happy displaying it though Mar 14 18:11:31 hmm, line number still doesn't match up Mar 14 18:11:58 class is too large if > 2000 lines Mar 14 18:13:41 are androlibs stats broken http://www.androlib.com/appstats.aspx Mar 14 18:13:45 looks like shit the last few months Mar 14 18:14:29 pfn: it seems it onlt have ~8k lines Mar 14 18:14:39 mikedg: Developers stopped developing! Mar 14 18:14:47 the sky is falling! Mar 14 18:15:08 it's the 2012 app market crash! Mar 14 18:15:11 happy pi day btw. Mar 14 18:15:46 it's 14/3 Mar 14 18:16:43 except in america, where we jumble the order of magnitude when writing dates. Mar 14 18:17:12 :o Mar 14 18:17:49 When writing anything Mar 14 18:19:07 fanno, indeed, dunno why yours reports a different line number Mar 14 18:20:30 pfn, funny thing is i am geeing loads of different crash reports all within the android framwork =( Mar 14 18:20:35 so one more time, not to beat a dead horse, but is there any plan to fix this broken SQLite implementation? Mar 14 18:20:50 moonlightcheese: what's broken? Mar 14 18:20:59 pfn: not from my own device but auto reported from clients devices Mar 14 18:21:19 fanno, in that case, you have no idea what the device version is Mar 14 18:21:24 ambiguous column names for result sets that have two tables with the same column name. Mar 14 18:21:31 wow html... Mar 14 18:21:36 then android knows what keyboard to show Mar 14 18:21:38 even on the web! Mar 14 18:21:39 moonlightcheese, select t.c as tc Mar 14 18:21:54 canadiancow|work, indeed Mar 14 18:22:01 why does no one use that Mar 14 18:22:04 fanno, that's one of the things I really hate about the market's error reporting Mar 14 18:22:13 canadiancow|work, because type=email is new in html5 Mar 14 18:22:19 that doesn't work programmatically when you need to build the query from a json object and you have classes describing your tables. Mar 14 18:22:29 pfn: well it is not the marked reporting's tho Mar 14 18:22:30 canadiancow|work, i.e. semantic types are a recent addition Mar 14 18:22:34 but it's been "supported" since 2009 Mar 14 18:22:44 im testing it on a 2.1 emu Mar 14 18:22:49 pfn it is costum code. Mar 14 18:22:56 costume? Mar 14 18:23:03 fanno, you mean like acra/bugsense Mar 14 18:23:35 pfn on 2.1 it doesnt show the email keyboard, but it works as an input Mar 14 18:23:41 it's just flawed. i've never had an issue with a SQL implementation that doesn't include the ability to use table.column to explicity identify a column. Mar 14 18:23:43 something like that it send it to my server and server send it out as a email Mar 14 18:23:46 that's broken imo. Mar 14 18:24:06 canadiancow|work, most html parsers will default to text input if they don't understand the type attribute Mar 14 18:24:06 moonlightcheese: why can't you use the 'as' programatically? Mar 14 18:24:09 im not following Mar 14 18:24:11 ah Mar 14 18:24:21 oh wait that was 1.6 Mar 14 18:24:27 moonlightcheese: which sql implementations don't feature that? Mar 14 18:24:41 SQLite in Android doesn't... Mar 14 18:24:52 canadiancow|work, http://jsfiddle.net/BSZpj/ Mar 14 18:25:03 canadiancow|work, see bogus input type, and see created text field bottom-right Mar 14 18:25:17 yea Mar 14 18:25:17 cool Mar 14 18:25:27 is that what a browser is supposed to do? Mar 14 18:25:33 or is that what most just tend to do Mar 14 18:25:51 dunno if it's in html spec or browsers accomodating shitty code Mar 14 18:26:00 I always assume the later given the organic growth of the web Mar 14 18:26:01 QubeZ, i'm using a json object to encode the query. i loop through the object and build the query, which is backed by classes describing the table. then, when i get the Cursor result, i use those classes to access the objects in the result. using "as" would change the column name for specific result sets. Mar 14 18:26:01 hey so guys , any idea what would give the "application not installed" message on an android phone? trying to make a small game using jpct-ae and can't install my app Mar 14 18:26:38 but "why" i need it to work isn't the issue. the fact of the matter is, it should be included. Mar 14 18:26:38 moonlightcheese: bs, it is supported Mar 14 18:26:54 http://pastie.org/3595386 Mar 14 18:27:01 readme: google "android ambiguous column name" and come back. Mar 14 18:27:17 canadiancow|work, added a little bit of js in the demo to indicate what the browser ends up thinking the input is Mar 14 18:27:22 canadiancow|work, in the fiddle Mar 14 18:28:00 i dont see it Mar 14 18:28:04 it's supported, but it doesn't work when you need to use two tables that have the same column name you want to link on. Mar 14 18:28:08 canadiancow|work, reload, should be there Mar 14 18:28:16 nope Mar 14 18:29:06 regardless of whether or not you explicity tell it table.column, it still thinks the column is ambiguous because of the way Android handles the results. Mar 14 18:29:26 weird, it didn't save my change Mar 14 18:29:42 the Cursor object just has column names, no table names, and thus can't tell which table the column came from. Mar 14 18:29:55 so the column names have to be unique. Mar 14 18:30:10 and now i have hundreds of lines of unusable code. Mar 14 18:30:24 canadiancow|work, http://jsfiddle.net/JDu2b/1/ Mar 14 18:30:26 for some queries. Mar 14 18:30:27 canadiancow|work, jsfiddle is being weird Mar 14 18:30:50 it's a pain in the ass. Mar 14 18:30:56 * pfn hates js frameworks Mar 14 18:31:47 I suppose it should be unsurprising if I were to report that jsfiddle.net fails horribly without javascript enabled -- lots of whack entity placements, etc Mar 14 18:31:58 * pragma_ browses with javascript off. Mar 14 18:32:26 I'm sure the writers of jsfiddle.net don't care if it looks fucked up with js turned off Mar 14 18:33:03 moonlightcheese: you mean like this? http://pastie.org/3595425 Mar 14 18:33:13 this is on a real android sqlite implementation Mar 14 18:33:20 pfn i use http://code.google.com/p/android-remote-stacktrace/source/browse/src/com/nullwire/#nullwire%2Ftrace with slight changes Mar 14 18:33:22 readme: Now do that with a cursor Mar 14 18:33:47 cool pfn. even the gingerbread browser doesnt recognize email Mar 14 18:33:50 chrome for android does Mar 14 18:33:53 If it's in the framework java code, it should be fairly simple to fix Mar 14 18:34:01 can one replace a textview with an imageview (and viceversa) in code? Mar 14 18:34:31 DammitJim, I guess in the xml... Mar 14 18:35:06 how many audio profiles are their on a phone. it seems like there is a difference volume for music, notification, games, ringer. Mar 14 18:36:02 uh Mar 14 18:36:20 there's ringer, media, in-call, and notifications Mar 14 18:36:22 needs more profiles Mar 14 18:36:29 you can optionally tie ringer to notifications Mar 14 18:43:12 Hmm odd, my alarm in AlarmManager isn't waking up the phone with startActivity. Am I missing something? Mar 14 18:45:36 readme: it's in the java code. it's written that way to make Cursors simple i guess. Mar 14 18:46:02 I wonder if there is some alternative thing that can be used Mar 14 18:46:21 i'm going to install the framework code and look at it Mar 14 18:46:32 working on getting all the build tools installed Mar 14 18:47:23 is this for help with building android from source or for developing new apps? Mar 14 18:47:31 both Mar 14 18:47:59 also a lot of horseplay happens Mar 14 18:48:40 but if you're making a custom rom or something, you might do better in #android-root Mar 14 18:48:48 * SeligArkin steps on a switch, dunking readme into the container of rabid goldfish Mar 14 18:48:52 lol, lot of horseplay happens while trying to build a new device too :p Mar 14 18:49:08 ohh... thanks readme! Mar 14 18:53:23 hello everyone Mar 14 18:54:23 hey bass Mar 14 18:55:35 currently trying to use actionbar sherlock, got some problems compiling it Mar 14 18:56:57 bassrael: what problem Mar 14 18:57:00 eclipse, y u minimized. lol Mar 14 18:57:25 probably because you were too busy looking at reddit to be working in it Mar 14 18:58:11 nah, it's building so it's busy Mar 14 18:58:13 Is there a way to make a difference between applications that ain't installed and applications that havent been loaded yet? (Applications on sd-card during boot in android 2.3) Mar 14 18:58:33 lol Mar 14 18:58:34 readme: some classes are trying to override its superclasses methods (which exist) but the ide tells me to remove the @override annotation Mar 14 18:58:36 and now it crashed Mar 14 18:58:47 out of memory exception in eclipse, several problems. meh Mar 14 18:59:07 Zooklubba: http://www.componentowl.com/blog/2012/02/zen-coder-vs-distraction-junkie/ Mar 14 18:59:24 "What you do when compiling can ruin your life" Mar 14 18:59:55 oooh Mar 14 18:59:56 bassrael: right click, project properties, java compiler, compiler compliance level -> 1.6 + build clean Mar 14 19:00:03 readme: https://dl.dropbox.com/u/5264125/Captured/hgHkn.png \o/ Mar 14 19:00:27 Zooklubba: how much ram you have Mar 14 19:00:38 8GB Mar 14 19:00:47 oh no =O Mar 14 19:01:00 lolwat, readme Mar 14 19:01:04 bassrael: did you do it? Mar 14 19:01:08 your crystal ball is awesome Mar 14 19:01:13 thanks :) Mar 14 19:01:52 how did you know? Mar 14 19:01:56 ive been there Mar 14 19:02:00 (thanks a lot, btw lol) Mar 14 19:02:03 Zooklubba: you can change eclipse' heap size Mar 14 19:02:13 http://wiki.eclipse.org/FAQ_How_do_I_increase_the_heap_size_available_to_Eclipse%3F Mar 14 19:02:16 I did once a while back, thought it was allowed to be huge Mar 14 19:02:21 ah Mar 14 19:02:24 maybe it can't handle all the heap Mar 14 19:02:26 Havent encountered this problem Mar 14 19:02:35 i have Mar 14 19:02:36 well I did months ago Mar 14 19:02:43 Like 3 times or someting similar Mar 14 19:02:55 I haven't got that problem since I was working on this project with way too many libraries Mar 14 19:03:15 and someone pulled in a bunch of source that should have been a jar and it was building every time :| Mar 14 19:05:58 I want to use a Gesture, like Swipe in my app. Does the SDK offer built in ones like Swipe or do I really have to fire up the emulator and create my own? Mar 14 19:06:14 gho5t: swipe is built-in Mar 14 19:06:23 ok great Mar 14 19:07:21 gho5t: http://www.vogella.de/articles/AndroidGestures/article.html Mar 14 19:07:24 good start for you Mar 14 19:07:56 yeah I have that up Mar 14 19:08:02 he goes tthrough the process of creating the gestures Mar 14 19:08:11 like most of the other articles i found Mar 14 19:08:15 which is confusing Mar 14 19:08:27 why is it confusing? Mar 14 19:08:27 if you just want to use the native ones Mar 14 19:08:31 if you just want to use the native ones Mar 14 19:08:54 gho5t: ahh ok I read through your question too fast, sorry Mar 14 19:14:16 can one add a textview programmatically to be between 2 other textviews? Mar 14 19:16:27 yes Mar 14 19:16:44 I guess what I don't understand is how do I add it between other elements? Mar 14 19:16:44 can two add a textview programmatically to be between 2 other textviews? Mar 14 19:16:55 It seems if the container is a linearlayout... there are no options? Mar 14 19:16:58 how do you add it not between two other elements? Mar 14 19:17:18 Pass the index to addView Mar 14 19:17:20 ok, I don't understand the questions Mar 14 19:17:29 oh, index Mar 14 19:17:37 * DammitJim googles index... thanks Mar 14 19:17:52 dammit Mar 14 19:24:39 https://play.google.com/store/apps/details?id=com.szlab.solarcharger love it Mar 14 19:25:29 how does it work? Mar 14 19:25:58 it fools less inteligent android users that your phone is turbocharged Mar 14 19:26:04 It doesn't. It's just a proof that loads of people doesn't read the description Mar 14 19:26:13 does OpenGL es 2.0 work well across all 2.2+ devices? Mar 14 19:26:24 MUST DOWNLOAD ! Mar 14 19:26:35 Zooklubba: class Mar 14 19:26:47 thats just given me a great idea :) Mar 14 19:27:05 what? Do I get a piece of the action ;)? Mar 14 19:27:31 lol Mar 14 19:27:32 Zooklubba: that is, they don't click the "read more" part Mar 14 19:27:43 Zooklubba: also a lot of people like to be in on the joke Mar 14 19:28:43 yeah Mar 14 19:30:14 Zooklubba: the review by harsh is just phenomenal Mar 14 19:30:38 Zooklubba: "Tis app s waste..... D developer wants tis app 2 just cum no 1.... They r makin fool out of tem.... Time waste app..... Don't download......If u download ten as soon as u open d app....Press help...U'll cum 2 know d truth......They temself r acceptin tat its wrong....!!!!! Ratin tat 1 star because cant write comment wit out givin star….:(;(;(:(" Mar 14 19:30:56 uh, wtf - the next iteration 15-macbook will be like the air, and w/o an ethernet port. fuuu Mar 14 19:31:23 g00s: they'll probably sell you an adapter it you want ethernet :P Mar 14 19:32:17 do the pc ultra portables have ethernet ports ? Mar 14 19:32:18 good night everying, already late down here :) Mar 14 19:32:23 thanks again for your help readme Mar 14 19:32:25 byebye Mar 14 19:37:21 g00s, yes Mar 14 19:37:39 herriojr, I laughed so hard when I read that one Mar 14 19:37:40 fucking apple Mar 14 19:37:55 g00s, a rumor or is that a fact now_ Mar 14 19:38:17 i would say rumor. Mar 14 19:42:09 hey there, can anyone tell me where the ICS music app saves the playlists? Mar 14 19:42:56 fuck the GS2 Mar 14 19:42:57 holy Mar 14 19:42:58 crap Mar 14 19:43:02 bug after bug after bug Mar 14 19:43:03 a query to ediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI gives me no rows :/ Mar 14 19:43:21 steveeJ: yeah, they basically stole all that content away from the provider when they invented Google Music Mar 14 19:43:42 so irritating. google didn't follow their own platform objectives. Mar 14 19:44:26 it would have been trivial to factor google music in two pieces, one remaining open source, the other providing all the sync magic for google music. Mar 14 19:44:39 the open source side still contributing to the standard media store too Mar 14 19:44:46 *sigh*, google... Mar 14 19:46:35 hi, somebody got dalvikplugin.apk (which is needed to run java applets)? tried to build it myself, but source seems broken... Mar 14 19:47:10 freemind: what about it is broken Mar 14 19:47:38 readme, just a second :) Mar 14 19:47:38 does this work for putting spaces in strings? About Mar 14 19:48:29 readme, please take a look here: http://pastebin.com/BJeMKxsn Mar 14 19:49:30 Is it possible to update the music player after adding more songs so that they show up in the play list -- other than rebooting that is? Mar 14 19:49:54 my search-fu isn't finding the answer Mar 14 19:50:21 readme, maybe u got that precompiled dalvikplugin.apk? I cannot find it anywhere :( Mar 14 19:50:24 In 2.3 Mar 14 19:50:25 would be enough for me Mar 14 19:50:55 it looks like you are missing a library Mar 14 19:51:04 starlon: you need to have the mediascanner run again Mar 14 19:51:09 not sure offhand how you can force that Mar 14 19:51:15 enable usb storage, then disconnect? Mar 14 19:51:46 every time someone comes in here asking for random binaries, I'm going to start giving them APKs which nuke /mnt/sdcard Mar 14 19:51:51 readme, okay? but android itself builds successfully. I followed the build instructions from the developer: https://github.com/mehrvarz/dalvikplugin Mar 14 19:51:57 lol evancharlton , dont be evil Mar 14 19:52:14 idk if you got the memo but "don't be evil" is over Mar 14 19:52:18 it's pure evil Mar 14 19:53:07 what's the sexiest way to deal with JSON these days on Android? Mar 14 19:53:18 orospakr: with the json class? Mar 14 19:53:32 in org.json? okay. Mar 14 19:53:47 lov: Thanks. I'll do some more searching. Mar 14 19:54:27 VJTachyon, I was wondering if gson would pop up in the replies. Mar 14 19:54:47 hmm, curios about this one. I have a layout i'm creating which had a grid in the middle. I can make it fairly easily using relativeLayout, just putting the elements together with no margin... but surely there is a grid layout for a reason, is there any advantage to me using it? Mar 14 19:55:00 orospakr: jackson Mar 14 19:55:23 jackson is like twice as fast as org.json or gson Mar 14 19:55:39 reading about it now, thanks. :) Mar 14 19:56:03 evancharlton, u ment my question was random? Mar 14 19:56:06 orospakr: yeah not sure why we didnt use that. I guess it depends if you are converting back into Java objects Mar 14 19:56:14 orospakr: Always just built our own Mar 14 19:56:29 orospakr: converting back may result in a different object Mar 14 20:01:05 freemind: the code in that git repo is very old Mar 14 20:01:20 freemind: i believe the problem is a header file has been renamed Mar 14 20:01:37 anyone know of any tools to find duplicate layouts? Mar 14 20:01:38 i think that this http://dexandroid.googlecode.com/svn/trunk/external/webkit/WebKit/android/plugins/android_npapi.h used to be called ANPSurface_npapi.h Mar 14 20:01:46 like if layout-port/blah.xml is identical to layout-land/blah.xml Mar 14 20:01:52 try including the former, and see if you have any luck, but I can't help any more Mar 14 20:01:59 because I think java applets are atrocious Mar 14 20:02:07 canadiancow|work: does Lint not do that? Mar 14 20:02:19 i think it does for drawables Mar 14 20:02:28 but my intern just found a layout and layout-hdpi file that were the same Mar 14 20:02:46 canadiancow|work: file a feature request on b.android.com Mar 14 20:03:19 what constitutes identical? Mar 14 20:03:24 readme, thank you very much dude - "atrocious" is a nice word Mar 14 20:03:25 same md5? Mar 14 20:03:28 sure Mar 14 20:03:29 need 2 remember that Mar 14 20:03:34 ideally, the same effective contents Mar 14 20:03:41 but i'd settle for byte for byte identical Mar 14 20:04:16 That's an idea for your next plugin :p Mar 14 20:04:28 or jar or whatever Mar 14 20:04:33 oh god Mar 14 20:04:37 :D Mar 14 20:04:38 i mean...it wouldnt be THAT difficult Mar 14 20:04:38 or bash script Mar 14 20:04:47 i still think my app is better than lint Mar 14 20:05:51 readme, any idea how to run java applet in android with other solution? Mar 14 20:06:44 freemind: sure.. install vnc and use a remote vm :D Mar 14 20:06:59 you cannot run java applets in android, period Mar 14 20:07:11 pfew Mar 14 20:07:14 do the right thing and rewrite it as a nice app... Mar 14 20:07:30 ok readme, maybe i will do that. fck! Mar 14 20:08:06 you might be sitting on an opportunity. Mar 14 20:08:13 if the app is so good that you'd use a java applet Mar 14 20:08:52 its kvm ip console Mar 14 20:09:02 they usally use java to deploy the client Mar 14 20:14:51 hi,it is possible get color from xml resources in Activity class? Mar 14 20:16:05 rtfm Mar 14 20:16:13 http://d.android.com Mar 14 20:16:35 * freemind slaps canadiancow|work Mar 14 20:16:41 orly Mar 14 20:16:44 * readme kicks freemind Mar 14 20:16:49 lol Mar 14 20:16:51 * freemind hugs readme Mar 14 20:16:53 lol Mar 14 20:17:00 :) Mar 14 20:17:11 * canadiancow|work pokes ctate to REALLY kick freemind Mar 14 20:17:15 sup? Mar 14 20:17:20 or evancharlton :D Mar 14 20:17:29 he slapped me :( Mar 14 20:17:32 oh Mar 14 20:17:35 <3 Mar 14 20:17:35 * VJTachyon sets mode +b freemind Mar 14 20:17:42 u were angry Mar 14 20:17:43 oh crap Mar 14 20:17:56 dun dun dun Mar 14 20:17:58 sorry, chanserv just took like 30 seconds to respond Mar 14 20:18:03 LOL Mar 14 20:18:14 * freemind sets mode +b *!VJTachyon@* Mar 14 20:18:16 I swear I'm going to +b ev*!*@* Mar 14 20:18:16 lol autocomplete Mar 14 20:18:19 you forgot to sset mode +o on me Mar 14 20:18:30 VJTachyon, u forgot hostmask :p Mar 14 20:18:42 freemind: wasnt really that into it :P Mar 14 20:18:46 does freenode support +b ~q Mar 14 20:19:01 try it :P Mar 14 20:19:01 I can try it if you want, canadiancow|work Mar 14 20:19:08 lol Mar 14 20:19:09 lol Mar 14 20:19:11 what does ~q do, though? Mar 14 20:19:16 ^admin Mar 14 20:19:18 no wait Mar 14 20:19:20 founder Mar 14 20:19:37 oh, that's +F in the chanserv access lists Mar 14 20:19:38 simply. complicated. Mar 14 20:19:42 no Mar 14 20:19:58 lol Mar 14 20:20:08 /mode #android-dev +b ~q:canadiancow*!*@* Mar 14 20:20:11 i think Mar 14 20:20:15 my google isnt working so i cnat verify Mar 14 20:20:24 it essentially sets mode +m on just that one person Mar 14 20:20:27 so they can still join, but not talk Mar 14 20:20:29 oh, that? Mar 14 20:20:30 +q Mar 14 20:20:31 Yeah, try that Mar 14 20:20:36 not +q Mar 14 20:20:38 +b ~q Mar 14 20:20:39 Definitely try that Mar 14 20:20:45 right, that's +q Mar 14 20:20:54 have fun, canadiancow|work Mar 14 20:21:02 What exactly does "Note that this method should only be used with Intent protocols that are defined to return a result." mean in the startActivityForResult() method? Right after that it explains that you'll get a result back immediately if not, and that's what's happening to me. Mar 14 20:21:03 * freemind throws a coke 2 readme Mar 14 20:21:04 <_lpc> anyone used the arm toolchain can give me some help http://pastebin.com/DJVWPBGN Mar 14 20:21:18 hmm...its different on unreal ircd Mar 14 20:21:24 freemind: sorry, I don't drink coke :( can I get powder form instead Mar 14 20:21:27 canadiancow|work: yeah, every ircd is different :( Mar 14 20:21:33 they're confuzzling^ Mar 14 20:21:33 lol readme Mar 14 20:21:40 hey evancharlton, wanna give me permanent +v? :) Mar 14 20:21:47 its healthier Mar 14 20:22:20 sha1sum: it means that if you use startActivityForResult() but the callee doesn't know it's supposed to return a result, it won't work how you want it to work. Mar 14 20:22:23 for your teeth readme? Mar 14 20:22:42 freemind: for your entire body, HFCS is horrible stuff Mar 14 20:22:43 canadiancow|work: I think I only have +o in here; I can't modify the access list Mar 14 20:22:47 there is still phosphor acid inside, readme Mar 14 20:22:48 evancharlton: okay, so how do I indicate that in the child intent? Mar 14 20:22:49 aww Mar 14 20:22:52 +% Mar 14 20:22:55 I have cut all hfcs from my diet Mar 14 20:22:59 sha1sum: you ... don't. Mar 14 20:23:08 readme: you can get cane sugar code Mar 14 20:23:08 readme, HFCS? Mar 14 20:23:10 coke* Mar 14 20:23:11 VJTachyon, freenode doesnt have +h Mar 14 20:23:18 i kno Mar 14 20:23:40 okay lets just voice the whole room Mar 14 20:23:51 evancharlton: that's cool.. I cut sugar too though. It's poison and causes most of the diseases that alcohol does. Mar 14 20:23:56 readme, back to the java applet thing... do YOU use vnc with remote-vm for it? cant believe there no easier way Mar 14 20:24:02 * VJTachyon <3 alcohol Mar 14 20:24:03 I'll take sugar in natural form, like the fructose in a piece of fruit. Mar 14 20:24:03 evancharlton: so, the child intent is called using startActivityWithResult(), and then when I tap a button, I have the following code: http://pastie.org/3596155 -- and I'm still getting a result immediately when the activity is called. Mar 14 20:24:40 freemind: i would have trouble getting myself to use a java applet if someone put a gun to my head and forced me to Mar 14 20:24:45 evancharlton: any of umdk1d3, morrildl, SanMehat, romainguy can do it ;) Mar 14 20:25:15 yeah, I gotta tell san too hook me up with +F since he's not around anymore Mar 14 20:25:44 readme, think about your server is offline and your only way is this kvm java console Mar 14 20:25:46 hey, how does one implement the section headers seen in http://developer.android.com/design/media/metrics_forms.png ? Mar 14 20:25:54 evancharlton, any of those guys can do it :P Mar 14 20:26:09 freemind: isn't there some kvm app on the market that can do this? Mar 14 20:26:22 maybe someone in #android uses one Mar 14 20:26:29 evancharlton: What's happening to me is pretty much the next part of the paragraph: "In other protocols (such as ACTION_MAIN or ACTION_VIEW), you may not get the result when you expect. For example, if the activity you are launching uses the singleTask launch mode, it will not run in your task and thus you will immediately receive a cancel result." Mar 14 20:27:04 evancharlton: I have no intent-filter tag in the manifest and am using no ACTION flags on the intent that's launched with startActivityWithResult() Mar 14 20:27:45 it depends on the manufacturer , but they all use java - never seen one without it (easiest way) Mar 14 20:27:50 @readme Mar 14 20:28:02 but thank you very much for your nice support readme :) Mar 14 20:28:13 freemind this isn't twitter Mar 14 20:28:29 orly cow? :) Mar 14 20:28:41 denial aint just a river in egypt, canadiancow|work Mar 14 20:28:50 wut Mar 14 20:28:59 o.O Mar 14 20:29:04 that's...not...funny Mar 14 20:29:06 XD Mar 14 20:29:08 It doesn't really work as well in text Mar 14 20:29:28 ack Mar 14 20:29:55 Yes it does Mar 14 20:30:08 its karl marx btw Mar 14 20:43:24 hm, lumia 900 @ at&t for $99 Mar 14 20:43:53 hi ctate Mar 14 20:43:59 with a two-year contract, I assume? Mar 14 20:44:06 contracts are for suckers :( Mar 14 20:44:07 yeah :( Mar 14 20:44:32 canadiancow|work: you're not on a contract with your carrier? Mar 14 20:44:39 nope Mar 14 20:44:49 http://www.windmobile.ca/en/Pages/Holiday-Miracle.aspx Mar 14 20:44:54 i ahve that Mar 14 20:44:55 40/month Mar 14 20:44:57 unlimited everything Mar 14 20:44:58 no contract Mar 14 20:45:05 =O Mar 14 20:45:10 :O indeed Mar 14 20:45:13 ulimited bw? Mar 14 20:45:15 g00s: Got a link? Mar 14 20:45:29 rapuckett: http://www.theverge.com/2012/1/25/2732498/nokia-lumia-900-99-99-att-rumor Mar 14 20:45:29 at 5GB they "reserve the right to throttle you" Mar 14 20:45:37 but it generally doesnt happen unless you're REALLY abusing it Mar 14 20:45:46 like if you do 6GB spread out over the month, you're fine Mar 14 20:45:47 yeah 5gb is a lot anyway Mar 14 20:45:51 for an android phone Mar 14 20:45:52 if you do 6GB in the first day of a billing cycle... Mar 14 20:46:05 i wish i could just get a data plan w/o voice Mar 14 20:46:23 g00s, it would certainly be ideal Mar 14 20:46:27 There's no such thing where you live? Mar 14 20:46:35 especially on lte, voip is so practical Mar 14 20:46:45 latency is quite low Mar 14 20:46:52 ping times as low as 20ms Mar 14 20:46:59 I think the last I saw was €9 for 9GB. Mar 14 20:47:09 lucky eu people Mar 14 20:47:24 My old plan was just data Mar 14 20:47:42 Few months til I move back to that, just gotta wait til contract is up Mar 14 20:48:09 g00s: i've got your free data plan right here. :) http://www.wikihow.com/Break-WEP-Encryption Mar 14 20:48:10 * g00s has no contract or service at all at the moment, just uses Skype :) Mar 14 20:48:16 neekers: heh Mar 14 20:48:33 what about 911? g00s? Mar 14 20:48:45 vil33: wit about it :( Mar 14 20:48:53 i just die, thats all Mar 14 20:48:57 hehehe Mar 14 20:49:02 ah makes sense Mar 14 20:49:09 sendTextMessage sends two identical messages on each call, any ideas? Mar 14 20:49:10 :) Mar 14 20:49:19 you can always make emergency calls Mar 14 20:49:27 HAPPY PI DAY Mar 14 20:49:37 ^please, not again >.< Mar 14 20:49:43 wut Mar 14 20:49:57 He's a Tau-ist. Mar 14 20:50:09 hm? Mar 14 20:50:40 http://spikedmath.com/ Mar 14 20:51:02 hey rokk Mar 14 20:51:16 lov, hey! :) Mar 14 20:51:22 did you say that the phone who the text message goes to Mar 14 20:51:27 does that phone actually get two text messages? Mar 14 20:51:33 yes it gets two Mar 14 20:51:39 awesome Mar 14 20:51:44 haha nah Mar 14 20:51:54 and you verified that only one call to the SmsManager is actually made? Mar 14 20:51:59 yes Mar 14 20:52:06 congrats on finding an oem specific bug Mar 14 20:52:13 feel free to file a testcase on b.android.com Mar 14 20:52:29 since this is a "you broke the apis" bug, an ota fix will be rushed out in a couple months. Mar 14 20:52:31 ah ok...so nothing else to do? Mar 14 20:52:49 test on a different device (preferably by another manufacturer altogether) and see if you can reproduce Mar 14 20:52:57 I'd love to see a test case for this Mar 14 20:53:37 Hello Mar 14 20:53:38 if you can reproduce on another device altogether, then odds are good that you just messed up :> Mar 14 20:53:38 lov, omw Mar 14 20:54:25 What could be the cause (and solution for) timeout when debugging app on device: "Attempting to connect debugger to ... and then Launch error: Failed to connect to remote VM. Connection timed out." Mar 14 20:54:30 what device are you using to test, by the way? Mar 14 20:54:39 I use Eclipse Mar 14 20:54:43 not you Mar 14 20:55:50 http://abstrusegoose.com/445 Mar 14 20:56:01 lov, Samsung Galaxy s2 with android 4.0 Mar 14 20:56:08 wait Mar 14 20:56:12 a samsung bug? Mar 14 20:56:17 rokk, u r using stockrom? Mar 14 20:56:17 I'm skeptical. Mar 14 20:56:30 wtf irssi Mar 14 20:57:05 using official rom Mar 14 20:57:25 shiped out yesterday Mar 14 20:58:11 [16:56:17] <@evancharlton> I'm skeptical. Mar 14 20:58:12 :) Mar 14 20:58:18 rokk: please file a test case on b.android.com Mar 14 20:58:19 NB: evancharlton was being sarcastic there :) Mar 14 20:58:35 there are still two open isuses on b.android.com against the galaxy nexus not adhering to the CDD Mar 14 20:58:40 this is something that should be added to the CTS to make sure that it gets verified on future releases Mar 14 20:58:42 so...im not hopeful Mar 14 20:58:44 note also that SMS bugs can be *carrier* specific Mar 14 20:58:46 canadiancow|work: hmm? Mar 14 20:58:55 evancharlton, will do Mar 14 20:59:12 http://code.google.com/p/android/issues/detail?id=23659 Mar 14 20:59:16 http://code.google.com/p/android/issues/detail?id=24136 Mar 14 20:59:28 samsung replied to the first one, but the reply has since been deleted Mar 14 20:59:54 Comment #3 on issue 23659 by goodsc....@samsung.com: maguro will never connect to HSPA+ \n http://code.google.com/p/android/issues/detail?id=23659 \n Proxima HSPA RIL returns NETWORK_TYPE_HSPA when device is connected to HSPA+. It will be changed to return NETWORK_TYPE_HSPAP. BTW, radio is connected to HSPA+ well. Mar 14 21:01:55 dont you love when you find some O(n) code that is much better done O(1) ? Mar 14 21:02:05 like, say, iterating through a map when you have the key? Mar 14 21:02:09 heh Mar 14 21:02:24 in my case it was rewriting to O(n) Mar 14 21:02:36 from the naive version that was O(n*m) Mar 14 21:02:39 LOL Mar 14 21:02:42 yea we had one of those too Mar 14 21:02:45 :) Mar 14 21:03:14 canadiancow|work: in your case, HashMap or regular map? Mar 14 21:03:15 im actually trying to track down a different bug, but this was in the way Mar 14 21:03:25 well a HashMap is a Map... Mar 14 21:03:27 because if it's not a HashMap then you're going to O(log n) instead of O(1) Mar 14 21:03:45 its a HashMap Mar 14 21:03:46 regardless Mar 14 21:03:50 we have the key Mar 14 21:03:52 but were iterating Mar 14 21:03:52 good good. Mar 14 21:03:57 bad bad :) Mar 14 21:04:19 * ctate has been known to use maps of maps, too. whee! Mar 14 21:04:27 ive done that Mar 14 21:04:42 im tring to fix a SectionIndexer :( Mar 14 21:04:59 getPositionForSection works fine Mar 14 21:05:01 so the bug must be in getSectionForPosition Mar 14 21:06:31 i made the mistake of drinking from the phandroid fire hose Mar 14 21:06:37 "IDC: Android tablets won’t overtake the iPad until 2016, holding their own for now" Mar 14 21:06:43 thats stupid Mar 14 21:06:44 2016? Mar 14 21:06:50 it also implies that windows will only gain a 1% market share Mar 14 21:06:52 which is ridiculous Mar 14 21:07:03 i thought we were all going to die in 2012 ? Mar 14 21:07:05 also, old news Mar 14 21:07:17 g00s: We did; we just haven't stopped moving yet. Mar 14 21:07:18 lov, works bug-free on HTC Legend and HTC Hero Mar 14 21:07:29 rokk: same SIM card? Mar 14 21:07:44 (also, HTC Hero? rockin' it old-school there, friend. :) ) Mar 14 21:07:58 anyone use bug sense ? http://phandroid.com/2012/03/13/bugsense-must-have-tool-for-android-developers/ Mar 14 21:08:05 ctate, nah. I'll try that. Sec.. Mar 14 21:08:30 One of my friends is thinking of upgrading his htc hero Mar 14 21:08:31 g00s i looked into it before that article came up Mar 14 21:08:32 -.- Mar 14 21:08:39 im considering writing a recommendation to use it in our games Mar 14 21:08:45 canadiancow|work: orly Mar 14 21:08:50 and trying it out first, of course ;) Mar 14 21:09:02 g00s: I use it Mar 14 21:09:15 SimonVT: please do tell ! Mar 14 21:10:03 What do you want to know? :P Mar 14 21:10:19 well, minimally, has your experience with it been positive so far ? Mar 14 21:10:37 Yeah Mar 14 21:10:52 It's very easy to add Mar 14 21:11:01 Can log exceptions you catch Mar 14 21:11:06 Pretty userinterface Mar 14 21:12:18 SimonVT: does it only catch problems that were thrown, or can users create/read/update bugs themselves ? Mar 14 21:12:29 I need to have a circle draw on the screen and a button below. Each time I click the button, I need the circle to redraw the circle. Currently I'm using onDraw of the view, but then I don't get to use layouts on it. Is it possible to create like a "Canvas" object (in which I can draw similarly to onDraw event) on my views? Mar 14 21:12:50 g00s: It's only for exceptions thrown in your app Mar 14 21:13:16 hm. my app has never thrown an exception, so it must be working 100% for everyone, everywhere 9.9 Mar 14 21:13:25 bugsense == test flight crash reports ??? Mar 14 21:14:18 g00s: Hah, yeah.. That's one thing I discovered after adding bugsense.. Noone reports errors through market Mar 14 21:14:45 i'm not seeing the big win, you already get crash reports for your apps. and if you have so many crashes that you need to graph them, YOU HAVE OTHER PROBLEMS. Mar 14 21:15:23 i'm not seeing the big win, >>>you already get crash reports for your apps<<< <-- you really don't :p Mar 14 21:15:25 well, SimonVT uses ABS so i bet he gets a lot of crash reports Mar 14 21:15:29 XD Mar 14 21:15:32 * g00s runs Mar 14 21:15:56 SimonVT: havent looked for a while, did that feature go away? Mar 14 21:16:11 neekers: It didn't go away, but noone reports them Mar 14 21:16:18 Everyone just presses force close Mar 14 21:16:25 oh Mar 14 21:16:50 well, hopefully testflightapp.com will come to android. the best damn thing since sliced bread. Mar 14 21:17:53 [17:15:23] i'm not seeing the big win, >>>you already get crash reports for your apps<<< <-- you really don't :p Mar 14 21:17:57 you have no idea how true this is Mar 14 21:18:25 if we see something happen like 50 times in a week, which might be out of 5 million users, it becomes a top priority Mar 14 21:18:30 becuase if 50 per week REPORT IT Mar 14 21:18:35 it's probably happening to 20000 Mar 14 21:18:40 don't write apps that crash. simple. :) Mar 14 21:19:00 that advice is only valid if you're the sole developer Mar 14 21:19:04 and then, it's not helpful :P Mar 14 21:19:21 neekers: thats easy, do everything in xml and just forgo java altogether. if everything is declarative, it can't crash ! Mar 14 21:19:30 I've discovered lots of bugs that only happen in rare cases cus I use bugsense.. None were reported to market console Mar 14 21:19:34 after all, thats how hello world is done :) Mar 14 21:19:46 html FTW. Mar 14 21:19:48 just use app inventor Mar 14 21:19:50 ok SimonVT you've convinced me Mar 14 21:19:53 i'm writing a proposal Mar 14 21:19:54 SimonVT: good to know, i guess i should look into it Mar 14 21:20:39 ^_^ Mar 14 21:20:56 SimonVT: what app are you testing it with>? Mar 14 21:21:11 All of them! Mar 14 21:21:31 help me understand actionbars more... should every app designed for ICS have an actionbar? Mar 14 21:21:45 what if it is a rich multimedia app written with opengl? Mar 14 21:21:52 Hi again :) ... Mar 14 21:22:31 SimonVT: i'm confused. i asked you a year ago what your plans were and you said pursuing your degree and getting into that field. but it seems like you are full time/hard core android. did your plans change? Mar 14 21:22:36 readme: if you aren't doing any UI that is menu-like or involves contextual actions, then it's not obvious that you'd need an action bar Mar 14 21:23:16 So I've installed the Android SDK, installed my Android 3.2 platform tools, installed my USB drivers ... but when I go do "adb install myapp.apk" ... I keep getting the error "adb: command not found" ... what am I doing wrong? Mar 14 21:23:34 you haven't put the 'adb' binary's directory in your path Mar 14 21:23:42 your platform-tools folder is not in your PATH system/shell variable. Mar 14 21:24:33 neekers: Oh, no no. Writing my final project right now Mar 14 21:24:41 maraz: it's under my /home/[my username]/SDK/ folder Mar 14 21:24:45 Along with two other guys Mar 14 21:25:02 ctate: I see.. I'll ask again when the app is written so you guys can at least look at it and decide whether it should Mar 14 21:25:08 SimonVT: with an android app as part of the final project? :) Mar 14 21:25:19 neekers: I'll have my degree at the end of june Mar 14 21:25:25 Gabs: well, export PATH=$PATH:/path/to/adb Mar 14 21:25:26 neekers: Nope, still just a hobby Mar 14 21:25:30 heh Mar 14 21:25:41 Gabs: and that should be the directory path without the adb binary Mar 14 21:25:48 well, good for you. :) Mar 14 21:26:02 neekers: Project title: Reactive power optimization in the transmission grid ... far from Android :p Mar 14 21:26:11 maraz: ok I'm confused - I don't understand what you told me (I really, really suck at all this command line stuff) Mar 14 21:26:35 SimonVT: it wouldn't be hard to work an android app into that... :) Mar 14 21:26:54 hey all. Mar 14 21:27:10 some kind app to monitor the health of your grid, Mar 14 21:27:24 Does anyone know how google oem-updates an encrypted device? Mar 14 21:27:37 lonelyDonut: Nope. Mar 14 21:27:43 Gabs: ideally, you should look at your ~/.bash_profile and add the export command at the end (or just append your path to the end of an existing command). Mar 14 21:27:48 Loonacy: screw you. Mar 14 21:27:49 neekers: Well, there's a bit of programming Mar 14 21:28:09 and you are just the man to do it. Mar 14 21:28:33 same SIM, still same deal Mar 14 21:28:34 maraz: ok how do I look at my ~/.bash_profile? I have no clue what that is Mar 14 21:28:48 <-- Windows user, completely lost on Mac/Linux Mar 14 21:28:55 neekers: They use a computer program to simulate the entire transmission grid. We have to discuss the different kinds of equipment for reactive power compensation, and write a script for that program that can identify where it would be most effective to apply the compensation Mar 14 21:29:23 Gabs: cd into your android sdk Mar 14 21:29:29 find . -iname 'adb' Mar 14 21:29:32 note the location Mar 14 21:29:37 pwd (put that location here) Mar 14 21:29:40 copy/paste the whole thing Mar 14 21:29:48 there is your adb location :> Mar 14 21:29:57 SimonVT: create a monitoring app and sell it. Mar 14 21:30:07 well, if you think its worth the effort Mar 14 21:31:37 Don't think that's feasible Mar 14 21:32:34 SimonVT: if we have that big sunspot barf a CME you'll give us a heads up and tell us what to do , right ? Mar 14 21:32:53 g00s: ABS projects against sunspots Mar 14 21:32:58 haha Mar 14 21:33:05 =) Mar 14 21:33:18 * g00s wonders if he should consider ABS Mar 14 21:37:36 g00s, think of it this way, you'll probably only need to use abs for a year or two if jw were to be hit by a bus Mar 14 21:37:48 g00s, at which point you'll be able to switch over to native actionbar stuff without it Mar 14 21:37:58 and it's in a suitable state now that it can be used like that Mar 14 21:38:44 a year or two might be a bit optimistic ;) Mar 14 21:39:23 hehe Mar 14 21:39:37 gingerbread had >50% share after 1 year Mar 14 21:39:48 ics at 50% after a year isn't very optimistic Mar 14 21:40:10 not to mention, old devices will be sunset after ~2 years anyway Mar 14 21:41:31 can a oem use an old version of android, say 2.2, nowadays - and still pass the CTS & get the market and other google apps ? Mar 14 21:41:55 I suppose it's possible Mar 14 21:42:05 dunno what google's policy is Mar 14 21:42:23 i thought that in developing markets with hw having lower end specs, 2.2 was favorable Mar 14 21:42:41 i read not too long ago there were going to be new 2.2 handsets this year Mar 14 21:42:48 the question is, whether they have the market or not Mar 14 21:43:15 why wouldn't they Mar 14 21:43:16 ? Mar 14 21:43:19 race to the bottom (tm). Mar 14 21:43:29 if ics worked as well as 2.2 on low end hardware, that would have been a very good Mar 14 21:43:35 it seems to me that if they pass CTS and conform to the CDD, it's not a problem Mar 14 21:43:37 Hellote! Mar 14 21:44:17 that makes android look like shit Mar 14 21:44:18 Quick question: I was looking at http://developer.android.com/images/activity_lifecycle.png and I don't get the difference between onRestart() and when it's called and onCreate() and when it's called. Mar 14 21:44:28 buying a device now and finding out it's THREE MAJOR VERSIONS out of date? Mar 14 21:44:35 IKR Mar 14 21:44:46 I bought one and it's on 2.3 or something Mar 14 21:44:53 ಠ_ಠ Mar 14 21:44:54 canadiancow|work: well, of course this is low end hardware for emerging markets Mar 14 21:44:57 nvm g2g Mar 14 21:45:09 ok let me rephrase, you CAN buy a device now running 2.2 Mar 14 21:45:14 like $75 usd bom total cost Mar 14 21:46:15 seems like one of you folks should email compatibility@android.com and ask Mar 14 21:46:55 Hi Mar 14 21:47:03 what is the default padding in an android EditTextPreference dialog around the EditText? Mar 14 21:47:20 I came back Mar 14 21:47:39 when is onRestart called as opposed to onCreate? Mar 14 21:48:16 :c Mar 14 21:48:32 benzrf: hit the home button instead of finish() your activity Mar 14 21:49:55 So... onCreate is called when it got manually stopped last time, whereas onRestart is when you switch apps and out exits while you're away? Mar 14 21:50:21 benzrf: so, when you open another activity, your current activity goes into onStop() Mar 14 21:50:38 if it doesn't get killed when you enter back into your activity, it will go through onRestart() Mar 14 21:50:44 *before you enter Mar 14 21:50:57 Oh, ok Mar 14 21:51:16 hi Mar 14 21:51:28 interesting http://techblog.netflix.com/2012/03/testing-netflix-on-android.html Mar 14 21:51:29 so you can simulate it yourself by just opening an empty activity on top your current one then hitting back Mar 14 21:51:46 what is a good hardware for anroid development? my target are middle end device so android 2.2 480x320 it is ok Mar 14 21:51:46 Ok... Mar 14 21:51:48 but my pc Mar 14 21:51:51 dual core 4gb Mar 14 21:51:55 run emulator very slow Mar 14 21:51:57 very very slow Mar 14 21:52:04 SimonVT: i just sent off an emial about bugsense :0 Mar 14 21:52:08 IKR Mar 14 21:52:19 canadiancow|work: =) Mar 14 21:52:25 micheg: the 2.x emulators work fine on my PC with the same specs, but 3.x/4.x are not very fast, but still tolerable Mar 14 21:52:30 s/:0/:)/ Mar 14 21:52:32 oh wait Mar 14 21:52:34 "We have representatives that support each major operating system by make in addition to supporting custom ROMs (most notably CM7, CM9)." Mar 14 21:52:35 I'm sorry I have a quad core Mar 14 21:52:37 micheg: how long do you expect your development to take Mar 14 21:52:39 not dual Mar 14 21:52:48 Methinks you can run it on your actual Android Mar 14 21:52:55 If you plug it in Mar 14 21:52:56 micheg: because it would be possible that by the time you're finished, the best hardware will be the middle Mar 14 21:53:00 from 6month to a year Mar 14 21:53:02 for work too Mar 14 21:53:13 i have 2ghz dual core Mar 14 21:53:15 4gb ram Mar 14 21:53:18 micheg: phones usually only last for 2 years Mar 14 21:53:20 ubuntu 32 bit with pae kernel Mar 14 21:53:29 micheg: due to people trading them in Mar 14 21:53:35 Ttyl Mar 14 21:53:57 i wanna target 2.2 device for now and then device like galaxy s2 Mar 14 21:54:05 if it is all ok Mar 14 21:54:09 micheg: you *need* a device Mar 14 21:54:16 i have a samsung Mar 14 21:54:21 Is there no way to organise image resources inside the res folders? No way to use folders here? Mar 14 21:54:25 galaxy next Mar 14 21:54:31 hardware like iphone 3gs Mar 14 21:54:31 then you're set -- i've been developing with similar specs for 2.x phones for a while Mar 14 21:54:41 micheg: do you check snapshot when you use the emulator? Mar 14 21:54:47 you develop direct on hardare? Mar 14 21:54:55 snapshot? Mar 14 21:55:05 micheg, I'd also recommend developing using hardware, it's so much faster Mar 14 21:55:09 NutterzUK: Nope Mar 14 21:55:12 o.O Mar 14 21:55:13 ok Mar 14 21:55:26 michreg, can just plug it in and run it, and keep installing it as many times as you need within seconds Mar 14 21:55:46 ok tomorrow i try! Mar 14 21:55:54 michreg: and that's from me using an i7 and a SSD with 24gb ram lol Mar 14 21:55:59 micheg: I use the emulator quite a bit. Mar 14 21:56:00 michreg: still slow :( Mar 14 21:56:03 Snuupy more Pi day stuff, just for you: http://spikedmath.com/491.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+SpikedMath+%28Spiked+Math%29 Mar 14 21:56:13 :D Mar 14 21:56:15 LOL Mar 14 21:56:33 micheg: i hope you aren't running one of the bloated desktops that sucks all your ram away :) Mar 14 21:56:45 i use windowmaker Mar 14 21:56:48 t0mless: looool so many puns XD Mar 14 21:56:50 12mega Mar 14 21:56:53 and sublime text 2 Mar 14 21:57:00 64mega in total Mar 14 21:57:02 ;-) Mar 14 22:01:51 g00s, if you're making a paid app, do you really care to be supporting emerging markets? if it's a low end device, what is the likelihood of the low-end device also buying your app and/or service Mar 14 22:02:21 like for nextflix, there's really no reason to support a low-end device Mar 14 22:02:31 considering the experience is terrible and unusable Mar 14 22:02:42 oh, i was just interested to see they support CM Mar 14 22:03:16 no real reason not to Mar 14 22:03:24 since it works roughly about the same Mar 14 22:14:49 If you could pick to either bundle a few (read: 80ish) images with the app, or make an image pack for it - which would you go with? Mar 14 22:16:26 the premise of your question doesn't make sense Mar 14 22:16:38 rather, you're not giving us enough information to make an informed opinion Mar 14 22:17:52 evancharlton: Well, I'll be displaying a lot of images in a ListView (in-fact, all the 80ish images). However, bundling these 80 images with the app would make the .apk considerably larger Mar 14 22:18:05 but easier for me, lol. Mar 14 22:18:29 However, each update will need the user to "redownload" the heavy apk Mar 14 22:19:25 n20: might be relevant: http://developer.android.com/guide/market/expansion-files.html Mar 14 22:20:04 cool, new feature? neat Mar 14 22:20:56 monkey ball 2 Mar 14 22:21:01 thats all I have to say Mar 14 22:21:05 fuck all yall Mar 14 22:21:07 evancharlton: Yeah, I've seen that one - how would I get a drawable resource from an expansion? :-) Mar 14 22:21:38 SimonVT: thanks - sorry for late reply Mar 14 22:21:52 root66: I could just have an imagepack to download, but then I'd have to make sure that the filenames are 100% correct towards the website (which I'm not in control of). Mar 14 22:21:59 The images have to change w each revision? Mar 14 22:22:01 Oops. Mar 14 22:22:03 evancharlton: ^ Mar 14 22:22:12 phokus: Hopefully not. Mar 14 22:22:36 phokus: Would probably be more images being added to the apk as they're added to the website. Mar 14 22:22:51 You could use a script to selectively find/replace and use a web store to host them Mar 14 22:22:55 phokus: But other than that, no - I don't expect them to change Mar 14 22:23:11 Or if you have the bandwidth, load them from the remote store dynamically Mar 14 22:23:33 If you use the same names you can just overwrite Mar 14 22:24:01 phokus: I was thinking of something inbetween Mar 14 22:24:21 20 years from now your android phone is going to be in your attic as if it was a commodore 64 Mar 14 22:24:29 phokus: Downloading an imagepack, zipping it up to the SD and making sure that they're correctly named Mar 14 22:24:31 just a thought Mar 14 22:24:32 readme: Hopefully! Mar 14 22:24:35 If yo dont expect them to change, store the files in a folder on /sdcard that isnt an appdata folder Mar 14 22:25:35 Or if you want to be more proper Mar 14 22:25:35 I think I'm in the getExternalStorageDirectory()-dir Mar 14 22:26:00 Create the store inside /sdcard/Android/data/customfoldername Mar 14 22:26:22 n20: just load it as a BitmapDrawable or whatever Mar 14 22:27:21 Do you need to publish through googleplay to use google's IAP API? Mar 14 22:28:25 evancharlton: Each image would be about 20-30KB (at the moment) Mar 14 22:28:45 n20: so? Mar 14 22:29:04 Im not good at all at the manifest writing-part. I have three intents i have a intent-filter for each how can i write it so it doesent create multiple icons? Mar 14 22:29:10 evancharlton: Which would bump the apk ~2.4mb if I do it the "bundle with the apk"-way Mar 14 22:29:11 kailo: yes Mar 14 22:29:13 hello all Mar 14 22:29:50 n20: again, so? you have the facts; make your decision about whether it's worth it to bloat the APK, use expansion files, or whatever solution you want Mar 14 22:30:12 That space overhead is negligible Mar 14 22:30:13 kailo: yes, I would imagine so Mar 14 22:30:24 evancharlton: does it need to be -downloaded- from the google store, or simply registered? Mar 14 22:30:38 I'm working on a f2p game, but have a deal with a particular publisher who wants to handle the apk distribution elsewhere Mar 14 22:30:45 and I'd rather not go with another IAP platform if possible Mar 14 22:30:47 phokus: I also realized that I'll have a lot more images for another (similar) feature. :( Mar 14 22:31:03 evancharlton: I think I'll use expansion files, seems like a good idea. Mar 14 22:31:07 if I define a class that extends some view, how can I use it in my layout.xml file? I did it like this but it is not working: http://pastie.org/3596954 Mar 14 22:31:19 kailo: I'm not sure, but I would guess that you shouldn't rely on the behavior of it working outside of Google Play-installed Mar 14 22:31:33 gnagno: Mar 14 22:31:55 evancharlton, I tryed like that as well, it's not working Mar 14 22:32:02 n20, 2.4mb who cares Mar 14 22:32:07 There hasnt been very effective piracy prevention implemented... Mar 14 22:32:15 gnagno: please use pastebin.com and paste us the relevant XML and java code Mar 14 22:32:27 So i see play as a liability Mar 14 22:32:32 kailo: Strongly consider what is going to get you the best revenue. Google's app store is still by very far the largest Mar 14 22:32:44 As your publishers likely do Mar 14 22:32:58 phokus: oh ho Mar 14 22:33:10 yes, let us go down the path of "how do we prevent rooted users from using their own device" Mar 14 22:33:23 I too enjoy the idea of adding significant amounts of DRM that only inconvenience paying customers Mar 14 22:33:25 I could be mistaken on their intent; it sounds like they don't actually distribute the apks but have some advertising platform wrapped around google app store Mar 14 22:33:35 Thanks for clarifying Mar 14 22:33:49 evancharlton, here you are: http://pastebin.com/4QieVrwA Mar 14 22:33:57 phokus: there doesn't exist an effective anti-piracy policy Mar 14 22:34:04 no one ever created one Mar 14 22:34:09 Nope Mar 14 22:34:24 As someone who likes to eat and have electric Mar 14 22:34:31 That's a problem Mar 14 22:34:33 at the last ADL I was at they spent some time talking about anti piracy techniques Mar 14 22:34:42 phokus: the best anti-piracy policy I have seen was to make it less interesting to pirate than get legal Mar 14 22:35:01 Question - anyone here ever have a problem connecting a Samsung Android device to a Mac through Samsung Kies? Mar 14 22:35:02 p_l, that's difficult for lots of apps Mar 14 22:35:11 phokus: don't worry too hard about the pirates. The only people you can deter are the casual pirates. The ones who will actively seek out piracy wouldn't buy/use your app anyway Mar 14 22:35:19 which, arguably, Google broke a lot by not making paid apps available immediately to *everyone* they could Mar 14 22:35:30 yeah Mar 14 22:35:42 honestly, the best anti-piracy is to give customers what they want in a reasonable fashion Mar 14 22:35:50 hmm never mind ... after 10 attempts it finally connected Mar 14 22:36:37 the moment I got access to paid market without using Market Access, I went on a shopping spree and ended up replacing most of what I pirated with bought apps, and the remaining pirated stuff got deleted because it wasn't worth buying Mar 14 22:37:07 can someone help me with this code please? I am trying to use a custom view in my xml layout: http://pastebin.com/4QieVrwA Mar 14 22:37:25 the only other time was when I wanted to test several applications but the return policy changed >_> Mar 14 22:37:42 I do infosec so while i address it here from a devs perspective, my real thought process is on mitigating piracy Mar 14 22:38:12 why isn't shouldOverrideUrlLoading called when I do a goBack() ? Mar 14 22:38:21 p_l: i totally agree w you Mar 14 22:38:25 there's really no protection against cracking code if the user owns the device Mar 14 22:38:47 phokus: then you know that the money is on tradeoffs and mitigation Mar 14 22:38:52 I do a lot of work w the 3rd party market app specimens Mar 14 22:39:05 Ive gone on crazy sprees myself Mar 14 22:39:35 If I use an actionbar. Do I need to define the homebutton in every activity I make? Mar 14 22:39:51 probably Mar 14 22:40:14 k Mar 14 22:40:16 phokus: I can say that most people who end up using phones aren't going to pirate, there's simply too much jumping through hoops. What is *still* annoying is the rudimentary featureset of market (I can't sell subscription-based licensing, I can't do mass-purchase on Apps account and have the application available to phones that get connected to that account, and so on) Mar 14 22:40:32 I just figured out to get an actionbar, a listview and make clicking work :) Mar 14 22:40:33 I noticed, coming from the user perspective, that just like i am with ps3 etc games, i play or use it once or twice and then shelf it for good Mar 14 22:42:16 Perhaps a gamefly for apps is in order, using dongles Mar 14 22:43:19 phokus: dongles on phones? u serious? Mar 14 22:43:22 Or a single dongle Mar 14 22:43:49 to do what? software can and will be cracked Mar 14 22:43:55 dongles only help so much Mar 14 22:44:12 and I REALLY doubt an user would buy one if your program isn't the next angry birds Mar 14 22:44:13 dongles? Mar 14 22:44:16 you already have a dongle Mar 14 22:44:16 and even in that case... Mar 14 22:44:18 it's called the phone Mar 14 22:44:18 For software that is worth in excess of $30 or more, it's just logic Mar 14 22:44:24 oh man. Mar 14 22:44:29 lov: except the user controls it Mar 14 22:44:49 phokus: The Games industry is still doing pretty awesome selling PC games at $50/$60 a pop Mar 14 22:44:52 without dongles Mar 14 22:44:59 and with rampant copying Mar 14 22:45:02 phokus: list me 3 pieces of commercial software that weren't cracked Mar 14 22:45:07 phokus: hint: you can't Mar 14 22:45:10 ctate: and? Mar 14 22:45:18 again, the people pirating the games probably wouldn't have bought it anyway Mar 14 22:45:18 miniBill: hmm... I think I got some Mar 14 22:45:25 yeah Mar 14 22:45:31 miniBill: but they are completely "out there" Mar 14 22:45:32 p_l: really? I'm genuinely interested Mar 14 22:45:42 indeed, anything I pirate I never would have bougbht anyway Mar 14 22:45:44 p_l: "out there" == ? Mar 14 22:45:59 miniBill: something you won't see a need to pirate Mar 14 22:46:10 and utterly outside "casual piracy" Mar 14 22:46:15 p_l: can you provide concrete examples? Mar 14 22:46:20 anyone have experience here with implementing a blocking overlay on a particular section of an layout? Basically, I need to display a transparent overlay on top of some buttons (which will block all user input) when my activity gets into a particular state. Mar 14 22:46:36 miniBill: OpenVMS and its layered products Mar 14 22:46:59 seanoshea: use an absolutelayout Mar 14 22:47:16 seanoshea: and place the blocking layer above Mar 14 22:47:30 miniBill: the whole system uses a licensing server, but no one who just wants to play with to learn needs to pirate thanks to an old agreement between DECUS and DEC, which got grandfathered in Mar 14 22:48:13 so, anyone for my webview question? :D Mar 14 22:48:24 I also have been utterly unable to find pirated versions of Allegro Common Lisp and LispWorks Mar 14 22:48:33 miniBill - was thinking of that too, but it looks like AbsoluteLayout has been deprecated Mar 14 22:48:54 (disclaimer: I actually got evaluation license for ACL, fully legal) Mar 14 22:49:10 oh god Mar 14 22:49:13 don't use absolutelayout Mar 14 22:49:13 p_l: you know what I haven't found? Hellbender Mar 14 22:49:19 p_l: (the MS game) Mar 14 22:49:21 use a relativelayout or something Mar 14 22:49:33 lov: for an overlay? Mar 14 22:49:33 you know, looking at this, ones gotta realize that the consumer industry as a whole relies, to a point, on buying something, not using it, and being too lazy to return it. Mar 14 22:49:52 miniBill: for the layout that's going to contain your overlay Mar 14 22:49:57 or 'cancel' it in the case of subscriptions Mar 14 22:49:59 lot - FrameLayout looks like a winner here Mar 14 22:50:18 zomg, demo -> ftp://ftp.microsoft.com/DESKAPPS/GAMES/Public/Hellbender/ Mar 14 22:50:24 lov - yeah, I might just have a FrameLayout with a transparent background Mar 14 22:50:35 and just set absolute values for x, y for it? Mar 14 22:52:39 seanoshea: you should really strongly discourage yourself from using x/y coords Mar 14 22:52:52 you have to support a cornucopia of devices with a variety of resolutions and densities Mar 14 22:52:56 lot - ok (perhaps thats why absolute layout isdeprecated) Mar 14 22:52:59 use relative values Mar 14 22:53:02 yes, that'e EXACTLY why Mar 14 22:53:12 because idiots will make something that looks ok on their device Mar 14 22:53:16 and turns into garbage on anything else Mar 14 22:53:23 lot - ok. I'll give FrameLayout a shot so Mar 14 22:56:27 ... what? Mar 14 22:56:49 don't use absolutelayout ... use framelayout! (advicedog.jpg) Mar 14 22:58:11 Or RelativeLayout! Mar 14 22:59:09 When I have a ListView with 15 items and 15 different layouts. Is a ListView still the way to go? I can barely recycle anything at all, so scrolling is not _that_ smooth. I use getViewTypeCount() where I return 15 and recycle the convertView. But it just doesn't seem smooth to me. Could be that the Layouts withing are very complex. Mar 14 22:59:26 layouts too slow? rewrite in opengles (couragewolf.jpg) Mar 14 22:59:30 haha Mar 14 22:59:41 kakazza: consider what layouts you're using vs what layouts you ought to use Mar 14 22:59:46 see if you can turn 3-4 of them into one layout Mar 14 23:00:20 readme: well done Mar 14 23:00:27 Unlikely. They are really different from each other. Mar 14 23:00:34 kakazza: if you need different layouts then you don't really want a listview Mar 14 23:00:35 :) Mar 14 23:00:48 It's basically a ListView of samples, and each sample is of course different. Mar 14 23:00:54 listviews work best for lists of identical things whose numbers approach infinity Mar 14 23:00:56 evancharlton: What would I use instead? Mar 14 23:01:01 kakazza: scrollview Mar 14 23:01:41 Anything to take care of there? Like recycling, ViewHolder,... in ListView? Mar 14 23:04:19 no Mar 14 23:04:23 Hey guys. I am very very brand new to android development and I have a question about an Idea I want to implement for my application. Basically what I want to do is show messages that are tagged with a specific #hashmark from a specific twitter account and display them in real time on a android app -- how can I get started? Mar 14 23:04:25 because you'll be inflating them all at once Mar 14 23:04:42 kakazza: if you use a listview with different layouts for every item, you're just making a very expensive scrollview Mar 14 23:05:34 Inflating them all at once, and then adding them via .addView() I guess Mar 14 23:07:02 kakazza: or just putting them all into your layout definition file Mar 14 23:07:35 Can I embed them from other .xmls? Mar 14 23:07:36 which if you already have the other ones made Mar 14 23:07:43 tag Mar 14 23:08:05 I was put off by this post: http://stackoverflow.com/questions/4777272/android-listview-with-different-layout-for-each-row which talked about getViewTypeCount. Mar 14 23:08:21 Will try with ScrollView and , thanks. Mar 14 23:09:00 chrome stopped working for me with hte latst update Mar 14 23:09:02 multiple computers Mar 14 23:09:05 it just wont load sites Mar 14 23:09:10 What does it do? Mar 14 23:09:12 Exactly Mar 14 23:10:31 kakazza if you had multiple of a few different layouts, that would make sense Mar 14 23:10:41 but one of lots of different layouts doesn't make sense to do it that way Mar 14 23:11:38 Does it make sense to @Override getViewTypeCount even with larger numbers like 40-50? Mar 14 23:11:50 why so many Mar 14 23:11:53 kakazza: no Mar 14 23:11:56 kakazza: not at all Mar 14 23:12:13 Ok, thanks. Mar 14 23:12:15 kakazza: you really shouldn't have that many different layouts at all, though. What on earth are you doing? Mar 14 23:12:22 :D Mar 14 23:13:09 Basically, I let the user populate the ListView with building blocks. And I have a lot of those building blocks. Think App Inventor or Scratch Style. Mar 14 23:13:47 Scratch http://progopedia.com/static/upload_img/2011/02/18/scratch-camelcase.png Mar 14 23:14:47 For all the experienced android guys: Whats the simplest way to pull specific messages from a twitter account with specific #hashtags and display them neatly on a android application without showing any evidence of it being pulled from twitter? Mar 14 23:15:02 use twitter's api to pull it Mar 14 23:15:06 then display it in a list view Mar 14 23:20:06 How can you find out how many dip a phone has? Mar 14 23:20:09 I'm wondering how much the HTC Wildfire has, to send a test to someone, but I only have layouts for large and xl, how can I find out what that device fits in to? Mar 14 23:20:37 You can check the screen configuration Mar 14 23:20:49 T0mless: where can I check that? Mar 14 23:22:01 hang on Mar 14 23:22:27 if I define a class that extends some view, how can I use it in my layout.xml file? I did it like this but it is not working: http://pastie.org/3596954 Mar 14 23:23:18 Mar 14 23:23:19 gnagno: did you change the package? Mar 14 23:23:31 not Mar 14 23:23:33 I wish my phone could get my tablet's battery life Mar 14 23:23:37 NutterzUK, no... the package is correct Mar 14 23:23:41 damn thing never seems to run out of battery now matter how long I use it for Mar 14 23:23:48 it just goes for days and days and days and days Mar 14 23:24:03 gnagno Mar 14 23:24:30 canadiancow|work, I tryed even like that, but it's not working Mar 14 23:24:43 that's how you do it Mar 14 23:25:47 NutterzUK: boolean res =(ctx.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) Mar 14 23:25:47 >= Configuration.SCREENLAYOUT_SIZE_LARGE; Mar 14 23:25:54 hrm Mar 14 23:25:58 wonder why that did two lines Mar 14 23:26:28 Have you guys dealt with location based application dev? How easy/hard is it to implement that? Like compare current location to a set of addresses etc. Mar 14 23:27:19 Dexx1_: you mean like, geo-contextual apps Mar 14 23:28:26 readme: precisely... I want to do a very basic version of foursquare for some local locations.. but not exactly sure how I would implement such thing Mar 14 23:29:19 Dexx1_: you have the right idea Mar 14 23:29:29 id' use sqlite to store your set of addresses Mar 14 23:29:40 they obviously will need long/lat Mar 14 23:30:39 NutterzUK: px = dp * (dpi / 160) Mar 14 23:34:04 readme: is that done via google api or something? long / lat data? I just want to initially do it with maybe 5-10 locations for testing Mar 14 23:34:28 Dexx1_: it is part of the SDK Mar 14 23:34:35 readme: the sqlite database.... does it live in the android device or some remote location Mar 14 23:34:37 oh Mar 14 23:34:42 d.android.com Mar 14 23:34:47 How do I make this open a new activity? >> actionBar.setHomeAction(new IntentAction(this, Actiebar.createIntent(this), R.drawable.ic_title_home_default)); << Mar 14 23:35:35 I am receiving this error in my GNU/Linux terminal when starting the Android SDK Manager. Mar 14 23:35:46 Mar 14, 2012 3:16:06 PM org.apache.http.impl.client.DefaultRequestDirector tryConnect Mar 14 23:35:46 INFO: I/O exception (java.net.SocketException) caught when connecting to the target host: Network is unreachable Mar 14 23:36:10 I am on a NAT64 connection, meaning that all IPv4 hosts are exposed via virtual IPv6 addresses. Mar 14 23:36:20 My machine has no IPv4 address. Mar 14 23:36:37 readme: ..the problem is that.. I need "other users" who will not interact with the android app to be able to add "Weekly Specials" to somewhere.. which will be shown only if the user is within proximity Mar 14 23:40:38 Dexx1_: you need to build a web application that will either be polled by the apps or push notifications out to tell them to download the weekly specials, store them in sqlite, and then your app can query sqlite later with the current lat/long. Mar 14 23:40:50 the users put the specials in the webapp, then your software does the rest Mar 14 23:41:29 your web app can start as being a json file, though. Mar 14 23:41:33 that you can just edit for them Mar 14 23:41:44 then later you can build something more sophisticated Mar 14 23:43:07 readme: heres a crappy version I was thinking about: Have the locations/bars/restaurant indirectly (via another app) post their specials to a twitter account with a specific #hashtag and have our android app query and get those twitter messages with specific hashtags and show them only if they are close to the location -- would that work still ? (i know its crappy and less elegant.. but still) Mar 14 23:43:37 * hackkitten checks the readme Mar 14 23:43:38 :3 Mar 14 23:43:40 that's retarded Mar 14 23:43:49 just use your own server Mar 14 23:44:09 hm Mar 14 23:44:13 actually maybe it makes sense Mar 14 23:44:22 as long as the twitter tweets also create value for twitter Mar 14 23:44:38 don't just use twitter as a free backend if there's nothing in it for them Mar 14 23:45:33 no, it's a bad idea. you're giving twitter the key to your operation.. the specials should be your valuable data. Mar 14 23:45:50 you definitely want your own database Mar 14 23:47:47 Hello, I need to know the width of a gridview but the getheight returns 0...How can I do? Mar 14 23:48:43 thegrinch1: don't call it from onCreate Mar 14 23:49:11 if you're setting the gridview with setContentView, onCreate is too soon because the views haven't been measured yet Mar 14 23:49:30 just call the getHeight() later when the event occurs in which you need to know the height Mar 14 23:49:39 lol, i just wrote a test and put: assertTrue(true); // Blocked by #opal-1225 :P Mar 14 23:49:55 In fact I'd like to get the width to set the columnnbr Mar 14 23:49:56 readme: Is it hard to do this with sqlite ? Ive dealt with MySQL before.. but not sqlite.. Mar 14 23:50:07 readme: .. I mean..just for 5-10 locations Mar 14 23:50:53 Dexx1_: you can hardcode an array I guess Mar 14 23:50:54 So I kinda need to know the width before getting any event Mar 14 23:51:35 readme: I see.. and you said, we need long/lat data in this database? .. but how will it show these "Specials" that gets submitted by bar owners and match them with long/lat Mar 14 23:51:55 thegrinch1: either use a timer or extend GridView and hook this http://developer.android.com/reference/android/widget/GridView.html#onMeasure(int, int) Mar 14 23:51:55 Guys, what exactly does this mean? dalvikvm-heap(3677): Grow heap (frag case) to 48.084MB for 4096016-byte allocation Mar 14 23:52:12 Does that mean that my actual app's heap space is 48MB, or is that the native heap? Mar 14 23:52:48 Dexx1_: when you get a long-lat pair back from the location apis, you will use it to check the database. Mar 14 23:55:07 anyone use Simple (http://simple.sourceforge.net/) for their xml parsing, all works well but i cant figure out how to parse xml with semi colons in it like Gaz`: this might help http://simple.sourceforge.net/download/stream/doc/javadoc/org/simpleframework/xml/Namespace.html Mar 14 23:56:44 thanks man Mar 14 23:56:48 i been reading a lot but its weird Mar 14 23:56:55 the colon is for namespaces Mar 14 23:56:58 like ah right Mar 14 23:57:21 insimple you usually make the class name the same as the xml has it Mar 14 23:57:28 so id make an object "media" Mar 14 23:57:33 seems different when it has this semi colon Mar 14 23:58:09 maybe you use the annotation on the class Mar 14 23:58:16 yeh Mar 14 23:58:19 ill check it out Mar 14 23:58:44 Anybody? Mar 14 23:59:35 Gaz`: that's also not a semicolon Mar 14 23:59:42 ah yeh Mar 14 23:59:43 colon Mar 14 23:59:44 ; <-- semicolon Mar 14 23:59:45 :) Mar 14 23:59:54 half asleep here Mar 14 23:59:58 just woke from 22 hr sleep (!) Mar 15 00:00:04 lots to do! Mar 15 00:00:12 * ctate . o O ( "Syntactic sugar causes cancer of the semicolon." ) Mar 15 00:00:13 i find parsing xml so slow tho Mar 15 00:00:27 even using this "nice" framework, there should be way more examples Mar 15 00:00:32 lol ctate Mar 15 00:03:34 prob gonna take all day just to find out how to parse this correctly, may as well grab raw xml and extract it myself Mar 15 00:03:34 hi all, how can i convert id of a button to a view? Mar 15 00:03:49 findViewById() Daniel_g? Mar 15 00:03:49 what do you mean convert? Mar 15 00:03:57 oh Mar 15 00:03:59 right Mar 15 00:04:05 That ^ Mar 15 00:04:05 :/ yup i forgot Mar 15 00:04:07 thanks Mar 15 00:09:03 yeh i give up on parseing correctly shame its all been done right for now but theres no docs for it Mar 15 00:09:09 none that are easily findable Mar 15 00:12:52 Where do I go to file bugs in the SDK Manager? Mar 15 00:15:03 In my gridview, I set the number of colums to "autofit".The gridview fills the whole width of the screen(480 pixels).I use ImageViews inside which have a size of 85. Now the weird thing, I only get 2 columns...What could be wrong? Mar 15 00:23:36 thegrinch1: 85 what? dp? px? Mar 15 00:28:11 I'm trying to get an .apk onto my android tablet. I've got most things set up now, but within the SDK it shows that the Google USB Driver package is not compatible with Mac. Are there Mac compatible drivers out there? Mar 15 00:29:27 <`z> lol mac Mar 15 00:29:46 Look it can't be helped ok? Mar 15 00:30:16 I got everything else working but adb doesn't see a connected device Mar 15 00:30:24 <`z> hmm Mar 15 00:30:43 I'm thinking the Samsung Kies drivers aren't enough Mar 15 00:31:06 <`z> http://img.chan4chan.com/img/2010-07-28/30055.jpg Mar 15 00:31:20 Gabs is your tablet rooted? Mar 15 00:31:41 t0mless: no. I never saw a need for it. Mar 15 00:31:54 you can enable wifi adb if it's rooted Mar 15 00:32:02 or if you have another computer that does recognize it Mar 15 00:32:12 <`z> Gabs: upload apk to somewhere like mediafire Mar 15 00:32:15 enable wifi adb from the tablet* Mar 15 00:32:19 hmm Google does say developing on Mac OS X or Linux doesn't require drivers though ... Mar 15 00:32:21 <`z> download apk from mediafire on tablet Mar 15 00:32:29 <`z> Gabs: yes, it shouldn't Mar 15 00:32:34 Gabs also have usb debugging enabled? Mar 15 00:32:41 <`z> i got the google sdks four months ago Mar 15 00:32:45 t0mless: yes Mar 15 00:32:48 yeh i was gonna say that t0mless lol Mar 15 00:32:53 <`z> took it out for a spin a month ago with my new GN Mar 15 00:33:02 <`z> no driver shit Mar 15 00:33:05 <`z> needed Mar 15 00:33:16 <`z> you mean you can't connect via USB Mar 15 00:33:25 gabs what tablet, samung 10.1? Mar 15 00:33:27 <`z> and then try adb devices? Mar 15 00:33:31 <`z> "adb devices" Mar 15 00:33:34 <`z> if it doesn't work Mar 15 00:33:37 <`z> try "sudo adb devices" Mar 15 00:33:45 t0mless: yeah, and I think I found some info at developer.android.com that might help Mar 15 00:33:56 `z: Already tried all that, thanks :) Mar 15 00:34:10 looks like I need to set some additiona parameters up Mar 15 00:35:02 evancharlton:85dp Mar 15 00:36:00 <`z> this is totally relevant Mar 15 00:36:38 hmm I updated my SDK for Android 3.2, but Eclipse only goes up to 3.0 for build targets. How do I update that? Mar 15 00:36:59 <`z> http://img.chan4chan.com/img/2010-07-28/30055.jpg Mar 15 00:37:32 `z: um thanks for the nsfw image Mar 15 00:38:36 I love this - straight from android.developer.com: If you're developing on Mac OS X, it just works. Skip this step. LOL Mar 15 00:38:48 Well that's a load of bull Mar 15 00:43:06 Well at any rate - let's assume I'm on Linux - how would I update the build targets in Eclipse from that OS? Mar 15 00:43:42 `z LOL Mar 15 00:43:50 wish i hadnt seen that but it was funny Mar 15 00:44:00 <`z> lol Gaz` Mar 15 00:44:15 <`z> what if they started buttfucking each other and forming a huge circle Mar 15 00:44:25 ... Mar 15 00:44:28 <`z> nou Mar 15 00:44:30 that too would be discusting but funny i guess Mar 15 00:44:35 Is my question really that lol worthy? :( Mar 15 00:44:35 yello all Mar 15 00:44:40 <`z> too disgusting Mar 15 00:44:50 <`z> QubeZ, advertising tdm again? Mar 15 00:44:52 <`z> lolol Mar 15 00:45:05 nope, just watching the chat Mar 15 00:45:33 `z: o_O Mar 15 00:45:52 * SeligArkin is willing to bet we have a non-zero gay population in this channel Mar 15 00:45:57 Although I am going to demo it on Friday to a couple hundred people. Mar 15 00:46:24 i doubt it SeligArkin ive known some gay coders Mar 15 00:46:27 <`z> happy pi day Mar 15 00:46:32 <`z> ... i'm 9 hours late Mar 15 00:46:34 <`z> no Mar 15 00:46:37 20 Mar 15 00:46:40 oh sweet i parsed it Mar 15 00:46:55 it's only PI day in US right? Mar 15 00:47:03 everywhere else its 14/3/2012 Mar 15 00:47:08 <`z> i'm 33 hours late Mar 15 00:47:09 QubeZ: yep, only in the backwards country of the US, aFAIK Mar 15 00:47:15 <`z> here it's 15/3 Mar 15 00:47:21 <`z> 8:45 am Mar 15 00:47:24 <`z> GMT +8\ Mar 15 00:47:34 ya, man i have the way US writes dates Mar 15 00:47:38 still 3/14 here :p Mar 15 00:47:55 have or hate? :P Mar 15 00:47:57 they fucked up my naturalization paperwork when i became a citizen... took me a year to fix it before I could get my passport Mar 15 00:48:01 *hate Mar 15 00:48:26 my bday is sept 7th so in India its 7/9... but here they put July 9th on my paperwork Mar 15 00:48:31 QubeZ: well I hate the way the rest of the world writes it :p Mar 15 00:48:32 tards! Mar 15 00:48:48 7/9 is July 9 :p Mar 15 00:48:59 wall of text incomming:hi everyone! i'm trying to learn how to use the local sqlite database in the android system, and I encountered something I did not comprehend fully.. I read an example where the SQLiteOpenHelper class was extended and a method for adding entries to a specific table was written in that class, while the code for creating the table was written in the onCreate(SQLiteDatabase Mar 15 00:48:59 db) method. I'm totally fine with the add-method but what I can't see in the example is where the onCreate method is called, I mean, when is the table created? (example: https://github.com/nilsgroot/Brew-Clock/tree/master/src/nl/nilsgroot/brewclock) Mar 15 00:49:08 Gabs: not in India, its 7th of sept Mar 15 00:49:21 QubeZ: Well ... that's India for you :p Mar 15 00:49:32 hey, thats my motherland. Watch it pal! :) Mar 15 00:50:04 oh and to add my two cents to the discussion, DDMMYY > MMDDYY :D Mar 15 00:50:08 Ok here's another question - can I install an apk file onto my device without using eclipse? Mar 15 00:50:18 damn i really wish I'd written this app with localization in mind... going back and changing all that to @string is tedious Mar 15 00:50:24 in otherwords am I wasting my time trying to set things up in eclipse at all? Mar 15 00:50:32 Gabs: ya, using adb Mar 15 00:50:34 dabbel onCreate is called when you try to use getReadable/WriateableDatabase() and it doesn't exist Mar 15 00:50:49 ah :) thanks t0mless Mar 15 00:51:13 QubeZ: Ok ... adb doesn't see the device Mar 15 00:51:19 so now what? Mar 15 00:52:17 Gabs eclipse just uses adb anyway, so if it's not working from adb it won't work from eclipse either Mar 15 00:52:34 ok that's good to know Mar 15 00:52:45 so I won't bother trying to get eclipse to work then Mar 15 00:52:47 Gabs: windows or ? Mar 15 00:52:55 QubeZ: Mac unfortunately Mar 15 00:53:16 I use mac, no drivers needed Mar 15 00:53:19 works like a champ Mar 15 00:53:32 QubeZ: well it's not working for me for whatever reason Mar 15 00:53:45 Gabs sounds like the usb drivers for device arent installed? Mar 15 00:53:49 Gabs have you tried rebooting the tablet and plugging it in to a different usb port? Mar 15 00:53:52 ive had that happen to me before for a while Mar 15 00:54:00 yeh oirrebooting the comp altogether Mar 15 00:54:00 Gaz`: android developer site says mac doesn't require drivers Mar 15 00:54:11 Gabs weird Mar 15 00:54:14 "Probably doesn't" Mar 15 00:54:14 what device Mar 15 00:54:23 QubeZ: I installed Samsung Kies - could that possibly cause an issue? Mar 15 00:54:30 Samsung Galaxy Tab 10.1 Mar 15 00:55:06 no Kies is what you need for the adb driver Mar 15 00:55:19 why do you need Kies? Mar 15 00:55:36 QubeZ: I don't know ... I thought I did. Maybe not. Mar 15 00:55:38 "Kies for Mac doesn't work. Samsung know this because their web site instructs you to download Android File Transfer." Mar 15 00:55:46 this thread maye help Mar 15 00:55:47 http://www.google.com/support/forum/p/Google%20Mobile/thread?tid=0c05526a9bdd1a92&hl=en Mar 15 00:56:22 Gaz`: Kies works fine - I uploaded a bunch of music through it today, no problem Mar 15 00:56:32 However maybe connecting to Kies interfered with adb Mar 15 00:56:37 let me test that theory Mar 15 00:57:14 yeh i reckon Mar 15 00:57:39 Kies got updated for Mac Mar 15 00:58:32 Has someone used gridviews and obtained good performances? I have something like 26 thumbnails and scrolling is the opposite of smooth.The bitmaps are cached and I properly recycle view in the adapter....any ideas? Mar 15 01:00:01 Hellote. Mar 15 01:00:15 ok disconnecting from Kies and shutting that program down didn't help. Any other way to force the mac to detect a new USB device? Mar 15 01:00:23 I am trying to write a simple program that lets me send messages from my android to my desktop for practice. Mar 15 01:00:27 It cannot open the socket. Mar 15 01:00:56 Is there any reason why this would not create a valid server socket and then wait for the Android's connection: Mar 15 01:00:56 ServerSocket ss = new ServerSocket(4444); System.out.println("Starting..."); s = ss.accept(); Mar 15 01:01:08 (s is predefined as a field) Mar 15 01:01:36 dammit! I need to go Mar 15 01:01:38 THANKS A LOT Mar 15 01:01:39 :p Mar 15 01:04:02 * SeligArkin stares at benzrf Mar 15 01:04:11 rather, where he used to be Mar 15 01:04:32 Gabs: unplug it and then plug it back in? Mar 15 01:05:15 Guys - why did no one tell me I could just email myself the apk file and install it? Mar 15 01:05:24 I didn't need to do any of that SDK/adb crap Mar 15 01:05:25 :( Mar 15 01:05:28 you never asked Mar 15 01:05:32 Gabs we wanted you to learn from your mistakes Mar 15 01:05:56 I said at the beginning I just needed to install the apk file on my device and I've been wasting 2 days on this. Mar 15 01:06:07 2 days I could have been working on billable projects Mar 15 01:06:14 Jerks Mar 15 01:06:24 thegrinch1: do you scale the bitmaps down and display a thumbnail, or load the full-sized bitmap in? Mar 15 01:09:37 hahaha Mar 15 01:12:56 What's so funny? Mar 15 01:14:46 SeligArkin: it took some guy two days to figure out how to install an apk Mar 15 01:14:52 and then he blamed us Mar 15 01:15:08 and claimed he could have been working on 'billable projects' with that time Mar 15 01:15:35 Oh, see, I filter out most stupid Mar 15 01:16:07 readme, man, I'd not be a happy client unless I was paying him like $2/hr Mar 15 01:16:25 pfn: lol Mar 15 01:16:29 pfn: for 2/hr I know a guy who can install 3 apks/day Mar 15 01:22:29 argh Simple XML is driving me bnuts Mar 15 01:22:36 its not simple at all Mar 15 01:22:45 youtubes awful xml feed isnt helping Mar 15 01:23:27 I'm pretty sure in the gdata TOS for youtube they prohibit mobile applications... Mar 15 01:25:17 who reads those anyway Mar 15 01:25:56 anyone who has used SimpleXML to parse - how do i get the media:thumbnails here? http://pastebin.com/217uBV1d Mar 15 01:26:17 well a list of media:thumbnail Mar 15 01:29:10 oh i did it lol... @ElementList(inline=true) Mar 15 01:37:14 wtf Mar 15 01:37:26 galaxy nexus 4.0.4 just fakes better signal Mar 15 01:37:27 lol Mar 15 01:43:20 can I use an image resource for the options menu? Mar 15 01:44:01 hey guys, how does one call PreferenceManager.getDefaultSharedPreferences() from a seprate class? I have a BroadcastReceiver in a separate class from my main activity. I tried "PreferenceManager.getDefaultSharedPreferences(MyActivity.this);", but eclipse complains "No enclosing instance of the type MyActivity is accessible in scope", which of course is true Mar 15 01:44:52 NNominatus: not sure, i usually use drawable resources for that Mar 15 01:45:07 err yeah thats what i mean Mar 15 01:45:21 yes you can :) that's the way to do it Mar 15 01:45:27 o awesome Mar 15 01:45:29 declare them in your optionsmenu.xml Mar 15 01:45:30 thx Mar 15 01:45:52 @drawable/file_name Mar 15 01:45:53 :) Mar 15 01:47:40 hmm i dont have an optionsmenu.xml i need that though too mess with the format? Mar 15 01:55:20 NNominatus: i believe so. i'm new at this too :) Mar 15 01:55:32 NNominatus: i have res/menu/optionsmenu.xml Mar 15 01:56:44 mine looks lke: Mar 15 01:56:45 i can see how that would be super helpful avleen though im betting im using too old of a development version Mar 15 01:56:46 https://gist.github.com/2041176 Mar 15 01:56:54 what version are you using? Mar 15 01:57:16 2.3 Mar 15 01:57:19 same here :) Mar 15 01:57:21 it works Mar 15 01:57:23 hmm Mar 15 02:00:32 eclipse appears to agree with you Mar 15 02:01:16 NNominatus: are you building agenst 2.3 also, or is that just what you're running it on Mar 15 02:01:44 good question Mar 15 02:02:23 avleen: getDefaultSharedPreferences() takes a Context as its argument Mar 15 02:02:34 broadcast receivers also get a Context as an argument Mar 15 02:02:38 HMMMM. :) Mar 15 02:02:46 says automatic seligArkin Mar 15 02:04:03 uh... Mar 15 02:04:21 that shouldn't be an answr Mar 15 02:04:51 lol Mar 15 02:05:35 It should be an integer from 3 to 14 Mar 15 02:06:18 ctate: yup yup :) i figured that out just a few moments ago lol Mar 15 02:06:32 ctate: ty :D Mar 15 02:07:10 lets go with 10 then Mar 15 02:07:51 though I dont know where to check in eclipse for which set its using too build Mar 15 02:09:13 o i found it SeligArkin its 7 im building for 2.1 Mar 15 02:17:41 NNominatus: that might be your problem if what you're using something that was added in 2.3 Mar 15 02:17:51 yeah Mar 15 02:18:04 i should just worry about functionality Mar 15 02:18:07 ill make it pretty later Mar 15 02:21:30 Anyone using the OpenGL es 2.0 java wrappers for a serious project? Mar 15 02:21:38 what is the advantage of using this? Mar 15 02:21:48 I wonder if it is better to just use the ndk Mar 15 02:27:55 wrappers shouldnt be any slower really? Mar 15 02:27:59 and easier to use in java Mar 15 02:28:13 omg i hate xml, evertything i try to parse take shours of hair tearing Mar 15 02:34:01 json, ftw Mar 15 02:34:49 Is there any reason why sockets shouldn't work on Androids?!? Mar 15 02:35:09 ლ(ಠ益ಠლ) Mar 15 02:37:05 hellow? Mar 15 02:37:13 JesusFreke: you around? Mar 15 02:37:22 ? Mar 15 02:37:54 :/ Mar 15 02:37:58 you run the baksmali project, right? Mar 15 02:38:04 yep Mar 15 02:38:12 Do regular Socket objects work in Android, or do I need special Android ones? Mar 15 02:38:15 have you tinkered at all with dex2jar? Mar 15 02:38:17 )_) Mar 15 02:38:45 not really Mar 15 02:38:50 benzrf: regular java HTTPConnections work in Android, so I'd imagine the regular Sockets that HTTPConnection uses work too Mar 15 02:38:59 hmm Mar 15 02:39:05 I am getting IOExceptions Mar 15 02:39:06 >_< Mar 15 02:39:18 perhaps I screwed up the server end? Mar 15 02:39:21 internet permission? Mar 15 02:39:25 um Mar 15 02:39:29 how do I do that Mar 15 02:39:29 XD Mar 15 02:39:32 JesusFreke: hm, k. i'm getting a stack overflow on a particular apk and am digging into the code, but it's not too clear Mar 15 02:39:50 hi guys Mar 15 02:39:55 i'm using maven Mar 15 02:40:05 what do you guys use for bug logging? Mar 15 02:40:18 do you guys use acra or some other open source alternative? Mar 15 02:40:23 guysguysGUYS Mar 15 02:40:37 How do I allow my app to have Internet access so that I can muck about with sockets Mar 15 02:40:41 tophyr: ah, yeah Mar 15 02:40:44 benzrf: http://bit.ly/yC83ow Mar 15 02:40:52 Fank you! Mar 15 02:40:57 >_> Mar 15 02:40:59 * benzrf sighs Mar 15 02:41:00 :P Mar 15 02:41:34 coool JesusFreke! Mar 15 02:41:35 hahaha Mar 15 02:41:56 how about you JesusFreke, what bug report tool do you use? Mar 15 02:42:08 for logs i mean Mar 15 02:42:17 huh? Mar 15 02:42:23 oh. Mar 15 02:42:23 mmmm Mar 15 02:42:34 http://code.google.com/p/smali/issues/list Mar 15 02:42:35 :p Mar 15 02:44:13 i mean something else asides acra? Mar 15 02:44:24 imean do you use something else asides acra? Mar 15 02:44:26 how can I make my simple cursor adapter less horrible? I have an async task doing the cursor but the simplecursor adapter is really slow Mar 15 02:45:21 chups: that's what I use Mar 15 02:54:49 std0s: how do you know it's the adapter? adapters are generally pretty quick, especially the supplied ones Mar 15 02:55:23 hi is there a site that anyone knows of with source mods ? Mar 15 02:55:46 like how to modify the notification toggles in source Mar 15 02:56:13 wangs **** ENDING LOGGING AT Thu Mar 15 02:59:58 2012