**** BEGIN LOGGING AT Fri Sep 06 02:59:59 2013 Sep 06 03:04:16 I have a database and a ListFragment that uses a cursorLoader and a simpleCursorAdapter to populate the listView and it is working good. Now I was wanting to make the activity that first appears show the newest item in the database. Since it appears that the simpleCursorAdapter is only for listViews, what do i use for 1 item? Sep 06 03:05:17 The ListFragment has a Listview doesnt it? Sep 06 03:13:27 Yes, but that part it working good. Now i want to make my regular activity load just the newest item from the database. Sep 06 04:30:24 <^cheeky> myOrientationEventListener.enable(); could i use this right after i create a new listener for this in activityCreated() ? .. but when i press the button to take pic my camera . just freezes .. Sep 06 04:38:36 Does anyone have any experience with implementing facebook with android studios? Sep 06 04:47:22 Can someone tell me what this means Ive been stuck for 4 hours. "Gradle: A problem occurred evaluating root project 'PerksProject'. > Could not find method compile() for arguments [file collection] on root project 'PerksProject'." Sep 06 05:03:40 Can someone tell me what this means Ive been stuck for 4 hours. "Gradle: A problem occurred evaluating root project 'PerksProject'. > Could not find method compile() for arguments [file collection] on root project 'PerksProject'." Sep 06 05:09:06 Hello Guys I am new in this room so have no idea is it allowed to ask any confusion if i have related android app development ? Sep 06 05:11:37 sure Sep 06 05:16:39 Magicalboy, that's exactly what this place is for :P Sep 06 05:17:12 <^cheeky> Do i have to create a Camera app to be multi threaded .. if i am using .. onOrientationChangedListener .. coz when i frist run the ap and take a pic .. it actually .. sets the picture in portrait if it was taken in portrait but next time i take it .. once i click the take button b000m .. it just freezes or deadlocks .this is only when i enable the onorientationchangelistners.enable(); right after i create one .. Sep 06 05:17:57 I am implimenting contextmenu in under phonegap app i made bridge over webview though inferface now Menu is opening fine but now question is how do i pass data to context menu like Copy String and Etc Menu Information Sep 06 05:18:44 Magicalboy: this is more android dev, you could try the webby stuff in #phonegap Sep 06 05:18:49 sure some1 can help there Sep 06 05:18:52 So made new view class i was thinking that i will pass data thought view Class Coz Context menu was accepting only View under peremeters check out this code http://snipt.org/Agfz7 Sep 06 05:19:11 but after that when menu is tigger for opening app close and not responding Sep 06 05:19:12 that is to say I would assume that many have done what your wanting :) Sep 06 05:19:49 I will be happy if anyone give me solution for this.. and Sorry 4 my bad english.. Sep 06 05:20:40 Magicalboy: your english is fine… but I just gave you a better place to ask … so I question your reading :) Sep 06 05:23:24 StringRay_ do you know how to finesh this task.. Actually i just wanted to know the way to pass a String like Copy Text to ContextMenu ..So i can use them later in Action Sep 06 05:23:28 <^cheeky> why ... i made sure i did everything right to my knowledge .. released stuff .. when needed .. blah .. i dunno .. any suggestions at least how to debug it .. i have log statments .. Sep 06 05:23:44 * ^cheeky sinks into seat and sighs Sep 06 05:24:07 ^cheeky maybe look at the aosp camera app Sep 06 05:24:48 <^cheeky> asop .. Sep 06 05:24:54 <^cheeky> sorry i am retarded Sep 06 05:24:58 aosp Sep 06 05:25:07 <^cheeky> i saw the source code fori Sep 06 05:25:08 <^cheeky> fo it Sep 06 05:25:11 <^cheeky> *for it Sep 06 05:26:15 take a breath :) Sep 06 05:26:47 <^cheeky> heh :) Sep 06 05:26:49 <^cheeky> yeah maybe Sep 06 05:26:59 Can someone please tell me what this means "Could not find method compile() for arguments [file collection] on root project" ? Sep 06 05:27:22 so anybody who can help me with this ? Sep 06 05:28:27 <^cheeky> the thing is i see the code for cameraManager.java .. i see it enables the listener .. right after .. it gets created, but i dont see it ..been disabled in that class ... Sep 06 05:29:07 <^cheeky> something ..is messed up .. coz when i first took a pic .. it worked .. second time KABOOOM .. just dead lock freeze .. threading .. Sep 06 05:29:23 so debug it Sep 06 05:29:29 and then correct the mistakes Sep 06 05:29:57 <^cheeky> seriously debugging an android app for me is really .. scary for me heh .. so much going on .. Sep 06 05:30:15 <^cheeky> yeah your right i am gonna maybe watch something your tube and comeback and debug it Sep 06 05:30:47 <^cheeky> i dunno how the hell i am gonna succeed as a programmer.. Sep 06 05:30:53 <^cheeky> crap i dont even have tea Sep 06 05:31:06 <^cheeky> mebe i need a kit kat :P Sep 06 05:33:10 <^cheeky> g00s: when you said ASOP .. you meant .. the camera app source code right Sep 06 05:33:30 yes Sep 06 05:33:58 probably any android book goes over how to use the camera as well; surely there are a ton of tutorials also Sep 06 05:33:58 StingRay_: What is the better place to ask ? Sep 06 05:34:16 #phonegap Sep 06 05:34:20 they do the web stuff Sep 06 05:34:29 :( Sep 06 05:35:03 But my Question is Native Stuff nothing to do with phonegap Sep 06 05:35:12 <^cheeky> yes .. i mean i got the camera to work ... but when i try to implement the listener all this shenanigans initiate! Sep 06 05:35:30 Menu is Opening i just want to know how to pass data into menu so i can perform action like Copy Delete Sep 06 05:35:33 Etc Sep 06 05:35:49 Magicalboy: then what you're asking is how to use a string in a context menu ? read the class docs and do whatever you want! Sep 06 05:35:51 i Want to Pass Data like ID,CopyText Sep 06 05:36:03 <^cheeky> Magicalboy: bundle it up ?? Sep 06 05:36:23 http://snipt.org/Agfz7 Sep 06 05:36:37 i'm having trouble making an intent-filter match an intent i'm building.. i've got an action, that matches, and now i'm passing it a data uri and it fails Sep 06 05:36:44 I made this to pass data.. but when menu is fired app stop working Sep 06 05:37:33 i thought all the things in intent-filter were restrictors.. ie, if i don't specify any data elements, then there simply won't be any restrictions, right? Sep 06 05:37:43 do i have to specify a data element if i'm going to be passing it URIs Sep 06 05:38:39 Magicalboy: go do a few tutorials on menus in android Sep 06 05:38:43 it will help you lots Sep 06 05:41:30 Okay.. Sep 06 05:42:39 <^cheeky> oh man i need . git to download the source blaah Sep 06 05:43:37 <^cheeky> oh nice Sep 06 05:43:42 Howdy Sep 06 05:45:26 Still a bit new at UI layout. Anyone able to provide a quick summary of how the UI in "Settings>Apps" is put together? (The list of apps where you can tab between "Downloaded", "Running", "All") Sep 06 05:45:49 Is it just a tab container and three different list views? Sep 06 05:46:23 viewPager and listViews maybe ? Sep 06 05:46:42 snapshot the UI and have a look Sep 06 05:46:50 but there will be many ways to do it Sep 06 05:57:40 <^cheeky> g00s: its using threads !!!! Sep 06 05:59:15 StringRay_ can you check and tell me http://learnandroideasily.blogspot.in/2013/01/creating-context-menu-in-android.html how does that number varible passed into onCreatecontextMenu Sep 06 06:00:03 it doesnt Sep 06 06:00:29 everything that needs to be done is in onContextItemSelected Sep 06 06:01:07 a button/menu item does not often carry all the information … but is mostly used as a pointer/value in order to execute some other code Sep 06 06:01:23 I think you maybe thinking about things in a very…erm… odd way Sep 06 06:01:40 everything you need is in the example you pasted Sep 06 06:07:04 StingRay_: when you say snapshot the UI... Is there some kind of debugger that will show me the current view hierarchy of an app or something? Sep 06 06:07:09 Can the view used as the parent during inflation automatically attach an onClickListener to the inflated view? Sep 06 06:07:39 BHSPiMonkey: yes there is Sep 06 06:08:15 I just want to pass varible using parameter or any other way into contextmenu seleted Sep 06 06:08:18 so complete task Sep 06 06:11:19 AyushD: are you Magicalboy ? Sep 06 06:11:26 you already have had your answer Sep 06 06:11:29 twice now Sep 06 06:11:49 is this some homework or something ? Sep 06 06:12:06 Yes Sep 06 06:12:24 well go away and learn, rather than attempting to go direct to an answer Sep 06 06:12:24 Idk how my nick changed Sep 06 06:12:39 you just pasted the answer and I explained Sep 06 06:12:43 in that link Sep 06 06:13:04 I'm sorry but if you dont understand you need to go back a bit an learn the basics Sep 06 06:14:23 Are there any particulars I'd need to know to implement an activity like the video call activity in Hangouts? (the activity would need to persist even if the app's main screen was returned to or hidden, and a notification would hang around until the "call" is ended) Sep 06 06:14:48 do i need to make AdapterContextMenuInfo for passing varibles ? Sep 06 06:15:20 Magicalboy: honestly you are asking rather odd questions now Sep 06 06:15:36 you pass a variable however you want… to anything you want if it accepts it Sep 06 06:15:37 Okay sorry first lets me try and then ask . Sep 06 06:16:25 Fundimentals fundi = new Fundimentals(); Magicalboy.consume(fundi); ?? Sep 06 06:17:23 * StingRay_ now looks at his code for oppertunities to name some variables "fundi" cause dam thats a cute reference :) Sep 06 06:17:39 opportunities* Sep 06 06:17:52 StringRay_ one last question can we create  ListView list = (ListView)findViewById(R.id.list); without having it on XML file ? Sep 06 06:18:08 simply no Sep 06 06:18:12 that would be Sep 06 06:18:22 ListView list = new ListView(this); Sep 06 06:18:36 oh thanks.. lets me try :D Sep 06 06:19:22 when I said no there, it should have been yes Sep 06 06:19:25 :) Sep 06 06:19:37 it's late here…well early now.. 7:19 am Sep 06 06:21:13 <^cheeky> ok .. this is really messed .. up :( coz honestly .. i just ran the code in the android studio emulator... on a nexus 7 .. and it doesnt crash at all !!!!!! but when i run it on an actuall device .. it just freezes Sep 06 06:21:47 Does anyone debug NDK apps with the eclipse ADT? I am debugging a shared library and i can get it to stop at my breakpoints but i can not inspect any variables. Any ideas? Sep 06 06:22:22 GDB keeps telling me No symbol "dt" in current context Sep 06 06:22:43 and the expression window in eclipse gives a similar error Sep 06 06:26:57 it appears that all my files are being built with -g -O0 and GDB "info sharedlibrary" shows the symbols pointing at the unstripped shared library binary Sep 06 06:28:41 idk its showing error Sep 06 06:28:42 ListView contextmenudeal = new ListView(this.cContext);; Sep 06 06:28:42 ((Activity) this.cContext).registerForContextMenu(contextmenudeal); Sep 06 06:28:42 ((Activity) this.cContext).openContextMenu(contextmenudeal); Sep 06 06:28:47 Code is this Sep 06 06:36:17 Is there a way to dump the view hierarchy over adb in IntelliJ like you can in Eclipse? Sep 06 06:36:26 DDMS Sep 06 06:38:55 Hmm, found it now, but it doesn't work Sep 06 06:39:13 Tries for about 10 seconds and then says "Unexpected error while obtaining UI hirarchy" Sep 06 06:39:26 "Reason: Error obtaining UI hierarchy" Sep 06 06:41:37 Ah, I'm seeing one report that it's completely broken on multi-user devices. Sep 06 06:43:38 Does anyone know how an AdapterView knows which child has been clicked when a click happens in its bounds? Sep 06 06:45:28 BHSPiMonkey it was always flaky as hell Sep 06 06:46:50 dcow: same as any view, an inteface/listener Sep 06 06:46:52 There are two possibilities. 1) When a View is inflated using an AdapterView as it's parent it is given an onClickListener that reports clicks to the parent AdapterView's getPositionForView with a reference to itself. Or, 2) The default onClickListener for an AdapterView determines which child view the click happens in and responds by calling getPositionForView, etc. Sep 06 06:47:28 I don't think it's option 2. Sep 06 06:47:46 But I'm having a hard time figuring out if it is, indeed option 1. Sep 06 06:49:09 Because there are only a few places getPositionForView is used in the frameworks/core/java/android package and they are only within subclasses of AdapterView. Sep 06 06:50:35 <^cheeky> g00s: ... i dunno what to make out of this .. my app works if i run it in an emulator but not on the physical device.. Sep 06 06:50:51 happens often Sep 06 06:51:00 well, its a common scenario Sep 06 06:51:16 <^cheeky> it is :/ Sep 06 06:51:20 <^cheeky> :( Sep 06 06:51:42 <^cheeky> man its 3 Am and i accomplished nothing yay for me Sep 06 06:53:26 <^cheeky> and a test app i wanted to create .. would be using a flash feature .. but i have no idea on how to test it without actually having a device .. that can run the app and see if the flash turns on .. i mean i have nexus phone which has flash but only way i can test it on that is if i root the device .. Sep 06 06:53:30 <^cheeky> any suggestions .. Sep 06 06:53:38 <^cheeky> please .. Sep 06 06:54:00 debug it ? Sep 06 06:54:05 what are you expecting to hear? test on your hardware or find people to test for you. Sep 06 06:54:54 i believe you can turn the flash on using the camera FLASH_MODE_TORCH on every nexus device. it's true that different devices behave differently though but not to the level of needing root on any modern device Sep 06 06:57:38 <^cheeky> well i was hoping of way i could write the app i want .. and use testing or unit testing .. and then release it to the app store and get it on my non rooted nexus device .. to see if it even works .. i mean only way i could go about doing this is rooting my nexus ? Sep 06 06:57:55 .. What? Sep 06 06:58:03 Do you not know how to install a debug build or something? Sep 06 06:58:25 <^cheeky> StingRay_: i did debug it .. but the camera problem i was working on trippy worked fine on emulator but not on this POS pipo s1 device i purchased for development Sep 06 06:58:46 Wait, so you don't have a nexus device? Sep 06 06:58:47 <^cheeky> wait .. a debug build ... no ... Sep 06 06:59:05 <^cheeky> i have a nexus fone .. Sep 06 06:59:08 <^cheeky> but its not rooted Sep 06 06:59:08 I'm confused. Also, use less ellipses. Sep 06 06:59:13 Why doesn't this method: http://pastebin.com/sFAr4YzK change the background of my ListView item? (It does change the color variable on the object) Sep 06 06:59:32 What does rooting have to do with installing a debug build of your app on your phone? Sep 06 07:00:02 <^cheeky> wait .. so i can .. install a debug build on my non rooted phone .. Sep 06 07:00:26 <^cheeky> omg .. i am sorry .. i am really new to mobile development Sep 06 07:00:27 I'm just going to refuse to say anything else unless you stop uses ellipses like they're commas. Sep 06 07:00:27 ^cheeky, ... why do you want to root the device? Sep 06 07:00:36 *using Sep 06 07:00:59 <^cheeky> Nilium: sorry Sep 06 07:01:01 Do AT&T-specific devices still prevent sideloading? Sep 06 07:01:17 ^cheeky: to enable usb debugging go to system Settings > About phone > Build number and tap that like 10 times and it will say you are now a developer. Then go back and press developer settings and enable USB Debugging Sep 06 07:01:20 Nilium: I think they stopped doing that a long time ago Sep 06 07:01:26 Ok. Sep 06 07:01:31 Nilium: they don't and even when they did usb debugging worked, just sideloading from within android didn't Sep 06 07:01:38 <^cheeky> lemonxah: i dont want to, but i Nilium just told me that i could install a debug build on my non-rooted nexus device ? Sep 06 07:01:47 I don't keep track of it 'cause I've never been in a position to use anything on AT&T. Sep 06 07:05:22 what ide do you use ^cheeky ? Sep 06 07:05:37 cause its as simple as plugging the phone in and clicking on run Sep 06 07:05:43 boom you have it on your phone Sep 06 07:06:10 or send the apk that gets built to your phone and just open it on the phone it will tell you to turn unknown sources on and then install Sep 06 07:06:17 no rooted devices need :/ Sep 06 07:06:58 <^cheeky> this is too good to be true Sep 06 07:07:05 <^cheeky> i wanna cryNow() Sep 06 07:07:22 <^cheeky> well i am in <3 android studio .. Sep 06 07:07:49 <^cheeky> so i just plugged in my n4 .. turned on debugger options .. .. but when i connect it to my phone Sep 06 07:07:51 <^cheeky> ahhh nvm Sep 06 07:07:52 why do you wanna cry? Sep 06 07:07:56 <^cheeky> i need the vendor ID Sep 06 07:08:11 at first i did not like android studio Sep 06 07:08:14 too many issues Sep 06 07:08:26 hello all Sep 06 07:08:29 <^cheeky> coz i purchased this PIP0 s1 7 inch tablet for androd dev .. and taht was a waste of money when i ahve a n4 Sep 06 07:09:21 hello ali__ Sep 06 07:09:30 <^cheeky> but so far for me its been good .. only thing i miss in eclipse ADT is .. that it doesnt have the autocomplete feature .. i mean it doesnt but only when you press the "." on a function Sep 06 07:09:37 anyone does have any idea why this code is not working Sep 06 07:09:37 http://snipt.org/AgfE6 Sep 06 07:09:55 ctrl-space Sep 06 07:10:11 i used to dev in eclipse android-studio is based on intelliJ Sep 06 07:10:20 <^cheeky> yeah Sep 06 07:11:20 but in both you can do ctrl-space for autocomplete Sep 06 07:14:58 <^cheeky> lemonxah: so i added the vendor id for google == 18d1 Sep 06 07:15:12 <^cheeky> i am so excited thank you Sep 06 07:15:20 what operating system are you running? Sep 06 07:15:27 <^cheeky> ubuntu Sep 06 07:16:14 Why doesn't this method: http://pastebin.com/sFAr4YzK change the background of my ListView item? (It does change the color variable on the object) Sep 06 07:21:30 <^cheeky> lemonxah: i added both vendor ids google and LG and in adb -devices doesnt show of a list of devices Sep 06 07:22:05 soz had a meeting Sep 06 07:22:26 <^cheeky> thank you Sep 06 07:22:57 have you enabled developer options on the phone? Sep 06 07:23:04 it's "adb devices" not "adb -devices" Sep 06 07:23:05 i am guessing no? Sep 06 07:23:56 <^cheeky> yes Sep 06 07:23:57 <^cheeky> sorry Sep 06 07:24:01 ^cheeky, have you enabled developer options on your device? Sep 06 07:24:15 <^cheeky> adb devices not showing but when i do lusb i see the vedor id Sep 06 07:24:17 and you have checked USB debugging / Sep 06 07:24:19 <^cheeky> yup Sep 06 07:24:24 and you have checked USB debugging? Sep 06 07:24:48 <^cheeky> nope Sep 06 07:24:49 <^cheeky> Sep 06 07:24:50 <^cheeky> your right Sep 06 07:24:56 <^cheeky> yay!!!1 Sep 06 07:24:56 <^cheeky> omg Sep 06 07:24:59 <^cheeky> DUN DUN Sep 06 07:25:06 <^cheeky> i am gonna run it on my n4 Sep 06 07:25:07 <^cheeky> ahahaha Sep 06 07:25:10 <^cheeky> awsomnesss Sep 06 07:25:55 chill, dude... Sep 06 07:26:02 <^cheeky> sorry Sep 06 07:26:08 are you new to development? Sep 06 07:26:26 lol oops Sep 06 07:26:41 dont press ctrl-w when this window has focus Sep 06 07:26:42 lemonxah: are you new to IRC? :P Sep 06 07:26:46 yeah Sep 06 07:26:56 i am indeed Sep 06 07:27:05 lemonxah: and alt+f4 gives you admin powers! :P Sep 06 07:27:13 let me test that Sep 06 07:27:26 .. :( nope alt+f4 just moved my window around Sep 06 07:27:47 changed it from alt-f7 cause alt-f7 is find all usages in android studio Sep 06 07:27:49 :) Sep 06 07:28:09 * lemonxah wanted to close a browser window but never gave chromium focus before pressing ctrl-w Sep 06 07:28:29 i use ctrl+f4 to close browser tabs Sep 06 07:29:03 too far to stretc for me though Sep 06 07:29:08 strech even Sep 06 07:29:15 stretch Sep 06 07:29:27 meh .. i cant spell and i am peroud of it Sep 06 07:30:52 <^cheeky> awsomenes lemonxah thank you and thank other for putting up with my stupid questions Sep 06 07:31:38 <^cheeky> yup my app ran on my phone .. but now at least i am getting better results .. its telling me that my parameters are wrong .. but thats a start! Sep 06 07:31:46 ^cheeky, are you new to development? just wondering :) Sep 06 07:32:24 or just new to android? Sep 06 07:34:09 hello! is it possible to get application Context from a preloaded system library? Sep 06 07:34:30 <^cheeky> well .. to android .. but i am no pro @ development either .. have done my fair share but first time in mobile development .. so i would say i am still new in both; i dont consider myself very high as you can tell lol Sep 06 07:35:27 oles i dont understand the question Sep 06 07:37:03 Why doesn't this method: http://pastebin.com/sFAr4YzK change the background of my ListView item? (It does change the color variable on the object) Sep 06 07:37:29 zyngawow, the code looks ok but its in isolation Sep 06 07:37:51 lemonxah, what do you need? Sep 06 07:38:05 does getProductsInCatergory actually get data that is in the dataset used by die adapter? Sep 06 07:38:15 lemonxah, i implement a system library which is preloaded in each application(using preloaded-classes of AOSP), i need to get a Context of the application in my library code. Sep 06 07:38:31 lemonxah, dataset Sep 06 07:38:34 <^cheeky> my app WORKS !!!!!!!!!!!!!!!!!!! Sep 06 07:38:46 ^cheeky: way to go Sep 06 07:38:47 oh ok oles i understand now .. sorry i haven't anything like that yet Sep 06 07:39:00 well done ^cheeky Sep 06 07:39:16 <^cheeky> omg .. i started this .. like @ 5:30 something .. and its 3:39 am !!!! Sep 06 07:39:40 zyngawow, the data that backs the adapter is that where you are getting and setting the colors too? Sep 06 07:39:51 Yeah Sep 06 07:40:05 if thats the case then this code should work Sep 06 07:40:36 <^cheeky> thank you but its nothing cool i just finished an app that does the basics of stuff .. fragments, intents, camera , speak with other apps, implemented two pane layout .. and also page viewer which i think is awsome hehe Sep 06 07:41:13 ^cheeky: wov thats a lot further than hello world.. :) Sep 06 07:41:18 <^cheeky> i have another question .. i know its really important .. to do unit testing .. is there a good read. or tutorial .. i could follow to wire unit tests for this app i just did Sep 06 07:41:56 <^cheeky> miha. yeah i love programming awsome devices .. blah i still havent dont multi threading broadcasts .. or async stuff .. or even GPS stuff Sep 06 07:42:35 <^cheeky> miha .. but i suck @ development .. i really love it .. but i guess iam slow Sep 06 07:43:26 It doesnt for some readon Sep 06 07:43:28 reason Sep 06 07:43:46 <^cheeky> i just graduated .. and i really wanna do app development or mobile stuff .. not like anyone here cares .. but iam really nervous about it. Sep 06 07:46:34 ^cheeky, just cause we might not be nervous about development but we all love it thats why we are all doing it Sep 06 07:46:46 <^cheeky> lalal .. now what .. guess it 4 am .. and iam not sleepy .. i guess make some tweeks to the app i just did .. thats sad .. that i spend so much time when my app worked as programmed .. and only hours later when i put it on my n4 that it worked LAM Sep 06 07:46:51 <^cheeky> *LAMENESS lol Sep 06 07:47:43 And the data is changed in the dataset according to the debugger Sep 06 07:47:46 <^cheeky> i love it .. but just scared i wont be good at it .. so i keep trying and trying Sep 06 07:48:15 zyngawow, the data has changed but is that the data that the adapter uses in bindView? Sep 06 07:48:39 Yes, it is a variable called items, and ArrayList Sep 06 07:48:52 ^cheeky, i have been developing for 27 years, it nevers gets better :) you always have to keep learning and keep trying Sep 06 07:49:42 an* ArrayList Sep 06 07:49:47 So no idea why it doesn't work Sep 06 07:51:05 <^cheeky> lemonxah: wow .. and thanks man .. nice to hear .. you know in my internship/s kinda sucks that we developers get treated like we in foxcon .. which really sucks Sep 06 07:51:57 foxcon? Sep 06 07:52:14 zyngawow, try on a smaller scale maybe create a demo app Sep 06 07:52:28 <^cheeky> lol like we just work horses .. i dunno Sep 06 07:53:14 my company doesn't treat us like that :) Sep 06 07:53:23 i am 1 of 3 developers on our android app Sep 06 07:53:33 its the biggest app in africa Sep 06 07:53:46 <^cheeky> Wow Sep 06 07:54:03 the app witht he most installs originating from south africa Sep 06 07:54:07 <^cheeky> yeah i am about to embark on a crazy journey in a few months so will see i hope i get a company like that Sep 06 07:54:17 <^cheeky> whats the app :P Sep 06 07:54:20 mxit Sep 06 07:54:27 but the current one on the marketplace Sep 06 07:54:32 i had no hand in Sep 06 07:54:37 that is actually why i am here now Sep 06 07:54:45 cause that one looks bad and its buggy Sep 06 07:54:50 we are redoing it propperly Sep 06 07:56:33 content providers and content resolvers .. i have to say is the best thing on android for data abstraction Sep 06 07:56:41 <^cheeky> wow Sep 06 07:56:46 wow? Sep 06 07:57:01 <^cheeky> so 27 years for me to create to get where you are Sep 06 07:57:09 heh no Sep 06 07:57:28 <^cheeky> i still havent meddled with content providers well not in detail .. Sep 06 07:57:30 thats not how development works Sep 06 07:57:41 they are good its worth a look Sep 06 07:57:42 <^cheeky> maybe ill create a simple RSS reader or video something lol Sep 06 07:58:13 eyah Sep 06 07:58:32 mxit is a mobile social network and instant messenger been around since before facebook Sep 06 07:58:40 it works on over 3000+ phones Sep 06 07:59:00 <^cheeky> !!!!!! Sep 06 07:59:01 j2me blackberry windows phone android ios Sep 06 07:59:26 but it didn't take off in the states or europe Sep 06 08:01:02 <^cheeky> thats still freaking awsome !!!!!!!!! Sep 06 08:04:47 <^cheeky> lemonxah: that app is a hella mix of things m8!! Sep 06 08:07:38 i know we are fixing it up now Sep 06 08:07:44 currently it looks SOOO great Sep 06 08:07:50 but its not release ready Sep 06 08:08:21 Hi all, same question like yesterday: I have a broadcastreceiver for an incoming call (sip). I start a new activity inside the onreceive. The activity is launched if the app is open/visible. If my device is in sleep mode or the home screen is visible, the activity doesn't start. How can I fix this? PS: I use an action for launching the activity and the action is inside the intent filter of my activity (in manifest file) Sep 06 08:08:28 <^cheeky> lemonxah: :) Sep 06 08:10:10 FrancescoV, if the device is locked, you need to acquire a full wake lock Sep 06 08:10:24 it will also help to make the activity appear 'on top' of the lock screen Sep 06 08:10:38 I already have android.permission.WAKE_LOCK Sep 06 08:10:51 FrancescoV, if you want to be able to do something like that use a WakefullBroadcastReceiver Sep 06 08:10:59 permission != acquiring a full wake lock Sep 06 08:11:21 ok tnx! I will check it both :) Sep 06 08:12:56 specifically you'll probably need the flags WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED and possibly WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD (though this will only dismiss the keyguard if is not a 'secured' one e.g. pattern/pin) Sep 06 08:14:09 and for the wake lock, you will want PowerManager.ACQUIRE_CAUSES_WAKEUP in order to make the screen turn on Sep 06 08:14:57 Kegsay: so I need to set those 3 as flags in on my intent? Sep 06 08:15:34 something more in the manifest? in my IncomingSIPCallActivity¨? Sep 06 08:15:41 depends how you setup your activity. If the activity is a dedicated 'I only appear when there's an incoming call' then you might as well dump it in the activity Sep 06 08:15:51 the flags themselves reside in WakeLock and Window Sep 06 08:16:02 e.g. getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED) Sep 06 08:16:52 this can be just inside the oncreate of the activity? Sep 06 08:16:58 and powerManager.newWakeLock(PowerManager.ACQUIRE_CAUSES_WAKEUP | , "wake lock tag") Sep 06 08:17:21 for the window, sure. For the wake lock, you need to be sure to release it when your activity is paused Sep 06 08:22:31 Kegsay: full wake lock is deprecated, I should use FLAG_KEEP_SCREEN_ON but how about the tag string? Sep 06 08:23:09 can i choose this tag? Sep 06 08:23:15 yes you can choose it Sep 06 08:23:19 it is arbitrary Sep 06 08:24:10 remember to acquire it using wakeLock.acquire() and release using wakeLock.release() Sep 06 08:24:35 acquire in oncreate and release in onpauze? Sep 06 08:26:11 well onresume / onpause Sep 06 08:33:51 heya guys Sep 06 08:34:11 Consider this a rant if you will, but holy hell is the camera preview pissing me off. Sep 06 08:34:27 I cannot for the life of me get it to be full screen and not stretch Sep 06 08:34:40 i.e. "centerCrop" Sep 06 08:43:15 did the android studio update break gradle for anyone else? Sep 06 08:48:44 The workaround is written on the website Sep 06 08:49:03 is it? Sep 06 08:49:07 checking that... Sep 06 08:50:27 build/core/base_rules.mk:67: * Module is attempting to use the 'user' tag. This Sep 06 08:50:30 build/core/base_rules.mk:68: * used to cause the module to be installed automatically. Sep 06 08:50:33 build/core/base_rules.mk:69: * Now, the module must be listed in the PRODUCT_PACKAGES Sep 06 08:50:50 what is PRODUCT_PACKAGES? Sep 06 08:50:59 hmmm uberushaximus I'm on the website at developer.anroid.com/sdk/installing/studio.html don't see it yet. Also checked tools.android.com/knownissues continuing to look Sep 06 08:51:18 rah: that's a variable set in Android.mk that tells the build system what packages to build Sep 06 08:51:29 fattire: https://developer.android.com/sdk/installing/studio.html#Troubleshooting Sep 06 08:52:02 fattire: in that case, what does "package" mean in that context? Sep 06 08:52:23 uberushaximus: that doesn't fix my problem.... "gradle version 1.6 is required current version is 1.8-####...." Sep 06 08:52:46 fattire: at present I have a number of "LOCAL_MODULE*" variables in an Android.mk file Sep 06 08:52:47 it's a list of modules that are defined usually by something like LOCAL_MODULE := whatever Sep 06 08:52:52 rah so yeah Sep 06 08:53:12 rah: what you trying to build? Sep 06 08:53:20 you'd set PRODUCT_PACKAGES := the modules you want to build Sep 06 08:53:26 fattire: do I just need to add the value of the LOCAL_MODULE variable to PRODUCT_PACKAGES? Sep 06 08:53:47 rah if you're building Android for a device and youw an to include those modules then yes Sep 06 08:53:56 ok, thanks Sep 06 08:54:02 if you're in an android source directory and you want to build JSUT the module Sep 06 08:54:03 youc an Sep 06 08:54:05 via Sep 06 08:54:13 mm -B Sep 06 08:54:16 mm = make module Sep 06 08:54:21 -B means build the whole thing Sep 06 08:54:24 I know, thanks Sep 06 08:54:30 I'm trying to do a full build Sep 06 08:54:31 k Sep 06 08:54:33 gotcha Sep 06 08:54:36 the first full build Sep 06 08:54:40 have you looked at the cyanogenmod wiki? Sep 06 08:54:43 wiki.cyanogenmod.com Sep 06 08:54:45 yes Sep 06 08:54:50 this sounds like talk for #android-root Sep 06 08:54:55 for your device you can find build instructions for any device Sep 06 08:54:59 supported Sep 06 08:55:12 I'm porting android to my device Sep 06 08:55:17 my device is not supported Sep 06 08:55:34 hmm Sep 06 08:55:34 build/core/main.mk:633: PRODUCT_PACKAGES has been modified: dhcpcd.conf Sep 06 08:55:35 build/core/main.mk:633: previous value: Sep 06 08:55:35 build/core/main.mk:633: *** The following variables have been changed: PRODUCT_PACKAGES. Stop. Sep 06 08:56:06 rah this may be helpful too http://wiki.cyanogenmod.org/w/Doc:_porting_intro Sep 06 08:56:14 fattire: yes I've read that thanks Sep 06 08:56:19 <- wrote it :) Sep 06 08:56:31 ah Sep 06 08:56:37 well, w/some contributions Sep 06 08:56:40 so you're the one I need to blame Sep 06 08:56:56 most of that wiki is my fault :P Sep 06 08:57:44 hey guys Sep 06 08:57:46 romainguy! Sep 06 08:57:52 havn't seen you for a while :) Sep 06 08:59:27 hey meetoman Sep 06 08:59:48 just wondering Sep 06 09:00:01 here is the animation I want, the text comes in from a textview or edittext Sep 06 09:00:05 one after another Sep 06 09:00:06 fade in Sep 06 09:00:11 how do I do that? Sep 06 09:00:26 without manually cheograph a whole lot of textviews one after another Sep 06 09:01:28 TextSwitcher would still animate the entire text Sep 06 09:01:32 and not a single one at a time Sep 06 09:01:35 Why doesn't this method: http://pastebin.com/sFAr4YzK change the background of my ListView item? (It does change the color variable on the object) Sep 06 09:01:49 meetoman: you could fake it with span's Sep 06 09:03:52 nope Sep 06 09:04:06 meetoman: ? Sep 06 09:04:11 I've been googling for 2 hours now Sep 06 09:04:24 your talking about fading in text? Sep 06 09:04:37 and the only way I can see this is possible is my original way, brute force over 200 textviews and fade the in one after another Sep 06 09:04:37 and animating it Sep 06 09:04:50 well your wrong Sep 06 09:05:11 can you explain a little more what you are trying to achieve exactly Sep 06 09:05:16 yup, animating text one after another tho Sep 06 09:05:22 ok, let's say hello world Sep 06 09:05:38 i want the aniation of H, He, Hel, Hell, Hello, etc Sep 06 09:05:45 I got that part figured out Sep 06 09:05:55 but I want the new one that comes in fade in rather than just pop in Sep 06 09:06:09 which you can do with span's Sep 06 09:06:17 using an interpolator Sep 06 09:06:20 meetoman: http://developer.android.com/reference/android/text/style/ForegroundColorSpan.html Sep 06 09:06:21 really? Sep 06 09:06:29 make: *** No rule to make target `/store/rah/pengpod/ubuntu-touch/out/target/common/obj/APPS/framework-res_intermediates/src/R.stamp', needed by `/store/rah/pengpod/ubuntu-touch/out/target/common/obj/APPS/FileExplore_intermediates/src/R.stamp'. Stop. Sep 06 09:06:39 meetoman: want a quck example? Sep 06 09:06:48 I don't understand this error Sep 06 09:06:53 that's be great Sep 06 09:07:19 how can I determine the dependencies of this? Sep 06 09:07:31 rah, what are you trying to compile? Sep 06 09:07:34 I presume it's trying to buile FileExplore but I can't find FileExplore Sep 06 09:07:47 meetoman: guess Sep 06 09:08:24 are you trying to compile the entire OS? Sep 06 09:08:29 I am indeed Sep 06 09:08:49 I've never done it on ubuntu before?. so I can't tell you the answer Sep 06 09:09:08 why don't you be good and keep quiet then Sep 06 09:09:27 well, i m waiting for Napalm's answer Sep 06 09:09:34 can anyone tell me how can I determine the dependencies that are giving rise to this error? Sep 06 09:09:50 can anyone tell me how I can deal with this error? Sep 06 09:10:02 rah: strace make, lol Sep 06 09:10:09 lol Sep 06 09:10:17 LOL !! HAHA!!!1111 Sep 06 09:10:29 ffs Sep 06 09:10:37 that looks like Ubuntu Touch, not Android... Sep 06 09:10:47 Leeds: Ubuntu Touch is based on Android Sep 06 09:10:50 also, this channel is for app development, not platform building Sep 06 09:11:07 Leeds: the first part of getting Ubuntu Touch to work is to get a working Android port Sep 06 09:11:10 Leeds: ive already mentioned they should take it to #android-root Sep 06 09:11:12 Leeds: that's what I'm doing Sep 06 09:11:19 Leeds: and occasional mockery of other platforms Sep 06 09:11:24 Napalm: #android-root isn't the right place either Sep 06 09:11:33 Leeds: which channel is for platform building? Sep 06 09:11:43 is it not? Sep 06 09:11:52 rah: there isn't one - there are android-porting and android-building google groups for that sort of thing Sep 06 09:12:07 ... xda-developers forum, the dev-only parts, with as much vodka as it takes to soothe your anger while filtering out crap? Sep 06 09:12:41 ffs Sep 06 09:12:44 google groups? Sep 06 09:13:04 why doesn't someone start #android-porting here on freenet? Sep 06 09:13:11 fattire? Sep 06 09:13:19 oh sorry Sep 06 09:13:25 Napalm, any luck? Sep 06 09:13:27 because there isn't enough traffic - and in particular, it would mostly be full of questions lacking answers Sep 06 09:13:28 there was some time ago an ubuntu channel Sep 06 09:13:30 ummmm i'm suprised it doesn't exist Sep 06 09:13:36 still having stupid gradle 1.8 vs 1.6 errors Sep 06 09:13:43 because it updated itself. Sep 06 09:13:47 not everything is suited to a live chat Sep 06 09:13:53 fattire: why don't you start it, then it will exist? :-) Sep 06 09:14:00 meetoman: hang on a sec, jeez Sep 06 09:14:31 someone once claimed that #android was supposed to be about platform. Ha ha ha ha Sep 06 09:14:32 there is a very small number of people who are knowledgeable about that sort of thing - knowledgeable enough to answer random questions without having to do research and testing - and they are mostly too busy to hang around helping newbies Sep 06 09:14:40 p_l: it was... a long time ago Sep 06 09:14:47 Leeds: or porting Ubuntu? ;) Sep 06 09:14:48 Leeds: which channel is for development of Android itself? Sep 06 09:14:52 soweez ;) Sep 06 09:14:57 rah: none. Sep 06 09:15:11 rah: android-platform google group - but frankly, it's mostly developed internally at Google anyway Sep 06 09:15:12 I presumed #android-dev was for developers *of* Android Sep 06 09:15:24 the one that briefly existed got taken over by end users Sep 06 09:15:31 rah: that's okay, and when you read the channel topic you learned that your presumption was wrong Sep 06 09:16:00 Leeds: your presumption is correct Sep 06 09:16:16 when did I presume? Sep 06 09:16:34 "09:15 < Leeds> ... and when you read the channel topic" Sep 06 09:16:45 you presumed I read the channel topic Sep 06 09:16:57 and yet you still asked off-topic - doubly off-topic! - questions Sep 06 09:17:06 rah: that opens you to rightful ridicule Sep 06 09:17:11 ah Sep 06 09:17:15 there your presumption is wrong Sep 06 09:17:28 I had not looked at the topic when I asked Sep 06 09:17:43 the failure is compounded... Sep 06 09:17:46 rah: opening yourself to rightful ridicule Sep 06 09:18:00 p_l: I love lamp! Sep 06 09:18:11 no wait Sep 06 09:18:15 I love lamp! Sep 06 09:18:49 anyway... Sep 06 09:19:08 fattire: are you going to start #android-porting? Sep 06 09:19:22 done Sep 06 09:19:35 sorry tryiing to fix gradle in 0.2.7 Sep 06 09:19:56 can someone who is an op here add a pointer to #android-porting to the topic? Sep 06 09:20:29 that could prevent off-topic questions in future Sep 06 09:20:40 after all, off-topic questions are a heinous crime that must be stopped at all cost Sep 06 09:22:20 compile it on your mac Sep 06 09:22:37 I went through most of the problems, which OS are you trying to compile? Sep 06 09:26:31 meetoman: i might have to keep this code, its looking pretty damn good Sep 06 09:26:32 :) Sep 06 09:26:40 few more minutes, dude Sep 06 09:26:49 Why doesn't this method: http://pastebin.com/sFAr4YzK change the background of my ListView item? (It does change the color variable on the object) Sep 06 09:26:59 * rah pokes romainguy Sep 06 09:27:04 * rah pokes kroot Sep 06 09:28:48 Thanks, I can't even google this stuff Sep 06 09:30:40 that would be because nobody has done it before Sep 06 09:33:19 you are awesome :) Sep 06 09:35:17 given that this is a channel for application development, does anybody understand this error, which involves the directory "FileExplore_intermediates", evidently related to the FileExplore app? Sep 06 09:35:24 make: *** No rule to make target `/store/rah/pengpod/ubuntu-touch/out/target/common/obj/APPS/framework-res_intermediates/src/R.stamp', needed by `/store/rah/pengpod/ubuntu-touch/out/target/common/obj/APPS/FileExplore_intermediates/src/R.stamp'. Stop. Sep 06 09:36:20 sounds like a broken makefile Sep 06 09:36:25 make target that depends on itself Sep 06 09:36:47 err Sep 06 09:36:48 why? Sep 06 09:37:03 framework-res_intermediates/src/R.stamp is different to FileExplore_intermediates/src/R.stamp Sep 06 09:37:18 or rather framework-res_intermediates is different to FileExplore_intermediates Sep 06 09:37:51 oh, I misread Sep 06 09:38:12 then the Makefile is still broken, because it does not supply a rule to make the first target Sep 06 09:38:21 but the second target specifies that it needs the first Sep 06 09:38:39 which Makefile? Sep 06 09:40:46 Well, the one you are calling "make" on Sep 06 09:40:57 heh Sep 06 09:41:04 I'm calling make on the top-level Makefile Sep 06 09:41:09 so that doesn't help me much Sep 06 09:41:22 then you'll have to trace it Sep 06 09:41:31 what do you mean? Sep 06 09:41:48 look at the makefile Sep 06 09:41:51 see what it does Sep 06 09:41:53 trace the error Sep 06 09:43:02 that doesn't make any sense Sep 06 09:43:20 I have a scrollview on this screen which is supposed to let the user scroll the text when they set the font to huge and it no-longer fits on the screen: http://pastebin.com/sAx5v8K1 Sep 06 09:43:27 and is no help whatsoever Sep 06 09:43:31 but it doesn't work, can anyone see what I'm doing wrong? Sep 06 09:43:46 sonOfRa: damn you, can't you help your dad??? Sep 06 09:44:32 rah, why does that not make sense? That's the best help you're going to get. I told you pretty specifically what the error means Sep 06 09:44:46 The ONLY thing you can do is trace it in the makefiles. Sep 06 09:45:12 sonOfRa: that's not true Sep 06 09:45:17 sonOfRa: there are many things I can do Sep 06 09:45:32 sonOfRa: like, for example, grep for "FileExplore" Sep 06 09:46:35 then fucking do so? Jesus christ, why do you even ask, if you know it better yourself? Sep 06 09:47:13 sonOfRa: because there may be others who have a better understanding of what those error messages mean Sep 06 09:47:27 sonOfRa: and what the best strategy is for solving the problem Sep 06 09:48:42 sonOfRa: I'm looking for people who are knowledgable to respond to my query, rather than asking for anybody any response even if it isn't helpful Sep 06 09:49:44 sonOfRa: do you understand? Sep 06 09:51:04 Can you set Android Studio to preview what your app looks like with the system font set to huge? Sep 06 09:52:04 Why doesn't this method: http://pastebin.com/sFAr4YzK change the background of my ListView item? (It does change the color variable on the object) Sep 06 10:06:59 can somebody help me with this? http://stackoverflow.com/questions/18655164/android-sip-api-getpeerprofile-null Sep 06 10:12:28 hmm, did anyone manage to compile list of tools XML namespace tags? Sep 06 10:15:36 hello! Anyone have an s4? Do you know if it falls into the MEDIUM or LARGE screen bucket? Sep 06 10:29:58 hey im looking for input on a clipboard manger app, free or paid, just basically the best one, cuz they're cheap anyways the paid ones, any suggestions? i was thinking andclip + the paid extention, but idk if there's better Sep 06 10:30:21 if there's an android apps chan on freenode id be interested in that, as it be where to ask this Sep 06 10:36:26 so you want an app which stores whatver you grab to clipboard? Sep 06 10:39:25 hey. if I have an nfs share with android filesystem and that's it. how can I check if it's jbmr1 or jbmr2, for instance? Sep 06 10:42:28 wow this is weird Sep 06 10:42:30 What is the earliest point in the activity that I know the view widths and heaights? Sep 06 10:42:33 onStart()? Sep 06 10:45:18 apparently not... Sep 06 10:45:35 I have an activity that shows a TabListener, if you navigate away from it, then go into phone settings and change the text size, then navigate back to the app and back to the TabView it shows one fragment under another Sep 06 10:50:44 meetoman: https://gist.github.com/slightfoot/6462294 Sep 06 10:52:51 Thanks Napalm!! Sep 06 10:52:59 Why doesn't this method: http://pastebin.com/sFAr4YzK change the background of my ListView item? (It does change the color variable on the object) Sep 06 10:53:17 [03:36:36am] serrghi: so you want an app which stores whatver you grab to clipboard? Sep 06 10:53:23 guys problem related to webview http://stackoverflow.com/questions/18655827/webview-orientation-change-issue Sep 06 10:53:24 I just don't get it, I change the data, call notifyDataSetChanged, and nothing happens Sep 06 10:53:26 nice, works Sep 06 10:53:29 yes, but also it stores them so i can go back to older ones if i need it Sep 06 10:53:57 and if it could sync it someway so when i flash the next rom, i can just install this app and it has all my clips Sep 06 10:54:02 I'm trying to build an application but I get an error I don't understand Sep 06 10:54:10 make: *** No rule to make target `.../out/target/common/obj/APPS/framework-res_intermediates/src/R.stamp', needed by `.../out/target/common/obj/APPS/FileExplore_intermediates/src/R.stamp'. Stop. Sep 06 10:54:33 that's from running "mm" in the application's directory Sep 06 10:58:01 anyone have any idea what the problem might be? Sep 06 10:59:49 hi, all , how to add 3g dongle support for android? Sep 06 11:02:38 @Android03 check SO Sep 06 11:05:14 @dcow--> but there shoudl be some reason why it is not working.I dont want to create a separate layout only for this. Sep 06 11:06:39 @Android03 I don't want to do a lot of things. Sep 06 11:14:37 @Android03 I'm not making a sample project for you. You literally just have to set the proper parameter as specified in my answer on the webview. Further just put the webview into your xml. You don't need a linearly layout "placeholder" to add the webview to. Sep 06 11:14:40 Can somebody help me with optimalizing this? Loading contacts (name + phone nr + internet call ) http://pastebin.com/btjBGDS8 Sep 06 11:17:25 @FrancescoV fix your indentation first Sep 06 11:18:23 Something else: you can get the default ringtone and use it in your own voip app. Can you get the default vibration too? Sep 06 11:20:49 dcow, that's because I have past it in pastebin Sep 06 11:23:47 @FrancescoV yeah I can't read it. Sep 06 11:24:01 rather, I don't want to like that Sep 06 11:34:06 i dislike java :/ Sep 06 11:34:45 why cant i do this .. String v; editText.setText(v = "helloWorld"); Sep 06 11:34:49 that is anoying :/ Sep 06 11:35:06 editText.setText("helloWorld"); Sep 06 11:35:11 lol Sep 06 11:35:22 i know but i want to use the val v somewhere else aswell Sep 06 11:35:31 mDisplayName.setText(displayname = Query.CurrentAccount.DISPLAY_NAME.getString(cursor)); Sep 06 11:35:36 practicle example Sep 06 11:35:39 String v = "helloWorld"; editText.setText(v); Sep 06 11:35:54 using displayname later as "dirty Checker" Sep 06 11:36:00 yeah i know you can do it in 2 steps Sep 06 11:36:02 still anoying Sep 06 11:36:15 that's how any statically typed language works... Sep 06 11:36:34 C, C++, Objective C, Java, all of them Sep 06 11:37:06 C# doesn't Sep 06 11:37:21 not scala Sep 06 11:37:28 nor scala** Sep 06 11:38:42 scala lets you set values?! Sep 06 11:38:54 oh nvm Sep 06 11:38:57 it actually works Sep 06 11:39:19 there was a problem with displayname it was of type Sting .. not String lol Sep 06 11:39:46 anyone know why setting a clickListener on a view returned by a list adapter causes the selector to stop working? Sep 06 11:39:59 lol was about to say java is crap cause other langauges allows this Sep 06 11:40:19 but it was my bad when declaring the types i mistyped Sep 06 11:40:46 java is already crap because you can't disable the GC Sep 06 11:40:53 yeah i know Sep 06 11:40:57 Oo Sep 06 11:41:00 i like scala a lot more Sep 06 11:41:11 scala is on top of java.. Sep 06 11:41:13 now if i can only convince my comp to use scala on android Sep 06 11:41:18 no scala is on top of jvm Sep 06 11:41:19 not java Sep 06 11:41:28 it creates the same bytecode kinda Sep 06 11:41:32 but the gc is a bit better Sep 06 11:41:42 it also allows you a lot more Sep 06 11:42:30 the best thing since sliced bread !! patern matching Sep 06 11:42:49 F# active pattern matching still beast Sep 06 11:43:01 but i will live with normal pattern matching Sep 06 11:43:23 at least then i am not stuck with if else when "switching" on strings Sep 06 11:43:28 java is very bad :/ Sep 06 11:43:58 Why would you think turning off GC is a good idea? Sep 06 11:44:02 That's silly Sep 06 11:44:08 not at all Sep 06 11:44:09 ist bad turning it off Sep 06 11:44:29 you must be one of those programmer productivity over efficiency folks Sep 06 11:44:45 heh you think so? Sep 06 11:44:56 how much do you know about compiler theory? Sep 06 11:44:58 @sonOfRa Sep 06 11:45:01 oh ok Sep 06 11:45:03 still Sep 06 11:45:55 what's your point? that a compiler can optimize better than I can? Sep 06 11:46:05 yes. Sep 06 11:46:06 no Sep 06 11:46:15 Also, premature optimization is silly Sep 06 11:46:15 it is true but that wasn't my point Sep 06 11:46:35 @sonOfRa GC's not a compiler optimization and @lemonxah yeah that's my point Sep 06 11:46:53 a compiler can optimize better but a GC is not a compiler Sep 06 11:47:00 no shit sherlock? Sep 06 11:47:10 we all know this Sep 06 11:47:13 ... Sep 06 11:47:30 then why are you bringing up compiler theory? Sep 06 11:48:05 lol its a joke soz Sep 06 11:48:18 joke between me and my friends Sep 06 11:48:18 @sonOfRa terse memory management is not premature optimization Sep 06 11:48:30 when ever someone starts a coding argument Sep 06 11:48:37 @lemonxah oh.. yeah Sep 06 11:48:41 the frist thing you say is .. how much do you know about compiler theory Sep 06 11:48:48 haha Sep 06 11:49:30 In most cases, it is also something that one does not need to worry about at all Sep 06 11:49:43 @sonOfRa bottom line is any system with a GC has to do a mark and sweep at some point. you don't control that Sep 06 11:49:52 @sonOfRa yes, most cases is true Sep 06 11:49:56 forgot that you didn't have context on the joke so it seemed like a legitimate question Sep 06 11:49:59 bottom line: you don't need to control that Sep 06 11:50:06 @sonOfRa but what about those few cases where I do Sep 06 11:50:11 use C Sep 06 11:50:14 then you probably aren't using Java Sep 06 11:50:19 you can force it to clean but its still bad for java Sep 06 11:50:54 @sonOfRa you ever tried to get 100% smooth scrolling on android. you have to hack in memory management by memory-caching objects Sep 06 11:51:15 and releasing them yourself when you're done with them Sep 06 11:51:25 <-- our list 1000+ items (chats with images) = 100% smooth Sep 06 11:51:27 My listviews with large amounts of data are pretty smooth without ever touching that Sep 06 11:51:44 pretty smooth != no glithces Sep 06 11:51:47 controlling variable scope to manage GC is hardly a "hack" imho Sep 06 11:51:50 I've read on the listview optimization stuff, but so far, I was not able to spot any noticeable differences Sep 06 11:51:51 *pretty* smooth sure Sep 06 11:52:08 but not 100% smooth Sep 06 11:52:26 hi Sep 06 11:52:28 open up google plus and slowly fling the listview Sep 06 11:52:41 it will stutter tiny bits Sep 06 11:52:44 and, as sabton correctly stated, scoping variables correctly has nothing to do with "GC manipulation" Sep 06 11:53:02 most people are used to it.. but it annoys me Sep 06 11:53:03 for accessing the asserts folder, do I have to mention in the Manifest ? Sep 06 11:53:04 right, that's called knowing how the GC works Sep 06 11:53:34 @sabton it's not about scoping vars correctly Sep 06 11:53:42 it's not? Sep 06 11:53:51 htat's not what a memory cache is Sep 06 11:54:15 The only lags I'm seeing on G+ are network loading Sep 06 11:54:17 in a non garbage collected language you won't even dream of a memory cache Sep 06 11:54:20 it's not preloading them fast enough Sep 06 11:54:37 that has absolutely NOTHING to do with garbage collection or memory management Sep 06 11:54:37 G+ is awful in terms of UI responsiveness Sep 06 11:54:50 @sonOfRa it's doing the loading async, it's the gc of objects causing the stutter. profile it Sep 06 11:54:55 G+ does a shit ton of work on the UI thread, it's horrible Sep 06 11:55:19 All listviews I ever head without network communication were perfectly smooth Sep 06 11:55:28 how can I get IMEI number for my device? Sep 06 11:55:33 @sabton that could be too but I always assumed google would eat their own dogfood and practice what they preach Sep 06 11:55:44 only if you dont have to do markup parsing and image insertions Sep 06 11:55:57 @sonOfRa yes a lot do Sep 06 11:56:00 we have to cache markup to not render them again Sep 06 11:56:02 dcow: you'd think, but turn on the dev feature "Strict Mode" and watch the red border flash like crazy on G+ and many other of the newer Google apps Sep 06 11:56:04 jeevanus: programmatically? Look into Network or was it Phone classes Sep 06 11:56:06 but mem cache isn't hacking Sep 06 11:56:12 we both agree gc is fine 95% of the time Sep 06 11:56:13 LRU_CACHE Sep 06 11:56:45 lemonxah: i mean object caching strictly for the purpose of not being garbage collected Sep 06 11:57:16 dcow: that has everything to do with variable scoping, i don't know what this memory cache is all about Sep 06 11:57:32 sabton: you don't? Sep 06 11:57:40 sabton: that's the problem I guess Sep 06 11:57:42 dcow: #1 cause of shitty listview performance is all of the GC activity caused by stack variables being released by the adapter Sep 06 11:58:00 dcow: simply scoping the variable properly will eliminate all of that GC Sep 06 11:58:10 YES. and putting those in your class is a good way to combat that Sep 06 11:58:14 dcow: if it is more complicated than that, please explain to me Sep 06 11:58:20 it is Sep 06 11:58:31 imagine I have a system that fetches images Sep 06 11:58:35 asynchronously Sep 06 11:58:40 i dont need to imagine that, i have one Sep 06 11:58:41 it generates a lot of objects Sep 06 11:58:44 Hey there. Sep 06 11:59:00 How many android devices have a hardware search button? Sep 06 11:59:18 not alot UnbertKant Sep 06 11:59:31 Are there concrete numbers somewhere? Sep 06 11:59:31 maybe yours doesn't but in my opinion it's rather silly to use java in all it's object oriented glory only to not use objects Sep 06 11:59:56 so my images fetcher uses objects more liberally because it's not a UI element Sep 06 12:00:16 p_l: yes Sep 06 12:00:35 UnbertKant, we have 28 android devices here to dev on and only 1 has a hardware search button Sep 06 12:00:35 Say I'm generating a lot of fetch tasks because I have 30 or so images on screen at once Sep 06 12:00:37 htc Sep 06 12:00:42 older one Sep 06 12:00:47 I have seen those, I took a peace of code, deviceId = ((TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(); Sep 06 12:00:51 It did't work Sep 06 12:01:20 @sabton while android has moved to a concurrent gc algorithm, you still have to pause all the threads to perform the final update Sep 06 12:01:48 most of the time this happens sub 2 ms Sep 06 12:02:09 when you generate a lot of objects it can ramp things up to 10-16 ms Sep 06 12:02:37 well, the obvious is to write non-consing code instead of letting garbage fall all around you Sep 06 12:02:39 which is unacceptable for android's 62hz draw loop Sep 06 12:02:55 hmm Sep 06 12:02:59 p_l: so don't use java? Sep 06 12:03:04 what about the assets folder? I have placed some 3 .db inside it and importing it to database folder for accessing it: Sep 06 12:03:13 dcow: write non-consing code? Sep 06 12:03:19 You can't avoid DVM on Android Sep 06 12:03:32 p_l: yes. my point Sep 06 12:03:40 wishing that android 2.3 had an easy way to reuse bitmaps. generating 30 objects per second is a great way to trigger the GC. Sep 06 12:03:59 and frankly speaking, majority of other options proposed by others weren't any better, IMO Sep 06 12:04:03 I am using the code from https://github.com/nitinarv/StudyGroupX/blob/master/StudyGroupProject/src/com/sgxp/studyproject/Center.java the class void extractAssetToDatabaseDirectory(String fileName) Sep 06 12:04:11 at least without changing the goals of platform Sep 06 12:04:32 p_l: i'm not saying gc is horrible. I just wish I had the option to manually manage parts of my code to avoid gc on certain threads Sep 06 12:05:02 and I'm trying to convince a few skeptics that GC does actually affect performance Sep 06 12:05:10 dcow: it requires discipline, but isn't anything new - avoid consing (constructing objects) Sep 06 12:05:20 reuse them where possible, etc. Sep 06 12:05:28 Why doesn't this method: http://pastebin.com/sFAr4YzK change the background of my ListView item? (It does change the color variable on the object). I change the data on the ArrayList that feeds the ArrayAdapter, notifyDatasetChanged and it doesnt work :( Sep 06 12:05:30 exactly Sep 06 12:05:31 use object caches Sep 06 12:05:47 p_l: yes, but even-so that's a hack to work around the gc Sep 06 12:05:50 dcow: and any memory management affects performance Sep 06 12:05:53 dcow: no, that's not "hack" Sep 06 12:05:56 dcow: it's not a hack Sep 06 12:06:20 dcow: it's knowing how GC works and making design decisions that affect performance over language convenience Sep 06 12:06:36 hell, you sometimes have to write non-consing code when using non-GCed languages as well Sep 06 12:07:04 because a page fault or allocator shitting over the heap in search of free space etc. might just fuck you a 1ms too long Sep 06 12:07:22 yes, but part of that solution is telling me not to use objects which is the only thing that sets java apart from C (save for the rich set of standard libraries) Sep 06 12:07:37 dcow: I never said don't use objects Sep 06 12:07:38 not to use objects? Sep 06 12:07:46 I said avoid constructing (allocating) them Sep 06 12:07:50 and I consider object caching *only to not have them garbage collected* somewhat of a hack Sep 06 12:07:53 keep a constant pool of objects Sep 06 12:07:53 or avoid releasing them Sep 06 12:07:59 more specifically :) Sep 06 12:08:03 yes, that's exactly what I do Sep 06 12:08:24 dcow: that's not a hack, anyway Sep 06 12:08:27 dcow: good, you're not hacking, you just being mindful of GC impact on performance and coding as necessary Sep 06 12:08:48 im going to stop pointlessly repeating p_l now Sep 06 12:09:21 going at it like it's a hack is like forswearing GOTO only to implement it with your own program counter, in an unsigned int variable, and a bunch of ifs or switch statements as address latches Sep 06 12:09:35 my feelings differ on that.. but regardless, my earlier point was that even garbage generated by other threads *and by the system* will interrupt a thread that needs to be performance minded Sep 06 12:09:38 Is there anyway I can format the values from a Time Picker so I get HH:MM Sep 06 12:09:48 dcow: of course Sep 06 12:09:56 I get the hour values separate and the minute values separate Sep 06 12:10:05 dcow: unfortunately, but you can't avoid that unless you control full system Sep 06 12:10:20 Desktops are even worse, in a way, about it Sep 06 12:10:29 dcow: GC is a major performance killer, if you aren't aware of it and how to work with it, your app will have big problems... you are right about that Sep 06 12:10:38 right. Is there no way to exclude individual threads from the watchful eye of the garbage collector though? Sep 06 12:10:41 i mean in theory Sep 06 12:11:03 why not allow someone to create a new thread and opt out of GC maintenance Sep 06 12:11:15 that was my only question Sep 06 12:11:24 it seems like a viable compromise Sep 06 12:11:36 dcow: the thread would be essentially a fork, you wouldn't be able to share any data with it other than copying, in order to have anything resembling working Sep 06 12:12:35 yes, I guess then you have to introduce your own IPC, etc Sep 06 12:12:40 dealing with "outside-GC" threads that have pointers to GC'ed space is ... shit Sep 06 12:13:45 p_l: point taken Sep 06 12:14:22 dcow: i wanted to add btw, there are clean Java/object-oriented approaches to managing GC in a listview... for example, encapsulating your list item views Sep 06 12:14:52 what do you mean encapsulating Sep 06 12:14:53 dcow: basically, it often doesn't matter that the thread doesn't use GC, you need to scan it to avoid removing objects that are possibly still used by non-GCed space Sep 06 12:15:29 dcow: creating MyListItemViewClass and putting all of the logic for the item view within, including all class-coped variables that cannot be collected Sep 06 12:15:41 *class-scoped Sep 06 12:16:04 yes, I often do that Sep 06 12:16:44 look I know how to avoid GC, It just seems, lately, I've been spending more time avoiding it than working with it Sep 06 12:17:03 right but you called it a hack Sep 06 12:17:22 and not object-oriented Sep 06 12:17:30 it makes me what to use an ARCed language Sep 06 12:18:03 dcow: ahh, you mean have marketing wrap "GC" with different letters? Sep 06 12:18:19 ARC is not a GC Sep 06 12:18:21 (refcounting is still GC, just a prone to break one) Sep 06 12:18:31 no it's not GC Sep 06 12:18:41 dcow: it is. One of the oldest schemes around, but it's still GC Sep 06 12:18:43 android:layout_width="0dp". What does dp stand for? Sep 06 12:18:57 density independend pixel Sep 06 12:19:13 p_l: how is it gc? Sep 06 12:19:35 ARC cannot detect cyclic references Sep 06 12:19:36 dcow, bel3atar , p_l , sabton any you guys know how to format time from a time picker? Sep 06 12:19:58 dcow: there is no definition that states that GC has to detect them Sep 06 12:20:06 I need to get the values for the selectedHour and selectedMin separate Sep 06 12:20:24 dcow: refcounting, augmented or not, is still GC, just with explicit liveness update Sep 06 12:20:47 markyosullivan: maybe this would help? http://docs.oracle.com/javase/1.5.0/docs/api/java/text/SimpleDateFormat.html Sep 06 12:20:53 http://developer.android.com/reference/android/widget/TimePicker.html Sep 06 12:21:05 getCurrentHour(), getCurrentMinute() Sep 06 12:21:17 can anybody help me? I wanna port a full-featured vim to andorid. Sep 06 12:21:36 determinant: you're in a world of hurt Sep 06 12:21:45 p_l: 0 0 Sep 06 12:21:47 determinant: don't think there's a good arm c compiler yet Sep 06 12:22:00 dcow: ... Sep 06 12:22:06 dcow: Oh, I dont expect a c compiler. Sep 06 12:22:11 the same GCC as on x86, you know ;) Sep 06 12:22:24 p_l: i mean the libraries Sep 06 12:22:31 dcow: I just wanna write edit and review code and write some diaries. Sep 06 12:22:38 p_l: well.. Sep 06 12:22:39 p_l: misspoke. the libraries aren't portable Sep 06 12:22:50 p_l: How did VimTouch make it? Sep 06 12:22:56 atm I've got reminderHour = selectedHour; reminderMin = selectedMinute; Sep 06 12:22:59 dcow: The problem is that Android runtime is different. It's different system, that ViM wasn't ported though (well, the console version mostly works) Sep 06 12:22:59 Shouldn't be too bad, VIM is damn near everywhere :P Sep 06 12:23:05 you can't compile gcc on arm. only cross-compile it Sep 06 12:23:10 Sonicadvance1: not ViM, Vi Sep 06 12:23:12 dcow: ... you can Sep 06 12:23:26 dcow, I just compiled GCC 4.8 a few days ago on my Chromebook Sep 06 12:23:30 p_l: ...the console version is enough. Sep 06 12:23:35 s/Chromebook/Arm Chromebook Sep 06 12:23:38 p_l: I found there's one in CM10 Sep 06 12:23:43 how recently? that is why you don't see working implementations on tablets Sep 06 12:23:51 determinant: well, you might get somewhere with good terminal + something like tmux Sep 06 12:23:56 p_l: unfortunately, Chinese characters aren't properly displayed. Sep 06 12:24:01 dcow: no, it's because tablets aren't targeted for such uses Sep 06 12:24:08 I was looking into this last year though so a lot could have changed by then Sep 06 12:24:14 dcow: you can still download another system on tehm Sep 06 12:24:26 determinant: an issue with your terminal emulator Sep 06 12:24:31 Setting up a simple unix chroot in Android is easy :P Sep 06 12:24:46 I recall Debian running in chroot since G1 Sep 06 12:24:51 yeah but if i have an arm tablet I should be able to compile gcc on it and all the ported libraries and then compile something like, say, vim and do real work on it Sep 06 12:24:58 full debian, with compilers etc. Sep 06 12:25:01 p_l: I thought about that. But the display is good in the terminal. Sep 06 12:25:07 dcow, You can :| Sep 06 12:25:09 p_l: I mean without vim. Sep 06 12:25:28 Sonicadvance1: well that's wonderful news Sep 06 12:25:34 determinant: then something is broken in vim. Can't help you with that now (it's definitely possible, but I don't have energy to fight with it) Sep 06 12:25:43 Sonicadvance1: guess I just wasn't looking in the right places before Sep 06 12:25:45 Good news is that compiling GCC on a Cortex-A15 only takes a couple hours now :P Sep 06 12:26:30 TIL the *entire* darwin kernel is opensource. I thought apples little additions were restricted Sep 06 12:26:32 p_l: Thanks man. So I should improve my English and write reviews and diaries in English then.. Sep 06 12:27:12 beh? Where is Apple coming in to play here? Sep 06 12:27:27 it's athe cortex a15 their chip? Sep 06 12:27:32 isn't* the Sep 06 12:27:32 haha Sep 06 12:27:37 no. Sep 06 12:27:39 determinant: well, it's not an ideal option, and I feel for you. But unfortunately the C libs on Android etc. are bit lacking compared to typical OS, and several other things (locale etc.) might be missing Sep 06 12:27:45 dcow: no, that's ARM's brand Sep 06 12:27:59 Apple has the A5/A6 and probably A7 on the 10th Sep 06 12:28:12 aah Sep 06 12:28:26 with A4 being essentially a slower version of the original Exynos aka Hummingbird ;) Sep 06 12:28:31 ARM has the Cortex-A4/A5/A7/A8/A9/A15/A53/A57/M4 just to name a few Sep 06 12:28:45 I thought the instruction set was the only thing branded though. I though apple manufactured their own chips Sep 06 12:29:02 or is the the proc design that's branded Sep 06 12:29:05 Apple's A4/5/6/7 are names of the whole SoCs. Which are manufactured by Samsung, iirc Sep 06 12:29:12 p_l: I see...Maybe I should google hard to find out wether I can tune the console-version so that the wide-chars are correctly shown. Sep 06 12:29:20 they use (modified) Cortex-Ax series from ARM Sep 06 12:29:33 interesting Sep 06 12:29:43 determinant: don't be surprised if you end up deep in bowels of source code Sep 06 12:29:48 With a modified instruction set that isn't public :| Sep 06 12:29:58 yuck Sep 06 12:30:19 then again the dalvik vm source is no longer public (right?) Sep 06 12:30:42 ARMv7s, no public documentation. Should be nearly the same as regular ARMv7-a, but who knows? :P Sep 06 12:31:03 Probably has some secret instruction for rounding buttons or something Sep 06 12:31:25 once it became JLS adherent the curtains flew up Sep 06 12:31:26 dcow: ARM Limited sells ready-to-manufacture (netlist) as well as source form CPUs + various components (system buses etc.), those are licensed by others and implemented inside their own designs Sep 06 12:31:55 p_l: so they do a bit of both, it seems Sep 06 12:32:22 Implementing Parcalable for all models is tedious. Would it be cheating to pass data through Application? :p Sep 06 12:32:30 (Between Activities) Sep 06 12:32:54 dcow: netlist means basically "file that you can drop into a design and be done with it, but basically a big macroblock of fixed form" Sep 06 12:32:56 neuro_sys: what scale are you talking about? Sep 06 12:34:17 dcow: https://android.googlesource.com/platform/dalvik/+/android-4.3_r2.2 <--- dalvik source? :) Sep 06 12:35:28 p_l: i gotta stop trusting SO idiots Sep 06 12:35:52 dcow: or just verify if you actually care :) Sep 06 12:36:02 :P Sep 06 12:36:22 neuro_sys: The response object from a Rest service which contains several other classes (4-5 levels deep). I retreive in an AsyncTask, and I want to start another Activity, and pass the response to it. Sep 06 12:36:50 yeah it was today that I was reading some comment about the dalvik vm's source not being available anymore. I was skeptical but didn't check Sep 06 12:37:19 I could use an Intent to pass the whole response wrapper object, or pass it through Application, and check for null in the other activity, which I find easier. Sep 06 12:37:42 neuro_sys: yes that's cheating Sep 06 12:37:59 put it into some form of persistent storage on your device Sep 06 12:38:09 and read it asynchronously in any activity that needs it Sep 06 12:40:08 anyone know what's up with this: http://stackoverflow.com/questions/18413943/posting-a-runnable-to-a-view-that-invalidates-the-view-sometimes-doesnt-work Sep 06 12:41:48 I'm confused by Android's version numbers + api level + name. What causes what to change? Sep 06 12:42:15 Does a change in name mean "change visible to the user"? Sep 06 12:50:15 p_l: I'll keep that in my mind :) Sep 06 12:51:09 UnbertKant, huh? manifest versionCode and versionName? Sep 06 12:56:40 No, I mean "Jelly Bean" or "KitKat" Sep 06 12:57:36 I mean, the API-level increases sometimes, then there's 3 digits in Android version number and then there's the name e.g. "Ice cream sandwich". I understand the technical reality of an API increase, but I don't understand when the 3 digits or the name change. Sep 06 13:04:06 UnbertKant, the 3 digits change when there is a non-trivial change in OS code which may or may not pull an API change with it Sep 06 13:04:14 name change is whenever google feels like it Sep 06 13:06:27 meaning reaching a milestone that they have set, right? Sep 06 13:06:50 UnbertKant: all developers should care about is the API level Sep 06 13:15:42 Is ViewPageIndicator (http://viewpagerindicator.com/) any good? Sep 06 13:23:50 It works just fine, but you may want to do something custom for your project Sep 06 13:25:04 A relatively simple example of how to hook into the ViewPager for position, and offsets, is here: https://github.com/astuetz/PagerSlidingTabStrip/blob/master/library/src/com/astuetz/viewpager/extensions/PagerSlidingTabStrip.java Sep 06 13:41:01 If i want to have a widget with different user selectable themes. What would be the best approach to achieve this? Creating a common MyTheme (style.xml) and then subthemes (MyTheme.Blue, MyTheme.White)? Sep 06 13:51:27 Hi All Sep 06 13:52:11 I've read that an ImageView doesn't update its position after an Animation has been applied to it Sep 06 13:52:38 I'm setting up a AnimationListener to update the position after the anim ends Sep 06 13:53:07 but which parts of the ImageVIews layout should I be updating? Sep 06 14:01:00 My app doesn't use bluetooth at all, but I'm getting "java.lang.SecurityException: Need BLUETOOTH permission: Neither user 10041 nor current process has android.permission.BLUETOOTH." Sep 06 14:06:12 nseidm1: I've just inherited a project which uses ViewPageIndicator, it does this wierd thing where if you change two pages in quick succession it snaps back to the first one Sep 06 14:08:23 that is indeed weird Sep 06 14:12:23 when do Android.mk files get called? Sep 06 14:12:46 I have a directory with an Android.mk file which isn't getting evaluated Sep 06 14:13:12 which I know because I put an $(info ...) call in it but it's not doing anything Sep 06 14:13:22 I don't get any message when I run "make" Sep 06 14:19:54 how do I calculate the new top and left of an ImageView after its been animated? Sep 06 14:27:36 Hi! is there a java channel on freenode? I searched for one but cannot find Sep 06 14:28:46 <|0xD34D|> Zgary: ##java I believe Sep 06 14:29:29 You're pretty bad at searching Sep 06 14:29:38 <|0xD34D|> ty Sep 06 14:31:46 maybe it was created in the last minute XD Sep 06 14:32:58 yeah that would make sense Sep 06 14:34:20 Is there a way to remove a module from a project in Android Studio, but not actually delete on disk, similar to the option in Eclipse to remove a project from a workspace, but not on disk? Sep 06 14:35:02 file-project structure Sep 06 14:35:31 and remove the libraries you don't want Sep 06 14:36:17 I have a test with the Visualizer class, I can get a good representation of the frequencies but the canvas appears blurry: http://imgur.com/SDe6fHC I call update 20 times a second, how can I get rid of the blur? Sep 06 14:39:14 do you have anything dealing with transparency? Sep 06 14:40:29 fdans: Should I still be seeing them in the Project structure menu, even if they aren't used after deleting them? Sep 06 14:42:53 not sure, are they still interfering? Sep 06 14:43:07 or whatever it is that were causing you? Sep 06 14:45:42 yeah they are still showing up in the menu on the left, but they aren't using them which is half way there Sep 06 14:46:03 All I have for the drawing is here: http://pastebin.com/jAmS2wLH Sep 06 14:46:20 nothing that is related to alpha channel Sep 06 14:48:51 SimonVT++ Sep 06 14:52:21 I don't understand why I have to modify the project structure in the GUI for Android Studio to get it to stop giving my red squigglies and cannot resolve everywhere, even though it build just fine because my project structure is already defined in the gradle files. Sep 06 15:02:00 I want to start a new project with some more or less complex GUIs. What is the best starting point for designing the Layouts? And what should i do? Using native designestuff or start using web+css and webtools? Sep 06 15:05:56 misterli: How much of an experience you have in Android dev? Sep 06 15:06:19 in design almost 0. In coding very experienced. Sep 06 15:06:49 well native then Sep 06 15:07:27 frankly in Android you use others because you don't know better Sep 06 15:12:22 Does anyone have a favourite source of music to code to? Sep 06 15:13:09 SNES Sep 06 15:15:37 queston: what a normal salary for a junior mobile developer? Sep 06 15:15:51 where are you? Sep 06 15:17:29 FrancescoV Sep 06 15:17:45 Belgium, Europe Sep 06 15:20:06 here in London, with no previous experience, you'll get £21,000-£24,000 Sep 06 15:21:37 fdans, bruto or neto? Sep 06 15:21:51 bruto i gues Sep 06 15:22:05 yep Sep 06 15:22:08 You can't directly compare salaries between countries.. Sep 06 15:22:28 fdans: Is that per year? Sep 06 15:22:30 -20% income tax + national insurance Sep 06 15:22:33 I just started as a junior android developer, I'm on 28,000 euro per year Sep 06 15:22:36 yinti yeah of course Sep 06 15:22:54 move to usa, average salary here is approximately infinity dollars Sep 06 15:23:19 that's right, dev salaries in the USA are significantly higher Sep 06 15:23:41 Ankhwatcher which country? Sep 06 15:23:52 Ireland Sep 06 15:25:29 eur 28k = £23k Sep 06 15:25:45 in western europe initial salaries are more or less like that Sep 06 15:28:46 k so it is +r. that's all I needed to know Sep 06 15:28:48 wow Sep 06 15:28:50 that's... low Sep 06 15:28:53 That's less than what you'd earn as a cashier in a supermarket here Sep 06 15:28:55 how do you afford...food Sep 06 15:29:08 SimonVT: stuff's cheap there Sep 06 15:29:26 you can get a bottle of absinthe for like €3 Sep 06 15:29:31 Yeah, living expenses is a large factor Sep 06 15:29:32 jesus dude cost of life Sep 06 15:29:42 twerking lessons for like €5/lesson Sep 06 15:29:44 im not sure you guys make more than my rent Sep 06 15:30:09 That's my point tho.. A guy from belgium is asking about salaries and getting answers from london and ireland Sep 06 15:30:14 rent is NYC can easily be $30k/yr Sep 06 15:30:34 sorry for the question :p Sep 06 15:30:35 hah I don't make that... anymore Sep 06 15:30:44 no it's an interesting question Sep 06 15:30:50 oh god what have i done http://i.imgur.com/yMrY6yl.png Sep 06 15:31:05 I rent my 2 bedroom apartment out for >$35k aud/year Sep 06 15:31:52 my aunt makes over $735k/week doing simple work at home on her computer Sep 06 15:31:58 lol Sep 06 15:32:01 * canadiancow kicks Leeds Sep 06 15:32:10 goo.gl/asgar34 Sep 06 15:32:15 Leeds: Sign me up Sep 06 15:32:22 * p_l dumps a spam folder on Leeds Sep 06 15:32:23 hello everyone ^^ Sep 06 15:32:25 wabz dude are you serious? 35k AUD = £20k Sep 06 15:32:35 I need expert advise Sep 06 15:32:35 yeah? Sep 06 15:32:43 bear in mind not only cost of life, but sheer conversion rates Sep 06 15:32:47 fdans, i pay slightly less than that for a one bedroom Sep 06 15:33:09 can any really pro dev send me a private? Sep 06 15:33:20 I pay a third of that for a 2 bedroom Sep 06 15:33:37 annlee: No, ask a question and maybe someone will answer Sep 06 15:33:42 ok Sep 06 15:33:45 is a bit long Sep 06 15:34:14 I want to start phone by USB signal (besides charging). Is this possible with an App or ROM editing? Sep 06 15:34:16 my rent is 3.9k/year in central london Sep 06 15:34:45 USB does not come from PC, is just electrical Sep 06 15:35:14 can anyone figure out? Sep 06 15:35:40 you need to be a bit more specific Sep 06 15:35:50 would hire someone if yes Sep 06 15:35:56 for non-dev stuff you're better off at #android Sep 06 15:36:09 there is an App called Wakey Droid that starts from PC command line Sep 06 15:36:21 I want only by electric USB signal, no PC at all Sep 06 15:36:28 it is, with adb. Sep 06 15:36:45 and/or you can listen for the USB-State Sep 06 15:36:55 and i was just about to tell him not to recruit people in here :P Sep 06 15:37:50 .google broadcast receiver usb android Sep 06 15:37:55 pff :| Sep 06 15:38:10 her Sep 06 15:40:04 Central Austin, Texas rent goes from 700-1600 USD per month for a modest apartment Sep 06 15:40:42 that seems reasonable to me Sep 06 15:41:34 so can someone help? Sep 06 15:42:42 if your phone is solely connected to the power outlet, and it's turned off, I can't think of a way to do what you want to do Sep 06 15:42:56 plus, how do you intend to trigger the turning on of the phone? Sep 06 15:43:42 phone is off, then receives USB electric signal and it turns ON like if I pressed ON button Sep 06 15:44:05 no pressing button is needed editing ROM (I guess) Sep 06 15:44:12 currently, an App does it Sep 06 15:44:17 but is from command line Sep 06 15:44:20 yeah but where is the phone connected to Sep 06 15:44:20 annlee: that would depend on the hardware in the phone. Sep 06 15:44:22 annlee: do you mean *off* or *asleep*? Sep 06 15:44:33 Off is off Sep 06 15:44:48 instead of pressing ON button, I send electric signal via USB Sep 06 15:44:55 possible Sep 06 15:44:57 ? Sep 06 15:44:58 When off is off, you need hardware support to put it back on, whatever the event that does it. Sep 06 15:45:20 Check if the phone hardware mention a WakeOnUSB option. Sep 06 15:45:34 if you mean off as in powered down, rather than just asleep, that's nothing to do with the OS Sep 06 15:45:39 If the hardware can do it, you should be able to write a ROM to perform it. Sep 06 15:45:56 On PCs it's done at the BIOS level. Sep 06 15:45:58 I believe an App cannot do it Sep 06 15:46:00 ie. ROM. Sep 06 15:46:05 but editing ROM could be, right? Sep 06 15:46:12 ogamita: firmware != OS Sep 06 15:46:15 IF the hardware has what is needed. Sep 06 15:46:21 but anyway, this is silly Sep 06 15:46:27 it is not silly Sep 06 15:46:27 ^ Sep 06 15:46:30 'ROM'='OS Image' Sep 06 15:46:31 heh Sep 06 15:46:39 No, ROM = Read Only Memory. Sep 06 15:46:45 ok then Sep 06 15:46:54 So granted, it's not exactly a ROM, it's more like a EEPROM Sep 06 15:46:59 ok Sep 06 15:47:07 I've seen many custom ROMs Sep 06 15:47:11 "Root/custom ROMs, head to #android-root" Sep 06 15:47:21 where you will also not get the answer you want to your silly question... Sep 06 15:47:23 I know Sep 06 15:47:30 ogamita, no ROM == Read Only Memory Sep 06 15:47:31 I am there Sep 06 15:47:37 but people does not write Sep 06 15:47:39 But Leeds raises an interesting point. I don't know if you have access to the "BIOS" when you burn a ROM. Sep 06 15:47:48 Ugh.. Just downloaded Android Studio for the first time. Right after installing, it tells me that I don't have the latest version and directs me to the page I just downloaded from. Then when I create a new project using one of the default templates, it uses tons of deprecated functions. Sep 06 15:48:05 Perhaps one can only write an OS kernel, and we don't have access to the BIOS part. Sep 06 15:48:18 Again, that would depend on the phone hardware and firmware. Sep 06 15:48:26 the bootloaders on embedded ARM devices are typically *very* closed Sep 06 15:48:51 I am using motorola defy mini 2.3.6 Sep 06 15:48:58 dont know if this could allow it Sep 06 15:49:20 annlee: unless you have the ability to spec a device - like, you're planning to ship at least 50k devices commercially - you're barking up the wrong tree Sep 06 15:49:59 root66: is it that bad? I thought it was a weird IDEA with LogCat Sep 06 15:50:19 huh, how do I get the actionview of an item in appcompat-v7 Sep 06 15:50:22 ok Leeds Sep 06 15:50:33 works fine on hc+, but on gb there's no corresponding getSupportActionView Sep 06 15:50:50 I will ask in root anyways Sep 06 15:51:08 I think you can edit everything, no matter how hard it is Sep 06 15:51:19 and no hardware involved, since an App can do it with command line Sep 06 15:51:28 so no circuit close needed I mean Sep 06 15:51:45 omg Sep 06 15:52:28 http://ideone.com/lCiUtG Sep 06 15:52:34 Says NullPointerException Sep 06 15:52:38 I debugged Sep 06 15:52:49 None of the variables OR static variables used are null :\ Sep 06 15:52:54 Everything seems properly initialized Sep 06 15:53:03 Trying to do update on sqlite for android. Sep 06 15:53:41 ~stacktrace Sep 06 15:53:46 stacktrace please! Sep 06 15:54:09 and the full file, otherwise line numbers in stacktrace are useless Sep 06 16:01:19 Josh-, you suck at the debugged Sep 06 16:04:06 hi Sep 06 16:04:25 is there a way to loop through files in a directory like /data/data/com.google.music? Sep 06 16:04:34 (which is a root directory) Sep 06 16:04:35 .. Sep 06 16:05:17 new File("/mnt/something").listFiles() gives you an array of files ;-) Sep 06 16:05:25 files/directories to be exact Sep 06 16:05:45 ya i know, but canRead gave me a false Sep 06 16:06:05 No, you can't read other apps files Sep 06 16:06:09 why would you ask how to loop through them, then? Sep 06 16:06:15 (unless they mark them as world readable) Sep 06 16:06:16 and i f i have a rooted phone? Sep 06 16:06:31 solid explorer can read google music's mp3 files Sep 06 16:06:38 after it requested root Sep 06 16:07:11 ugh, contentresolver.call is only available in api11+? Sep 06 16:08:57 I guess that solves my problem... Sep 06 16:10:10 lol, canRead even rerturns false @ /mnt/shell/emulated/0/ Sep 06 16:13:31 hm Sep 06 16:15:06 M3gaFr3ak: Use Enviroment.getExternalStorageDirectory() to get the SD-card. Sep 06 16:15:26 and for the internal stuff Sep 06 16:15:30 no way to read it? Sep 06 16:15:45 I had the same problem once.. turned out I was wrong about the path.. Sep 06 16:16:16 uhm, btw,, where can i see the console of my app in android studio? with the errors and exceptions and such? Sep 06 16:16:28 atm i cant even tell which exceptions crash the app Sep 06 16:17:57 what's the difference when compiling with "api 18 Android 4.3" or "Google APIs Inc" 18 = Sep 06 16:20:16 According to the following URL you can use getFilesDir() for internal and getExternalFilesDir() for external: http://stackoverflow.com/questions/17546718/android-getting-internal-storage-absolute-path Sep 06 16:20:28 That was for M3gaFr3ak Sep 06 16:20:43 i tested, i can loop through ExternalFilesDir or how it#s called Sep 06 16:20:53 but Enviroment.getDataDirectory() isnt reachable Sep 06 16:20:56 crashes my app Sep 06 16:21:03 then fix your crash Sep 06 16:21:11 pfn: but it crashes! Sep 06 16:21:12 http://pastebin.ubuntu.com/6071006/ Sep 06 16:21:17 M3gaFr3ak: Logcat in Android Studio: Press ALT + 6 or click the "Android" button in the bottom left corner Sep 06 16:21:47 is android studio worth the switch over eclipse? Sep 06 16:21:53 if I code all my code in xcode mostly already Sep 06 16:22:55 M3gaFr3ak: I may be mistaken but if you're trying to access a dir inside root (need root permissions) then you need to ask for root so your SuperUser app can give you root. I was unsuccessful in completing this task :) Sep 06 16:23:09 ok Sep 06 16:23:25 uhm, executing the su command is only valid for the console it was run in, right? Sep 06 16:23:38 so i canot askfor root by command and then execute commands Sep 06 16:23:38 SuperUser = the app and asks you if you want to allow it Sep 06 16:24:11 I've seen examples where the su command is issues .. I believe via ProcessInfo.. Sep 06 16:24:18 hm Sep 06 16:24:25 ok, i got a NPE Sep 06 16:24:37 when i try to listFiles() in getDataDirectory() Sep 06 16:25:41 waitFor after a getRuntime.exec waits until it's complete=? Sep 06 16:25:44 Something like: Process p = Runtime.getRuntime().exec("su"); Sep 06 16:26:22 By the way did you remember to add the permission to the manifest? Sep 06 16:26:32 nope Sep 06 16:26:43 what does this change? Sep 06 16:27:08 If you dont add the permission to the manifest you app will crash when it tries to access that filesystem Sep 06 16:27:37 It's like trying to access the internet without adding the "Internet"-permission to the manifest = app crashes Sep 06 16:27:55 ok Sep 06 16:28:02 and how is the permission called? Sep 06 16:28:29 Sep 06 16:28:39 external? Sep 06 16:28:47 but the data directory is internal, isnt it? Sep 06 16:28:54 I think that one covers internal + external + read + write Sep 06 16:29:07 ok Sep 06 16:29:10 for root? Sep 06 16:29:22 You don't need permission to write to internal storage Sep 06 16:29:52 Since you can only write to your apps private storage (unless you root, then all security goes out the door) Sep 06 16:30:38 my intention is to read files in the folder where google music stores his album arts Sep 06 16:30:48 but i cant even acces s the data directory Sep 06 16:30:56 but that's not your folder Sep 06 16:31:00 ik Sep 06 16:31:01 Ahh, ok, thanks SimonVT. Like I said earlier I never completed the project. Sep 06 16:31:25 funkbox, does this have any effect if the app got root access? Sep 06 16:32:38 If I'm not mistaken the situation is as mentioned where the data directory is not your folder and you therefore need su by triggering su request. Sep 06 16:33:11 but then what's the point ? Sep 06 16:33:21 There's this big Red Exlamation point next to my Android project, when I try to run it it says the project can't run because it contains errors. The tricky part is that there are no source or resource file errors I can see. Sep 06 16:33:28 The project doesn't mark any file as having problems Sep 06 16:33:39 Tried "Fix Project Properties" and cleaned the build, but still no dice Sep 06 16:34:42 Fallout2man: I sometimes get the same error. My solution is usually first try to build the project. If that fails restart Eclipse. If may be a glitch in Eclipse or your IDE. Sep 06 16:35:16 Fallout2man: In Eclipse its rightclick on the project and selected "Compile" I believe. Sep 06 16:36:15 M3gaFr3ak: Search Google for su example for accessing the files. Sep 06 16:36:19 brb Sep 06 16:36:32 kk Sep 06 16:36:59 Zurfer: Will give a try, thanks Sep 06 16:37:47 Can anyone help me format the hours and minutes from a time picker separately? Sep 06 16:38:59 Zurfer: Also you might want to try Refreshing the project. Sep 06 16:40:48 markyosullivan: Your question sucks, try again Sep 06 16:41:51 :D It looks like ant building a project in ADT finally prompts to uninstall old version of app with different signature and to install the new version all in one click now! No more receiving an error, then manually deleting the old app, then reinstalling again Sep 06 16:42:17 Why doesn't this method: http://pastebin.com/sFAr4YzK change the background of my ListView item? (It does change the color variable on the object). I change the data on the ArrayList that feeds the ArrayAdapter, notifyDatasetChanged and it doesnt work :( Sep 06 16:42:30 how do I fix this error Sep 06 16:42:31 [Rymate Notes] java.lang.IllegalArgumentException: already added: Landroid/support/v4/app/LoaderManager; Sep 06 16:42:39 I have this problem every time on here don't I SimonVT Sep 06 16:42:45 markyosullivan: Yes Sep 06 16:43:04 Think I got it fixed now Sep 06 16:43:06 Zurfer: Nope, tried a clean and manual build but still no dice. The weird thing is it has that Red Exlamation point next to the project. I checked the error logs and they report errors I can't even find. Sep 06 16:43:27 Zurfer: Like talking about using an invalid layout property in an xml file, but when I check the xml file that property isn't there at all. Sep 06 16:43:36 What I'm trying to do is get a format "HH" for the selectedHour and "MM" for the selectedMin Sep 06 16:44:39 Anyone else maybe have any ideas? I've tried re-importing the project, restarting eclipse, fixing project properties, cleaning/building it manually and double checked the error log for clues. Sep 06 16:48:15 Fallout2man: Have you tried Right Click > Refresh? Sep 06 16:49:57 yiati: Figured it out, thanks. Turns out two libraries I had added had bad paths and needed to be re-added with the correct path info. Sep 06 16:50:54 yiati: I use Google Play Services, and also a special library for reading apple's plists. I'm working with another developer on the same project (we just work on different parts) and it seems each time we commit we have to update our project to point to the other's libraries. Sep 06 16:53:20 Fallout2man: Are you all checking in local build configuration files? What your experiencing basically sounds like each of you has your own workspace configured for your own computer, but you are both commiting your own local build config files Sep 06 16:54:27 yiati: Sounds probably right. We just have the entire eclipse folder in svn so we're sharing all of its files. Sep 06 16:54:47 yiati: Which files should we exclude from svn? This will really help me in the future, thanks. Sep 06 16:54:57 im trying to install the usb driver for the nexus 4 from googles usb drivers (onsite). but the only device that shows upp in device manager is the MTP service which can't be updated with the adb drivers Sep 06 16:56:45 Fallout2man: Everything should work perfectly, and you won't have to deal with this anymore if you remove ".classpath", ".project", "local.properties", etc Sep 06 16:57:07 yiati: Ah, perfect, thank you. Sep 06 17:02:42 Fallout2man: No problem, here is a .gitignore file of commonly ignored files for Android projects. You can just add those to your SVN ignore. It's also a good idea to remove *.dex, bin/, gen/, etc. since they are produced by building your app, and if you remove them it can reduce the size of your remote repo. Also there are some Intellij commonly ignored workspace files in there if someone wants to be able to easily build in Intellij or Andro Sep 06 17:02:42 id Studio. Sep 06 17:02:53 https://github.com/github/gitignore/blob/master/Android.gitignore Sep 06 17:05:43 tortal: https://github.com/koush/UniversalAdbDriver Sep 06 17:13:50 I'm working with the following code and am not sure how to get the ActivityManagers getRunningAppProcesses() passed onto the thread and then the method doInBackground(): https://github.com/slightfoot/android-asynctask-correctly/blob/master/AsyncTaskCorrectly/src/com/demondevelopers/asynctaskcorrectly/MainActivity.java#L10 Sep 06 17:14:35 The goal is to have the thread update a TableLayout by adding a TableRow to the TableLayout with each iteration. Sep 06 17:15:53 Why doesn't this method: http://pastebin.com/sFAr4YzK change the background of my ListView item? (It does change the color variable on the object). I change the data on the ArrayList that feeds the ArrayAdapter, notifyDatasetChanged and it doesnt work :( Sep 06 17:18:04 Zurfer: Why are you having the AsyncTask just wait? Sep 06 17:20:44 hey guys, do you think, for casual games in general, are portrait games more successful on phones? Sep 06 17:21:13 Dany0, doesn't really matter Sep 06 17:21:27 choose the orientation that makes sense for your game Sep 06 17:21:29 well, for me it's more comfortable to play in portrait, but I have an HTC Desire so :D Sep 06 17:21:46 Dayn0: NyanCat is awesome and it's landscape Sep 06 17:21:55 I couldn't imagine playing it in portrait Sep 06 17:22:01 any side scroller really Sep 06 17:22:28 yiati: The code you see is something Napalm wrote for me and is very simple. What I want to do is take advantage of the fact that it works (outputs the text correctly) and modify it to take and pass along an object. Sep 06 17:22:32 I'm planning to make a small racing game on a procedurally generated road over the weekend Sep 06 17:22:38 I'm coding a skeleton right now Sep 06 17:23:01 yiati: The object being of type "RunningAppProcessInfo" Sep 06 17:23:02 just a FSM to handle gamestuff really Sep 06 17:24:00 it really depends on the game design Sep 06 17:24:15 well, in my head, I have a design that could work on portrait Sep 06 17:24:17 match the orientation to the game design dictations Sep 06 17:24:19 and one thumb Sep 06 17:24:25 not the other way around Sep 06 17:24:34 hmm Sep 06 17:24:41 well, I guess I should keep it simple Sep 06 17:24:42 thanks Sep 06 17:25:03 You would gain the most by playing Mario in landscape :) Sep 06 17:25:20 Because it's a sidescroller game. Sep 06 17:25:31 Like pfn said: depends on the game Sep 06 17:25:42 ^ Sep 06 17:26:01 yiati: What does "^" mean? Sep 06 17:26:10 What he said Sep 06 17:26:14 Ahh Sep 06 17:26:52 Zurfer: So what's your goal with the AsyncTask, and why do you want it to run in the background? Sep 06 17:28:20 My goal is to list all running apps in a TableLayout but I do not want the app to freeze while doing so.. Imaging having to add 100 rows with a checkbox, imageview and atleast 1 textview. Thats gonna take time and CPU. Sep 06 17:29:12 loader? Sep 06 17:30:05 Before beginning this process a ProgressDialog will be shown with the message "Loading x of y" where x is current "index" and "y" is the total number of apps to load. Sep 06 17:30:29 helo: Loader? Sep 06 17:30:53 It's not possible to write a completely native app without no JVM invoked whatsoever, is it? Sep 06 17:30:56 Zurfer: onProgressUpdate is how you would show Loading x of y Sep 06 17:31:20 Eventually the app will run through the Dalvik JVM, I suppose? Sep 06 17:31:27 Then you just do the work you need to in the doInBackground Sep 06 17:32:10 Zurfer: http://developer.android.com/reference/android/os/AsyncTask.html#onProgressUpdate(Progress...) Sep 06 17:32:53 yiati: Yes, I am aware of that. What I do not now is how to access the ActivityManagers getRunningAppProcesses() and loops through the apps and pass the current app-object to onProgressUpdate (or other method) so that the app's info can be added to the TableLayout. Sep 06 17:33:02 "do not know" Sep 06 17:33:06 how can I tell if my activity was started for result? Sep 06 17:33:41 meh, that's annoying, only way is to send an extra Sep 06 17:33:43 do not want Sep 06 17:34:00 pfn: If it solves your problem..? :) Sep 06 17:34:54 it does, just means I need to create a helper intent, I guess it's ok Sep 06 17:35:02 Zurfer: That sounds like an Adapters job Sep 06 17:37:58 Napalm who was helping me yesterday suggested this approach. I am hoping that when he gets back he will be able to tell me how to solve this problem. Going in a different unexplored (on my part) direction is not something I prefer :) Sep 06 17:39:39 Does anyone have any tips for dealing with Heisenbugs? Saving a file only works in debugging mode, which is really difficult to deal with Sep 06 17:40:53 add a lot of logging Sep 06 17:41:26 Zurfer: http://stackoverflow.com/questions/11608247/populate-listview-from-large-xml Sep 06 17:41:36 "Use an AsyncTask to fetch the data from the server. Parse and populate the adapter in the doInBackground() method and then in onPostExecute() set the Adapter in the ListView. At first try not to include any of the images so as to make sure that data size is not a problem." Sep 06 17:41:41 cheese1756: Keep the debugginh mode on but do not output debug text? :) Sep 06 17:41:43 This can be applied to your situation Sep 06 17:42:27 cheese1756: Sometimes I can't save a file, and restarting the IDE fixes it for me. Sep 06 17:42:40 yiati: This is on Android, not on my dev computer Sep 06 17:43:26 cheese1756: What do you mean it's on Android? You're developing outside of an IDE? Sep 06 17:43:53 yiati: No, I'm trying to save a file on the phone and it's not working. I'm not trying to save a file in Eclipse Sep 06 17:43:55 cheese1756, you have a race condition Sep 06 17:43:56 Sorry for any confusion Sep 06 17:44:10 and because you're in debugging mode, you're pausing threads and allowing for stuff to work Sep 06 17:44:11 sonOfRa, You there? Sep 06 17:44:32 Ah okay Sep 06 17:44:54 yiati: I think the result of the link you posted would do all the work and then suddenly show all rows. This is correct? Sep 06 17:45:11 Nope, Adapters are pretty smart Sep 06 17:45:24 What it is doing is it will fetch all of the process information Sep 06 17:45:31 Set the adapter to have that information Sep 06 17:45:44 And then finally associate the adapter with a TableView in your situation Sep 06 17:46:33 When the TableView wants to render to the screen it will ask the adapter to do so, but adapters only hand over so many rows at once not the entire table Sep 06 17:47:03 yiati: Ahh, ok.. That's nice :) Sep 06 17:50:03 yiati: Thanks. I will look into that when I get the chance. Sep 06 17:53:17 Howdy all. Question: I have made a little UI, but now I want to move forward and connect it to a web sql db. I was wondering what the best way is to take data from my apps objects and verify or store them using a web service. Sep 06 17:53:42 sirajperson, come up with your own soap, rest, wadl, whatever protocol you want Sep 06 17:53:56 I know about MySQL api, but I didnt want to store passwords and credentials for db access in the app Sep 06 17:54:06 I was looking at soap Sep 06 17:54:47 is there a reason to choose like soap over restful? Sep 06 17:55:36 soap is cleaner Sep 06 17:55:55 to soap or not to soap, that is the question Sep 06 17:57:29 don't drop it Sep 06 17:58:16 whether tis easier to rest than soap your way to deep bugs, and suffer outrageous fortune Sep 06 17:58:41 choose whatever makes sense for what you're doing Sep 06 18:00:08 okies. so basically, I take my objects (use soap API to move data to soap object) parse soap with CMS (assuming PHP built in saop features), and then use CMS to access database. Sep 06 18:00:59 okay google, I hope your ready... Sep 06 18:01:07 It's better to actually do the less perfect thing, than to deliberate day in and day out about what the most perfect implementation is. That's what I've learned in my life... it's a terrible form of procrastination that I have Sep 06 18:01:16 meh, I'm so lazy, I don't want to record a video demo of my app... Sep 06 18:01:40 thank goodness for stackoverflow Sep 06 18:15:53 god, I <3 my new connection Sep 06 18:15:56 gogo uverse Sep 06 18:16:06 would be nicer to have higher up-speeds, but this will do Sep 06 18:16:31 Would be much better if you disappear. Sep 06 18:17:22 what's your up/down pfn Sep 06 18:17:27 45/6 Sep 06 18:17:40 noice Sep 06 18:17:45 http://www.speedtest.net/my-result/2947477488 Sep 06 18:17:52 how much per month? Sep 06 18:17:53 im on 80/30 Sep 06 18:17:58 atm Sep 06 18:18:21 google fiber should be here by mid 2014 (allegedly) Sep 06 18:18:29 Napalm, fu Sep 06 18:18:29 :p Sep 06 18:18:43 I woner if I can get some kind of inside info as to what neighborhoods it will appear in so I can strategically maneuver myself into position by then Sep 06 18:19:05 30/5 here, but also waiting on Fiber which will probably take 5 years to grow from downtown to where I'm at 3 miles away Sep 06 18:19:19 http://www.speedtest.net/result/2949464678.png Sep 06 18:19:23 im 30/5 too yiati Sep 06 18:19:24 http://www.speedtest.net/my-result/2949464850 Sep 06 18:19:25 http://youtu.be/CIX30pZ4Ai4 Sep 06 18:19:32 video of my new app in action Sep 06 18:19:37 ignore the music, of courswe Sep 06 18:19:37 yiati: what part of town are you in Sep 06 18:19:48 Hyde Park Sep 06 18:19:54 cool Sep 06 18:19:56 damn you Leeds Sep 06 18:19:57 :D Sep 06 18:20:02 tnzr: You? Sep 06 18:20:07 Leeds: :| Sep 06 18:20:08 my man-parts are, in fact, bigger than everyone else's put together Sep 06 18:20:09 watch my video bitches :p Sep 06 18:20:17 lol Sep 06 18:20:25 http://www.speedtest.net/my-result/2949464049 Sep 06 18:20:26 pfn: so you can store your keepass db on drive? Sep 06 18:20:29 :| Sep 06 18:20:35 tnzr, yeah, among other things Sep 06 18:20:38 great idea Sep 06 18:21:21 america trails the first world in internet speeds Sep 06 18:21:22 * pfn shrugs Sep 06 18:21:26 tnzr, watch the rest of the video Sep 06 18:21:26 pfn: Definitely thought that said Keep Ass not KeePass Sep 06 18:21:52 watching Sep 06 18:21:53 not my fault some german came up with the original app name Sep 06 18:21:59 looks nice man Sep 06 18:22:06 although I know the last letter of your amazon pw is 'm' Sep 06 18:22:11 * tnzr starts cracking with the new information Sep 06 18:22:11 I don't really care Sep 06 18:22:16 (jk) Sep 06 18:22:21 pfn: very cool Sep 06 18:22:34 http://youtu.be/5E66ATxl3PQ Sep 06 18:22:39 integrated with global search, too Sep 06 18:22:50 master password is stored securely on-device, too Sep 06 18:23:05 just need to add PIN protection for added protection Sep 06 18:23:15 pretty cool Sep 06 18:23:20 just one more - my LTE: http://www.speedtest.net/android/573424443.png Sep 06 18:23:21 pfn: are you using the new hardware key apis? Sep 06 18:23:31 Napalm, no Sep 06 18:23:35 :( Sep 06 18:24:52 I wanted to support api8, but I have to bump my min version up to 11 :( Sep 06 18:24:53 because ContentResolver/Provider.call isn't available pre-11 Sep 06 18:26:37 pfn: can you selectively disable functionality based on API level? Sep 06 18:26:37 pfn: cant you use queries instead? Sep 06 18:26:39 It's the right thing to do Sep 06 18:26:52 Bump it to 15, pre that doesn't exist Sep 06 18:27:02 Napalm, I do use queries, the initial call is to open the database w/ file/password info Sep 06 18:27:10 SimonVT: Sounds like a wonderful dream world :-) Sep 06 18:27:14 lol Sep 06 18:27:18 to true Sep 06 18:27:20 RyanM, not this feature, it's a core-part of the security protocol Sep 06 18:27:26 ah Sep 06 18:27:41 the other option it to clone/fork keepassdroid code into my own codebase Sep 06 18:27:46 which is looking to be very likely Sep 06 18:27:53 because bpellin hasn't even commented on my pull request yet Sep 06 18:28:04 tnzr, of course, the last interesting bit of trivia is that this is written in scala Sep 06 18:28:08 <15 is a third of the users world wide, Sep 06 18:28:24 SimonVT, that's less than true, 2.3 is 33% of users... Sep 06 18:28:34 30.7 Sep 06 18:28:39 close though Sep 06 18:28:39 heh Sep 06 18:28:46 but yeah, 3.x is irrelevant Sep 06 18:28:59 2.3 still is relevant, I would like to support those users, but that's looking impossible Sep 06 18:29:00 :( Sep 06 18:29:23 actionbarsherlock? Sep 06 18:29:23 https://github.com/bpellin/keepassdroid/pull/38 Sep 06 18:29:28 friggin' bpellin, hurry up and merge Sep 06 18:29:39 According to the dev page ICS+JB is 66.8% of users Sep 06 18:29:46 pretty nice Sep 06 18:29:50 So it's absolutely true :P Sep 06 18:30:15 That percentage is likely higher in US Sep 06 18:30:27 I dunno, lots of people with gb phones still Sep 06 18:30:35 my wife's brother's cheap ass tmobile android is running some shitty android Sep 06 18:30:39 the screen doesn't even work right Sep 06 18:30:44 it's like a resistive pos panel Sep 06 18:30:52 Too much work for too little reward Sep 06 18:31:13 You can live without those 10 extra users Sep 06 18:31:32 I guess I can put up keepass share for sale after I finish pin unlock Sep 06 18:32:53 and clone keepassdroid locally in the app... :-/ Sep 06 18:33:22 what happened to github's forced license selection page? Sep 06 18:36:55 now how to advertise keepass share Sep 06 18:37:05 * pfn ponders adding a popup in chromeipass, and passifox Sep 06 18:37:24 On a ArrayAdapter, how can I easily get the ListFragment to which it is bond? Sep 06 18:37:34 arrayadapter isn't bound to a fragment Sep 06 18:37:43 or even a listview Sep 06 18:37:52 an arrayadapter has a context for layout inflation, that's it Sep 06 18:39:59 pfn, that Context is the Acitivity Sep 06 18:40:04 then cast it Sep 06 18:40:08 wut Sep 06 18:40:18 to the activity Sep 06 18:40:21 cast an Activity to a ListFragment? Sep 06 18:40:24 figure out how to get your fragment from there Sep 06 18:40:43 How do I get the Fragment from a FragmentActivity? :P Sep 06 18:40:58 myActivity = (MyActivity) context Sep 06 18:41:16 listfragment = myActivity.getSupportFragmentManager().findByWhateverTag(listfragmenttag) Sep 06 18:41:31 come on, chase down APIs to see how to get what you need Sep 06 18:41:48 That sounds like a horrible approach Sep 06 18:42:10 ^ Sep 06 18:42:39 well, other than that, find a way to connect your fragment to your adapter yourself Sep 06 18:42:50 what I gave is what the API provides you Sep 06 18:45:07 Support library ListFragment doesn't have getActivity.. why... Sep 06 18:45:17 duh Sep 06 18:45:44 hi Sep 06 19:12:37 guys Sep 06 19:13:32 Oh hai Denny Sep 06 19:24:24 FFFFFFFFFFFFFFFFFFF can't find my keystore e.e Sep 06 19:25:27 which brings me to my question Sep 06 19:25:34 if you were a koystore, where would you be saved? Sep 06 19:26:12 find / -name '*keystore*' Sep 06 19:29:03 damn it, why doesnt android have a multi-file picker Sep 06 19:29:10 it's a windows machine e.e Sep 06 19:29:45 dir /s *keystore* Sep 06 19:29:54 no excuses Sep 06 19:30:09 this is silly... API-18 adds Intent.EXTRA_ALLOW_MULTIPLE to allow this feature.. default Gallery app does not support it Sep 06 19:30:16 ¬.¬ Sep 06 19:30:35 * jmpp greets! Sep 06 19:31:21 is there a way to do that recursively? lol Sep 06 19:32:02 i was here yesterday asking for help on writing custom ant build rules to be run by Eclipse for an Android project, but unfortunately no one responded :( Sep 06 19:32:07 http://pastebin.com/x9w38Bh4 those are my rules Sep 06 19:32:29 but no matter what I do, or how I name my targets, Eclipse never runs them when I build the project Sep 06 19:32:30 @jmpp, you should try and use gradle if at all possible Sep 06 19:32:59 if I place the ant commands outside groups then they are indeed executed Sep 06 19:33:16 but I want to group them in targets to run them conditionally. Any pointers? Sep 06 19:33:31 jaynewstrom: graddle? Not familiar with it, what's it about? Sep 06 19:33:51 nope... keystore seems gone Sep 06 19:33:55 for some reason or another Sep 06 19:34:04 backups? :) Sep 06 19:34:06 It's the new android build system. They're deprecating ant. Sep 06 19:34:15 oh my! Sep 06 19:34:26 jaynewstrom: deprecating? I doubt that. Sep 06 19:34:30 * jmpp feels a nice warmth inside! Sep 06 19:34:31 ;) Sep 06 19:34:35 I don't actually have any backups... I do have all my source code though Sep 06 19:34:41 and only like three apps on the market Sep 06 19:34:44 yeah, deprecating probably isn't the right word... Sep 06 19:34:46 and I can hook into it from Eclipse? Sep 06 19:35:09 http://www.gradle.org/docs/current/userguide/eclipse_plugin.html Sep 06 19:35:19 cheers! Sep 06 19:35:19 hey nseidm1 Sep 06 19:35:25 napalmmmmmmmmmm Sep 06 19:35:54 jaynewstrom: and with graddle I can have custom build rules just the same? Sep 06 19:36:11 gradle is the king of custom build rules. it's insane Sep 06 19:36:23 * jmpp smiles! Sep 06 19:36:32 I just begged my company to send a GCM to wake the device, unfortunately I just implemented a 7 second recurring RTC wakeup to reinforce a polling based oldschool infrastructure Sep 06 19:36:35 i got some awesomeness for you nseidm1 Sep 06 19:36:54 Napalm: what's cookin man Sep 06 19:36:58 always new stuff Sep 06 19:37:02 @jmpp http://www.youtube.com/watch?v=LCJAgPkpmR0 Sep 06 19:37:30 nseidm1: answer your damn PMs Sep 06 19:45:18 jaynewstrom, yeah, gradle build rules ftl :p Sep 06 19:46:25 my gradle builds aren't exactly fast. But it does everything I want :) Sep 06 19:47:09 my builds are fast :) Sep 06 19:47:17 [info] [keepshare-debug.apk] Install finished: 1.25MB in 4.65s. 274.54KB/s Sep 06 19:47:17 [info] Starting: Intent { cmp=com.hanhuy.android.keepshare/.SearchableActivity } Sep 06 19:47:17 [success] Total time: 10 s, completed Sep 6, 2013 12:45:57 PM Sep 06 19:47:17 59. Waiting for source changes... (press enter to interrupt) Sep 06 19:48:06 my average build is probably around 20 seconds, but when I clean, then build...... Sep 06 19:48:55 and that's on a quad core 2.7ghz with 20GB of ram... Sep 06 19:49:44 jaynewstrom i noticed a lot of the gradle-android plugin is itself, in groovy, maybe thats the performance problem :/ Sep 06 19:50:10 i wouldn't be surprised if they eventully convert it to java after things settle down Sep 06 19:50:29 but anyhow, are you using daemon mode, it should be pretty fast then Sep 06 19:50:43 it hasn't bothered me enough to look into it yet. Sep 06 19:50:57 and 1.7 was much faster than 1.6, but AS comes with some pre pre-release of 1.8 Sep 06 19:51:38 android studio comes with java 1.8? Sep 06 19:51:45 from AS its horrendously slow though, not sure what the hell is going on there. Sep 06 19:51:52 no, gradle 1.8 rc Sep 06 19:52:09 ohh, I was going to say! Sep 06 19:52:41 i'm using AS atm, but its pretty buggy - i sidestep most of that by just building from the command line and using it as a big text editor Sep 06 19:52:58 jaynewstrom, of course, clean builds take me about a minute... Sep 06 19:53:08 Need some help. I had encrypted my sd card, then accidently formatted it (long sad story) I just mounted it to pc and ran recovery but the files are encrypted. Any thoughts on how I can recover? Sep 06 19:53:08 I'm using AS too. Sep 06 19:53:26 my app takes about 7 seconds from a clean build Sep 06 19:53:33 gradle, command line, daemon Sep 06 19:53:41 proguard takes a while Sep 06 19:53:44 * pfn shrugs Sep 06 19:53:53 can't be helped, well, on 4.0+ it can, but I don't want to ship 10mb of dex Sep 06 19:54:03 from AS, it could take 20 - 30 seconds, especially the first time Sep 06 19:54:22 * pfn rarely ever does clean builds Sep 06 19:54:42 jaynewstrom also there is some weirdness there with AS using its own gradle daemon or something Sep 06 19:55:20 yeah, building full app from command line with different build types takes 1 min 6 sec. Sep 06 19:55:48 @g00s gradle is a little interesting for me sometimes. I have to restart my computer to get dependencies to register... Sep 06 19:57:19 restart your computer? Sep 06 19:57:19 wtf Sep 06 19:57:31 that's a hammer/nail problem... Sep 06 19:57:53 well, I know that gets it to work... I'm sure there is another fix. Just haven't taken the time to figure it out. Every time i add a new dependency I just restart :) Sep 06 19:58:04 g00s, interestingly it's bugs mostly all stem from using gradle Sep 06 19:58:39 jaynewstrom you could always just wipe out the gradle cache :/ Sep 06 19:58:53 not worth restarting computer just for that... Sep 06 19:58:54 Mavrik hah ! Sep 06 19:59:45 does anyone know if you can just decrypt a file locally on the computer Sep 06 19:59:49 if it was encrypted using android Sep 06 19:59:52 and I know the password used Sep 06 19:59:53 ? Sep 06 19:59:58 Mavrik its always difficult to blame, where the fault lies in a complex system like this; you have gradle, the gradle plugin, intellij EAP which of course will have rough areas … most of it is probably the gradle plugin hehe Sep 06 20:00:13 g00s, well, it's just my experience Sep 06 20:00:21 Mavrik you're probably right Sep 06 20:00:23 elb0w: 100% guaranteed Sep 06 20:00:27 switching to either IDEA or Maven build system has made AS actually usable Sep 06 20:00:33 nseidm1: that you cant? Sep 06 20:00:38 that you can Sep 06 20:00:41 it's still slightly more buggy than IDEA EAP and noticably more buggy than IDEA 12 Sep 06 20:00:52 but… gradle just tends to break on everything and is slow as molasses Sep 06 20:00:55 the trick is feeding the gradle model to AS; its pretty complicated Sep 06 20:01:12 nseidm1: Can you point me in the direction Sep 06 20:01:15 of course, these ides grew up with their own understanding of how to build your software, its model Sep 06 20:01:35 yeah Sep 06 20:01:36 you have the password, just use the same encryption algorithm to decrypt using the password Sep 06 20:01:49 does the newest ADT have any gradle interaction at all? beside export :P Sep 06 20:01:56 nseidm1: I dont know what android uses Sep 06 20:02:19 android? You used an app to do the encryption. Sep 06 20:02:44 no I used the encrypt sd card Sep 06 20:02:49 from settings->security Sep 06 20:03:44 elb0w, what kind of phone is it? Sep 06 20:03:45 AS and the new gradle build system has improved drastically over the past couple months, and it's not even half way to a full release yet. Of course it's frustrating in beta version, but nonetheless I am loving it Sep 06 20:03:52 Mavrik: galaxy note 2 Sep 06 20:03:54 elb0w, and why are you asking this in dev channel? Sep 06 20:03:54 4.1.2 Sep 06 20:04:04 I figured developers would know over normal users Sep 06 20:04:15 it's a tech support question Sep 06 20:04:27 Is it normal for the ActionBar to show the app name even though when it's set to use List navigation? Sep 06 20:04:32 just descrypt the sd? What happened? Sep 06 20:04:58 nseidm1: theres a little more to it, I formatted and then realized. So the files are recovered Sep 06 20:05:03 elb0w: Most everyone on irc is a developer, and there are channels that have different topics Sep 06 20:05:20 yiati: yeah np, if you guys prefer me to go somewhere else I will Sep 06 20:05:21 no worries Sep 06 20:05:35 if you formatted your files are in pieces, maybe, possibly recoverable Sep 06 20:05:44 likely not though Sep 06 20:06:39 bb Sep 06 20:07:11 @g00s: I tried wiping my gradle caches... doesn't work. so odd. Sep 06 20:08:27 Any nice ideas to let the whole app know about Activity/context? So I don't have to pass it down everywhere? Sep 06 20:09:20 jaynewstrom i think something else is wrong Sep 06 20:09:42 @g00s: I agree completely! If you have any ideas let me know. Sep 06 20:10:49 Kake_Fisk: sure, use a public static reference to the application contexrt Sep 06 20:10:51 *context Sep 06 20:11:19 Is it socially acceptable design? Sep 06 20:11:42 not really. Sep 06 20:11:43 sure, don't do it with application context unless you know what you're doing Sep 06 20:12:01 keeping activities will make sure you leak memory tho Sep 06 20:12:13 I don't know what I'm doing Sep 06 20:12:27 Kake_Fisk: then don't put the word static in front of context ever Sep 06 20:12:33 all right Sep 06 20:12:50 Mavrik: not quite Sep 06 20:12:55 just have to be careful Sep 06 20:13:03 and know what you're doing Sep 06 20:13:10 almost never worth the problems Sep 06 20:13:13 @Kake_Fisk: remember, activity context and application context are different Sep 06 20:13:19 indeed, good point Sep 06 20:13:26 you have contexts available practically everywhere :) Sep 06 20:13:39 Can anyone help me with my app? Can't update the data for it Sep 06 20:13:53 why can't you update the data for it? Sep 06 20:14:02 Had this issue a couple of weeks ago, but I've changed what I'm importing Sep 06 20:14:10 what are you importing? Sep 06 20:14:24 I never did anything to learn Java or Android API, I just use my programming knowledge to mix together something. :p Sep 06 20:14:24 Data from the database being used in my app Sep 06 20:14:35 how are you importing it? Sep 06 20:14:36 I'm working on an Android app which I'm going to try to sell Sep 06 20:14:45 game* Sep 06 20:15:41 using Intent.putExtra to transfer it Sep 06 20:16:03 The problem is that when I click to Edit the data, it brings up the wrong data if there's more than one entry in my ListView Sep 06 20:16:14 My listview displays the data in my database Sep 06 20:17:59 not quite sure how we can help Sep 06 20:20:07 Someone will be able to do it Sep 06 20:20:34 we all can, but we don't understand Sep 06 20:20:43 I can think of one way to make the problem go away Sep 06 20:21:01 SimonVT, I asked you the last time I had this problem I think Sep 06 20:21:18 I was thinking of the other problem Sep 06 20:21:47 The problem of me asking questions Sep 06 20:21:53 Yes Sep 06 20:22:05 hahahahaha! Sep 06 20:22:10 Okay: I am importing the wrong data to edit Sep 06 20:22:37 How do I import the correct data for the corresponding List Item Sep 06 20:22:42 better question? Sep 06 20:23:04 public void onItemClick(AdapterView parent, View view, int position, long id) Sep 06 20:23:22 implement OnItemClickListener Sep 06 20:23:33 Not really.. There's no context Sep 06 20:24:06 Where are you doing this? What exactly are you doing? Sep 06 20:24:34 What are you expecting? Sep 06 20:24:37 What happens instead? Sep 06 20:24:44 Smart Questions 101 Sep 06 20:24:50 You've been told this before Sep 06 20:25:11 It's getting old Sep 06 20:25:16 sounds like Java 101 to me Sep 06 20:25:32 It applies to most things Sep 06 20:26:08 Okay. I'm trying to edit the data in my Database which is used to populate the ListView in my Payments activity. When I click to edit one of the list items in my list view in my Payments activity, it should open up the corresponding data in the Add Payments activity. Instead it is importing the data from the last list item and so I'm not able to edit the data I wish to edit. Sep 06 20:26:12 markyosullivan: go to stackoverflow.com, users there will be slightly more receptive to such inquiries, slightly Sep 06 20:26:28 Is that a better question? Sep 06 20:26:36 such a high level question Sep 06 20:26:46 markyosullivan lol , no Sep 06 20:26:46 Are you taking the piss nseidm1 ? Sep 06 20:26:55 ffs Sep 06 20:27:06 does nobody have an idea of what I'm trying to do? Sep 06 20:27:08 'my app isn't working' isn't a viable question Sep 06 20:27:30 taking the piss, as in do I drink my own urine? Sep 06 20:27:38 markyosullivan: you aren't sending the right data to your activity. Sep 06 20:28:01 jaynewstrom maybe the other activity is ignoring it ? Sep 06 20:28:04 how do we know ? Sep 06 20:28:05 jaynewstrom: Yes, I know. But how to I send the right data? Do I have to run a query first? Sep 06 20:28:31 markyosullivan: use the debugger. set breakpoints. Sep 06 20:28:34 maybe you are sending the position rather than the ID of the item to edit Sep 06 20:29:10 How do I send the ID instead of the position g00s ? Sep 06 20:29:17 That's what I need I think Sep 06 20:29:29 facepalm.... Sep 06 20:29:33 indeed Sep 06 20:30:05 send the id using getItemId(int position); Sep 06 20:30:13 don't know how that's going to help though Sep 06 20:30:31 Okay, so it's not going to work Sep 06 20:30:51 why would you want the item id? Sep 06 20:31:00 the position is more useful Sep 06 20:31:15 nseidm1: the database id Sep 06 20:31:28 The row ID I was referring to Sep 06 20:31:36 for my database Sep 06 20:32:34 markyosullivan: So just don't get the data for the last item and get the data for the right item instead Sep 06 20:32:43 If you're expecting help with some code, you should probably show some Sep 06 20:38:20 jaynewstrom: looking at the video, seems very nice indeed! Unfortunately, at least for the time being, I think it'd be a lot more work to migrate the current project to gradle than just getting these custom ant rules to run :( Sep 06 20:38:54 all I need is to get Eclipse/Ant to recognize custom 's within custom_rules.xml and run them Sep 06 20:38:55 @jmpp: it does take time. long run though... Sep 06 20:39:09 jmpp: in eclipse did you add a builder? Sep 06 20:39:48 whatever rules I add in custom_rules.xml are indeed run, but only if I place them outside targets Sep 06 20:39:59 do I have to add a builder to execute the targets? Sep 06 20:40:13 SimonVT: http://pastebin.com/YhyKPdnA Sep 06 20:40:14 * jmpp admits he's hardly versed in Eclipse/Ant/Android Sep 06 20:41:12 jayne: I have a builder, indeed, whose build file is ${project_loc}/build.xml, which itself imports custom_rules.xml Sep 06 20:41:36 and ant statements within custom_rules.xml are indeed run, but only if they're placed outside a Sep 06 20:41:44 I changed the code from when it was working and I didn't go back and check everything to make sure it would work Sep 06 20:41:47 :/ Sep 06 20:41:52 I'm not terribly well versed in ant. and I don't have your pastebin anymore Sep 06 20:42:05 http://pastebin.com/x9w38Bh4 Sep 06 20:42:32 I've named my 's in all sorts of ways and still they never run Sep 06 20:42:50 pre-build, pre-compile, -pre-build, -pre-compile, nothing Sep 06 20:43:05 custom names, as they are now, still no go Sep 06 20:43:38 same statements outside target groups run just fine :S Sep 06 20:43:57 did you select your target in your builder from eclipse prefs? Sep 06 20:44:14 * jmpp checks Sep 06 20:44:29 http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2FgettingStarted%2Fqs-84_run_ant.htm Sep 06 20:44:54 so whatever name I put in the , has to be set as the target in the builder's configuration? Sep 06 20:45:23 yes Sep 06 20:45:55 markyosullivan: So where are you getting the info for the selected position? Sep 06 20:48:14 I don't know Sep 06 20:48:15 jaynewstrom: hhhmmm, you seem to have hit the nail in the head… still looking, but seems promising! Sep 06 20:49:40 You seem to be passing some member variables to the intent.. Dunno what those are.. But nowhere are you getting information for the selected position Sep 06 20:49:48 anyone know of a way to do something like this that compiles? Object newDialog Sep 06 20:49:55 Also, use a CursorAdapter Sep 06 20:50:16 Pointless putting the cursor data into lists and whatnot Sep 06 20:50:41 Hi Sep 06 20:51:27 Can GLES context be lost again during its restoration? Sep 06 20:52:45 So the data from my Database isn't being transferred Sep 06 20:53:01 thats a bug Sep 06 20:53:02 What? Sep 06 20:53:06 with the programmer :D Sep 06 20:54:11 Yeah I'm not a good programmer g00s Sep 06 20:55:31 SimonVT: what do you mean it's pointless putting the cursor data into lists and whatnot? Sep 06 20:56:00 That it's pointless.. Just get the data from the cursor when you need it Sep 06 20:56:00 Do I use a CursorAdapter to search for the data which would then be used to transfer over to the Add Payment activity to edit it? Sep 06 20:56:37 I assume aa means ArrayAdapter Sep 06 20:56:42 Yes Sep 06 20:56:46 Use a CursorAdapter instead Sep 06 20:57:00 It, surprisingly, uses a Cursor as its dataset Sep 06 20:57:45 * helo is shocked Sep 06 20:59:52 My listview is populated using arrays Sep 06 21:01:36 * helo points at LoaderCursorSupport.java Sep 06 21:02:57 markyosullivan stop wasting time and read a good book on android Sep 06 21:03:15 get through it in 3-4 days and you'll be much better off Sep 06 21:03:43 I made a mistake early in the development of my App Sep 06 21:04:35 I didn't know how to plan it out and I'm paying for it now Sep 06 21:08:42 markyosullivan, it comes with experience Sep 06 21:08:49 markyosullivan: your continually making a mistake. learn the basics first Sep 06 21:08:55 you're* Sep 06 21:11:00 I said to myself in June 2013 when I first started Android development, that I'd look at the tutorials on the Android website. I didn't understand some of it and couldn't get the basic code working. I know some Java code from my first year in Uni. So after being frustrated with the code not working, I search on YouTube, found The New Boston tutorials and went through the first 25 or so videos. Following the project he was m Sep 06 21:11:36 you got split at "Following the project he was m" Sep 06 21:11:53 he was making Sep 06 21:12:53 hi Sep 06 21:13:11 After the first 25 or so videos I decided to move on from that and thought it'd be far more benifitcial for me to start my own Android project and teach myself as I go along, instead of following his code on his tutorials. Sep 06 21:13:35 why do people come in channel and start pming random people? Sep 06 21:13:52 pfn: lack of manners, I say Sep 06 21:14:08 sure. learning and doing are inseparable. maybe book format is better so you can type in the code; better pacing Sep 06 21:14:11 p_l, I agree Sep 06 21:14:14 you might try reading some code as well. I know the google io app is open source. and there are many other open source apps on github as well. read some code man Sep 06 21:14:29 markyosullivan oh, and see the iosched 2013 app Sep 06 21:14:38 it's ok to make mistakes when you're starting out Sep 06 21:14:45 I'm at the stage where I don't have confidence in myself anymore Sep 06 21:14:45 i still make mistakes :D Sep 06 21:14:47 code will never be perfect your first time through Sep 06 21:14:55 g00s, I wouldn't have guessed Sep 06 21:15:00 XD Sep 06 21:15:02 :p Sep 06 21:15:09 we all make mistakes Sep 06 21:15:10 Everything I do, I keep thinking it's going to completely mess up some other part of my code Sep 06 21:15:36 markyosullivan, to build your confidence around that, learn to use automated tests Sep 06 21:16:00 The thing that I didn't have a clue about was the whole database/ array side Sep 06 21:16:17 also use version control, that way you have an old copy if need be Sep 06 21:16:27 I got someone to help me, he set up the initial database and gave me code that would get a listview working Sep 06 21:16:42 Version control? Sep 06 21:16:44 markyosullivan, cargo culting is not a recipe for success Sep 06 21:17:05 cargo culting, cookie cutting? Sep 06 21:17:06 :-P Sep 06 21:17:07 markyosullivan, really, if you lack confidence in your code changes, write automated tests Sep 06 21:17:27 I realise that now. I still don't understand what exactly is going on with my app when it comes to the array/ database. Sep 06 21:17:28 and run them religiously Sep 06 21:17:39 I have an idea, but I'm not 100% confident I could tell anyone what's happening. Sep 06 21:18:07 hmm, how does the phone app and stuff build up their dialpad, gridlayout? Sep 06 21:18:16 markyosullivan: version control, look into it. google for git github.com has some nice stuff to get you started Sep 06 21:18:17 markyosullivan also, learn your version control system well. you will have confidence, if you can try 'plan B' on a branch and abandon it without care. Sep 06 21:18:34 or just 3 rows of linearlayouts Sep 06 21:18:38 pfn: Without knowing, I'd guess linearlayouts Sep 06 21:18:49 SimonVT, yeah, 3 or 4 rows of linearlayouts is my guess as well Sep 06 21:18:56 pfn i though they used a custom layout Sep 06 21:19:01 That's the simplest way of doing it Sep 06 21:19:02 at least in froyo time :D Sep 06 21:19:10 The calculator is linearlayouts for its buttons Sep 06 21:19:33 Or maybe I'm thinking of something else.. I'd use linearlayouts tho Sep 06 21:19:34 i need help on Calender application Sep 06 21:19:44 canany one help me? Sep 06 21:19:50 Doesn't seem worth it to create anything custom Sep 06 21:19:54 What's iosched? Sep 06 21:19:58 ah, it's TableLayout Sep 06 21:20:12 one that I just about never ever use Sep 06 21:20:18 Sorry should have asked g00s that question Sep 06 21:20:27 I think I've only ever used table layout one time... years ago Sep 06 21:20:49 https://code.google.com/p/iosched/ Sep 06 21:21:17 TableLayout extends from LinearLayout, still right! :p Sep 06 21:22:10 is there anay developer? Sep 06 21:22:16 i ned little help n calender Sep 06 21:22:30 karachiguy2: Ask a real question Sep 06 21:22:43 good ole ned Sep 06 21:22:50 he's a good guy Sep 06 21:23:02 If it's an app dev question that is, otherwise go to #android Sep 06 21:23:18 yes i ned help on developmen Sep 06 21:23:27 i mean programially Sep 06 21:24:17 yes, help on devoporment is wot we're hur fur Sep 06 21:24:17 lol Sep 06 21:25:22 Then you may ask your question Sep 06 21:25:23 nsedm1 ca u help e on calender ? Sep 06 21:26:15 ca u ca me :-) Sep 06 21:26:52 im creating calender application which use 7 buttons and display current week dates like sun mon.. sat and its dates 1 2 3..7 but probem is if 1 date of month occur on mid of week like tuesday then sun mon show null i want to display on that days 30 31 last dates of previous month Sep 06 21:27:56 Thanks for the link g00s , what's that website used for? Sep 06 21:28:50 pfn what did you mean by automated tests? Sep 06 21:29:08 The only reason why I don't want to get a book is because they can become dated really quickly Sep 06 21:29:39 well, there's another reason, I'll be studying Android Development this year at Uni, in my second semester Sep 06 21:29:51 markyosullivan, google unit tests Sep 06 21:29:54 markyosullivan, and android unit tests Sep 06 21:30:00 it doesn't matter if it's dated Sep 06 21:30:03 it still gives you fundamentals Sep 06 21:30:43 version control and unit tests would have been very useful fundamentals to have in uni... Sep 06 21:30:50 there was no mention at all of either :/ Sep 06 21:31:11 universities teach the science, not the practicalities Sep 06 21:31:14 Hopefully what I'll be taught later this year at Uni will be useful Sep 06 21:31:31 I'm sure they'll teach me more about the theory behind Android Development Sep 06 21:31:49 and then give us the chance to develop apps I'm guessing Sep 06 21:31:49 they teach plenty of practicalities Sep 06 21:32:19 eg particular programming languages Sep 06 21:34:07 This is basically the whole SE vs CS debate. Sep 06 21:34:49 helo, it's not really practical Sep 06 21:34:59 very little of the language instruction is actually practical Sep 06 21:35:27 hey is anyone here, I have a few basic questions Sep 06 21:35:34 What's the big difference between Software Engineering and Computer Science? Sep 06 21:36:31 the difference between engineers and scientists Sep 06 21:36:44 no one is here, that's why everyone's typing and stuff Sep 06 21:36:59 one find out how to build a refrigerator given constraints, the other comes up with the newest techniques in liquid nitrogen cooling Sep 06 21:37:45 maybe a better question is, what is the role of studying /any/ technology in a university? Sep 06 21:37:50 you are there, hopefully, to learn how to think Sep 06 21:37:54 that never goes out of style Sep 06 21:38:00 trade schools teach techs Sep 06 21:38:16 always tension between academia and industry Sep 06 21:38:27 industry always wants people out of uni that know x,y, and z Sep 06 21:38:35 uni wants to teach people to think Sep 06 21:38:41 but at the same time, have some skills so they can get a job Sep 06 21:38:59 wise words right there Sep 06 21:38:59 ok, well I'm trying to make my first app and so far in my activity_main.xml I have created a login form. I now want to create another "page" that a user can go to and it'll bring up a registration form. what am should I be reading about? Sep 06 21:40:04 I take it you went to uni g00s ? Sep 06 21:40:49 olabaz: Would you not need a database to store all the information from the registration form? Sep 06 21:41:12 Though I'm not sure if I'm right in saying that Sep 06 21:41:35 markyosullivan: yeah but right now I'm just working on the design and wanted to know what I needed to do to create another page Sep 06 21:42:01 Do you not know the basics? Sep 06 21:42:07 Adding a new layout? Sep 06 21:42:57 ah ok, thanks Sep 06 21:43:44 olabaz: how much android development have you done? Sep 06 21:43:48 0 Sep 06 21:44:09 hence the "first app" Sep 06 21:45:01 I'm probably not the best person to ask on here because I haven't been developing apps for long Sep 06 21:45:07 I'm still trying to finish off my first app Sep 06 21:45:35 I found YouTube tutorials useful to get me started so I knew the basics Sep 06 21:45:52 ok I'll try some of those out too Sep 06 21:46:13 http://www.youtube.com/watch?v=CxPh1tgiK2g&list=PLB03EA9545DD188C3 Sep 06 21:46:25 I found his tutorials quite good Sep 06 21:47:14 Actually The New Boston is more recent Sep 06 21:47:14 http://www.youtube.com/watch?v=SUOWNXGRc6g&list=PL33384E9848C4F55E Sep 06 21:47:49 http://www.youtube.com/playlist?list=PLE08A97D36D5A255F Sep 06 21:47:54 I followed The New Boston series. Just follow what he does and you'll pick up the basics. I've been recommend to get books about Android development, you could try that Sep 06 21:48:16 definitely check out jaynewstrom 's link Sep 06 21:48:19 more recent Sep 06 22:04:46 i need help Sep 06 22:06:43 I need a barebones websocket server library that works on android Sep 06 22:06:50 so far the ones I use rely on things like netty, jetty, etc Sep 06 22:06:57 huge libraries, basically, for something retardedly simple Sep 06 22:07:19 root66 could you use something like apache mina ? Sep 06 22:07:40 why websocket library on android... Sep 06 22:07:44 not like you can connect antyhing to it Sep 06 22:09:08 Android can run servers Sep 06 22:09:13 it's just not a common use case. Sep 06 22:09:38 pfn: what do you mean you can't connect anything to it? Sep 06 22:09:51 "Tesla Model S Outperforms Aston Martin" awesome, not that i care much, but good to see automakers and dealerships getting a swift kick in the nuts Sep 06 22:10:01 how do you think things like cheapcast work? Sep 06 22:10:09 omg Sep 06 22:10:18 i offically hate Preference and all it stands for Sep 06 22:10:33 you may not be able to connect anything to it over 3g, but it should work fine on wifi Sep 06 22:10:36 even if it stands for chocolate cookies? Sep 06 22:11:00 YES Sep 06 22:11:04 also, mina looks needlessly complicated and also huge Sep 06 22:11:30 why is it everytime i try to do anything remotely custom, they just hate on you Sep 06 22:11:33 :'( Sep 06 22:11:53 can anyone explain to me what a cursor is and does, I can't get a grapse on what it is used for Sep 06 22:12:06 Cursor is a pointer into a data-set Sep 06 22:12:17 pistolpete333: ^ Sep 06 22:12:21 pistolpete333, it's used for loading data when it's not feasable to load everying in memory at once Sep 06 22:12:24 pistolpete333: think of it as a row of the database Sep 06 22:12:28 row of a table Sep 06 22:12:28 it just points to a data record Sep 06 22:12:29 |: Sep 06 22:12:47 oh ok that makes sense Sep 06 22:16:20 so lets say I have the user input a list of names to be used in a listview kind of thing, and I wanted to save it after the app is killed, what would be the best way to store them? Sep 06 22:16:47 im new to android data storage Sep 06 22:26:55 pistolpete333: Sep 06 22:27:08 do you mean store them so when you open the app it'll be there? Sep 06 22:29:09 anybody know, these days, what the maximum number of BT RFCOMM connections would be? Sep 06 22:29:17 (simultaneous) Sep 06 22:29:34 i thought for some tablet devices it was, maybe 3-ish Sep 06 22:30:27 What you trying to do g00s ? Sep 06 22:30:34 Like what's the project you're working on? Sep 06 22:34:37 i tend to keep my projects under wraps ;) Sep 06 22:35:15 i just need to know how many of these bluetooth DA devices i can connect to Sep 06 22:35:22 at the same time Sep 06 22:36:36 Why do you really think I'd be able to make it g00s Sep 06 22:36:37 :P Sep 06 22:36:51 <|0xD34D|> you're not the only one in here :P Sep 06 22:37:01 :D Sep 06 22:37:50 <|0xD34D|> maybe he's interfacing with bluetooth enabled dildos and sex toys, if that were the case would you still want to know? Sep 06 22:38:09 haha Sep 06 22:38:45 |0xD34D|: defo not Sep 06 22:38:47 lol Sep 06 22:40:58 root66, I meant you won'tr be connecting anything useful to it Sep 06 22:41:17 you know fuck-all abotu usefulness, apparently Sep 06 22:42:12 any devloper here? i need help Sep 06 22:42:34 If you want a web app to be able to access your phone, running a server on the phone would be the most logical solution Sep 06 22:43:00 like, perhaps something that uses sensor data in realtime Sep 06 22:47:56 I think I know a solution to my problem earlier. Can anyone tell me if this is possible: I need to find the position of the list item clicked, using that information find the _ID of that row, using that information get the rest of the data that I need to edit Sep 06 22:48:10 Or is that impossible to do? Sep 06 22:48:58 root66, it's a good thing you know fuckall about connecting to devices, too Sep 06 22:52:05 of course it's possible Sep 06 22:54:26 pfn, is it hard to implement though? Sep 06 22:56:45 pfn: how would you stream realtime sensor data into a web browser without websockets or special software on the computer? Sep 06 22:56:50 if not web sockets? Sep 06 22:57:21 markyosullivan, pretty easily Sep 06 22:57:31 root66, and why are you streaming into a browser from your phone... ok... Sep 06 22:58:05 anyway, setting up a trivial server is trivial Sep 06 22:58:05 The phone is the controller for what you see in the web browser Sep 06 22:58:19 and there is no special software on the pc Sep 06 22:58:33 so how would you do that without a websocket server on the phone? Sep 06 22:58:53 you write one Sep 06 22:58:58 write what? Sep 06 22:59:35 a server to communicate however the hell you want Sep 06 22:59:39 write the websocket server? you would still have a websocket server on the phone, which is what you are ridiculing. Sep 06 22:59:53 no, I'm ridiculing connecting to a phone from a browser Sep 06 22:59:56 so damn impractical Sep 06 23:00:03 compared to what alternative? Sep 06 23:00:14 for your application/design altogether Sep 06 23:00:19 compared to what alternative? Sep 06 23:00:25 you are not answering the question Sep 06 23:00:31 I have no idea wtf you're doing to answer your question Sep 06 23:00:36 you are saying it's a bad way of doing it when it's the only way of doing it that doesn't require special software on the computer Sep 06 23:00:43 use appengine Sep 06 23:00:45 publish data to there Sep 06 23:00:51 use your browser to connect to appengine and download data Sep 06 23:00:55 it can be as realtime as you want Sep 06 23:00:59 and you don't have a discoverability problem Sep 06 23:01:12 and for low-quota usage, it's free Sep 06 23:01:36 whyw ould you introduce latency when both the client and server are in the same room? Sep 06 23:01:40 talk about impractical Sep 06 23:01:58 * pfn shrugs Sep 06 23:02:03 pfn save your breath, ugh Sep 06 23:02:03 accessing it from a browser is impractical Sep 06 23:02:18 impractical compared to what? Sep 06 23:02:26 impractical on an absolute scale Sep 06 23:02:37 this is far from the most impractical thing people in this channel have asked how to do. Sep 06 23:02:41 anyway, time to go out Sep 06 23:02:54 yeah backpedal your way to wherever you are going Sep 06 23:02:59 uh Sep 06 23:03:05 it's impractical, but if you want to do it, go ahead Sep 06 23:03:08 and have your shitty UX Sep 06 23:03:28 pfn: Out of curiosity, do you consider things like AirDroid v1 shitty UX? Sep 06 23:03:45 (I'm aware they have a cloud version now) Sep 06 23:03:47 dunno what airdroid is Sep 06 23:03:51 and yeah, they do shit in the cloud Sep 06 23:04:05 if it's directly to a device by IP then I consider it shitty UX Sep 06 23:04:23 for a long time, it was entirely a server in the phone, and extremely well-reviewed. Sep 06 23:04:24 just like I consider wifi file explorers to be shitty ux (connecting to phone over a browser) Sep 06 23:04:34 just because it's well-reviewed doesn't mean it has great UX Sep 06 23:04:39 just there isn't anything better Sep 06 23:04:45 airdroid connects directly to the device Sep 06 23:04:45 anyway, gtg Sep 06 23:04:47 the same way my app would Sep 06 23:04:51 yeah, piss off Sep 06 23:05:06 it was well-reviewed for its UX... Sep 06 23:05:17 RyanM he is just a hater Sep 06 23:05:43 in any case, yes, it's not exactly practical, and may restrict your app to the sort of power users who can get this sort of thing working consistently. Sep 06 23:05:46 <|0xD34D|> he's just opinionated, like most people Sep 06 23:05:50 Regarding a scenario between a Fragment and a host Activity, will retrieving a View be best through the onActivityCreated() callback handler of the Fragment? Sep 06 23:05:59 it's also really bad for your device's battery life, just so you know. Sep 06 23:06:23 but it doesn't mean it's necessarily a bad idea, depending on what exactly you're building. Sep 06 23:06:50 people ask for way dumber stuff in this channel all the time. Sep 06 23:07:10 (usually it boils down to "can you write this part of the app for me?") Sep 06 23:07:21 Answer my dumb question!! Sep 06 23:07:27 XoXo Sep 06 23:08:06 incognitto: retrieving a view? Sep 06 23:08:11 what's that mean? Sep 06 23:09:01 accesssing Sep 06 23:09:10 ? Sep 06 23:09:22 you can access views in any method on the UI thread Sep 06 23:09:37 you're gonna need to ask a specific question. Sep 06 23:09:51 and that question mark is because im not entirely sure :P Sep 06 23:10:31 <|0xD34D|> it's a vague question Sep 06 23:16:48 Wow Sep 06 23:17:00 some people are really rude when they ask questions here Sep 06 23:17:21 I still can't figure out how I'm supposed to get my code to work Sep 06 23:17:22 <|0xD34D|> welcome to IRC Sep 06 23:17:50 I'm thinking I'm going to have to start from scratch with these activities Sep 06 23:17:54 ##$%$#%%!$@# IRC Sep 06 23:18:20 Do people usually come in here and grief you guys? Sep 06 23:19:26 usually? no. Often? yes. Sep 06 23:20:00 that would be annoying Sep 06 23:20:17 I can't see any way to fix my code Sep 06 23:20:21 My experience is that people are usually nice on IRC. Mind you, I'm amazed that my questions get answered as often they do. Sep 06 23:20:37 My questions aren't answered until I ask a good question Sep 06 23:20:52 which can take me a while unfortunately lol Sep 06 23:21:05 there are guides for asking questions. Sep 06 23:21:28 Yeah, I'm just really confused with what I'm trying to do, so don't know how to ask Sep 06 23:22:52 What I want to do atm is transfer data from a list view item, to a different activity where I'll edit it and then update the database Sep 06 23:23:01 Sometimes, when I have a specific situation that I don't expect people to know, then I just broaden and simplify my question. This doesn't immediately answer my question ... but I might be able to trigger some discussion. Then I find that some ideas get started in my head ... so that I got back and hit google again with different search terms. Sep 06 23:23:08 yeah, unfortunately, it's really difficult to even respond to bad questions. If you do, you'll often spend more time than you have trying to coach people through asking a question. Sep 06 23:23:17 Hmm Sep 06 23:23:23 Okay I'll break my question down Sep 06 23:24:07 Actually I'm not sure lol Sep 06 23:24:12 some IRC channels a way to kick the local bot to give a link on "how to ask questions". Sep 06 23:24:13 basically, you need to be specific enough for us to know exactly what you're doing, but simultaneously ask in a way that we don't need to be familiar with your app's structure. Sep 06 23:24:21 s/a way/have a way/ Sep 06 23:24:42 My list view is populated using an array adapter Sep 06 23:26:36 One of the array items is called PaymentDate, it's created using the paymentDay, paymentMonth and paymentYear from the database Sep 06 23:26:47 does that make sense? Sep 06 23:26:49 :s Sep 06 23:27:41 roadfish: it's also the first result on google for "how to ask questions," but no one ever checks that first :-p Sep 06 23:29:20 RyanM: There are genuine newbies as opposed to lazy, thoughtless people. And a gentle nudge to the newbies can be helpful. Sep 06 23:30:34 markyosullivan: I came to the party late. So I don't even know what you question is. I still newish to Android programming although I have used ListViews already. Sep 06 23:31:21 roadfish: Yeah, I agree. Sep 06 23:31:22 My ListView uses an array adapter to populate it Sep 06 23:32:00 and ...? Sep 06 23:32:06 I'm not lazy, if I was lazy I would have given up 3 hours ago when I first came in here trying to figure out how to get rid of my errors Sep 06 23:32:19 It doesn't work :( Sep 06 23:32:43 markyosullivan: Sorry. My comments aren't directed to you. I'm just making general comments. Sep 06 23:32:58 Basically, I'm trying to edit an item in my List View Sep 06 23:33:42 The array adapter has items which are built using data from different columns in my Database Sep 06 23:34:33 markyosullivan: By edit, do you mean that you want to programmatically change an item? Or do you want to bring up something that the human user can use to edit ListView items? Sep 06 23:34:54 I bring up the same activity which the user uses to add Payments Sep 06 23:35:04 populated with the data they wish to edit Sep 06 23:36:14 but when the array list items are joined together, it crashed when I tried to edit them. Which is why I had to change my code so I could break it down. E.g. array item PaymentDate would have data from the paymentDay, paymentMonth and paymentYear columns Sep 06 23:36:32 Does that kind of make sense? Sep 06 23:37:55 Anyway, I can't get the data I want to import to the activity where the user edits the data Sep 06 23:38:07 What is the top level stack error that you get? And have you done any searching on the stack error? Usually, I find google gives good hits to StackOverflow for Android stack errors. Sep 06 23:38:27 I don't have an error Sep 06 23:38:43 It brings up the wrong data to edit if there's more than 1 item on the list view Sep 06 23:38:57 it's always the last item that is transferred over to edit Sep 06 23:41:23 Hmm, I haven't actually done any editing of items in ListViews (yet). But I am planning on doing that in the coming days. I have triggered actions when the user presses an item on the list ... such as playing audio. How does the user specify that they want to edit an item in your app? Sep 06 23:41:53 A press? A long press that lets the user select an action from a menu? Or some other way? Sep 06 23:42:03 they hold their finger over the item they want to edit, brings up a floating context box (iirc that's what it's called but I might be wrong) Sep 06 23:42:13 2 options appear: edit/ delete Sep 06 23:43:06 Ok, so you have some kind of callback for the ListView item ... and that callback does specify the index of the item that you want to edit/delete? Sep 06 23:43:26 It knows the item position that I clicked on Sep 06 23:43:31 tested it in a toast Sep 06 23:44:24 The biggest problem for me is my array adapter Sep 06 23:44:45 Do you use an array adapter roadfish? Sep 06 23:45:25 So the toast reports the PaymentDate but then the "floating context box" shows the wrong item Sep 06 23:45:53 I have used at array adapter once before ... I'll dredge up my code to see what I did. Sep 06 23:46:25 No, the toast reports the position of the item Sep 06 23:46:30 right, I have a "bookmark" with a name and some position info. Sep 06 23:46:53 Its been a month since I last looked at the code. Sep 06 23:47:02 But my array adapters items are built using multiple columns from my database Sep 06 23:47:27 I want to break them down and transfer them over to edit them Sep 06 23:50:50 ok, I'm look at my code. So I used an OnItemClickListener with a onItemClick function ... and the function had int position that specified which item was clicked by the user. Sep 06 23:51:47 Yeah Sep 06 23:51:55 I really don't think my code is going to work Sep 06 23:52:03 but my data is just in an ArrayList. Is your data in an SQLite database? Sep 06 23:52:18 Yep Sep 06 23:52:39 couple of the columns from the database is used to make the array list items Sep 06 23:53:33 Is it possible to return null on getView() to not show a ListView item? Sep 06 23:53:49 Ok, as I see you problem, it could be one of two sources. Either you're screwing up in getting data from the SQLite database. _Or_ you're screwing up in getting data to this "floating context box". Sep 06 23:54:06 Neither Sep 06 23:54:12 Both are fine Sep 06 23:54:43 I just don't know how to export the data from the list item Sep 06 23:54:44 :/ Sep 06 23:55:11 Like get all the corresponding SQLite Database data in that list item Sep 06 23:56:42 I haven't used SQLite databases yet. Although I did import the Launcher database into my OS and played around with some Linux command line tools. Sep 06 23:57:06 Yeah I'm going to go to bed, don't know what I'm going to do with my code Sep 06 23:57:16 Thanks for the help roadfish Sep 06 23:57:18 Anway, just based on my (uninformed) intuition, you have to take the position in the onItemClick and get the corresponding entry in you SQLite database. Sep 06 23:57:23 appreciate you trying to help Sep 06 23:57:24 Is that where you are failing? Sep 06 23:57:41 well, good night. some sleep can do magic to get a fresh perspective. Sep 06 23:58:06 I did think about getting the position of the item row, then using that checking for the _ID for the item row Sep 06 23:58:17 but then I realised my array adapter doesn't have an item row Sep 06 23:58:21 *_ID Sep 06 23:58:22 lol Sep 06 23:58:42 Days ago I was basically finished my app Sep 06 23:58:49 back to the drawing board tomorrow Sep 06 23:58:52 search google ... I'm 90% sure that there will be some StackOverflow entry desribing exactly your situation. Sep 06 23:59:10 I tried, couldn't find anything Sep 06 23:59:49 did you do searches that included the function names that you're using? Sep 07 00:00:20 what you mean function names? Sep 07 00:00:26 also, _you_ could ask on StackOverflow. Provide simplified version of your code and what you want to do. Sep 07 00:00:40 Yeah I'm going to post now on StackOverflow before I go to bed Sep 07 00:01:05 You are using Java functions to access your database and to access items in the ListView. There are the best kind of search terms to hit google with. Sep 07 00:01:12 s/There/These/ Sep 07 00:02:33 huh? Sep 07 00:02:49 What you mean? Sep 07 00:03:43 how can I incorporate the ndk with my Android Studio project Sep 07 00:04:23 i'd be fine with using ndk-build on the commandline. What I can't figure out is how to include the shared library in the .apk Sep 07 00:04:59 markyosullivan: Based on what you've said so far, I assume that you are trying take the You are trying to onItemClick position and use it to get the corresponding entry from the SQLite database. So you should create a google query that includes onItemClick and also includes the function that you are using to search the SQLite database. This creates a greater likelihood of creating a relevant hit from google. Sep 07 00:05:25 (sorry) my reply is a bit garbled from a cut-and-paste Sep 07 00:05:30 I appreciate your help roadfish Sep 07 00:05:37 Just feel a bit lost atm lol Sep 07 00:06:03 I'll post my Stack Overflow question before I leave to see if it makes sense Sep 07 00:06:21 when you hit your head against a wall for 3 hours, you're thinking can get a bit muddled. But some sleep can help. Sep 07 00:08:19 Can I decide not to show a ListView item on the getView method? Sep 07 00:08:51 RustyShackleford: I don't have any help for you. But am just wondering how you're finding Android Studio so far? I'm still using the Eclipse setup. Sep 07 00:09:43 zyngawow: I remember doing something like that. IIRC I had an ArrayAdapter and it dropped the ListView item that I didn't want to display. Sep 07 00:10:29 roadfish, it's decent. I don't think it's any faster than eclipse, but I appreciate that you aren't restricted to workspaces Sep 07 00:11:08 zyngawow: yeah, I had a class of items that got displayed in the ListView. Then I used an ArrayAdapter and in the getView function, I dropped items that I didn't want to show. Sep 07 00:11:25 roadfish, you "dropped" them? Sep 07 00:12:22 RustyShackleford: Does Android Studio use the same (kind of slow) AVD? Sep 07 00:13:20 pretty sure. I've only used it with usb debugging Sep 07 00:13:50 zyngawow: ok, here's the trick: getView takes in a position. Then you hand back the specific ListView item to display. But let's say that I hate item #3. Then items 0,1,2 I hand back as usual. But when I'm asked for item #3, I actually give item #4. For #4 I give item #5. etc. Sep 07 00:14:14 zyngawow: a bit of Orwellian rejigging of the returned list. Sep 07 00:14:34 Huh, that might do the trick Sep 07 00:15:37 zyngawow: I didn't think up this trick. I got it from a blog entry or maybe StackOverflow. If you search on "dropping ListView items" (esp with getView), this is what the webpages will say. Sep 07 00:16:55 zyngawow: You just scan through your list, decrementing the position until you hit zero. But you skip decrements for items that you want to delete. Sep 07 00:19:29 where should I include Fragment#setHasOptionsMenu()? On OnAttach? Sep 07 00:21:36 roadfish: you there? Sep 07 00:21:44 markyosullivan: hello Sep 07 00:21:48 Does this question make any sense? Sep 07 00:21:52 It's late, I'm tired Sep 07 00:21:53 http://stackoverflow.com/questions/18668421/editing-data-in-a-list-view-item Sep 07 00:22:37 markyosullivan: maybe your query will help me in the future when I start using SQLite databases. Sep 07 00:23:05 Just make sure you research what you need Sep 07 00:23:29 I think I've been told I should be using a cursor adapter Sep 07 00:23:31 ... reading your webpage now. Sep 07 00:23:39 It doesn't make sense does it? Sep 07 00:25:31 <^cheeky> zyngawow: try oncreate of your activity ? Sep 07 00:27:13 markyosullivan: I've not done enough with SQLite to judge if your question makes 100% sense. I can basically follow what you're saying. Sep 07 00:27:24 how would I go about creating a pull-out tab similar to what is seen in this screenshot? http://forums.androidcentral.com/verizon-galaxy-note-2/230087-pull-out-tab-my-screen.html Sep 07 00:27:28 that's good Sep 07 00:27:36 could you rate my question up roadfish? Sep 07 00:28:37 markyosullivan: I'm not a member on StackOverflow. I've only read items on StackOverflow. Sep 07 00:30:04 just markyosullivan: from my ignorance, I don't quite understand what you mean by "variables is created using the data imported from the Database". Is this some code being run at the receiving end of the intent broadcast? Sep 07 00:32:32 also, I notice a few discrepancies. "intent.putExtra("ITITLE", pTitle)" vs "pTitle = C.getString(C.getColumnIndex("PTITLE"))". Why ITITLE then PTITLE? And why aren't you using the same naming scheme throughout the code? Is this forced on you by the libraries that you are using? Sep 07 00:33:31 Whenever you want to get the data from the database you use Cursor.getInt/String(Cursor.getColumnIndex("KEY")); Sep 07 00:34:01 Yeah, I use a different Key name to export the data Sep 07 00:34:08 it's not being exported as a database Sep 07 00:34:15 but through intent.putExtra Sep 07 00:34:23 to receive it I use this code Sep 07 00:34:44 iTitle = getIntent().getStringExtra("ITITLE".toString()); Sep 07 00:35:16 It allows me to transfer the data that the user wants to be edited Sep 07 00:35:32 Hope that makes sense? Sep 07 00:36:27 Enough sense. I'm sure I'll follow quite well once I start using SQLite in Android programs. Sep 07 00:36:45 ^cheeky, it's just that I get this error: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.darkraven.shoppinglist/com.darkraven.shoppinglist.ShoppingList}: android.view.InflateException: Binary XML file line #7: Error inflating class fragment Sep 07 00:36:53 And I'm guessing the question has enough meat for experienced Android programmers to follow. Hopefully, they'll tear it apart and point you in the right direction. Sep 07 00:39:35 roadfish do plenty of practice SQLite classes before attempting to incorporate it into your app Sep 07 00:40:02 I sort of went ahead too quickly not really understanding it but just went with the flow because it worked Sep 07 00:40:08 Anyway I'm away Sep 07 00:40:14 I'll probably be on here tomorrow Sep 07 00:42:08 <^cheeky> zyngawow: are you using a fragment in your activity to infalte the view yeah ? Sep 07 00:42:54 fragments dont inflate views, inflater service does Sep 07 00:42:55 :) Sep 07 00:43:47 ^cheeky, yes Sep 07 00:43:49 <^cheeky> :) yes sorry .. my reply was to wack heh but you call the oncreate view in the fragment to inflate the Sep 07 00:43:55 the error is on setContentView Sep 07 00:44:07 <^cheeky> onCreateView ? Sep 07 00:44:10 And then a NPE on the fragment doing .getTag() Sep 07 00:44:23 on onAttach(); Sep 07 00:45:24 <^cheeky> i think .. the norm might be using the inflate service passed into the oncreateView() to inflate the layout in layout resource folder Sep 07 00:46:16 <^cheeky> zyngawow: what you doing onAttatch ?? Sep 07 00:46:45 mTag = getTag(); Sep 07 00:46:45 if(mTag.equals("products")) Sep 07 00:46:45 setHasOptionsMenu(true); Sep 07 00:47:33 <^cheeky> mTag is what type ? Sep 07 00:47:45 String Sep 07 00:48:20 zyngawow: what are you attempting to do btw? Sep 07 00:49:17 StingRay_, a shopping list app. That is my generic fragment. I want to have 1 product list and infinite shopping lists, so I check if it is a product list. Sep 07 00:49:24 By getting the tag Sep 07 00:50:11 ok and the tag is set in an add operation of fragmentManager ? Sep 07 00:50:55 Yeah Sep 07 00:51:39 not too sure using the tag that way is best… maybe consider passing args to the fragment instance to use as internal options Sep 07 00:52:19 so passing a bundle to it and using setArgs (or whatever it's called) Sep 07 00:52:29 The tag should work Sep 07 00:53:33 <^cheeky> zyngawow: sorry i am new i have not used tag .. just only passing using bundles and extrass between fragments and activities, thank about the tag heh Sep 07 00:53:39 not sure the tag releates to the internal object tag Sep 07 00:53:52 but rather maybe it's just for the fragmentManager reference Sep 07 00:54:39 by that I mean, are you sure that add(frag,"my tag") results in frag.mTag ? Sep 07 00:54:45 I'm not sure it does Sep 07 00:54:55 <^cheeky> ohhhh that tag lol Sep 07 00:54:58 mTag = getTag(); Sep 07 00:55:11 So yes, it does Sep 07 00:55:17 I declare mTag Sep 07 00:55:57 and that has "products" in it ? Sep 07 00:56:50 what I'm saying is I think that it doesnt Sep 07 00:57:33 i think that add(fragment,"sometag") is not the fragment.getTag() you think it is… could be wrong… test it and see Sep 07 01:07:01 oh tell a lie it is Sep 07 01:07:06 just looked at source Sep 07 01:34:26 jaynewstrom: I wanted to thank you, my custom build rules are now running perfectly within their targets. You pointed me in the right direction by mentioning the builder's targets. Sep 07 01:35:30 but now I have another question about Eclipse's build system: when I choose "run as -> android application", my apk is produced. However, when I choose "build", it isn't, which is less than intuitive, in my opinion Sep 07 01:35:56 so, how can I get the "build" option to also produce the apk? Sep 07 01:36:29 I can't seem to modify the "Andriod Package Builder" builder in the project properties... Sep 07 01:51:04 jmpp: havent used Eclipse in a while, but isn't build just compile? So it isn't run and therefore no apk Sep 07 01:52:52 cooldman224: yeah, figured that, build is just compile, and thus run is what produces the apk… so then I guess I'd like to have some command that just packages the app without having to run it Sep 07 01:54:31 jmpp: if i remember correctly, you could use export. If not, perhaps gradle or maven can create the apk Sep 07 01:55:33 export, right… any way to export without signing? Sep 07 01:58:39 hmm i thought there was... Sep 07 01:58:53 right click export?? Sep 07 02:00:14 right click export, yeah, seems to always require a keystone :( Sep 07 02:01:30 yeah then im not much of help :( Sep 07 02:02:15 Is it feasible to give each website its own cache to allow for offline content? Sep 07 02:02:22 :( thanks a bunch anyhow ;) Sep 07 02:02:31 jmpp: You can do an unsigned export Sep 07 02:02:37 However, I believe most phones won't run that Sep 07 02:02:46 dev phones will Sep 07 02:02:49 which is my target now Sep 07 02:03:03 any pointers on exporting without signing? Sep 07 02:04:29 The phone I tried it on refused to load it, so I ended up just making a keystore. It should be pretty straightforward, though. Just right click the project, go to android tools, and choose unsigned export Sep 07 02:07:07 so when I hit run, Eclipse is all the same signing my application without my noticing? Sep 07 02:08:30 jmpp: Either that, or it works because it's connected via USB and in debug mode. I was trying to download my apk from Dropbox to put onto someone else's phone Sep 07 02:13:41 nah, not debug/usb now, just producing an apk and sending it over mail to a co-worker Sep 07 02:13:57 he grabs it from his mail and installs it on his phone, and it works... Sep 07 02:14:13 so I guess Eclipse is indeed signing it behind my back when I hit "run" Sep 07 02:15:27 does anyone know when Android Studio is going to be released? Sep 07 02:24:19 isn't Android Studio already released? or are you saying that Android Studio is still just in beta release ... and you're wonder when it comes out with some finished release? Sep 07 02:27:27 maybe it will be 1.0 by i/o 2014 :P Sep 07 02:27:45 at this rate though, maybe 2015 Sep 07 02:28:27 I call dibs on 0.9999999 by 2016 Sep 07 02:29:32 <^cheeky> android studio releases ? Sep 07 02:31:07 yes, this is the official Android Studio release betting pool Sep 07 02:31:14 <^cheeky> nice Sep 07 02:33:58 haha Sep 07 02:35:07 haven't tried android studio yet, but it must be pretty good Sep 07 02:36:04 <^cheeky> i really like the experience coding for android apps on it, even though i still adore eclipse, js Sep 07 02:37:04 IntelliJ's JS plugin is great Sep 07 02:40:21 <^cheeky> i have never used intelij .. well untill i used AS Sep 07 02:40:52 <^cheeky> h8 it when my days become night && nights.become(days); Sep 07 02:47:09 I'm trying to use the NDK with eclipse. How do I add dependencies to my project? Sep 07 02:47:46 for example, I want to use boost::gil. Should I just copy the boost/gil to /jni/boost/gil? Sep 07 02:48:17 Maybe a dumb question, but is eclipse for linux as good/stable as it is for windows? Sep 07 02:48:49 pretty much. I think you might need to run oracle-java instead of openjdk Sep 07 02:49:26 whats the difference? Sep 07 02:49:37 <^cheeky> pistolpete333: i have used both .. linux for me was very stable .. but so was .. winDows, but i felt nix was a lil snappier.... or just in my head Sep 07 02:50:27 ^cheeky, cool, I would prefer to use it on linux so thats good to hear Sep 07 02:50:44 <^cheeky> just try everything heh .. whats there to lose :) Sep 07 02:52:17 <^cheeky> ok this is prolly a stupid question ... so i am been reading the design section on android developers and have come across the stencill resources.. and it says drag and drop these stencils.. so i need photoshop or something to use these .. or how would i go about using them .. i have no UI experience .. prolly just droping images into web stuff .. Sep 07 02:53:03 Hi guys. Used the training of developer.android.com - began my first exercises, changed RelativeLayout to LinearLayout and wrote the written code on the page in my project, now eclipse is coming up with problems that i can't solve on my own cause it's 2 problems that are not understandable - "This RelativeLayout view is useless" - keep in mind (I changed the tag - no single RelativeLayout is existing anymore) and "XML document structure Sep 07 02:53:41 <^cheeky> veryhappy: i dont remember a code pastie thing .. but maybe paste your code and share link ? Sep 07 02:54:33 ^cheeky: good idea, sorry forgot that - i'll take pastebin.org Sep 07 02:56:50 http://pastebin.com/QgjyjSq1 Sep 07 02:58:16 i don't want to say i'm 100% sure, i'm human, and i could have missed an error. please point me there if necessary. **** ENDING LOGGING AT Sat Sep 07 02:59:59 2013