**** BEGIN LOGGING AT Sun Dec 16 02:59:58 2012 Dec 16 03:01:06 i hate weird languages that use $1's and $(this) etc, define ifeq blah ... Dec 16 03:01:28 why can't they make it look like anormal mdern procedural language ? why use such weird syntax Dec 16 03:05:41 k0nichiwa: sounds like brainfuck is what you want Dec 16 03:06:11 g00s: that, good sir, was inspired :D Dec 16 03:06:18 may I suggest malbolge? Dec 16 03:07:30 I recommend peit Dec 16 03:07:36 piet? Dec 16 03:07:52 "Malbolge was so difficult to understand when it arrived that it took two years for the first Malbolge program to appear. The program was not even written by a human being: it was generated by a beam search algorithm designed by Andrew Cooke and implemented in Lisp.[1]" Dec 16 03:08:22 http://www.dangermouse.net/esoteric/piet/samples.html Dec 16 03:08:31 http://www.dangermouse.net/esoteric/piet.html Dec 16 03:09:01 I currently wonder if certain XML Applications and VBS shouldn't be counted as esoteric as well Dec 16 03:09:04 in the vein of Perl Dec 16 03:09:05 g00s just saying i dont like makefile syntax used in android.mk ndk (gnu make) Dec 16 03:09:22 i honestly dont know wtf is going on in these things Dec 16 03:11:34 that's actually common to Makefile Dec 16 03:12:06 and, well, common to any file format whose genesis is "escaped lab test for new parser generator" Dec 16 03:13:47 (which is *why* Makefile has this weird requirement on tabs) Dec 16 03:17:09 on tabs ? Dec 16 03:17:20 what is the requirement on tabs ? i dont' see any tabls in android.mk files Dec 16 03:17:37 hehe Dec 16 03:17:49 i just put things on one line using the \ extnder Dec 16 03:18:31 * k0nichiwa uses ide's long time since i wrote a makefile Dec 16 03:20:19 k0nichiwa: the tabs in front of each statement for a makefile target Dec 16 03:20:48 (in classic Make, that is, GNU I think relaxes this to normal indentation) Dec 16 03:22:04 * offby1 calls the /me police on k0nichiwa Dec 16 03:33:25 u know if it were up to me i'd ditch gnu make and write my own dependency build system Dec 16 03:33:45 give it a javascript like syntax or maybe python Dec 16 03:33:57 urk Dec 16 03:36:54 k0nichiwa: thats scons Dec 16 03:37:04 its actually quite nice Dec 16 03:39:39 I think using imperative programming is wrong for that kind of stuff Dec 16 03:44:54 using java for mobile is wrong too ... Dec 16 03:45:28 just had to get that in there :D Dec 16 05:02:43 I'm having a huge performance issue when I call canvas.drawBitmap(...) http://hastebin.com/tewuqaduxi.coffee this is the offending function (when I call it, it drops to about 0.5 fps, when I call it while c.drawBitmap() is commented, it works just fine. Dec 16 05:03:24 the for loop is not the offender since it's only something like 20x12 Dec 16 05:06:39 have you ran a profiler on it? Dec 16 05:08:26 no, but seeing as removing the drawBitmap function removes the issue i'm fairly sure that's the offender here. Dec 16 05:35:27 where do you place the adt-bundle? Dec 16 05:35:48 I'm on windows, if it matters Dec 16 05:36:06 I realize you can pick an arbitrary location. Where do YOU put it? Dec 16 05:43:06 /opt/android-{sdk,ndk} and sometimes a different partition symlinked there Dec 16 05:43:11 RustyShackleford: ^ Dec 16 05:59:25 I'm having issues with running 2 AsyncTasks, can anyone take a look at my stack trace: http://pastebin.com/Sj1c06yp Dec 16 06:01:06 android.view.ViewRootImpl$CalledFromWrongThreadException Dec 16 06:27:34 how do i close an http connection Dec 16 06:27:52 i have two async tasks with http clients, but i have a feeling i didnt close them Dec 16 06:36:39 wow ccache is great in ndk Dec 16 06:37:05 i make a stupid little edit to a make file, int recmpiles a bunch of stuff, but w/ccache a lot of times they're nearly instantaneous Dec 16 06:48:09 i have 2 async tasks, each running an http client Dec 16 06:48:13 the first one works fine Dec 16 06:48:31 the 2nd one doesnt , and judging from the stack trace i think its because i didnt close the first one Dec 16 06:48:51 http://pastebin.com/0nzEDv6D Dec 16 06:49:09 any idea how to remedy this? Dec 16 06:52:59 not really but do the 2 async tasks share any resources / objects ? Dec 16 06:53:26 are they identical ? does the same one always fail ? or can either fail ? Dec 16 07:03:09 the 2nd fails Dec 16 07:03:14 here's the stack trace: Dec 16 07:03:14 http://pastebin.com/jvPf0wgp Dec 16 07:03:33 im using the http client Dec 16 07:03:48 the 2nd to run always fails Dec 16 07:04:24 well if the problem is because both are running, why wouldnt the 1st sometimes fail ? Dec 16 07:04:36 can you run 2 copies of the 1st ? Dec 16 07:13:12 it crashes Dec 16 07:13:18 before the 2nd could do anything productive Dec 16 07:13:47 both async tasks use http clients to make connections Dec 16 07:13:49 to POST Dec 16 07:17:44 well i would think you should be able to run 2 async tasks that are totally self-contained Dec 16 07:17:52 and don't reference outside resources or variables Dec 16 07:17:56 have you tried that ? Dec 16 07:18:13 i dont know what you mean by 2nd Dec 16 07:18:19 you mean the 2nd one to be started ? Dec 16 07:18:34 or does "2nd" just refer to one of the two which for some reason you've decided to call "2nd" Dec 16 07:31:23 acutally coming to think about it Dec 16 07:31:27 either of them Dec 16 07:31:33 could misfucntion Dec 16 07:31:43 i was calling the one that gets called 2nd Dec 16 07:50:05 i dont even think its having 2 threads Dec 16 07:50:13 its playing the same thread over and over gives it issues Dec 16 08:08:30 Yo, can anyone help me with an issue I'm having with AlarmManager? Dec 16 08:10:24 profligacy you could try async loader Dec 16 08:20:06 So when I instantiate my own new Alarm class in Android it works fine Dec 16 08:20:16 but wheN i try to pass it as an intent to the AlarmManager it doesn't do anything Dec 16 08:20:22 can anyone take a look at my code and help mme out? Dec 16 08:35:49 FUUUUU Dec 16 08:35:54 why you no work alarmmanager Dec 16 08:37:15 I store a JSON object into an SQLite table as a TEXT value. How can I query a row with this value? For example when I try, SELECT * FROM TABLE WHERE myJSON={"some":"json"}, I get an error that I passed a wrong token '{' Dec 16 08:37:48 O.o Dec 16 08:38:16 myJSON='{"some":"json"}' <--- that work ? Dec 16 08:38:33 since it's a string value Dec 16 08:38:40 napster: If you're dealing with lots of JSON type objects, maybe life would be easier with a MongoDB Dec 16 08:38:43 or something NoSWL Dec 16 08:38:46 NoSQL* Dec 16 08:39:09 StingRay_: Yes that did work, but it does not return proper result. Dec 16 08:39:21 napster...odd how so? Dec 16 08:40:11 how about if you encode the string/json to sort the "s ? Dec 16 08:40:23 StingRay_: not sure, but the single quotes fixed the unexpected token error. Brian|CS I would have used Mongo, but it was kind of late when I came across it. Also lib dependency, I don't like it :) Dec 16 08:40:44 StingRay_: encoding "s, yes I think that should work. Dec 16 08:40:50 U+0022 Dec 16 08:40:58 encode and decode them Dec 16 08:40:58 or \" ? Dec 16 08:41:09 not sure that works Dec 16 08:41:14 ok, let me try Dec 16 08:41:24 napster: I've been trying to use mongo in more thngs Dec 16 08:41:26 I finally got around to forcing myself to use it for my independent study at school Dec 16 08:41:36 convert to unicode and it will Dec 16 08:41:43 or thats my guess Dec 16 08:41:55 but I'm more a VFX artist than a programmer :) Dec 16 08:42:22 StingRay_: looking for some easy methods like encodeMyJsonToUnicode(myJSON); :) Dec 16 08:43:15 Brian|CS: I think mongoDB will download the libraries only once. If thats the case, it will be cool, since I needs the "sync" stuff. Dec 16 08:43:39 How good is it, compared to SQLite? Dec 16 08:45:20 I'm starting to like it lot as a situation took Dec 16 08:45:24 not good for everything Dec 16 08:46:00 napster a quick option http://docs.oracle.com/javase/tutorial/i18n/text/string.html Dec 16 08:46:33 Thanks StingRay_ Dec 16 09:57:44 hello! Dec 16 10:01:40 ok really annoyed with android now Dec 16 10:01:50 I'm trying to use a FrameLayout to crop a map view. Im trying to give the MapView a circular border, but I cant figure out how to clip the view Dec 16 10:02:33 GMDynamics sounds like you would need to mask/draw it on a canvas Dec 16 10:02:39 and manage it yourself Dec 16 10:03:17 I'm not sure the api would allow that Dec 16 10:03:35 allow what ? Dec 16 10:03:52 defining shapes and draws on a canvas ? Dec 16 10:03:57 The MapView is pretty well encapsulated. You put in what you want, and it blindly gives you a view Dec 16 10:04:12 oh your using mapView Dec 16 10:04:17 ewww Dec 16 10:04:28 thought you were just using a map image or something Dec 16 10:04:31 Why ewwww? Dec 16 10:04:49 ewww relating to wanting to do some custom things Dec 16 10:04:59 not eww as in map api is crap Dec 16 10:05:05 never used it so dont know Dec 16 10:05:24 but sure it will have draw methods to override Dec 16 10:05:42 you could maybe mask it there Dec 16 10:06:15 I want to use the Places API, so using the Map API will probaly be the simplest way. I'll check for draw methods ut a quick ctrl+space didnt yeild anything like that Dec 16 10:07:37 well any view is extended from view Dec 16 10:07:45 so should have onDraw Dec 16 10:32:45 I have an actual Android Nexus 7 device - is there some way to make an AVD that is a copy of my device as it is currently configured? Dec 16 10:37:03 TML what do you mean configured Dec 16 10:37:05 ? Dec 16 10:37:21 there are pre-sets in latest sdk for creation of nex7 avd Dec 16 10:37:44 StingRay_: I know, and those presets don't work Dec 16 10:37:50 They don't come with a /data Dec 16 10:38:53 StingRay_: http://codepad.org/rTHqGtx3 Dec 16 10:39:45 so I want to base it off the system image that's actually on the physical device I have connected to my machine, since I know that works Dec 16 10:40:06 well /data is there Dec 16 10:40:17 if you have any apps installed Dec 16 10:40:18 Fair enough - it's there, but it's empty Dec 16 10:40:24 not true Dec 16 10:40:30 it could be full of stuff Dec 16 10:40:41 you need admin/su to read it though Dec 16 10:40:51 adb shell to device Dec 16 10:40:54 su Dec 16 10:40:56 and look Dec 16 10:40:57 Well, I've unpacked the system.img and userdata.img and it's empty, so I'm not sure what I'm missing Dec 16 10:41:02 I can't adb shell to the device, it doesn't boot Dec 16 10:41:44 the AVD does not boot - I have 5 people on 3 different OSes using the latest SDK all confirming that the "Nexus 7" device definition creates an AVD that will never finish booting Dec 16 10:41:57 hang on Dec 16 10:41:59 let me try Dec 16 10:42:02 Thanks Dec 16 10:42:24 the short answer is no - the emulator is a different type of 'hardware' from the N7, so you'd need to reconfigure drivers etc Dec 16 10:43:41 TML booted Dec 16 10:43:48 had a messaging crash for some reason Dec 16 10:43:52 but all seems fine Dec 16 10:43:56 nexy7 preset Dec 16 10:43:58 4.2 Dec 16 10:44:08 gpu accel on Dec 16 10:45:11 data there Dec 16 10:45:19 loads of thing in it Dec 16 10:45:20 StingRay_: Yeah, I've got all of that, too; Memory options at 900 (1024 hangs on black screen indefinitely); Internal Storage: 30GiB; SD Card: Size 1000 MiB; Host GPU checked Dec 16 10:45:43 I get the Android boot logo, and (even after waiting 14 hours), I get a loop on the codepad just linked Dec 16 10:45:51 ok tell you what Dec 16 10:46:00 lemme see how big this avd is Dec 16 10:46:30 StingRay_: I have been working with TML on this project and have the exact same results, for whatever that's worth. Dec 16 10:46:37 He's on Linux, I'm on Windows 7 64 bit Dec 16 10:46:45 well my avd is perfect Dec 16 10:46:48 just created Dec 16 10:46:59 I'm on osx but can try in win and lnx Dec 16 10:47:32 is an avd tied to a key or machine on creation ? Dec 16 10:47:34 our Mac guy is asleep right now, but had the same results; if you can share the AVD, that'd be solid Dec 16 10:47:45 cause I could just u/l it if not Dec 16 10:48:48 http://deanwray.co.uk/n7.zip Dec 16 10:49:23 afk for 10 min, but lemme know if that works Dec 16 10:49:57 oh you may have to check the config on window placement , as I use 3x24 (1920x1200)s Dec 16 10:50:07 not sure where i closed it Dec 16 10:57:17 bk Dec 16 10:57:20 working? Dec 16 10:57:33 StingRay_: That seems to be working - just waiting for it to finish booting Dec 16 10:57:42 but it's already well past the bootlogo Dec 16 10:57:52 wierd Dec 16 10:58:03 compare the configs Dec 16 10:58:23 you were targeting the 4.2 sys img ? Dec 16 10:58:23 Well, the system.img and userdata.img don't hash to the same thing, for starters Dec 16 10:58:43 yes Dec 16 10:58:51 freaky Dec 16 10:59:09 Are you using something other than SDK from http://dl.google.com/android/android-sdk_r21-macosx.zip ? Dec 16 11:00:42 well I was using ecplise with adt addon but currently I just got the adt bundle Dec 16 11:00:55 and all sdk's through the updater Dec 16 11:02:02 I like the adt bundle logo better than eclipse one... thats really the only reason, oh and for continuity across tools and platforms/machines Dec 16 11:03:25 so it fully booted and works ? Dec 16 11:03:30 yep Dec 16 11:03:37 sweet Dec 16 11:04:00 That one works in Win7, too. Currently downloading the non-bundled toolkit to see if it's only f**ked in the bundled one. Dec 16 11:04:19 StingRay_: Thank you so much Dec 16 11:04:36 no prob...glad it works, confused yours doesn't Dec 16 11:04:41 It's been a full week wrestling with unpacking every kind of image, etc. trying to figure out why it won't boot Dec 16 11:05:14 This channel arrived at a consensus on Thursday that the /data was missing or corrupt, but obviously we didn't ever touch it (since we couldn't even boot) Dec 16 11:05:43 well looking from the code paste you did, I would instantly say corrupt sys img Dec 16 11:05:54 but since mine boots, thats not really true Dec 16 11:06:19 well, your system.img is different from the one I get from the same device definition Dec 16 11:06:21 that's the mystery Dec 16 11:06:41 ah sorry Dec 16 11:06:49 I always set to my target Dec 16 11:07:04 gonna create a default one and just see Dec 16 11:08:02 booting one with no options choosen Dec 16 11:08:20 nope all fine Dec 16 11:10:17 fyi n7 default no options changed (cept gpu) http://deanwray.co.uk/n7d.zip Dec 16 11:11:21 I'll play with that one, too - thank you so much. I might actually be able to get this app written for my family before Christmas! :) Dec 16 11:11:53 glad to help, let me know if you figure out what your prob is/was, just if I ever encounter it Dec 16 11:12:21 will do Dec 16 11:13:02 grundt: I'll call you on teamviewer in a bit, I've cached StingRay_'s files on the project site so Dima can try them on Mac. Just do a pull, you should get it. Dec 16 11:13:40 TML: I'm about to go get some dinner, so wait until I ping you before TV'ing Dec 16 11:13:47 k Dec 16 11:30:59 gm, anyone here? Dec 16 11:31:21 :) Dec 16 12:36:31 anyone have any idea whom to contact re: the malicious app scanner employed by Play ? Dec 16 12:48:44 Chainfire there is a play report button no ? Dec 16 12:49:01 what app is it ? Dec 16 12:49:18 there isn't yet Dec 16 12:49:28 but there was a new exploit just published Dec 16 12:49:36 ah Dec 16 12:49:43 that pretty much makes every Samsung Exynos based device wide-open :) Dec 16 12:50:07 whats the exploit ? Dec 16 12:50:15 http://forum.xda-developers.com/showthread.php?t=2048511 Dec 16 12:51:46 erm thats quite a big oversight Dec 16 12:53:00 that would not be detectable by play though would it ? Dec 16 12:53:12 so not something that can be caught too easy Dec 16 12:53:24 I have no idea how Play's scanner works Dec 16 12:53:52 Nor do I really care. All I'm saying is that the guys behind Play's malware scanner should be aware of this new exploit Dec 16 12:54:03 If they can do something with it, fine. If not, also fine. No longer my problem :) Dec 16 12:54:05 well proguard will prevent easy ident of that Dec 16 12:54:49 I wasn't aware ProGuard obfuscates native code Dec 16 12:55:28 dont think it does, but the ways to call/trigger can be Dec 16 12:58:32 you gonna roll a fix into su ? Dec 16 13:01:14 also : http://code.google.com/team/ any of these guys could escalate the issue on googles side if you direct msg them Dec 16 13:01:23 in your respective country Dec 16 13:04:31 Is there any way to get more information on click events through logs? I have a ListView and my rows onClickListener or onItemClickListener are never called. I would like to find a way to figure out what happens with the click event. Dec 16 13:05:28 odds are one of the view are blocking it Dec 16 13:06:28 activity has dispachTouchEvent Dec 16 13:06:53 that gives you an MotionEvent Dec 16 13:06:58 I'm using Fragments Dec 16 13:07:03 same Dec 16 13:07:15 FragmentActivity Dec 16 13:07:45 and touch not blocked will fall though to base fragActivity Dec 16 13:08:11 I think Dec 16 13:08:13 :) Dec 16 13:08:53 probably best to look for view that maybe blocking it though Dec 16 13:09:40 you pasted your code anyplace ? Dec 16 13:09:50 No but I can surely do this Dec 16 13:09:57 I have a custom Adapter too Dec 16 13:10:28 adapter will have little to do with blocking unless you specifically did it Dec 16 13:10:48 listView is the catcher Dec 16 13:11:12 list_item.xml: http://pastebin.com/T05GwAk0 Dec 16 13:12:06 cursor adapter: http://pastebin.com/fdsCZSc8 Dec 16 13:12:07 so you have a button there also ? Dec 16 13:12:11 yes Dec 16 13:12:25 it works fine.. I also have a contextMenu that works fine Dec 16 13:12:56 but besides the clicking "animation", nothing happens when I click the part of the row that is not a button Dec 16 13:13:19 but take the button away and it works fine? Dec 16 13:13:41 as in down assign buttonClickListener Dec 16 13:13:44 and my activity code: http://pastebin.com/XzUPETRC Dec 16 13:13:47 down = dont Dec 16 13:14:12 Ok, hold on Dec 16 13:14:38 StingRay_ no I don't think I'll integrate a fix to su... maybe a separate tool if an easy fix is found Dec 16 13:14:42 I'll just comment this: buttonView.setOnClickListener(mFragment.buttonClickListener); Dec 16 13:17:30 Interesting, the line I comment did nothing new Dec 16 13:17:37 my button still works Dec 16 13:19:42 Oh, no way, I must have been working on a Java file that is probably an old one not used anymore :| Dec 16 13:19:54 oh deer Dec 16 13:21:00 well, it works, I'm really sorry Dec 16 13:21:39 np, often good to talk things through Dec 16 13:21:58 most of the time you dont need others to help, so now you just need to learn the ultimate skill Dec 16 13:22:02 talking to yourself Dec 16 13:22:04 ;) Dec 16 13:25:08 rubber duck debugging :) Dec 16 13:28:39 StingRay_: I've been working on this for a while. I now know I still have to work on this :) Dec 16 13:37:02 I heard there's an intellij plugin that does that Dec 16 13:37:18 It's like Eliza for programming help Dec 16 13:52:29 Little confused here, using a GridView with a custom adapter; my Activity's onCreate has a gridview.setAdapter(new MyAdapter(this)); but it throws a NullPointerException on this line? Dec 16 13:53:39 Full traceback available here: http://pastie.org/private/nfszdgnsu67mqqpav3csq Dec 16 13:53:57 gridview is null Dec 16 13:54:18 SimonVT: Nope, gridview was acquired on line 12. GridView gridview = (GridView) findViewById(R.id.button_view); Dec 16 13:54:28 yes it is Dec 16 13:54:33 SimonVT: "button_view" is defined in the layout XML as a GridView Dec 16 13:54:46 You haven't set a layout that includes a gridview with that id yet Dec 16 13:55:08 What you've said there make no sense to me. Dec 16 13:55:32 This application has one Activity, and one Layout file. The layout file has one GridView and two Buttons. Dec 16 13:56:01 And considering I can access the buttons in my onCreate, why would the gridview not exist yet? Dec 16 13:56:11 Maybe you need to clean your project Dec 16 13:56:17 SimonVT: I have. Dec 16 13:56:17 Either way, gridview is null Dec 16 13:56:38 I clean every run. Dec 16 13:57:41 SimonVT: False, if line 13 is a toast call for gridview.getId(); there is no fatal error. Dec 16 13:58:14 oh well Dec 16 14:00:09 SimonVT: Oh well what? That means gridview isn't null :/ What is? Dec 16 14:00:43 what is the line of code throwing hte npe... Dec 16 14:00:56 I'm not gonna argue with you. Given the information you've provided, nothing else on that line can be the cause of an NPE Dec 16 14:01:03 But if it's not null, oh well Dec 16 14:01:37 Jug6ernaut: gridview.setAdapter(new ButtonAdapter(this)); Dec 16 14:02:13 Unless you're telling me my Activity's onCreate is too early to populate the view / use anything.. in which case I'd wonder what its' purpose was. Dec 16 14:02:47 seperate your intializations and setting Dec 16 14:03:01 then see where its being thrown at Dec 16 14:04:03 Jug6ernaut: That's the thing, my onCreate has only three lines as it is. 1 is the super, 2 is obtaining the gridview and 3 is the line pasted above. Dec 16 14:04:28 ... Dec 16 14:04:42 seperate the initialization of your ButtonAdapter and the setting of it. Dec 16 14:04:58 then run again and see where error is thrown Dec 16 14:05:02 Surely it has 4, one for setting the content view as well Dec 16 14:05:27 Jug6ernaut: Oh, I see what you mean. Dec 16 14:05:31 SimonVT: Nope: http://pastie.org/private/s8mscgmigndf1db5uikfa Dec 16 14:05:50 well there u go... Dec 16 14:06:08 While I was looking for a clean and cut example / tutorial of how to use a GridView, I was only able to find the documentation; which gave me no notification or instruction on actually setting the items in the GridView. Some googling led me to creating an Adapter, nothing else. Dec 16 14:06:23 You need to set a layout.. Dec 16 14:06:29 Or findViewById is going to return null Dec 16 14:06:34 Which is the case here Dec 16 14:06:40 SimonVT: Why would my GridView have its' own layout? I'm rather confused. Dec 16 14:07:06 "I need a layout" doesn't mean anything to me, I need a layout where? What needs a layout. I'm not really understanding what you're asking of me. Dec 16 14:07:16 AlbinoGeek not to be mean, but u need to learn how android views/layouts work Dec 16 14:07:52 If you mean at this stage (Activity.onCreate) that the layout (activity_main.xml) is not yet available, then I'd have to disagree since I am able to edit the buttons I have in the view, but not the gridview. Dec 16 14:07:57 your application cant magicially know what tho show, you have to explicitly tell it Dec 16 14:08:02 Jug6ernaut: Well of course, this is the first application. Dec 16 14:08:13 Heard of setContentView(int) ? Dec 16 14:08:19 Jug6ernaut: That's what I don't get, without me doing this the application does magically show the xml layout :/ Dec 16 14:08:32 no it doest Dec 16 14:08:34 I launch it in AVD and I see the layout. Dec 16 14:08:43 u just said u got a npe? Dec 16 14:09:00 Mhmm, I'm talking about without this line being here, the one regarding the ButtonAdapter. Dec 16 14:09:13 "without me doing this" Dec 16 14:10:10 This project is right out of one of the example projects that comes with ADT, and I've yet to see the line mentioned above :/ Dec 16 14:10:39 You need to call setContentView with a layout that includes a GridView Dec 16 14:11:34 SimonVT: I get what you're saying, but I don't get why when I don't have this line, my "ContentView" is being loaded when I launch the APK without trying to do anything to the gridview Dec 16 14:12:25 Oh, here's a fun thing... Went and added "setContentView(R.layout.activity_main);" as my second line in onCreate, still having an NPE on that gridview handler. Dec 16 14:12:29 adapter * Dec 16 14:12:55 So activity_main.xml doesn't contain a GridView with the id button_view Dec 16 14:13:48 <_yakubmobiledev> Hello every one Dec 16 14:14:01 SimonVT: Recently looked in to the app Any Do App... Dec 16 14:14:13 SimonVT: Then again, I don't exactly know the different between @+id and @id Dec 16 14:14:23 <_yakubmobiledev> How to use the font in the application the way they have used in the app Dec 16 14:15:07 Jug6ernaut: Oh, getting somewhere now; I split the intialization and assignment of the ButtonAdapter now, different errors being raised. Dec 16 14:15:21 :| Dec 16 14:15:34 u did it wrong then Dec 16 14:16:20 Jug6ernaut: http://pastie.org/5538888 Dec 16 14:16:23 That's really odd... Dec 16 14:16:50 ButtonAdapter.java:27 npe Dec 16 14:16:54 Line 27 (getCount body) is: return items.length; items being a private Object[] items = new Object[]; Dec 16 14:17:14 An empty array of Object shouldn't be null, no? Dec 16 14:18:01 Nevermind, found out why there, Object[] isn't valid, so LINT removed it. Dec 16 14:18:14 Jug6ernaut, SimonVT: Thanks in helping pin-point the error in question. Dec 16 14:23:44 Hey, when i do intent.putExtra("test", "hello"); and then start again the same activity When I want tot get the value of "test" its empty. How come? Dec 16 14:24:46 "start again" ? Dec 16 14:25:03 that extra is only in that specific intent Dec 16 14:29:49 How is possible to make actionBar tabs like on the Pinterest app (http://www.androidcentral.com/sites/androidcentral.com/files/postimages/26462/pinterest_1.png). The first and third tab has a different width than the second one. How is that possible? I read on the documentation that the action bar tabs set the width to all tabs from the wider tab? How can I mimic this? Dec 16 14:30:52 ecentinela tis just a view that you can set based on pager position Dec 16 14:30:58 I want to test a website that I build in Android - so I downloaded the SDK, got version 3.0 from the manager, and now I'm trying to create a new AVD, but the manager doesn't let me select CPU: http://i.imgur.com/WQrqz.png Dec 16 14:31:02 loads of online tutorials about it Dec 16 14:31:50 you mean that this is not an action bar? Can you send me a link to a tutorial of this? I'm stuck searching for information about this problem and I'm a bit suck. I need some help Dec 16 14:32:37 nick4 you mean you have android3.0 downloaded ? Dec 16 14:32:45 yes Dec 16 14:33:03 and your using it with a pre-set device that is supposed to be 4.1+ ? Dec 16 14:33:12 as in the nex7 Dec 16 14:33:27 let me check that Dec 16 14:34:18 even with Nexus 7, the CPU is disabled Dec 16 14:34:28 no... my point is Dec 16 14:34:41 have you got android 4.1+ sys image downloaded ? Dec 16 14:34:49 no, should I get that? Dec 16 14:34:53 as in 4.1 4.1.2 4.2 Dec 16 14:35:06 the os version that is for the nex7 Dec 16 14:35:38 installing now Dec 16 14:35:45 ecentinela http://thepseudocoder.wordpress.com/2011/10/13/android-tabs-viewpager-swipe-able-tabs-ftw/ Dec 16 14:36:00 thank you very much _StingRay_ Dec 16 14:36:21 but the tab indicator can be any view located anywhere...depends on what callbacks/implemented interfaces you use Dec 16 14:37:14 so, I need to make an independent view and not to use actionBar tabs? Dec 16 14:37:35 well you can do anything you want really, thats the point Dec 16 14:37:50 depends how you observe the pager index Dec 16 14:37:56 and what you want to happen Dec 16 14:38:17 or viewFlipper index, or viewAnimator etc Dec 16 14:39:24 Thank you. I will make a try! Dec 16 14:56:03 ok i'm confused, how can "package net.gtamps.android.graphics.test.listview does not exist" not exist? xD Dec 16 14:56:47 because it does, but intellij can't find it for some weird reason Dec 16 15:02:36 allright rebuilding the entire project helped for some reeason Dec 16 15:02:49 black box magic yay Dec 16 15:06:42 i clean projects all the time Dec 16 15:06:46 and fix project properties Dec 16 15:07:16 i dont use intellij though Dec 16 15:07:19 i use eclipse Dec 16 15:07:31 i never realized there was so much contention over IDE interfaces Dec 16 15:11:38 StingRay_ I was able to create a VM. Thanks :) But now it crashes :P Can I do something to debug it? Dec 16 15:13:31 I tweaked the settings a bit and it worked, but I'd still like to see how I can find what went wrong. Dec 16 15:16:15 nick4 ddms and read logcat Dec 16 15:16:43 what's ddms? (I'm on Win7 64-bit) Dec 16 15:17:12 nick4 android sdk Dec 16 15:17:24 ok, I'll search that Dec 16 15:17:26 eclipse view Dec 16 15:17:36 just get the adt bundle Dec 16 15:17:53 open ddms perspective and look at the logs of the avd Dec 16 15:19:39 ok, thanks StingRay_ Dec 16 15:31:37 I'm using the emulator to test an HTML template I have on my hdd. I can start a LAN web server but I'd like something simpler, have the emulator read the .html files - is this possible? Dec 16 15:34:24 why as a web developer would you not have a http server of some kind running locally ? Dec 16 15:35:30 nick4 no Dec 16 15:35:37 thats not the purpose of the emulator Dec 16 15:35:42 its not also a webserver Dec 16 15:36:10 No need for an http server just to write HTML and CSS, StingRay_ Dec 16 15:37:31 nick4 cant really do that/supposed to with the emu Dec 16 15:37:43 you could adb push files to the device Dec 16 15:37:55 while the device is on? Dec 16 15:38:00 and then specify a local path in browser Dec 16 15:38:10 nick4 wont do it if it's off Dec 16 15:38:20 that might work, then Dec 16 15:38:22 thanks Dec 16 15:38:27 right afk 20 min, food Dec 16 15:42:22 I have an arrayList of java.util.Dates list.contains(AnotherDateObject) never returns true! Anyone observed this before? Dec 16 15:43:13 napster : ArrayList of date objects ? Dec 16 15:43:33 thats a bit hefty no ? Dec 16 15:44:18 out of interest whats the purpose of all those date objects ? Dec 16 15:45:36 I'm trying to implement some kind of a sync system. Something that syncs objects on a server and on the device, even if the connection breaks or theoretically what ever happens. Dec 16 15:45:53 At the moment it is neccessary to have a list of timestamps Dec 16 15:46:10 so why use a complex object like date? Dec 16 15:46:15 list.contains(list.get(0)) would return true Dec 16 15:46:44 rather use a time long ? Dec 16 15:46:57 then one date object Dec 16 15:47:05 to give you what you want Dec 16 15:47:23 that is one option. Use a unix mills long Dec 16 15:47:48 ya Dec 16 15:48:04 SimonVT: ok It does. but another data object (though the same) does return false. Dec 16 15:48:05 seems excessive to have a date object to store a simple timestamp Dec 16 15:48:17 Can anyone point me in the right direction as to how to convert the acceleration on my device(including gravity) to rotation? Dec 16 15:48:30 I was thinking the same as well. Anyway all these conversions are expensive. Dec 16 15:48:55 well store a date string then Dec 16 15:49:23 and use simpleFormatter to get long when you actually need maths Dec 16 15:49:29 simpleDateFormatter Dec 16 15:49:48 yy-MM-dd-hh-mm-ss etc Dec 16 15:50:08 Storing is fine. I already use a simpledataformat to store as TEXT since the device side is backed by SQLite. Its about comparison, like contains() etc Dec 16 15:50:08 i track and sync lots of data Dec 16 15:50:24 sqlite to mysql Dec 16 15:50:28 How do you generally do it? Dec 16 15:50:31 and do timestamp stuff Dec 16 15:50:39 well 1st Dec 16 15:50:55 I maintain a last change list on the device Dec 16 15:51:07 and read the table.scheme timestamps online Dec 16 15:51:15 to see if anything needs doing to any table Dec 16 15:51:26 if it does then I get last access time of local Dec 16 15:51:41 and get only records > lastaccess Dec 16 15:51:46 from online Dec 16 15:51:51 the append Dec 16 15:51:56 or vice-versa Dec 16 15:52:13 ok, basically what I'm trying to do is almost the same. Except that I don't maintain a change list. Dec 16 15:52:24 I just overwrite across Dec 16 15:52:33 ewww Dec 16 15:52:36 why ? Dec 16 15:52:38 this an MVP Dec 16 15:52:44 ^^ Dec 16 15:53:02 Just a prototype Dec 16 15:53:10 k Dec 16 15:53:19 well then why care about dates ? Dec 16 15:54:01 well If something is changed on serverside, I pull it anyway. Dec 16 15:54:21 so to compare the change, I keep a list of local timestamps Dec 16 15:54:27 so easy then Dec 16 15:54:51 timestamp as a formatted timestamp Dec 16 15:55:10 yy-MM-dd hh-mm-ss Dec 16 15:55:11 ha got it! Dec 16 15:55:23 format the server side timestamps as well Dec 16 15:55:24 right? Dec 16 15:55:27 then comapre Dec 16 15:55:41 well no you dont want to manually populate something like that Dec 16 15:55:56 actually have a "timestamp" auto field done by mySQL Dec 16 15:56:08 so it generates it's own Dec 16 15:56:13 the other end is not mySQL actually ;) Dec 16 15:56:19 SQL Dec 16 15:56:28 It is parse.com Dec 16 15:56:44 so they use a java.util.Data as the timestamp Dec 16 15:57:39 well in online server i just have a field "timestamp" with auto value of "CURRENT_TIMESTAMP" Dec 16 15:57:56 I also read the schema table info for last change time Dec 16 15:58:06 not sure about that parse thingy Dec 16 15:58:29 ok. let me see, will update you when done. Dec 16 15:58:39 gl Dec 16 16:14:26 Can anyone point me in the right direction as to how to convert the acceleration on my device(including gravity) to rotation? Dec 16 16:36:49 isn't there an "create an opengl-platformer for android tutorial"-anywhere :( Dec 16 16:40:20 rynkan you mean a complete create a game tutorial ? Dec 16 16:42:26 ryanm: http://replicaisland.blogspot.hk/ Dec 16 16:43:32 or any other blogspot - the domain redirection stuff is odd Dec 16 16:44:58 Hello! How can I create some notification via ADB? Dec 16 16:46:25 marrrk notification ?? as in when something appears in logcat ? Dec 16 16:46:46 or you mean an android notification ? based on what event ? Dec 16 16:46:47 No as in when something appears in the notification bar. Dec 16 16:46:53 oh Dec 16 16:46:55 just any notification Dec 16 16:47:03 should show Dec 16 16:47:14 I can send emails but that's not a nice solution Dec 16 16:47:33 why would you want to do that? Dec 16 16:47:46 why not? Dec 16 16:47:54 StingRay_: Not everything, more like "this is how you make tiled-levels" Dec 16 16:47:59 http://goo.gl/huxrZ Dec 16 16:48:00 no, why? Dec 16 16:48:08 building an accessibility service Dec 16 16:48:15 Leeds: thanks, just what i needed Dec 16 16:48:29 and why would that have anything to do with adb? Dec 16 16:49:21 I just thought there might be a way to create some notification via ADB instead of writing an entire app that sends some random notifications. Dec 16 16:49:57 er... no - if you want an app, write an app! Dec 16 16:50:07 I don't want an app Dec 16 16:50:10 I just want notifications Dec 16 16:50:17 from device to adb? Dec 16 16:50:27 From anywhere to device Dec 16 16:50:37 what about from device to device? Dec 16 16:50:54 don't be lazy Dec 16 16:51:17 wilornel: how? Dec 16 16:51:21 I could do that probably Dec 16 16:51:37 marrrk what you want is a bit odd Dec 16 16:52:22 and no matter the type of transport, your gonna need an install app to register and give permissons to listen for any type of inbound notification Dec 16 16:52:59 I do have my app that listens to notifications Dec 16 16:53:24 Now I need to have some notifications pop up in order to test the app. Dec 16 16:53:39 right now I getcha Dec 16 16:54:08 well you can just create one to get fake recived in code no ? Dec 16 16:54:35 from the same app?= Dec 16 16:54:40 well yeah Dec 16 16:54:49 I'm not sure if that might work but then with some other app it might not because of security stuff Dec 16 16:55:05 what is it your sending receiving ? Dec 16 16:56:01 I want to get when users click on notifications Dec 16 16:56:20 your notification ? Dec 16 16:56:32 no any notification Dec 16 16:56:51 erm.... Dec 16 16:57:09 for what purpose ? cause that sounds a bit out of context Dec 16 16:57:19 for a psychological study about cell phone behaviour Dec 16 16:57:23 dude, it takes about 10 lines of code to pop a notification Dec 16 16:57:34 Leeds thats not what he's after Dec 16 16:57:37 you could have written the code 5 times over in the time you've been asking about it here Dec 16 16:57:59 StingRay_: he wants some demo notifications to spy on Dec 16 16:58:28 never thought about capture of 3rd party notifications though... that poss? Dec 16 16:58:46 *might* be as an accessibility service - almost certainly isn't otherwise Dec 16 16:59:14 could read logcat and capture eventId's maybe Dec 16 16:59:24 not something I know anything about really Dec 16 16:59:39 Leeds: I just said what it's for. It's not a proper accessibility service it is actually for spying on people Dec 16 16:59:50 whatever Dec 16 16:59:53 So right, I'm gonna make another app that creates notifications Dec 16 17:00:26 or just email or sms yourself Dec 16 17:00:27 lol Dec 16 17:00:42 to test it Dec 16 17:04:28 Where does NotificationCompat come from? Dec 16 17:04:32 It can't seem to be found Dec 16 17:06:13 support v4 library Dec 16 17:07:29 Yes, but it isn't found by my intellij. I'll check. Dec 16 17:10:07 i have a intellij/android related question: i just added 2 modules set modul1 dependent on modul2 but when i run it throws a runtimeexception classnotfoundexception, a bit earlier logcat: unable to resolve superclass ... Dec 16 17:10:14 any ideas what i did wrong? :O Dec 16 17:10:43 where a class in modul1 extends another class in modul2 Dec 16 17:25:42 what's the diffrenct between biuld target android 4.2 and google apis 4.2? Dec 16 17:26:29 one contains google apis like google maps the other doesnt Dec 16 17:26:29 ah now it finally works Dec 16 17:26:47 oh okay Dec 16 17:26:50 that makes sense Dec 16 17:29:38 actually. with the new google maps api, the only real difference is support for Google account authentication Dec 16 17:30:35 The new maps API uses the Google Play Services library which is installed to any device that needs it Dec 16 17:31:13 So great now I get a notification but it is not being recognised by the service Dec 16 17:31:36 mrenouf o yea? i didnt know that Dec 16 17:31:49 cool i guess Dec 16 17:31:55 https://developers.google.com/maps/documentation/android/ Dec 16 17:32:06 its new, in the last couple weeks Dec 16 17:32:23 you absolutely should not use the old maps API now Dec 16 17:32:49 thats awesome Dec 16 17:33:02 so long MapActivity Dec 16 17:33:09 yeah, sovles the maps in a fragment problem Dec 16 17:33:21 yea :\ Dec 16 17:33:27 i had lots of fun getting that to work b4 lol Dec 16 17:38:21 Might it be that accessibility is not turned on? How can I check that in 4.2? Dec 16 18:09:38 \is there any way to see what changes in revisions of for example the play services lib? Dec 16 18:23:52 hmm, I was thinking of using a physics library, but there are 2 versions, one in C++ and one (port) in Java Dec 16 18:24:21 would avoiding the NDK by going the Java route have severe performance penalties? Dec 16 18:26:41 ndk aint all too bad Dec 16 18:26:55 once you get it set up in your project its a breeze actually Dec 16 18:27:27 osxorgate: yeah, I was more wondering about platforms Dec 16 18:27:35 as I'd have to specify architectures Dec 16 18:27:56 systems takes care of that Dec 16 18:28:00 the Java way would 'always' work, while NDK is choosing, no? Dec 16 18:28:01 just compile for all 4 architectures Dec 16 18:28:31 but that could give me one huge APK, right? Dec 16 18:28:43 yes but you can split it up Dec 16 18:29:42 ah ok Dec 16 18:30:24 is it just for me, or have google+ been pretty slow the last days? Dec 16 18:30:33 communities often don't load at all and just throw an error Dec 16 18:30:55 timroes: I heard they had been adding features Dec 16 18:31:11 again error #500 when i click on communities.. Dec 16 18:32:51 timroes: works here Dec 16 18:33:26 hmm when i hover over the communities button i see forever the loading animation it even can't load my communities anymore Dec 16 18:33:49 timroes: oh, I'm not in any communities, I just clicked it on the left pane Dec 16 18:34:01 my own profile is pretty slow too, i guess some servers here having problems Dec 16 18:34:15 everything else (except G+) works fine, so its not my internet :) Dec 16 18:36:11 http://pastebin.com/dCQ3Jzj8 Dec 16 18:36:49 profligacy: hi again Dec 16 18:36:51 im using async tasks that employ httpURLConnection Dec 16 18:37:01 hey belgianguy Dec 16 18:37:58 can you help me? Dec 16 18:38:03 http://pastebin.com/dCQ3Jzj8 Dec 16 18:38:10 well, I do remember our last meeting Dec 16 18:38:30 what happened in our last meeting?! Dec 16 18:39:29 profligacy: is this a school project? Dec 16 18:39:53 yes Dec 16 18:40:03 why you ask? Dec 16 18:40:17 because your error reminded me of it Dec 16 18:40:39 OutOfBounds, you're addressing array indices that don't exist Dec 16 18:40:48 how to load an image with animation, like image comes from bottom of screen to the center Dec 16 18:40:52 is that hard to implement? Dec 16 18:41:10 mbarisa: sen ObjectAnimator? Dec 16 18:41:13 seen* Dec 16 18:41:39 nope Dec 16 18:41:48 also, you might find setLayerType interesting Dec 16 18:41:57 to hw accelerate it Dec 16 18:42:51 profligacy: this is a very common error when beginning programming, but a very nasty one, your assumptions about the length of your string do not hold Dec 16 18:43:14 belgianguy: thanks :) Dec 16 18:43:15 better test before doing substr and if not long enough, throw exception or handle differently Dec 16 18:43:44 i dont use substr though Dec 16 18:45:15 profligacy: at java.lang.String.substring(String.java:1474) Dec 16 18:45:27 maybe not directly Dec 16 18:45:35 but something you're calling is Dec 16 18:45:49 this is the code: http://pastebin.com/nkANWqPk Dec 16 18:46:14 maybe its param.getBytes.length() , i dont see why it would give an error thogh Dec 16 18:46:40 did you set breakpoints? Dec 16 18:47:04 profligacy: I also thought we agreed that Toast in doInBackground was a bad idea? Dec 16 18:47:25 it's not the UI thread, so that's probably not going to work Dec 16 18:47:36 use Log.w or Log.d instead Dec 16 18:47:59 yeah, but you can use Toast in onPostExecute perfectly.. Dec 16 18:48:15 mbarisa: I know Dec 16 18:48:16 im doing that as we speak Dec 16 18:48:27 onPreExecute too Dec 16 18:48:29 belgianguy: i am sure you do :D Dec 16 18:48:30 yeah Dec 16 18:48:32 but not in doInBackground Dec 16 18:48:37 i dont do anything in doInBackground Dec 16 18:48:42 lol Dec 16 18:48:47 i just get the stuff from the network Dec 16 18:49:18 arent i doing as little as possible in doInBackground? Dec 16 18:49:29 your catch statements have Toasts in them, and you might want to check if HTTP comes back with STATUS_OK Dec 16 18:49:49 vogella has a tutorial on that Dec 16 18:50:19 does it matter that i have another subclass async task Dec 16 18:50:30 within my parent class Dec 16 18:50:45 normally that's the whole idea of threading Dec 16 18:50:54 that you can spread the work Dec 16 18:51:27 profligacy: http://www.vogella.com/articles/AndroidPerformance/article.html Dec 16 18:51:39 scroll to 5. Tutorial: AsyncTask Dec 16 18:51:52 im very interested in that but i will read it later Dec 16 18:51:58 i need to debug asap Dec 16 18:52:03 how do i do the http ok thing Dec 16 18:52:09 I'm not Google Dec 16 18:52:16 look at the link, profligacy Dec 16 18:52:22 it checks the OK thing Dec 16 18:53:45 StatusLine? Dec 16 18:55:30 hm im not sure Dec 16 18:56:07 As soon as I run my second Aysnc Task, my app crashes. Dec 16 18:56:25 I have a button that calls it Dec 16 18:56:43 learn2stacktrace Dec 16 18:58:21 i looked at the stack trace Dec 16 18:58:37 im not sure what the exception is though Dec 16 18:59:03 thread exiting with uncaught excpetiong Dec 16 18:59:04 profligacy: http://developer.android.com/reference/org/apache/http/HttpStatus.html Dec 16 18:59:20 really, you should just look at the Vogella thing Dec 16 18:59:44 im pretty sure its nto the http ok Dec 16 18:59:47 i commented it out Dec 16 18:59:52 it still gives errors Dec 16 19:00:15 something about my thread im guessing Dec 16 19:00:53 found it Dec 16 19:01:10 it was me executing the wrong async task Dec 16 19:01:12 =/ Dec 16 19:02:43 it still has issues =( Dec 16 19:09:49 it works pretty good Dec 16 19:09:51 but 1 issue Dec 16 19:11:06 i think someone here might have the expericne to help me out, i have an async task (performing a HTTP post) and when it works everytime i call it, until i've done it a few times (mayb 3 or 4 times) before it doesnt Dec 16 19:11:29 then if i wait Dec 16 19:11:31 do it again Dec 16 19:11:33 it might work Dec 16 19:12:24 sometimes it takes really long Dec 16 19:32:31 Hello people, I am porting Android 4.2 for Cortex-A8 and I have some questions is this the place ? Dec 16 19:33:55 no Dec 16 19:35:27 ShadowCode: there is a Google group for that Dec 16 19:40:47 I thought #android-root was the channel for that kind of topic Dec 16 19:45:51 I am really confused about how to draw on a camera preview. It seems like most 'guides' and 'tutorials' on SO are contradictory. Dec 16 19:46:28 The SurfaceView cannot be drawn on directly, so there needs to be another view on top of it higher on the z-axis... Dec 16 19:46:50 I can't seem to be able to draw a red dot on the screen while my camera preview is rolling. Dec 16 20:35:31 Anyone using libgdx? Dec 16 20:39:08 any reason why my v.setPivotY(v.getMeasuredHeight() * 0.5f); would not be working? Dec 16 20:42:53 nebkat: have you debugged v? do you know what the values are? Dec 16 20:45:24 michaelnovakjr: v.getPivotY() = 562 Dec 16 20:45:29 as it should be Dec 16 20:46:18 and this only happens on one of the views Dec 16 20:46:24 (this is for the overscroll effect in launcher) Dec 16 20:46:37 the left screen isnt working properly, the right one is fine Dec 16 20:47:51 can pastebin what you are doing? Dec 16 20:48:25 michaelnovakjr: http://pastebin.com/kee76ryT Dec 16 20:49:25 the setting of pivot only once was just a recent optimization, i've tried with setting it on every draw with no success Dec 16 20:59:34 Hi, I was looking at the AssetManager and was wondering how to retrieve an asset within a folder in the assets directory (i.e. assets\images\myImage.png) Dec 16 20:59:57 Would I just give the path into the open method? Like assetManager.open("images\\myImage.png")? Dec 16 21:00:25 asdbjasndals, found the information in the docs, nevermind. Dec 16 21:11:37 i have a fcn openAcitivty that creates intentts and goes to an activity, but im in the PostExecute fcn of an async thread, and i need to pass a view as a parameter to openActivity, when i use "this" as a parameter it says its undefeined, any idea why this is? Dec 16 21:13:57 profligacy: 'this' would be pointing to your sub-class of ASync i believe Dec 16 21:14:21 youre right, how would i go about doing this Dec 16 21:14:23 if thats how your making the async thread Dec 16 21:14:54 profligacy: myself, i would add a field to the sub-class, but i think you can also use foo.this when 'foo' is the type of the class above it Dec 16 21:15:16 but it has to be a veiw right? Dec 16 21:15:33 im not quite sure what youre saying Dec 16 21:15:48 id need to see some of the code to know exactly what your trying to do Dec 16 21:16:18 how do i add a field to a subclass? Dec 16 21:16:30 depends on how you made it Dec 16 21:16:30 to the aysnc class Dec 16 21:43:20 ? Dec 16 21:43:42 there is a class Dec 16 21:43:48 it has a subclass Aysnc Task Dec 16 21:44:15 in that subclass, in the postExecute Fcn, i want to call openVote (which is it's parent class' function) Dec 16 21:44:26 openVote takes a view paramter Dec 16 21:47:51 I'm kind of confused. Are user interfaces for Android apps made in XML instead of Java? Dec 16 21:48:05 you can make them using both Dec 16 21:48:23 xml is the preferred method Dec 16 21:49:55 shawn: normally you define the layout in xml and do the action and behavior in code Dec 16 21:50:01 it's like html and javascript Dec 16 21:56:44 note that event when created in XML, it's still a java function that "expands" that XML into full featured Java objects Dec 16 21:59:56 it is a little closer to something like glade than it is html/js Dec 16 22:10:26 Hi, can I have the application act as a server for a webview? I mean i want to dynamically create the html on java, respond to json etc. I like the webview a lot because of the HTML5 support and javascript for the gui. etc. But I do not want to host the 'serverside' on the internet, but keep it in the app. Does this make sense? Dec 16 22:13:13 that seems overkill. Dec 16 22:14:50 there are frameworks for that sort of lunacy Dec 16 22:16:07 michaelnovakjr: then what do I do to achieve this? What I want is to craete my gui dynamically in html5/javascript instead of with the standard views. Designing those seems so much work compared to doing it in html and as a bonus you get a zoomable interface for free Dec 16 22:17:18 and all it costs you is perfomance and an incosistent look! Dec 16 22:17:22 i mean, facebook did it right Dec 16 22:18:52 Heya Dec 16 22:19:06 and the whole HTML thing worked out really well for them Dec 16 22:19:08 yea, I don't agree with the web app instead of native app choice Dec 16 22:19:11 What are the partitions on the device I can wipe If I want to make a phone "Fresh?" Dec 16 22:19:47 svm_invictvs: you just wipe data from settings... not really a developer question Dec 16 22:22:56 I agree on the 'that will make it less native' standpoint for apps. But my goal is not to make this like a webapp. My goal is to make the experience like a webpage, but without the need for a slow internet connection Dec 16 22:25:10 i have an async task, that makes http POST requests, it always works the first time i call it, but all subsequent calls dont necessariy return a response, any idea? im using HttpUrlConnection Dec 16 22:26:21 * profligacy i even used these before opening a connection: System.setProperty("http.keepAlive", "false"); Dec 16 22:26:21 System.setProperty("java.net.preferIPv4Stack" , "true"); Dec 16 22:44:37 Hello, i need to use one script language on my android app.. in researches i'm found a sl4a package, but sl4a need's one separate application on android. Is it possible to include the sl4a on my app in my compilation ? Dec 16 22:44:39 So I guess the answer I was looking for is addJavascriptInterface Dec 16 22:46:30 illusyon: There's always Rhino: https://developer.mozilla.org/en-US/docs/Rhino Dec 16 22:49:37 but the rhino uses the "web view" integration, i'm looking something about UI (Android component) integrations, like a sl4a "makeToast" example Dec 16 22:52:51 hello. Let's say I've got two threads A and B. B is a class that implements Camera.PreviewCallback. Thread A gets the Camera, and calls camera.setPreviewCallback(B). Thread B is running in a busy wait. When the camera dispatches the Preview Callback, will it run in thread B's timeslot or thread A's timeslot? Dec 16 22:53:31 anyone having gmail fail to upgrade or install from market? Dec 16 23:28:19 Best app author name ever: https://play.google.com/store/apps/developer?id=Sudo+Make+Me+An+App Dec 16 23:47:08 Hello guys, I need some help with http post, can anyone lend a hand? Dec 16 23:47:20 * offby1 glances around nervously. Dec 16 23:47:36 I know ... I know Dec 16 23:47:54 it's simple task but I'm having so much trouble with it Dec 16 23:49:12 It shouldn't be too difficult, I'm just not that good (sorry) Dec 16 23:52:14 Does anyone know why the requestAnimationFrame stops triggering during a page scroll on touch devices? Dec 16 23:53:10 my ListView occasionally shows a row which is bigger than others and empty, which should never be the case Dec 16 23:53:37 when I do for (i -> listview.getChildCount) print rowContents(), it shows the correct information Dec 16 23:54:08 Hima759: if it's _really simple_ code, and you can paste it somewhere, I'll look at it. But I'm an android n00b myself. Dec 16 23:54:26 Odds that I discover your problem: probably about 5%. Dec 16 23:55:04 this is an example of the problem: http://localhostr.com/g4nxAdbz8rfq Dec 16 23:55:09 anyone know what could cause that Dec 16 23:55:20 ? Dec 16 23:57:18 So I know I need to use AsyncTask to support APIs >9 Dec 16 23:58:05 * offby1 stares blankly Dec 16 23:58:13 lol Dec 16 23:58:24 take a look at this snippit Dec 16 23:58:25 http://pastie.org/5539336# Dec 16 23:58:35 let me know if you can make anything out of it Dec 16 23:58:53 AlCapwn: I can't begin to help you with your problem, but I will applaud you for hacking on an IRC client. Dec 17 00:00:03 Hima759: nothing jumps out at me Dec 17 00:01:44 ok Dec 17 00:01:51 Anyone else maybe? Dec 17 00:02:53 I need to post some data on a server via http post, I was able to successfully get data. You'd think posting wouldn't be too different Dec 17 00:05:48 yep Dec 17 00:11:40 to have 1% battery increment,what are the xml files i have to move? Dec 17 00:12:45 Hi there, i'm reading about sl4a and it ui native callings, but it needs installing the other application in your android for that. I need compile sl4a on my own package, is it possible ? thanks Dec 17 00:12:48 ? Dec 17 00:14:26 anyone? Dec 17 00:14:54 AdamOutler Dec 17 00:15:04 your here? Dec 17 00:16:41 when using MediaRecorder to record a video using CameraProfile.HIGH i notice the audio is always missing the first half second or so from the start of the vid Dec 17 00:18:44 is this my crappy device or is this expected? Dec 17 00:19:06 bueller? Dec 17 00:22:26 i have two threads that i need to execute in succession Dec 17 00:22:31 async tasks Dec 17 00:22:54 can i place the execute fcn of the latter thread in the first one's postExecution method? Dec 17 00:39:04 profligacy: yes, as it is the UI thread Dec 17 01:00:54 it seems updating the application android:label in an updated version of the app does not change the label of any existing launcher icons that have been dragged onto a home screen? Is there any way to force the launcher to refresh the icon label? Dec 17 01:05:35 Hey there. Just got my n4 and Google now is not working. No cards are showing up just web search. Any recommendations? Dec 17 01:07:52 Sorry first reboot. Dec 17 01:08:02 Any recommendations? Dec 17 01:08:55 DerDaniel, when you say google is not working do you mean play store? try setting date if so Dec 17 01:09:17 Google Now is not working Dec 17 01:10:45 Only web search is working Dec 17 01:17:07 is there a cpu limit on the emulator? Dec 17 01:17:27 because i's running really really slow and im only using about 10% Dec 17 01:18:38 of all the things i could complain about eclipse, its loks would not be on the top of my list Dec 17 01:19:15 have you tried using it on a smaller monitor? Dec 17 01:19:19 it's pretty bad Dec 17 01:40:34 I'm thinking about android for business applications, some POS stuff, is there any tablets that are released that are geared towards more commercial usage? Dec 17 02:03:32 Technodrome, i bet panasonic makes a toughbook tablet Dec 17 02:03:50 or symbol, the popular POS hardware/software company Dec 17 02:16:15 Guys, why would the orientation sensor be deprecated? Dec 17 02:18:30 just curios what are you using it for? Dec 17 02:20:10 to get the orientation of my device Dec 17 02:21:17 lol, no I meant why? Dec 17 02:21:39 Oh Im trying to understand why it would be deprecated Dec 17 02:22:17 oh Dec 17 02:23:35 Do you know why? Dec 17 02:24:15 perhaps there are better sensor devices Dec 17 02:24:49 wilornel: there's probably a new API for it. Dec 17 02:24:51 that integrate multiple sensors into one for a better result Dec 17 02:24:56 actually google recommends to use .getOrientation() instead Dec 17 02:25:02 Hmmm I see Dec 17 02:25:10 SpeedEvil: thats interesting Dec 17 02:25:20 Thanks Dec 17 02:38:03 Technodrome: lenovo makes a few Dec 17 02:39:55 eclipseIsUgly: really? Dec 17 02:46:24 Technodrome: looking at their site it looks like the latest one is windows 8 only but the ideapad is android Dec 17 02:46:43 Technodrome: they had a thinkpad tablet that was android a while back Dec 17 02:53:16 eclipseIsUgly: i just mean something that could be used as a pos for a company Dec 17 02:53:30 obviously something on all day and could take a *bit* of abuse Dec 17 02:53:37 wow you event rant here lol eclipseIsUgly Dec 17 02:54:14 mmhmm **** ENDING LOGGING AT Mon Dec 17 02:59:58 2012