**** BEGIN LOGGING AT Tue Jul 15 02:59:59 2014 Jul 15 03:07:48 has anyone gotten this app to work on an emulator? I keep getting told it won't run unless I update Google Services, which I can't seem to do: https://github.com/google/iosched Jul 15 03:08:24 maybe I'll just compile the source and comment that check out... Jul 15 03:09:42 barbs yeeah i was confused by that Jul 15 03:15:24 capella did you do that :P Jul 15 03:16:15 huh? lost the train of thought Jul 15 03:17:20 shinkansen? Jul 15 03:33:05 Anyone notice that ExpandableListView does not rotate when powered by CursorTreeAdapter? Jul 15 03:33:52 maybe it needs RotatableCursorTreeAdapter Jul 15 03:34:10 sorry :) Jul 15 03:35:11 Hey guys... I have a Service with an MediaPlayer for an music app. Wich is the best way to make http calls inside the same service without stoping the MediaPlyer? Would it be better to have an second Service? Jul 15 03:35:16 hahahahahahhahahaha oh wow hahahahahha that was hilarious g00s ! Jul 15 03:35:25 bankai_au XD Jul 15 03:36:05 yurakeshi why would you need to stop the mediaplayer to make an http call ? Jul 15 03:36:37 do your networking on its own thread Jul 15 03:36:46 r...x.... Jul 15 03:37:01 :) Jul 15 03:38:07 g00s, i'm worried about slight pauses in the player... using Runnable would do it? Jul 15 03:41:21 Runnables are just one detail of concurrency; whether there will be hickups in mediaplayer - dunno, you will have to try. its hard enough getting that thing to play at all :D Jul 15 03:41:24 g00s: Yeah.. Wish there was one -- I keep getting a StaleDataException or IllegalStateException on the rotation. Jul 15 03:44:10 thats just bizarre Jul 15 03:44:45 what method call is doing that ? Jul 15 03:47:57 Layout methods. Jul 15 03:48:39 do you have a st ? Jul 15 03:49:21 http://pastebin.com/NGmU2i3i Jul 15 03:49:23 st? Jul 15 03:49:37 ess … tee ... Jul 15 03:49:48 do we have to spell it out for you greymalkin ? Jul 15 03:49:51 Oh, like the one I just pasted ;) Jul 15 03:50:02 :P Jul 15 03:50:16 Yeah, the weird part is that I'm not in the calling tree at all. Jul 15 03:50:32 I have done no actions on the list (no expanded groups, no children queried, etc) Jul 15 03:51:00 greymalkin does ApiDemos expandablelistview crash too ? Jul 15 03:51:04 I'm properly changing the group cursor to 'null' on loader reset; it's coming from a local content provider with a SQLiteDatabase. Jul 15 03:51:35 one moment, I'll check. Jul 15 03:51:52 I am reading http://developer.android.com/training/basics/fragments/communicating.html there is any other better options for fragment-activity, fragment-fragement communication? Jul 15 03:52:20 kamol: try EventBus: https://github.com/greenrobot/EventBus Jul 15 03:52:21 greymalkin are you closing the cursor manually ? Jul 15 03:52:29 Nowhere. Jul 15 03:53:51 greymalkin somehow your adapter is using a stale cursor Jul 15 03:55:41 also greymalkin are you using swapCursor() ? Jul 15 03:56:55 thank you barbs: Jul 15 03:57:30 g00s: You may have it there. Jul 15 03:57:50 barbs: did you try otto bus vs EventBus? Jul 15 03:57:54 I might have been led astray by needing to refer to it as "the group cursor" for so long. Jul 15 03:59:10 kamol: I haven't tried Otto myself, it also looks fairly good, though it doesn't allow you to specify which thread the event gets received on, which is something I really like :) Jul 15 03:59:43 kamol fragment to activity is easy enough, fragment to fragment is the tougher one. barbs already mentioned a bus, but another simple alternative is https://code.google.com/p/platform-features-talk-io-2013/source/browse/slides.pdf slide 16 Jul 15 04:00:56 greymalkin will make sure you are calling swapCursor, and in the loader reset it should be swapCursor(null) Jul 15 04:01:02 i think Jul 15 04:01:15 swapCursor doesn't exist on this adapter for some reason. Jul 15 04:01:41 It looks like I have to call change cursor -- which will cause the group cursor to be closed. I'll have to force a reload of the CursorLoader. Jul 15 04:02:13 hm, i never used expandablelistview … the api seems awful Jul 15 04:02:36 g00s: Yeah, but what the designers want, they get. Jul 15 04:02:38 Usually. Jul 15 04:02:44 If it's not too much trouble. Jul 15 04:02:48 And if I'm in a good mood. Jul 15 04:03:15 but if you become mad, greymalkin becomes geenmalkin Jul 15 04:03:16 Nope... same problem. Jul 15 04:03:40 greymalkin is all this in a fragment ? Jul 15 04:03:52 Yes, but no, the fragment doesn't maintain state. Jul 15 04:04:06 s/Yes,/Yes./ Jul 15 04:04:11 yeah i wonder if you could try setRetainInstance(true) to get out of a jam Jul 15 04:04:31 g00s: this seems to be pretty much what's in the official documentation, right? just a bit more formalised? Jul 15 04:05:06 i guess i'll have to look at the official document Jul 15 04:05:06 just checking if I'm missing something Jul 15 04:06:12 barbs well i see http://developer.android.com/guide/components/fragments.html#CommunicatingWithActivity Jul 15 04:06:15 which we all know Jul 15 04:06:58 but thats not what they are talking about Jul 15 04:08:03 yeah I don't think I'm understanding this. I'm on slide 16, what's the flow from fragment to fragment? Jul 15 04:09:12 this is all canadiancow 's handiwork :) Jul 15 04:10:19 fragment->activity->fragment Jul 15 04:10:47 yeah Jul 15 04:11:06 which works really well arne't in a dual pane layout and instead start the fragment in a new activity Jul 15 04:11:15 I don't see where the fragment calls back to the activity Jul 15 04:11:34 I see it registering as an action taker, and that's it Jul 15 04:11:38 wow i sure stuffed that sentence up, didn't i? Jul 15 04:11:40 barbs you are looking at slide 16 -18 i hope Jul 15 04:11:54 hey all, when using a ContentValues object, how can i use an expression in the put(), ex: values.put("bitmap", "bitmap | 1") so sqlite execute UPDATE tbl SET bitmap = (bitmap | 1) ... Jul 15 04:11:57 * barbs hopes so too Jul 15 04:12:13 preview says page 16, but I'm not sure if the slides are numbered in some other way as well? Jul 15 04:12:23 OK guys, what could possibly have happened? https://gist.github.com/jerstlouis/4dd7b2dd2da73803d34e Jul 15 04:12:56 what's the trick to get root again Jul 15 04:13:09 ESphynx #android-root is the trick ! Jul 15 04:13:30 it's sort of annoying to not be able to verify that those files are indeed there :S Jul 15 04:14:20 pull apart the apk and have a look -- this is your code, right ? Jul 15 04:14:31 hm, i remember ESphynx Jul 15 04:14:42 bankai_au: it is my code, but the question is where Android puts those files when it installs it Jul 15 04:14:54 you do g00s? Jul 15 04:14:58 /data/data/pkg Jul 15 04:15:14 So shouldn't I have a /data/data/com.ecere.Hello/lib/libHello.so Jul 15 04:15:25 for my Hello.apk Jul 15 04:15:30 called unimplemented OpenGL ES API ??????? Jul 15 04:16:12 any reason dlopen would fail ? Jul 15 04:16:16 ESphynx were you discussing high performance openGL stuff with romain a while back ? Jul 15 04:16:55 g00s: I'm not sure... http://ecere.org <-- my project Jul 15 04:17:02 ESphynx: if you put the lib in your APK, yes Jul 15 04:17:03 ESphynx oh yeaaah ! Jul 15 04:17:34 bankai_au: the lib is in my APK :P verifid ;P Jul 15 04:17:34 i do remember that cross platform project, how is it going ? Jul 15 04:17:55 g00s: very well! I quit my high paying consulting gig to bum on the project Jul 15 04:17:59 ESphynx website looks much better Jul 15 04:18:09 g00s: I speeded up the eC compiler by an infinite about ( http://ec-lang.org ) Jul 15 04:18:26 g00s: thanks yeah everyone seems to be giving positive comments on it so I hope it helps Jul 15 04:18:47 i'm trying to get this release ready so I can work on the presentation I do tomorrow morning at the Linux Symposium :P Jul 15 04:18:54 any help would be much much apreciated ;) Jul 15 04:19:42 wish i could help, haven't done anything with NDK Jul 15 04:19:51 ah :) well thanks g00s Jul 15 04:20:11 it maybe something about dlopen refusing? Jul 15 04:20:35 hmm maybe i can try a FileExists() call to see whether the .so is there :P Jul 15 04:21:02 To answer the earlier question, no ApiDemo doesn't crash; but they don't use a loader there either. Jul 15 04:25:02 And... setRetainInstance + restartLoader (instead of init) is working -- going to try removing setRetainInstance and see if that does the trick. Jul 15 04:25:30 Yup, it's all about forcing the loader to restart. Jul 15 04:25:42 CursorTreeAdapter needs a 'swapCursor' corollary. Jul 15 04:28:28 hm Jul 15 04:28:29 V/ecere-app( 5369): FileExists(/data/data/com.ecere.Hello/lib/libHello.so) = 0 Jul 15 04:29:05 hmmm :P Jul 15 04:29:05 Jul 15 04:30:02 ah no that's fine Jul 15 04:30:07 I got 2 .so Jul 15 04:31:47 OK seriously, why doesn't it put the .so there/ :S Jul 15 04:33:18 loaders... people use those? Jul 15 04:34:14 pfn: I never have, but I'm curious about them... Jul 15 04:34:35 if you have a content provider, cursorloader is pretty easy Jul 15 04:34:37 they're the worst api ever Jul 15 04:35:03 extending AsyncTaskLoader, is kinda shitty though. lots of weird template method / protocol needs to be followed Jul 15 04:35:14 the only good thing about loaders us that async loaders are decoupled from activities, so you don't get fucked by activities going away Jul 15 04:35:40 but still, worst fucking api ever Jul 15 04:37:35 a friend mentioned using Goro Jul 15 04:37:52 https://github.com/stanfy/enroscar/tree/master/goro Jul 15 04:38:01 never tried it Jul 15 04:46:46 that was all my mistake :| wasn't making it a library after all :S but the instant pause problem is still happening :( Jul 15 05:02:23 I am trying to write an ndef file for nfc on my android phone. The app should call the front facing camera and open it. But I can’t find the android application record to call. like for google maps for example its com.google.android.apps.maps Jul 15 05:02:32 what would it be for the camera though? Jul 15 05:03:18 can someone help me with android studio Jul 15 05:03:44 i wrote some java code and when i'm trying to build it its complaining about my use of the word "integer" and "string" Jul 15 05:03:57 g00s: that seems similar to Android Priority Job Queue: https://github.com/path/android-priority-jobqueue Jul 15 05:04:00 says it cannot find symbol class string (or integer) or anything else Jul 15 05:04:31 barbs have you used that one (from path) ? Jul 15 05:04:40 briefly, a while ago Jul 15 05:14:18 Where is the documentation for the com.android.library gradle plugin? I want to configure the .aar to include compile-time dependencies. Jul 15 05:15:47 barbs no development on that lib for quite a while Jul 15 05:16:17 true, goro does seem to be the newer of the two Jul 15 05:16:23 str4d http://tools.android.com/tech-docs/new-build-system/user-guide Jul 15 05:16:33 hey everyone Jul 15 05:16:56 I have a selector for a listview and a gridview that has a highlighted state for focused and selected Jul 15 05:17:13 and as I move to the item below the list in the listview, that item becomes highlighted as well (it has its own selector) Jul 15 05:17:20 however, the final item in the listview keeps its highlight Jul 15 05:17:28 I think this is because it is selected? Jul 15 05:17:43 so I tried only doing focused, not selected...and I didn't really get a highlighted state Jul 15 05:17:49 the same happens in my gridview Jul 15 05:41:44 g00s: thanks for the link, I still can't quite figure out the configuration needed to reconfigure the library to include jar files from project() dependencies. Jul 15 05:42:15 str4d hm, check out the gradle-samples-0.11 stuff Jul 15 05:42:48 g00s: here's a related story... http://www.theguardian.com/politics/2014/jul/14/theresa-may-denies-emergency-surveillance-bill-unprecedented-powers Jul 15 05:43:12 I see that android.libraryVariants.each { variant -> variant.packageLibrary } should give me access to the Zip that bundles the .aar, but I can't reconfigure it by that stage. Jul 15 05:45:18 capella-s3 don't know much about UK politics Jul 15 05:45:22 Hi all Jul 15 05:45:32 I am got a new samsung android mobile Jul 15 05:45:44 How to check my app on the device directly Jul 15 05:45:57 I dont see any Settings > Applications > Development. Jul 15 05:46:11 niru there is some secret incantation for that Jul 15 05:46:16 one sec Jul 15 05:46:50 http://www.techrepublic.com/article/pro-tip-how-to-enable-developer-options-in-android-42/ Jul 15 05:47:18 basically "Tap on Build Number seven times ", yeah, nobody would ever figure that out by themselves :P Jul 15 05:47:53 and where is that build number g00s Jul 15 05:48:04 O.o Jul 15 05:48:07 its in the article Jul 15 05:48:40 g00s: ok let me check Jul 15 05:49:49 g00s, can you help me? Jul 15 05:51:17 (or anyone?) Jul 15 05:53:24 g00s: and how to check which android version this phone is using? Jul 15 05:53:54 niru you are joking right ? Jul 15 05:54:59 niru its in the same screen of step #2 Jul 15 05:55:16 if you can't follow these directions, android development may not be your thing :) Jul 15 05:56:33 g00s, i just installed android studio, and when i try to build my project it is complaining about "cannoy find symbol class string" among other things Jul 15 05:56:38 also symbol class integer Jul 15 05:56:46 things it probably should be able to find Jul 15 05:56:47 any ideas Jul 15 05:57:06 hufflepuff not really, if you didn't set your SDK or JDK it would complain Jul 15 05:57:21 how/where would I set that Jul 15 05:57:26 maybe that is the problem Jul 15 05:57:26 i guess make sure it found a JDK Jul 15 05:58:55 g00s: No no I got it Jul 15 05:59:22 g00s: just out of excitement I lost fundamentals Jul 15 05:59:29 :) Jul 15 06:02:42 well i set java_home environmental variable, not sure it helped Jul 15 06:03:28 its claiming it can't find a symbol variable ele, where ele is a variable of a class called ManifestEntry which I defined in my program Jul 15 06:08:31 g00s? Jul 15 06:09:00 hufflepuff i have no idea, never had the issues you are having Jul 15 06:09:01 g00s: I have added the developer option in the device but while trying to run the app which is present in ADT shows"No active compatible AVD's or devices found. Relaunch this configuration after connecting a device or starting an AVD." Jul 15 06:10:04 hufflepuff: show screenshots and locations of sdk, jdk Jul 15 06:20:01 I have the erros http://pastebin.com/XYGu1wvB Jul 15 06:20:22 Is it due to those errors that I am not able to run the app on the device Jul 15 06:23:49 I have android 4.4.2 in ADT and my device is android 4.3. Will that cause my app not to run on the device Jul 15 06:25:06 should run on whatever the minimum version is Jul 15 06:25:53 niru: compiling to a lower target SDK should prevent using a heigher one Jul 15 06:26:32 thepoosh: but that will not prevent my app to run on device? Jul 15 06:27:01 thepoosh: I have added developer option in my device Jul 15 06:27:02 nope Jul 15 06:27:10 should be an issue Jul 15 06:27:15 but when trying to do run on the device Jul 15 06:27:17 it says Jul 15 06:27:29 No active compatible AVD's or devices found. Relaunch this configuration after connecting a device or starting an AVD. Jul 15 06:27:52 hello. where can I save an image file in my code so that I can access it from my computer later? Jul 15 06:28:06 niru: do you have drivers for you devices? paste your manifest Jul 15 06:28:28 sulaiman: a place where you computer has access Jul 15 06:28:38 canvs2321: sure Jul 15 06:28:42 niru: some devices auto mount themselves on the computer Jul 15 06:29:12 thepoosh: canvs2321 yes my device auotmounted Jul 15 06:29:31 do you have usb debugging enabled? Jul 15 06:30:00 canvs2321: here is my manifest http://pastebin.com/PyFVtxtj Jul 15 06:30:02 niru: if the device auto mounts the SD card, it's not going to be visible Jul 15 06:30:12 canvs2321: yes you mean the developer mode? Jul 15 06:30:28 thepoosh: what I need to do now Jul 15 06:31:09 if this is the case, you'll need to eject it from the desktop Jul 15 06:31:21 you able to run adb devices from command line and it finds your device? Jul 15 06:31:51 canvs2321: I did not try that 1 sec let me check Jul 15 06:32:33 canvs2321: since my emulator is not on I am not getting the adb shell :( Jul 15 06:33:00 canvs2321: so it is only responding to the emulator not the device Jul 15 06:33:26 no shell, just adb devices does it list your device? Jul 15 06:33:45 canvs2321: no:( Jul 15 06:33:53 the adb closes instantly Jul 15 06:33:57 then your drivers aren't setup right Jul 15 06:34:09 canvs2321: oh.... Jul 15 06:34:09 yeah it only list devices Jul 15 06:35:04 canvs2321: thepoosh so how to proceed. Should I install driver again? Jul 15 06:35:10 hi, all! I got some working c++ code and I need to port it to the android... Can you advice me some manual, or something about that? Jul 15 06:35:54 reisei: nothing specific comes to mind, but you'd be looking at working with the Native Development Kit (NDK), so I'd google for resources around that :) Jul 15 06:36:23 niru: either usb debugging isn't checked, or the right drivers aren't installed. Isn't there a driver installer from Koush that has all available drivers to choose from? Jul 15 06:36:54 barbs: of course, I've download it already... But, how can I use it? :) Jul 15 06:37:00 canvs2321: No usb debuggin is checked Jul 15 06:37:12 then... Jul 15 06:37:59 I suggest looking at the sample app included in the NDK to see how you need to layout files and set up Android.mk and Application.mk Jul 15 06:39:58 barbs: alright then :) thanks! Jul 15 06:40:26 no problem. What's the C++ program? Jul 15 06:40:56 canvs2321: I am reinstalling the driver Jul 15 06:41:24 what driver for what device from what link? Jul 15 06:43:23 barbs: it's a server for specific devices. I'll have to use boost also %) Jul 15 06:43:36 ooh, sounds fun! Jul 15 06:44:02 yeah! Jul 15 06:44:47 * reisei don't know how to deal with such enormous amount of fun Jul 15 06:45:05 :D Jul 15 06:46:47 canvs2321: samsung Galaxy grand2 device driver from samsung site Jul 15 06:47:08 canvs2321: model is SM-G7102 Jul 15 06:54:42 canvs2321: that model iteself is not shown? Jul 15 06:55:37 I changed the key that a PendingIntent was using at one point and now I'm getting all sorts of weird keys that I used to use filled with the right values, magically Jul 15 06:56:32 indrora: you should take your act to vegas Jul 15 06:57:39 That's what I'm thinking, seriously. I'm calling intent.putExtra(targetActivity.EXTRA_TARGET, "static value") and getting a very different set of Extras than what I'm putting in Jul 15 07:00:09 indrora: why is "static value" in quotes? not so static, and different set of Extras? you mean a different "static value"? Jul 15 07:01:23 I'm not seeing the value that I'm putting into the Intent in the Activity it goes to Jul 15 07:02:01 Anyone here used Phonegap before? I'm getting nothing over at #phonegap. Jul 15 07:02:49 indrora: then maybe you should paste code Jul 15 07:07:08 g00s, looks like the problem is i'm generally an idiot Jul 15 07:07:42 that's usually the case :) Jul 15 07:09:45 canvs2321-, http://pastebin.com/j44ix7pQ Jul 15 07:11:15 apparently i thought i had the code working, and there were some legit problems with the code (the most obvious being that I was calling integers: "Integer" instead of int, and strings were being called "string" instead of "String" Jul 15 07:16:09 Hmm, so weirder is that it works for the first time, the second time it breaks. Jul 15 07:19:15 Found the problem: I needed to set PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_ONE_SHOT Jul 15 07:43:01 Hi, Is there a way to list all content providers available ? Jul 15 07:44:36 anyone here expert in flashable zips? Jul 15 07:46:35 Any help Jul 15 07:46:49 < elichai2> i extracted Gapps and modified some things, and i want to know if i need just to zip it or not Jul 15 07:47:55 elichai2: I think you need to sign it Jul 15 07:48:11 I am not getting the driver for SM-G7102 galaxy grand2 Jul 15 07:59:05 < elichai2> i need help :( i'm trying to split my Gapps to 2 diffrent zips. Jul 15 09:16:36 Hello guys, when I add a progressbar, it by default animates, how can I hide it by default in the layout xml? Jul 15 09:18:37 never mind, I got it. Jul 15 09:29:01 Any bopdy has idea about the SM-G7102 usb driver to start my app? Jul 15 10:05:44 I see a three horizontal line icon on the top left corner Jul 15 10:06:30 clicking which another page opens which is placed just above the main page but the width is less than the main page Jul 15 10:06:37 Is that fragments implementation Jul 15 10:07:39 Estel: EPG are you there? Jul 15 10:10:38 hello guys please help me. I have wasted over an hour for a simple thing Jul 15 10:10:48 a have a custom listview Jul 15 10:10:55 the parent is a relativelayout Jul 15 10:11:09 with a text view and other views Jul 15 10:11:20 i want to center the textview vertically Jul 15 10:11:34 the text view has height to match parent Jul 15 10:11:55 i have tested layout_centerInParent | Vertical Jul 15 10:12:06 layout gravirty center Jul 15 10:12:12 gravity center Jul 15 10:12:19 what am i doing wrong? Jul 15 10:12:23 Is it good to have all the functionalities of a project in one activity or having different activites for different functionalities Jul 15 10:13:58 resu01: what is the question? Jul 15 10:14:44 i can't center the text of the textview in a custom listview Jul 15 10:14:49 it is always on top Jul 15 10:15:44 resu01: U can use orientation=vertical Jul 15 10:16:04 it is a realitve layout Jul 15 10:16:34 resu01: paste your xml Jul 15 10:17:08 ok i will paste the part which has the problem because it is quite big Jul 15 10:17:19 resu01: Estel should this work android:layout_alignParentTop="true" android:layout_centerInParent="true" Jul 15 10:17:40 i have tested this and it doesn't work Jul 15 10:17:42 Estel: my doubt :( ? Jul 15 10:18:10 Jul 15 10:18:20 watch the pasting! Jul 15 10:18:29 resu01: use http://pastie.org/ ! Jul 15 10:18:35 ok sorry Jul 15 10:18:44 resu01: not here paste it in pastebin Jul 15 10:18:47 And the whole thing, preferably Jul 15 10:19:20 http://pastie.org/9392841#6 Jul 15 10:19:22 Hello guys, does anyone know how to invite users to your app via facebook? Current API shows only user's that already use app. Jul 15 10:20:19 omg http://pastie.org in great Russian firewall :( Jul 15 10:20:21 resu01: which text do you want to centre vertically? list_item_day_orders_editClickableText ? Jul 15 10:21:04 both the textviews. I haven't set the text because i do it programmatically Jul 15 10:21:30 also some code is missing because only these views are my problem Jul 15 10:21:42 Well, you never know >_> Jul 15 10:21:57 But with height match_parent, I'd add android:gravity="centerVertical" on the TextView Jul 15 10:22:36 i will test it but i have tested the android:gravity="center" with no success Jul 15 10:23:35 any devs here happen to have a 10” tablet and a copy of ableton live? i need screenshots and emulator won’t work Jul 15 10:24:15 it doesn't worked Jul 15 10:24:23 no it doesn’t worked Jul 15 10:25:56 i have vertically centered text working thru only code Jul 15 10:26:05 i’ll look to see how i did it Jul 15 10:26:12 i remember it being a huge pain in the ass Jul 15 10:26:45 resu01: include the whole xml file? the alignBottom might be breaking it Jul 15 10:27:09 ok one moment to check a workaround Jul 15 10:27:12 Because with just those views it wfm. Jul 15 10:27:19 As in, centerVerical is just fine Jul 15 10:27:31 oh it’s because i’m drawing the text, not using a textview Jul 15 10:27:39 center_vertical, sorry Jul 15 10:28:22 what do you mean draw the text? You create the textview programmatically Jul 15 10:28:23 ? Jul 15 10:28:55 no i draw to the canvas… my interface is all custom and the only existing visual object i used was View Jul 15 10:29:13 is it good practice to have multiple activities called for multiple functionalities or have one activity for all? Jul 15 10:29:40 niru: decoupling is a good thing Jul 15 10:29:56 example:I have login,then a listview,then a sensor function. So is it possible to have all in one activity? Jul 15 10:30:32 resu01: https://drive.google.com/file/d/0Bwp2111wAQf8QW9iRnFheUZCbWM/edit?usp=sharing not sure what you're looking for? Jul 15 10:30:39 niru: it's possible. Don't do it. Jul 15 10:30:56 Estel: hmm ok.. Jul 15 10:31:57 the strange this is that in the graphical layout of eclipse it works well but when i run it in my device i see the text on top Jul 15 10:32:08 Estel: It may be too complex to reverse engineer? And analysis at later stage will be impossible? Jul 15 10:32:30 resu01: then you're explicitly breaking it elsewhere in code Jul 15 10:36:52 it finally worked Jul 15 10:37:01 android gives you free download codes like apple does, right? Jul 15 10:37:02 i wrapped it in a framelayout Jul 15 10:37:09 ultra-: no Jul 15 10:37:16 thaqnks a lot for your help Jul 15 10:37:18 argh Jul 15 10:38:08 so if i wanted to give my app to someone for free, i’d have to give them an .apk or make it free on the play store? Jul 15 10:38:28 yes Jul 15 10:38:44 :/ Jul 15 10:40:09 note that free app cannot be made paid (and vice-versa) Jul 15 10:40:55 yeah not worried about that, i was going to send out an .apk that expires to a couple people (for security reasons) and give them a free download code once it’s released as a thank you for testing Jul 15 10:41:34 Can't you use the Google Play beta stuff for that? Jul 15 10:41:58 probably but that’s just another step that shouldn’t be necessary Jul 15 10:42:16 apple gives me 100 free download codes to give out Jul 15 10:42:21 Estel, still the app would need to be free Jul 15 10:42:34 It does? Didn't realise that Jul 15 10:42:47 i’ll just send them a play store card i guess Jul 15 10:43:01 Estel, of course you can make it paid but then it's paid for alpha/beta testers, too Jul 15 10:43:06 Yeah sure Jul 15 10:48:22 it seems that a paid app can be made free (but not vice-versa) Jul 15 10:51:33 oh well, i posted to reddit looking for a couple people anyway… i just didn’t offer the free copy Jul 15 10:51:37 maybe someone has time on their hands Jul 15 10:53:39 Hi. I'm using static variables to hold information on where the user left off saving it onPause and clearing those variables onDestroy. However this activity is started from a parent activity's listview, and if i open the listview's items fast enough sometimes the onDestroy fires later than another instances onCreate. Does anyone have any ideas about this? Jul 15 10:53:56 I inserted all the required data to the STORE LISTING Jul 15 10:53:56 but it doesn't let my publish. why? (I've released two apps before) Jul 15 10:55:17 skulltower, don't use onDestroy for such things Jul 15 10:55:25 skulltower: Isn't there a isFinishing() method you could check in onPause() and clear everything there? Jul 15 10:56:05 phyzloc, ooh i was using isFinishing() inside of onDestroy.. It's a great idea to use it onPause :) Jul 15 10:58:49 Works perfectly! Thanks phyzloc, EPG :) Jul 15 10:59:07 hi, i am using "huawei y511-u30" and it's still in warrenty. i want to root the device but after gathering few info from internet, i think i better backup device data/rom/bootloader or stuff important like that. but i'm not sure what to use and what should be done first.... ? Jul 15 10:59:28 shan, read the topic Jul 15 10:59:42 skulltower: glad I could help :) Jul 15 11:18:05 Is it bad for a fragment to get static's from it's activity? Should i just send needed variables as arguments to that fragment instead? Jul 15 11:18:49 skulltower: you should rather send variables as a bundle to the fragments creation Jul 15 11:19:02 avoid statics as much as possible Jul 15 11:19:38 Okay, kinda annoying to send few int's to few fragments tho :/ Jul 15 11:21:22 hard to know whats best without knowing your problem, but if its the same ints to different fragment you can probably use the same bundle creation Jul 15 11:21:28 when you replace an instance of a fragment with another fragment, does android call onDestroy on the fragment you replaced? Jul 15 11:23:43 jvrodrigues: I don't think its guaranteed Jul 15 11:27:41 Is it possible to have a list of all content providers currently running ? Jul 15 11:31:07 hi guys, does somebody know, how i can write something in the url_bar of chrome, via another application? Jul 15 11:31:26 RMBM: http://lmgtfy.com/?q=get+all+content+providers+android Jul 15 11:31:33 *from another application via intents/broadcast Jul 15 11:32:22 ph0o: you can't write something there, you can choose to launch an action intent that might be picked up by chrome Jul 15 11:34:35 heinrisch: hi, :) thats what i want yep (sry for the unspecified question) .. do you know how i can find the intents chrome is listening? Jul 15 11:35:08 ph0o: http://stackoverflow.com/questions/2201917/how-can-i-open-a-url-in-androids-web-browser-from-my-application Jul 15 11:35:35 you can't be sure that the users picks chrome, but it will open some app that can use the url Jul 15 11:36:39 android annotations in android studio always gives me trouble Jul 15 11:37:03 can someone who uses both tell me how you get started with both from the starta Jul 15 11:37:51 may be share your gradle file, and tell me what to do after starting a new android studio project Jul 15 11:39:53 heinrisch: thanks for the link, but i think there could be another way.. the guys from lastpass managed to load javascript in chrome to fill forms Jul 15 11:43:02 Estel: Just now I have installed a usb driver for my galaxy grand2 but still I am not able to see my device in adb devices Jul 15 12:43:36 Hey does anyone know how to animate in a Spinner view's dropdown view? Jul 15 12:44:00 Tried googling but end up with spinner/loading animations Jul 15 12:58:19 Does 1 dp scale or stay 1 on all screen densities? Jul 15 12:58:59 jesperj: 1dp is 1dp on all screens, but different amount of pixels Jul 15 12:59:22 heinrisch: Yeah I meant if the amount of pixels change for 1 dp also. Thanks Jul 15 13:01:09 jesperj, the whole point of dp is that it changes over screen densities Jul 15 13:01:13 1dp = 1px on mdpi Jul 15 13:01:24 1.5px on hdpi, 2px on xhdpi, etc Jul 15 13:01:43 Mavrik: I know. I just wanted to make sure it wasn't something special with 1dp. Kind of stupid idea really. Jul 15 13:02:04 uh. Jul 15 13:02:14 Mavrik: yeah yeah Jul 15 13:14:23 hey. We are making a questionare app. We will have questions over multiple pages(we assume fragments). Now the question is, how do we store data throughout the apps life time until it's time to submit this data? I am thinking of saving data to the bundle savedInstance. Jul 15 13:15:06 is it possible to receive all broadcast sent from an app, or received by an app (thirdparty, and already on the phone)? Jul 15 13:15:31 Beg, make a "SurveyData" singleton? Jul 15 13:15:44 or field in activity holding fragments? Jul 15 13:17:02 Beg: You need to change activities for new questions? Just curious.. Jul 15 13:17:32 phyzloc: no need, we still doing the OOD Jul 15 13:18:15 phyzloc: but it's time to soon decide on how the app will cooperate with other parts Jul 15 13:18:34 Beg: Ok.. Jul 15 13:19:08 Beg: Mavrik has good suggestions :-) Jul 15 13:20:41 yes, I agree, just trying to wrap my head around it. From what I know the objects are cleared from ram so the contents of the singleton would be emptied out when the app is brought to background? Jul 15 13:21:16 no. Jul 15 13:21:28 only if the whole app gets killed Jul 15 13:21:38 Beg: You could also create a database and put all answers in a table Jul 15 13:21:40 hence field in Activity is probably a better choice Jul 15 13:21:41 Right, but the state of the application is reset Jul 15 13:21:58 Beg: Then it doesn't matter if the app gets killed or not Jul 15 13:23:22 Morning Jul 15 13:23:42 Beg, I would store it in a sqlite DB Jul 15 13:24:28 that way if a network connection can't be made while the app is still alive, you at least store the data until the next time that you do get a network connection Jul 15 13:24:45 It's only a local app Jul 15 13:24:53 for now Jul 15 13:25:27 gotcha Jul 15 13:25:35 Beg: Most simplest is maybe to write it to a text file Jul 15 13:26:24 ^ that's also doable, right now to store some user information it was easier to just create a User class that implements Observable, then I have an observer that will write out a new json file anytime something is changed Jul 15 13:26:50 that looks like overkill Jul 15 13:26:56 but, I believe it adds to unessary complexity to add it to a database. For instance, how would it handle if the user wishes to go back and view his changes? Jul 15 13:27:20 hi, can anyone link me to something that will explain the standard for storing app data? (i'm pretty new to android dev) Jul 15 13:27:56 My thought was, I'd write an interpreter on the savedInstance, that way the activity could "restore" itself while I don't have to read values of individual objects to get my data back. Jul 15 13:28:09 gaminator, http://developer.android.com/guide/topics/data/data-storage.html ? :) Jul 15 13:28:20 gaminator, depends on type of data Jul 15 13:28:23 Blah, spinner doesn't expose the Popup variable :( Jul 15 13:28:41 thank you very very much! Jul 15 13:28:52 I think it will probably just be a json string Jul 15 13:29:29 gaminator, hmm... Jul 15 13:29:37 gaminator, simple data is usually stored in shared preferences Jul 15 13:29:41 (and not as json strings) Jul 15 13:30:37 Mavrik, hahahaha, the other thing i was considering was xml or maybe a simple database Jul 15 13:30:49 reencoding video on the device is slow Jul 15 13:30:54 gaminator, well, SharedPreferences are simple XML :D Jul 15 13:30:56 should I be able to use getSharedPreferences() from a PopupWindow? I can't seem to Jul 15 13:31:02 svm_invictvs, what are you encoding it to? Jul 15 13:31:04 gaminator, and you have SQLite database for larger amounts of data :) Jul 15 13:31:10 many android devices have a built in h.264 encoder Jul 15 13:31:12 jonc-1: mp4 Jul 15 13:31:14 d0de, PreferenceManager.getDefaultSharedPreferences(contexT) Jul 15 13:31:27 a hardware h.264 encoder Jul 15 13:31:28 all android devices with camera have a H.264 encoder. Jul 15 13:31:31 jonc-1: Is there an API to access that? Jul 15 13:31:39 Mavrik, it is just a list of contacts with data to go with each, like profile information Jul 15 13:31:53 gaminator, ah, use SQLite database then Jul 15 13:31:54 MediaRecorder ? Jul 15 13:32:10 is it possible to receive all broadcast sent from an app, or received by an app (thirdparty, and already on the phone)? Jul 15 13:32:21 Mavrik, alright, again thanks for the help! Jul 15 13:32:45 jonc-1: I seem to recall looking at that, but I recall that it didnt' have a way to just han it raw images Jul 15 13:33:55 svm_invictvs, thereis a MediaCodec API on Android 4.2+ which uses hardware H.264 encoder for transcoding Jul 15 13:34:10 it's rather complicated but it WILL be significantly faster than anything you can do on CPU Jul 15 13:34:13 Mavrik, ty! Jul 15 13:34:44 svm_invictvs, http://developer.android.com/reference/android/media/MediaCodec.html seems a bit more complicated Jul 15 13:35:00 Mavrik: Problem is that this app targes 4.1 Jul 15 13:35:19 But, I could add some conditional code Jul 15 13:35:20 MediaCodec is 4.1+, but there is also an updated one that is 4.3+ it seems Jul 15 13:35:21 beggars really can't be choosers. Jul 15 13:35:23 :) Jul 15 13:35:41 the issue with 4.1 IIRC is that it has some quirks regarding pixel formats Jul 15 13:35:58 svm_invictvs, http://bigflake.com/mediacodec/ Jul 15 13:36:41 CTS covered MediaCodec in 4.3 so before that it's cowboy country Jul 15 13:36:45 Mavrik: Let's look. I'm basically reading in a video that's recorded and blending it with other videos frame by frame. The bottleneck is still in the writing of the frames. Jul 15 13:36:53 Mavrik: CTS? Jul 15 13:37:02 oh, test suite Jul 15 13:37:05 http://source.android.com/compatibility/cts-intro.html Jul 15 13:37:06 mhm Jul 15 13:37:31 #android Jul 15 13:37:46 I suppose I could take my frames and draw them to OpenGL Jul 15 13:37:51 svm_invictvs, https://android.googlesource.com/platform/cts/+/jb-mr2-release/tests/tests/media/src/android/media/cts/EncoderTest.java Jul 15 13:37:54 4.1 Jul 15 13:37:54 But that seems excessive. Jul 15 13:38:24 Yeah, so my software solution would work on 4.1 and on 4.3 use MEdia Codec, eh? Jul 15 13:38:38 svm_invictvs, if you read that article, MediaCodec is supported from 4.1+ Jul 15 13:38:50 4.3 mainly seems to add support for creating a video from a surface Jul 15 13:38:50 but I haven't used it so far back, so I don't know what issues you could get there. Jul 15 13:38:59 It looks like syncing audio would be a pain in the ass. Jul 15 13:39:01 in 4.3 they added support for encoding from OpenGL or camera Jul 15 13:39:12 svm_invictvs, uh... as long as your timestamps are ok it works :) Jul 15 13:40:13 If I released 1.0.0 for API8+ and now I want to release 1.0.1 for API10+. Will 1.0.0 still be available for download for people with API8? Jul 15 13:40:32 Yes Jul 15 13:40:35 I think Jul 15 13:41:21 beta, no, it wonćt Jul 15 13:41:25 unless you to multiapk Jul 15 13:41:31 older verison will be unpublished Jul 15 13:41:49 great Jul 15 13:42:02 Mavrik: are you sure? I am pretty sure that there is a choice for that Jul 15 13:42:05 unavailable unless you set a max sdk Jul 15 13:42:30 heinrisch, my Play Store shows all older versions as unpublished Jul 15 13:42:41 so API8 might just be 0.8% but 2.3.X is still up to 20%. What API levels do you people support? Jul 15 13:42:48 beta, you only lose 0.7% of the total market share if you don't publish for api 8, so if it is going to take any amount Jul 15 13:42:51 yes, but if you increase the API version older versions can be available Jul 15 13:42:54 api 2.3 is 13.5% Jul 15 13:42:57 heinrisch, because 10+ includes 18 Jul 15 13:42:59 api 10* Jul 15 13:43:01 beta, 15+ for new apps Jul 15 13:43:06 10+ for some older apps Jul 15 13:43:33 15=4.X? Jul 15 13:43:39 Yes Jul 15 13:43:41 4.0.3+ Jul 15 13:43:42 15 = 4.03 Jul 15 13:49:49 My R file went missing when I connected my project to git. Anyone know why? Jul 15 13:50:12 R is generated Jul 15 13:50:17 try rebuilding Jul 15 13:50:37 tried Jul 15 13:51:07 I get this: Error in an XML file: aborting build. But there is no error Jul 15 13:51:22 Is onCreate called on orientation change? Jul 15 13:53:26 I don't know what you mean Jul 15 13:53:39 is there a way I can use findViewById from a PopupWindow? I have the appropriate context Jul 15 13:54:49 d0de, do you know the parent activity? Jul 15 13:54:52 Papaecho91: Are you sure there are no errors? Jul 15 13:54:58 skulltower, yes Jul 15 13:55:11 ((Activity)context).findViewById() Jul 15 13:55:18 Papaecho91: Navigate to the XML file in eclipse and check Jul 15 13:56:02 here is the log Jul 15 13:56:03 http://pastebin.com/hZ22CxVg Jul 15 13:57:04 Papaecho91, Yea no errors there :D Jul 15 13:57:54 skulltower, that's great, thanks :D Jul 15 13:58:06 d0de, does it work? Jul 15 13:58:13 well there it seems to be something duplicate Jul 15 13:59:09 I solved it, I deleted the appcombat lib Jul 15 13:59:19 Papaecho91: http://stackoverflow.com/questions/22283279/errors-in-attrs-xml suggests "It's seems like problem about your appcompat_v7 library so remove it from project and add it again and clean and built your project " Jul 15 13:59:30 Hello guys, I can't find a way how to listen to a port using bluetooth server. I've used bluetooth about 4 years ago on Linux, there I had to specify a port number to listen for a bluetooth connection. Jul 15 13:59:35 skulltower, hrm, no. It runs but crashes with a RunTimeException Jul 15 14:00:06 skulltower, an InvocationTargetException Jul 15 14:00:11 d0de, yea i thought so :D That's not the activity's context i guess Jul 15 14:00:14 I probably need to rethink this and just to the work in the activity Jul 15 14:00:26 do the work* Jul 15 14:00:31 Has the concept of listening on a portnumber changed to a UUID kind of concept? Jul 15 14:01:19 skulltower, the context is the application context Jul 15 14:01:23 should it be the activity context? Jul 15 14:03:58 d0de, where are you calling that from ? Jul 15 14:04:31 from the mainactivity Jul 15 14:04:53 with this.getApplicationContext() Jul 15 14:06:33 i have two form pages in my app. Jul 15 14:06:33 i need data entered by user on both these pages to show result on another page. Jul 15 14:06:33 do i need to send first page data using intent to second page and then to the result page ? or is there any other way ? Jul 15 14:07:24 i am facing a issue related to cookies , the activity code is http://pastebin.com/YnRkdzDU . When loading a url in webview the cookies in the response has a expires filed and is set to 10 mins . Is it a good idea to edit it and set a new date time . Jul 15 14:07:40 d0de, you should inflate the layout for the popup and then send that layout as the context Jul 15 14:07:57 skulltower, thanks for your help but I think a see a way to do all this in the activity, the reason I wanted to move it to the popupwindow in the first place was flawed Jul 15 14:08:22 d0de, even better :) Jul 15 14:22:40 Hello people, I have been trying to get my samsung galaxy pocket to NOT charge when plugged in via USB ( don't ask why - because I want to - long story ok ?)) Jul 15 14:22:58 Trying code and trying root stuff. Jul 15 14:23:10 I find plenty of ways to do what I want with other phones. but not this one... Jul 15 14:23:14 any ideas ? Jul 15 14:23:40 no, not the place to ask Jul 15 14:24:33 Because code can not do it ? Jul 15 14:24:49 are you sure ? Jul 15 14:24:54 :) Jul 15 14:25:02 How sure ? Jul 15 14:27:06 There is an app that does that, however does not work on this model. Jul 15 14:27:11 fyi Jul 15 14:30:35 i can write a file to the directory returned by 'getExternalStorageDirectory', but can't read it using the same app Jul 15 14:30:56 did you request READ and WRITE permisisons? :) Jul 15 14:32:17 Is there way, to query standard DNS cache for names cached for given IP ? Jul 15 14:34:26 hi guys, i'm trying to write/edit a private file to/in android internal storage however i am getting the error "FileNotFoundException", I assume this is because the file is not there yet, however I cannot figure out how to create a file in the first place. Jul 15 14:34:53 Mavrik, yes, both Jul 15 14:35:37 either Java or C/C++ Jul 15 14:36:14 hi Jul 15 14:36:22 hi molavy Jul 15 14:36:55 anyone here use google analytics and filters? Jul 15 14:37:01 i want show keyboard and get user touched keys , but i don't have edittext and don't need edittext on view Jul 15 14:37:06 how can i implement it Jul 15 14:40:39 any idea? Jul 15 14:40:53 Is it feasible to use emacs+terminal for android dev? I found eclipse to be a nightmare... Jul 15 14:41:28 molavy, it shouldnt be hard: You have to show soft input and then register an onKeyEvent listener Jul 15 14:41:32 if i'm not mistaken Jul 15 14:41:41 but would be where i would start Jul 15 14:48:41 jvrodrigues: any sample code ? a link or guide? Jul 15 14:53:48 Is there something with shapes that was not in API8 because the corners are inverted on API8 devices for my app. If I round the left corner the right corner gets rounded instead and vice versa Jul 15 15:02:02 i'm a little confused by the "large icon" in notifications, if i don't set this, what should happen? i currently seem to get a mess where the large icon should be Jul 15 15:02:23 i really just want it to be my small icon in the center of the box Jul 15 15:02:59 is it recommended to convert ALL hardcoded strings in an android application to the strings xml file or just some? It will be a lot of strings and in some places I think the hardcoded strings contribute to readability. Jul 15 15:03:20 Before i was suggested to save my settings onPause. And destroy them onPause->if (isFinishing). But now i realised that it can be paused without isFinishing and then destroyed, leaving my settings saved.. Are there any other ways to check this? Jul 15 15:03:26 I'm talking about strings in java code not the xml files Jul 15 15:04:00 jesperj: hard to say, i assume that ideally anything displayed to the user should be translateable hence the recommendation Jul 15 15:14:24 דאיקט Jul 15 15:14:28 hey, sorry for that Jul 15 15:14:54 i am trying to get a remote service which is in a library to get started, but it doesn’t Jul 15 15:15:03 I'm not sure I understand why apps have to be translated anyway. It's easier to have it in english and make one user guide in english only, or when to help a user "navigate to foo and then click bar". Also easier with error messages. Jul 15 15:15:10 people will just have to learn english ;= Jul 15 15:15:13 ;) Jul 15 15:15:54 anyone has any kind of knowledge on this? i am starting an app which has a dependency and export on the library, and i am using startService to make the service start Jul 15 15:15:57 but it doesnt.... Jul 15 15:17:19 jesperj, xml's are most likely for translations and comfort to change the values at will. Jul 15 15:18:29 jesperj, altho if you have a lot of values it would be best just to store them in a database or something :) Jul 15 15:19:52 jvrodrigues: onkeyEvent return this Jul 15 15:19:53 @Override Jul 15 15:19:53 public boolean onKeyEvent( KeyEvent event ) { Jul 15 15:19:53 Log.d( TAG, "got one" ); Jul 15 15:19:53 return true; Jul 15 15:19:53 } Jul 15 15:19:56 sorry Jul 15 15:20:04 i want paste error code Jul 15 15:20:33 The method onKeyEvent(KeyEvent) of type ActHome must override or implement a supertype method Jul 15 15:25:54 anyone about remote services in library? Jul 15 15:27:17 ohai. I'm trying to get a handle on singletons injected into my application with dagger, from the robolectric tests. I don't know how to make injectMocks happen at my test level. Post on this is here: https://gist.github.com/adelnizamutdinov/7483963 can anyone help? Jul 15 15:27:38 basically, my test application is fine, but I want a handle on the singleton injected into it from within the test so I can manipulate its state Jul 15 15:29:02 is anyone using AndroidStudio 0.8, BlankActivity with Fragment. I want to replace FragA with FragB.. but getting error... must implement OnFragmentInteractionListener Jul 15 15:29:12 is there a trick to this? Jul 15 15:29:20 perhaps someone has some sample code Jul 15 15:30:17 anyone use android studio + android annotations combination regularly? Jul 15 15:34:10 IrishGringo you need to tell your activity to implement FragB.OnFragmentInteractionListener, instead of FragA.OnFragmentInteractionListener Jul 15 15:34:21 IrishGringo I usually change the name of my fragment interfces, that is just the generated one Jul 15 15:35:02 IrishGringo so if you generate multiple fragments they will all have an interface OnFragmentInteractionListener, but they are different interfaces Jul 15 15:37:15 I am putting my code up in a couple minutes... but would you have some code smaples? Jul 15 15:40:16 Does android have one push notification system like Apple's push notification ? Jul 15 15:40:56 bluesm: GCM? Jul 15 15:42:26 flan3002: And it is the messaging system that android device connect to every time in the while to check for new remote notification ? Jul 15 15:43:07 I got it working, thanks Jul 15 15:43:45 bluesm: I don't get your question... Jul 15 15:44:44 flan3002: Does anybody could send push notification to android device from it's server ? Or it is centralized ? Jul 15 15:45:11 flan3002: So android device wouldn't have to connect with several servers to check notification - to preserver battery. Jul 15 15:45:40 bluesm: I haven't used it, but why don't you read about it on it's website? Jul 15 15:49:34 flan3002: Ok. Thanks for info Jul 15 15:50:27 is it possible to put the emulator into sleep mode using adb? Jul 15 15:51:27 Which jdk/jre do you use? I must have used a higher one bfore because now it complains I cant switch on strings...what do your ecommend? 1.6,1.7 or 1.8? Jul 15 15:51:58 tinker: It's not just about the JDk... It's about the --source-someting argument as well. Jul 15 15:52:43 no one with expirience with remote sevices in library? not much documentation on this subject as well Jul 15 15:52:48 Hi, I have a more general question. The app I am working on should save profile pictures. These are uploaded to the server and saved to a from outside non-accessible directory. Which they should not be (accessible). But the images should also be listed in a friends list. And saving the images these way seem to complicate it. What is the best practice to store the images, so they are accesible by the but not from outside? Jul 15 15:54:26 I'd say save them in sql as a BLOB Jul 15 15:55:38 but if you look at facebook for instance, they don't seem to care to much about this, they just use an url that is very unique so that no one can guess to a picture, and they disable search bots from finding them Jul 15 15:57:27 how do you fetch the pictures now? http? Jul 15 15:58:29 Beg: The pictures are uploaded by the app as multipartetenties using http Jul 15 15:59:27 Beg: The facebook way sounds like the most easy. I will probably implement it that way. Thank you. Jul 15 15:59:34 store them in S3 and set the access control to not be public Jul 15 15:59:36 As of ADT 14, resource fields cannot be used as switch Jul 15 15:59:37 cases. Invoke this fix to get more information. Jul 15 15:59:38 byt89: by far the simplest thing to do is just use random filenames and only give the filenames to trusted people Jul 15 15:59:49 ^ i did not have that problem before, how do you do then? Jul 15 16:00:01 tinker: if/elseif Jul 15 16:00:15 alternatively, you'll need to make a script to serve them out, which isn't that hard, either from filesystem or database Jul 15 16:00:32 there's no "correct" way to do it, depends on your infrastructure and preference Jul 15 16:01:04 byt89: you could write your own i don't know what to call it, image streamer? that checks permissions before it let's information out Jul 15 16:01:35 it's fairly easy in php and nodejs Jul 15 16:01:36 indeed Jul 15 16:01:49 Thank you guys. I will look into it. Jul 15 16:01:50 nodeJS FTW! Jul 15 16:02:41 JakeWharton, ah ofc, but why is this change made? I like the switch... Jul 15 16:03:01 because final values are inlined and there were resource collisions in library projects Jul 15 16:03:29 I see Jul 15 16:06:24 But why did I not get this warning on Windows? Jul 15 16:07:14 JakeWharton: aloha! Jul 15 16:09:04 Why does http://developer.android.com/reference/android/provider/MediaStore.Audio.Media.html not include a field for GENRE? Jul 15 16:09:30 Or in other words. There's documentation to query by a known genre. How do I fetch tracks, including the genre? Jul 15 16:12:00 freeone3000: http://developer.android.com/reference/android/provider/MediaStore.Audio.Genres.html Jul 15 16:12:20 it's a different table Jul 15 16:13:16 mattblang: I looked at your responce to me, and i have been studying my code for about 20 minutes... I think I need more hints... please Jul 15 16:13:23 hi Jul 15 16:13:32 h4k1m: hi Jul 15 16:13:35 IrishGringo shoot me a pastebin with your current code Jul 15 16:13:41 how do we fix the issue: getactionview is undefined for the type MenuItemCompat Jul 15 16:13:59 I ve imported android.support.v4.view.MenuItemCompat Jul 15 16:14:00 mattblang: ok... 4 minuts Jul 15 16:14:49 according to google it's a jar mismatch Jul 15 16:15:00 what does it mean? Jul 15 16:15:21 how do you mean? Jul 15 16:16:50 thepoosh: Ah. So that requires a separate query, or can I do a join with CursorLoader? Jul 15 16:17:05 I think there is a way to join but I'm not sure Jul 15 16:17:11 google is your best friend Jul 15 16:18:11 Can I set my colors to deprecated? D: Jul 15 16:19:18 I could comment out the colors I don't want used anymore, but then everything would break... probably Jul 15 16:20:18 Syzygy__: if you're planing on removing them and you're developing an SDK you should deprecate Jul 15 16:20:28 if it's your own app, just remove Jul 15 16:20:47 let's go with the first option - how? Jul 15 16:21:04 hmmm Jul 15 16:21:05 not sure Jul 15 16:21:05 I would like to give the other developers some time to fix the code. Jul 15 16:23:06 Syzygy__: I think you need to create a new folder for the deprecated values Jul 15 16:23:22 i'm not sure that you can add an annotation for that Jul 15 16:23:26 something is wrong with support-library-v4.jar? Jul 15 16:23:41 it doesnt recognize getActionView Jul 15 16:23:54 Anyone here that use linux/ubuntu? When i try to create a run configuration the project does not show up as an alternative. I have fixed other things and it now builds but I cannot run. Jul 15 16:23:57 h4k1m: right click the project, android>get support library Jul 15 16:24:02 mattblang: http://pastebin.com/rgpcrTQR Jul 15 16:24:39 I have created aar and used "compile files('...')" but I cannot reference resources from the aar in my application xml. it is giving "No resource found that matches the given name (at 'background' with value '@drawable/....')." error. I have other aar which does not get referenced for the resources and they work fine. does aar only allow to package the resources for its own usage but not for external referencing ? Jul 15 16:25:45 thepoosh: right-click properties > java build path? Jul 15 16:25:56 just a sec Jul 15 16:26:09 ok Jul 15 16:26:13 h4k1m: http://stackoverflow.com/a/13517304/1056359 Jul 15 16:27:27 mattblang: did you get it? Jul 15 16:27:33 mattblang: http://pastebin.com/rgpcrTQR Jul 15 16:29:21 thepoosh: I guess that the lib & android sdk arent compatible right? Jul 15 16:29:28 I mean the two versions Jul 15 16:29:43 then you should update your adt Jul 15 16:30:11 hey all, is there a good website for OSS android libraries and controls? Jul 15 16:31:57 IrishGringo yeah, one sec Jul 15 16:32:04 thanks Jul 15 16:32:39 or does anyone know if there's an open source lib that allows apps to put media controls in the notification pane? Jul 15 16:32:43 thepoosh: the error disappeared after I ve followed the steps Jul 15 16:32:50 yay for me Jul 15 16:32:59 both here and on SO Jul 15 16:33:05 thepoosh: what have it done? Jul 15 16:33:08 just to know Jul 15 16:33:21 imported a new version of the support lib Jul 15 16:33:24 IrishGringo so you want to use FRAG02 instead of that placeholder right? Jul 15 16:33:31 yeh Jul 15 16:33:57 mattblang: yes... I was wondergin about that placeholder... why it is done that way Jul 15 16:34:29 ok, quick question. How much does the "fragmentation" of Android really affect app makers? Jul 15 16:34:39 I was not sure what the placeholder is for, It seems to complicate things for me Jul 15 16:35:16 Was at a weekend-long event that had an app to follow the schedule and display a map. It looked very much like the developer just put the code from the iOS version through a converter and deployed from there. Jul 15 16:35:35 Isn't the ADB installed with platform-tools? Jul 15 16:35:49 When I mentioned it to the event organizer, this is the response: "Our developer said that it's very difficult to create an app that is compatible with every single Android device because of some inherent differences." Jul 15 16:36:28 IrishGringo just delete that and forgot about it. I personally don't do it that way. It is a static inner class that is generated as an example. If you uncomment the .add(FRAG02) line to add your FRAG02, it is going to run the lifecycle methods. Notice in FRAG02, in onAttach, it tries to typecast the activity as the OnFragmentInteractionListener that is defined in Frag02, but your MyActivity doesn't implement that interface, so it can't. This Jul 15 16:36:29 throws an exception that, you can see, is handled. Jul 15 16:37:04 IrishGringo so if you Implement FRAG02.OnFragmentInteractionListener in MyActivity, that error will go away Jul 15 16:37:24 IrishGringo do some reading about interfaces and callbacks, that is fundamental to understanding how to use Fragments in Android Jul 15 16:38:26 mattblang: I'm studying your comment... give me a second Jul 15 16:38:56 * RMBM is looking for a hard-core, almost kernel level, dev for some consulting. pm me if interested. Jul 15 16:38:57 does adt does not include the new build system? only android studio? Jul 15 16:39:54 why is not adb installed via the sdk manager? Jul 15 16:42:08 mattblang: so... PlaceholderFragment() is just fluff that is there only to confuse me... I can use .add FRAG02() as long as I implement FRAG02.OnFragmentInteractionListener in my main activity. Jul 15 16:42:20 IrishGringo yup Jul 15 16:42:45 thus... I should be able to do a .replace FRAG03 as long as I implement a FRAG03.OnFragmentInteractionListener Jul 15 16:43:56 next question... I am gooling but not sure how to implement OnFragmentInteractionListener.. could edit the pastebin with an example for FRAG02 please Jul 15 16:44:09 I have this weird background showing up on my ProgressDialog on a Moto X which looks like this --> http://take.ms/4XcdQ Anyone know how to get rid of that? Jul 15 16:44:30 i want to export my app as apk to test it on my phone, Jul 15 16:44:41 will this affect my project folder? Jul 15 16:45:18 mattblang: thus... I should be able to do a .replace FRAG03 as long as I implement a FRAG03.OnFragmentInteractionListener Jul 15 16:45:24 next question... I am gooling but not sure how to implement OnFragmentInteractionListener.. could edit the pastebin with an example for FRAG02 please Jul 15 16:45:45 IrishGringo you will have to do some reading on implementing interfaces in Java for that one. Jul 15 16:45:55 Is there way, to query standard DNS cache for names cached for given IP ? Either C/C++ or Java Jul 15 16:46:05 IrishGringo don't have time to explain right now, but it is super important and there are a lot of good reads on Google Jul 15 16:46:32 IrishGringo do some reading on that topic, and I'll be here if you run into problems on the way Jul 15 16:46:50 mattblang: ok.. thanks Jul 15 16:48:28 it seems like all the examples are using onClickListener.. I was just setting onClick in the XML... is listener a better solution? Jul 15 16:52:59 Anyone developing on Linux/Ubuntu? Since there is no GOOGLE usb driver for linux, I have to download the driver for my particular phone instead? Jul 15 16:53:25 no, generally you need no driver on linux Jul 15 16:53:44 it uses libusb to talk to the device directly. you may need to set up udev permissions to allow your user raw access to the device; the rules are on the SDK pages Jul 15 16:55:30 mattblang: is there a chance you could so a github or pastebin example of replacing fragments from Android Studio... I am reading the same material over again. Jul 15 16:55:42 an I think it may be dated or changed in AS 0.8 Jul 15 16:56:02 PLEASE HELP! i have a problem refreshing a remote service, it does not install and start porpeory Jul 15 16:58:50 i made an unsigned apk however when i send it to my phone its says file extension apk.lnk Jul 15 16:58:58 and wont open the file at all Jul 15 16:59:06 Woah, RecyclerViews are a nightmare Jul 15 16:59:51 dragorn, ty but I cant find how to fix the USB issue on the sdk pages Jul 15 17:00:17 nevermind Jul 15 17:00:47 tinker: http://developer.android.com/tools/device.html Jul 15 17:01:49 autrilla oh no Jul 15 17:01:54 How can I make my service stop itself? I've tried stopSelf() and stopForeground(); they don't give any error but neither kills the service Jul 15 17:02:19 dragorn, ty Jul 15 17:02:21 I'm calling them from a runnable, could that be the problem? Jul 15 17:03:29 Is there any kernel for Android 4.4.2/4.4.3 based on kernel 3.14+ ? Jul 15 17:04:04 dragorn, when it says log in as root, is sudo enough? Jul 15 17:06:49 i need help, so i generated unsigned apk file and sent it to my phone Jul 15 17:06:55 it says application not installed Jul 15 17:07:00 any idea how to fix? Jul 15 17:11:13 if a service has a command like { stopself(): Log.d("tag", "the service hasn't stopped yet"); } then the log message should never show in logs, right? Jul 15 17:11:28 that first colon should be a semicolon obv Jul 15 17:12:54 d0de: it will only not show in logs if stopself makes it so, by for example giving a "return" to not execute the code after stopself(); Jul 15 17:13:00 as I have understood it Jul 15 17:13:45 eh actually that was wrong Jul 15 17:14:04 nevermind me Jul 15 17:14:25 d0de: I don't see why it wouldnt show in the logs Jul 15 17:14:30 I had imagined that as soon as stopSelf() was called, the service would immediately halt and no further code would be executed, but that doesn't seem to be the case Jul 15 17:15:13 I really shouldnt try to help or give advice when I dont know what the fuck Im talking about lol Jul 15 17:15:17 sorry Jul 15 17:15:46 blind leading the blind OP Jul 15 17:15:51 \o/ Jul 15 17:15:59 d0de, of course that's not the case Jul 15 17:16:19 d0de, functions always execute to completion unless returned early or exception Jul 15 17:16:21 always Jul 15 17:16:56 lol Jul 15 17:17:09 then what does stopSelf actually do? Jul 15 17:17:26 basically, my service is hanging around after I call stopSelf(), seemingly indefinitely Jul 15 17:19:17 "seemingly" Jul 15 17:19:21 by what do you quantify this Jul 15 17:19:25 d0de, learn some basic programming first Jul 15 17:19:34 stopSelf sets a flag for the service to stop Jul 15 17:19:37 obviously Jul 15 17:19:43 since early return is not possible with a function call Jul 15 17:21:13 so I should just assume the service will be killed by the system as necessary, and not worry about it after I've made the call? Jul 15 17:27:18 WifiManager mainWifiObj = (WifiManager) getSystemService(Context.WIFI_SERVICE); Jul 15 17:27:36 when i put this in my code (which seems well quoted on the web) it complains that it can't find the symbol method getSystemService Jul 15 17:28:30 I've tried changing it to Context.getSystemService and I get: "non-static method getSystemService(string) cnnot be referenced from static context. Jul 15 17:29:30 hufflepuff: You need an instance of a Context. Jul 15 17:29:41 ok, so I tried Context mcontext; Jul 15 17:29:49 hufflepuff: Do you give it a value? Jul 15 17:29:51 and then mcontext.getSystemService (Context.WIFI_SERVICE); Jul 15 17:29:59 and then it complains mcontext isn't initialized Jul 15 17:30:04 hufflepuff: Because it isn't. Jul 15 17:30:15 yes, well I try: Context mcontext = new Context(); Jul 15 17:30:19 and it doesn't like that either Jul 15 17:30:28 No, don't. You can't create it... Jul 15 17:30:36 hufflepuff: Because the constructor is protected, right. You need to be passed it in from an Activity or a Service. Jul 15 17:30:48 so how do I do this? Jul 15 17:31:00 I'm still learning Java Jul 15 17:31:09 and looking at examples online and nothing looks like it works Jul 15 17:31:12 hufflepuff: Generally, accept it as a constructor or method parameter, and pass it in from your Activity when you call it. Jul 15 17:31:43 where would whatever is calling it get it from? Jul 15 17:32:19 I don't even know what the Context class is Jul 15 17:32:25 hufflepuff: Activity is a Context. Jul 15 17:32:39 hufflepuff: So if you have an Activity, within instance methods, 'this' is a Context (as well as an Activity). Jul 15 17:34:23 so its created for every Activity? Jul 15 17:34:39 every Activity *is* a context Jul 15 17:35:07 Activity is a subclass of Context Jul 15 17:35:20 ok, can you please provide me a small snippet of working sample code that would allow me to correctly initialize a WifiManager object? Jul 15 17:35:29 no. :) Jul 15 17:35:51 JesusFreke, why not? Jul 15 17:36:05 Not a fan of spoon feeding Jul 15 17:36:08 is it that complicated? Jul 15 17:36:11 hufflepuff: public class MyActivity extends Activity { public void onCreate(final Bundle savedInstanceState) { WifiManager wifiObj = (WifiManager)getSystemService(Context.WIFI_SERVICE); } } Jul 15 17:36:29 Me giving you the code doesn't help you learn what needs to be done. Jul 15 17:36:36 hufflepuff: You'll notice the only difference between my code and your code is that in my code, 'this' is an instance of Context (since it's an instance of Activity). Jul 15 17:36:41 JesusFreke, it might Jul 15 17:37:05 copypasta is not a valid learning method :) Jul 15 17:37:10 i can often learn more from looking at code than from partial explanations Jul 15 17:37:21 g00s, i saw you were talking to someone about my slides last night Jul 15 17:37:32 teach them how to fish right? hufflepuff, next time just browse the documentation: http://developer.android.com/reference/android/net/wifi/WifiManager.html it's literally the first paragraph. Jul 15 17:37:33 in the future, make sure they watch the video - the slides were never meant to be used on their own Jul 15 17:37:36 :P Jul 15 17:38:45 ok, now that i'm looking at the code... Jul 15 17:39:06 why do I not need to set it to a Context? Jul 15 17:39:20 hufflepuff: You know how I keep saying that every Activity is a Context? Jul 15 17:39:26 yes Jul 15 17:39:38 hufflepuff: again, literally the first paragraph Jul 15 17:39:39 http://developer.android.com/reference/android/content/Context.html Jul 15 17:39:40 hufflepuff: Does that sentance just pass you by? Jul 15 17:40:45 So, because you are extending an Activity it knows that getSystemService is associated with that activity Jul 15 17:44:33 ok, it compiles without complaint now Jul 15 17:44:44 but I would like to understand this better Jul 15 17:46:51 hufflepuff: getSystemService() requires a context, and Activity is a context, so you pass it your Activity instance. Jul 15 17:47:02 hufflepuff: If you got specific questions, ask. Otherwise, read. Jul 15 17:47:03 Should android:allowBackup="true" be set in application or outside? Jul 15 17:47:19 anybody here used cloudant in android? Jul 15 17:47:49 Is your question *why* getSystemService() requires a context? Jul 15 17:49:04 okay, I guess I have two sources of confusion here Jul 15 17:49:06 JesusFreke: it doesn't Jul 15 17:49:24 JesusFreke: getSystemService is a method of a context Jul 15 17:49:38 the issue here is (wifiManager) getSystemService (Context.WIFI_SERVICE) Jul 15 17:49:58 right, sorry Jul 15 17:50:11 Napalm: Which makes it require an instance of Context, no? Jul 15 17:50:18 so first question is: why do I not need to say: Context.getSystemService Jul 15 17:50:25 rather than simply getSystemService Jul 15 17:50:43 because your getting the client side of the service for that context Jul 15 17:50:47 just getSystemService will work, as long as you're in an instance method of a Context subclass (i.e. an Activity) Jul 15 17:51:16 okay, so then the 2nd question is do I actually need Context.WIFI_SERVICE vs just say: WIFI_SERVICE Jul 15 17:52:43 I believe just WIFI_SERVICE should work. But usually constants are referred to including the class name, for constants outside of your immediate class. Jul 15 17:52:50 hufflepuff: getSystemService(Context.WIFI_SERVICE) from outside the context. getSystemService(WIFI_SERVICE) from inside the context Jul 15 17:53:18 ok, well from inside the onCreate, both Context.WIFI_SERVICE and WIFI_SERVICE compile Jul 15 17:53:25 don't know if they work, but they compile Jul 15 17:53:33 correct they both are the same thing Jul 15 17:53:38 Context.getSystemService and Activity.getSystemService do not work Jul 15 17:53:42 but getSystemService does Jul 15 17:53:46 its just WIFI_SERVICE on its own wont work when not in a Context Jul 15 17:54:10 because you are not qualifing the package path for the class the variable is from Jul 15 17:54:17 i'm confused why either Context.WIFI_SERVICE or WIFI_SERVICE is acceptable but Context.getSystemService is not acceptabe Jul 15 17:54:22 by not specifying it you are saying it is from the current class Jul 15 17:54:27 which in the case of Activity it is Jul 15 17:54:51 is that because Context is a class whereas the getSystemService requires an instance Jul 15 17:54:52 hufflepuff: go learn java Jul 15 17:55:00 Napalm, I am trying to learn Java Jul 15 17:55:05 hufflepuff: either is acceptable, within a Context subclass Jul 15 17:55:11 this is #android not #java Jul 15 17:55:17 When I import my project it is called MainActivity instead of the real name. Why? I can't hoose to run it as a project in Run configurations either. What could be the problem here? Jul 15 17:55:34 napalm, wifimanager is an android related issue Jul 15 17:55:39 no Jul 15 17:55:45 what you are asking is a Java question Jul 15 17:55:49 its nothing to do with Android Jul 15 17:56:04 napalm, is that a horrible thing? honestly? Jul 15 17:56:21 i am obviously trying to learn and not just be spoonfed which was what the previous complaint was Jul 15 17:56:37 i have the thing compiling but i want to understand why one thing works and the other doesn't... Jul 15 17:56:40 well. we have explained, you could go online and look these things up Jul 15 17:56:51 but something like Context.getSystemService is generally frowned on. In particular, something like Context.blah is usually only used for static methods. But in that case, you are using it to refer to an instance method. Jul 15 17:57:14 jesus, okay, I think I just said that actually Jul 15 17:57:36 that Context.blah was a class whereas getSystemService should be executed from a particular instance of Context Jul 15 17:57:43 tinker: you can rename the project during the import process. its a little tricky. you have to select the project in the import dialog and then click MainActivity and you can type in a new name Jul 15 17:57:44 hufflepuff: well, there's a difference between what's "allowed" (i.e. what the language allows), and what is good practice Jul 15 17:58:00 hufflepuff, I would advise you to read a book about Java or take a rudimentary tutorial. This is basic stuff about imports and instances that you need to know before you even start developing for Java, let alone Android Jul 15 17:58:01 hufflepuff: the semantics are exactly the same Jul 15 17:58:04 jesus, interestingly, Context.getSystemService isn't allowed Jul 15 17:58:07 it's just a style guideline Jul 15 17:58:33 because of the static issue Jul 15 17:58:36 hufflepuff, because it's an instance of Context, not a static method in the class Jul 15 17:58:46 it needs* Jul 15 17:58:55 why i`m getting this line on the listview? Jul 15 17:58:55 http://puu.sh/acCYw.png Jul 15 17:58:56 is it not? Huh. I thought that would still call the method on the "this" instance. Jul 15 17:59:18 interestingly, this.getSystemService works Jul 15 17:59:24 as does getSystemService Jul 15 17:59:27 Suchorski: its a divider. add android:divider="@null" android:dividerHeight="0dp" to your ListView in the layout Jul 15 17:59:29 but not Context.systemService Jul 15 17:59:34 JesusFreke, you need to class this explicitly if you write like that. Context.this.getSystemService works Jul 15 17:59:35 Napalm, does that solve my problem though? Why cant run configuratiosn find it? Jul 15 17:59:41 tks Napalm Jul 15 17:59:58 Suchorski: you probably also want to override isEnabled() in your Adapter and make it always return false; Jul 15 18:00:23 anyway, I appreciate the help... I think I actually understand this better now Jul 15 18:01:04 I don't think you do @ hufflepuff, no offense :) Jul 15 18:01:15 tinker: because its not got a .project Eclipse project file.. so it doesn't have a name so it takes the name from the first Activity.. (kinda a stupid import) Jul 15 18:01:47 Afzal: I don't think that's accurate. He may not understand it perfectly yet, but I'm sure he has a better understanding now Jul 15 18:01:55 everyone has to learn at some point :) Jul 15 18:02:12 Agreed Jul 15 18:02:24 for a fragment when is onSaveInstanceState called? Jul 15 18:02:33 before onPause or onStop? Jul 15 18:02:43 jonc, I got just the thing for you Jul 15 18:02:58 I have the page open now with the fragment lifecycle Jul 15 18:03:01 but I don't see it listed Jul 15 18:03:10 jonc https://github.com/xxv/android-lifecycle :D Jul 15 18:03:20 jonc: its only callsed when the activity gets onSaveInstanceState Jul 15 18:03:21 Napalm, so is a project file created? if not, how can I run it? Jul 15 18:03:33 Guys, do you know about any sniffer for android IPC susbystems ? Jul 15 18:03:39 I should version control my .project file? Jul 15 18:03:44 tinker: its created by the import.. after the fact Jul 15 18:03:44 jonc so basically after onPause and before onStop Jul 15 18:04:02 Napalm, but I still can't run the project... Jul 15 18:04:22 actually, nvm, read the yellow box thing Jul 15 18:04:22 tinker: and? look at the Problems panel and find out why Jul 15 18:04:24 Afzal, "This method may be called at any time before onDestroy()" Jul 15 18:04:28 yeah Jul 15 18:04:30 yeah lol Jul 15 18:04:30 thanks Jul 15 18:04:51 jonc: its best to remember its only called when the Activity get asked to save its instance Jul 15 18:05:00 yeah Jul 15 18:05:05 RMBM what kind of sniffer do you mean? you want to watch Binder do its work? Jul 15 18:05:12 I was clearing out data in onPause Jul 15 18:05:14 jonc: when in short means its only called for configuration changes Jul 15 18:05:23 and then trying to store it in onSaveInstance Jul 15 18:05:30 it wont be called for BackStack changes Jul 15 18:05:32 sarbs: yep,that kind of things. Jul 15 18:05:45 hi guys, another question here, could someone link me to some documentation explaining how to create a sort of side-drawer menu for an application? Jul 15 18:05:46 Napalm, that's fine Jul 15 18:05:48 thanks. Jul 15 18:05:53 jesusfreke, thanks, you are correct... I have plenty of experience programming in C, but this is the first time I'm trying to learn object oriented programming or serious operating system interction Jul 15 18:06:13 like the thingy that you swipe in from the left to pull out. Jul 15 18:06:14 the few times i've needed to watch that happen i've had to attach a debugger to system_process. what are you trying to accomplish? Jul 15 18:06:21 gaminator: https://developer.android.com/training/implementing-navigation/nav-drawer.html Jul 15 18:06:27 thanks Napalm! Jul 15 18:06:32 sarbs: I know i get snoop at /proc but it's too raw. Jul 15 18:07:12 RMBM: i have something for you.. let me dig it out Jul 15 18:07:15 i actually didn't know /proc exposed anything there. what kind of stuff are you looking for specifically? Jul 15 18:07:23 Napalm, there are 100 warnings for NineOldAnroids but none from my project... Jul 15 18:07:42 I have a viewpager with fragments that have imageviews in it, the fragments get passed the id of the image to use Jul 15 18:08:00 well when the app is suspended with an imageview shown, it blows up because the id of the image wasn't set Jul 15 18:08:20 jonc: you are not passing the id to the fragment correctly Jul 15 18:08:30 jonc: you should be using Fragment.setArguments() Jul 15 18:08:35 I'm doing it through a constructor is the problem Jul 15 18:08:43 yes. Jul 15 18:08:54 never knew about setArguments Jul 15 18:08:54 jonc: all fragments require a blank constructor Jul 15 18:09:07 yeah Jul 15 18:09:19 jonc: if you dont have one.. the platform cant reconstruct your fragments.. in short this == crash Jul 15 18:09:25 I do have one also Jul 15 18:09:41 jonc: then you can get away with saving the state and recalling it in onCreate Jul 15 18:09:43 just wasn't thinking about it being recreated and then losing the id Jul 15 18:09:55 yeah, I'll be doing it with set arguments though Jul 15 18:10:18 RMBM: http://www.nds.rub.de/media/attachments/files/2012/03/binder.pdf Jul 15 18:11:29 I've made a content provider that populates listview with a CursorLoader. Is there any built-in to make the list less laggy? I mean to make it display 10 results and add more once i scroll to the end. Or do i have to implement that myself? Jul 15 18:11:44 can someone help me with notifications? Jul 15 18:12:08 I want to have my application send a notification 3 times a day Jul 15 18:12:11 at dynamic times Jul 15 18:12:11 eg. Jul 15 18:12:43 one day, the notification will be at 08:00, 12:00, and 15:00, and the next day it will be at 08:02, 11:58 and 15:03 Jul 15 18:13:00 jonc: see http://developer.android.com/reference/android/app/Fragment.html look at the DetailsFragment newInstance for an example Jul 15 18:13:04 set 1, once it fires, set the next, once it fires set the next Jul 15 18:13:09 Napalm: Thanks, I'll look in to that, hopefully I will be able to create some kind of tool out of it. Jul 15 18:13:26 have it cancel itself Moony22 Jul 15 18:13:33 jonc: but what do I use? a service? some sort of alarmmanager? Jul 15 18:13:43 skulltower: its nothing to do with the Cursor. its the way you are handling the getView usually Jul 15 18:14:46 Moony22: use the AlarmManager with a BroadcastReceiver in your manifest Jul 15 18:14:53 Napalm, but i'm not. SimpleCursorAdapter is. Should I make a custom one? Jul 15 18:15:29 Napalm: alright, I'll give it a go and see Jul 15 18:15:57 skulltower: check your bindView Jul 15 18:16:30 Napalm, i'm not using a custom adapter Jul 15 18:16:31 Napalm, thank you Jul 15 18:16:47 yw Jul 15 18:16:51 Napalm: do I need to create a service? Jul 15 18:17:09 depends on what you are trying to do.. but probably Jul 15 18:17:46 With an AlarmManager? no, if all you want to do is set a notification and the alarm for the next notification, you should be fine Jul 15 18:18:06 Moony22: you can also create an IntentService and have the the AlarmManager fire an Intent to it directly Jul 15 18:20:24 Maybe it's supposed to be laggy i'm skipping through like a hundred items like a mad squirrel? Jul 15 18:20:36 skulltower: nope Jul 15 18:20:48 Napalm: a pendingintent? Jul 15 18:21:01 Moony22: yes? what about them Jul 15 18:21:08 skulltower: can you post your adapter to pastebin or something Jul 15 18:21:34 Napalm, for the third time, i'm using the built-in adapter, i'm not customizing it in any way Jul 15 18:21:42 Anyone here that ever imported existing code into Eclipse? My project does not get recognized as a project... Jul 15 18:22:00 skulltower: so your doing nothing with your bound data? Jul 15 18:22:11 http://pastebin.com/DdEbiAYw Jul 15 18:22:19 Here's how i create the adapter and then i set it to the list Jul 15 18:22:36 skulltower: ok, post your search_list_item layout to pastebin Jul 15 18:23:03 http://pastebin.com/vGk1cV9D Jul 15 18:23:04 skulltower: why are you using getBaseContext() ??? Jul 15 18:23:06 Napalm: Sorry, I haven't been doing this for long and I'm getting a bit confused. I use an alarmmanager to start an IntentService...but what do I pass to the intentservice? Jul 15 18:23:19 the adapter should be using the Activity context it uses this context to construct its views Jul 15 18:23:34 Napalm, hmm Jul 15 18:23:43 Napalm, Is that bad? :D Jul 15 18:24:28 Ok i'm using "this" now, and i think it's a little better Jul 15 18:24:29 Moony22: add your service to the manifest with a action-filter with a custom action for your app.. usually .. your.package.path.intent.ALARM or something Jul 15 18:24:47 hi, i'm looking to store some contact information in an application in a SQLite database locally. any tutorial/links suggestions? Jul 15 18:24:48 Moony22: now you get a PendingIntent for that action Jul 15 18:25:13 Umm mop still pretty laggy :( Jul 15 18:25:22 Napalm, with setArguments and getArguments, if the fragment is recreated will the arguments survive? Jul 15 18:25:47 jonc the arguments will be recreated from the parceled data, if that's what you mean Jul 15 18:25:53 ok, thank you Jul 15 18:25:54 they likely won't be the same actual objects Jul 15 18:26:03 yeah Jul 15 18:26:14 I get that, since it is all serialized underneath Jul 15 18:26:22 but I wanted to make sure the same values will be there Jul 15 18:26:29 yes, they will be Jul 15 18:26:35 thank you Jul 15 18:26:51 skulltower: change your layout to this: http://pastebin.com/pVUJHip1 Jul 15 18:28:10 Napalm, Oh.. Didn't know you can do that >.> thought layout has to have some container Jul 15 18:28:17 skulltower: are you testing this in the emulator.. or on a device? Jul 15 18:28:24 Napalm, device Jul 15 18:28:28 good Jul 15 18:28:31 can I call getArguments before onCreateView? Jul 15 18:28:36 yes Jul 15 18:28:42 normally done in onCreate Jul 15 18:28:43 If "Run configurations" does not recognize my project as a project, then what is my problem? Jul 15 18:28:48 ok, thank you Jul 15 18:29:10 Napalm, i think it's better now, still experiencing some lag. Does SimpleCursorAdapter re-use convertview's by itself? Jul 15 18:29:13 tinker: you didnt import it as a android project Jul 15 18:29:20 *probably* Jul 15 18:30:11 yes import existing android code into workspace Jul 15 18:31:01 tinker: right click on the project in the project explorer panel and choose run-as>android app Jul 15 18:31:35 Napalm: what about a timertask continuosly checking the time? Jul 15 18:32:08 is that going to make the phone slow/battery drain faster? Jul 15 18:33:35 Moony22: then your app has to be active and also the device wont go to sleep Jul 15 18:33:48 Napalm: I mean a timertask in a service Jul 15 18:33:55 same thing Jul 15 18:36:04 Well, is there some sort of example application which does something similar to what I wanted to do? I just find it easier to learn by example... Jul 15 18:37:05 Napalm: Is Library does not refer to the library but the project, whoops! now it works! Jul 15 18:46:59 I get an invocation target exception when I try to edit an EditText in a DialogFragment after it's been inflated. I'm capturing the reference to the EditText in onCreateDialog, but if I try to use that reference at any other time I get the invocation exception and NPE Jul 15 18:49:28 how do i keep cache of the current page? when i lock & unlock screen it goes back to the main loaded url Jul 15 18:51:08 DarkChaoz, you talking about a webview? Jul 15 18:51:10 Was there some change on how setVisibility works after API8? On later APIs (4.x.x) this works but on API8 some views that I set to GONE are still shown. Jul 15 18:51:25 yh Jul 15 18:52:28 onSaveInstanceState get the webview's current URL, save it to the bundle. Then in the activity or fragment that the webview is in, the onCreateView has a Bundle as on argument, get the url out, get the webview, set the url Jul 15 18:53:32 DarkChaoz: are you calling onPause and onResume of WebView Jul 15 18:53:43 neither Jul 15 18:54:00 let me show current code Jul 15 18:54:56 DarkChaoz: use pastebin Jul 15 18:55:17 http://pastebin.com/98QPTWhn Jul 15 18:57:00 jonc how do i go about this, with my current code? Jul 15 19:01:21 so any ideas? Jul 15 19:02:18 Napalm, When i'm using short numbers it doesn't lag at all but with text it's lag-a-land :/ Do you have any more suggestions? Jul 15 19:03:18 skulltower: add android:singleLine="true" to your TextView Jul 15 19:03:20 in the layout Jul 15 19:03:42 I tried with maxLines="1" Jul 15 19:03:51 singleLine is different Jul 15 19:04:18 Still laggin :/ Jul 15 19:04:42 I'm getting an IllegalStateException : Observer support.ViewPager was not registered when I try to go back to the activity that contains the ViewPager. I have read several posts talking about using the wrong fragment manager, but I have confirmed that I am using the supportFragmentManager. Any other ideas why I am getting this? Jul 15 19:05:14 skulltower: what type of Cursor is this... how are you getting it? Jul 15 19:05:19 Sqlite Jul 15 19:05:58 I'm using a contentProvider that loads it from the db and some loaderCallbacks.. Jul 15 19:06:44 I'm new to these loaders before I used an ArrayAdapter and the list wasn't as laggy as now Jul 15 19:06:53 log the line where you set the Cursor on the Adapter you might be calling it multiple times Jul 15 19:07:22 skulltower: ArrayAdapter is "all in memory" and is a completely different thing Jul 15 19:07:52 DarkChaoz: your paste has expired Jul 15 19:08:18 Napalm, i think it's doing the loading on the main thread somehow "The application may be doing too much work on its main thread." Don't loaders take care of that by themselves? Jul 15 19:08:50 d0de: probably because your also returning a layout from onCreateView which is replacing the one from onCreateDialog Jul 15 19:10:34 skulltower: run traceview and see whats going on when you scroll Jul 15 19:14:08 kk, I just edited my code a bit now. uploading new paste. Jul 15 19:15:05 http://pastebin.com/6P0hEsaz Jul 15 19:15:59 Hey guys, I'm trying to track every time a page is visited in a WebView. I'm having issues listening for the window load, because that doesn't fire unless the containing activity is destroyed and recreated. If I call the javascript from the activity's onStart() method, then that doesn't track navigation inside the WebView. Any ideas? Jul 15 19:16:38 got a problem, edited a script thats used by my android app at run time, now my app doesnt even run, i get... Jul 15 19:16:40 it crashes the app Jul 15 19:16:41 Connected to the target VM, address: 'localhost:8620', transport: 'socket' Jul 15 19:16:46 Disconnected from the target VM, address: 'localhost:8620', transport: 'socket' Jul 15 19:16:55 no other messages Jul 15 19:17:02 no. the script isnt running. the APP isnt running Jul 15 19:17:36 i think i've implemented it wrong napalm Jul 15 19:18:24 i need to know why im getting instantly disconnected from the VM. where can i look for error messages? Jul 15 19:19:13 DarkChaoz: totally wrong Jul 15 19:19:16 sorry. one sec. Jul 15 19:21:10 Napalm: I did what you said but it didn't work/isn't working... Jul 15 19:21:32 how can i do this then? Jul 15 19:22:48 woohoo http://phandroid.com/2014/07/15/project-ara-dev-board/ Jul 15 19:23:12 DarkChaoz: http://pastebin.com/HWg2cR1T Jul 15 19:23:50 Napalm: onHandleIntent is being called before it's supposed to Jul 15 19:23:55 DarkChaoz and helichopter: if you want to see how you should probably implement a WebView see my example https://github.com/slightfoot/android-web-wrapper/blob/master/WebWrapper/src/com/example/webwrapper/BrowserActivity.java#L117 Jul 15 19:24:07 oopsy. get rid of the #L1176 Jul 15 19:24:10 blah Jul 15 19:24:19 Hello, how can I repack my APK to include additional resources? Jul 15 19:24:46 Lerg O.o Jul 15 19:24:49 kk cheers, Jul 15 19:24:54 uh, rebuild your app :) Jul 15 19:24:59 Moony22: your going to have to provide a little more info Jul 15 19:25:02 I'll try the paste out :) Jul 15 19:25:13 and bookmarking link napalm, cheers Jul 15 19:25:20 It's build not directly by me - I am using Corona SDK. Jul 15 19:25:34 I get end binary from their server Jul 15 19:25:57 can someone tell me how i can find out why my debug sessions connect and then instantly disconnect all of a sudden? Jul 15 19:26:05 Napalm: this is what i'm using to set the alarm: http://pastebin.com/kvJcznau Jul 15 19:26:17 i have not edited the java code or the NDK library i wrote. i edited a script used by the ndk library Jul 15 19:26:27 connected Jul 15 19:26:28 disconnected Jul 15 19:26:35 srsly. not enough info Jul 15 19:27:01 logcat is TOTALLY empty for that debug run Jul 15 19:27:15 Moony22: change mgr.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, 10000, pi); to mgr.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, SystemClock.elapsedRealtime() + 10000, pi); Jul 15 19:29:00 mhmm napalm, i seem to get blank webview when i lock/unlock the screen. Jul 15 19:29:11 Napalm: ahhhh I see now Jul 15 19:30:04 /facepalm nvm. the reason logcat was totally empty is because somehow my intellij idea config for my AVD had filters turned on. Jul 15 19:30:04 DarkChaoz: are you just trying to build a web-wrapper for your forum?. Jul 15 19:30:35 DarkChaoz: oopsy Jul 15 19:30:46 DarkChaoz: remove the browser.restoreState(webViewBundle); line Jul 15 19:30:50 thats the bug Jul 15 19:31:05 well probably Jul 15 19:31:05 kk Jul 15 19:31:06 Napalm: I've been using this which doesn't work...http://pastebin.com/eLuQ9e86...I'm trying to get it to set an alarm at a H:M sort of time Jul 15 19:31:32 the app, basically gets the mobile styled forums and display it as an app. Jul 15 19:31:46 the app webview should work as same as the mobile site Jul 15 19:31:52 Moony22: you dont want ELAPSED_READLTIME Jul 15 19:32:09 should i get rid of the entire else statement? Jul 15 19:32:10 Moony22: you want RTC_WAKEUP Jul 15 19:32:29 DarkChaoz: yes Jul 15 19:32:37 DarkChaoz: thats what my web-wrapper example app is all about Jul 15 19:32:57 clone the repo and edit the resources and put your url in it Jul 15 19:33:01 change the logo Jul 15 19:33:04 and colors, done Jul 15 19:33:15 Napalm: :O you're amazing, t[Dhanks! Jul 15 19:33:18 thanks* Jul 15 19:33:24 don't forget to star my repo :D Jul 15 19:33:30 Moony22: np Jul 15 19:34:44 DarkChaoz: i might improve that web-wrapper at some-point so it might be worth watching it Jul 15 19:35:03 ahh kk Jul 15 19:35:20 still blank screen. mhmm Jul 15 19:36:04 try my app.. see if you have the same problem.. its probably related to something else.. like your class name starting with a lower-case or something just as silly Jul 15 19:37:12 kk Jul 15 19:41:40 JakeWharton, http://stackoverflow.com/questions/24766145/android-setvisibility-gone-not-removing-buttons-on-api-8 Jul 15 19:41:59 Someone is asking if I use NineOldAndroids. Could NOA be causing my problems? Jul 15 19:42:46 tinker: it could Jul 15 19:42:55 yes Jul 15 19:42:55 tinker: if you are using the old animation setFillAfter Jul 15 19:43:01 avd not starting up Jul 15 19:43:09 is it possible because of api version? Jul 15 19:43:16 JakeWharton: am i right? Jul 15 19:43:25 or for another reason Jul 15 19:43:26 yes Jul 15 19:43:33 kk, thought so Jul 15 19:43:54 stop using NineOldAndroids and minSdkVersion="15" Jul 15 19:46:22 JakeWharton, I should never use NineOldAndroids? using sdk 15 still cuts out 15-20% of all users... Jul 15 19:46:30 napalm i gtg, but i'll check your app out later Jul 15 19:46:40 avd not working right now Jul 15 19:46:44 well 99% of those users aren't going to download your app Jul 15 19:46:51 and 99% of those users aren't monetizable Jul 15 19:47:01 its going to be a free app Jul 15 19:47:24 oh you talking to him Jul 15 19:47:31 lol Jul 15 19:47:34 anyway gtg Jul 15 19:47:43 JakeWharton, OK, I see. Jul 15 19:48:00 developer productivity is also massively improved by doing so Jul 15 19:48:10 which means your app is measurably better than if you supported pre-ICS Jul 15 19:48:51 JakeWharton, it seems clearAnimation on the button solved the problem though... Jul 15 19:56:39 JakeWharton, I also round the corners of a shape. for some reason the wrong corners are rounded... Jul 15 19:56:54 Reading http://stuff.mit.edu/afs/sipb/project/android/docs/reference/android/provider/ContactsContract.Data.html , if I wanted both a Phone.NUMBER and a Email.ADDRESS, how would I specify this in a projection? Jul 15 19:57:07 Err. http://developer.android.com/reference/android/provider/ContactsContract.Data.html Jul 15 19:59:26 why does android studio tell me that assertions are unreliable and i should not use them? Jul 15 19:59:34 what does “unreliable” mean? Jul 15 20:00:11 sq: Android won't execute things with -ea, so they probably won't be enabled at runtime. Jul 15 20:01:04 uhm. what's “ea” and what exactly is runtime? runtime as opposed to what? Jul 15 20:01:15 sq: -ea is the java flag that enables assertions. Jul 15 20:02:06 I have implemented a fragment view pager for a master detail list, like gmail has. Everything is working perfectly except when I resume the activity that the view pager is in. I think maybe the problem has to do with the additional fragments that it creates as cache, but I'm not sure exactly how to fix it, and correctly fix it. Anyone run into this problem before? Jul 15 20:02:35 freeone3000: so they are unreliable because i can forget to set the flag? Jul 15 20:02:49 sq: Because when running an apk, you have no control over the flag. Jul 15 20:03:57 Is it a bad idea to do things like: if (API_version <=10) {...}else{...} ? Jul 15 20:04:06 but i thought i only could run apk-s... Jul 15 20:04:28 but, well, got the hint. thanks Jul 15 20:07:18 tinker: Generally version constants are used instead. Jul 15 20:09:11 ...android studio doesn't generate BuildConfig, does it? Jul 15 20:10:17 freeone3000, how do you mean? Jul 15 20:10:49 version constants? Jul 15 20:11:44 ah, no, it was a glitch, it does Jul 15 20:13:41 I have a helper class for dealing with SharedPrefs. As soon I commit something, it isn't found in the preferences. Any ideas? http://take.ms/eXdD0 Jul 15 20:34:01 hey all, i have a notification that shows up in my app. tapping it works when it is displayed from one activity but when it is shown from another activity and it's tapped its like the app crashes Jul 15 20:34:05 but i get no stack trace Jul 15 20:34:08 is there any way to debug this? Jul 15 20:36:59 dcope: if its a crash you WILL get a crash in logcat.. its probably being filtered out.. edit your logcat windows filters or open a terminal and enter "adb logcat" to see the raw log Jul 15 20:37:27 Napalm: well i dont belive it's a crash per se... it's like the top most activity gets killed and it jumps down one Jul 15 20:37:33 then i tap the notification again and the app goes to the background Jul 15 20:39:31 dcope: sounds like you've either A set a bad launchMode on yout in your manifest or your notification's content intent has the wrong flags Jul 15 20:40:07 Napalm: well the flags are the same for all the notifications i show Jul 15 20:40:21 and it works fine if it's sent from one activity... but the other activity that sends one doesn't owrk Jul 15 20:41:31 napalm your app didnt install Jul 15 20:41:39 logcat said "null" Jul 15 20:42:00 oh here we go Napalm Jul 15 20:42:18 I have a question about selectors. I have a listview with a focused state and a selected state. As I move past the end of the list and onto the button below (which also have selectors) it seems the last item in the list remains selected Jul 15 20:42:43 as far as I understand, selected is sort of like radio buttons...one of them is selected...so it remains selected even when focus moves away Jul 15 20:43:42 so I thought maybe of using the focused state, not the selected state...but then I'm not seeing anything Jul 15 20:45:29 help please, what can be the issue here? http://stackoverflow.com/questions/24718126/custom-softkeyboard-smileys-popup-not-showing-the-last-row Jul 15 20:51:34 ProgramMax: it sounds like your not resetting the state in getView() when ListView recycles the view with convertview Jul 15 20:51:36 mattblang: i just saw your message is the problem with your viewpager fixed? if not, does it involve your fragments showing up as blank? Jul 15 20:58:00 napalm, tired to rename classnames and remove unwanted code it seems it still dont work Jul 15 20:58:15 shouldOverrideUrlLoading(WebView view, String url) becuase its not returning anything? Jul 15 20:58:29 DarkChaoz: what have you changed? lol Jul 15 20:59:15 i just don't get why this notification doesn't work Jul 15 20:59:22 tired to add else statement to restore the saved state, removed the unwanted cache code.. rename class Jul 15 20:59:25 still dont work Jul 15 20:59:27 i have a helper method that presents the notification, and there's just one place where it doesn't work Jul 15 20:59:38 xD Jul 15 20:59:39 and the app closes the activity and then looks like it crashes with no stack trace Jul 15 20:59:47 DarkChaoz: oh your code.. right.. Jul 15 20:59:52 Napalm I'm not sure I follow Jul 15 20:59:55 oh i tried your app, it didnt install for some reason Jul 15 21:00:04 it said "null" on logcat Jul 15 21:00:07 I don't think it is reusing an item from the listview and carrying over existing state Jul 15 21:00:21 DarkChaoz: are you trying to install onto a device? what version of Android does it run? Jul 15 21:00:22 if I scroll off the end of the listview, the last item doesn't become "unselected" Jul 15 21:00:26 the app literally closes when i tap the notification Jul 15 21:00:28 but no stack trace Jul 15 21:00:30 wtf gives?! Jul 15 21:00:34 which one? Jul 15 21:00:37 whether scrolling off the top or bottom. Also happens on gridviews Jul 15 21:00:45 api 19 Jul 15 21:00:57 DarkChaoz: are you using emulator? Jul 15 21:01:08 yh Jul 15 21:01:18 DarkChaoz: is that a yes? Jul 15 21:01:28 yh = yes :P Jul 15 21:02:00 DarkChaoz: thats probably why.. remove from manifest and set android:hardwareAccelerated to false Jul 15 21:02:07 in the manifest Jul 15 21:02:32 ignmore that Jul 15 21:02:39 i was looking at an alternative version Jul 15 21:02:39 :D Jul 15 21:02:42 lol Jul 15 21:02:53 but you can try turning off hardwareAcceleration Jul 15 21:03:01 i'd suggest you do a clean build and try again Jul 15 21:03:07 make sure its uninstalled from the device Jul 15 21:03:29 kk Jul 15 21:03:56 if it still doesn't work.. then i would suggest you start a new emulator image. Jul 15 21:04:06 DarkChaoz: you using the emulator from the SDK? Jul 15 21:04:47 yeah Jul 15 21:05:37 your app doesnt have the hardwareacelated thing Jul 15 21:05:44 oh wait nvm found it Jul 15 21:05:50 mattblang: I am loosing it... so confusing... but I did get something running that works... but I dont think you will approve... could you comment please... Jul 15 21:05:52 https://gist.github.com/Mobpoo/af469e26d6f25ebf0a27 Jul 15 21:07:00 IrishGringo: your missing your version attributes on your tag Jul 15 21:07:01 actually... could anyone comment... its a fragments issue... and I am getting comfused over it... Jul 15 21:07:02 https://gist.github.com/Mobpoo/af469e26d6f25ebf0a27 Jul 15 21:07:44 Napalm: is that really a bitdeal.. as this app works Jul 15 21:07:46 other than napalm, can anyone else see why it returns a blank webview when resume instance http://pastebin.com/HWg2cR1T Jul 15 21:07:58 IrishGringo: im just letting you know Jul 15 21:08:13 DarkChaoz: its probably just an emulator bug Jul 15 21:08:20 DarkChaoz: use genymotion instead Jul 15 21:08:27 if it still happens, then come back Jul 15 21:08:40 i tried it on my phone too Jul 15 21:08:48 its blank Jul 15 21:09:13 DarkChaoz: did you try installing my web wrapper on your device? Jul 15 21:09:45 unforunately I have android OS 2.3 Jul 15 21:09:54 so i cant install it Jul 15 21:10:12 :'( Jul 15 21:10:23 try installing it on GenyMotion then Jul 15 21:10:33 because dude.. its so much better than the emulator Jul 15 21:11:23 ahh Jul 15 21:11:34 foudn it? Jul 15 21:11:48 Hi Jul 15 21:11:53 genymotion yeah, but i cbb to create an acc to download it :\ Jul 15 21:12:01 i am a new customer ;) Jul 15 21:12:04 why would tapping notification pop the top activity Jul 15 21:12:21 it doesnt unless you make your app do it Jul 15 21:12:28 dcope: it starts a new task ontop Jul 15 21:12:41 i have see an error when i am trying to work with Android Studio Jul 15 21:12:42 gradle 'workspace' project refresh failed configuration with name 'default' not found Jul 15 21:12:43 dcope: if your launchMode is singleTask then the old task will GO Jul 15 21:12:45 hey wait Jul 15 21:12:47 Napalm: i'm using PendingIntent.FLAG_UPDATE_CURRENT Jul 15 21:12:47 napalm Jul 15 21:12:52 your app installed Jul 15 21:12:53 and it works elsewhere, but not in this one place Jul 15 21:12:53 o.o Jul 15 21:13:02 on the emulator Jul 15 21:13:05 dcope: read what i said. Jul 15 21:13:22 Napalm: the launch mode on the activity that the notification should show? Jul 15 21:13:28 yes Jul 15 21:13:32 Hey! Jul 15 21:13:40 Napalm: android:launchMode="singleTop" Jul 15 21:13:45 tada Jul 15 21:13:52 probably the same reason Jul 15 21:13:56 just dump that Jul 15 21:14:00 is the settings activity suppoe to be blank? Jul 15 21:14:00 see how it performs Jul 15 21:14:04 Napalm: but why would it work in once place... Jul 15 21:14:04 yes Jul 15 21:14:10 DarkChaoz: its a placeholder Jul 15 21:14:33 ahh Jul 15 21:14:45 let me check if the saveinstance thing works on yours Jul 15 21:15:20 your one works Jul 15 21:15:24 please! Jul 15 21:15:25 but mine doesnt ._. Jul 15 21:15:30 Napalm: removed it, still doesn't work Jul 15 21:15:38 this makes no sense though... i have a helper method that shows the notification Jul 15 21:15:47 the same damn method is called but it only doesn't work in one place in my app Jul 15 21:15:49 anyway brb napalm, Jul 15 21:15:51 * dcope rages Jul 15 21:15:51 dcope: what are the flags on your intent.. not your pendingintent Jul 15 21:16:17 Napalm: none Jul 15 21:16:28 :/ Jul 15 21:16:30 dcope: if you read the docs.. notifications force a single flag.. new Task Jul 15 21:16:32 :P Jul 15 21:17:24 throw new TimeoutException("No one answer or just ping me!"); Jul 15 21:18:08 dcope: http://developer.android.com/reference/android/app/Notification.html#contentIntent Jul 15 21:20:13 Ok! Jul 15 21:20:42 i am new to Android Studio Jul 15 21:20:54 and i have got this error: gradle 'workspace' project refresh failed configuration with name 'default' not found Jul 15 21:22:01 Napalm: i just dont get why it works fine in one place, and it doesn't in the other Jul 15 21:22:05 with the same intent, same activity, etc. Jul 15 21:22:11 same logic constructing the notification Jul 15 21:22:22 dcope, Napalm, :/ Jul 15 21:22:26 MalekAlrwily: what Jul 15 21:22:43 can you please use pm? Jul 15 21:22:54 no because i dont know the answer to your question Jul 15 21:22:58 i am an android noob Jul 15 21:23:13 Oh Jul 15 21:23:37 Thanks anyway! Jul 15 21:24:03 are trying to transfer an oracle project to android studio? Jul 15 21:24:20 jarray52: What OS are you using? Jul 15 21:24:20 I installed eclipse with the Android SDK, connected my phone with a USB cable to my computer, and tried to run a "Hello World" application on my Android device. Eclipse with the Android SDK does not detect my Android device. What is the next step to debug this problem? Jul 15 21:24:32 jarray52, Have you enabled ADB? Jul 15 21:24:35 On my dev machine? Jul 15 21:24:37 Linux Jul 15 21:24:38 Sure. Jul 15 21:24:44 Ubuntu Jul 15 21:24:45 On the phone Jul 15 21:24:50 What does $ adb devices output? Jul 15 21:26:11 flan3002: ./adb devices gives Jul 15 21:26:22 List of devices attached Jul 15 21:26:30 With no devices listed Jul 15 21:27:02 jrtappers: Android version 4.4.2 Jul 15 21:27:11 jarray52, Have you enabled ADB on the phone, if not reference http://developer.android.com/tools/help/adb.html (Enabling ADB section) Jul 15 21:27:46 jrtappers: Thanks. I don't recall doing this... so, that's probably the issue. Jul 15 21:28:23 That 7 clicks is an annoying thing, so unintuative Jul 15 21:28:40 But I guess that is the idea, so non developers do not activate it Jul 15 21:29:28 jrtappers: I did enable usb debugging Jul 15 21:29:36 with something like 7 clicks Jul 15 21:30:07 dcope: its not the same intent.. did you read the doc i sent you a link to? it adds a flag.. try adding that flag to the other areas of the app which use the same intent.. you'll notice it behaves the same Jul 15 21:30:12 jarray52, That enabled dev options, then you need to enable Android Debug Bridge in the new developer options Jul 15 21:33:11 jarray52, Did that work? Jul 15 21:33:44 hey y`all, can someone tell me why the top linearlayout takes 2/3 of the vertical screen and the buttom one 1/3? shouldnt it be vice versa? http://pastebin.com/UwFvWEnU Jul 15 21:34:25 jrtappers: When you say enable Android Debug Bridge, all I need to do is enable USB debugging in the Developer Options, right? Jul 15 21:34:41 Yes Jul 15 21:34:55 That I did before posting my question. Jul 15 21:35:03 Ok, just had to check Jul 15 21:35:04 napalm your webview wrapper works interms of state resume and pause Jul 15 21:35:14 Ok, can you run lsusb Jul 15 21:35:18 dont a have a clue with it goes blank Jul 15 21:35:25 lol Jul 15 21:35:50 DarkChaoz: is mine going blank? Jul 15 21:36:47 jarray52, Can you pastebin the output of lsusb please Jul 15 21:37:17 jrtappers: http://dpaste.com/2BP6K3R Jul 15 21:38:07 nah mine is Jul 15 21:38:10 your one works Jul 15 21:38:23 jarray52, What model phone is it? Jul 15 21:38:46 Samsung Galaxy Note 3 Jul 15 21:39:18 jrtappers: Weird... I unplugged it and replugged it... now, it appears on lsusb Jul 15 21:39:28 Bus 003 Device 004: ID 04e8:6860 Samsung Electronics Co., Ltd GT-I9100 Phone [Galaxy S II] Jul 15 21:40:26 And, "38914996 device" appears when I type `./adb devices` Jul 15 21:40:29 jarray52, on the screen you should get an RSA prompt Jul 15 21:40:51 After unplugging and replugging it, I got the RSA prompt. Jul 15 21:40:58 I didn't get that the first time. Jul 15 21:41:01 Accept it and it should work Jul 15 21:41:17 ADB can be odd at times... And wireless even more so Jul 15 21:42:57 jrtappers: Now, it works. Jul 15 21:43:11 jrtappers: Thanks for your help. That was useful. Jul 15 21:43:34 Thats ok, ADB is useful, so it is good to have available Jul 15 21:44:46 ADB is useful. I created my first app. =) Jul 15 21:44:55 nice Jul 15 21:45:03 im still trying to make my first app lol Jul 15 21:47:01 DarkChaoz: It's a "Hello World" app... so, nothing to brag about. Jul 15 21:47:15 my first app ... i mean Jul 15 21:48:21 ahh, i see still.. its a good starting place :) Jul 15 22:23:38 hello guys Jul 15 22:24:05 why my layout inside the expandable are like this? Jul 15 22:24:05 http://puu.sh/acZvv.png Jul 15 22:24:50 seems like have a square with low alpha on top Jul 15 22:27:29 solved Jul 15 22:48:02 Anyone can advise how should i display search results? Currently it's all just 1 big list. Should i let user access it partly? as in when he scrolls load more etc Jul 15 22:49:56 http://www.google.com/design/spec/animation/responsive-interaction.html# Look how sexy this looks <3 Jul 15 22:51:56 Cool site thanks for sharing :-) Jul 15 22:52:34 Tho i hate design, why don't users just like ugly apps.. xD Jul 15 22:53:17 most people like asthetics/smooth animations Jul 15 22:53:26 its just a really common trend these days Jul 15 22:54:15 GGMethos: ive been working on those ActionBar animations from the Material design docs Jul 15 22:54:48 well its now called a Toolbar but whatever :D Jul 15 22:55:01 some of the animations in material design are fine... but the stupid dialog "buttons" are just crap Jul 15 22:55:18 they're just textfields.. they don't look like something to press at all Jul 15 22:55:43 Zharf: i suppose if they raise up when you press them it might be good Jul 15 22:55:48 but yea, i get your point Jul 15 22:55:52 and they don't even have a touch state Jul 15 22:58:38 Hello again Jul 15 22:59:18 ah Jul 15 22:59:40 weird Jul 15 23:04:10 hey Jul 15 23:04:38 guys i moved my project and now im having a lot of errors, probably path related Jul 15 23:04:43 the sdk is ok thou Jul 15 23:05:05 oh nvm Jul 15 23:05:56 why my getChildView is not called? Jul 15 23:05:57 http://puu.sh/ad2SV.png Jul 15 23:06:14 the getChildrenCount returns 3 as well Jul 15 23:06:15 Can anyone help me with an IntentService? Jul 15 23:06:27 not unless you ask a real question Jul 15 23:06:32 Yeah, hang on Jul 15 23:06:41 I'm about to write that part Jul 15 23:09:06 I use an AlarmManager to set an alarm for my IntentService, and I also during that process "putExtra" an integer "id". Then from the IntentService (onHandleInvent), I can use getIntExtra just fine, however I also during this method attempt to use alarmmanager AGAIN to call the service again, this time with a different "id". However, this different "id" is not recognised and I am left with the original... Jul 15 23:09:19 Sorry for my incredibly bad explanation Jul 15 23:11:42 i have a problem with PagerAdapter. whenever it gets a call to instantiateItem, that results in initialization of my fragment, but this initialization code prevents ViewPager from switching smoothly to another page—even if the fragment in question is not shown. i added a (blocking) sleep(1000) in the onCreateView of my fragment and it effectively freezes ViewPager Jul 15 23:11:59 what's the usual way to solve this problem? Jul 15 23:15:46 sqrrl: sounds like you are doing too much work on UI Thread Jul 15 23:16:14 Moony22, no clue what these ids are.. you should probably demonstrate the problem in code Jul 15 23:17:29 Zharf: i'll pastebin Jul 15 23:18:16 Moony22: iirc, you pass a PendingIntent to the alarm manager, correct? Jul 15 23:18:27 yep.. Jul 15 23:19:00 Extras aren't considered part of a pending intent's identity Jul 15 23:19:37 Read the class docs on PendingIntent Jul 15 23:19:49 it specifically talks about that Jul 15 23:20:00 JesusFreke: ahhh Jul 15 23:20:11 JesusFreke: alright, I'll have a look...my code here by the way Jul 15 23:20:13 http://pastebin.com/3f4ZCmaP Jul 15 23:20:46 you'll likely need to make sure you use a different request code for each pending intent Jul 15 23:20:59 canvs2321-: i just tried placing the said sleep() into a function from which i have to call runOnUiThread() to do things, and it has the same effect—it freezes ViewPager Jul 15 23:20:59 which *is* considered part of the pending intent's identity Jul 15 23:21:08 Hello, is it safe to use 127.0.0.1 as localhost instead of 'localhost' when directing http requests to a web server on a phone (locally)? Jul 15 23:21:32 JesusFreke: I think i need to use FLAG_UPDATE_CURRENT or something Jul 15 23:21:41 sqrrl if calling sleep is causing the UI to block, then you're running that on the UI thread Jul 15 23:21:58 *or you have something on the UI thread being blocked by that execution Jul 15 23:22:13 oh wait. hm Jul 15 23:22:38 JesusFreke: thanks, I know what to do now! Jul 15 23:22:39 Moony22: yeah. If you don't need both pending intents active at the same time, that should be fine. Jul 15 23:22:59 yeah, it works fine like that Jul 15 23:23:05 great :D Jul 15 23:23:17 sqrrl: as well, if you are doing any heavy loading of anything, while your fragments are being swapped, as in the new fragment doing processing in onCreateView, onCreate, onAttach etc on UI thread will cause sluggish behavior. You should swipe vanilla fragments with your pager&see how smooth they are Jul 15 23:23:20 apparently a great many things are run on ui thread, like onServiceConnected, then. (why?) Jul 15 23:23:53 well, it's not the ui thread per-say. It's the main thread Jul 15 23:24:15 ui stuff does typically occur on the main thread, but it's not solely for the UI Jul 15 23:24:28 sqrrl: any processing of data, or any loops or long processes etc should be started in seperate threads, then return back to main Ui thread Jul 15 23:24:41 sqrrl: In general, you want any actions that take any amount of time on a different thread. Jul 15 23:25:01 And canvs2321- beat me to the punhc. Jul 15 23:25:05 punch, even. Jul 15 23:25:20 but your words maybe more readable :) Jul 15 23:25:30 more heads equal greater chance of success Jul 15 23:33:18 why getChildrenCount is logged with 3 and the getChildView isn`t called? http://pastebin.com/iq67DysY Jul 15 23:34:49 seems like you guys are totally right! Jul 15 23:34:59 thanks a lot. will be looking into them threads Jul 15 23:43:02 Hey guys. I'm facing a strange problem. Jul 15 23:43:16 I'm using android:transcriptMode="alwaysScroll" on a listview that is populated with user chats. Jul 15 23:43:35 each time the user sends a new message I add it to the listview Jul 15 23:44:16 The first time I add a new message the screen updates automatically and the listview automatically scrolls. But after the first time I always have to touch the screen to update the states Jul 15 23:45:41 sqrrl: Lookup AsyncTasks, or Threads&Handlers Jul 15 23:47:05 Birk: Whereever you are updating your data¬ifying your adapter, can do a setSelection on your listview based on the adapters count Jul 15 23:49:22 any help? Jul 15 23:52:11 canvs2321: Ive already tried Jul 15 23:52:46 canvs2321: it works a few times and then it stops working Jul 15 23:52:52 doesnt know why Jul 15 23:54:18 I'm new to Android Development, and my environment is acting a bit flaky (probably due to my own idiocy). If I modify activity_main.xml, run debug and then change back to the old activity_main.xml, my application no longer runs in debug mode in eclipse. Jul 15 23:55:07 I get the message Error in XML file: aborting build. Jul 15 23:56:15 What is the equivalent of ThreadPoolExecutor when I only want to use one thread? Jul 15 23:58:19 evening Jul 15 23:58:28 I'm having a bit of trouble working out how to debug android apps Jul 15 23:59:59 I can get adb to actually launch an app with "adb shell am -D " but it doesn't seem to do much beyond pop up a message on the target device saying it's waiting for a debugger Jul 16 00:00:35 gordonjcp: run ddms, and then select the process that you want to debug Jul 16 00:00:58 that should open up a port on your local machine (5900 iirc), that you can then connect to as a remote debug session in your IDE/debugger of choice Jul 16 00:01:31 Once the debugger is connected, the application should start running as per normal Jul 16 00:02:15 right, but adb just drops me back to a prompt Jul 16 00:02:24 hi guys, could anyone tell me how it is possible to have a function that runs the first time your android application is run, but never again? (creating a database initially, but not recreating it each time the app launches again) Jul 16 00:02:24 how do I connect it? Jul 16 00:02:54 JesusFreke: or, am I getting the wrong end of the stick here Jul 16 00:02:58 gordonjcp: run ddms, select the process... etc. Jul 16 00:03:09 gaminator: check to see if the database exists, create it if it doesn't Jul 16 00:03:25 I'll try that Jul 16 00:05:21 JesusFreke: so it's not like adb is like gdb then? Jul 16 00:05:57 gaminator: usually when you get a "once and only once" thing, you don't really want that thing to happen only once ever *ever*, you want to ensure a condition is satisfied, and if not then satisfy it Jul 16 00:06:00 gordonjcp: adb is half telnet and half remote gdb Jul 16 00:07:35 okay, ddms is weird Jul 16 00:09:10 gordonjcp: no Jul 16 00:11:20 JesusFreke: is there a way to actually debug apps with it? Jul 16 00:11:33 gordonjcp: are you wanting to debug java or native code? Jul 16 00:11:58 JesusFreke: at this point I have no idea Jul 16 00:12:10 most likely java Jul 16 00:12:33 so you'll need something that's capable of java debugging. Say, eclipse or android studio/intellij IDEA Jul 16 00:12:43 "something" crashes, throwing "java.lang.RuntimeException" Jul 16 00:12:54 yes, that would be java :) Jul 16 00:13:06 I looked at eclipse, it's too complicated Jul 16 00:13:46 I'm not a fan of eclipse myself. If I were doing it, I would go with normal intellij idea. Jul 16 00:14:38 you have to get a project set up in whatever IDE you're using, and then you'll have to figure out how to do a remote debugging session. Basically, you tell it a host and port to connect to for debugging. And you'll use localhost:5900 Jul 16 00:14:45 hm Jul 16 00:14:54 I've never really used an IDE in the past Jul 16 00:15:20 There's not really any good way to debug java from the command line. There is jdb.. Jul 16 00:15:39 you tend not to get IDEs for assembly, and automotive braking controllers aren't *that* complicated to program Jul 16 00:16:10 Right. I typically don't use an IDE when I do assembly. Jul 16 00:16:18 but I can't imagine doing java programming without an IDE :) Jul 16 00:16:29 :-/ Jul 16 00:16:45 hey all, has anyone seen this proguard error before? http://pastie.org/private/fei8eiqburnsdch07yc5yg Jul 16 00:16:50 if so, any ideas? Jul 16 00:16:53 so basically, there is no way to get sane error messages out of Java, without having to install some sort of IDE Jul 16 00:16:56 is that right? Jul 16 00:17:06 you can try jdb Jul 16 00:17:59 or just read the logcat Jul 16 00:18:33 you can debug without Eclipse Jul 16 00:18:42 just use logcat and jdb Jul 16 00:19:03 canvs2321: the logcat doesn't actually tell me what's wrong Jul 16 00:19:23 then you aren't getting exception errors? just unexpected results? Jul 16 00:19:31 I'm getting an exception error Jul 16 00:19:36 it tells me it's an exception error Jul 16 00:19:41 cause logcat will post all Exception errors&tell you exact line Jul 16 00:19:42 it doesn't tell me what it's taking exception to Jul 16 00:20:24 you using proguard? post your logcat Jul 16 00:20:57 aha Jul 16 00:21:04 no, wait, I'm talking rubbish Jul 16 00:21:24 *logcat* displays the full error, ddms truncates it with "... 11 more lines" Jul 16 00:21:33 those truncated lines contain the line where the erorr occurs Jul 16 00:21:52 unfortunate :) Jul 16 00:22:01 oh no, wait, logcat chops them too Jul 16 00:22:11 just post it Jul 16 00:22:13 I'm using an edittext in the bottom of the screen. When the keyboard appears this edittext stays above the keyboard. The problem is that in some moment the edittext stops resizing when adding multiple lines. Any clue? Jul 16 00:22:14 wtf, why generate a backtrace if you're not going to show me it? Jul 16 00:22:44 the stacktrace usually trickles down, so topmost is where your code is residing Jul 16 00:22:47 http://paste.ubuntu.com/7800978/ Jul 16 00:22:53 gordonjcp: it does show them, it's part of the inner exception that it shows below Jul 16 00:23:03 or above, rather Jul 16 00:23:14 NPE at line 159. Jul 16 00:23:25 in your oncreate Jul 16 00:23:31 check at ch.blinkenlights.android.vanilla.FullPlaybackActivity.onCreate(FullPlaybackActivity.java:159) Jul 16 00:23:32 the "... 11 more" basically means that those lines are the same as the inner exception Jul 16 00:23:38 as dragorn said Jul 16 00:23:40 canvs2321: yes, I spotted that Jul 16 00:23:46 can't see why it would have a null pointer Jul 16 00:23:54 paste the code there Jul 16 00:23:57 can I get it to tell me what it's trying to dereference? Jul 16 00:23:57 pastebin that part of your code Jul 16 00:24:10 whatever you're doing in line 159 is what it's trying to dereference :P Jul 16 00:24:19 nobody has run into this proguard issue? Jul 16 00:24:26 http://pastie.org/private/fei8eiqburnsdch07yc5yg Jul 16 00:24:31 it has just recently started happening Jul 16 00:25:19 dcope: what is your duplicate zip entry? do you have multiple libraries loaded or anything? i can't tell much, but it can't read your manifest and then says multiple entries Jul 16 00:25:58 dragorn: this is someone else's code, and I suspect I'll need to unwind some weirdness before I can pastebin anything useful Jul 16 00:26:36 gordonjcp: if you didn't copy / it can't load the layouts properly it may be looking for a view that doesn't exist Jul 16 00:26:55 gordonjcp: otherwise it may be a permissions failure if you didn't copy the right stuff into your manifest Jul 16 00:27:27 dragorn: I think it's some borked XML Jul 16 00:27:32 because I REALLY don't feel like working on work code i just went and found the file Jul 16 00:27:37 and line 159 is nextButton.setOnClickListener(this); Jul 16 00:27:39 dragorn: I think I've hit an edge case that the original dev never encountered Jul 16 00:28:03 so, bam - called it, probably. nextbutton is probably not in the layout it's loaded. Jul 16 00:28:29 findviewbyid returns null when it can't find whatever ID you've told it in the activity layout lists Jul 16 00:28:47 dragorn: yeah Jul 16 00:30:31 canvs2321: the duplicate zip entry is in the error log Jul 16 00:31:05 (Duplicate zip entry [com/google/android/gms/internal/jp.class == google-play-services.jar:com/google/android/gms/internal/iv.class])) Jul 16 00:31:24 no shit, i'm saying why is it duplicate Jul 16 00:31:41 dcope is this with the gradle plugin ? Jul 16 00:31:50 it's obviously a library, do you have multiple Jul 16 00:32:09 g00s: yes, i'm using gradle Jul 16 00:34:50 wow, so IBM is going to start selling iOS stuff to business clients globally Jul 16 00:35:44 wonder what HP will do Jul 16 00:36:02 i got it fixed Jul 16 00:36:23 g00s: stick their head between their legs and kiss their ass goodbye Jul 16 00:36:39 dragorn: weird, I can see what it's trying to do but not why it's going wrong Jul 16 00:37:04 dragorn: thanks for the help, I'm going to leave it until the morning though :-) Jul 16 00:37:24 JesusFreke: I'll take a look at intellij in the morning too Jul 16 00:37:27 thanks guys Jul 16 00:38:15 gordonjcp, more lines = nested, and they were already shown Jul 16 00:38:51 gordonjcp: R.id.next isn't being found in your current layout; either your layout is borked, or the full screen layout stuff is weird, or you've got some sort of file conflict where it's not loading what you think for R.layout.full_playback Jul 16 00:39:10 dragorn: yup Jul 16 00:40:09 dragorn: what's 'R' in this context, seems to be the loaded XML layout file? Jul 16 00:40:42 gordonjcp: R is the autogenerated resources file which references things in your res/ directory Jul 16 00:40:47 right Jul 16 00:42:48 wait what Jul 16 00:43:12 one of the layout files has ^M line endings, and it's the one that contains the controls referenced by line 159 Jul 16 00:43:32 ... and that's fixed it Jul 16 00:43:39 again, thanks for all the help Jul 16 00:43:49 what a wonderful world of weirditude this is going to be Jul 16 00:44:09 interesting. well, there you go! Jul 16 00:44:18 Does it make any sense to stretch this kind of image around the center icon? http://take.ms/WBFl0 Jul 16 00:44:29 okay so the buttons are all swapped around Jul 16 00:44:34 but it's not crashing now Jul 16 00:44:55 hey, can someone help me out with the android GoogleApiClient? Jul 16 00:51:29 hello Jul 16 00:51:38 dont you dare Jul 16 00:51:46 what Jul 16 00:51:47 me? Jul 16 00:51:55 act all innocent, after... Jul 16 00:52:01 ME? Jul 16 00:52:12 what are you talking about? Jul 16 00:52:12 dont play these games Jul 16 00:52:13 you know what you did... Jul 16 00:52:18 canvs2321: what did he do? Jul 16 00:52:22 just let it out! Jul 16 00:52:23 JESUS WHAT DID I DO Jul 16 00:52:29 SOMEONE TELL ME Jul 16 00:52:41 or is this a way to get unwanted users off the channel Jul 16 00:52:50 Sorry, i just get confused sometimes when ppl say hello Jul 16 00:52:52 Anyone use the GoogleApiClient? Jul 16 00:53:06 madskillsmonk: try asking a substantive question... Jul 16 00:53:08 I always suspect chaos Jul 16 00:53:08 @canvs2321 -_- Jul 16 00:53:30 i just have a question about the Kyocera Torque Jul 16 00:53:38 well what is it Jul 16 00:53:41 Huh, Google responded to one of my job applications from two months ago. Guess I get to put that on my "that's a first" list. Jul 16 00:53:53 When I use the GoogleApiClient.connect(), there is a popup (as expected) that connects ( think), but the onConnect callback is never callde, indicating that it never actually connects Jul 16 00:53:54 should start with the question, as hello marks u terrorist Jul 16 00:53:59 this is probably a question only Torque owners will kniw Jul 16 00:54:06 *know Jul 16 00:54:12 and sorry for being polite Jul 16 00:54:14 jeez Jul 16 00:54:21 don't ask to ask Jul 16 00:54:27 OK DUDE JEEZ Jul 16 00:54:30 what is the ? Jul 16 00:54:33 I just asked the question, sorry. Jul 16 00:54:37 i have the answer, yellow Jul 16 00:54:43 not u mad :) Jul 16 00:54:46 DOES THE TORQUE HAVE A SIM CARD SLOT, AND DOES IT SUPPORT GSM NETWORKS? Jul 16 00:54:50 jasonmerc: Torque? The engine? Jul 16 00:54:51 jasonmerc: this is a question about app development, right? Jul 16 00:55:01 do some debugging mad Jul 16 00:55:01 i didnt know this was only for app development Jul 16 00:55:02 That horrible awful engine that Tribes 2 used? Jul 16 00:55:08 no Jul 16 00:55:11 Oh thank god. Jul 16 00:55:11 yes you did, because you read the channel topic before posting Jul 16 00:55:12 Kyocera Torque Jul 16 00:55:20 heres why i asked this question here Jul 16 00:55:30 i asked on the regular #android and no one knew Jul 16 00:55:31 but i asked in #android-root and no one was around Jul 16 00:55:32 canvs2321: what do you suggest I can do about debugging this? there is no log messages/errors and google has absolutely nothing Jul 16 00:55:34 right? I mean, you wouldn't join a new channel and ask a question without checking the topic first? Jul 16 00:55:45 i figured #android-dev would have more android-experienced people Jul 16 00:55:59 and every other channel I visit, no one talks about the topic Jul 16 00:56:02 yeah... but devs talking to devs, not doing random device support Jul 16 00:56:09 alrighty then Jul 16 00:56:13 WHO THE FUCK KNOWS THIS IS DEV TALK NOT PHONE TALK Jul 16 00:56:17 sorry for infringing on your territory Jul 16 00:56:21 bye then Jul 16 00:56:24 Clarity! Jul 16 00:56:24 bye Jul 16 00:56:42 Guys, i have some dev issues if you desperately trying to talk dev! Jul 16 00:56:59 #android-dev: continuing evidence that people assume programmers are also their general tech support line. Jul 16 00:57:35 madskillsmonk: basically, you are calling that GoogleApiClient.connect() code, you say that it connects(u think), but you don't get what you expected. Are you getting errors, or just blank results? Jul 16 00:58:20 canvs2321: it opens a popup (after the client.connect() call), but there is an onConnect listener that is never triggered (I have a breakpoint there that never goes off) Jul 16 00:58:39 paste some code that is relevant to your ? Jul 16 00:58:44 Sure, 1 second Jul 16 00:58:45 debug the connecting code Jul 16 00:59:43 is correct to use if (convertView == null) in my ArrayAdapter? Jul 16 00:59:49 http://pastebin.com/NbQ5r086 Jul 16 01:00:04 It is really messy... I just want to get this working and then I'm going to refactor it Jul 16 01:00:29 Suchoriski: maybe so if is similiar to BaseAdapter, where if null it hasn't been loaded before Jul 16 01:01:09 canvs2321 because i use two layout diferents Jul 16 01:01:09 some adapters reuse views, so if null create, if not then reuse and reset data Jul 16 01:01:43 if I check null, the list shows wrong Jul 16 01:01:54 well if convertView == null, then if layout==X or or layout==Y inflate NEEDED Jul 16 01:02:11 Hey everyone. I have a question about selectors and the state_selected Jul 16 01:02:21 it seems like my listview/gridview maintain a selected item Jul 16 01:02:23 ProgramMax: congrats! Jul 16 01:02:33 even when my focus moves away to another widget Jul 16 01:02:37 ProgramMax: this has been told to you before Jul 16 01:02:45 views are recycled Jul 16 01:02:53 I don't think this has to do with recycling Jul 16 01:03:00 I don't need to introduce a new view for it to happen Jul 16 01:03:01 quit saying that Jul 16 01:03:10 post your adapter Jul 16 01:03:23 it IS recycled! Jul 16 01:03:26 Anyone have any questions about my code/suggestions for me to debug what is there? Jul 16 01:03:30 K Jul 16 01:03:32 gridview, listview, it's recycled! Jul 16 01:03:50 while I'm doing that, can you help me understand why going from button, down into first list view which was visible, then back up to the button Jul 16 01:03:55 IE no new views are being introduced Jul 16 01:04:00 would somehow bring recycling into the picture Jul 16 01:04:05 on getView if i set a view to visibility View.GONE it will keep being gone on that position Jul 16 01:04:08 I understand recycling will reuse the data Jul 16 01:04:11 hey all Jul 16 01:04:19 why would my signed apk crash with this stack http://pastie.org/private/k4xesiki3jouhuarfzfhq Jul 16 01:04:20 canvs2321 http://pastebin.com/25tGSSsS Jul 16 01:04:27 but the debug apk works fine Jul 16 01:05:21 Suchoriski: you aren't checking view==null, you are checking data Jul 16 01:06:07 my adapter: https://github.com/gueei/AndroidBinding/blob/master/Core/AndroidBinding/src/gueei/binding/collections/CollectionAdapter.java Jul 16 01:06:13 canvs2321 when check this null, my list doesn`t show well Jul 16 01:06:16 canvs I still think you aren't seeing the question I am asking Jul 16 01:06:24 I don't believe the view is being recycled Jul 16 01:07:00 ProgramMax: if (position >= mCollection.size()) Jul 16 01:07:00 return returnView; Jul 16 01:07:08 you are returning a recycled view Jul 16 01:07:23 line 99&100 in your getView Jul 16 01:07:47 and returnView == convertView that has been recycled Jul 16 01:07:59 so.... Jul 16 01:08:56 and don't do try{} in a getView, or anything that has to do work, have it all precalculated Jul 16 01:09:22 anyone? i will be willing to pay for your time if you can assist with this crash only with the signed apk Jul 16 01:09:27 minimize any if/else,etc, any logic should be done before hand Jul 16 01:09:37 so it creates a new view when selected? Or rather, calls getView on an item again now that it has the selected state? Jul 16 01:10:39 getView is called, when first called, it just calculates size, then after it keeps all settings set and upon next getView it has everything set from before. You have to set based on Position Jul 16 01:11:06 right, I understand how view recycling works in that way, and the view holder Jul 16 01:11:19 this is why I think perhaps I didn't ask my question clearly enough Jul 16 01:11:22 all views text,states of visiblity etc. are all kept on that position of the reused view Jul 16 01:11:33 after the visible views are created I can press down and up Jul 16 01:11:34 no Jul 16 01:11:40 look at your getView! Jul 16 01:11:41 down gets me into the list, up gets me back out Jul 16 01:11:56 View returnView = convertView; Jul 16 01:11:56 if (position >= mCollection.size()) Jul 16 01:11:56 return returnView; Jul 16 01:12:09 I see it. To be clear, other pieces are being changed...the text inside, the image Jul 16 01:12:17 so if the position is last of the list it just returns the recycled view unchanged Jul 16 01:12:22 the thing which isn't changing is that an item in the list seems to maintain its selected state Jul 16 01:12:25 nope! Jul 16 01:12:36 nothing is changed, you just return the view Jul 16 01:12:46 I'm telling you what my running code is doing. Maybe it is elsewhere in the code. But you're really missing what I'm saying Jul 16 01:12:58 you return before anything can be changed in that try{} statement Jul 16 01:13:02 does selected attribute affect getView Jul 16 01:13:12 ProgramMax: i'm done, you are stubborn. That's it Jul 16 01:13:26 How am I stubborn? I'm trying to show you that you aren't seeing what I'm saying Jul 16 01:13:31 trying to steer us back to the question at hand Jul 16 01:13:58 I see if (position >= mCollection.size()) Jul 16 01:13:58 return returnView; anything after that doesn't run Jul 16 01:14:17 so nothing is changed Jul 16 01:14:20 even if my list is 2 items long and all items are visible, moving my focus away from the list with the dpad, an item in the list maintains its selected state Jul 16 01:15:00 canvs2321 can you help me showing why my BaseExpandableListAdapter isnt calling the method getChildView? i`ll show ine shot aant the code Jul 16 01:15:15 and so do any other items outside the intial unscrolled view that has a position 0 - X where X is based on your screen size allowing X items to be visible Jul 16 01:15:37 right. I understand that Jul 16 01:15:40 and I'll happily fix that Jul 16 01:15:47 but that wouldn't explain the 2-items-long list, right? Jul 16 01:15:47 canvs2321 http://puu.sh/ad2SV.png Jul 16 01:16:06 nor would it explain why selecting into and out of the list (not changing viewable area) Jul 16 01:16:09 the getChildrenCount is Logging well Jul 16 01:16:21 which is why I'm uncertain if getView is called as an item's selected state changes Jul 16 01:16:29 I think getView is called as items are scrolled into view Jul 16 01:16:34 http://pastebin.com/yycBviGR Jul 16 01:16:36 ProgramMax, you have to remove if (position >= mCollection.size()) Jul 16 01:16:36 return returnView; and redo your code Jul 16 01:17:43 Suchorski: I don't know anything about getChildView stuff Jul 16 01:17:53 :( Jul 16 01:17:54 tks Jul 16 01:18:21 Suchorski: what is your issue? Jul 16 01:18:38 the method getChildView Jul 16 01:18:45 isn`t called Jul 16 01:18:48 look the shot Jul 16 01:18:56 the 3 returns from getChildrenCount Jul 16 01:19:10 but the getChildView isn`t called Jul 16 01:19:12 are you notifying your adapter that a change has happened? Jul 16 01:19:43 the BaseAdapter don`t do that? Jul 16 01:19:55 i know getView of a BaseAdapter only happens when notifyDataSetChanged(), is it similiar with yours? Jul 16 01:20:06 do play store apps require proguard? Jul 16 01:20:18 i`m just clicking to show the expandable list Jul 16 01:20:31 dcope: proguard is used to secure your code mostly i think, and to optimize a bit Jul 16 01:21:19 canvs2321 the data wasn`t changed Jul 16 01:21:31 canvs2321: yeah but out of the blue it's causing my release builds to crash on launch Jul 16 01:22:01 dcope you don't need to use proguard Jul 16 01:22:06 ok cool Jul 16 01:22:44 but, its often fun finding out which one of 1000 reasons made it blow up Jul 16 01:23:08 Hey, i'm using git + other developers, how can I incude the libraries that I'm using in git so they can use pull the latest commit and they will have my included libraries? Jul 16 01:23:29 trying to maintain an old android app is worse than maintaining an old rails app Jul 16 01:26:05 dcope: only reason i see to use proguard is obfusicating(sp?) code so ppl can't decompile and copy it. But I believe it may also optimize a bit, but i could be wrong Jul 16 01:27:05 canvs2321: ive shipped 7 versions of this app with it Jul 16 01:27:08 Suchorski: data can be changed by clicking a list item to allow it to show additional views, maybe paste something of your intents Jul 16 01:27:17 but now all the sudden it crashes on launch because of it Jul 16 01:27:34 dcope: but what i'm saying is it isn't needed, unless you think ppl will want to steal your code Jul 16 01:27:47 it just makes it harder to follow Jul 16 01:28:07 with i have a method showMeThis() it changes to aA() Jul 16 01:29:19 dcope i'm a bit rusty, but maybe the proguard configuration changed between now and the last time it worked. do you manually create a proguard.cfg file? if so with the new stuff you may have to make some adjustments Jul 16 01:29:41 how can i obfuscate my source code so that it's completely unintelligible? Jul 16 01:30:25 g00s: i've checked the scm and it hasn't changed Jul 16 01:30:40 dcope you said you were using gradle ? Jul 16 01:31:01 canvs2321 I have a ArrayAdapter creating this BaseExpandableListAdapter http://pastebin.com/dr6ymWxM Jul 16 01:31:26 g00s: yes Jul 16 01:31:48 dcope did the last working build also use gradle ? Jul 16 01:31:56 canvs2321: Related to the UI problem that doesnt update. I've discovered that the problem appears always after I update the UI with notifyDatasetChanged. When I dont call it the edit text above the keyboard keeps resizing normally. But when I update the UI with notifyDataset the problem occurs. Jul 16 01:32:15 g00s: yup Jul 16 01:32:41 dcope hmm, shit. i'd make sure its grabbing your 'known good manually craeted proguard.cfg' Jul 16 01:33:13 Looks like the visible keyboard cant handle something when the UI changes. Because when I close it and reopen it works the first time again. Jul 16 01:33:57 dcope its usually good to let proguard do its thing, if only to make a smaller apk Jul 16 01:40:35 i think the problem is because i updated Android Studio Jul 16 01:40:38 and that broke a shit ton of stuff Jul 16 01:43:13 canvs2321 in the android 2.3.3 works my code lol Jul 16 01:43:21 in the 4.4.2 don`t Jul 16 01:50:18 just don't use proguard unless you have a real need Jul 16 01:50:27 piracy is not a real need Jul 16 01:51:25 what about "I wrote embarrassing code"? Jul 16 01:51:36 dont write embarrassing code Jul 16 01:51:45 ahhh.. that's hard Jul 16 01:51:50 poor you :p Jul 16 01:52:06 :p Jul 16 01:56:43 pfn: the thing is... it used to work fine. now i update android studio and it stops working and causes my app to crash on launch. Jul 16 01:57:36 dawned if I know, never depend on an ide to create release builds Jul 16 01:57:40 damned Jul 16 01:57:45 stupid SwiftKey Jul 16 02:15:09 well im making progress Jul 16 02:15:24 now with proguard i get a crash that says E/AndroidRuntime(10715): java.lang.RuntimeException: Unable to create application com.activeandroid.app.Application: android.database.sqlite.SQLiteException: near ")": syntax error (code 1): , while compiling: CREATE TABLE IF NOT EXISTS c (); Jul 16 02:19:23 Is piracy not a real need? Jul 16 02:19:37 what should you use instead you think? Jul 16 02:19:58 take all the strings and store them crypted maybe Jul 16 02:20:09 have your lvl be in native code. Jul 16 02:21:00 ohh, or maybe even have some of your code be in Lua! Jul 16 02:22:43 yeah, put a crypted call to get your package's classes.dex from the apk zip, and get the crc from the zip, and put it in a core part of your app which you write in LUA. Jul 16 02:22:54 is nobody in here using proguard + activeandroid? Jul 16 02:49:40 is getDimensionPixelSize the right way to us a dimension resource defined in DPs? Jul 16 02:50:04 okay so I just grabbed some code with the view holder pattern and what I believe is correctly recycling the views Jul 16 02:50:07 and the problem still exists Jul 16 02:50:27 my code is based off of this: https://github.com/PareshMayani/Android-GridView-Example Jul 16 02:50:49 I only modified it to have a background selector which is red for state_focused, state_pressed, and state_selected Jul 16 02:50:53 white by default Jul 16 02:51:03 and I added a button above the gridview which also has the same background selector Jul 16 02:51:33 and just like I was saying, when you navigate into the gridview with a d-pad things look correct...but when you navigate out the gridview keeps the last item you had selected Jul 16 02:51:43 so now the button and the last gridview item both have the red background Jul 16 02:51:54 it is as if the gridview maintains its selected item Jul 16 02:52:23 I can upload the project if you don't want to make those same modifications to see it. **** ENDING LOGGING AT Wed Jul 16 02:59:59 2014