**** BEGIN LOGGING AT Fri Aug 22 02:59:59 2014 Aug 22 03:00:03 "your history table shouldn't be enforcing uniqueness" Aug 22 03:00:12 he literally just answered every one of your questions before you asked them Aug 22 03:00:13 lol Aug 22 03:00:23 Jesus christ, it's like a pissing contest in here Aug 22 03:00:28 no its not Aug 22 03:00:49 "your history table shouldn't be enforcing uniqueness" I do not understand what this means, obviously Aug 22 03:01:00 then say so Aug 22 03:01:09 why does your history table disallow duplicates? Aug 22 03:01:14 It doesn't Aug 22 03:01:36 Creating a cursor using a select query with duplicate entries seems to return a cursor without duplicate entries Aug 22 03:01:41 Or am I missing something? Aug 22 03:01:44 show us that code Aug 22 03:01:49 how are you making your history cursor Aug 22 03:02:11 Side question: say I want to pre load my sqlite database with some rows, is onCreate a good place to do that? Aug 22 03:02:11 OK, give me a couple of minutes to pastebin it Aug 22 03:02:49 desmin88: yes, that's exactly what it's for Aug 22 03:02:56 well there ya go. Aug 22 03:02:58 thx Aug 22 03:08:35 So it looks something like this: http://pastebin.com/RX89PiZw Aug 22 03:10:38 o.0 Aug 22 03:11:38 why does nowPlaying Aug 22 03:11:45 contain history and future Aug 22 03:11:57 IS that an important question? Aug 22 03:12:00 yes Aug 22 03:12:16 ah, ok. the problem is you are querying for everything at once and using the result from an external content provider Aug 22 03:12:19 Because nowPlaying is a list of songs that are upcoming and have been played Aug 22 03:12:24 it's going to be lazy and only look up things once Aug 22 03:12:31 Yes Aug 22 03:12:59 that's a function of the remote content provider, not so much the query nor cursors Aug 22 03:13:07 Oh, ok Aug 22 03:13:36 So wait, nowPlaying is a list of songs that both a: are in the queue to be played and b: have also been played before? Aug 22 03:13:40 So when querying with a SELECT cause containing duplicate entries, I can see that it just creates one row per unique entry Aug 22 03:13:58 the way I would fix that is by keeping a map of id -> song data and then using the list of longs as the data for the list adapter Aug 22 03:14:09 in the adapter, query the map based on the id to get the info Aug 22 03:14:14 Right Aug 22 03:14:22 See I was trying to carry on using a cursorAdapter Aug 22 03:14:43 if all the data was in your own database you could just use normal queries and a cursoradapter Aug 22 03:14:44 Hence why I'm wondering if a cursor could be created where duplicates are not passed over, if that makes sense Aug 22 03:14:49 Yeah ok Aug 22 03:14:56 "list of songs that are upcoming and also have been played before" or "list of songs that are upcoming, and songs that have been played" Aug 22 03:15:04 I'll create a custom ArrayAdapter and at least I'll have control over the map Aug 22 03:15:31 If that makes sense Aug 22 03:16:06 Sorry for my inability to speak in the appropriate technical language, it's probably my biggest shortcoming as a developer, Aug 22 03:16:36 Unfortunately it is mistaken for stupidity, which leads to some frustrating IRC conversations. Aug 22 03:17:39 well the Android APIs also have a tendency to not do you many favors as well Aug 22 03:17:47 damned truth Aug 22 03:18:49 I don't understand though - even if it was my own database, if the database only contains unique song_id's, wouldn't the cursor still lazily only iterate over the list once, and hence still only return a single row per unique entry? Aug 22 03:18:59 hi there, I have a question. I have a dialog fragment and i want to keep the size height and width, but remove the title. Whenever i do setStyle(..NO_TITLE... the size changes and everything becomes similar to wrap_content Aug 22 03:19:02 (rather than a row per entry in the SELECT query) Aug 22 03:23:11 can anyone help me with my issue Aug 22 03:49:00 I think the static modifier should be removed in this snippet from android document: http://pastebin.com/qieuqhey Aug 22 03:50:36 Can Anyone help me with this? I have a dialog fragment and i want to keep the size height and width, but remove the title. Whenever i do setStyle(..NO_TITLE... the size changes and everything becomes similar to wrap_content Aug 22 04:10:35 well I may be on the shortlist to start playing with atheerlabs hardware Aug 22 04:11:05 booya Aug 22 04:11:15 g00s: done anything with ble yet? Aug 22 04:11:34 ron_frown reading. got lots of reading. Aug 22 04:11:52 reading about the phycial layer atm, and GFSK Aug 22 04:11:58 fascinating stuff Aug 22 04:12:16 heh Aug 22 04:12:18 I guess Aug 22 04:13:31 this for the otherhardware you were messing with or somethign else Aug 22 04:14:00 yeah Aug 22 04:14:17 thinking about getting a little nRF51822 dev kit Aug 22 04:17:24 ron_frown have you played with the wearable stuff yet ? Aug 22 04:17:36 other than glass no Aug 22 04:17:50 I agree that glass conceptually is useful to MAYBE MAYBE 1% of the populate Aug 22 04:17:59 population but definitely valid for my industry Aug 22 04:18:53 wearables dont really seem terribly useful for me to be honest Aug 22 04:19:10 I'll probably get a 360 because 250 is CHEAP CHEAP CHEAP for a watch Aug 22 04:19:19 but Aug 22 04:19:20 I dont know Aug 22 04:19:25 if its anything like glass Aug 22 04:19:34 you dont need to shell out money to get a decent watch Aug 22 04:19:43 it'll inspire people to create all kinda wonderful things... Aug 22 04:19:52 but then you wont be able to come anywhere near what you WANT to do Aug 22 04:20:04 desmin88: I collect swiss watches Aug 22 04:20:04 or are we just talking about the wear watches Aug 22 04:20:09 or any watches Aug 22 04:20:17 so 2500-5k vs 250 Aug 22 04:20:24 well i'm still trying to figure out (without owning) if an android watch can be a BLE master to other peripherals Aug 22 04:20:29 ahh i see you're a collector Aug 22 04:20:39 well I only have a couple Aug 22 04:21:09 what are you trying to do with it Aug 22 04:21:13 i have a couple watches just for simple aesthetics Aug 22 04:21:18 I know for beacons and shit Aug 22 04:21:28 you can be a beacon on android by installing an app Aug 22 04:21:37 and nothing more Aug 22 04:21:49 now beacon protocol shit Aug 22 04:21:53 is unpaired Aug 22 04:31:22 pandora has been playing covers of the same 5 songs Aug 22 04:31:23 wtf Aug 22 04:32:57 yeah imo pandora kinda sucks Aug 22 04:33:12 as soon as I was listening to metal station Aug 22 04:33:16 and bam wheels on the bus comes on Aug 22 04:33:59 its like Aug 22 04:34:02 these arent even new songs Aug 22 04:46:03 Why is cwac-endless retired? https://github.com/commonsguy/cwac-endless Aug 22 04:49:17 sad day. Aug 22 04:51:55 meh Aug 22 04:52:16 cant tell you how many times hes told me oh you should be doing things this way Aug 22 04:52:24 or you are doing it wrong Aug 22 04:52:33 my day to day development is HUGELY different than most folks in here Aug 22 04:53:03 hehe Aug 22 04:53:05 what do you mean hes told you Aug 22 04:53:11 on stack overflow etc Aug 22 04:53:13 Everyone here probably feels the same Aug 22 04:53:21 oh Aug 22 04:53:51 I maintain android ports for hardware thats very very specialized Aug 22 04:54:09 I've had to do some stuff that I'm not proud of Aug 22 04:54:21 other times its just working around retarded android design issues Aug 22 04:54:50 'I've had to do some stuff I'm not proud of' Aug 22 04:54:51 lol Aug 22 04:55:08 if you have to do sexual favours to get driver information, you're doing it wrong... Aug 22 04:55:16 no no Aug 22 04:55:41 well I built this big ass massive remote management of device framework Aug 22 04:56:03 functionality of which is remote control, or low framerate vid capture Aug 22 04:56:19 this was before any of the vid cap stuff was in the roms Aug 22 04:56:31 kinda cool tho Aug 22 04:56:45 I can pick 50 devices, and tell them to all go install this apk, or go download and install x Aug 22 04:59:31 dragorn around by any chance ? Aug 22 05:01:32 shizzle Aug 22 05:23:19 I created a file called hello_file in my Activity#onCreate - where do I find it in ES exploer ? Aug 22 05:25:17 you tell us Aug 22 05:25:20 you created the file Aug 22 05:32:26 shmoon: your name is almost as nice as mine, are you trying to develop using your android device only ? Aug 22 05:33:50 oh god Aug 22 05:33:54 not that aide stuff Aug 22 05:52:51 any recommendations for android learning guides? Aug 22 05:53:53 and what do you think of the guide on thenewboston channel on youtube? Aug 22 06:00:47 shmooz: ya Aug 22 06:01:00 desmin88: ok how do i know my pwd ? Aug 22 06:01:26 I tried this piece of code http://stackoverflow.com/a/5527883 - it gives me /data/data/com.... but I don't find any folder inside /data in es explorer Aug 22 06:04:40 you need have root Aug 22 06:04:43 to have* Aug 22 06:05:55 desmin88: how do I become root ? Aug 22 06:06:02 ... Aug 22 06:06:46 i dont think you ever will Aug 22 06:07:53 hm Aug 22 06:12:38 if my app stopped unexpectedly, would i look @ logcat files on android studio in order to diagnose exactly where my problem may be? Aug 22 06:15:10 http://pastebin.com/CwhbbkZc Aug 22 06:15:22 yu; Aug 22 06:15:33 yup, or run it in the debugger Aug 22 06:15:52 placing a break point someplace before it terminates and then stepping until it does Aug 22 06:16:23 you can also have it post messages to the log as well Aug 22 07:17:43 Hi Aug 22 07:18:17 I have a file that displays some content in listview Aug 22 07:18:31 I have used ArrayAdapter Aug 22 07:19:38 In this same file I want to obtain some edittext fields which are in another file(programatically created without hardcoded xml file). How can i call those fields in my first file? Aug 22 07:29:54 pass them into the constructor Aug 22 07:30:03 or pass a reference of the containing type into the constructor Aug 22 07:49:01 Hi everyone. I wanna insert image inside the row of a listview. But I can't find the size in pixel tha they should be. Anyone caould help me? Aug 22 07:51:04 mcmaur: can just set your size in the layout Aug 22 07:55:20 Has anyone faced this issue where showing images on gridview repeats themselves while scrolling? Aug 22 07:56:46 shmoon depends on what you mean Aug 22 07:57:39 mcmaur thats a personal and project design decision, little to do with dev really :) Aug 22 07:57:57 mcmaur in other words "you decide" Aug 22 07:58:44 @StingRay_ that's why I prefer coding instead of do the design but I'm alone in this project :D Aug 22 08:00:42 but the project is open source so if anyone wanna help visit here : http://goo.gl/Js6pNm Aug 22 08:09:23 mcmaur if you can decide on the size to display an image (you should be able to really without a designer) then see if a designer will join the project Aug 22 08:12:00 thanks @StingRay_ to be realistic I'm not sure anyone wanna join :) but thanks anyway Aug 22 08:24:41 mcmaur oh your asking on behalf of someone else ? Aug 22 08:25:01 or just you on it ? Aug 22 08:25:12 only me Aug 22 08:25:30 well what is the image of ? Aug 22 08:26:28 I wanna create a row like this Aug 22 08:26:51 cause normally I would say 30dp (icon ish) to 75dp (fair size thumbnail) anything above is special case Aug 22 08:27:31 icon-text-text-icon-text-icon-icon Aug 22 08:28:03 should rappresent a "recipe" where the icon are the ingredients Aug 22 08:28:38 1 row = recipe entry ? Aug 22 08:28:52 yep Aug 22 08:29:09 and the image is of the result …as in the cooked food etc ? Aug 22 08:29:46 or is it an icon ? Aug 22 08:29:51 the first text and icon are the result. the other the ingredients Aug 22 08:30:34 well there are many recipe apps to look at for design hints,tips or copy :) Aug 22 08:32:07 uhm good idea Aug 22 08:39:40 Is it possible in Android to make a video player that plays the video even when the app is in the background? Or its architecture forbid this kind of behaviour. (e.g. I want to create an Youtube app that will play even in background). Aug 22 08:40:27 Yes Aug 22 08:41:00 So i need to make a service? Aug 22 08:43:26 if you need a service then yes, easy to figure that out on http://developer.android.com/guide/components/services.html Aug 22 09:06:25 Hello. Is there any way I can get the cursor that was returned by CursorLoader, after the onLoadFinished callback? Aug 22 09:06:57 How do you tell the difference if a listview item is hold or tap? Aug 22 09:07:08 like in the gmail app where you hold it gets selected Aug 22 09:07:45 Mrdarknezz, that's called a long click Aug 22 09:08:01 There's a separate listener for that Aug 22 09:08:09 Oh thanks :) Aug 22 09:08:23 Np :) Aug 22 09:14:57 I recently converted a bit my "learning by doing app" to use a fragment. A fragment has a similar lifecycle to an activity but I'm really not seeing the advantage over simply bringing views in (visible or gone) dependant on screen res etc and tying them to some supporting class which has access to the main activity. Googling I see this has been asked a few times in SO but the answers given are usually just another rehash of the Aug 22 09:14:57 fragmentation docs rather than an explanation of why they exist. Is it simply the fact they have a defined lifecycle and callbacks plumbed in which makes resource allocation/deallocation easier perhaps? A good enough reason. Aug 22 09:15:15 hey StingRay_ , the other day I had been setting setSelected back to false whenever the item was selected, so I end up with its selection disappearing :\ Aug 22 09:15:18 such stupid. Aug 22 09:15:55 Sicp everyone does that, and much worse in wasting time due to missing silly little things :) Aug 22 09:16:01 or I do that lots Aug 22 09:16:21 it's just cause there's a portion of the code that you never investigate until things get really bad Aug 22 09:16:30 you think "this block has nothing to do with it of course" Aug 22 09:16:51 rgr that's one of the reasons I don't use fragments ;) Aug 22 09:16:54 rgr fragment is less like a view more like an activity Aug 22 09:17:20 is there a way I can set spaces between specific listview items (0,1,2 space 3, 4, 5) without having to write my own adapter? Aug 22 09:17:21 When an application is upgraded, what happens to files that the previous application created? Aug 22 09:17:36 rgr so not just resources and lifecycle, but more about logic and function, not to mention re-uses Aug 22 09:17:47 Im not sure its anything like an activity tbh : hence getActivity(). Its simply a "placeholder" to encapsulate lifecycle logic. Aug 22 09:18:51 knapper_tech: nothing Aug 22 09:19:13 Leeds, my upgraded application cannot seem to find the files Aug 22 09:19:15 StingRay_: reuse is imporant. But you can reuse layouts too.I keep hearing "re-use" but I dont see it as any resuable than anything else at this point. And in StackOverflow a lot of people seem to agree. https://developer.android.com/training/improving-layouts/reusing-layouts.html Aug 22 09:19:18 Leeds, user ide issue? Aug 22 09:19:42 ide? Aug 22 09:19:42 rgr, not a view, if you think of them as view, then yeah sure…but you can have headless fragments too Aug 22 09:19:59 I can have headless classes.... Aug 22 09:20:02 ;) Aug 22 09:20:14 knapper_tech: are you talking about an upgrade through the play store? Aug 22 09:20:22 rgr whatever Aug 22 09:20:24 Leeds, yes Aug 22 09:20:44 knapper_tech: then really, the files should be there... Aug 22 09:21:31 Sicp: nope, you need an adapter.. you can always write a wrapper adapter that inserts another position between the others to create a space Aug 22 09:21:43 yea that would work Aug 22 09:21:48 oh Aug 22 09:21:55 I dont know what wrapper is Aug 22 09:22:13 Not whatever. Its very crucial. However one benefit it the hard wiring of the navigation : ie the visual benefits of using a fragment over a normal layout thats included based on screen size and orientatin. Aug 22 09:22:21 Sicp: http://developer.android.com/reference/android/widget/WrapperListAdapter.html Aug 22 09:22:49 Leeds, it seems that they were deleted. The application creates a json file to store some values. The application lost all progress on upgrade so it seems that the file was gone. I'm using the app's private data directory, not SD card. Aug 22 09:23:11 First answer is balanced and informative : http://stackoverflow.com/questions/10478233/android-need-some-clarifications-of-fragments-vs-activities-and-views . A little clearer now. Aug 22 09:23:30 Also, the application contains a directory of the same name. Can this result in clobbering the old directory or would it have to contain same-named files? Aug 22 09:23:42 rgr the benefit is fragments will restore the states of views more automatically I suppose Aug 22 09:38:10 Leeds, what if the files were not written to /data/data/[package-name]/files? Aug 22 09:39:31 knapper_tech: the application "contains" a directory of the same name? Aug 22 09:40:03 the apk unpacks a directory. the upgrade apk will unpack to the same-named directory Aug 22 09:40:07 rgr: for example, without fragments I have to restore my listview scroll position by saving it in my custom backstack using list.getFirstVisiblePosition() Aug 22 09:40:18 don't know if we overwrite the whole directory or just files in this case Aug 22 09:40:34 knapper_tech: you're doing that explicitly in code? Aug 22 09:40:44 Estel, I believe so. Aug 22 09:41:08 the files are static included in a fake file called private.mp3 which is actually a gzipped tarball Aug 22 09:41:23 and contains a bunch of stuff necessary to run the program Aug 22 09:41:53 files that I want to persist are currently saved to a directory that is created at first when this tarball is untarred Aug 22 09:42:19 untar doesn't overwrite directories, just files as far as I know. Aug 22 09:42:53 but I'm also thinking that this doesn't write to the /data/data/[package name]/files/ folder that is expicitly described as persistent in the docs. Aug 22 09:43:31 If I just ran a C program through JNI and wrote to the current working directory, this is where my files are ending up Aug 22 09:43:37 will this be lost between upgrades? Aug 22 09:44:54 well I wrote the adapter and I've written the code to change the margin on the 3rd element inside the listview, but im getting this exception which I know would happen, not sure how to resolve. Wrap the listview in linearlayout? http://pastie.org/9494007 Aug 22 09:45:03 Nothing should be deleted when upgrading. Aug 22 09:45:20 Internal / external storage stuff only gets deleted when the app is uninstalled. Aug 22 09:45:32 Given the nature of your code, I'd take a long look at it. Aug 22 09:46:04 Sicp it tells you exactly what is wrong Aug 22 09:46:21 Sicp your casting the to the wrong layoutParams type Aug 22 09:47:13 Sicp dam need more coffee, you are casting wrong layoutParam type on the line it says Aug 22 09:47:40 listView != linearLayout Aug 22 09:50:04 yea I thought of that as I got up from the chair Aug 22 09:50:13 sorry but never used AbsListView in that way Aug 22 09:50:33 Sicp also you are quite new to adapters right ? Aug 22 09:50:46 no Aug 22 09:50:57 had many struggles with Adapters, now I am MASTER OF ADAPTERS Aug 22 09:51:00 and why is because AbsListView doesnt have the setMargins Aug 22 09:51:04 cause that adapter will not work as intended Aug 22 09:51:09 it did.. Aug 22 09:51:13 why wouldnt it Aug 22 09:51:44 because the view at position 2, if recycled will have the modded layout params Aug 22 09:51:49 and be some place else Aug 22 09:52:01 I refer to it outside the place where position fucks up Aug 22 09:52:14 recycle it all you want Aug 22 09:52:24 2 is 2 Aug 22 09:52:31 erm...no Aug 22 09:52:34 2 is the data Aug 22 09:52:38 view is nothing to do with 2 Aug 22 09:52:39 :) Aug 22 09:52:51 the means of getting the view is wrong now, yes Aug 22 09:53:09 no you just need to set the margin to 0 if not pos 2 Aug 22 09:53:19 then it will work as expected Aug 22 09:53:23 I see Aug 22 09:53:23 or intended Aug 22 09:53:30 but now I see that AbsListView doesnt have setMargins Aug 22 09:53:43 you can have padding though Aug 22 09:53:44 that's why Im used to referring to LInear and RelativeLayout Aug 22 09:53:54 no setPadding or padding Aug 22 09:54:02 oh Aug 22 09:54:05 wicked Aug 22 09:54:17 view always has padding Aug 22 09:54:27 padding != layoutParams Aug 22 09:54:28 :) Aug 22 09:54:42 ah right Aug 22 09:54:45 I can setPadding on convert Aug 22 09:55:23 good luck :) Aug 22 09:56:28 well it worked, but padding is not what I need, I need margin Aug 22 09:56:52 isnt it referring to the view that is made up of the whole layout file for each row? isnt that what convertview is? Aug 22 09:57:11 convert view is what you inflate Aug 22 09:57:14 why does it return absListView, it isnt a listview, it's a relative layout with 2 textviews Aug 22 09:57:21 yea and what im inflating isnt a listview.. Aug 22 09:57:26 listView == absListView Aug 22 09:57:27 it isnt even aware its going to be sitting in a listview Aug 22 09:57:31 god damn it Aug 22 09:57:38 why is everything not everything else Aug 22 09:57:46 it is fine and is what it is Aug 22 09:59:09 Estel, where would writing to current working directory write to without any change directories ever being performed? Aug 22 09:59:33 I'm allowed to write to CWD, and the applicaton saves progress appropriately, but upgrades did not. Aug 22 09:59:44 I can't explore the files either via adb since I don't have root. Aug 22 09:59:52 Looking for how to diagnose or explain this. Aug 22 10:01:32 How are you getting the directory to write to, ooi? Aug 22 10:01:46 Sicp: we should make that our slogan 'god damn it, why is everthing not everything else!?' Aug 22 10:01:59 Estel, the process never executes a chdir, so it's the default working directory. Aug 22 10:02:08 I use a relative path Aug 22 10:02:14 it's the slogan of existence Aug 22 10:02:28 "so this is just like that one right? NO!" Aug 22 10:03:20 heyyyyyyy I can set a new layout Aug 22 10:03:37 set it to invisible and visible only if position == 2 Aug 22 10:03:40 != 2 Aug 22 10:04:33 Sicp you can do what you want many ways Aug 22 10:04:42 thats the beauty of the droid Aug 22 10:04:43 :) Aug 22 10:05:35 the beauty of the beast Aug 22 10:15:57 nah that wont work Aug 22 10:17:44 hai Aug 22 10:20:50 guys, my main activity extends preferences activity, because the only activity my app needs is a config Aug 22 10:21:00 it has a service though Aug 22 10:21:39 Hey , whenever I run eclipse , I encounter this problem http://i59.tinypic.com/rsqu0w.jpg Aug 22 10:22:09 i am trying to get the settings from the service, but it always gets the default setting value Aug 22 10:22:16 defined in the xml Aug 22 10:22:23 killer: I think this is a known problem Aug 22 10:23:30 killer: and google. first answer here : http://stackoverflow.com/questions/11855352/constant-running-android-lint-failed-nullpointerexception-popping-up-in-eclip Aug 22 10:23:55 "In Window > Preferences > Android > Lint Error Checking; uncheck "When saving files check for errors. " Aug 22 10:27:19 i'm doing exactly this in my service Aug 22 10:27:20 http://developer.android.com/guide/topics/ui/settings.html#ReadingPrefs Aug 22 10:27:47 SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this); Aug 22 10:27:47 String syncConnPref = sharedPref.getString(SettingsActivity.KEY_PREF_SYNC_CONN, ""); Aug 22 10:28:35 then syncConnPref.getBoolean("pref_test") Aug 22 10:28:55 but the thing always gives me the default xml preference Aug 22 10:28:57 works! Aug 22 10:29:00 so pro Aug 22 10:29:01 so pro Aug 22 10:32:41 halp :( Aug 22 10:33:24 have you written to it anything different? Aug 22 10:34:09 besides why arent you opening sharedpreferences with getDefaultSharedPreferences(this, Context.MODE_PRIVATE) Aug 22 10:34:21 much cooler looking Aug 22 10:34:42 i've seen that Aug 22 10:34:51 didn't understand the mode private part Aug 22 10:35:14 also, when i check a checkbox, it should automatically set the preference to true, right? Aug 22 10:35:44 and the next time when i do a getBoolean() in the service, it should get the value, right? Aug 22 10:35:49 Im not sure, thought you were working with manually storing into sharedprefs Aug 22 10:36:47 well now Ive got my textview set up working as a spacer between the items that I want Aug 22 10:36:57 but the selector now includes both the item itself and that hidden textview :x Aug 22 10:37:12 and textview does not have a selector property, maybe if I give it a selector background of transparent? Aug 22 10:38:51 pdcmoreira: so the question isn't about reading prefs, it's about setting them Aug 22 10:39:09 the question is about the between Aug 22 10:39:19 the flow of the change Aug 22 10:39:47 well, no... are the prefs being set, or not? Aug 22 10:39:50 reading is easy... Aug 22 10:40:02 on the preferenceactivity (on runtime) when i check a checkbox, is it supposed to be automatically set? Aug 22 10:40:12 or should i listen to it and set it manually? Aug 22 10:40:29 because on the documentation this is not very clear Aug 22 10:49:23 Ok , I just did as suggested bu there is no option of running avd manager in window tab , so i did "Window -> Customiz Perspective > command groups availabilty > android and avd manager check " and the I pressed ok , and eclipse crashed ( the android and avd manager got unchecked) ,tried again and again with same results Aug 22 10:49:34 bu -> but Aug 22 10:57:57 you on linux man? Aug 22 10:58:20 Hi Aug 22 10:58:36 ubuntu 14.04 Aug 22 10:58:56 I have an object which is right now storing data as strings edittext1,texview1 Aug 22 10:59:09 Also I have a linearlayout xml which stores the linearlayout id Aug 22 10:59:25 I have a separate class file which uses this layout file and generates textview ,edittext dynamically. Aug 22 10:59:34 How can i translate the object data to this graphical form. Aug 22 11:00:00 niru: post your code in a pastebin please. it will be easier. Aug 22 11:00:09 sure rgr Aug 22 11:00:24 ps already a string holding text called "texview1" raises suspicions. Aug 22 11:00:48 texview1 suggests its a View not a String. but hard to tell without code. Aug 22 11:01:11 just a sec I am pasting it Aug 22 11:01:25 I mean the label Aug 22 11:01:45 killer: there are a few solutins in that link. good luck anyway : but you're not alone it seems and it is solvable. Aug 22 11:08:19 rgr: http://pastebin.com/WDjxkEjU Aug 22 11:08:38 rgr: those two fines at present dont have any connection with each other Aug 22 11:09:23 I want to use the dynamic_views file to get display my views Aug 22 11:21:44 does this compile? Aug 22 11:22:19 yes Aug 22 11:22:42 The MainActivity gives the result in a listview as email text phone Aug 22 11:23:13 the "mask" is holding these three things Aug 22 11:24:02 So instead of displaying them this way i want to have three textboxes Aug 22 11:25:31 Why are you setting the adaptor in an onclick? Aug 22 11:27:08 You know if you spent 10s more and used some sort of consistency in your naming things would be a lot lot easier for others and you to decode. e.g final "ListView forms_page=(ListView)findViewById(R.id.listView);" makign the id effectively the class really doesnt help. Aug 22 11:28:58 rgr: Problem is that avd manager is not shown in window tab , and nothing is helping , It just disappeared Aug 22 11:29:02 ah I was trying to make things work.....I will change them Aug 22 11:29:57 because the code I have sent is only specific to this part. Actually the previous activity holds another listview and clicking on one of the item (ie onItemClick) I have to onvoke this code Aug 22 11:31:15 I still dont really understand what you want to do because you dont seem to have implemented anything your need to make a listview work with an adapter properly. eg getItem and getView. If I understand correctly you want to generate a new view depending on which is selected . You dont say what the problem is either. What exactly doesnt work ? Aug 22 11:33:30 yes I want to generate a new view depending on what is selected Aug 22 11:34:33 also whats this? String[] values=new String[]{obj}; ? "obj" is a single string. Aug 22 11:35:30 a single string with newlines in : its not an array of strings. Did you step through with a debugger and inspect your data? If not do so. Sorry. Aug 22 11:40:45 hi Aug 22 11:43:33 rgr: My intention was not to convert that to array.Only because Arrayadapter was accepting String[] type I have to add that step Aug 22 11:43:40 I am designing my own content provider, I am in query() now and I am using SQLiteQueryBuilder. Inside URI PHOTO_ID, I should get it from last path segment of URI Aug 22 11:44:07 I would like now to use something like queryBuilder.appendWhere("_id=?") Aug 22 11:44:16 but how to give later this positional argument? Aug 22 11:44:17 any ways thanks Aug 22 11:50:10 yacek19 as a string ? Aug 22 11:50:27 StingRay_: yes Aug 22 11:50:41 no, I mean as a Sring! Aug 22 11:50:52 yes Aug 22 11:50:54 with the added ?? as to what is your question Aug 22 11:51:12 you replace it just like queryBuilder does with arg[] list Aug 22 11:51:12 with query() method I can use positional arguments Aug 22 11:52:07 I can make something like db.query(database, projection, selection, selectionArgs... Aug 22 11:52:27 I would like to do something similar in *_ID URIs Aug 22 11:53:33 so my PHOTO_ID I wouldn't like to use appendWhere(Photo._ID + "=" + uri.getPathSegments().get(1)); Aug 22 11:53:57 rather something like appendWhere(Photo._ID + "=?"); Aug 22 11:54:01 if your data model is simple you could generate a content provider with this tool I made: https://github.com/BoD/android-contentprovider-generator Aug 22 12:02:01 Hi guys, i have a DialogFragment like this: http://s27.postimg.org/piol3eh8z/before.png but i want to remove the title so it looks like this: http://s27.postimg.org/ehtfydp03/after.png Aug 22 12:03:09 don't put a title? Aug 22 12:03:45 setStyle(STYLE_NO_TITLE); Aug 22 12:03:59 in onCreate Aug 22 12:04:12 I do this but then the dialogfragment looks like wrap content and it loses the size and shape Aug 22 12:04:13 but look at the other style flags so you can get exactly what you want Aug 22 12:04:53 you mean you setStyle ? Aug 22 12:05:12 that single flag and "set" rather than add means it will replace all style attribs Aug 22 12:05:28 so maybe setStyle(STYLE_NO_TITLE, STYLE_NORMAL) Aug 22 12:05:34 oh so addStyle would work? Aug 22 12:05:47 ah i see, let me try that StingRay_ Aug 22 12:07:02 StingRay_: it still becomes like wrap_content, ill take a snapshot to show you Aug 22 12:07:15 but regardless of that, it has a view so just set it to be a dimension you want Aug 22 12:09:01 StingRay_: Alright Aug 22 12:17:18 but what happens if you just don't give it a title Aug 22 12:45:41 <_CalLightman_> Hi .... should the flow logic for events be implemented in the adapter of the view or an extended class of the view Aug 22 12:47:08 _CalLightman_: what are you asking exactly? Aug 22 12:47:35 should your callbacks to things like button clicks and seekbar dragging be done in your adapter or view? Aug 22 12:47:46 <_CalLightman_> I am implementing an expandable list that performs various actions ... it also needs to call another activity to modify the given object Aug 22 12:48:16 Hi all, Is it possible to see the content in the internal storage of my app? Aug 22 12:48:20 <_CalLightman_> now what i have done is that i have various rows based on the datatype of the object and hence it shows different representations Aug 22 12:48:39 <_CalLightman_> all this is being handled within a single activity as of now Aug 22 12:48:46 ok Aug 22 12:49:09 <_CalLightman_> but now i need to modify an object by sending it to a different activity ( it is serialized ) Aug 22 12:49:19 gotcha Aug 22 12:49:31 <_CalLightman_> and then reflect the changes made there in the parent activity Aug 22 12:49:36 right Aug 22 12:49:40 <_CalLightman_> how should i go about it Aug 22 12:49:52 one moment Aug 22 12:49:59 <_CalLightman_> as long as i was in the same activity i was able to do it all fine Aug 22 12:50:29 <_CalLightman_> but i want to know what is the generally accepted correct way to do these things Aug 22 12:50:43 i am about to tell you Aug 22 12:59:09 hi Aug 22 12:59:36 I ask in dev because this is a more system-related question. Aug 22 12:59:42 hi, i'm trying to sytle buttons: http://errietta.me/paste/view.php?id=491 Aug 22 12:59:57 they get the background just fine, but they lose all other butotn sytles even thoughi gave it that parent="" Aug 22 13:00:10 how can i make them inherit the border etc and everything else from the default button? Aug 22 13:00:47 So an android phone is connected to an existing router. The router would be configured to use the mobile phone as internet gateway. Aug 22 13:01:35 The problem is that the android phone only enables routing (gateway) when it is in wlan hotspot mode. Aug 22 13:01:45 But then it cannot be connected to the existing router. Aug 22 13:01:56 So how can I manually enable routing on an android phone? Aug 22 13:02:18 mechanicalduck_ is that an app development question ? Aug 22 13:03:00 StingRay_: An android system related question. And if it is necessary to write an app for enabling the mentioned routing, then it would be also an app-related quesiton. Aug 22 13:03:43 this is more app dev than android how to/android os build etc Aug 22 13:03:47 <_CalLightman_> Napalm: there? Aug 22 13:03:53 yes, one moment Aug 22 13:04:40 StingRay_: So is there also a channel about android internals? Aug 22 13:05:53 erry, the background defines the borders Aug 22 13:08:01 pfn, can i just change the oclor somehow? Aug 22 13:08:47 how do i add a section divider in a list adapter? Aug 22 13:09:19 clear Aug 22 13:10:40 jullus1386: You can also clear the screen on most IRC clients using Ctrl+L Aug 22 13:10:45 It avoids this clear thing :D Aug 22 13:11:19 yeah, sorry Aug 22 13:11:38 erry, copy the previous background image and change the color there Aug 22 13:14:10 mechanicalduck_: no there isnt . But there are forums. But your Q is totally on topic since you might want to handle this stuff via an app- Aug 22 13:14:15 _CalLightman_: still there? Aug 22 13:14:21 <_CalLightman_> yes Aug 22 13:15:28 _CalLightman_: https://gist.github.com/slightfoot/b5b6a209b7f25d491646 Aug 22 13:15:39 rgr: right Aug 22 13:16:05 rgr: Would simply iptables rules for routing added when WLAN Hotspot is enabled? Aug 22 13:18:15 _CalLightman_: i just created the layout in code quickly.. but ofc you'd use a layout file Aug 22 13:21:28 good morning everyone! Aug 22 13:21:58 <_CalLightman_> Napalm: okay.. so startActivityForResult is the way to go... so in my case, I will pass the serializable object in the intent and set the modified object as result in that activity Aug 22 13:22:15 <_CalLightman_> then check it a again in the parent activity and replace with the new one Aug 22 13:22:15 yup Aug 22 13:22:32 just remember to save the state of the parent Aug 22 13:22:41 and restore it Aug 22 13:22:51 as its an intermediate state Aug 22 13:23:12 once parent activity finishes I presume you are persisting the data Aug 22 13:24:12 <_CalLightman_> oh yes.... that is restored by default but in case of low memory only that is crucial right? Aug 22 13:24:31 <_CalLightman_> but either ways i wil preserve that as savedInstance Aug 22 13:24:49 <_CalLightman_> yes i am saving the data to the file when parent finishes Aug 22 13:25:38 <_CalLightman_> Napalm: one more question ... can you tell me if the coding style i am using correct .... sorry i cannot share the code because it is on a private repo for now but I will explain what i am doing Aug 22 13:26:18 <_CalLightman_> so i have the object value that can be of different datatypes ... the content etc are stored within this object... Aug 22 13:26:44 If a mobile application is required to make a location detection and navigation in a big mall (which have several floors); what technology should be used? Aug 22 13:26:58 <_CalLightman_> to create and modify new values i have to display it in an expandable list format Aug 22 13:27:03 Voyage: I am not sure if gps is precise enough. Aug 22 13:27:24 I read about some fancy beacon stuff like this augmented gps thing. Aug 22 13:27:32 But this requires infrastructure in place. Aug 22 13:27:52 <_CalLightman_> so the code that modifies the values is written in the custom adapter Aug 22 13:28:11 <_CalLightman_> the root object is shared between the adapter and the activity class Aug 22 13:28:25 mechanicalduck_, there would be no GPS in a mall building Aug 22 13:28:29 <_CalLightman_> this way the changes are persistent and can be saved to a file when needed Aug 22 13:28:45 mechanicalduck_, what beacon? can you elaborate Aug 22 13:28:53 <_CalLightman_> Napalm: is that the way to go? Aug 22 13:30:37 _CalLightman_: yes, the changes are made to the ArrayList in my example and the object is shared with the adapter Aug 22 13:31:18 _CalLightman_: its up to you when you persist them, like an ok/save button on the parent activity to keep all modified changes Aug 22 13:32:07 <_CalLightman_> Napalm: right.. thanks a lot Aug 22 13:32:41 Voyage: augmented gps stuff like Aug 22 13:32:48 _CalLightman_: im going to add persistance to that example Aug 22 13:32:56 Voyage: basically they are providing a frame of reference so the mobile can determine its position. Aug 22 13:32:57 <_CalLightman_> Napalm: there was one more question... i wanted to implement an expandable list with 3 levels instead of the usual 2 .... what is the approach i must take Aug 22 13:33:05 but this requires such devices in place and compatible. Aug 22 13:33:08 and this is the problem. Aug 22 13:33:11 _CalLightman_: good luck with that :D Aug 22 13:33:34 _CalLightman_: there is no good way with ExpandableList's Aug 22 13:33:58 _CalLightman_: best thing to do is just make a custom adapter.. and dont use ExpandableList Aug 22 13:33:59 Voyage: http://www.gizmag.com/inside-app-indoor-navigation/30702/ Aug 22 13:34:09 Voyage: http://www.futureplatforms.com/newsletter/2013/11/28/beacons-set-to-revolutionise-mobile/ Aug 22 13:34:36 Building such devices is far less a problem than having them in place and compatible to the devices which should use them. Aug 22 13:36:12 <_CalLightman_> Napalm: aahh... i think i get what you are saying.... do you mean to say that there should be a graphical distinction between different levels like different background color, but programatically they are just level 0 of expandable list Aug 22 13:36:34 <_CalLightman_> I can control the expansion in the adapter as well accordingly Aug 22 13:37:03 _CalLightman_: you can do it like that if you wish Aug 22 13:37:15 mechanicalduck_, whats better and cheap, beacons or BLE blue tooth low energy? Aug 22 13:37:32 Voyage: BLE is a common technology to make beacons Aug 22 13:37:40 /the/ common technology Aug 22 13:37:59 Jonnyw2k-home, Estel Is it true that the mobile will only tell / get info about the wifi network that it is connected to. Aug 22 13:38:01 unless you're apple :P Aug 22 13:38:07 Voyage: that's not true. Aug 22 13:38:08 test Aug 22 13:38:20 mechanicalduck_, thanks Aug 22 13:38:28 <_CalLightman_> Napalm: thanks again for clearing things up :) Aug 22 13:38:30 Ah!! I'm back! Good morning everyone! Aug 22 13:39:09 I was having login problems and was showing up as I_Artist again... Aug 22 13:39:17 <_CalLightman_> Voyage: can you please tell me how accurate a location do you need? Aug 22 13:39:34 1 to 5 meters. Aug 22 13:39:38 _CalLightman_, ^ Aug 22 13:40:09 Is this for a map or something more like geofencing? Aug 22 13:40:23 map, and navigation on it. Aug 22 13:40:33 <_CalLightman_> Voyage: then Beacons are the way to go.... in case you need a little less accurate location you can also look into triangulation using wifi signals in the mall Aug 22 13:41:02 You'd need one beacon about every 5-10 metres everywhere in the mall Aug 22 13:42:36 _CalLightman_, ok. got it>.... what accuracy is with triangulation using wifi? Aug 22 13:42:51 _CalLightman_, and are both supported in android and ios? Aug 22 13:43:08 <_CalLightman_> will you be doing a survey of the mall yourself or are you relying on the google maps data? Aug 22 13:43:26 Voyage: indoor navigation is really really hard and either way you'll have to roll your own system for all intents and purposes. Aug 22 13:43:28 <_CalLightman_> as far as i know ios supports both Aug 22 13:43:41 <_CalLightman_> BLE might be a problem for some older androids Aug 22 13:44:59 <_CalLightman_> the accuracy through wifi will depend on your algo but google maps can detect location based on wifi to an accuracy of around 50m Aug 22 13:45:50 <_CalLightman_> checkout some research papers available online on the same subject Aug 22 13:48:19 _CalLightman_, survey self is an option and google maps modification is another Aug 22 13:49:23 _CalLightman_, so if I have one source of ISP and many wifi routers connected to it and fragmented in the mall. google maps can still fine the cellphone with 50 m accuracy? Aug 22 13:50:51 _CalLightman_, Estel I would re ask, Is it true that the mobile will only tell / get info about the wifi network that it is connected to. I was in the image. Aug 22 13:52:08 whats triangulate with wifi? I though the only wifi info the cell can get is which it is connected to? Aug 22 13:53:08 google maps won't unless they scanned it for you... Aug 22 13:54:14 and scanning signals is unrelated to the connected ssid Aug 22 13:55:07 _CalLightman_, Estel so if I have ONE isp and many many many small wifi routers in the mall, and use AGPS, to what accuracy can I get the location ? Aug 22 13:55:59 Voyage: that depends entirely on your software and how you set it up Aug 22 13:56:23 Presumably < 10m is possible, but it isn't something where you drop a library in Aug 22 13:56:47 you'll have to traipse up and down the mall in every corner measuring relative signal strengths Aug 22 13:57:06 Then write an algorithm to accurately triangulate based on the user's own measurements Aug 22 13:59:53 Voyage: the number of ISPs doesn't matter, the wifi scan returns a result for each access point it can see regardless of SSID. Aug 22 14:02:20 hey guys i am trying to add this library to my project https://github.com/flavienlaurent/datetimepicker but I do not see it in the "add library" portion of my project http://i.stack.imgur.com/CQn9Q.png Aug 22 14:02:36 the project is in my workspace and it doesn't have any error Aug 22 14:03:04 you can't agps Aug 22 14:03:08 Is it marked as a library? Aug 22 14:03:12 not in the mall Aug 22 14:03:43 has nothing to do with isp Aug 22 14:03:46 Voyage, Aug 22 14:07:35 Estel: how can i check Aug 22 14:08:25 anyone ever have a perfect working google-play-services dep in gradle, then out of nowhere (ok maybe clean) it cant find it? Aug 22 14:09:29 you deleted your android sdk Aug 22 14:09:52 I did not, all fine, paths all set and all good Aug 22 14:10:10 does anyone know why android-studio opens 7 instances of the JDk? Aug 22 14:10:21 One for each day of the week Aug 22 14:10:21 it takes away all my fucking ram Aug 22 14:10:52 speaking of, I think I'm gonna do a frys run later and buy another 16gb of ram Aug 22 14:10:55 but SimonVT is there a point to it, or is it some wrong configuration in my machine/android-studio Aug 22 14:10:58 16 not enough Aug 22 14:11:28 it should have 2 jvm running maybr Aug 22 14:11:37 not 7 Aug 22 14:12:49 you get 1 jvm for each tool you run Aug 22 14:16:03 jvrodrigues: unused RAM is wasted RAM! Aug 22 14:16:04 :P Aug 22 14:18:14 _CalLightman_: I've added adding, removing and saving items https://gist.github.com/slightfoot/b5b6a209b7f25d491646 Aug 22 14:24:48 ok I'm really stuck now, I can see the local m2repo for play services but AS/Gradle says it's missing, even with me setting explicit version number Aug 22 14:27:34 I got an error: java.io.FileNotFoundException: ../html/html_files/images/icon_shadow/id/addressbook3.png: open failed: ENOTDIR (Not a directory) But the parentFile (dir) exists. what can be the problem? Aug 22 14:31:37 anyone know how to add googles local maven repo to AS ? Aug 22 14:38:25 is a folder name "id/" invalid for internal storage? Aug 22 14:42:28 StingRay_: I might be oversimplifying it but you dont. You simply add the maven dependency in your build.gradle and it takes care of downloading it storing it in your local .m2 maven repo. http://gradleplease.appspot.com/#googleplay Aug 22 14:45:49 rgr hmmm well it seems to have come back by itself …. however I chaged proguard from true to false, tested again on true and same thing, repo goes missing… how on earth are these things even related lol Aug 22 14:46:42 I wanna use android's calendarcommon2 to parse the user's event, how do I do that? Aug 22 14:47:41 hi... I an new to android development... question: I need to connect to a web service (REST-ish), but also have a local backup (since web service is abit slow)... Any tips on what to do? (e.g. ContentProvider, AsyncTask, or, IntentService?) Aug 22 14:48:17 correction: local cache <- local backup Aug 22 14:49:18 FrancscoV: is this in a WebView? Aug 22 14:49:27 f00dWorksta many examples online of android web stuff Aug 22 14:49:47 f00dWorksta the local cache of data is down to your design I think Aug 22 14:50:07 f00dWorksta: you can use OkHttp with its local cache or even better go direct with Retrofit Aug 22 14:50:30 f00dWorksta: retrofit provides REST with all the layers on top Aug 22 14:52:54 StingRay_: Yea, I've been researching online already, so I know about a few ways of doing it. So I'm asking if anyone here has an opinion on which method to use. Aug 22 14:53:09 method? Aug 22 14:54:59 f00dWorksta: check out http://square.github.io/retrofit/ Aug 22 14:57:14 StingRay_: as in, do an async task for every call (and somehow manage config changes as well), or have an intentservice make the call, or use a content provider (still reading up more about this, but it may be too much for my needs) Aug 22 14:57:26 StingRay_: or something else completely Aug 22 14:58:02 Napalm: thanks for the link, I can't see anything about caching it locally, so I have to implement this myself (which is fine, just want clarification)? Aug 22 14:58:12 Napalm: it's a folder in internal storage. It works now, with a lot of testing the structure wasn't good enough anymore, now it's all fine. Thanks for your interest Aug 22 15:03:33 can you add a dep into the gradle with eclipse ADT or only in android studio Aug 22 15:04:24 what im asking is, how can i use this library with eclipse ADT https://github.com/flavienlaurent/datetimepicker Aug 22 15:06:26 HelplessJub it has all the src there, so iirc just as a lib project Aug 22 15:06:34 look it up there will be many examples Aug 22 15:07:59 Helpless I know nothing about eclipse but assuming you can add maven dependencies : http://gradleplease.appspot.com/#datetimepicker Aug 22 15:08:20 StingRay_: i already pulled the library into my workspace, but i cannot see it as a library when i try to add it to my project Aug 22 15:09:18 HelplessJub have you "added it as a library project" ? Aug 22 15:09:50 i just imported android project, not as a library project . how can i do this Aug 22 15:10:56 HelplessJub like i said, google there will be 1000's of examples Aug 22 15:11:08 "how to add library project eclipse" Aug 22 15:12:41 so apperently I have a syntax error in my sql statement, near "%" ... SELECT * FROM table WHERE note LIKE %'hallo'% Aug 22 15:12:57 can someone help me spot it? Aug 22 15:14:11 '%hallo%' Aug 22 15:14:30 oh Aug 22 15:15:20 now that I think about it, makes sense that the wildcard is part of the string Aug 22 15:19:25 i have this layout: http://bpaste.net/show/55d565165f6f and this is the result: https://dl.dropboxusercontent.com/u/21637985/Random/Shot-140822-181646-r.png any idea why the digit looks a bit to the right? Aug 22 15:22:13 with bounds: https://dl.dropboxusercontent.com/u/21637985/Random/Shot-140822-182141-r.png Aug 22 15:32:56 from when I left till now Aug 22 15:32:57 1 bug Aug 22 15:33:10 new video "4 hours 1 bug" Aug 22 15:33:18 much worse than 2 girls 1 cup Aug 22 15:36:16 StingRay_: i followed the instructions here: http://stackoverflow.com/questions/8248196/how-to-add-a-library-project-to-a-android-project but still my project cannot see it as a library as shown in this picture http://s27.postimg.org/6m9ed9x77/Untitled.png Aug 22 15:37:07 man this issue has been around since Android began Aug 22 15:37:16 adding a library VS adding a jar, to your project Aug 22 15:37:22 HelplessJub then your not doing it correct Aug 22 15:37:26 and adding a project as a library Aug 22 15:49:35 Estel, thanks. Aug 22 15:49:59 Estel, so for wifi, I would need google maps or my own map should work too (with vector graphics) Aug 22 15:50:46 * StingRay_ feels ashamed Aug 22 15:51:29 just added an android l touch feedback button to my app… all hail conformity :( Aug 22 15:52:21 but they're so nice! :) Aug 22 15:52:34 no they are not Aug 22 15:52:45 but cause everyone is a sheep you need them :) Aug 22 15:52:52 Voyage: do whatever you like, you'd even be able to use your own coordinate system Aug 22 15:52:58 or your not with the flock :) Aug 22 15:53:15 StingRay_: because apps conforming to platform expectations is good for users and good for apps :P Aug 22 15:53:36 Estel no…. lol… 50% maybe 50% totally no no Aug 22 15:53:37 :) Aug 22 15:55:46 Estel, i wonder how the cell phone will tell me "hey, I sniff x,y,z, wifi networks with triangled location but I am connected to x wifi; heres my location with accuracy of 5 m" Aug 22 15:56:39 Estel, thanks!!! Aug 22 15:57:19 Voyage: that'd be your job to work that out :P Aug 22 15:57:26 can I kill an app via adb? Aug 22 15:57:41 :) ok Aug 22 16:08:00 pfn, you irc client sometime behaves weird Aug 22 16:08:02 Is there a way to place a link on a website to open up an app? Aug 22 16:08:36 like YouTube? Aug 22 16:09:21 my own app Aug 22 16:09:25 i can use url scheme? Aug 22 16:10:03 I said like. Aug 22 16:11:11 sorry, my connection broke Aug 22 16:13:06 gdrc, in what sense, I know about sometimes text doesn't appear on first launch Aug 22 16:13:21 gdrc: , yes like Aug 22 16:13:23 :( Aug 22 16:19:54 pfn, like I was enabled to send text. after hit send the app just hides the keyboard and stop Aug 22 16:20:04 have to drive bb Aug 22 16:20:07 and stop? Aug 22 16:20:23 default is to hide keyboard automatically after sending a message Aug 22 16:20:26 change it in settings Aug 22 16:24:53 http://qz.com/253618/most-smartphone-users-download-zero-apps-per-month/ Aug 22 16:27:51 g00s: yeah, but... only 'on average' :) Aug 22 16:28:11 not surprising when you see the amount of crap google allow into the playstore. Does nobody any favours allowing any old crap in. People are more wary : especially with the scare mongering regarding malware there. Aug 22 16:28:35 rgr: so you're saying more apps means less downloads? Aug 22 16:29:01 that *would* explain why the average BB10 user has 72,026 apps on their phone Aug 22 16:31:24 Leeds rgr could be right - i wouldn't be usprised if there is some behavioral economics principle that explains Aug 22 16:31:46 Why all day events startDate and endDate are in UTC time and not in local time? Aug 22 16:31:47 dragorn, are you around by any chance ? Aug 22 16:32:16 I mean DTSTART and DEND in CalendarContracts.Events Aug 22 16:33:31 That's exactly what I'm saying. You constantly download crap and you get disillusioned. "Too much choice with too much crap" is a well researched issue that deters downloaders/purchasers. Google is your friend :) Aug 22 16:34:12 barry schawarts wrote the choice paradox a while back, made sense to me Aug 22 16:34:33 *schwartz Aug 22 16:34:44 http://www.amazon.com/dp/145588443X Aug 22 16:35:10 and then through in the perception lots of the stuff is junk, could invaide your provacy, etc. Aug 22 16:36:12 thats why people shop at whole foods (in the us) for example; you know that stuff in the store may be quackery like oxygenated water - but in general, the store has some level of quality above your general supermarket Aug 22 16:37:12 http://jamiat.org.za/women/too-much-choice/ Aug 22 16:37:42 I know it from my own experiences too. I tend to stick with what works now rather than bother to assess the 10000000 million copy cat apps trying to muscle in on the space. Aug 22 16:44:52 rgr winner takes all / long tail ;) Aug 22 16:46:21 i dont understand why at developer conferences that google make a big thing of all the apps, numbers, downloads Aug 22 16:46:59 apples does the same, and all the developers scream and wet themselves … Aug 22 16:47:04 Apple* Aug 22 16:47:48 it now almost impossible to have a good app be successful in a category that has popular apps and 1000's of duds Aug 22 16:49:34 can someone recommend a good article about best practices when syncing client and server databases? Aug 22 16:50:31 i would be interested too Aug 22 16:51:24 two way sync ? Aug 22 16:51:34 yeah Aug 22 16:51:53 ugh… whats the data ? Aug 22 16:52:49 i dont know about jvrodrigues, but for example, to sync a customers table Aug 22 16:53:09 it would be nice to know how to deal with concurrency Aug 22 16:53:19 well, the best way to deal with it at least Aug 22 16:53:48 i can think of a few ways to get around to it, but being the first time implementing something like this, i dont really trust my judgment Aug 22 17:02:07 I have a question, http://developer.android.com/reference/android/widget/AdapterView.html#getItemAtPosition(int) - what data ? where is it set ? Aug 22 17:03:19 shmoon: the Adapter you set on the View Aug 22 17:05:43 Does someone know if the webview is supposed to free up memory from pictures that aren't visible to the user? Aug 22 17:06:31 Adyrhan: it wont free them immediately that would be silly as it would have to load them again as soon as the user scrolls and that would be slow Aug 22 17:06:43 Adyrhan: why does it matter anyway? Aug 22 17:06:53 I have a cordova app that is loading a webapp. Which shows all the pictures I upload to the site. If I load the same webapp in firefox, firefox frees the memory quite fast. Aug 22 17:07:05 In my app, passing from 130mb the app crashes Aug 22 17:08:05 So, I'm not programming the webapp. But I wonder if I could do something for the webview to free the memory. Some setting I've not yet seen in the docs :/ Aug 22 17:09:58 Napalm, well passing the 130mb of memory or so, the app crashes. And only happens when I do a scroll race, to get to the bottom pictures :D It doesn't seem to unload them :/ Aug 22 17:12:33 I've also done a memory analisys with MAT. And the vm heap is at 6mb, so its not happening outside the webview :/ Aug 22 17:15:00 back Aug 22 17:16:26 Adyrhan: I have 99.8% sure its not the WebView alone causing the app to crash, it sounds like its your implementation Aug 22 17:17:04 Adyrhan, what's the device/version? Aug 22 17:23:07 Analysis Aug 22 17:26:08 bitkiller, Its a woxter tablet dual core running android 4.1.1 Aug 22 17:27:14 Napalm, it's possible, its what I'm looking for if I can do some change to avoid that situation. But the webview is pretty much handled by cordova (3.5) and from the settings and as far as I know I can't see something there that I could say, hey this could result in a memory problem :/ Aug 22 17:28:18 What I know is that the memory leak is not happening in java side, there the vm heap is quite low. The amount of memory that I see (130mb just before crash) comes from OSMonitor, that basically tells me the memory used by the process that runs my app. Aug 22 17:28:37 i would test it with some newer version. i think webview underlying implementation has changed to chromium engine Aug 22 17:29:13 yes, but that was with Android 4.4, I can't ask the users to change their smartphones if they don't have upgrades :D Aug 22 17:29:23 (or may be it was 4.3...) Aug 22 17:29:43 at least you'll have a diagnostic Aug 22 17:36:27 hi Aug 22 17:36:42 i have a wevbiew, but it is now respect

(new line), how i can solve this? Aug 22 17:39:46 if I want a process to be ongoing in the background, is the correct method to create a class that extends intentservice, and then have start and stop intents from my main activity? Aug 22 17:40:41 Adyrhan: it can still be in the java side Aug 22 17:40:52 Adyrhan: or Cordova itself Aug 22 17:41:17 Adyrhan: how are you loading the images? images are stored in native memory which do not show up in java MAT info Aug 22 17:41:18 Hi, there are a set up libraries ‘.o’ files in out/target/product/generic/obj/SHARED_LIBRARIES/libchromium_net_intermediates that I’d like to include in my NDK jni folder. what’s the best way to do this? Aug 22 17:41:28 Not they are not ‘.so’ but ‘.o’ files Aug 22 17:41:33 blocky, yes Aug 22 17:41:44 blocky: perhaps Aug 22 17:41:47 :P Aug 22 17:42:16 blocky: an IntentService only processes one intent at a time, even though that intent is processed in a "background" thread. Aug 22 17:42:19 blocky, not really have stop intents, intentservice runs till it's completed Aug 22 17:42:29 :) Aug 22 17:42:59 StingRay_: what if I want it to run for an extended period of time, will it get killed? Aug 22 17:43:22 blocky that would be a service not and intentservice Aug 22 17:43:25 blocky: no, it will run until no more messages "intents" are waiting to be processed Aug 22 17:45:27 Napalm: is there a better way to do this? i want to run some data collection in the background and log to a file based on receiving intents from a broadcastreciever Aug 22 17:45:33 Hey guys, I'm doing an application that make use of Google Api Location Service and the Linear Acceleration Sensor, but when I request updates from GoogleApiClient some times the linear acceleration sensor stop working, does anyone know if using google api could block sensor updates from android? Aug 22 17:48:44 gdrc, if you want the keyboard not to disappear then set the option in settings Aug 22 17:55:52 blocky: explain what your trying to do, simply do background logging to a file? Aug 22 17:56:57 Napalm: yeah but I want to write a datum to the file once per received For information about how to create and resolve intents, read the Intents and Intent Filters developer guide. Aug 22 17:57:02 sorry, wrong paste Aug 22 17:57:16 lol Aug 22 17:57:18 Napalm: yeah but I want to write a datum to the file once per received ACTION_BATTERY_CHANGED Aug 22 17:57:38 ok then yes, sounds like an IntentService is good for you Aug 22 17:58:00 open your file in onCreate of the Service.. close it in onDestroy and in the handleMessage write to it Aug 22 17:58:30 so if I understand correctly, my intentservice class will have two functions, one that receives the "Start" work request from the main activity and another that actually registers for broadcast reciever and the second one gets triggerd by the first in some sort of fork() operation Aug 22 17:58:31 Napalm, I'm not loading the images. The webapp does by using the usual tag. I guess my workmate is obtaining the resources url in an asynchronous way and then setting the src property of the img tags Aug 22 17:58:51 Napalm is there any advantage to opening it in onCreate ? thats not the background thread right ? Aug 22 17:59:33 StingRay_: just so its not open and closed on every logged message Aug 22 18:00:35 Adyrhan: sounds like your not letting the WebView manage the resources because you are managing them in some way and holding references to the images Aug 22 18:00:41 when i call getActivity().startService(mServiceIntent) what function gets called? Aug 22 18:00:54 blocky: it doesnt work that way Aug 22 18:02:50 Napalm I'm not hoding any references, the webview does a loadUrl for the webapp, thats all I do for the content to load. But i think that if my workmate working on the webapp side can make the webview to crash by loading pictures... its either a missing setting that I'm not aware of, or there is a bug in the rom build of my tablet. I have to test yet on other devices if this happens as well as bitkiller suggested. Aug 22 18:03:35 blocky: what are you trying to record? Aug 22 18:04:41 battery stats, voltage, current etc Aug 22 18:05:43 blocky: ok, as a text file for later reading? is this for debugging or the app itself is going to read the data and display it? Aug 22 18:07:13 the text file is more important than the app displaying it Aug 22 18:07:21 it's for the system, not the app Aug 22 18:07:26 pfn, did you say something? Aug 22 18:09:01 blocky: that explanation doesn't really help.. but it sounds like because ACTION_BATTERY_CHANGED must be registered by code and not manifest your best just having a normal Service Aug 22 18:09:44 "Amazon was more difficult to attack because its app allows one activity to transition to almost any other activity, increasing the difficulty of guessing which activity it is currently in." wuut Aug 22 18:10:13 lol Aug 22 18:10:14 Napalm: I'm not sure what you were asking above then. I think you're right though, in that I want a service and not an intentservice Aug 22 18:11:11 "Asked what a smart phone user can do about this situation, Qian said, "Don't install untrusted apps." well, whats a trusted app? inquiring minds want to know Aug 22 18:11:21 Napalm did you see this already http://www.eurekalert.org/pub_releases/2014-08/uoc--hgw082114.php Aug 22 18:12:48 g00s hahaha thats the way of the dragon right there, confusing your enemy hahahaha Aug 22 18:13:23 g00s: nope, just reading it.. yup, i see what they are doing.. interesting and not supprising Aug 22 18:14:15 Napalm: I got confused about whether intentservice was the same as service because of this page about intentservice entitled Creating a Background Service https://developer.android.com/training/run-background-service/create-service.html Aug 22 18:15:28 blocky: its a guide to how you might want to create a service to perform actions in the background. IntentService solves the most basic needs. Aug 22 18:23:15 Hello whats the best way to show a text from a class that has no context? Aug 22 18:24:56 lasserix, for you to see it, you could use the Log class to add it to logcat. If you want to show something to the user, I'm afraid you can't without a context. Aug 22 18:25:07 yes i know Aug 22 18:25:13 what's the best way to get that context Aug 22 18:25:20 lasserix: wait, what? Aug 22 18:25:21 right now i use a singleton with a weakreference Aug 22 18:25:29 but that's my own hacky solution Aug 22 18:25:49 this is for public release, so i m wondering if i need to show a toast in a callback that happens off the main thread what's the best way to do this easily? Aug 22 18:25:50 lasserix: what are you trying to do exactly Aug 22 18:25:56 err Aug 22 18:25:57 sorry Aug 22 18:26:16 i need to show a toast that happens in a callback of a class that has no reference to context ora ctivity of any sort Aug 22 18:26:26 lasserix, not bad. If you know that class will last after the activity, or whatever component, use that weak reference. It depends a lot on the situation. Aug 22 18:26:58 lasserix: just use the application context to show the toast.. but its bad form to show a random toast just at anytime to the user Aug 22 18:27:09 You could pass the context with a normal reference if you know that instance will die always before that the component... it depends. Aug 22 18:27:28 If you are afraid of messing it up, weak references :) Aug 22 18:28:20 no i dont want to pass a reference to this class Aug 22 18:28:30 lasserix: a neat trick is to have a static Activity reference in your BaseActivity and have its onpause/onresume null it out and reset it Aug 22 18:28:37 Napalm: how would i get application context? Aug 22 18:28:49 ahh that is a little overkill, just need to show a toast ;p Aug 22 18:28:55 Napalm: its not a random toast Aug 22 18:28:56 lasserix: not really Aug 22 18:29:13 lasserix: it becomes a random toast if it can be shown out of context of its owning Activity Aug 22 18:29:23 nah Aug 22 18:29:52 maybe in general but this is not ingeneral Aug 22 18:29:57 this is for something that gets initialized Aug 22 18:30:07 and so i want to say "blah blah is ready for action! blah blah" Aug 22 18:30:48 ahh fuck i should of just implemented UI callback toggle Aug 22 18:31:18 one second, i'll dig an example out Aug 22 18:41:07 Is anybody familiar with the new contact manager, Ready? Aug 22 18:41:38 I'm curious what UI that is. Aug 22 18:42:57 lasserix: https://gist.github.com/slightfoot/3d804d59fe7e53afb880 Aug 22 18:43:45 Can anyone tell me what UI this is using: http://erlibird.com/go/ready Aug 22 18:43:48 cpurick: its just standard android? what are you asking exactly? Aug 22 18:44:03 ahh thanks Aug 22 18:44:13 Well, Yahoo apps are being styled the same way, too. Aug 22 18:44:25 The latest mail app, and their weather app. Aug 22 18:44:34 I'm just trying to put a name to the style. Aug 22 18:44:36 this the new material design? Aug 22 18:44:49 lasserix no Aug 22 18:44:56 looks like material theme that android people released with tweaks? Aug 22 18:45:06 cpurick: i dont see what you mean Aug 22 18:45:09 material design = easy to spot…. pastel color and dropshadow Aug 22 18:45:18 ahh that's all that material is? Aug 22 18:45:23 cpurick: do you have a link to the Ready app on Google Play Aug 22 18:45:27 This has all photo backgrounds. Aug 22 18:45:35 It looks closer to the iOS 7 style, with all that blurred background and such. Aug 22 18:45:39 oh Aug 22 18:45:53 lasserix: no thats not all Aug 22 18:46:12 Napalm what else is there ? Aug 22 18:46:15 Yes, I have the app. And a couple of Yahoo apps in a similar style. One of the Ready reviews did refer to IOS7, but there are a few apps like that in Android. Aug 22 18:46:37 Yahoo Weather is beautiful. Aug 22 18:46:54 I want more apps like that, but I don't know what to call it. Aug 22 18:47:08 an app Aug 22 18:47:09 lol Aug 22 18:47:11 Everything.Me uses a similar metaphor in their smart folders. Aug 22 18:47:24 cpurick: its just a normal app Aug 22 18:47:51 I guess. I thought there'd be a name to identify the style. Aug 22 18:48:05 "nice design" Aug 22 18:48:18 but even then it's subjective :) Aug 22 18:48:37 Somebody guessed Material, but that's usually a bit flatter looking. Aug 22 18:49:40 Is there a bug in the 4.4.4 dialer that causes the number buttons to not be displayed/ Aug 22 18:49:45 material design and guides are something you stick to when you have no access to a designer, the designer is sh*t, or your no good at design Aug 22 18:49:56 I'm seeing that on two different devices that I own. Aug 22 18:50:13 if you design an app for the context and use, maybe the design turns out like the examples you showed Aug 22 18:50:19 StingRay_: Thanks. Aug 22 18:51:00 I like the use of blurred images, with the thin sans-serif font. Aug 22 18:51:55 Note that thin fonts can look terrible on some cheaper screens. Aug 22 18:54:20 frem: Could be better screens are so ubiquitous now that it's suddenly okay to code for them by default. Aug 22 18:56:50 holy shit http://arstechnica.com/security/2014/08/stealing-encryption-keys-through-the-power-of-touch/ Aug 22 18:57:03 When sampling the voltages at a rate of a few MHz, keys for the RSA and ElGamal encryption algorithms could be extracted in a few seconds. Aug 22 18:58:25 anyone know how i might go about catching this webview error -> W/AwContents﹕ nativeOnDraw failed; clearing to background color. Aug 22 18:58:40 g00s: brb, encasing all my electronics in lead. Aug 22 18:59:33 Hmm I wonder if I could use valgrind successfuly to see where is this webview leaking Aug 22 19:00:07 "This attack required a single piece of encrypted data to be decrypted a few times." That's a big no-no in cryptography. Aug 22 19:00:11 g00s: interesting Aug 22 19:00:49 jaspertheghost: i've seen that and had problems with it, and no sorry, ive not found a way Aug 22 19:01:24 Napalm have you got web apps on play ? Aug 22 19:01:36 darn.. i think the cause for me is in a circustance where the html file im downloading locally to open isnt fully done downlpading and tried to open Aug 22 19:01:45 or know of any good examples of a web app… question to anyone :) Aug 22 19:07:33 http://www.androidcentral.com/another-android-fragmentation-report-misses-point Aug 22 19:07:47 http://opensignal.com/reports/2014/android-fragmentation/ Aug 22 19:12:01 Napalm yeah, the opensignal one is always interesting Aug 22 19:12:13 shame they got it a bit wrong Aug 22 19:13:32 i think androidcentral misses the point; opensignal uses HW apis and that brings a different perspective to things. just like if you are using bluetooth Aug 22 19:14:02 finally my battle with custom action bar items is over Aug 22 19:14:05 whew Aug 22 19:14:20 they even say in the second para " fragmentation benefits Android much more than it hurts it. " Aug 22 19:14:25 if you are interested, http://stackoverflow.com/a/25453979/1449683 Aug 22 19:14:56 g00s: yes, i can say i believe that also Aug 22 19:15:04 oh nice, weechat for android ! Aug 22 19:15:07 g00s: but thats device fragmentation Aug 22 19:15:55 they dont have any captions but this is interesting to me Aug 22 19:16:18 gep per capita vs android version Aug 22 19:16:22 *gdp Aug 22 19:16:31 the one under the scatter plot Aug 22 19:17:14 sq: i would have used the actionButtonSize value from the framework to set its minWidth size rather to avoid padding and mismatches Aug 22 19:17:32 sq: then you can just center your imageView Aug 22 19:18:01 Napalm: what's wrong with using style? Aug 22 19:18:18 apart from requiring api 11 Aug 22 19:18:18 nothing Aug 22 19:18:28 you were speaking about adding padding to the image Aug 22 19:18:45 yeah, this is done by using style="' Aug 22 19:19:33 sq: i also wouldn't have done it this way Aug 22 19:19:36 its all very messey Aug 22 19:19:49 how so? Aug 22 19:19:59 i'm not sure you can do it any other way Aug 22 19:20:11 want an example? Aug 22 19:20:21 sure Aug 22 19:21:47 basically i didn't write anything new, apart from that part that makes button look like a button and show that damn toast Aug 22 19:24:13 "spreading ebola through smartphones" Aug 22 19:24:24 yeah, what is the best way to sanitize a phone ? Aug 22 19:24:31 can't use alcohol Aug 22 19:24:55 somebody recommended UV light, hmm Aug 22 19:25:15 well, that would cure any adhesives that didn't if shipped in a rush ;) Aug 22 19:25:16 say, why android's debug icon look like a radiator? Aug 22 19:55:38 is there a common way to get navigation bar orientation? i see some stuff about measuring views but that doesnt seem to work right when my activity is fullscreen. maybe theres a rule about screen sizes or something? Aug 22 20:05:15 Hi Aug 22 20:05:26 how can I link against the libc that comes with Android instead of the one in the NDK? Aug 22 20:08:08 that's what comes with android Aug 22 20:08:13 shahriyar: use the ndk, or build whatever it is as part of the android platform build Aug 22 20:08:15 ndk is just headers Aug 22 20:08:39 shahriyar: err, ignore the NDK comment (didn't read your question correctly at first :)) Aug 22 20:08:56 hi all- how can i resize imageview in layout xml file? no matter how i try to drag and drop borders of image, it always jumps to original size? Aug 22 20:09:22 just be aware that the NDK represents the "supported" libraries that are guaranteed to be present on a device Aug 22 20:09:50 You might be able to access additional libraries/apis by building in the android tree.. but those aren't guaranteed to be present on all devices Aug 22 20:09:59 I am getting errors of the following type: bionic/libc/include/../include/string.h:224: error: undefined reference to '__strlen_chk' Aug 22 20:10:03 if compatibility is your goal, then just use the NDK :) Aug 22 20:11:47 JesusFreke: cannot use the NDK since I need to build part of chromium into the APK Aug 22 20:12:12 hi Aug 22 20:12:27 that sounds... painful :) Aug 22 20:12:36 not to mention rather.. large. Aug 22 20:12:53 i have a gcm with notification, and in my PendingIntent contentIntent i have StartActivity.class , can i put this value dynamic? Aug 22 20:15:27 JesusFreke: tell me about it Aug 22 20:15:40 you don’t know how many loops I have had to jump through Aug 22 20:15:58 I don’t even know if it is going to work now or not. but we’ll have to see Aug 22 20:16:29 if i put a a bunch of "file" objects of Type File in a hashmap and read tme out is it ok to do this ...File filex = (File) fList.get(keys.next().toString()); Aug 22 20:18:26 i finally resorted to tell the build script to ignore undefined references Aug 22 20:28:02 if someone does know of a good way to not get those though, that would make me feel better about the app Aug 22 20:34:57 I refurse to call it Play, it's a dumb name. The Market. That is all :D /rant Aug 22 20:35:24 That's ok. I refuse to call you MikeWallaceDev :) Aug 22 20:35:32 Fair enough Aug 22 20:40:45 call him bob Aug 22 20:41:37 https://www.youtube.com/watch?v=oK_XtfXPkqw Aug 22 21:03:57 so dagger 2 looks neat Aug 22 21:05:59 haven't used dagger yet. on my list of things to investigate Aug 22 21:06:16 it'll be obsolete by the time that happens Aug 22 21:06:19 ^ Aug 22 21:06:31 i was gonna use dagger in my app but now im waiting for dagger 2 Aug 22 21:06:37 why? Aug 22 21:07:08 so I've got a function, writefile(), that calls openFileOutput (inside a try/catch block) and it works fine when it's a member of MainActivity extends Activity but when it's a member of MyReceiver extends BroadcastReceiver eclipse says openFileOutput is undefined for MyReceiver Aug 22 21:07:32 desmin88: ? Aug 22 21:07:46 well hmm Aug 22 21:07:58 it probably shouldnt be that difficult to go from dagger > dagger2 Aug 22 21:08:07 of course Aug 22 21:09:12 maybe they will do good unit test library ;) Aug 22 21:09:15 (yeah, right) Aug 22 21:13:00 A nice touch in Android Studio that I just noticed : http://goo.gl/JSIvbJ Aug 22 21:15:40 Hi guys, i am trying to use android:windowTranslucentStatus, but it is not one of the options for the item. I am in the values-v19 folder and my min is 11 but my target is 21 Aug 22 21:15:50 how can i get this attribute Aug 22 21:16:49 thats part of kitkat Aug 22 21:16:53 if your minimium is 11 Aug 22 21:17:16 you dont have it Aug 22 21:17:25 oh Aug 22 21:17:27 im dumb Aug 22 21:17:29 disregard me Aug 22 21:18:03 anyone use a lightweight lambda architecture for their mobile app ? Aug 22 21:25:27 g00s: what do you mean ? Aug 22 21:25:34 I'm interested Aug 22 21:25:51 Guys, what other option besides push notifications are over there? which you don't need to rely on a 3rd party service Aug 22 21:26:20 gordon_ looking at this http://lambda-architecture.net/ Aug 22 21:26:35 Toerkeium maybe if you said what it is you want to do ... Aug 22 21:26:40 my app kinda lends itself to this because of the way it handles data Aug 22 21:26:59 so there is a durability layer and a speed layer Aug 22 21:27:50 g00s: how does it link to android dev ? Aug 22 21:28:04 StingRay_: I have to retrieve json data from a website with the status of some web services, and alert the android user of something changes. I should do it every NN minuts Aug 22 21:28:07 minutes Aug 22 21:28:40 gordon_ its just an architecture that seems common in big data but it resolves some forces that might be present in any app Aug 22 21:28:57 Toerkeium and what has gcm got to do with that ? Seems like a device side schedule Aug 22 21:29:03 well, not any app - but appLications in different contexts Aug 22 21:30:49 StingRay_: as far as I could read (which could be wrong), I could do all those validations and inform the android user when something changes, without having to even code a service to verify this web services, just to retrieve the push notification Aug 22 21:30:56 if I'm not wrong Aug 22 21:31:34 but as I don't like the idea of relying that task to 3rd party entities, I'm trying to find another way Aug 22 21:31:39 gordon_ so in my case i'm getting weather data from a number of sensors, the 'master dataset' could be sqlite, that would be the robust part. the speed layer could be some form of caching (min/max/averages) Aug 22 21:31:51 Toerkeium well you would still need to sync it right ? Aug 22 21:32:03 gcm max size is 4k Aug 22 21:32:09 the payload Aug 22 21:32:16 g00s: sorry I misunderstood architecture with lambdas in language Aug 22 21:32:20 this seems to work well if you need nice interactive visualizations, and the robost layer isn't great at performing that (like, resmapling, etc) Aug 22 21:32:32 *resampling Aug 22 21:32:54 ok Aug 22 21:33:48 StingRay_: to simplify: I thought of GCM as developing all checks and validations at server side, and then push the notifications, no need to sync, ot what do you mean by sync? Aug 22 21:34:15 anyway, I would forget about gcm, I'm not going to use it Aug 22 21:34:21 well when data changes on the server what happens Aug 22 21:34:37 you send a gcm to the app to sync, then it connects to server and syncs ? Aug 22 21:34:48 when data changes, I just alert the user with an android notification Aug 22 21:34:50 that's all Aug 22 21:34:54 oh Aug 22 21:35:01 so no data to phone/device Aug 22 21:35:05 oh yeah, then gcm Aug 22 21:35:10 nop at the moment Aug 22 21:35:35 haha but I don't want to use gcm Aug 22 21:35:49 why? Aug 22 21:36:15 I'm tryng to find another way, not sure if a service, thread, or what. I'm a newbbie Aug 22 21:36:37 why not gcm ? Aug 22 21:36:41 sounds perfect Aug 22 21:36:58 well.. the "not syncing" part, could change in future Aug 22 21:38:08 and the reason against gcm currently ? Aug 22 21:38:42 well.. also.. it must be trustable, the notification I mean Aug 22 21:38:58 otherwise the application will be pointless Aug 22 21:39:07 when i read something like this, i think wtf happened here http://www.reddit.com/r/androiddev/comments/2eb5pb/app_is_going_live_on_monday_htc_devices_seem_to/ Aug 22 21:39:39 Toerkeium well you are not going to write a gcm system yourself that is more secure than googles Aug 22 21:39:47 gcm/like Aug 22 21:40:28 anyone here ever tested anything with over 100000 contacts on Android? Aug 22 21:41:08 StingRay_: what I mean ... is that I don't know, if google push service is delayed for some reason, a notification would not come in time at the android phone/user Aug 22 21:41:47 Afzal who would have even 10,000 contacts :| Aug 22 21:42:12 i would think 1,000 would be an extreme outlier itself Aug 22 21:42:18 spambots Aug 22 21:42:26 g00s, I know, it's more about what is seemingly happening to the OS when it needs to process 100,000 contacts Aug 22 21:42:32 considering, people can't generally keep tabs on more than 150 people Aug 22 21:42:47 capella-s3, yup they would but that's not what this is Aug 22 21:43:04 I have a user with 400+ contacts Aug 22 21:43:14 a very large club / mailing lust Aug 22 21:43:22 er list Aug 22 21:43:23 the People's app apparently seems to lose the lock over the database with a huuuge number of contacts Aug 22 21:43:43 that doesn't make sense, lose the lock ? Aug 22 21:43:48 where did it hide :) Aug 22 21:44:17 Well, that's what my feeble mind thinks. It's an IOException, lemme find the exact message Aug 22 21:44:23 the the people app probably uses all 6 or so of them and with all the views too Aug 22 21:44:25 can anyone guide me to a good tutorial regarding how to do animations? I want to build up so i can do this one at the end http://cyrilmottier.com/2014/05/20/custom-animations-with-fragments/ Aug 22 21:44:27 not just 1 Aug 22 21:46:16 HelplessJub that page is the tutorial no ? Aug 22 21:46:43 StingRay_: yes, but im not knowledgeable enough to do it. I need more beginner ones. Was wondering if anyone knew of a good tutorial Aug 22 21:46:46 and design like that I would think over half the average users would be sometimes confused with motion for the sake of it Aug 22 21:48:15 gah, I can't find it. :/ Aug 22 21:48:32 StingRay_: i think it's awesome, so long as there is no keyboard open Aug 22 21:48:45 as long( Aug 22 21:48:46 *& Aug 22 22:03:12 did you guys notice this in Play console" On August 31st, 2014 the feature graphic will become mandatory Aug 22 22:03:20 also Short Description field Aug 22 22:12:19 yep, but only you only have to put them in when you update your app Aug 22 22:12:43 it kinda sucks for me... I have 0 graphical skills Aug 22 22:18:23 Zharf me too ... i just took a picture of weather (for my weather app) and put the title over it Aug 22 22:18:54 I don't know what I'll do for my music player Aug 22 22:22:06 Zharf just grab some stock image of indoor concert + lighting, add huge gaussian blur, slap app name on it Aug 22 22:23:05 -.- Aug 22 22:23:15 see :) Aug 22 22:23:59 I might ask our designer at work if she'd want to do me one Aug 22 22:24:55 better take her out to dinner first! Aug 22 22:25:02 -.- Aug 22 22:25:34 g00s, oh you know what. Maybe it was just the emulator running out of space. I kept getting "read only filesystem" Aug 22 22:26:47 Zharf i guess its different if your promo image has your logo; logo design is a whole other deal Aug 22 22:26:58 5000 contacts take like 50MB, so 120,000 contacts would've taken a lot of space :) Aug 22 22:27:56 or maybe not..lol Aug 22 22:31:00 g00s, we had a logo contest like 6-7 years ago, so yeah.. I have a logo -.- Aug 22 22:50:42 when an activity is finished will Handler.postDelayed() stuff be cancelled? Aug 22 22:51:19 no Aug 22 22:51:25 you have to clear it Aug 22 22:51:29 alright Aug 22 22:51:29 Gimp is yer only man. A little bit of gaussian blur, selection area expansion and fill, layer masks and you're a logo / splash screen maestro in seconds. Aug 22 22:51:34 thanks Aug 22 22:56:52 is there no unbundled download option for android studio? Aug 22 22:56:57 i already have the sdk installed :/ Aug 22 23:04:23 Could someone here tell me how to figure out what lunch combo i should use when building from source? Aug 22 23:04:36 toxinburn, #android-root, #cyanogenmod-dev Aug 22 23:06:01 hi there, i want tu run a system process and grep the output. i tried Runtime.getRuntime().exec("ls | grep sys"); but it doesnt return a valid result if i read it input stream. http://pastebin.com/PgjQj0e3 Aug 22 23:08:28 frankdrey: intellij.. Aug 22 23:09:10 rgr, it's not the same Aug 22 23:10:55 I know. But works perfectly without the "tied to android" choker chain. Everything there you need : gradle etc. Aug 22 23:11:10 (IJ CE EAP is great) Aug 22 23:11:28 I tried using Gradle in IntelliJ recently and it ended up a shitshow Aug 22 23:11:34 it would try to sync for 5 minutes Aug 22 23:11:48 then tell me that the project is no longer backed by gradle and remove itself Aug 22 23:11:49 I've found AS handles gradle a lot better Aug 22 23:12:06 which is why I'd like to try AS :P It's designed *only* for this Aug 22 23:12:34 I doubt thats intellij or gradle. It must have been a config issue. Works fine here and for most others. Gradle was around and working long before the android toolkit for it. Aug 22 23:12:35 plus iirc it has a bit more in terms of setting up / configuring android projects Aug 22 23:12:55 Is possible to "broadcast" data when send intent for broadcast receivers ? Aug 22 23:13:00 not really. very simple IMO - and you have the freedom re sdk etc. Aug 22 23:13:19 hmmm Aug 22 23:13:34 for the record, I am using IntelliJ 13.1.4 :P but without gradle Aug 22 23:14:06 i use....both Aug 22 23:15:29 I was thinking of doing that Aug 22 23:15:42 I'm about to start an Appengine/Android thing Aug 22 23:16:13 is there a way to register for broadcast receiver intents (other than in manifest) in a way that continues to run after the initiating activity exits? Aug 22 23:16:31 is there a way to tell the Android mk file to uncompress a file or unzip a far? Aug 22 23:16:57 Is possible to "broadcast" data when send intent for broadcast receivers ? Aug 22 23:17:28 KeyboardNotFound, yes....what do you mean exactly? Aug 22 23:18:11 frankdrey, examples pls ? (if possible) Aug 22 23:18:54 http://developer.android.com/guide/components/intents-filters.html Aug 22 23:44:34 what is the point of creating a service if it runs in the same thread as the calling activity? Aug 22 23:49:50 blocky i dont think the service runs in the same thread Aug 22 23:51:15 it does run on the ui thread Aug 22 23:51:44 and intentService does things in the background within onReceiveIntent() Aug 22 23:51:59 normal service you should spawn threads and manager them Aug 22 23:52:24 blocky so the point is headless and independent of activity Aug 22 23:55:38 trying to figure out how to receive broadcasts of BATTERY_CHANGED and run in background, and I think I need to create my own service and fork a new thread Aug 22 23:55:56 yes and yes Aug 22 23:56:28 so if you need to start headless, register a broadcast receiver for something like ON_BOOT_COMPLETE or whatever it is Aug 22 23:56:43 then in that receiver start your service Aug 22 23:57:05 in that service register and instance of a broadcast receiver for the battery thing Aug 22 23:57:30 can I just have my MainActivity start the service in OnCreate instead of right at boot? Aug 22 23:57:36 or will it not start until then anyway Aug 22 23:57:45 start wherever Aug 22 23:57:52 or how ever you want Aug 22 23:57:55 k cool, thanks Aug 22 23:57:58 need a context that it Aug 22 23:58:13 look at what the return modes are though, START_STICKY etc Aug 22 23:58:22 all info is on d.android.com Aug 23 00:00:56 wonder why d.android.com is not mobile-friendly :/ Aug 23 00:01:33 same reason some google team apps dont support landscape modes and force portrait Aug 23 00:01:35 :) Aug 23 00:04:59 which is..? Aug 23 00:05:14 lazy and maybe a little bit wrong :) Aug 23 00:05:41 bit silly at the least Aug 23 00:10:52 yeah, that ._. Aug 23 00:18:19 hey all, I've got a frustrating issue, my library project in android studio is being linked as release, any ideas? Aug 23 00:21:49 anyone ever have their android studio library build as release instead of debug? Aug 23 00:23:08 Ma Aug 23 00:23:11 oops Aug 23 00:23:30 Matulis you mean app builds as debug, lib that should build with the app is release ? Aug 23 00:23:49 Yes StingRay, exactly Aug 23 00:24:29 how does that even work, it's one apk right ? or have you flavours ? Aug 23 00:25:12 well i refactored my project originally with some flavors, but then i removed that, and when I was trying to use BuildConfig to set my content provider authority, it was failing and i realized that app thought it was in release Aug 23 00:25:25 but both Build Variants are set to debug Aug 23 00:25:49 I've been tearing out my hair, double checking the gradle files, and recreating the project, no luck Aug 23 00:27:18 so what are the actual symptoms of this… I doubt I can help btw, but I'm a bit interested now Aug 23 00:27:51 well BuildConfig.Release_Type or whatever returns Release Aug 23 00:28:48 and i had some custom BuildConfig variables based on the BuildType in the library which also suggested my library was being built as release Aug 23 00:29:16 gradle console seems to buildDebugSources, but then i see bundleRelease UP-TO-DATE Aug 23 00:30:33 Make sure you selected debug in the build variants pane in the bottom left corner Aug 23 00:30:58 both modules are set to debug Aug 23 00:31:38 heres the gradle console: Executing tasks: [:app,:generateDebugSources :libs:my_lib:generateDebugSources] Aug 23 00:32:39 heres the gradle output Aug 23 00:32:39 https://gist.github.com/anonymous/5958f7b01f79a07a2791 Aug 23 01:01:01 i keep hoping this nav drawer thing will go away, but it just won't :( Aug 23 01:01:06 damn it Aug 23 01:03:05 the what ? Aug 23 01:03:22 navigation drawer Aug 23 01:03:42 that what android calls it ? Aug 23 01:03:59 yeah, for quite a while https://developer.android.com/design/patterns/navigation-drawer.html Aug 23 01:04:13 yeah I dont think like that :) Aug 23 01:04:20 and dont use that either :) Aug 23 01:04:38 you dont need it to go, you just dont use it Aug 23 01:04:52 okay, so, holy crap. I just tested out an app that installs a native coprocess and runs it Aug 23 01:05:08 right now I'm testing with a coprocess that just logs to a thing every second, so I can tell when it's running Aug 23 01:05:15 so far nothing has killed it! O_o Aug 23 01:05:43 including navigating away from the app's activity, discarding that activity from the recent apps, or using "force stop" in the app info Aug 23 01:05:59 or sleeping the display - it even logs every few seconds (presumably from other app's wake locks) Aug 23 01:06:20 even uninstalling didn't kill it O_O Aug 23 01:06:32 it just kept on trucking after uninstall Aug 23 01:07:13 is that how it's _supposed_ to work? Aug 23 01:09:06 oh wow, that AIDE is pretty cool Aug 23 01:10:35 StingRay_ thats the one that runs on android right? Aug 23 01:10:42 yeah lol Aug 23 01:10:48 playing now on nexus 10 Aug 23 01:11:02 how is it? Aug 23 01:11:05 used it to carry on coding while watching godzilla with g/f Aug 23 01:11:09 like...is it usable? Aug 23 01:11:40 well no, ok for writing a maths function or two which is what I was doing, tis the keyboard thats the main bottleneck I think Aug 23 01:11:54 other than the KB yeah, I actually thought it was quite cool Aug 23 01:12:32 IAP's to unlock it though, quite pricy I think Aug 23 01:12:39 bluetooth keyboard Aug 23 01:12:49 iirc it's like $10 Aug 23 01:12:58 StingRay_ say on a transformer + keyboard dock Aug 23 01:13:10 oh I have a transformer 101 Aug 23 01:13:15 yeah that may work Aug 23 01:13:15 frankdrey bluetooth keyboards that arnt attached to the actual device might as well be useless Aug 23 01:13:29 jug6ernaut, not if you have a table and something to prop it against Aug 23 01:13:42 StingRay_ cool...i just bought an iPad mini + calmness, but thinking about returning bc the keyboard is to small Aug 23 01:13:44 or...G1 :3 Aug 23 01:13:48 Is there some magic to getting adb to talk to an Android Wear device from linux? Aug 23 01:13:50 thinking of getting a transformer + keyboard dock Aug 23 01:13:53 frankdrey yeah what jug6ernaut said, I have apple wireless that I use sometimes with tablets, but not wanting a two component thing on my lap Aug 23 01:13:56 frankdrey yea, but imo thats just lame. Aug 23 01:16:21 how does one go about compiling a kernel module for android? Aug 23 01:16:32 sarink wrong chan Aug 23 01:16:37 try #cyanogenmod Aug 23 01:16:52 jug6ernaut: will do. thanks Aug 23 01:16:55 #cyanogenmod-dev to be more exact :P Aug 23 01:17:08 yeah that :P Aug 23 01:17:13 sarink what frankdrey said lol Aug 23 01:17:14 maybe I should compile android for first time Aug 23 01:17:33 i wouldn't know Aug 23 01:17:36 I used to play with that stuff Aug 23 01:17:45 and a month ago, compiled 4.4 for the nexus s Aug 23 01:17:52 it took >48 hours Aug 23 01:18:18 ... Aug 23 01:18:23 u need a computer upgrade Aug 23 01:18:30 yes :P Aug 23 01:18:35 like Aug 23 01:18:36 bad Aug 23 01:18:53 it should take like 6 hours Aug 23 01:19:03 on some i5 Aug 23 01:19:04 it should take like 30mins Aug 23 01:19:05 i mean, it was a clean build Aug 23 01:19:08 jug6ernaut: lol ? Aug 23 01:19:12 * frankdrey ** SysInfo ** Client: HexChat 2.10.1 (x64) ** OS: Microsoft Windows Embedded 8.1 Industry Pro ** CPU: Intel(R) Core(TM)2 CPU 4300 @ 1.80GHz (1.00 GHz) ** RAM: 6077 MB Total (4730 MB Free) ** VGA: NVIDIA GeForce GT 630 ** Uptime: 52.62 Hours ** Aug 23 01:19:13 like everything ? Aug 23 01:19:23 I did recently upgrade 4gb -> 6gb ram Aug 23 01:19:31 frankdrey: I see not only computer is your problem Aug 23 01:19:33 but your OS Aug 23 01:19:36 :p Aug 23 01:19:41 frankdrey whats the command to do that Aug 23 01:19:43 I also have Arch Linux on here Aug 23 01:19:44 * jug6ernaut forgot Aug 23 01:19:46 jug6ernaut, /sysinfo Aug 23 01:19:50 System Information: Model: MacBook Pro (15-inch Retina Late-2013) • CPU: Intel Core i7-4850HQ (8 Threads, 4 Cores) @ 2.30 GHz • Memory: 16.00 GB • Uptime: 3 days • Disk Space: Total: 496.30 GB; Free: 73.07 GB • Graphics: Intel Iris Pro, NVIDIA GeForce GT 750M • Screen Resolution: 1440 x 900 (HiDPI Mode) • Load: 18% • OS: Mac OS X 10.10 ((null)) (Build 14A329f) Aug 23 01:20:00 frankdrey :( Aug 23 01:20:03 core 2 ? Aug 23 01:20:12 yes :( Aug 23 01:20:39 if u wanna build android u need an SSD, at least 16GB of ram and a decent cpu Aug 23 01:20:44 yeah Aug 23 01:20:49 or u will be there for 48 hours lol Aug 23 01:20:58 whatever, not interested anymore :P Aug 23 01:21:03 my Moto G's stock is great Aug 23 01:21:04 frankdrey Aug 23 01:21:11 u need a new computer just for android dev Aug 23 01:21:18 it works fine *shrug* Aug 23 01:21:21 * jug6ernaut just noticed he only has 73GB free Aug 23 01:21:24 * jug6ernaut needs to fix that Aug 23 01:21:26 said someone who own the mac :D Aug 23 01:21:36 *owns Aug 23 01:21:39 my laptop has 2gb ram, now that's a pain to dev on Aug 23 01:21:43 gordon_ i love this computer Aug 23 01:21:56 so I do love mine Aug 23 01:21:57 i wouldn't choose any other laptop period Aug 23 01:22:17 I would choose other I guess Aug 23 01:23:07 but Aug 23 01:23:11 * jug6ernaut isn't getting into that convo Aug 23 01:23:14 https://docs.sony.com/release/specs/VGNFZ140EB_mksp.pdf <- I hope your browser does pdf Aug 23 01:23:15 haha Aug 23 01:23:15 frankdrey wow 2G? what editor / ide are you using O.o Aug 23 01:23:26 g00s, I used to use IntelliJ... Aug 23 01:23:31 lol Aug 23 01:23:36 I guess I had a lot of patience Aug 23 01:23:36 thats like nano / vim territors Aug 23 01:23:41 xD Aug 23 01:23:55 but when I switched to desktop when school ended Aug 23 01:24:07 i have 4G and AS + gradle really struggle. i'd probably use vim + gradle if i had 2G Aug 23 01:24:10 I can't use IntelliJ on my laptop anymore :P notepad++ and compile with ant Aug 23 01:24:11 i wonder how big ur swap/paging file is Aug 23 01:24:15 StingRay_ found this page: http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Library-Publication Aug 23 01:24:55 AS or idea easily use >1GB if available Aug 23 01:24:57 or mousepad if i'm in linux Aug 23 01:25:13 compile with ant :( Aug 23 01:25:21 * jug6ernaut feels like he's at work with that statement Aug 23 01:25:23 lol Aug 23 01:25:34 we actually use openmake Aug 23 01:25:37 even worse Aug 23 01:25:38 :S Aug 23 01:26:14 my "big" project is ant for "release" builds / IntelliJ during development Aug 23 01:26:23 but I just did something today with gradle Aug 23 01:26:24 I got something like Aug 23 01:26:25 cpu: Intel(R) Core(TM) i5-3427U CPU @ 1.80GHz, 2610 MHz, graphics card: Intel 3rd Gen Core processor Graphics Controller, ram: 8gb Aug 23 01:26:30 not sure how I feel about it Aug 23 01:26:35 i guess there is always FB's buck Aug 23 01:26:52 I despise facebook with a passian Aug 23 01:26:56 *passion Aug 23 01:27:02 g00s eh? fb got there own build system? Aug 23 01:27:07 gordon_ not bad Aug 23 01:27:08 http://facebook.github.io/buck/ Aug 23 01:27:12 their sdk fucked up one of my activitys so badly Aug 23 01:27:15 jug6ernaut: and ssd <3 Aug 23 01:27:21 yeah, but i doubt buck is spying on anyone :) Aug 23 01:27:26 gordon_ :), sad is a must Aug 23 01:27:34 the only weakness of that Aug 23 01:27:36 g00s...why Aug 23 01:27:36 I just want to sign in and get a stupid token, not integrate your UI into my whole activity Aug 23 01:27:39 do they have there own build to Aug 23 01:27:41 tool Aug 23 01:27:42 it that it's ultrabook Aug 23 01:27:50 so it gets hot pretty quickly Aug 23 01:27:56 lol Aug 23 01:27:59 jug6ernaut from what i understand, the apps ate so big the gradle builds take unfathonly long Aug 23 01:28:07 hehe, s/ate/are Aug 23 01:28:08 i actually wanna setup a dedicated local build box that i could remote into Aug 23 01:28:22 for what ? Aug 23 01:28:22 to offload all the high cpu/hd stuff Aug 23 01:28:32 I used to have a VM for builds until I realized how stupid that was Aug 23 01:28:36 g00s :( Aug 23 01:28:36 very stupid Aug 23 01:28:38 thats just sad Aug 23 01:28:58 jug6ernaut remember, FB keeps bumping into that 65k method limit Aug 23 01:29:06 so ... i bet their apps are huge Aug 23 01:29:11 I'm not saying vm, I'm saying a dedicated desktop that i would vnc/rdp into Aug 23 01:29:11 I remebered the times when we had gentoo compiled on 8 computers with distcc... Aug 23 01:29:15 good times Aug 23 01:29:22 g00s i ran into the 65k limit :( Aug 23 01:29:25 had to refactor lol Aug 23 01:29:29 oh yeah, i remember gentoo & distcc :) Aug 23 01:29:45 how do you count methods? Aug 23 01:29:51 you dont Aug 23 01:29:55 it yells at u when ur over it Aug 23 01:29:58 :P Aug 23 01:29:58 jake has a script that counts Aug 23 01:30:04 oh nice Aug 23 01:30:05 gist , somewhere Aug 23 01:30:23 g00s and my game isn't to big, just lots of libs where i was using like 1% of the methods Aug 23 01:30:27 does it count libraries too? Aug 23 01:30:31 https://gist.github.com/JakeWharton/6002797 Aug 23 01:30:33 apache this apache that Aug 23 01:30:36 frankdrey yes Aug 23 01:31:01 all of that gets put into the same sex file, tho there are ways around it if need be, loading a separate dex & what not Aug 23 01:31:05 but most will never run into it Aug 23 01:31:38 sex file :p Aug 23 01:31:45 lol Aug 23 01:31:50 yeah, if you don't use libraries. but i have one guy wanting google drive, another drop.net ? another dropbox, etc ... Aug 23 01:31:53 one of OS X annoying parts Aug 23 01:31:59 add these libraries and yeah Aug 23 01:32:15 lol Aug 23 01:32:19 oh, box.net Aug 23 01:33:09 azure storage, etc Aug 23 01:33:32 load them in a separate dex Aug 23 01:34:36 Hey guys, I'm having an issue deleting files with my app. The file gets deleted, but my Cursor keeps finding its path afterwards. Here is the code I'm using to find the images: http://pastebin.com/eAwmYbbH I'm passing getApplicationContext() to the function. Any ideas on how to prevent the invalid path from being returned? Do I have to somehow update or notify the ContentResolver? Aug 23 01:36:51 well you are not removing the record anywhere ? though it's 2:36am here, I could be missing it Aug 23 01:36:53 :) Aug 23 01:39:28 helichopter that was for you btw Aug 23 01:41:15 i found an easier method counting script :P Aug 23 01:41:25 though it seems to be double-counting :| Aug 23 01:41:40 yeahhhhh Aug 23 01:41:44 69017 methods Aug 23 01:42:35 anyway Aug 23 01:42:41 enough computers for me for today Aug 23 01:42:43 bye Aug 23 01:47:25 StingRay_: Sorry, I should have specified, that's the code I'm using to get the images. The code I'm using to delete the file, is File f = new File(path); f.delete(); I'm thinking that maybe I should be using ContentResolver to delete the file instead Aug 23 01:47:40 erm no Aug 23 01:48:02 a database and physical file….2 diff things Aug 23 01:48:15 you want to … delete a file and remove a row Aug 23 01:50:25 StingRay_: Okay, sorry I'm totally confused between the two. So I should delete the file, and then remove its respective row? I think with my code right now, all I'm doing is deleting the actual full size image file, so the database entry still exists, but has a null value for its image, is that right? Aug 23 01:51:10 well, unless you nulled any values no… or unless the scraper/indexer was triggered then no Aug 23 01:51:52 dont know much about content provider…but yeah, deleting a file is not going to remove a row from a content provider Aug 23 01:53:38 StingRay_: hmm, okay, well in that case, do you have a preferred way of deleting an image and all traces of it from an sd card, like how if you were to delete a photo from your gallery? Aug 23 01:54:11 well just remove the row references in the content provider Aug 23 01:54:16 like I said Aug 23 01:55:56 okay, cool, thank you very much Aug 23 01:56:21 hey guys! Aug 23 01:57:03 for what i've seen, doing http get/post/put/patch/delete to server is a pain in the ass, requires lots of lines of code and is not simple, is there and easy and clean way to do this requests ? Aug 23 02:01:48 have you guys ever seen some kind of apparatus that would let you lay downin bed and read an ebook on your tablet, buy supporting it over your head somehow Aug 23 02:02:05 likda like a tablet holder attached to an arch Aug 23 02:02:38 g00s that would be a little, well, not all that practical for many many reasons Aug 23 02:02:55 and possibly not commercially viable either Aug 23 02:03:06 well i'm holding it in my hands which is very tiring Aug 23 02:03:13 indeed Aug 23 02:03:42 g00s: this is an android irc chat, for other questions please refer to google Aug 23 02:04:00 naschurmann oh yeah, thanks Aug 23 02:04:20 g00s: so for what i've read you were being sarcastic Aug 23 02:04:26 StingRay_ when i try to lay down on my tummy and read, thats uncomfortable too Aug 23 02:04:33 sides - no go Aug 23 02:05:14 is this chat actually helpful or you only see kids that have nothing else to do? Aug 23 02:05:25 motorcycle helmet, remove visor, lots of tape, cut away mouth area so hand can get up, shorten your nose and you almost have google glass Aug 23 02:05:55 wow, this is the most stupid conversation that i've ever read. Aug 23 02:06:19 huh ? me and g00s are dead serious Aug 23 02:06:22 all the time ! Aug 23 02:06:33 StingRay_: could you help me with my question ? Aug 23 02:06:40 I could but not now :) Aug 23 02:06:48 u sir are rude Aug 23 02:06:49 :) Aug 23 02:06:55 you are talking about important stuff, right? Aug 23 02:06:59 yeah Aug 23 02:07:03 StingRay_ maybe this http://www.floteyourtablet.com/flote-m2-floor-stand/ Aug 23 02:07:31 lol thats just silly Aug 23 02:07:32 supports nexus 7 \o/ Aug 23 02:08:01 actually i kind of enjoy the reading Aug 23 02:08:04 please keep going Aug 23 02:08:50 naschurmann yeah you are correct though, google answers most questions http://bit.ly/1po4UVk Aug 23 02:08:53 StingRay_ this is hilarious http://www.bedbathandbeyond.com/1/1/150564-pedestal-stand-ipad-optional-roll-holder.html Aug 23 02:09:02 wonder if it comes with TP Aug 23 02:09:26 StingRay_: not what i was looking Aug 23 02:09:43 really ? thought you wanted a post get thing Aug 23 02:09:55 it is 3am here and I'm quite tired Aug 23 02:09:57 :) Aug 23 02:10:01 let me scroll up Aug 23 02:10:01 lol... post-get 'thing' Aug 23 02:10:32 so you want an async mysql interface to server ? Aug 23 02:10:47 is more for a what you use, how you keep things tidy Aug 23 02:10:54 in other languages is 1 line of code Aug 23 02:11:15 with other libraries is also 1 line, and then another for the callback Aug 23 02:11:43 well I wrote a lib for my app to do just that Aug 23 02:11:53 so yeah, the lib makes calls 1 liners Aug 23 02:12:00 how did you approached that? Aug 23 02:12:44 spec out functions, consider security, learn php, do the php functions, design the data and view, code the android live with functions that use the php calls Aug 23 02:12:55 lots of util helper classes to decode encode data Aug 23 02:13:10 well, not the answer that expected Aug 23 02:13:57 not sure what the question was.. Aug 23 02:14:03 3am remeber :) Aug 23 02:15:09 g00s, a cheap case, a roof bracket some good quality string (4-6mm) and some glue….see where I'm going with this :) Aug 23 02:15:10 yeah... kind of annoying make call to apis in native android Aug 23 02:26:47 hey everyone Aug 23 02:28:22 can anyone tell me how to disable/block incoming calls from within my app? Aug 23 02:43:30 hounge that's a good question, I'd like to have that option in my app too Aug 23 02:44:09 https://www.google.ca/search?q=android+programming+block+incoming+calls&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a&channel=sb&gfe_rd=cr&ei=tv73U6uuE4jM8gfSxoGQBA Aug 23 02:44:31 https://github.com/teddscofield/teddsdroidtools Aug 23 02:44:53 this can reject calls programicly Aug 23 02:45:09 depending on the phone number ? Aug 23 02:45:12 or just all Aug 23 02:46:03 mine is a video player app, it would be nice to have the option of blocking all calls while watching a movie Aug 23 02:46:39 you can change it to all numbers get rejected Aug 23 02:47:05 but also single stockers and telemarketers blacklist too Aug 23 02:47:20 for communication dialer type apps Aug 23 02:47:20 yes you could also do that Aug 23 02:48:05 everything is awesome! Aug 23 02:51:20 yo you yo Aug 23 02:52:24 ron_frown any suggestions for a bed tablet holder ? Aug 23 02:52:25 :D Aug 23 02:52:31 wut Aug 23 02:52:34 I dont even wn a tablet Aug 23 02:52:46 like, lay down in bed and have tablet held in reading position Aug 23 02:52:51 oh really, no tablet ? Aug 23 02:52:58 gobs of em at the office Aug 23 02:53:00 none at home Aug 23 02:53:08 i use for kindle mostly. Aug 23 02:53:13 Play Books Aug 23 02:53:21 my wife has a kindle Aug 23 02:53:28 well, i grab the epub from oreilly and load into Play Books Aug 23 02:53:40 I got all the tech in the world at the office Aug 23 02:53:47 very little at home =) Aug 23 02:58:55 i haven't looked in a long time, thought it was interesting in Play that china is greyed out **** ENDING LOGGING AT Sat Aug 23 02:59:58 2014