**** BEGIN LOGGING AT Wed Oct 23 02:59:58 2013 Oct 23 03:00:02 user just need to feel that its repsonsive Oct 23 03:00:05 I have some ideas in terms of precalculation Oct 23 03:00:09 If need be Oct 23 03:00:13 even if its slowly streaming in data Oct 23 03:00:14 But I'd love for it to just work haha Oct 23 03:00:24 Mmm? good point Oct 23 03:00:37 any idea how BIG in KB that data set is? Oct 23 03:00:43 Umm? no Oct 23 03:01:04 40k entries, short names (below 50 char's) and an integer Oct 23 03:01:11 (Plus GPS locations) Oct 23 03:01:22 So a few megs I imaging for now Oct 23 03:01:40 Maybe I'm overthinking the issue and it won't be that much strain Oct 23 03:02:09 (Though as I said, there's an option of the making the project much better and boosting to about 700k entries) Oct 23 03:02:22 I think I got some great leads here though, thanks! Oct 23 03:03:23 nubish: https://gist.github.com/acidjazz/37870ef824bf4f92dc9a Oct 23 03:03:34 any1 know setOnClickPendingIntent? i cant figure out how to use it Oct 23 03:04:05 made me pause my pr0nz acidjazz Oct 23 03:04:08 lolz Oct 23 03:04:14 lol nubish Oct 23 03:14:24 man i cannot get this damn notification button to FIRE Oct 23 03:14:30 0 errors ofcourse Oct 23 03:14:56 acidjazz im reading this section that talks of RemoteViews in my book Oct 23 03:15:20 acidjazz give me a sec, see if we cant figure this out Oct 23 03:15:32 thanks for the code btw Oct 23 03:21:42 nubish: np thanks for helpin Oct 23 03:26:50 nubish: whats odd as that playStopIntent function fires when the services fires up Oct 23 03:29:32 nubish: maybe its my layout type Oct 23 03:29:52 no its not that Oct 23 03:32:35 nubish: maybe cuz i have it has playStopIntent().. the function runs when it hits that code Oct 23 03:33:48 instead of setContent(), try setContentView() for the Context in the notification builder Oct 23 03:35:58 acidjazz instead of setContent(), try setContentView() for the Context in the notification builder Oct 23 03:38:22 ok Oct 23 03:39:05 that doesnt exist Oct 23 03:39:32 really? Oct 23 03:39:50 yea im pretty sure its setContent too Oct 23 03:40:02 http://developer.android.com/reference/android/app/Notification.Builder.html#setContent(android.widget.RemoteViews) Oct 23 03:40:14 yea theres nothing else there Oct 23 03:40:28 oh wait im totally overlooking the ending paranthesis at the end of getAppContext Oct 23 03:40:41 sorry sorry i thought it was chained with 'Activity' Oct 23 03:40:49 its chained to notification Oct 23 03:41:33 nubish: i jsut tried this Oct 23 03:41:34 https://gist.github.com/acidjazz/d210b313de804d1fb70f Oct 23 03:41:40 0 errors 0 action Oct 23 03:41:52 If I have an AsyncTask that starts on onCreate of an activity, and it might not finish by the time the activity finishes, the task doesn't automatically get cancelled for me does it? Oct 23 03:42:05 I have to save it somewhere, like an ivar, and cancel it myself, right? Oct 23 03:42:05 nope Oct 23 03:42:11 acidjazz lol Oct 23 03:43:00 hi guys, i have a java game that the main part of runs in a while loop. i am using the scanner class to ask to continue the loop or not. I am trying to make an android app out of it. I want to have a Yes and No button. I can have the yes/no buttons set a boolean, but the problem is that it will keep running through until i press no. I want the loop to stop at the place where it decides to continue or not. would the best way to do it b Oct 23 03:43:00 Similarly, when the task finishes, would it make sense to null out the ivar in onPostExecute or onCancelled? Oct 23 03:43:07 the contents until the value increases? Oct 23 03:43:12 nubish: http://stackoverflow.com/questions/13342158/widget-setonclickpendingintent-not-starting-service/13347620#13347620 Oct 23 03:43:19 nubish: this supposedly is how its done.. thats what im tryin to do Oct 23 03:44:45 oh goodness, this isnt an activity, its an adapter Oct 23 03:45:13 gotta cancel that task when the activity finishes, but I have to cascade calls down to it Oct 23 03:45:33 otiose the asynctask works in the background and publishes results on the main/UI thread so when the activity loses focus, it will still finish its work because it isnt getting paused because it works in a background thread Oct 23 03:45:55 acidjazz okay Oct 23 03:46:36 nubish: and im concerned that if the activity is finished before the asynctask is done, it will reference things that have disappeared and crash Oct 23 03:47:07 oriose the asynctask holds a reference to the activity and then it discards of it only after it is done Oct 23 03:47:14 otiose ^ Oct 23 03:47:41 hmm, well then maybe it wont crash Oct 23 03:47:47 but I'd still like to cancel it Oct 23 03:47:58 nubish: another suppsoed working example http://dj-android.blogspot.in/2013/04/android-notifications-2.html Oct 23 03:50:03 otiose https://developer.android.com/reference/android/os/AsyncTask.html Oct 23 03:50:07 acidjazz thanks Oct 23 03:50:21 acidjazz looking at all of these questions, i realize i dont know fuck all Oct 23 03:50:25 :P Oct 23 03:50:33 definitely staying up all night Oct 23 03:51:19 huh i got it Oct 23 03:51:34 what did you do? Oct 23 03:51:40 i moved the service to its own class Oct 23 03:51:45 and defined it in my manifest Oct 23 03:51:53 i also changed getActivity from PendingIntent to getService Oct 23 03:51:53 ah the manifest Oct 23 03:52:04 but dood 0 errors.. why didnt it bitch Oct 23 03:52:20 because it executed Oct 23 03:52:30 it might not have executed int the way you wanted it to, but it executed Oct 23 03:52:36 no log.d Oct 23 03:53:08 oh Oct 23 03:53:10 not sure Oct 23 03:53:24 but ill be trying this code out myself Oct 23 03:53:26 thanks to you :P Oct 23 03:56:58 np its pretty sweet.. fully customized notification bar w/ play/stop button Oct 23 03:59:38 coolness Oct 23 04:00:13 reason you had to move the service to its own class was because of getClass() in the Intent right? Oct 23 04:05:01 you know what? when not dealing with retarded frameworks made to mimic an iOS feel filled with copy/paste and too much useless inheritance and long, confusing naming conventions.... Oct 23 04:05:05 android dev really isnt that bad Oct 23 04:05:40 ha Oct 23 04:05:47 it can be quite fun Oct 23 04:06:08 there's a lot you can do with a small powerful compiter with lots of IO options Oct 23 04:06:14 *computer Oct 23 04:06:28 indeed Oct 23 04:08:05 but when every single activity has a name like ActivityViewElementViewItemDetailView, that requires you have an ActivityTabElementItemDetailTab to wrap around it... it seems like a nightmare Oct 23 04:08:22 is there a way to check the integrity of a SQLite database prior to opening it through the filesystem? Oct 23 04:08:44 huh Oct 23 04:08:57 otiose, you're saying this about ios? Oct 23 04:09:15 no, that's the android framework i'm using thats being used to mock the iOS look and feel Oct 23 04:10:17 ActivityTabElement subclasses are basically UINavigationControllers, and ActivityViewElement subclasses are basically UIViewControllers with ActivityViewElementView subclasses inside them, which are the .view property of UIViewControllers Oct 23 04:11:52 and i thought the m prefix was bad Oct 23 04:12:54 im copying a database to the filesystem via an AsynchTask... if the transfer stops mid copy with only a piece of the file transfered (battery off / hard rest); can I validate the database file somehow before trying to open it... so I can restart the transfer? Oct 23 04:14:22 Anyone know where I can learn to highlight a custom listview item that doesn't take up the entire listview row? Oct 23 04:14:42 I can't seem to find a decent SO question or solution through my Googling. Oct 23 04:15:19 listview items should be selectable by default Oct 23 04:15:37 now i need to swap the image resource of an ImageView inside a RemoteViews defined RelativeLayout.. i tried remoteView.setImageViewResource(R.id.nPlayStop, R.drawable.pause); Oct 23 04:15:46 man.. do i have to redo the damn notification? Oct 23 04:16:05 ad0le: Right now, the very bottom layout is what is being highlighted, everything else inside stays the same color. Oct 23 04:16:23 ad0le: Or I guess, the highest up in the view hierarchy. Oct 23 04:22:11 isDatabaseIntegrityOk Oct 23 04:26:43 OK, does anyone know how, for example, the Google Play Music app highlights entire cards with that orange highlight? I need to do the same. Oct 23 04:27:00 huh? Oct 23 04:27:18 when you touch them? Oct 23 04:27:49 Does anyone know how to perform a good animation when expanding a group of an expanded list view? my problem is that the children of the listview are different views, so if I use an animation, they each use a different one Oct 23 04:34:57 gavilan2: what you mean use different one? Oct 23 04:35:30 mystupid: Yes, when you touch them. Oct 23 04:41:11 jdawes: you can do this with a selector... like android does with the list_selector_background Oct 23 04:41:26 OK I'll look into selectors, thanks. Oct 23 04:42:27 jdawes: the proper term might actually be state list; http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList Oct 23 04:42:42 so p much to change stuff in a RemoteView pumped into a Notification build i have to refresh teh whole notification? Oct 23 04:43:07 hi all Oct 23 04:43:10 wich is the control for display some values (a listbox, or dropdown) Oct 23 04:44:18 jak2000: spinner or listview ( i really don't know what you're asking ) Oct 23 04:46:08 huh..why does my app not have a settings action..or action bar thingy Oct 23 04:46:34 mainactivity extends actionbaractivity Oct 23 04:46:48 bankai_: http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_select check the result.... Oct 23 04:47:09 jak2000: spinner Oct 23 04:47:48 ok, thanks have you any tutorial? thanks Oct 23 04:47:49 sreich: http://developer.android.com/guide/topics/ui/actionbar.html work through the documentation here Oct 23 04:49:56 bankai_: hm, basically all i want is a button to get to settings Oct 23 04:49:59 well, not button really Oct 23 04:50:15 e.g. press menu button and it'll show "settings" as most apps do, below. Oct 23 04:50:23 they show it on the top through the actionbar, how do they show it below Oct 23 04:51:06 oh, nvm found it Oct 23 04:52:04 hm, or did i.. Oct 23 04:53:01 bloody hell. why must wordpress have a dash in the returned json member name Oct 23 04:56:29 parsing this will not be fun Oct 23 04:56:31 seand: Are selectors the soultion is my listview item content is dynamic? For example, the text and image in the item will never be the same. The selector seems to need an image, but can it do the same with a color? Oct 23 04:59:41 Maziz: I want to animate all the childs as a single view.... Oct 23 05:00:37 jdawes: yes. look up list_selector_background.xml and see how android implements it Oct 23 05:00:46 Maziz: I used a slide in, but each child slides in on it's own... they don't work as a bunch... so fromY= Oct 23 05:00:58 jdawes: they use that for selecting a listview item, the default blue color Oct 23 05:01:09 Maziz: so fromY=-100%, is moving each child up one slot, but I'd like to move them up as many slots as childs are there Oct 23 05:02:26 off course they dont work as a bunch because each child view is different view Oct 23 05:02:30 are you using Animator? Oct 23 05:02:35 AnimatorSet thingy Oct 23 05:02:40 property / object nimator Oct 23 05:03:50 brb Oct 23 05:03:52 pm me Oct 23 05:07:55 desmin88, a simple mapper should fix that Oct 23 05:08:58 pfn: yeah i know its just every single thing is fine out of a huge pojo, except for one member which messes it all up :( Oct 23 05:09:19 desmin88, yeah, but a simple mapper or annotation should fix that Oct 23 05:09:22 depending on the parser you're using Oct 23 05:09:34 i was thinking of gson but its so slow Oct 23 05:09:44 compared to? Oct 23 05:09:53 I wouldn't call it "so slow" Oct 23 05:10:27 :/ Oct 23 05:10:57 you think it would okay to use then? Oct 23 05:11:27 what are you using now? Oct 23 05:11:29 org.json? Oct 23 05:11:45 simple json Oct 23 05:11:46 I want to know where you got this notion that it's "so slow" Oct 23 05:11:50 what is simple json Oct 23 05:11:53 anyone here used sqllite? Oct 23 05:12:05 what's sqllite? Oct 23 05:12:14 escuse me: sqlite Oct 23 05:12:15 :) Oct 23 05:12:26 pfn: sorry meant json-simple. Oct 23 05:13:12 I've used gson in the past for other projects and when parsing large json strings it took quite a bit of time Oct 23 05:13:22 anecdotal of course, but i remember some graphs and such Oct 23 05:14:08 when parsing large json strings with any parser it will take quite a bit of time Oct 23 05:14:13 true, true Oct 23 05:15:00 ok, i will try gson then Oct 23 05:17:01 i made ramen Oct 23 05:17:05 fml Oct 23 05:17:48 con...congratulations? Oct 23 05:18:00 its horrible Oct 23 05:18:01 HORRIBLE Oct 23 05:18:04 blaaargh Oct 23 05:18:21 im reading on graphics of android and came across this "Many times, hardware overlays do not support rotation, so the solution is to pre-transform the buffer before it reaches SurfaceFlinger." Oct 23 05:18:27 What does it mean by rotation? Oct 23 05:18:32 rotation as in screen rotation? Oct 23 05:20:29 pfn, you know how to copy files (sql lite files) to my ADV? Oct 23 05:20:50 AVD* ? Oct 23 05:21:08 using adb Oct 23 05:23:44 desmin88 you have any idea what rotation in this context refers to? "Many times, hardware overlays do not support rotation, so the solution is to pre-transform the buffer before it reaches SurfaceFlinger." Oct 23 05:23:58 uhmm Oct 23 05:24:02 screen rotation? Oct 23 05:25:03 thats what i was thinking Oct 23 05:28:35 Hello Oct 23 05:28:57 I have queries regarding rom port? Oct 23 05:29:03 Need help Oct 23 05:29:04 pfn: would you suggest an asynctask or a loader to deal with this? By that I mean grabbing json data/parsing/pushing to listview Oct 23 05:29:12 davevinci_: wrong channel i think Oct 23 05:29:24 What channel? Oct 23 05:29:41 #android-root perhaps Oct 23 05:29:48 ah thabks Oct 23 05:29:50 Thanks Oct 23 05:29:59 yw Oct 23 05:30:08 desmin88, whatever feels appropriate Oct 23 05:30:17 loaders seem to work well for the situation, possibly Oct 23 05:31:13 okay, thanks Oct 23 05:34:16 hi.. is it possible to open a .txt file from inside my apk using the Intent.ACTION_VIEW stuff? how do I form the url to my file? Oct 23 05:35:26 punto: you need to use a Uri Oct 23 05:35:27 depends on where you put it Oct 23 05:36:00 it's on the root of my assets directlry Oct 23 05:36:03 directory Oct 23 05:36:41 then google for android asset directory uri Oct 23 05:37:07 pfn how long did it take you to master Android? Oct 23 05:37:55 not long Oct 23 05:37:57 10000 hours Oct 23 05:38:28 but I have a solid development background Oct 23 05:38:31 lolz Oct 23 05:38:36 sup seand Oct 23 05:38:41 so it's just drop in and pick it up Oct 23 05:38:42 hi Oct 23 05:38:47 pfn coolnes Oct 23 05:41:49 is there supposed to be a google announcement this week > Oct 23 05:42:30 is there> Oct 23 05:42:48 Oct. 24th Oct 23 05:42:50 10000 /24 = 417 days Oct 23 05:43:14 Might unveil nexus 5 Oct 23 05:43:31 i mean release a release date Oct 23 05:43:44 kitkat comes out the 28th i think Oct 23 05:44:02 there is a 'google play' event in NYC tomorrow... probably... which they've said won't be a hardware or software release Oct 23 05:44:57 google play event? awesome Oct 23 05:45:00 NYC has so many events Oct 23 05:45:08 if i werent such an agoraphobe id move to NYC Oct 23 05:45:17 you hate sweaters? Oct 23 05:45:55 not as much as whats in and around them :P Oct 23 05:46:02 oh, maybe their magazine stuff Oct 23 05:46:02 new york is awesome Oct 23 05:46:08 I like it a lot; too bad I'm not in nyc Oct 23 05:46:23 i live in chicago atm Oct 23 05:47:28 i'm guessing its Play Newsstand Oct 23 05:48:00 we should all move to nyc and start a band, the fandroids Oct 23 05:48:21 dibs on cowbell Oct 23 05:48:43 they already have the highest homeless concentration of any city i think; no need to add to it :) Oct 23 05:48:53 in the us Oct 23 05:49:02 homeless where? Oct 23 05:49:19 new york city Oct 23 05:49:26 ah Oct 23 05:49:29 don't they mostly get cleared out by the winter? Oct 23 05:49:34 yeah i was just going to say Oct 23 05:49:38 (which is, of course, coming) Oct 23 05:49:40 one thing i noticed moving from toronto to SF was homeless Oct 23 05:49:48 in toronto, you dont surive winter on the streets Oct 23 05:49:54 and i bet NYC is very similar Oct 23 05:50:13 so I'm opening a .txt file with the uri file:///android_asset/file.txt, and I'm getting the "ActivityNotFoundException", isn't the default browser supposed to be able to open txt files? Oct 23 05:50:17 to be fair, and off-topic, there's actually a big range between 'homeless' and 'on the streets' Oct 23 05:50:33 punto you have to specify in the manifest i believe Oct 23 05:50:44 not sure Oct 23 05:50:56 Everyone is on the streets in ny Oct 23 05:51:13 I wouldn't be surprised if the browser *didn't* handle .txt - or local files, for that matter Oct 23 05:51:34 many NYC homeless actually have jobs; just not enough to pay the rent Oct 23 05:51:36 does anyone have XP in working with the Google Plus APIs? Oct 23 05:51:53 g00s: is this an actual fact? Oct 23 05:52:00 that sounds wrong Oct 23 05:52:12 why does it sound wrong, nyc is so expensive Oct 23 05:52:34 if you have a job, you could commute to work and live in Jersey Oct 23 05:52:57 on the down side, you're living in Jersey. Oct 23 05:53:03 :) Oct 23 05:53:14 yeah, might as well be homeless, right Oct 23 05:53:22 it's not that bad Oct 23 05:53:28 just Newark is bad Oct 23 05:53:33 i'm just kidding, i've never been to jersey Oct 23 05:53:34 it's like a shit hole Oct 23 05:53:40 It wasn't my cup of tea Oct 23 05:53:44 that was the futurama joke... looking round a bunch of apartments, found a perfect one in NJ - "Not one place worth living in" Oct 23 05:54:01 i worked in Newark for years, man thats a tough crowd Oct 23 05:54:16 Yeah, luckily I wasn't around newark. But still :) Oct 23 05:54:18 drove through the oranges, saw crazy stuff, i mean /crazy/ Oct 23 05:54:28 Trenton was bad too Oct 23 05:54:34 To be fair, I think it was mostly the east coast that I didn't care for Oct 23 05:54:42 not jersey specifically Oct 23 05:55:32 JesusFreke did you see http://www.livescience.com/40511-most-neurotic-creative-states-revealed-in-us-personality-map.html Oct 23 05:55:47 east cost = temperamental :) Oct 23 05:55:54 heh Oct 23 05:56:00 aka crazy :) Oct 23 05:56:04 well, I did like texas though, which seems to be in the same category Oct 23 05:56:44 wasn't a huge fan of oklahoma, where I mostly grew up. Oct 23 05:56:56 all places are shitty Oct 23 05:56:57 moving on Oct 23 05:56:57 :D Oct 23 05:57:09 SF area is pretty good though :) Oct 23 05:57:17 i hear san diego has amazing weather Oct 23 05:57:19 many places outside the US are not shitty :) Oct 23 05:57:20 all the time Oct 23 05:57:23 but AZ is in 'relaxed and creative' - not sure creative about what, maybe shooting things in the desert Oct 23 05:57:26 i want to move to Seattle, san fran, or boston! Oct 23 05:57:52 creative about how outrageous the laws are there Oct 23 05:59:49 cant believe im listening to hoobastank right now Oct 23 06:01:52 but they're great... Oct 23 06:02:17 like frosties? Oct 23 06:02:56 anyone know how to upload a file to my AVD? thanks Oct 23 06:03:29 jak2000: adb Oct 23 06:05:25 it is : Android Virtual Develpment? Oct 23 06:07:48 Leeds ok i try with adb :) Oct 23 06:10:51 cool, never heard of FlexiCore before. guess google purchased them. Oct 23 06:11:17 pfn they are Oct 23 06:11:26 " some of FlexyCore's expertise may already have been applied to the later builds of Android" :O Oct 23 06:11:52 jak2000 adb is Android Debug Bridge Oct 23 06:12:25 nubish thx Oct 23 06:12:57 i dont think ill be able to launch my app next month Oct 23 06:13:00 so much to learn Oct 23 06:13:32 nubish get it in before the holidays :) (if its paid, or iap) Oct 23 06:13:46 iap Oct 23 06:13:47 ? Oct 23 06:13:53 in app punch Oct 23 06:13:58 *pow* Oct 23 06:14:01 lol Oct 23 06:14:18 yeah i want to get it in before thanksgiving Oct 23 06:17:06 have you guys seen the new Godzilla trailer? Oct 23 06:17:11 super scary Oct 23 06:20:12 thx gson super informative "Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 14194" Oct 23 06:21:29 lol column 14194 Oct 23 06:21:38 well actually i fixed it but Oct 23 06:21:49 that is wack Oct 23 06:22:49 making pojos to map wordpress wasnt fun guys. Oct 23 06:24:33 arghhh continue googling how to transfer my sql database to my avd :( Oct 23 06:25:10 jak2000 https://developer.android.com/tools/help/adb.html Oct 23 06:25:11 what do you mean Oct 23 06:25:15 adb push ? Oct 23 06:25:17 i told you to use adb way earlier Oct 23 06:25:22 read that article that i linked Oct 23 06:25:38 ok Oct 23 06:25:40 jak2000> pfn, you know how to copy files (sql lite files) to my ADV? Oct 23 06:25:40 * using adb Oct 23 06:26:08 silly goose Oct 23 06:26:32 I think hes looking for the specific answer through google search Oct 23 06:27:50 yes i try: "transfer file to my avd" other: "transfer file with adb" Oct 23 06:27:58 desmin88 thanks Oct 23 06:28:10 your google-fu must suck ass if you can't figure out how to transfer a file with adb Oct 23 06:28:17 lol Oct 23 06:28:34 thats like android 101 Oct 23 06:28:43 found it :P http://log.amitshah.net/2012/05/using-adb-to-copy-files-to-from-your-android-device/ Oct 23 06:28:45 first entry Oct 23 06:29:32 hehe Oct 23 06:30:06 Hi! I'm using the Google maps and want to replace the standard marker with an arrow pointing in a certain direction (that in itself isn't a problem). Problem is that the arrow 's bottom center is anchored to the marker's position which isn't what I want. Instead, I would want the center of the arrow to be anchored to the marker's location. Any idea on how to achieve this? Thanks. Oct 23 06:35:35 If I select a view, for Drawable State purposes... will the view childs be selected too? Oct 23 06:36:03 by view do you mean layout? Oct 23 06:36:14 like Oct 23 06:36:30 and childs being , ? Oct 23 06:37:16 nubish: yes Oct 23 06:47:57 anyone awake? Oct 23 06:48:07 gavilan2 you there? Oct 23 06:48:16 sorry my internet crapped out Oct 23 06:51:56 I have a broadcast receiver which listens for an SMS message, do I need to hold the wakelock? will the phone wake? Oct 23 06:52:06 I am not sure how to handle that Oct 23 06:54:05 nubish: im here Oct 23 06:54:16 so can I put state drawables in the children? Oct 23 06:54:22 or only in the view that I actually select? Oct 23 06:54:43 gavilan2 use LayoutAnimation Oct 23 06:55:20 Layout Animations allow you to define an animation for a viewgroup, including all of its child views Oct 23 06:55:36 and you can time each view separately Oct 23 06:55:42 to display that animation Oct 23 06:56:00 nubish: I don't understand how that helps me Oct 23 06:58:04 gavilan2 what do you mean? Oct 23 07:01:46 If i set android:targetSdkVersion in manifest above 13 my icon animation stops working, anyone know why? Oct 23 07:01:49 anyone know where store the files of sqllite, created on the AVD? Oct 23 07:01:55 wich is the path? Oct 23 07:03:47 Onack most likely because the component you used to implement the animation with is deprecated in API level 15+ Oct 23 07:05:22 i have a in xml under anim folder in res, calling it by anim = AnimationUtils.loadAnimation(this, R.anim.rotate_refresh), then anim.start() Oct 23 07:07:08 I need to research some i see, changes to package android.anim in API 14 Oct 23 07:16:33 Only thing i can find is that target api 14 enables hardware acceleration on animations Oct 23 07:16:52 My nexus 4 should support that >< Oct 23 07:18:00 Question: when I have an SMS receive broadcast intent, would the device wake? In other words do I need to hold the wake lock while processing? Oct 23 07:20:54 Target at 13, but android:hardwareAccelerated="true" still shows animation Oct 23 07:22:45 Leeds are you there? Oct 23 07:22:53 desmin88 are you there or sleeping? Oct 23 07:22:55 :) Oct 23 07:25:40 im here Oct 23 07:25:50 do you still not know how to push a file with adb Oct 23 07:31:49 desmin88 no! Oct 23 07:31:52 i install apk files Oct 23 07:32:04 and see in my avd, i push files to my avd.. Oct 23 07:32:33 installed a apk file named filemanager.apk for see the text file and not see why? Oct 23 07:32:49 if i acces via adb shell i can see the file, undestand me? Oct 23 07:32:58 but with filemanager program not see. Oct 23 07:33:37 did you refresh the filemaager program? Oct 23 07:33:44 yes Oct 23 07:33:49 i close avd emulator Oct 23 07:33:53 and reopen it.. Oct 23 07:34:45 i have no idea Oct 23 07:34:46 sorry Oct 23 07:35:23 i type this: adb shell "cd /data/local && mkdir temp" Oct 23 07:35:55 i try see the folder temp with filemanager program, go to /data folder and no more folders Oct 23 07:36:05 need do chmod 777 or something? Oct 23 07:36:42 not show more folders... Oct 23 07:36:45 sorry dont know Oct 23 07:42:20 desmin88: http://www.rafb.me/results/J38hdt17.html any advice? Oct 23 07:42:57 jak2000: I do not know the answer. Oct 23 07:43:22 ok thanks :( Oct 23 07:43:43 desmin88 you know a good forum about android-dev? Oct 23 07:44:18 So, if I set a LinearLayout to selected, will their childs have the selected state when drawing drawables? Oct 23 07:44:48 couldnt you do a simple test to find out? Oct 23 07:49:43 Are there any examples of asynctasks where its not an inner class? Oct 23 07:57:39 hey desmin88 Oct 23 07:57:40 i really think the android api sucks at times Oct 23 07:57:49 zquad: hi Oct 23 07:57:55 desmin88 good luck Oct 23 07:58:00 i go to sleep Oct 23 07:59:12 desmin88: whats your problem? Oct 23 07:59:41 otiose: trying to have an infinitely scrolling listview which updates from an outside api source Oct 23 07:59:48 seems like a pain in the ass to do so Oct 23 08:00:05 haha ive done that Oct 23 08:00:06 it sucks Oct 23 08:00:16 if you go to fast, you have to sit there and wait for it to load Oct 23 08:00:39 and somehow deal with all the information that you scrolled past and memory -- do you get rid of it and then have to load it all -again- when scrolling up? Oct 23 08:00:52 really though Oct 23 08:00:54 do you cache it all? Oct 23 08:00:58 android api sucks Oct 23 08:01:12 for infinite scrolling? sucks on ios too Oct 23 08:02:19 question about broadcast receivers in general? Does the receiver have to hold the wake lock while executing? eg. I have an SMS listener and want to know if I need to hold the lock or can the phone go back to sleep Oct 23 08:02:35 hello Oct 23 08:02:39 hey all Oct 23 08:03:26 how can I access a variable saved using sharedpreferences from a pure java class? Oct 23 08:03:39 I mean a class that does not implement activity Oct 23 08:03:56 pass it a context Oct 23 08:04:55 it shouldnt be that hard imo to just load json in pojos and add it to a listview Oct 23 08:05:48 that parts not much of a problem i dont think Oct 23 08:06:07 otiose: ok will try Oct 23 08:06:10 does anyone know.. will this http://mem.pe/#mv3lil/1 code result in multiple Images referring to the same image? Oct 23 08:06:45 otiose: ok thank you Oct 23 08:06:49 ie, im getting IDs 562, 561, 560.... but when I load them into my grid view, I get 2 of every image Oct 23 08:07:05 so I'm wondering if this is known to return duplicates for.... some reason or another Oct 23 08:07:14 sorry Oct 23 08:07:16 im back Oct 23 08:07:21 any responses? Oct 23 08:15:23 Hi, I'm trying to record stereo audio using an android device. AFAIK the only way to do this is using an external USB device. Depending on the devices (e.g. Xoom & scarlett i2i), this works using USB recorder pro. How can I implement this myself, can someone point me in teh right direction? Oct 23 08:28:24 hi all, would you please help me with one thing that surprice me a lot? I'm having NullPointerException in my DridView's Adapter (please check code here http://pastebin.com/ssiAvLVp). But it's thrown only if I set id to item's ImageView. The ImageView appears null during onMeasure calls. And if I add conditions like if (imageView != null) {...} Adapter is not displaying items correctly. Thank you! Oct 23 08:28:40 *GridView's Adapter Oct 23 08:38:32 Anyi idea on how to get the currently displayed area a map (Google) in meters? Oct 23 08:38:57 or even get it at all? Oct 23 08:39:10 I don't see anything in CameraPosition that will help me Oct 23 08:42:57 nvm it's getProjection().getVisibleRegion().latLngBounds Oct 23 09:02:04 hey guys, does anyone know how to check if database object has writeAheadLogging enabled ? Oct 23 09:02:42 not by using enableWAL that returns true or false Oct 23 09:08:27 i want to know if i need to call it or not Oct 23 09:27:49 are there any issues with using the same sqlite database in an android app and an ios app? Oct 23 09:29:17 basically, can the same file be used on both platforms? Oct 23 09:32:00 When returning a view in onCreateView in fragments, how does one set the sizing (match_parent, wrap, etc) through the return? Oct 23 09:32:07 nickfox: you can use them, but CoreData and android providers use different schemas. For application data if you explicitely manage the SQL yourself, I don't know anything preventing it. Oct 23 09:32:29 (as long as the versions of sqlite installed on both platforms are compatible). Oct 23 09:32:43 ogamita: thanks, i'm not using core data, just straight sql Oct 23 09:32:52 then it should be ok. Oct 23 09:32:55 cool, thanks Oct 23 09:34:23 I'm trying to record stereo audio using an android device. AFAIK the only way to do this is using an external USB device. Depending on the devices (e.g. Xoom & scarlett i2i), this works using USB recorder pro. How can I implement access to an USB audio device myself, can someone point me in the right direction? Oct 23 09:36:53 maybe it wuold be possible to do it via standard-bluetooth too like "playing an a2dp" source and record it at the same time Oct 23 09:37:45 ktwo: might work, but we currently aim to use usb-hardware. Oct 23 09:39:04 yea its just more complex then xD and not limits the device choice because it needs to have usb host controller Oct 23 09:39:18 as for BT you'd just need an a2dp capable transmitter Oct 23 09:40:31 ktwo: so android is capable of receiving two input channels using BT? Oct 23 09:49:26 freiform: IIRC, there are several audio sources managed by android, and there are physically at least two microphones to perform noise cancellation. However, I don't know if it would be possible to get input separately from the two microphones at the same time. Oct 23 09:49:27 hi all, would you please help me with one thing that surprice me a lot? I'm having NullPointerException in my GridView's Adapter (please check code here http://pastebin.com/ssiAvLVp). But it's thrown only if I set id to item's ImageView. The ImageView appears null during onMeasure calls. And if I add conditions like if (imageView != null) {...} Adapter is not displaying items correctly. Thank you! Oct 23 09:50:23 freiform, yea a2dp is stereo Oct 23 09:51:24 ogamita: we cannot use the internal microphones, i.e. we have our own Oct 23 09:51:53 ktwo: i have to look into this. last I heard BT input only supported one channel. Oct 23 09:53:36 yea i cant promise it, but it should , since it works in one direction (like transmistting stereo signal to a car stereo) - so it must work in the other direction too - in theory :) Oct 23 09:57:13 i get verifyerror Oct 23 09:57:16 any idea Oct 23 09:57:17 ? Oct 23 09:58:32 ok fixed Oct 23 10:08:46 anyone here? Oct 23 10:09:40 yes and no Oct 23 10:09:48 ppl are here just not here Oct 23 10:13:18 Baluse, I hang here, but do not always read what's written in it.. I myself write and I also find it annoying when nobody reply, but that can't be helped.. nobody, ever, will always stay here looking for questions Oct 23 10:16:20 Indeed, we're working, so we scan the irc windows only while compiling or when switching to another task. If there are no interesting questions asked remaining to be answered, we just switch to your other tasks. "Anyone here?" is not an interesting question, and it's already answered. See you next break. Oct 23 10:18:42 i find it interesting that, despite asking 'anyone here?' as if waiting for a response, he's gone when people respond to him Oct 23 10:21:10 otiose, sometimes it happens to me too, you can't know what's going on on the other side. lemonxah for example didn't used the name. Thus he may just have not seen the notification. I used it but 4 minutes was passed.. maybe he got called for a meeting or something like that. Wouldn't judge that as a bad point Oct 23 10:27:18 indeed .. meetings all day long seomtimes Oct 23 10:27:24 adhock meetings :) Oct 23 10:37:13 Anyone here with apps in the Play Store who has been updated to the new Google Wallet merchant center yet? Oct 23 10:42:15 i cant have paid apps in the play store :/ Oct 23 10:42:21 cause i live in south africa Oct 23 10:42:23 which sucks Oct 23 10:44:03 tliebeck: Yes Oct 23 10:44:14 tliebeck: Got migrated to it a few months ago Oct 23 10:45:37 Was just migrated a few days ago, utterly confused :) Oct 23 10:45:56 Have you ever looked at the "Transactions" section under "Payouts" Oct 23 10:45:59 ? Oct 23 10:46:03 Yep Oct 23 10:46:19 I assume Credits are gross sales for the day...debits are Google's cut? Oct 23 10:46:53 Yep spot on Oct 23 10:47:23 And normally on the 16th you'll see the bank payment from google as a debit Oct 23 10:48:18 Hello =) Oct 23 10:48:35 Anyone here developing for Android on a mac? I'm looking for where to start. Oct 23 10:48:48 JuiceSSH: are your debit vs. credit numbers accurate, i.e. 30%? Oct 23 10:49:05 I've been reading the documentation, but there's like 3 external links on the first paragraph XD Oct 23 10:51:32 tliebeck: let me check Oct 23 10:53:15 JuiceSSH: yeah, mine are way off Oct 23 10:53:27 just talked to Google Wallet on the phone..they say they're "estimates" Oct 23 10:53:39 Not sure why they don't just estimate Revenue * 0.3? Oct 23 10:54:31 gerardodiego: unless you know otherwise, you start with the adt bundle Oct 23 10:54:51 lemonxah: that sucks, hard to believe they aren't supporting South Africa yet Oct 23 10:55:03 gerardodiego: http://developer.android.com/sdk/index.html Oct 23 10:55:22 tliebeck: Yeah mine are off too Oct 23 10:55:33 Cool, thanks for checking, much appreciated. Oct 23 10:55:46 Have been on Checkout since '09 and am quite frustrated with the new thing. Oct 23 10:55:53 I saw that, is a plugin for Eclipse, but what I had in mind is to use BBEdit, so I'm now installing/downloading the android SDK Oct 23 10:56:04 I intend to use PhoneGap Oct 23 10:56:09 I quite like it, but was only on the old checkout for ~6 months Oct 23 10:56:37 I like the way that you can't see the customers address/email anymore - but can still search for it if you know it Oct 23 10:57:06 gerardodiego: if you dont like eclipse, use this. http://developer.android.com/sdk/installing/studio.html Oct 23 10:57:17 its quite nice Oct 23 10:57:25 I just get frustrated with the amount of info that seems to be missing. Don't care about email address, but I liked to at least see order times in the main list. Oct 23 10:57:35 And my order count has been deleted. Oct 23 10:57:49 And I can't get rid of defunct orders to do quick calculations on daily sales. Oct 23 10:57:53 Have you seen AppMonger? https://play.google.com/store/apps/details?id=com.rectangularsoftware.appmonger&hl=en Oct 23 10:58:24 I have a couple of widgets on my phone, orders today, orders yesterday, orders this month, orders last month, orders total Oct 23 10:58:44 with order count & totals after google fee's Oct 23 10:58:47 Does it show orders live, or are they delayed by a day? Oct 23 10:58:54 Live orders Oct 23 10:58:56 nickfox I like Eclipse, I used it a lot while developing Java, but I bought BBEdit (I really liked TextWrangler), so I was thinking about using the sdk from there Oct 23 10:59:12 gerardodiego: generally, this channel isn't for phonegap and similar - it's for native apps using the official SDK Oct 23 10:59:13 good luck. :) Oct 23 10:59:18 is there a way to use a nine patch drawable from resources in the ondraw of a custom view so that it stretches properly? Oct 23 10:59:42 Do I have to give it my main password, or is it authenticated through Google auth? Oct 23 10:59:52 Google auth :) Oct 23 11:00:01 sweet, thanks, really appreciate it. Oct 23 11:00:29 I've met the dev a couple of times at android conferences in London, he's pretty good and responsive to issues/questions Oct 23 11:04:47 Just bought it, trying it out. Oct 23 11:04:59 Looks like a winner, at least in the screenshots. Oct 23 11:05:09 Leeds OK, maybe I should look for a PhoneGap channel =) Oct 23 11:05:16 thanks anyway =) Bye =) Oct 23 11:09:19 shoudl i use asynctask or threads? Oct 23 11:10:55 Baluse: asynctask is easier to use, especially if you haev to change things in your main thread as you don't have to define and juggle handlers. AFAIk you can only have one asynctask, though. Oct 23 11:17:49 what do you mean one? Oct 23 11:17:58 running at a time? Oct 23 11:18:08 if you mean this it isnt big deal Oct 23 11:23:37 Baluse, freiform asynctask by default can only be up to 20, application wide, and it's a big deal if you need more because the 21th one will cause issues (I don't remember if an exception will be raised or it will simply not run) Oct 23 11:24:30 Baluse, consider Loaders Oct 23 11:26:03 are they supported in 2.3 ? Oct 23 11:26:36 what you mean 20 application wide ? running at the same time? Oct 23 11:32:34 Baluse, loaders are supported in the android support library, so yes 2.3 Oct 23 11:35:27 good explanation on asynctask limits: http://stackoverflow.com/questions/9654148/android-asynctask-threads-limits Oct 23 11:36:54 hi all, would you please help me with one thing that surprice me a lot? I'm having NullPointerException in my GridView's Adapter (please check code here http://pastebin.com/ssiAvLVp). But it's thrown only if I set id to item's ImageView. The ImageView appears null during onMeasure calls. And if I add conditions like if (imageView != null) {...} Adapter is not displaying items correctly. Thank you! Oct 23 11:40:38 Anyone know how to get a bitmap from a ninepatch drawable in resources for use in a custom view's onDraw call (by get I mean scaled to some target size using the nine patch markers)? Oct 23 11:42:33 defuera, you're using the same id for both the parent view and the imageview, any reason why? Have you tried not doing that? Oct 23 11:54:02 ok thanks :) Oct 23 11:57:42 Kegsay i read explanation but still dont get it. Who needs to run 6 asynctask concurrently ? Oct 23 11:58:03 and since it says that it queques them why they never execute? Oct 23 11:59:06 they will run one after another Oct 23 11:59:18 Baluse, let's make it quick... WHAT you want to do in the Async task? Oct 23 11:59:54 network operations Oct 23 12:00:28 more specific than that Oct 23 12:00:41 images? lots of images? a webpage? Oct 23 12:01:26 rest Oct 23 12:01:31 simple pojo objets Oct 23 12:02:09 Baluse, is that read or write operation? Oct 23 12:02:28 Baluse, should this operation cease when the user leaves your activity? Oct 23 12:02:38 and does the result of the operation need to update your UI Oct 23 12:03:02 Baluse, yes Kegsay's are also good questions Oct 23 12:03:51 hey guys Oct 23 12:03:58 they are both read and write. If they leave they should stop. The result yes most of the times needs to update UI. Oct 23 12:04:22 I have writen the service calls with retrofit and custom code but not sure how to use them Oct 23 12:04:28 correctly Oct 23 12:04:37 in past i had used asynctask and had some bugs Oct 23 12:05:03 these reads and writes.. they are triggered by the user? Due to some user interaction? Oct 23 12:05:50 or are they just a "user says do work, then behind the scenes loads of r/ws happen and then you get some nice single result back"? Oct 23 12:05:53 yes 99% of the time Oct 23 12:06:13 do you need to store state around in relation to these requests then? Oct 23 12:06:42 i mean that each action should feel like synchronised most of the time except one that updates some status and can run at background Oct 23 12:07:03 they take under 100ms at server most time Oct 23 12:07:21 yes i need to store state in order to cal Oct 23 12:07:32 :/ you said " If they leave they should stop. " but now say "can run at background" Oct 23 12:07:35 i mean sometimes to prepare what to send i might need 3 activities Oct 23 12:08:00 from what you've told me, an IntentService seems like the best fit. Oct 23 12:08:05 Kegsay for one activity only Oct 23 12:08:20 i want timer behavior to update a list Oct 23 12:08:30 but non blocking Oct 23 12:08:51 if these requests are all related (though dispersed among different activities), having a central place where you can manage your state which is separate from the activity lifecycle seems best Oct 23 12:09:45 but having central place isnt consindered singleton ? Oct 23 12:09:50 you can either inform activities via broadcasts (if the results are teeny tiny) or via a Loader if you don't mind having the responses database backed Oct 23 12:09:52 and can be destroyed Oct 23 12:10:07 your activity is more likely to be destroyed than your process :) Oct 23 12:10:43 if you want to persist state, then you should persist it via sqlite or a file or shared prefs, not via in-memory objects (activity, service, singleton or otherwise) Oct 23 12:10:46 if i leave the app idle after some time it gets destroyed Oct 23 12:10:51 i see Oct 23 12:11:02 but having a class for state isnt consindered singleton? Oct 23 12:11:29 it can be used to store state which is tied to your process yes Oct 23 12:11:41 but they are different Oct 23 12:11:54 because many people advice against it Oct 23 12:12:38 ok i am going to read about intentservice Oct 23 12:12:49 also loader seems better than asynctask Oct 23 12:13:09 sorta. For android, you're kinda stuck using singletons or a non-UI fragment to store state. Oct 23 12:13:24 unless you use persistent storage eg sqlite3 Oct 23 12:14:43 Baluse, there's nothing bad with singleton, and a service can be considered as a singleton handled by Android. Oct 23 12:14:43 hi, all , how can i stop rild service ? Oct 23 12:15:00 Baluse, worth checking out commonsware answer here: http://stackoverflow.com/questions/11577132/non-ui-fragment-vs-singleton Oct 23 12:16:36 i see.. Oct 23 12:16:44 i havent done anything yet on ui though Oct 23 12:17:05 only completed with test service/cache layer Oct 23 12:17:26 http://i.imgur.com/Cnv0a84.png i have done this before but now sure now Oct 23 12:17:39 Navigation gets confusing Oct 23 12:17:58 Baluse, yes that would be a good idea, having a non-UI fragment with setRetainInstanceState work as a layer between your UI and the services performing actions.. but only if everything happen within the same activity Oct 23 12:18:04 fragment can't cross activities boundaries Oct 23 12:19:53 so i want login activity that after success login to open list items activity. There you could choose an item and go to deatails for item. Then if user want to add a new item i want these three activities (or they could be fragments?) Oct 23 12:20:35 but they should share data somehow . Also i want if user edits an item to go to customize immediatetly and skip the other Oct 23 12:20:52 What I had done before was to have a static variable heh Oct 23 12:21:02 at details activity Oct 23 12:21:15 worked but crashed in case of being killed Oct 23 12:21:30 any reccomendations what to look ? Oct 23 12:24:13 I am new to android and want to create a navigation drawer style app, how can i start Oct 23 12:27:01 http://developer.android.com/training/implementing-navigation/nav-drawer.html Oct 23 12:27:07 rabbi1 http://developer.android.com/training/implementing-navigation/nav-drawer.html Oct 23 12:28:18 tonyMontana9099: i am on the same page, thank you Oct 23 12:28:24 rabbi1 wlc Oct 23 12:28:46 if i create a sample app from the wizard and then paste the content of sample app from that page, gives me errors Oct 23 12:29:30 rabbi1 yes it might. you need to mingle. Oct 23 12:29:32 you cant just paste :) Oct 23 12:29:41 it isnt python Oct 23 12:29:59 its java-hard you need to try Oct 23 12:30:56 can u suggest me some blog which helps me learn step by step Oct 23 12:31:14 Baluse any idea if notifyDataSetChanged(); works or no inside filter of an adapter that has rows which have checkboxes ? Oct 23 12:43:18 not sure Oct 23 13:11:13 issit true that Nexus 5 is going to be unveiled on this Friday? Oct 23 13:11:58 hello all! i have a very noob question but i know you guys have the answer... whenever i look something up on the developers.android.com site, it confuses the hell out of me. for example, i looked up constructor and it just presents a huge list of functions. is that supposed to be useful? Oct 23 13:15:15 jaxon11: when I search for constructor there, it gives a list of search results. Oct 23 13:15:51 The first one is a class named java.lang.reflect.Constructor, the second one belongs to a release note, it's a list of changes from one API level to the other. Oct 23 13:15:54 What did you want? Oct 23 13:19:17 any patterns for a "quickly jump to this section" for list view Oct 23 13:19:29 something like path but with tappable quick scroll to thing. Oct 23 13:23:00 great :: got the navigation working …… Oct 23 13:24:26 eclipse? Oct 23 13:25:59 Is there any good icons pack for actionbar or things like that? For those who sucks at design like me :P Oct 23 13:26:15 something like path but with tappable quick scroll to thing. --- in android speak this is a Fast Scroller - see http://developer.android.com/reference/android/widget/AbsListView.html#setFastScrollEnabled(boolean) Oct 23 13:26:37 Kegsay: FastScroller is not extensible in any way Oct 23 13:26:55 mDrawOverlay = (text.length() != 1 || text.charAt(0) != ' ') && sectionIndex < sections.length; Oct 23 13:27:07 that's how it determines whether to draw the little thumb thing Oct 23 13:27:09 it's stupid Oct 23 13:27:31 Baluse: u asked me ? Oct 23 13:32:53 funkbox: in Address books, you see sometimes a columns with the alphabet on the side, so when you touch a letter, it jumps directly to that section in the list. Oct 23 13:33:28 hm.. i'll play with something like that Oct 23 13:42:04 friends, i got navigation drawer up and running, how can i add more items to each of the navigation items ? Oct 23 13:44:39 wow. adt is crashing on mac osx maverick. thanks apple, for the free upgrade.... Oct 23 13:45:42 and, its repeatable. Oct 23 13:46:25 its my fault. should have waited a few weeks before installing beta software from apple. i forget that apple uses its customers as testers. Oct 23 13:47:12 nickfox: patients Oct 23 13:47:24 patients? Oct 23 13:47:59 do you mean have patience? Oct 23 13:48:00 sorry patience Oct 23 13:48:08 patience with what? Oct 23 13:48:27 upgrades .. Oct 23 13:48:52 dude, i cant open an xml layout file in eclipse. it crashes... Oct 23 13:48:54 o.o Oct 23 13:49:07 Exception Type: EXC_BAD_ACCESS (SIGABRT) Oct 23 13:49:33 SIGAWUT Oct 23 13:49:37 nickfox: try reinstalling eclipse …. Oct 23 13:57:06 Baluse, do it properly using a sync adapter, an account for your app and the login and database to keep the data Oct 23 13:57:26 Baluse, that's more work, but that's how should be done Oct 23 14:11:45 holy fuck Oct 23 14:12:07 i made a phone call today and i am sure that i made it yesterday Oct 23 14:12:18 seems that i am stressed Oct 23 14:12:26 i cant recall Oct 23 14:12:57 sleep Oct 23 14:13:18 i cant Oct 23 14:13:35 i am under threat to complete the application Oct 23 14:14:08 partner is abuser dominant Oct 23 14:22:22 System.out.printf("Application complete.\n"); Oct 23 14:22:33 asking about alpha testing Oct 23 14:22:44 i have created a google+ community Oct 23 14:22:47 added it Oct 23 14:23:11 in the manage alpha testers list Oct 23 14:23:14 i see Oct 23 14:23:14 You can add Google Groups or Google+ Communities to be eligible to test your app. Once you have added a group, you need to send your testers the opt-in link below. Once they opt-in they will receive this version through Google Play. Oct 23 14:23:19 i see, no "opt-in" link below Oct 23 14:23:54 how can i manage the activity stack? Oct 23 14:24:00 not change it Oct 23 14:24:07 i cant find the docs Oct 23 14:24:39 you don't Oct 23 14:26:30 currently its a 'draft' in alpha Oct 23 14:26:37 is that a problem? Oct 23 14:31:06 you have to publish Oct 23 14:32:05 Please help, I have added a drawer navigation and now on click of each drawer element i need to display a list of content.. how can i do it? Oct 23 14:32:48 rabbi1: put a listview in your main content, when you click on elements update the data backing the adapter Oct 23 14:34:06 nseidm1: can u suggest me any blog having an app example ? apart from developer link Oct 23 14:34:24 i did put the linear layout, guess will remove it. Oct 23 14:35:12 I have no recommendations where to look. You will be putting a ListView as the main content. Your goal is to generate an Adapter to vary the content of the ListView depending on the "element" selection. Oct 23 14:36:08 i have also added few items in strings.xml Oct 23 14:36:33 and created a fragment… am i wrong on these ? Oct 23 14:38:32 nseidm1: sorry, listview is already created …. Oct 23 14:38:40 as the drawer Oct 23 14:38:59 Sounds like your Drawer will contain a ListView as well as your main content. Oct 23 14:39:37 looking for book recommendations for an android beginner but experienced dev.. googling found this http://www.amazon.com/Professional-Android-4-Application-Development/dp/1118102274/ref=pd_sim_b_1 , any opinions? Oct 23 14:40:46 ah, i see, so i gotta meet some guidelines Oct 23 14:40:47 got it Oct 23 14:44:17 hi all, is there a reason why my app launches automaticly when i unlock the screen of the emulator Oct 23 14:44:22 nseidm1: exactly Oct 23 14:44:35 i did not tell it to launch, the app just auto launches Oct 23 14:44:50 is there a way to stop this behaviar Oct 23 14:44:51 whoever: do you have a start on boot broadcast receiver? Oct 23 14:45:13 nseidm1: whhere would i find that Oct 23 14:45:28 in you're manifest Oct 23 14:47:13 nseidm1: i don't see anything that says andoid:start Oct 23 14:48:12 what is task in android ? Oct 23 14:48:24 does it mean app? Oct 23 14:48:27 nseidm1: i would say no Oct 23 14:49:10 anyone in here used http://nativecss.com/ ? curious about how it performs, or if its even really necessary Oct 23 14:51:41 hmm the invite link 404's to my alpha testing Oct 23 14:51:42 thats.. annoying Oct 23 14:55:08 ok, how about this for a question Oct 23 14:55:15 how long does it take for an app to be published Oct 23 14:55:22 lol Oct 23 14:55:22 from publish to available Oct 23 14:56:07 few hours Oct 23 14:56:37 ok Oct 23 14:56:42 so the url shouldnt work immediately Oct 23 14:56:42 got it Oct 23 14:57:20 heh Oct 23 14:57:37 at apple store it takes week.s :P Oct 23 14:57:54 you must provide them all of your source code etc Oct 23 15:02:07 fragments seem tons better Oct 23 15:02:53 does andoid.indent.category.Launcher automaticl launch application? Oct 23 15:03:22 you're likely selecting "run" in eclipse Oct 23 15:03:26 that will auto launch the app Oct 23 15:05:45 Apple turned pages into an IDE Oct 23 15:05:56 Hey! Oct 23 15:06:17 Anyone know if I can utilize a phones GPS system with HTML5's geolocation? Oct 23 15:09:23 gulli: sure. notice how when you go to google.com the browser asks you to let it use your location. Oct 23 15:09:42 hmm ok :) Oct 23 15:10:21 I think Apple is trying to take down M$oft Oct 23 15:10:30 Everything is free with a mac Oct 23 15:10:49 So if I am developing an application for a smartphone that will use the users location, I can actually stop worrying about needing to program a native program, and instead make a web app that iOS users can also use :) Oct 23 15:12:05 gulli: I do not condone iOS development Oct 23 15:12:07 gulli: yes, to some extent. Web apps are still more hassle and less integrated than a native app, so while you can, it will always feel a bit like a second class citizen. if it's that or nothing, do a web app Oct 23 15:13:34 DarkSlay3r, hehe, me too haha Oct 23 15:13:44 dragorn, true, I'm still deciding Oct 23 15:13:59 gulli: there are advantages Oct 23 15:14:16 but second class citizen = multi-platform Oct 23 15:14:29 windows phone, ubuntu phone, firefox OS Oct 23 15:14:38 android and the rest... Oct 23 15:15:08 The good thing about doing a webapp is that I don't have to think of many languages Oct 23 15:15:16 but it won't feel truly responsive or native Oct 23 15:15:19 on any platform Oct 23 15:15:44 I like Java, I also like javascript, so I don't care that much which one Oct 23 15:16:04 then you are one of us Oct 23 15:16:08 stick to android Oct 23 15:16:13 abandon iOS Oct 23 15:20:42 hmm seems mavericks broke genymotion and HAX emu.. anyone else with this problem? Oct 23 15:28:16 reinstall virtualbox Oct 23 15:34:47 weird prob with emulator, don't know why , but i have a directory called android/ and in there i have all my projects , when i was running the emulator it was picking up all projects in the andoid/ is there a reason why this would happen? shouldn't the emulator just get the current project Oct 23 15:36:18 i have 4 activities A B C D . I want A to call B. Then B-C-D the problem is that i want data to accumalate . When at D if i press a button it should save it somehow so if i go back at A to have it Oct 23 15:37:07 what is with AS it keep locking up and not responding after a few hours Oct 23 15:37:08 well, reinstalled virtualbox, now it's even worse... upside down screens and clicks not going to the correct place Oct 23 15:39:55 Baluse: they are objects, not data. Objects live while there are references to them. Oct 23 15:40:27 So you can keep a root reference to the objects you want to keep around eg. in the MainActivity or in your Application object. Oct 23 15:40:32 And the subactivities, A, B, C and D can modify those objects. Oct 23 15:40:54 (Unless you want persistence across runs, in which case you need to save the objects in a database). Oct 23 15:42:39 they should be for temp use Oct 23 15:42:55 so they are static like ? Oct 23 15:43:23 i had done this before but if activity is killed then everything is lost Oct 23 15:43:44 not a problem but crash Oct 23 15:43:49 because of null Oct 23 15:44:58 Baluse: right, you don't want references to other Activities. Even using Application can be tenuous because it can be destroyed or re-created Oct 23 15:45:51 Baluse: I would write to disk or keep the state in the intents for each activity in the workflow Oct 23 15:46:43 How do I expand the clipping bounds of a custom painted view? Oct 23 15:53:25 jjnye how could i keep the state in intents? Oct 23 15:53:25 Hey guys, I want to realize onLongClickListener on view with minor delay that the system one, so I'm handling onTouchListener and counting the time after MotionEvent.ACTION_DOWN, but I still need to be able to implement onClickListener, so I check if ACTION_UP is happens before the DELAY_TIME and performs click stuff there. If I'm going the right way or there's a best way? Oct 23 15:53:57 i mean if user goes back they should be retriened Oct 23 15:54:01 retrieved Oct 23 15:54:11 but back is no intent Oct 23 15:54:44 yo Oct 23 15:54:46 Hello fellow devs. Oct 23 15:55:37 I have a really noobish question regarding Android Studio. Anyone available to help? Oct 23 15:55:42 i've implemented a GridView with images using an lrucache, however, the images are loaded in a seperate thread. The problem is when i scroll fast, you see the images changing (lrucache -> thread loads etc) Oct 23 15:56:31 what would be the best to avoid that stale threads still update the gridview Oct 23 15:57:04 Baluse, haven't you tried Broadcast receivers? check out here http://developer.android.com/guide/components/fundamentals.html Oct 23 15:57:19 NewToBikes: generally you just ask your questions and if someone is available to help they will answer Oct 23 15:57:36 Thanks seand Oct 23 15:58:33 I'm trying to import a view library (cardslib) into Android Studio but I simply don't understand. It says I need to add it as a dependency on gradle.build, which I did. Is that all? Don't I need to add the library somewhere or anything? Oct 23 15:58:53 NewToBikes, AndroidStudio is still a beta, not recomment to use if u are a begginer, eclipse is the best Oct 23 16:00:02 defuera: I'm aware, but I'd still like an answer. Oct 23 16:00:26 NewToBikes, just refresh the gradle view and the library will be imported into android studio Oct 23 16:00:37 assuming 'cardslib' is an aar library, or just a plain jar Oct 23 16:05:34 how did you guys learn android ? Oct 23 16:05:48 d.android.com Oct 23 16:05:56 ^ Oct 23 16:08:34 pfn: isn't there any with an app example ? i am new and getting lost Oct 23 16:09:01 rabbi1, learn programming fundamentals well first Oct 23 16:09:11 Then learn kung fu. Oct 23 16:09:30 Just never, for the love of god, call yourself: a rockstar, a ninja, a wizard, etc. Oct 23 16:09:39 Nilium: wish i was an shaolin actor ;) Oct 23 16:10:04 I don't think there's anything against calling yourself that though Oct 23 16:10:27 Now back to e-stalking to see who the hell this recruiter that contacted me is Oct 23 16:11:26 rabbi1: the official docs have lots of code snippets Oct 23 16:11:39 recruiters all suck Oct 23 16:11:45 where's the best place to get started Oct 23 16:11:49 hate dealing with most of them Oct 23 16:11:54 d.android.com Oct 23 16:12:21 The ones I particularly hate are the ones who ask for references so they can contact said references and recruit them too (or sell recruiting services to them) Oct 23 16:12:25 Which means a large chunk of them Oct 23 16:13:20 android-studio has locked up and it is not listed as a zombie, and yet will not respond, can someone assist Oct 23 16:13:29 Kill it. Oct 23 16:13:36 in my case it was easy to say no to that because all my developer friends already had jobs... that were paying more than they were offering Oct 23 16:14:02 Nilium: android-studio does not seem to have a pid Oct 23 16:14:14 of course it has a pid Oct 23 16:14:45 What he said. Oct 23 16:16:07 pfn: yes it should but pidof android-studio does not return anything Oct 23 16:16:31 android-studio is unfinished product yet Oct 23 16:17:37 android-studio isn't the process name... Oct 23 16:17:40 why should it? Oct 23 16:18:52 still can''t figure why pidof didn't work, i had to do it with ps aux | grep android-studio Oct 23 16:19:09 because the process name isn't android-studio Oct 23 16:19:09 Been having a really tough time with this problem. I hope I'm allowed to post SO questions here. It deals with my canvas being clipped. http://stackoverflow.com/questions/19546668/painting-a-custom-view-in-android-it-is-getting-clipped Oct 23 16:19:26 but on the up side I did manage to get a nice zombie killing script Oct 23 16:23:58 pfn: thanks! Oct 23 16:31:56 anyone with n72013 and win8.1? Oct 23 16:37:07 hello, i have the following flow (load fragmentactivity) -> (load a fragment in that activity lets say BFrag ) -> (if the user clicks on a button run some code in the fragment and load a second fragment let's call it CFrag ) ... CFrag now from CFrag I want to (if a button is pushed) 1) destroy the CFrag fragment (thus returning to BFrag and 2) call a specific method in BFrag so that it knows where to continue from. Is that poss Oct 23 16:43:33 look into the back stack of the fragment manager Oct 23 16:43:46 you'll probably want to use popBackupStack etc... Oct 23 16:43:56 and addToBackStack etc... Oct 23 16:53:30 how would you people compare Xperia Z with S4 and Nexus 4 Oct 23 16:53:40 In terms of what? Oct 23 16:54:19 Looney: Had to decide over the S4, Nexus 4, and LG G2 yesterday. Went with the G2 =) Oct 23 16:54:24 overall in general Oct 23 16:54:38 G2 Oct 23 16:54:43 Overall for what? Oct 23 16:54:50 lemme see what it is Oct 23 16:54:59 overall, as in whole phone Oct 23 16:55:06 So not a dev question. Oct 23 16:55:07 camera, battery Oct 23 16:55:23 No opinion then Oct 23 16:55:53 Looney: i own a nexus 4 Oct 23 16:55:58 Though if I were buying one, I'd immediately throw the Xperia to the wolves. Oct 23 16:56:05 it comes with a sense of pride Oct 23 16:56:06 It has a shite history. Oct 23 16:56:09 The brand, that is. Oct 23 16:56:15 you feel like a loyal google soldier Oct 23 16:56:33 hmm, not something I want Oct 23 16:56:35 Nilium: if you like color accuracy i'd go with the sony Oct 23 16:56:45 install nova launcher Oct 23 16:56:49 Like you'll ever notice in normal usage >_> Oct 23 16:56:57 Nilium: color bothers me Oct 23 16:57:02 what is the best scheme for a GridView with images? Oct 23 16:57:06 Doesn't boher me as long as it's not 16-bit Oct 23 16:57:14 it's why i can't look at my nexus without coming to tears Oct 23 16:57:18 well, colours and multimedia stuff is Sony's home-ground Oct 23 16:57:19 the background loader is always fucking up the scroll Oct 23 16:57:35 I still have a grudge to hold against that crappy gallery app that displayed stuff in 16-bit Oct 23 16:58:03 The one by cooliris, I think it was. Oct 23 16:58:18 the S4 feels confused to me Oct 23 16:58:25 i tried using it for a bit Oct 23 16:58:39 and it didn't do anything well besides being plastic Oct 23 16:59:15 I haven't found an Android phone I liked in a long time. Mostly 'cause I'm not in the "giant phones are awesome" camp. Oct 23 16:59:23 Nor am I in the cringe-inducing phablet camp. Oct 23 16:59:52 What kind of horrible childhood trauma must one go through to think phablets are ok? Oct 23 17:00:12 Nilium: Phablets are every girls dream Oct 23 17:04:39 eghdk: g2 does not have a card slot Oct 23 17:04:56 Looney: NOOOOOOOOOOOOOOOOO! Oct 23 17:05:13 :-P Oct 23 17:06:16 I may go with Xperia Z Oct 23 17:06:51 it has a deal and will cost me around ~480ish Oct 23 17:06:55 I hear it works best with clumsy girls and water fountains Oct 23 17:08:36 Looney: It does not have an sd card slot. Small bezel though is awesome. Oct 23 17:10:55 If i had an Xperia Z, i'd punish people for not embracing a waterproof future Oct 23 17:11:26 i'd walk around with an aquarium dumping peoples phones as i walk down the street in the morning Oct 23 17:11:51 when they dunk mine in revenge i'd smile and thank them politely Oct 23 17:15:50 hehehe DarkSlay3r Oct 23 17:20:08 that is so mean :-P Oct 23 17:20:58 DarkSlay3r who cares about waterproof phones. just don't go in the water when you have your phone Oct 23 17:21:12 bam, just saved you X dollars for stupid feature that isn't necessary Oct 23 17:23:20 seand: fyi, I got everything compiled and running thanks to you :) Oct 23 17:23:30 sweet Oct 23 17:23:32 now I just need to figure out that UTF-8 issue Oct 23 17:24:02 it's a unicode character in a string, right? Oct 23 17:26:28 strings are technically composed of only unicode characters. Oct 23 17:26:50 yeah Oct 23 17:27:11 eclipse doesn't like it Oct 23 17:27:58 Does anyone know a way to stop Intellij/AS from scrolling the Project View to the right as you descend into different folders? Oct 23 17:29:08 alankila: we're talking about compile-time Oct 23 17:29:37 eydaimon: i don't know if you can save the file as UTF-8 but if not you can always use the unicode escape: something like \u00XX Oct 23 17:30:00 here's my diff for my change: Oct 23 17:30:02 - price = '£' + productDetailsResponse.price; Oct 23 17:30:04 + price = '' + productDetailsResponse.price; Oct 23 17:30:19 ok, I can have a telephone manager to see if call is over, does there exist something to check skype call status Oct 23 17:30:35 the is me just typing out the character on a mac Oct 23 17:31:27 guys I am implemting a filter on an adapter... i am having issues Oct 23 17:31:39 does anybody have any idea about it, i want to talk in private Oct 23 17:31:58 n00b question here Oct 23 17:32:03 what kind of data structure are you using to back your adapter? Oct 23 17:32:18 anyone know how to retain webview scroll position onRotate? Oct 23 17:32:37 I'm ashamed i've been trying for an hour... Oct 23 17:34:44 jaynewstrom what do you mean by 'back ur adapter' ? Oct 23 17:34:48 DarkSlay3r hi mate Oct 23 17:36:30 tonyMontana9099: is it an array? a list? Oct 23 17:36:37 arrays Oct 23 17:36:38 A bunny? Oct 23 17:36:46 or are you just using an array adapter or a cursor adapter or what? Oct 23 17:37:06 i am extending baseadapter Oct 23 17:37:10 and sending and array Oct 23 17:37:19 Sending it where? Oct 23 17:37:23 I also am sending another array, to use it for filteration Oct 23 17:37:31 via the constructor, while creating the adapter in the activity. Oct 23 17:37:32 it's pretty easy then. Just use one array, and never change it. use the other array as what you're changing and using to get your count and your views from, and when your search changes, update that array with the data from the search Oct 23 17:37:50 jaynewstrom I know. Oct 23 17:38:48 so what are you having trouble with? Oct 23 17:39:14 jaynewstrom the thing is... I have a switch inside my activty, where the user can toggle it on and off, if its on, he can select single user from the list (phonebook) ... it is working fine with the single,,, however, when he toggles the switch, he can select multiple users (this is another adapter with checkboxes)... in this adapter, the search is going insane, and returning various other Oct 23 17:39:15 names and numbers Oct 23 17:40:19 this is beside the point, but modes are generally bad for users, they cause "mode errors" which any UX expert would say shame on you Oct 23 17:40:36 I can't really help you other than writing the code for you, sounds like you have the idae Oct 23 17:40:40 idea* Oct 23 17:41:03 what do you mean by "modes" and "mode erros" Oct 23 17:41:34 google it Oct 23 17:41:56 jaynewstrom just before calling notifyDataSetChanged(); inside the filter... I am running a for loop to check the names inside the arraylist that will be shown in the listview,, and they are correct.. but somehow they dont appear right. :/ Oct 23 17:42:57 I really can't help without seeing the code... it's just a guessing game about implementation details. Oct 23 17:43:12 should I pastebin ? Oct 23 17:43:37 I'd highly appreciated... as I am a beginner in adapters and listviews Oct 23 17:44:05 appreciate it* Oct 23 17:48:25 hmm, if I launch a skype call with intent, can I ensure that I get back to my activity instead of getting stuck in Skype Oct 23 17:48:38 No. Oct 23 17:48:59 If Skype doesn't want to hand things back to your app, it does't have to. Oct 23 17:49:21 this is what textbook case is Oct 23 17:49:35 I need to know if someone knows workaround Oct 23 17:50:28 Well, how would you know when the skype call has ended? Oct 23 17:51:27 jaynewstrom ? Oct 23 17:51:54 I don't have time to debug your code Oct 23 17:52:16 jaynewstrom ok thanks. I appreciate your time. Oct 23 17:53:19 well, some service which monitors which activity is in action maybe Nilium ? ? Oct 23 17:53:36 jaynewstrom when I call notifyDataSetChanged(), which array does it send to show in the listview ? the original one or the temporary ? Oct 23 17:53:48 But how would you know when call has ended from seeing that Skype's active? Oct 23 17:53:53 *when the call Oct 23 17:54:22 what array does your getItem use? Oct 23 17:55:20 i dont know. Oct 23 17:55:35 post your adapter code Oct 23 17:55:47 okay Oct 23 17:55:49 just a moment Oct 23 18:05:06 Hello all. Is everyone asleep in here? Oct 23 18:05:35 jaynewstrom http://pastebin.com/ZeL6s8nx Oct 23 18:07:36 MediaStore.Images.Media.DATA - is this always a file path? or can it be a URI ? Oct 23 18:12:08 you removed the paste Oct 23 18:13:16 jaynewstrom http://pastebin.com/j2zSYGpb Oct 23 18:14:43 you're using arraylistTemp in your getView, use dataContactList Oct 23 18:15:05 jaynewstrom okay Oct 23 18:16:09 jaynewstrom lemme try Oct 23 18:22:05 jaynewstrom works, but whenever I erase a letter, (and I have ticket the name in the checkbox) the checkbox is resetted. Oct 23 18:24:53 that's an easy fix. I'll let you figure that one out ;) Oct 23 18:25:38 jaynewstrom temp array to hold saved values ? Oct 23 18:29:55 jaynewstrom and the answer is yes ! thanks a million. Oct 23 18:30:13 yup Oct 23 18:35:26 How can I make a view have the android:state_first state? for it's drawables? Oct 23 18:36:48 gps calculations, are they done by android or on the gps chip? Oct 23 18:42:24 maybe an odd question, but is there a way to build for a lower sdk (say, 8) but set minSdkVersion higher (14). my issue is with an app built using cocos2d-x. i want to filter out old devices from using the app, but if I set the minSdkVersion higher (only this change) I get a odd crash. i think i'm just misunderstanding what minSdkVersion affects Oct 23 18:43:12 using targetSdkVersion might help me as well? Oct 23 18:58:44 With that target do you build? Oct 23 18:58:50 And I mean build target, not targetSdk Oct 23 19:00:38 hi! On my app db I have two tables (Subject and Note). The note table has a moduleNumber field that references to the Subject table. The problem is that when I use a cursorLoader with "moduleNumber = ?" as selection and a string array as selectionArgs, the cursorLoader loads all the elements in the tables. If rather than moduleNumber (that is the foreign key) I use noteTitle it works as it should. Any suggestion of where the problem could Oct 23 19:00:39 be? Oct 23 19:13:15 hm, AS 0.3.1 out Oct 23 19:13:41 is there any way I can query intelliJ for the settings I have changed from default ? Oct 23 19:37:06 grrr I got discoed Oct 23 19:40:19 Disco disco Oct 23 20:05:15 so quiet :( Oct 23 20:06:11 indeed :-P Oct 23 20:07:13 Looney its weird being on a chan with 438 people but nothing going on :) Oct 23 20:07:27 it sure is weird Oct 23 20:07:30 Uhh Oct 23 20:07:40 and I have a frustrating issue at hand Oct 23 20:07:51 Skype is not working on my phone Oct 23 20:07:58 Does anybody know some good examples or info about endless list scrolling? Oct 23 20:08:12 Looney i had to delete that damn thing; hoped it would work Oct 23 20:08:22 works fine on my iPod touch Oct 23 20:08:25 either MS should make app neat or abandon people with archaic phone Oct 23 20:08:28 android version just sucks Oct 23 20:08:49 so, its all in good faith from M$ Oct 23 20:09:10 if you want to use skype, get a luma 521 for $100 prepaid :) Oct 23 20:09:26 I am considering Xperia Z Oct 23 20:09:32 :-P Oct 23 20:10:10 not sure skype works well at all on android. i bet they had a huge c++ codebase they are going into with ndk Oct 23 20:10:22 with a little gui shim Oct 23 20:11:25 skype works reasonably on android Oct 23 20:12:41 i just kept on crashing, and or killing the battery, and or doing weird things or dial out. i gave up Oct 23 20:12:44 *it Oct 23 20:14:52 skype works as well on android as it does on ios - which is to say mediocre. Oct 23 20:15:30 pfn i notice packt publishing has an "instant xxx" series , where xxx is some tech and the book is a starter under a hundred pages or so. you could write a 'getting started with scala on androiud' :) Oct 23 20:15:51 i think there is an SBT one Oct 23 20:16:15 and a chapter with your build plugin Oct 23 20:16:27 is there, heh Oct 23 20:17:03 pfn: So I ended up using GSON, the hypen wasn't even a problem, just two annotations Oct 23 20:17:11 its pretty good Oct 23 20:17:43 @SerializedName("post-thumbnail") Oct 23 20:17:43 g00s, except I'm so uninterested in writing Oct 23 20:17:44 tada. Oct 23 20:17:47 desmin88, right Oct 23 20:17:59 desmin88, gson and jackson are the first choices for json, imo Oct 23 20:18:06 jackson being somewhat faster, as I hear it Oct 23 20:20:26 cool, pixelmator 3 \o/ Oct 23 20:21:23 now i just have to get endless scrolling and async data loading working Oct 23 20:21:26 :] Oct 23 20:21:56 desmin88 i think cwav had an endless scrolling adapter Oct 23 20:22:00 *cwac Oct 23 20:22:13 who is cwac? Oct 23 20:23:42 https://github.com/commonsguy/cwac-endless Oct 23 20:32:16 reading about Barra at Xiaomi http://www.forbes.com/sites/parmyolson/2013/10/22/how-chinas-xiaomi-does-in-a-week-what-apple-does-in-a-year-update-devices/ Oct 23 20:32:25 do their devices have the Play Store ? Oct 23 20:33:31 hi all. noob here. i'm editing activity_main.xml in eclipse. the editor is a GUI layout editor. how do i add UI components from the Palette to my RelativeLayout ? Oct 23 20:33:46 oh, i dragged it to RelativeLayout in the outline and that worked, nvm Oct 23 20:34:47 Hey guys. I'm using an AlarmManager for the first time, which works great other than I can't get it to bring the application to the foreground if it's not currently in the foreground. What do I need to set to make this work? Oct 23 20:35:29 g00s: thx Oct 23 20:35:37 Xonk: a) don't do this, b) look at logcat when you're calling startActivity(); you're missing NEW_TASK or whatever, probably. Oct 23 20:35:59 Xonk: c) seriously, don't do this unless you're making an alarm clock Oct 23 20:36:03 evanc - It's an alarm clock app. That should be the desired behaviour Oct 23 20:36:05 :-) Oct 23 20:36:07 phew Oct 23 20:36:24 I've set: i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_NO_USER_ACTION); Oct 23 20:38:24 Xonk: anything in logcat? Oct 23 20:39:12 Yeah, running it again to get the exact message. It's firing the intent according to logcat Oct 23 20:39:42 FLAG_ACTIVITY_NEW_TASK works fine Oct 23 20:39:44 10-23 16:39:32.368 308-308/system_process I/ActivityManager﹕ START u0 {flg=0x10040000 cmp=com.pledgeapps.buyingtime/.AlertActivity (has extras)} from pid 2071 Oct 23 20:39:47 I use it all the time from background stuffs Oct 23 20:40:27 Xonk: yeah, it would be in the next few lines or so Oct 23 20:42:21 Ok. Give me a minute. I made the mistake of closing the emulator and have to wait like 5 minutes for it to relaunch. Oct 23 20:43:09 thats always fun Oct 23 20:43:10 rookie mistake Oct 23 20:43:19 also a rookie mistake: using the emulator, ever Oct 23 20:43:42 why Oct 23 20:44:11 I like using the emulator these days Oct 23 20:44:11 the emulator has served me well, and is almost as fast as my phone Oct 23 20:44:17 I'm so lazy to interact with my phone while testing Oct 23 20:44:37 whoa, sdk emulator? Oct 23 20:44:55 or some custom x86 project? Oct 23 20:45:30 pfn. Oct 23 20:45:47 yes, the x86 emulator in the sdk Oct 23 20:45:52 Android Studio (which is probably mistake #2) quit seeing my Nexus yesterday and I haven't been able to figure out why so I've been using the emulator for now. But that's a different problem.. Oct 23 20:46:04 Xonk, adb kill-server Oct 23 20:46:08 i wonder if the haxm driver works on 10.9; i think kext has to be signed now Oct 23 20:46:10 then adb devices Oct 23 20:47:03 I sometimes use my x86 android laptop for testinbg Oct 23 20:47:09 my phone too Oct 23 20:48:51 when I use the emulator on linux I load it from snapshot, it starts and emulates pretty fast Oct 23 20:49:29 pfn, hm, so in `sdk/tools/android avd' when configuring a device, you just choose 'Intel Atom (x86)' in 'CPU/ABI' field? And it's fast then? Oct 23 20:50:09 if you need fast x86 android emulator, try genymotion Oct 23 20:50:29 everyone here has in least 2 retired laptops Oct 23 20:50:37 use one of em for x86 android Oct 23 20:50:41 genymotion is great; wish it would stay connected to adb tho :| Oct 23 20:51:00 michalrus, pretty much, also install haxm Oct 23 20:51:08 adb on mac seems really flakey Oct 23 20:51:11 at least on the mac I'm using Oct 23 20:51:13 hi all :) i'm using eclipse. in "Superclass Selection" dialog, i enter "android.opengl.GLSurfaceView." with trailing dot, but i don't see Renderer :( Oct 23 20:51:18 it's not genymotion so much as adb eating shit Oct 23 20:51:26 or so it seems to me Oct 23 20:51:28 i downloaded the latest SDK yesterday Oct 23 20:51:38 pfn yeah, i've been having lots of issues with it /more lately/ adb was always iffy but it worked better previously Oct 23 20:52:21 i have a ton in my CrashReporter for adb Oct 23 20:52:21 oh because Renderer is an interface Oct 23 20:54:14 pfn, haspor, 'kay, thank you, noted. :) Oct 23 20:54:18 Crud, I guess I'm going to have to reboot. I can't even get the emulator to launch now. Oct 23 20:55:07 g00s: this endlessadapter seems to be a godsend Oct 23 20:55:20 i wonder if i can replace an emu with a beagle board black (or panda, etc) and load the MS RDP client on it Oct 23 20:55:48 (Android.mk) Given a value in a variable, how can I look up the value of another variable (as if it were a map)? Something like KEY=val and MAP={ val, foo} { val2, bar } Oct 23 20:56:18 desmin88 :) Oct 23 20:57:20 seems like MS even has an official RDP client for MAC Oct 23 20:57:26 uh, mac Oct 23 20:57:29 it ships with office Oct 23 20:57:39 they have had mstsc in mac since forever Oct 23 20:58:02 there's an official rdp client for android now Oct 23 20:58:13 yeah Oct 23 20:58:30 thats why i was wondering if i could use a panda + ms official rdp client for dev Oct 23 20:58:37 no panel, no phone, etc Oct 23 20:58:46 * pfn shrugs Oct 23 20:58:56 if you got the time, hax0r on it Oct 23 20:59:18 quite a lot of work to write some way of converting the framebuffer to rdp, though Oct 23 20:59:39 hm, i may have to ask ron_frown about that Oct 23 21:00:51 just run PIP in your monitor Oct 23 21:00:57 and run the pandaboard into the PIP input Oct 23 21:01:10 pfn what is PIP ? Oct 23 21:01:14 picture-in-picture Oct 23 21:01:27 i'll have to check it out Oct 23 21:02:10 people still want pip? Oct 23 21:02:22 I would use it if I could Oct 23 21:02:27 pip for what? Oct 23 21:02:33 something online? Oct 23 21:02:35 hi all :) can i mix GLSurfaceView and other views in the same layout? Oct 23 21:04:08 I ran it again and there aren't any messages after the one I mentioned other than garbage collection about 30 seconds later. "10-23 17:01:34.324 299-499/system_process I/ActivityManager﹕ START u0 {flg=0x10040000 cmp=com.pledgeapps.buyingtime/.AlertActivity (has extras)} from pid 806" Oct 23 21:04:34 The code is here if that helps: https://github.com/PledgeApps/buyingtime-android/blob/master/src/main/java/com/pledgeapps/buyingtime/utils/AlarmReceiver.java Oct 23 21:04:56 evanc do you know if dvm implements String.intern() ? I could not find much about it. i could probably use guava's Intern class, or technique which is mostly just a hashmap ;) Oct 23 21:05:27 i thought romainguy said something about it long long ago, before i understood what it was Oct 23 21:05:32 maybe a change to GB Oct 23 21:06:22 i guess on a regular jvm those go into permgen space, but java 8 will change that Oct 23 21:07:08 Any idea if the expanded list view sets any state to the groups, when they are expanded? Oct 23 21:07:17 g00s: sorry; no idea Oct 23 21:07:18 The event does actually fire in the background and when I return to the app the activity has loaded. I just can't bring the app to the foreground. Oct 23 21:07:20 g00s, why not just look at harmony/luni and see if string.intern is implemented? Oct 23 21:07:27 and how it's implemented Oct 23 21:07:47 g00s, and for that matter, it's a compiler feature Oct 23 21:08:55 pfn public native String intern(); Oct 23 21:09:04 hmm Oct 23 21:09:05 no idea, i would have to go into native stuff Oct 23 21:09:09 g00s, well, look at String.cpp then :p Oct 23 21:09:25 /Users/pnguyen/android-src/dalvik/vm/native/java_lang_String.cpp Oct 23 21:09:36 crap, have to get that repo Oct 23 21:10:32 well, should be easily retrievable on androidsource.com Oct 23 21:10:38 ;) Oct 23 21:10:40 or was it googlesource Oct 23 21:10:47 whatever Oct 23 21:11:16 https://android.googlesource.com/platform/dalvik/+/master/vm/native/java_lang_String.cpp Oct 23 21:11:32 thanks Oct 23 21:12:07 hm, seems implemented in dvm. wonder how far back Oct 23 21:12:22 it was a java 6 feature, so i would bet sdk 9+ Oct 23 21:12:25 api 9 Oct 23 21:14:03 string interning? Oct 23 21:14:10 string's have always been interned as far as I recall Oct 23 21:15:05 every since 1.0 Oct 23 21:16:34 maybe compile time constants only Oct 23 21:16:42 this is for runtime Oct 23 21:16:54 at runtime, strings are not interned unless you explicitly intern them Oct 23 21:27:32 what's the best way to do background processing and not have your animations look like shit? Oct 23 21:28:19 jaynewstrom you mean, the bg threads are causing animations to stutter ? Oct 23 21:28:41 maybe give them low priority; make sure you don't have too many :) Oct 23 21:29:49 I only have 1 background thread, and it's Thread.MIN_PRIORITY Oct 23 21:33:43 jaynewstrom, what machine are you using? Oct 23 21:34:07 in your MIN_RIORITY "background thread" in which you're doing your "background processing," are you using any shared resources? Oct 23 21:35:12 Any idea why calling setActivated in a view, is not forcing the view to get redrawn? Oct 23 21:38:31 This is on a Nexus 4 Oct 23 21:39:38 jaynewstrom, using another thread won't do you much good if you're often locking shared resources during its operation Oct 23 21:39:55 I'm not locking any shared resources Oct 23 21:40:31 jaynewstrom, i'm afraid you've baffled me. you'll have to provide a test case. does your development environment include a profiler? Oct 23 21:40:44 make sure your manifest android:butter="true" :) Oct 23 21:41:17 Could someone please take a look at my AlarmManager? http://bit.ly/17g72Ys It works, but won't bring the app to the foreground despite setting FLAG_ACTIVITY_NEW_TASK. Oct 23 21:49:03 so, maybe it's the sort of 3000 records I'm doing on the main thread, after it get's put back on the main thread ;) I should probably do that in SQLite... Oct 23 21:51:43 O.O Oct 23 22:01:54 hi.. i have installed android studio, first project.. debug and adb has some problem... in terminal i see this error : adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory Oct 23 22:01:59 Unbuntu 13.10 Oct 23 22:05:38 :-( Oct 23 22:06:45 <^cheeky> ello GUIS 0/ Oct 23 22:07:03 bonjour Oct 23 22:07:19 or bonsoir idk what time it is where u live Oct 23 22:07:30 <^cheeky> its the internet no time !!! Oct 23 22:07:32 <^cheeky> heh Oct 23 22:12:07 <^cheeky> umm soo , i failed at an app i wanted to create but i think i might have found out what i did wrong, but please bear in mind i am not very smart like others than have exchanged packets here, so that being said, i used an awsome library/module called picasso, and when i was debugging it, it noted that i had network or memory issues, and reading the code, of picasso it mentioned that i have to implement a view, and in the sample there was Oct 23 22:12:07 <^cheeky> Square view and also there were comments that a target should be used, and if it does it should two interfaces, and also its toHashCode() and equals() methods. Would anyone be able to clarify that, since i was just passing a standard imageView, thats why i was getting so many misses and less hits with memory cache since it had no way to distinguish the imageView. Oct 23 22:12:32 Whoohoo! I finally got it! My intent wasn't defined properly. It was 'new Intent("com.pledgeapps.buyingtime");' instead of 'new Intent(context, AlarmReceiver.class);' Oct 23 22:12:37 ^cheeky: no Oct 23 22:12:53 object equals and hashcode is enough Oct 23 22:13:46 i resolved Oct 23 22:13:56 <^cheeky> but i did not implement them, i just used a normal image view.. but when i looked at the Dump output i had misses > hits Oct 23 22:15:50 where can i receive android studio support? Oct 23 22:15:54 I have a fragment of AChartEngine with some inspiration from http://goo.gl/hLWwUq - My question is, would it be possible to update this fragment even if it isn't on screen and if the activity tied to it isn't? Oct 23 22:18:16 <^cheeky> the reason i asked about imageview, because i have seen this pattern in the docs, but then again my interpretation most likely wrong , it seems that it would be fruitful to have an custom view that would have able to have a callback that could say cancel a request or even invoke a request again, in the event that it wasn't processed right such as an image not showing up in an image view. Oct 23 22:22:07 Anybody ever use this before? https://github.com/commonsguy/cwac-endless Oct 23 22:23:04 <^cheeky> ok sorry, for writing gibberish, :( , would it be better to use an ACTION intent to invoke a camera in an app or create your own camera, preview and all. The simple app is just to enable a flash light, but when the light switch turns on, it should record as well, so would it be better to just invoke the devices native camera app or write your own implementation. Oct 23 22:25:14 hi channel :) Oct 23 22:25:36 hi person Oct 23 22:25:47 <^cheeky> hii Oct 23 22:25:59 is there method to encrypt code of my app? i'd like to avoid decompile apk Oct 23 22:26:10 hi two person :) Oct 23 22:26:25 uhh Oct 23 22:26:28 proguard? Oct 23 22:26:57 dexguard Oct 23 22:27:12 y not proguard Oct 23 22:27:54 But it only makes it harder, not impossible... Oct 23 22:28:00 hoyl fuck Oct 23 22:28:04 dexguard is expensive Oct 23 22:28:14 i don't know dexguard Oct 23 22:28:23 "Private customer outside EU (tax-free), 1 developer license, 350 €" Oct 23 22:28:24 lowest price Oct 23 22:28:47 mmm not :) Oct 23 22:28:47 That depends on your hourly rate. ;-) Oct 23 22:28:56 ehehe mucho dinero Oct 23 22:28:57 use proguard Oct 23 22:29:37 if somebody wants to bad enough Oct 23 22:29:39 theyll get ur apk Oct 23 22:29:41 <|0xD34D|> go find some bugs in apktool or dex2jar and exploit them so your app can't be decompiled until those exploits are fixed Oct 23 22:30:00 ^ Oct 23 22:30:02 lol Oct 23 22:30:03 i'll try proguard Oct 23 22:30:04 <|0xD34D|> then again, those tools are open source so easy to patch once the problem is found Oct 23 22:30:30 <|0xD34D|> I use to make class names that were larger than 256 characters and apktool would not decompile them Oct 23 22:30:35 lol Oct 23 22:31:02 brilliant Oct 23 22:31:32 classe name larger 256? you're crazy :) Oct 23 22:31:45 <|0xD34D|> it was for a ROM port I worked on Oct 23 22:31:50 <|0xD34D|> it stopped people from kanging my shit Oct 23 22:32:02 <|0xD34D|> at least the people that didn't know wtf they were doing Oct 23 22:32:06 its gonna happen eventually though Oct 23 22:32:28 <|0xD34D|> you could use something like proguard to generate the long names once you release Oct 23 22:33:44 <|0xD34D|> I remember there being some other things related to dex format that some devs used to thwart people that decompile it Oct 23 22:40:14 Has anyone used the CWAC library? https://github.com/commonsguy/cwac-endless Oct 23 22:44:56 it seems simple but i have some Q's Oct 23 22:45:24 what is the easiest way to load data for a adaptor that calls a service layer but not on main thread? Oct 23 22:45:35 currently asynctaskloader is the only thing i know. Oct 23 22:45:41 or another thread Oct 23 22:45:51 asynctask? Oct 23 22:59:03 Does anyone know how to use a ninepatchdrawable from resources in the onDraw method of a custom view? Oct 23 23:03:33 <^cheeky> btw, genymotion + android studio .. works well with core2duo macbook really well .. wow what a difference !!!!!!!!!! Oct 23 23:04:28 (___)__)=====D Oct 23 23:06:08 <^cheeky> ohh u,mmm Oct 23 23:07:15 ahh nevermind, the nine patch was not true nine patch Oct 23 23:09:08 is there like any sweet resource site/etc of XML of like shapes? i need a play and a pause button Oct 23 23:19:06 how do i make a pendingintent thats basically the exact behavior of if the app is runnin in the bg and you hit its icon in the app library Oct 23 23:20:19 acidjazz: http://developer.android.com/design/downloads/index.html Oct 23 23:24:37 canadiancow meet Kurt Cowbain! http://i.imgur.com/zTZZKJL.jpg Oct 23 23:25:20 <^cheeky> haha Oct 23 23:25:27 <^cheeky> nice quality pic tho Oct 23 23:27:58 hey thats me in the background Oct 23 23:28:02 XD Oct 23 23:28:27 looking pretty stoic there canadiancow Oct 23 23:29:42 heh Oct 23 23:30:36 Say I made an app which made two http head request every minute... would that kill the battery quickly? Oct 23 23:31:08 snot reto had some radio tips on devbytes Oct 23 23:31:24 i probably cant find it again tho Oct 23 23:31:39 hehe, ok :) Oct 23 23:31:49 but yeah, every minute would be bad Oct 23 23:32:23 I'm wondering how often my phones does http request... I mean for facebook and all the other crap I have installed Oct 23 23:32:44 g00s: I was thinking about making a site monitoring app Oct 23 23:33:24 every 5th min would be ok as well I suppose... but I'm wondering if it would be too much of an impact on the battery Oct 23 23:34:29 how does gmail app keep current? Oct 23 23:34:48 push... GCM Oct 23 23:35:28 I doubt it does Oct 23 23:35:49 Can you imagine the server load pushing out messages every x minutes to every single device world wide running GMail? Oct 23 23:35:56 Chances are it is a service set up in the background. Oct 23 23:36:19 Also seeing as you can customise how often it updates, it would just change a variable for that service. Oct 23 23:36:35 snot: maybe model it on that idea? Oct 23 23:37:23 I think in a recent devbyte they even address how it would be impractical to do it through GCM for an email client. Oct 23 23:38:09 <|0xD34D|> there is no setting in the GMail app I have for setting an update frequency Oct 23 23:38:18 Anthaas: where can you configure that? I cant find it Oct 23 23:38:20 <|0xD34D|> it probably pushes a "tickle" message telling the client to contact the server for updates Oct 23 23:40:08 Oops, brainfart, just realised I use a different email client hahahaha Oct 23 23:40:27 But yeah - I know Google do address how impractical it would be to use GCM to call updates on email clients. Oct 23 23:40:33 <|0xD34D|> any ContactsContract gurus in here? got a strange problem where I am trying to create an identicon for contacts that have no photo and a handful of contacts don't update even though the update and/or insert tells me it worked Oct 23 23:41:51 <|0xD34D|> it's always the same contacts to so at least it's got some consistency ;) Oct 23 23:41:54 devbytes? is that a site? Or is it those youtube vids from goolgle? Oct 23 23:42:02 <|0xD34D|> vids from google Oct 23 23:42:10 <|0xD34D|> the name of their segment Oct 23 23:42:19 |0xD34D|: ok, thanks Oct 23 23:43:10 I wish google made more channels... the stuff i wants to see drown in videos in spanish and what not Oct 23 23:44:41 yeah, i wish google would stup putting important info on google+ and devbyte videos Oct 23 23:44:48 they should just improve the main site Oct 23 23:45:07 i cant find shit any more Oct 23 23:46:21 that too and push out updates through rss feeds so I can enjoy it with google reader... or not! Oct 23 23:48:31 i think google+ should only be for news, or even a tickler that new info was added to the main site - but not the actual content Oct 23 23:51:51 and videos suck, who wants to wade / search trough those Oct 23 23:53:29 a video is great to show how a combustion engine works; not so great watching reto speak at 300 words / sec Oct 23 23:53:34 wouldn't you rather watch a 1-hour vid on one widget (listview) than just read about which methods to implement correctly?? Oct 23 23:53:40 Isnt google+ only for news? I have zero people in my circles I know irl Oct 23 23:53:44 not even sure reto is human after seeing him do that Oct 23 23:54:27 i predict each I.O session in 2014 will be 7 minutes long Oct 23 23:54:35 g00s: well every article should have a video showing it... so I can just site back en enjoy and then later use that article for reference Oct 23 23:55:30 it would be nice if i could d/l videos for offline use … but i struggle to do that on youtube Oct 23 23:56:07 and half the time they don't even work on 1MB/s connections Oct 23 23:56:15 which is often what i'm stuck with Oct 23 23:57:07 http://www.jwz.org/hacks/youtubedown Oct 23 23:57:16 works like a charm (also vimeo) Oct 23 23:57:35 kbs thanks ! Oct 23 23:57:44 arent they planning on doing offline videos? I can hardly wait for background playing... I have been itching for that for the last to years! Oct 23 23:57:51 i tried a few of these, ff extensions, etc - always had problems Oct 23 23:58:22 can always count on jwz to just Do The Right Thing(tm) :-) Oct 24 00:06:13 hey g00s Oct 24 00:06:23 hello desmin88 Oct 24 00:07:10 have you ever personally used the endlessadapter? Oct 24 00:08:57 desmin88 no, i haven't Oct 24 00:09:01 hmm[h Oct 24 00:09:06 uhh. i meant hmmph Oct 24 00:10:18 ok, let me test something Oct 24 00:13:46 ahh ok i get it now Oct 24 00:18:26 desmin88 Oct 24 00:18:35 Baluse Oct 24 00:19:41 lol Oct 24 00:19:46 you born 1988 ? Oct 24 00:19:55 no Oct 24 00:19:59 ah Oct 24 00:20:10 i forgot why i tacked the 88 on Oct 24 00:21:11 lol Oct 24 00:21:45 but uhh Oct 24 00:21:48 you were wearing two pairs of glasses Oct 24 00:21:53 8-) Oct 24 00:21:54 have you have watched the tv show LOST? Oct 24 00:22:04 88-) Oct 24 00:22:44 lol Oct 24 00:23:00 who ? Oct 24 00:23:27 Desmond from LOST = desmin Oct 24 00:23:28 +88 Oct 24 00:24:19 i didnt know how to spell it when the show first came on and its just stuck with me Oct 24 00:25:07 nice name desmond Oct 24 00:25:21 ya Oct 24 00:25:30 i miss that show :'( Oct 24 00:25:37 download it Oct 24 00:25:56 its on netflix all 6 seasons Oct 24 00:26:02 i watched the entirety of it in 3 days. Oct 24 00:26:17 I have a bunch of http calls. Is there a simple way to make them at background thread? Oct 24 00:27:07 not with android there isnt. first you make ur loader, ur loadermanager, then you have to implement a callback Oct 24 00:28:58 for every call ? Oct 24 00:29:16 why can't you use an asynctask ? Oct 24 00:29:28 ^ Oct 24 00:29:31 Hello all, I am having an issue sending an arraylist of parcelable objects from my main activity to another activity through an intent Oct 24 00:29:47 none of the current answers on SO seem to address my issue Oct 24 00:29:56 so, the example on android docs say about how to implement a standardized settings page/activity...but how do i actually "show it" on actionbar click? Oct 24 00:30:19 because asynctask is flawed. Oct 24 00:30:34 orientation change etc gives problems Oct 24 00:31:09 then use an asynctaskloader Oct 24 00:31:11 which is a bitch to use Oct 24 00:31:40 android api is too raw and verbose imo Oct 24 00:31:45 but im just bitchy Oct 24 00:32:34 lol Oct 24 00:34:44 isnt there a way to reuse it? Oct 24 00:35:54 one of these days, the android devs will finally reveal that AsyncTask was an April 1st joke that suddenly got into the core API :-) Oct 24 00:36:15 great, google thinks i'm a bot and is asking me a captcha on my searches Oct 24 00:37:37 in volley's toolbox there is a ByteArrayPool; i wonder if a more elegant solution would be to use directly allocated nio byte buffers and write a custom allocator Oct 24 00:37:42 kinda like apache mina does Oct 24 00:39:27 g00s: What way should I access the wrapped adapters data inside my endless adapter? Oct 24 00:39:38 i dunno, i suck at that crap Oct 24 00:39:49 other than ugly class nesting which every example seems to use and helps nobody Oct 24 00:39:59 i've become terrible at android UI stuff Oct 24 00:40:15 Look at this: https://github.com/commonsguy/cwac-endless/blob/master/demo/src/com/commonsware/cwac/endless/demo/EndlessAdapterCustomTaskFragment.java Oct 24 00:40:42 How does that /really/ help anybody? You've nested every single class into a mishmash of crap and doesnt really help anybody Oct 24 00:40:42 hello can anyone help me? I have an asynctask that goes and fetches an XML document, and then I have an xml pull parser that parses the xml and creates objects from it. The array list is then passed as parcelable to another actvitiy through intent. In order for the arrayList to actually get populated I always have to enter the second activity, and back out, then re-enter it, then it gets set, does anyone know why? Oct 24 00:43:25 desmin88: are you serious? that file is < 150 lines Oct 24 00:44:12 it's a lot easier to read than putting everything in 4 different files so you have to open 4 tabs to see it all Oct 24 00:45:31 treehau55 just use an IntentService and stuff the result where all the activities can get it. you're making things difficult ;) Oct 24 00:45:51 seand: just a little bit serious Oct 24 00:46:37 g00s: where should the result be put where it can be accessed by all activities? Oct 24 00:46:48 seand: but then let me ask you, how would you let the EndlessAdapter, which wraps around a listadapter, be ableto access the listadapters data ? Oct 24 00:47:00 treehau55: You are populating the listview or whatever with your adapter in onCreate() not onResume() Oct 24 00:47:02 you can put it in a static member of the service, or a singleton, or whatever :) Oct 24 00:47:14 treehau55: download data in onCreate(), populate listview in onResume() Oct 24 00:47:45 Anthaas: im not populating a list view, im just filling an arraylist to be passed to another activity through an intent on a button click Oct 24 00:48:19 desmin88 i don't understand the question Oct 24 00:48:45 Ok, so download(), parseEachItemIntoObjectsAndAddToArrayList(), addToIntentAndSend() Oct 24 00:48:50 They should be your steps Oct 24 00:49:24 onCreate(), onCreate(), onClick() Oct 24 00:49:25 seand: The EndlessAdapter runs a task to download some new data, when the task finishes the data is sent to the endlessadapter, which somehow has to tell its wrapped listadapter to add that data to its items Oct 24 00:49:51 Oh wait Oct 24 00:49:55 You are using AsyncTask Oct 24 00:50:28 * kbs suggests treehau55 pay attention to g00s :-) Oct 24 00:50:42 desmin88: yes, that's how i would do it. implement an interface Oct 24 00:50:43 onPreExecute -> Have your ArrayList instantiation (i.e. ArrayList a = new ArrayList(); Oct 24 00:50:53 inBackground have the download Oct 24 00:51:11 etc Oct 24 00:51:14 I have to go Oct 24 00:51:18 Someone else might be able to help from here Oct 24 00:51:18 cya Oct 24 00:51:42 desmin88: another option is to directly add to the items Oct 24 00:52:09 thepoosh you asked for status (NYC, homeless) here is one article (nyc has 50k homeless) http://www.theatlanticcities.com/housing/2013/10/grim-math-working-class-housing-crisis/7321/ Oct 24 00:52:12 *stats Oct 24 00:52:20 seand: how would i directly add to the items? Oct 24 00:52:27 because the items arent exposed Oct 24 00:52:48 desmin88: make the asynctask implementation a nested class of demoadapter Oct 24 00:52:58 boom, items exposed Oct 24 00:53:30 the thing is i want to reuse the task and have it be a seperate class. Multiple adapter classes, 1 task class which can be used by all Oct 24 00:54:03 if you want to reuse then you would probably want to stick it in its own file Oct 24 00:54:11 and then of course use an interface, because java sucks Oct 24 00:54:24 so make an interface that allows me to get the list of data Oct 24 00:54:29 have my adapter implement it? Oct 24 00:54:35 yeah, the way it's done in that file Oct 24 00:56:51 this quickly devolved into a shitton of stuff just to run a task Oct 24 00:57:16 what do you mean, it shouldn't be that bad Oct 24 00:57:31 the only extra thing you need is an interface, which the adapter implements Oct 24 00:57:42 thanks Oct 24 00:57:56 1 interface for the listadapter, 1 for endless adapter Oct 24 00:58:04 huh Oct 24 00:58:06 no Oct 24 00:58:15 why Oct 24 00:58:38 EndlessAdapter implements a ResultListener, so the Task can pass back the data; The listadapter implements an interface to expose its datalist Oct 24 00:59:17 So, EndlessAdapter calls Task, Task passes back data, EndlessAdapter gets datalist from wrapped adapter, adds to it, then calls notifydatasetchanged Oct 24 01:00:10 see what i mean? Oct 24 01:00:13 no Oct 24 01:00:21 listadapter is an android class Oct 24 01:00:25 yes. Oct 24 01:00:31 what interface is it implementing Oct 24 01:00:56 I have my own adapter class implementing baseadapter + my exposed datalist interface Oct 24 01:00:56 actually listadapter is an interface, apparently Oct 24 01:01:38 why aren't you just using EndlessAdapter? Oct 24 01:01:50 EndlessAdapter has to wrap around a listadapter Oct 24 01:03:13 it becomes a fustercluck real quick Oct 24 01:05:36 do you see what i mean? Oct 24 01:07:24 desmin88: no, i don't follow. maybe you can paste what you have and i could take a look Oct 24 01:07:30 ok. Oct 24 01:07:56 how do i make a progressbar not bleed into a right-aligned butotn? Oct 24 01:09:07 n/m Oct 24 01:09:11 EVERMIND GAWSH Oct 24 01:09:18 s/^/N Oct 24 01:09:23 seand: This is the wrappedadapter which exposes its data list: http://pastie.org/8425616 This is the endlessadapter which adds data to the wrapped data: http://pastie.org/8425619 This is my task Oct 24 01:12:02 desmin88: why does DailyReadingAdapter exist? Oct 24 01:12:23 can you not stick all within the SaintEndlessAdapter class? Oct 24 01:12:29 well i guess Oct 24 01:12:29 all that* Oct 24 01:13:55 i suppose that would simplify it a bit Oct 24 01:14:25 SaintEndlessAdapter can hold List data; Oct 24 01:14:37 yes Oct 24 01:14:54 then in onItemsReady just set it directly Oct 24 01:15:09 getPendingView does what DailyReadingAdapter.getView is doing now Oct 24 01:15:13 etc Oct 24 01:19:19 So then something like this? http://pastie.org/8425635 Oct 24 01:21:09 why does SaintAdapter exist though Oct 24 01:22:04 i thought the endless adapter needed to wrap around a listadapteR? Oct 24 01:22:05 can't you just have SaintEndlessAdapter take in a List of items? Oct 24 01:22:16 he isn't doing that in his example Oct 24 01:22:40 yeah but its a listfragment Oct 24 01:23:39 fuck me i dont know anymore Oct 24 01:24:06 heh... if(something != null) { return something; } else { return null; } Oct 24 01:24:34 desmin88: maybe i don't understand your usecase, so it's possible i'm making things worse Oct 24 01:25:02 all this should do is make a listview endless Oct 24 01:25:07 and when you scroll to the bottom Oct 24 01:25:09 it adds more shit Oct 24 01:25:37 so you are using it with a listview Oct 24 01:25:40 yes Oct 24 01:26:11 so i'm assuming you're calling something like setAdapter? Oct 24 01:26:14 yes Oct 24 01:26:22 and you pass in the items list Oct 24 01:26:35 yes Oct 24 01:26:49 so make that the param in the constructor of the EndlessAdapter implmenetation Oct 24 01:26:52 implementation* Oct 24 01:27:05 ooh, you were talking about this yesterday Oct 24 01:27:12 yes i was otiose Oct 24 01:27:14 whats happening? Oct 24 01:27:26 otiose, tag out Oct 24 01:29:12 urgh Oct 24 01:30:45 well im at work, so i cant spend toooo mcuh time figuring out other people's code Oct 24 01:30:49 but whats the problem? Oct 24 01:31:36 trying to use an EndlessAdapter with a listadapter and listview Oct 24 01:32:22 hmm, never used it Oct 24 01:33:02 i dont even know anymore Oct 24 01:34:16 how do i remove/release handlers Oct 24 01:34:27 i have a MediaPlayer instance and i assign handlers to it.. when i .release() it the handlers error out Oct 24 01:34:53 oh Oct 24 01:34:53 null Oct 24 01:36:05 hi all Oct 24 01:36:28 maziz I AM SPEKAING Oct 24 01:36:41 seand, im just going to separate the listadapter and endless adapter Oct 24 01:37:40 arent all the adapters kind of endless? Oct 24 01:39:11 the endlessdapter wraps around a listadapter and loads more stuff as you get to the bottom Oct 24 01:40:35 huh? Oct 24 01:41:19 Maziz: what? Oct 24 01:41:38 hi all Oct 24 01:41:49 Hey. Oct 24 01:46:05 well atleast the app starts Oct 24 01:49:55 when i update a notification it fades in/out.. can i stop that? Oct 24 01:54:32 Can anyone tell me why https://github.com/android/platform_frameworks_base/blob/master/media/java/android/media/DataSource.java is still marked as @hide? Oct 24 02:00:52 okay, would anyone happen to know how to actually spawn a shell on android? say, if I wiped out my environment variables, how'd I get a proper Android environment again? Oct 24 02:01:06 otiose: Would you just like to look at a repo i made to help me? https://github.com/desmin88/uCatholicProject Oct 24 02:01:42 i can, if you're not i a rush... Oct 24 02:02:04 not in any particular one Oct 24 02:02:56 i can be on for about 2 more hrs Oct 24 02:05:20 hi desmin88! Oct 24 02:05:42 Leeds! Oct 24 02:05:46 hi Oct 24 02:07:13 continue with my problem, cant see the file uploaded... in the AVD, i can install programs(apk's) and i see the programs installed on my avd i use adb for copy file and install apks. Oct 24 02:14:11 Can anyone tell me why https://github.com/android/platform_frameworks_base/blob/master/media/java/android/media/DataSource.java is still marked as @hide? Oct 24 02:14:16 (I disconnected briefly) Oct 24 02:22:51 seand: if you want to help aswell I have a repo here so you can get an idea of what my code is https://github.com/desmin88/uCatholicProject Oct 24 02:28:59 brb Oct 24 02:33:16 desmin88: i don't have time right now to work on other projects Oct 24 02:33:34 desmin88: so that isn't a professional project? is it a volunteer thing? Oct 24 02:42:05 okay, would anyone happen to know how to actually spawn a shell on android? say, if I wiped out my environment variables, how'd I get a proper Android environment again? Oct 24 02:42:16 oh right i just said that Oct 24 02:46:41 seand: yes basically a volunteer thing Oct 24 02:46:47 what does it do? **** ENDING LOGGING AT Thu Oct 24 02:59:58 2013