**** BEGIN LOGGING AT Tue May 13 02:59:59 2014 May 13 03:07:07 if Camera.getNumberOfCameras() returns 0, does that mean there are no available Cameras? May 13 03:09:43 depends which API level you're using May 13 03:10:30 API 16 May 13 03:12:17 if you're getting 0 and there's a camera it might be a perms problem May 13 03:12:28 <|0xD34D|> gopar: is it a camera that is part of the device or are you trying to use some webcam shiznit? May 13 03:13:28 It's part of the device May 13 03:13:49 I have camera permissions set May 13 03:13:51 <|0xD34D|> does it work? can other apps, such as the stock camera app access it? May 13 03:16:08 The stock camera works fine. is that what you meant? May 13 03:16:22 <|0xD34D|> close enough May 13 03:19:02 hello all May 13 03:26:48 hey QubeZ May 13 03:26:54 Napalm|afk there? May 13 03:26:58 ugh, guess not May 13 03:27:01 hey g00s May 13 03:27:13 :) May 13 03:27:18 trying to figure out how WiFi + Cellular is possible May 13 03:27:39 After trying to get a bitmap from an input stream, sometimes for very large images I get a non null bitmap back with the correct heights, but all of the bytes are -1, -1, ..., etc. How can I tell if this happened i.e. if the image didn't decode properly? May 13 03:27:41 hmm May 13 03:27:48 have an ad-hoc wifi I need to connect to (AR Drone) but need my phone on cellular to get gps fix and coords then send to my AR Drone May 13 03:28:27 Hello everyone May 13 03:29:17 QubeZ why do you need phone on cellular to use gps ? May 13 03:29:39 g00s: assisted GPS, i hear it takes forever to get a fix if you aren't on celluar May 13 03:29:50 this is true May 13 03:29:50 pretty much depends on the chipset May 13 03:29:55 most AGPS chips are awful May 13 03:30:10 but you don't generally need to be on cell May 13 03:30:20 you just need to be in range of towers it understands May 13 03:30:27 or would it be possible to stay on celluar long enough to get a fix on the satellites then disconnect and use wifi? May 13 03:30:28 and not in airplane mode May 13 03:30:49 what do airplane mode? May 13 03:31:01 if you're in airplane mode the cell modem is turned off May 13 03:31:16 so it's not going to get cell-precision location data. May 13 03:31:25 airplane mode means no wifi but cell? May 13 03:31:32 I'm working on a proof of concept where I get gps coordinates from my phone and pipe that to my AR Drone which has a GPS flight recorder -- the AR Drone takes position of my location as I move it keeps moving along aka follow me May 13 03:31:44 walk down the street with a drone following May 13 03:31:54 QubeZ: you don't need to be on cellular data to get agps seed data, you just need to be in range of towers your phone understands May 13 03:32:14 was originally writing it for my Google Glass but I need to then figure out the bluetooth piece which I'm not fmailiar with at all so I'm testing out this before I delve into that May 13 03:32:22 QubeZ: and the agps seed will all happen outside of your control, just request high-precision location May 13 03:32:40 dragorn: how does my phone understand the towers without cellular connectivity? May 13 03:32:44 QubeZ: so if you took a cdma-only phone to europe, it won't get seed data, but otherwise it should be fine May 13 03:33:10 QubeZ: define "without cellular connectivity" May 13 03:33:30 QubeZ did you see the new bepop drone ? May 13 03:33:50 so I take my Android phone outside and then turn off Wifi and connect to an ad-hoc network (to my AR Drone). How then does the Android phone handle GPS fix? May 13 03:34:03 btw, i was in the preserve the other day and a steward was looking for a downed drone; kinds not looking forward to this May 13 03:34:52 i wont fly mine that high :) May 13 03:35:54 any devs that play the yugioh trading card game want to get together on an app i have on the play store May 13 03:36:27 im not the best at designing UIs so be cool to get other devs to work together May 13 03:36:28 not sure if that was serious or a joke :S May 13 03:36:37 QubeZ: it shouldn't matter. you should be fine. even when you're not using cell as your data network, you get passive location info which is enough to seed agps May 13 03:36:43 me? May 13 03:36:54 yes, you May 13 03:36:57 QubeZ: (same way you get coarse location information for maps, etc even when you're on wifi) May 13 03:37:02 serious May 13 03:37:26 QubeZ: if you turn off the cell entirely, ie airplane mode, then you won't get seed info. You'd have to go out of your way to mess up the agps seed in other words. May 13 03:37:35 is it ok to post links to the google play store? May 13 03:37:47 dragorn: hmm ok so that is promising that this is achievable May 13 03:38:06 I could go outside, connect to my ad-hoc wifi network and still show fine location coordinates? May 13 03:38:13 QubeZ btw, how is the Wifi Direct stuff working out so far ? May 13 03:38:16 https://play.google.com/store/apps/details?id=cybertech.productions.yugiohlibrary1 May 13 03:38:17 QubeZ: if you pulled the sim you'd probably mess with agps but even then I wouldn't fully bet on it. In theory the radio can still figure out what towers are nearby since they have to support e911 May 13 03:38:42 g00s: have no experience with wifi direct May 13 03:38:55 QubeZ but you mentioned adhoc wifi right ? May 13 03:39:00 btw the parrot drones are hilariously fun to fuck with May 13 03:39:19 g00s: sorry, ya its ad-hoc but not wifi direct. Basically the AR Drone functions as an AP when it boots up that you connect to May 13 03:39:25 ad-hoc i.e. not infrastrcutre mode May 13 03:39:27 aaahh May 13 03:39:29 I helped a buddy down at west point w/ some code that would find all the parrots in the area, crack their wep, and issue the panic kill command May 13 03:39:37 it made an AWESOME demo for the cadets in the CS program May 13 03:40:08 dragorn: ya they are, had lots of fun controlling it with Google Glass but can't get voice control because my wifi on Glass connects to the Drone then I have no bluetooth connectvity back trhough my phone for the assisted voice recognition :) May 13 03:40:14 a problem to solve for another day May 13 03:40:48 for now I'm going to move to my android phone to get this follow me feature working May 13 03:40:56 i need to play w/ mine again but... no time. May 13 03:41:19 g00s: 8 days to code freeze, a month to ship, then I can think about playing with wifi direct May 13 03:41:36 ship what? May 13 03:41:47 https://www.blackphone.ch/ May 13 03:42:01 :D May 13 03:43:46 dragorn see this today http://www.cnet.com/news/nsa-reportedly-installing-spyware-on-us-made-hardware/ May 13 03:44:08 gotta make sure they don't gran the 'shipments' :D May 13 03:44:11 *grab May 13 03:46:03 hmm phil zimmerman May 13 03:48:31 phil's good people May 13 03:52:36 thoughts / suggestions on how to achieve the following... May 13 03:52:56 so... why when I use virtual destructors in a C++ class the app crashes? May 13 03:53:08 when a view/row is offscreen does it still hold position 0? one of the positions that gets passed to getview May 13 03:59:04 Hi all I have some questions related May 13 03:59:30 what is the best replacement for Gallery View since is deprecated? May 13 04:00:37 Danguafer: nowhere near enough info to guess. good chance that you're destroying something java still has a handle to May 13 04:01:33 dragorn there is no way to that be true. even if a create an unused class with a virtual desctrutor it happens May 13 04:02:01 Danguafer: k. no idea what you're doing then. May 13 04:02:11 Danguafer: pastebin some code May 13 04:03:52 mmm... I just need to append "class A { public: virtual ~A(){} };" anywhere in any working example. :/ May 13 04:04:11 let me test something... brb May 13 04:09:38 dragorn is there any chance I have to System.loadLibrary on any C++ related stuff? May 13 04:09:57 I read something about it somewhere May 13 04:12:08 I suggest using gnustl_static May 13 04:12:18 I realized it happens when I virtual'ize anything May 13 04:20:39 dragorn that's it, I was using a runtime library that needed to be linked dinamically May 13 04:21:01 dragorn thanks for the enlightment :) May 13 04:22:06 debugging native code on android is pretty unpleasant May 13 04:22:36 you can, however, do the JNI stubs in standard java in a terminal somewhere on a pc and try to replicate issues May 13 04:23:00 That's what I do May 13 04:23:57 It speeds up the compile/run/modify/compile/run/modify loop any how May 13 04:26:53 I am still taking my first steps into it May 13 04:38:58 dragorn man, would you help me with one more thing? for ndk\sources\cxx-stl\gnu-libstdc++\4.8 for example what would be the search directories for it? May 13 04:40:12 I inserted ndk\sources\cxx-stl\gnu-libstdc++\4.8\include and ndk\sources\cxx-stl\gnu-libstdc++\4.8\libs\armeabi\include May 13 04:40:25 but then I get a error during the compiling May 13 04:40:35 ndk\sources\cxx-stl\gnu-libstdc++\4.8\include\ext\atomicity.h|50|error: '__ATOMIC_ACQ_REL' was not declared in this scope| May 13 04:40:38 ;< May 13 04:44:21 I changed 4.8 for 4.6 and it worked, still getting runtime errors hahaha May 13 04:44:27 so many headaches :P May 13 04:50:23 Do I set JAVA_HOME to the JRE or JDK May 13 04:50:39 libgdx is giving me trouble saying java wasn't found at the location i put May 13 04:50:59 command prompt works when i type java thought May 13 04:51:01 though May 13 04:51:58 hmmm May 13 04:52:09 do I take the space out of 'Program Files'? May 13 04:52:55 does anybody have experience with SearchViews? I'm having a huge problem getting the search filter in the activity i want to be called to work May 13 05:03:50 do I have to use the new google services to get locaton or can I still use the normal LocationListener? May 13 05:05:24 QubeZ, you can use the normal one still, but it's less battery effective (from what i've seen) May 13 05:06:09 something15525: thanks, just confused right now since this google services one is new to me May 13 05:06:29 QubeZ, yeah, it's a little confusing to wrap your head around May 13 05:06:33 at least it was for me May 13 05:06:55 i see there has to be maintained a connectivity to googl eservices to get location updates but my goal is to use it long enough to get a GPS fix then disconnect from celluar and use an ad-hoc wifi network that I need to communicate with May 13 05:06:56 QubeZ maybe it would be better tie the parrot to your utility belt that way it follows without gps :D May 13 05:07:09 then hopefully let GPS take over from there May 13 05:07:11 g00s: lol May 13 05:07:18 easier for sure but less cool :) May 13 05:08:26 lol May 13 05:09:05 so nobody knows anything about searching? lol May 13 05:11:00 something15525 neither does google; tried searching for hamburger places in my zip - and i have a general idea whats around - and it was total fail May 13 05:11:10 that is, from the android google maps May 13 05:11:31 aww ... i'm sure mcdonalds is close, buddy May 13 05:12:07 lollll May 13 05:12:16 g00s, define total fail May 13 05:15:11 I live 9 blocks from McDonald's. ... do you want me to mail you something? May 13 05:16:06 g00s: should make it just burger May 13 05:17:09 wow lol, magically got it to work May 13 05:17:28 9 blocks? i have 8 fast food places within 1km of my house :S May 13 05:18:21 nearest mcdonalds to me is 1 block lol May 13 05:20:55 it's funny now how they pretend to be healthy May 13 05:21:27 throw a bit of green on there and it's healthy May 13 05:45:31 hi, I have a vertical linearlayout with an image and some text, but there is a gap above and below the image that I haven't specified May 13 05:46:03 http://pastebin.ws/6rnhg3 here's the xml May 13 05:57:20 Jonno_FTW: make your marginBottom and marginTop 0dip May 13 05:59:05 and if other widgets are taller than the image they will cause the space to happen as well May 13 06:00:56 shmooz: I tried that but the gap is still there May 13 06:04:28 Jonno_FTW: maybe it's keeping the aspect ratio of the image which causes bars May 13 06:05:21 anyone here us libgdx May 13 06:06:54 shmooz: with the layout lines turned on, there's a horizontal line through the image May 13 06:08:28 you made paddingTop and paddingBottom 0 ? May 13 06:08:50 shouldn't have that line May 13 06:10:05 pretendo: did you set JDK_HOME yet ? May 13 06:11:33 no May 13 06:11:40 so just set it to the JDK folder location? May 13 06:12:54 build keeps fucking faili0ng... May 13 06:13:30 yes like C:\Program Files\Java\jdk1.7.0_06 May 13 06:13:35 right May 13 06:13:40 I have it now May 13 06:13:48 should I log in and out May 13 06:14:04 set JDK_HOME and that should be enough May 13 06:14:28 I did May 13 06:14:54 did you do your hello world ? May 13 06:15:20 in my SDK? May 13 06:15:33 i haven't done anything yet just trying to set everything up May 13 06:15:46 have you done other programming ? May 13 06:15:55 do I know how to code? yes May 13 06:16:43 https://www.irccloud.com/pastebin/Njx0T71w May 13 06:17:07 no idea what clean in system32 means May 13 06:18:10 oh you switched to AS from eclipse? May 13 06:18:25 shmooz: it looks like this http://puu.sh/8KnHc.png May 13 06:19:22 I'm not using android studio May 13 06:19:36 I haven't dev'd android before May 13 06:19:44 if that's what you're asking May 13 06:20:52 I thought you were trying to get eclipse to work May 13 06:20:57 eclipse works May 13 06:21:05 I am trying to get libgdx to work with eclipse May 13 06:23:09 is that gradle file from libgdx ? May 13 06:23:31 yes May 13 06:23:44 maybe use Android Studio because it supports gradle probably more than eclipse May 13 06:24:06 but the setups pecifically asks for android SDK May 13 06:25:43 what is root project 'System32' ? May 13 06:25:54 I have no clue May 13 06:26:58 find some libgdx tutorial May 13 06:30:54 lol May 13 06:31:12 what game you making ? May 13 06:31:43 2d overhead one May 13 06:31:44 multiplayer May 13 06:31:50 simple outside of the multiplayer thing May 13 06:32:38 none of these tutorials say anything about installation May 13 06:32:56 make little android bots that shoot lasers in like random pacman mazes May 13 06:34:27 shmooz: I fixed it with android:adjustViewBounds="true" May 13 06:35:51 Jonno_FTW: congrats, I forgot about that May 13 06:36:03 why is it looking in system32 for a task called clean May 13 06:36:31 pretendo: because you followed the wrong instructions May 13 06:37:05 sure didn't May 13 06:37:31 or you are missing requirements May 13 06:38:01 is there somewhere where I can see all of the ?android:attr/ styles? May 13 06:40:07 Jonno_FTW: doesn't your IDE pop them up in a list as you type android: May 13 06:40:18 In the javadocs for R.attr May 13 06:40:27 yeah but I want to see them in action May 13 06:40:50 or is it device dependent? May 13 06:43:30 how do I know which of these my app is compatible with? https://www.dropbox.com/s/wdg4weu6i970n44/resolutions.png May 13 06:43:38 Device dependant, theme dependant, api level dependant May 13 06:43:40 I have min 10 and target 19 May 13 06:44:15 but not optimized for tablets, nothing concerning tablets has been added to my app May 13 06:44:33 I can check the dev console I think, should be written what's supported May 13 06:46:14 nah doesn't say May 13 06:46:19 just mentions device names May 13 06:46:39 Jonno_FTW: https://github.com/android/platform_frameworks_base/tree/master/core/res/res May 13 06:47:17 pretendo: ive used some libgdx before May 13 06:47:31 how do I add it in eclipse May 13 06:47:57 pretendo: if you want to write a game i recommend using sdl2 and then importing using the JRI (i think) May 13 06:47:57 I had some queries regarding the USB host mode of android. Is there any special chatroom for that or should I be asking my queries here? May 13 06:48:24 coderbrahmin: whats the problem? May 13 06:50:23 pretendo: do you have any programming experience? May 13 06:50:32 yes May 13 06:50:38 not mucb but yes May 13 06:50:57 perhaps start off buy making a normal window with some moving parts within May 13 06:51:01 by * May 13 06:51:18 I am just beginning my work. I am developing a native program for talking with serial FTDI chips. I have no problem in particular right now, but I may have later. So, I thought, what better than idling on IRC channel with similar motive May 13 06:51:20 the issue as it stands is this not working May 13 06:52:16 pretendo: that was yesterdays issue also with just trying to get java working May 13 06:52:27 coderbrahmin: ah :D keep me posted on progress, im curious :) May 13 06:53:10 Will do. :) May 13 06:57:03 oh the thing im using isnt proejct setup May 13 06:57:57 how do I prevent a viewpager from mirroring the current page in the next page as you swipe? May 13 06:59:56 Should I worry about these errors: "Class not found when unmarshalling" ? May 13 07:01:34 gson? May 13 07:14:43 any ideas how to set a kernel parameter so it stick on boot? May 13 07:15:13 #android-root guys can help ya May 13 07:15:25 i asked no reply i guess it's dead May 13 07:17:40 its' an issue with IPv6 May 13 07:18:17 yeah dead in that channel or nobody knows May 13 07:18:36 that's nice ... doesn't make this the right place to ask May 13 07:19:57 kernel parameters are not related to development? May 13 07:20:12 i guess it's more configration than May 13 07:29:02 Android _application_ development May 13 07:34:34 makes me wonder sometimes if clients hide the topic May 13 07:45:46 PEBKAC May 13 07:45:50 bankai_au, May 13 07:49:24 alex_PP: so rude :p May 13 07:50:50 pclov3r: http://source.android.com/devices/tech/kernel.html May 13 07:51:04 he left =( May 13 07:51:04 he's gone ... May 13 07:51:15 ;_; May 13 07:53:04 Hi , very basic question, Does all OEMs need to provide the source code of Android stack/kernel ? May 13 07:58:06 *sighs* May 13 08:00:57 hi, I'm having problem with implementing an asynctask inside a list fragment class. I'm trying to have an onLoadDataListener as shown here : http://stackoverflow.com/questions/13473995/external-asynctask-populating-listview-from-fragment . Here's my code: http://pastebin.com/xzkpqYes . Near the end, onLoadDataListener is shown as unresolved May 13 08:02:24 r3s: any reason you arent doing this in an intent service? May 13 08:03:08 @Kevel No special reason. Is it the best thing to do? I am still not comfortable with dealing with updating data in fragments May 13 08:04:22 OnLoadDataListener is a custom interface you need to create and implement May 13 08:05:19 Oh so is there a better way to go on this? I actually need to get the rss feeds in the background and update the list once it's done May 13 08:05:57 asynctask, asynctaskloader,service, rxjava are your choices May 13 08:07:23 Hi, I am trying to return search query to current activity, i have the required intent filter and also lunchmode as singleTop, also have initialized searchview in onCreateOptionsMenu but receiving nothing in onNewIntent please help May 13 08:07:58 Hi guys, adding the Google play services in the build.gradle in my project results in unresolved dependencies error after the Gradle sync. Any ideas why ? May 13 08:09:24 bankai_au, thanks, I'll take a look in to it. Is there any other things to consider when using the asynctask in a fragment? May 13 08:11:35 a re-orientation will cause problems with asynctasks, thus an asynctaskloader is suggested -- depends what you're doing and how fast it is, but for network stuff use a service or asynctaskloader May 13 08:11:43 unless you don't care and you're just playing, then continue with what you're doing May 13 08:14:04 how can i start another activity from SearchView onQueryTextSubmit May 13 08:16:02 thanks bankai_au May 13 08:23:00 Hi guys. I've 2 text edit boxes in a custom dialog. When the value on text edit 1 is incorrect and the user has already filled the second text edit, I want to requestFocus() on the first field, but it doesn't work. May 13 08:23:00 Btw, when the value of any text edit is incorrect a dialog box is triggered. --> This is the reason it doesn't work, when using a simple toast, I've not that kind of problem. May 13 08:23:00 The same applies for the keyboard which isn't restored when the error dialog has dismissed. May 13 08:23:29 is it not possible to do getFragmentManager.findFragmentByTag in a runOnUiThread? May 13 08:25:00 Anyone know how much padding is added, when using android:scrollbarStyle outsideInset? I cant seem to find the dp number anywhere May 13 08:25:18 It appears to be ~5dp, but i'd like to know for sure May 13 08:27:53 liefer: https://github.com/android/platform_frameworks_base/tree/master/core/res/res May 13 08:27:58 you can dig around there i guess May 13 08:29:37 Thanks... I guess i know what i'll be doing for a while :P May 13 08:46:47 i have a list with addresses. what is a subtle way to hint to the user, that he can "long press" an entry to edit it? May 13 08:48:52 fancy42: I recently had the same and solved it by showing a toast with a hint that entrys can be long clicked the first 5 times the acitivy is started May 13 08:57:27 fancy42, i'd be tempted to add a dummy list entry that says something like "Long hold a entry to edit", that gets removed when you long hold it May 13 08:57:53 then it's visible and you get to practise a long hold May 13 08:58:10 toasts are too easy to miss, and ugly May 13 08:58:18 and can be disabled May 13 08:59:20 what do you do when AS refuses to show logcat and instead says DeviceMonitor: Adb rejected connection to client '7170': closed May 13 08:59:36 or, when the list is first empty, have an address that's something like "long hold me to edit", then the education and adding an inital value are one step May 13 09:01:35 danijoo, alex_PP thanks. i think i'll go with alex's idea May 13 09:02:12 yeah his idea is great May 13 09:02:43 or, look at this May 13 09:02:44 https://ux.stackexchange.com/questions/1257/indicate-long-click-option-to-user-on-android/1266 May 13 09:02:51 it's an interesting problem May 13 09:33:13 hi May 13 09:33:36 how do I get the APK for a free app onto my computer without installing it onto a phone? May 13 10:02:45 i wanted to browse the /system/app folder of my emulator image.. i am on windows 7 and i already looked on C:\Users\uname\.android\avd\kozhi.avd directory May 13 10:02:51 but there is no system directory May 13 10:03:02 what am i missing here ? May 13 10:07:14 Is it not possible to explore the system/app folder from my PC by running a emulator ? May 13 10:08:15 emulator is a qemu virtual machine that has it's disk stored in an image file May 13 10:08:18 not as raw files. May 13 10:08:59 Mavrik: ohh so only way i can access is thorugh adb shell - right ? May 13 10:09:43 or you can look for qemu tools. May 13 10:12:06 Mavrik: thank you May 13 10:12:12 * solofight googling qemu tools May 13 10:12:25 hi, if I have both layout and layout-mdpi, which one will be used on mdpi device? May 13 10:13:42 I'm cleaning up my project, I think the -mdpi folders are redundant, so I want to delete it May 13 10:13:52 maicon, mdpi May 13 10:14:34 maicon, http://developer.android.com/guide/topics/resources/providing-resources.html#BestMatch May 13 10:14:36 ok, then in order to merge them and not breaking the mdpi, I think I should override the layout with content from layout-mdpi May 13 10:15:02 Mavrik, read that already, just asking for sure ;) May 13 10:31:48 Hi all, I have fragmentA which contains a ViewPager (which contains FragmentB and fragmentC), how can fragmentB and fragmentC access an object from fragmentA ? true to use getParentFragment() but this returns null May 13 10:46:31 Are custom baudrates supported on android for USB host? May 13 10:48:11 how can i set the width of my custom android:fastScrollThumbDrawable ? I now use a shape xml but the resulting thumb is huge, i want to specify its width in pixels/dp May 13 11:10:45 is there any reason why i am able to browse internet using the browser but when i browse play store it says no connection ! and asks me to retyr May 13 11:10:48 retry* May 13 11:15:31 guys is develpoment for android much different in linux compared to windows? Why it could be worth it to switch to some linux distro if you are android developer? May 13 11:16:11 no, it's essentially the same May 13 11:16:12 Trudko, not at all i find it is exactly the same May 13 11:16:20 well apart from your paths May 13 11:16:37 but if you are using android studio on both then you wont notice anything different May 13 11:16:37 but Windows isn't a suitable platform for any development - possibly with the exception of Windows software, but that's old-fashioned and boring May 13 11:16:52 Trudko, it's probably a bit easier if you want to do native dev (that is, using the NDK). Other than that it's the same May 13 11:17:20 Trudko, we use mixed OS here to develop for android May 13 11:17:31 you mean in your company? May 13 11:17:35 we have 1 windows guy and 3 linux guys May 13 11:17:39 yes in our company May 13 11:17:42 I see May 13 11:17:53 so it all depends on your preference of OS May 13 11:18:24 i prefer linux but i still have to have a windows vm to do any of the backend stuff on C# May 13 11:18:28 I am asking because I heard that linux is better for programming so many times, which might be true in past but I dont see (from my limited experience) I tried to play with nodejs, android, ruby, java and neverhad problem on Windows May 13 11:18:36 windows on a vm is still faster in linux :) May 13 11:18:37 hi guys i have two fragments. How switch to fragment2 when button is clicked? May 13 11:19:02 roxdragon, use a fragmentTransaction May 13 11:19:11 from the fragmentManager and do a .replace May 13 11:19:40 Trudko, there is no real difference you can use either windows or linux there is nothing one gives you that the other doesn't in terms of development May 13 11:20:06 linux command line tools are awesome but you get most of them with cygwin if you want to use windows May 13 11:20:12 exactyl May 13 11:20:16 lemonxah: http://paste.ubuntu.com/7456962/ doesn't work for me... May 13 11:20:17 so honestly its all about preference May 13 11:20:40 content_frame cannot be resolved or is not a field May 13 11:20:48 roxdragon, show me your layout May 13 11:21:14 your layout file needs to have a "placeholder" with that id May 13 11:21:32 cause fragment manager will put the new fragment into that UI element with that id May 13 11:21:40 lemonxah: layout of fragment21? May 13 11:21:43 1* May 13 11:21:58 of your activity May 13 11:22:07 the main layout that the other fragments live in May 13 11:23:47 lemonxah: fragment1.xml http://pastebin.com/8gaB3fW0 - activity_main.xml http://pastebin.com/azn4tg4G May 13 11:24:37 Trudko, linux does perform a little faster with the same amount of ram and i like linux more than i do windows :P May 13 11:24:53 roxdragon, ok so you have a view pager that puts your first fragment into view May 13 11:25:05 lemonxah: yes May 13 11:25:08 there is no element on the activitt's layout that the fragment goes into May 13 11:25:18 so you cant replace the fragment that you are seing May 13 11:25:38 that first fragment is served up to the viewpager via an adapter May 13 11:25:58 fragment1 is into viewPager .. it contain a button, i want switch to another fragment NOT into viewPager May 13 11:26:01 you should not be replacing / cant replace fragments inside of viewpagers May 13 11:26:30 do you only have 1 fragment in the viewpager? May 13 11:26:38 then do not use a viewpager May 13 11:27:09 lemonxah: heh May 13 11:27:12 just use a normal activity and put a May 13 11:27:23 frag1 frag2 frag3 are into view pager. I want switch to frag4 when the button into frag1 is clicked May 13 11:27:46 that is not possible roxdragon May 13 11:27:53 you should switch then to a new activity May 13 11:28:26 your current view hierachy doesn't allow for new fragments over the view pager May 13 11:29:07 ok if i want replace frag1 with frag4 and implement backstate? May 13 11:29:54 hello May 13 11:30:02 ok so backstack is something else that you do on the fragment transaction May 13 11:30:47 mrpyo: hello May 13 11:31:04 is there a way to determine if view is within fragment? May 13 11:31:25 getView() and find for id May 13 11:31:36 if u have set an id May 13 11:31:53 but from the view May 13 11:32:04 what do you mean from the view? May 13 11:32:04 ok ... a solution for this... is possible to replace frag1 into view pager with frag4 when button into frag1 is clicked? May 13 11:32:11 lemonxah: May 13 11:33:14 no you should not be and cannot replace a fragment in the view pager without editing the underlying data for the adapter May 13 11:33:37 that is not a solution that is a recipe for disaster May 13 11:33:44 well I need to determine if view is within activity or fragment so I can use getChildFragmentManager() instead getFragmentManager() May 13 11:35:19 mrpyo, you should be doing that at design time and not runtime if you find the need to determine that during runtime then there might be some design issues with the solution or i am misunderstanding the context May 13 11:35:22 damn it would be simpler if fragments were context May 13 11:35:39 mrpyo, within a fragment you can do getActivity() to get the context May 13 11:36:07 I know May 13 11:36:40 but I cant determine if this activity is direct parent, or if it's in another fragment May 13 11:36:57 roxdragon, i would suggest looking at your design again but if you are trying to do something like twitter where there is a view pager and then depending on where you click on a tweet or not it should display the tweet itself on top ? May 13 11:37:04 how they do it is with new activities May 13 11:37:34 so main activity with a viewpager and then clicking on a tweet will open a new activity that might contain your fragment or what ever May 13 11:38:03 mrpyo, i dont understand why you want to know if it is in an activity or fragment are you creating a custom view? May 13 11:38:14 custom control May 13 11:38:33 a while back there was an article discussing findViewById speed, versus Viewholder pattern, can't seem to find it anymore May 13 11:43:42 Guys I need to display Home as Up button to detail fragment in list-detail fragment pair. May 13 11:43:48 I have one FragmentActivity with ListFragment. Clicking item does a fragment transaction and replaces with a new "detailFragment". May 13 11:43:56 I have added actionBar.setDisplayHomeAsUpEnabled(true); and the onOptionsItemSelected method in the detailFragment class. But still I dont get the Up button. What am I missing? May 13 11:47:53 setHomeButtonEnabled May 13 11:47:54 Should I host the "detailFragment" in another class? May 13 11:48:32 osxorgate: instead of setDisplayHomeAsUpEnabled? May 13 11:48:39 try both May 13 11:50:33 osxorgate: didnt work. May 13 11:51:09 Hi , I want to have a similar circle like the expense manager app , http://d1oxaa3vr3bto.cloudfront.net/wp-content/uploads/2013/04/tablet_3.png . Any ideas on how to proceed , or open source libraries May 13 11:53:52 chinmaya: maybe try this http://androidplot.com/ May 13 11:54:05 chinmaya: never tried though May 13 11:55:47 it has to be their own component May 13 11:56:28 sadly you probably will have to do it yourself if you want it to look exactly the same May 13 11:56:54 the closest i found is this: https://bitbucket.org/danielnadeau/holographlibrary/wiki/Home May 13 11:57:51 I could code it for you... May 13 11:57:56 ...for a price :) May 13 12:00:43 I'm trying to follow some code examples made for an activity, but have problems making it work in a fragment. Can I even create an ArrayAdapter from a fragment? May 13 12:02:33 yes, why not? May 13 12:03:34 The example says ArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.simple_dropdown_item_1line, COUNTRIES); May 13 12:04:22 instead of this use getActivity() May 13 12:04:35 it is supposed to be context May 13 12:04:48 Activities extend Context, Fragments don't May 13 12:04:54 Then it says "Unreachable code" May 13 12:05:24 paste an example (pastebin.com) May 13 12:06:04 http://pastebin.com/St1abXzf May 13 12:06:28 does anyone have a fix for ShareActionProvider May 13 12:06:36 for changing the icon drawable? May 13 12:06:53 (not using sherlockactionbar) May 13 12:08:37 :bove well you are setting ArrayAdapter after return so it's unreachable May 13 12:09:19 mylord: doh! May 13 12:09:47 return should be at the end of onCreateView() May 13 12:09:58 bove: remind me what you’re refering to :) May 13 12:10:20 It's been a while since I last wrote for Android, so everything looks greek to me ... May 13 12:11:24 mrpyo, is it possible to do using the android sdk ? May 13 12:12:10 chinmaya: what are you reffering to? May 13 12:12:40 the expense manager circle , May 13 12:12:57 mrpyo, ^ May 13 12:13:03 Well you have to create custom view May 13 12:13:16 so of course it's possible but requires some work May 13 12:13:28 you have to draw it manually with canvas May 13 12:13:33 mrpyo, hmm , yes May 13 12:14:24 I can try it, if you ask me nicely :) May 13 12:14:56 but it would take some time... May 13 12:30:55 lemonxah: May 13 12:50:28 roxdragon, i was in a meeting you rang? May 13 12:51:16 How can I add Home as Up button to a fragment in a master-detail pair? I have ONE FragmentActivity with ListFragment. Clicking item does a fragment transaction and replaces with a new "detailFragment". May 13 12:51:26 lemonxah: i have changed my design... i have deleted viewpager... this is activity_main.xml: http://pastebin.com/22yWKyvL May 13 12:52:00 I have added actionBar.setDisplayHomeAsUpEnabled(true); and the onOptionsItemSelected method in the detailFragment class. But still I dont get the Up button. What am I missing? May 13 12:52:32 lemonxah: and this is mainactivity.java http://paste.ubuntu.com/7457322/ May 13 12:52:53 i want start fragment Trasporti when i click button1 May 13 12:53:09 Hi guys, is it possible to append to add two jsonArray? May 13 12:53:40 roxdragon, you need a place holder in your activity_main.xml where you want the fragments to be like a FrameLayout May 13 12:54:10 lemonxah: can you make a example? May 13 12:54:14 please... May 13 12:55:23 lemonxah: have you have had to use the ShareActionProvider? May 13 12:56:32 yes i have used them been a few months since i have touched them though May 13 12:57:31 lemonxah: ? :( May 13 12:57:40 can you check by opening your app again if the system has killed something from your app to get memory? May 13 12:57:53 lemonxah: how did you change the drawable for the share icon? May 13 12:59:31 lemonxah: http://pastebin.com/pQnkKDzW this into activity_main.xml? May 13 13:00:04 I have a table with two cells per row, can i have them always take 50% of the width of the table? May 13 13:00:57 Kevel, @drawable/ic_action_share May 13 13:01:04 use that in your theme May 13 13:01:30 roxdragon, i suggest reading a bit more about fragments i will send you a link to a tutorial that will show fragment usage without a viewpager May 13 13:02:24 lemonxah: with place holder May 13 13:02:25 Kevel, it also depends on your actionbar that you are using what the name of the style is you need to override May 13 13:02:26 thank you :D May 13 13:03:45 that link i have giving you roxdragon should help you understand fragments a little better May 13 13:04:15 point 6 is what you are trying to do its a short overview but read through the whole thing rather May 13 13:04:41 thank you!! May 13 13:11:45 lemonxah: i did that but it does absolutely jack May 13 13:12:01 lemonxah: Holo.Light.DarkActionbar May 13 13:12:29 actually, just Holo.Light May 13 13:13:50 are you using sherlock or actionbarcompat or just normal actionbar? May 13 13:14:07 normal action bar May 13 13:14:29 and im starting to regret it May 13 13:19:06 anyone know if android studio tries to compress pngs itself? on build? and how does it compare to something like ImageOptim ? May 13 13:20:57 Hey there, I could really use some help with the understanding of development of a two-pane fragment layout - im stuck - I am to use one ListViewFragment as leftColumn, and a DetailContentFragment as rightColumn within which I am going to load new XML Layouts depending on what list alternative was clicked but cant get it to work properly :S May 13 13:28:04 My app thus far is built of MainActivity.java which setContentView(activity_main) <- which is my XML layout (horisontal linear) with 2 (for left and right) and then the MainActivity also got onItemSelected(int position) which is method implemented from MenuFragment.java interface for ListFragment Callback - this is where I atm was thinking of making fragmentTransaction replacements May 13 13:28:04 of the rightColumn fragments layouts depending on which menualternative was clicked... For every menu alternative Ive got 1 XML Layout file, as well as a Java Fragment File which in turn inflates mentioned XML Layout. and then I use these Java Fragment Files to act as Detail Content Fragment instances.. but since its not working, i obviously am doing something wrong... just cant figure May 13 13:28:04 out what and where :/ May 13 13:29:13 should I upload source codes for easy examination? May 13 13:30:55 Ive been stuck on Not understanding this crap for a long long time now (over 4 weeks) and would really appreciate someones insight for the potential of making my brain understand it properly :) May 13 13:34:29 does somebody know a good book for handling lifecycle of activities + fragments etc. ? May 13 13:44:02 Trekka12 don't feel bad, fragments can be tough to wrap your mind around (was for me anyway). i am currently working on a two-pane layout at the moment as well (called master / detail). May 13 13:49:36 FrancescoV: May 13 13:49:55 developer.android.com has some docs there explaining the lfiecycle May 13 14:01:08 Kevel: I got nullpoinexception when app is long in background, think that the system kills some thing from my app, but don't know how to handle that all, never done this before May 13 14:02:00 mattblang May 13 14:02:10 I tried working with that template before also May 13 14:02:21 didnt work, so for better understanding I tried creating from scratch May 13 14:02:53 Trekka12 good, I typically don't use the templates. I might make a test project with them to see how some things are handled, but often times I do it differently. May 13 14:03:05 mattblang the master detail templates DummyContent.java confused me May 13 14:03:06 ok May 13 14:03:15 if u figure it out, plz let me know :P May 13 14:03:24 im getting quite desperate May 13 14:04:28 Trekka12 the DummyContent stuff was just sample data to populate your list, don't let it confuse you. You will probably have a list backed by some real data, like from a database or something. what is your archictecture? do you have one activity with many fragments, or many activities? May 13 14:05:36 I have my MainActivity.java currently which has setContentView to be activity_main.xml which holds a horisontal linear layout with 2 1 for the List, and 1 for the DetailContent (to the right) May 13 14:06:46 populating the list with custom options is no problem for me seeing as it is only plain text in different forms more or less, but when it comes to populating my detailContentFragment... i am totally lost in space :/ May 13 14:07:12 Thought I had a solution this morning, turns out it still wont work, no matter how straight forward the code and logic looks :S May 13 14:07:45 If you didnt hate Android dev before fragments, your patience certainly gets tested... A Lot... once it comes to Fragment Dev time :/ May 13 14:09:55 What annoyjs me more than the fragments themselves, is the fact that wherever on the web I look, every tutorial article I find is based on Exactly* the same concept , Not One single article demonstrates how you create a 2-pane fragment layout where the left fragment is a listfragment, and the right one can load different views depending on selected listitem - every single article is instead May 13 14:09:55 showing the simplest thing (which btw i kinda do understand) where you are to load new text-content into a simple singular textview on listitem click May 13 14:11:59 I can feel it - its something missing for my understanding to completely phatom the concept and functionality of fragments, but as long as that "it" is missing, understanding feels out of reach :/ May 13 14:12:33 sucks especially when you dont have a clue what that "it" is, or it slips away once you think your about to get close May 13 14:15:23 Trekka12, fragments aren't that hard to grasp May 13 14:16:34 you can think of a fragment bring a UI element that you can insert into layout placeholders of the hosting activity with fragment transactions that you get from that activity's fragmentmanager May 13 14:17:36 so on or in any other fragment or click event of your list fragment that is on the left .. getActivity().getFragmentManager().beginTransasction().replace(R.id.right_side_pane, new fragment()) May 13 14:18:28 and then just make sure that the hosting activity of those fragments has the placeholder called R.id.right_side_pane and then there is no issues May 13 14:19:23 fragments are selfcontained May 13 14:20:20 and yes 1 fragment that calls other fragments into another place holder not its own is still self contained cause that is its behaviour .. it is a menu or switcher fragment May 13 14:20:51 hm ok, gimmie a sec to just read through here just saw you answered - much appreciated :) May 13 14:20:54 is it possible to have my listview's fastscroll indicator to show up outside of the content? It's now on top of it, ugly May 13 14:21:51 osxorgate, not as far as i know but it would be beneficial to give your listview items some padding on the righthand side so that the fast scroll does not overlap if its ugly May 13 14:22:37 lemonxah, you seem to have grasped the part of fragments which still eludes me, would it be possible for me to maybe copy-paste upload the important source code on like.. say pastebin or something for you to just cast a quick eye on to see if you maybe can detect and spot the error of my ways with ease or? :) Would be greatly appreciated May 13 14:23:21 so that you may in turn get a better understanding of my thought-process of the concept of fragments, think its best to show than try to explain May 13 14:23:22 sure i could have a quick look through but it might not be as quick May 13 14:23:26 cause its almost home time for me May 13 14:23:38 but feel free to email me May 13 14:23:44 hehe ok, well that aint no problem for me as long as you can check it within 24 hours or so :) May 13 14:24:05 sure thing, will do! Many thanks! :) And as I mentioned, much appreciated :) May 13 14:24:21 no worries thats what we are all here for isn't it? helping eachother May 13 14:24:46 true true :) May 13 14:24:52 I love IRC for that reason ^^ May 13 14:25:07 always someone worldwide with the ambition to help others May 13 14:25:19 when in dire need May 13 14:25:37 you prefer me to email you ZIP file? or URL to pastebin uploaded source codes?` May 13 14:26:08 zip it if its not big .. like 1mb or less May 13 14:26:58 I think I miss 1 file to act as in-between fragment as the right_container since I atm only have a lot of Fragment Java files, but not 1 single of them are "central" i think... but I guess source codes will clarify what I think is what :p May 13 14:27:06 1.4MB if I remember correctly May 13 14:27:23 how to save custom objects with onsaveinstancestate? any tips? May 13 14:27:23 1.4mb is fine May 13 14:27:27 okay :) May 13 14:27:35 thx, will be sending to you within the hour May 13 14:27:43 FrancescoV, yes use parcable interface May 13 14:28:25 lomonxah: ok thanks. Somebody told me using gson, you don't need the parcelable interface but don't know which is the best May 13 14:28:27 http://stackoverflow.com/questions/7181526/example-of-implementing-parcelable May 13 14:28:51 FrancescoV, onSaveInstanceState saves data in a bundle May 13 14:29:03 so you can save it in string format inside the bundle as json May 13 14:29:16 or just create your custom object in such a way that it is parcelable May 13 14:30:00 making the object parcelable isn't hard and the overhead of gson to encode and decode is more than the parcable May 13 14:30:02 bankai_au http://www.gizmag.com/cleverpet-dog-interactive-game/31937/ May 13 14:30:28 lemonxah: thank for your advice ;) May 13 14:30:33 no worries May 13 14:33:15 it is very interesting though that so many people are struggling with fragments like that is one of the most asked subjects in the channel May 13 14:33:19 well that i have seen anyway May 13 14:37:05 hey guys May 13 14:37:08 does anyone have kindle prime? May 13 14:37:09 hi May 13 14:37:31 I wrote a kindle ebook and it's free for amazon prime members May 13 14:37:49 I spent a ton of time learning how to make live wallpapers, and i never found a decent tutorial May 13 14:38:26 lemonxah: I gues I need to do this for my Fragments data too, right? May 13 14:39:19 Does "pm install something.apk" require superuser access for my app? May 13 14:40:19 FrancescoV, what frament data? if you have data you pass to the fragment you should pass it in via arguments in a bundle May 13 14:42:49 well, if anyone is interested in making live wallpapers have a look at this ebook - http://amzn.com/B00K8N8GYG May 13 14:42:59 I spent several months in feb and march and some long nights learning how to build them May 13 14:44:21 what is the best way to have a second fragment container for some situations that will not take up space when empty? I am using one activity to house all of my fragments, so I figured I would have an activity_main in layout, as well as activity_main in layout-land. the layout-land would of course have the second fragment container, and would sometimes be filled with, for example, a detail fragment when in master detail. it won't have a fragment May 13 14:44:21 lemonxah: I put some data (bundle) and set as arguments on my fragment, I guess i need to save the data from inside the bundle too in onsaveInstanceState of the fragment May 13 14:44:21 all the time though. May 13 14:44:38 no that bundle that you have set as arguments will not go away May 13 14:45:11 so getArguments() will give you the arguments you set when you created it so dont save that in the onsaveinstancestate May 13 14:45:43 Any suggestions for a simple sample app to get used to the new features in Android 4.2 (last worked with 2.3)? May 13 14:46:23 barq a twitter feed reader with navigation drawer and actionbar icons May 13 14:47:10 Does "pm install something.apk" require superuser access for my app? May 13 14:47:53 lemonxah question, when you work with fragments do you try to minimize the number of different activities? May 13 14:48:11 yes we have 1 main activity with 28 fragments May 13 14:48:22 and 5 specialized activities May 13 14:48:50 lemonxah I am currently working towards that goal. fragments load so fast. I am sure you have some configurations like master / detail, or something that requires multiple fragments to be shown if in landscape. how do you handle this? May 13 14:48:54 yoavst: what happened when you tried it? May 13 14:49:55 Leeds: using adb shell i can do that while the cm su is enabled and disabled for adb May 13 14:50:06 yoavst: and from your app? May 13 14:50:13 mattblang, in landscape mode on tablets we show the navigation fragment and the content fragment this is achieved with a android.support.v4.widget.SlidingPaneLayout May 13 14:50:23 didn't build an app yet :/ May 13 14:50:35 and on the phone we use the navigationdrawer May 13 14:50:53 lemonxah got ya, so you don't have any master detail scenarios that require a second container? May 13 14:50:58 for the navigation fragment so its not next to eachother but you can access it even when something else is shown May 13 14:51:40 no we decided against that master views are from the navigation and detail is a new fragment that replaces the master cause its a new layer down in the hierachy May 13 14:51:51 from which you have to back out first May 13 14:55:52 lemonxah I got ya. you may can see my confusion in how to properly implement master / detail with our one activity designs. with different activity XML files I would need to dynamically change layout properties of the second container (since not every configuration is master detail). another thought is nested fragments, so I can do xml layouts just for the master detail, but something seems weird about that too. May 13 14:55:57 Hey http://pastebin.com/raw.php?i=udK2XkNg I'm trying to update the text on that textview May 13 14:56:02 i keep finding nav drawer abstraction kludgy May 13 14:56:06 append more likely May 13 14:56:11 what I'm I missing May 13 14:56:22 the whole bit about the action bar toggle, hiding other options menus that aren't global ... May 13 14:56:39 when you do this there are lots of moving parts, seems everything get tied to everything May 13 14:57:11 g00s yeah, I know what you mean May 13 14:57:12 mattblang sounds like you are having issues with fragments too May 13 14:57:42 Trekka12 well, I think I have a pretty good grasp on them. I just want to implement this the best way. May 13 14:57:45 as it is, i had to override Activity.onCreatePanel menu which is archaic May 13 14:57:59 hmm, ok May 13 14:58:01 to only dispatch to my nav drawer when it was open and bypass hte other fragments May 13 14:58:06 lemonxah, the email has been sent now May 13 14:59:01 Trekka12 It has been a slow process though, fragments are tough. My challenge right now is moving to a one activity architecture that literaly manages all of the fragments. May 13 14:59:05 lemonxah, just ignore my email text if it seems to "rambling" I feel kinda mind-fucked atm, due to stareing at the fragment code the past 3 days non-stop more or less May 13 14:59:39 okey.. sounds way to advanced from where im standing on the subject matter at hand atm though :/ May 13 14:59:59 Trekka12 just know you are not alone ;) http://www.reddit.com/r/androiddev/comments/21swv2/not_going_to_lie_fragments_confuse_the_crap_out/ May 13 15:00:04 Im still struggeling with understanding how to get my fragments to show on listItemClick May 13 15:00:15 haha xD May 13 15:00:43 Trekka12 it may help if you don't try jumping straight into master / detail May 13 15:00:54 Trekka12 I started feeling too overwhelmed when I did that May 13 15:01:05 hello May 13 15:01:07 I made a stackoverflow post as well asking about fragments... 80 ppl have read the question.. not a single answer in 3 weeks ;/ and Id think it was a simple question for those who actually Had mastered fragments... ah well May 13 15:01:19 I did that too at first May 13 15:01:21 Trekka12 can you link the question? May 13 15:01:26 but now the app im building is from scratch May 13 15:01:30 When to use TTF and when use text as a transparent png image? May 13 15:01:31 based upon a Youtube vid May 13 15:01:37 sure May 13 15:01:38 sec May 13 15:02:19 I am creating some buttons with blured font. Is better to use TTF or png image? May 13 15:02:55 I dno if I formulated myself badly in the question or what, but here it is anyways: http://stackoverflow.com/questions/23077955/android-app-development-master-detail-flow-custom-detail-fragment-layouts May 13 15:03:41 The logic of it all seems so clean-cut but then it doesnt work and im back to square one again May 13 15:03:53 just like ive missed a part along the way somewhere May 13 15:06:03 there was a master/detail talk by commonguy at one of the last android functions May 13 15:06:14 maybe you can find the video (not sure if the video is online) May 13 15:07:16 never heard of "commonguy" before tho, and I already watched like 2-3 videos about master detail and all the videos is about the exact same boring concept - 1 textview where the content gets updated* each listitem click May 13 15:07:41 whereas I want 1 fragment container where the fragment container layout gets changed on clicks May 13 15:07:59 and no video ive found so far shows a demo of that concept :/ May 13 15:08:45 Trekka12 g00s is referring to commonsware. he is a really high reputation user on SO that has a bunch of Android material and books. May 13 15:08:59 okay May 13 15:09:06 might be worth checking him out then May 13 15:09:13 Trekka12: I'm having a hard time figuring out what your question is, but heres what I've got for you. it looks like you're trying to use one fragment for all 5 cases. instead, you should have 5 different fragments, and use a different one depending on which item you clicked May 13 15:09:57 Can someone help me out with this one http://pastebin.com/raw.php?i=udK2XkNg May 13 15:10:28 My problem is that the for takes too long and meanwhile the textview doesn't updates May 13 15:11:23 That concept I have applied to my newly built app that I built from scratch via a youtube tutorial on android fragments but it does not react on listitemclicked(int position) and have no clue what Ive missed :/ frankdoyle May 13 15:11:24 pthreat: your problem is that everything in your for loop is happening syncrhonously. May 13 15:11:52 pthreat: so itll only leave oncreate after the whole loop has run May 13 15:11:57 frankdoyle: ok, how do I do it asynchronously May 13 15:12:02 frankdoyle I could upload source code to pastebin if that helps perhaps? :) May 13 15:12:38 Trekka12: ill give it a look and help how i can May 13 15:13:11 ok thx man :) Ill upload the important source codes then May 13 15:14:19 pthreat, kinda depends on what DoThang actually does. probably want to put it in an asynctask, or pass it off to an intentservice May 13 15:15:27 it's just doing his thang May 13 15:15:34 heavy & deep thangs May 13 15:15:41 ok frankdoyle May 13 15:17:09 pthreat: so, in a more general sense,whenever you do stuff on the main thread, it blocks everything else on the main thread (since that's how threading works). so while it's doing your DoThang work, it's putting off handling touch stuff and drawing until DoThang is done. May 13 15:17:45 ok I should check asynchtask then May 13 15:17:57 frankdoyle: thanks fro checking ma thang May 13 15:19:25 pthreat: worth warning about: asynctasks are a good stopgap solution, but they have a tendency to break things if handled improperly. The big one is that if you tell DoThang to run in the background, then the activity gets closed for whatever reason, your DoThing might try to tell the the activity to do something even though that activity no longer exists. bad things happen May 13 15:19:52 that isn't sexy May 13 15:19:57 what do you recommend frankdoyle then May 13 15:21:18 * lov clicks pthreat's link May 13 15:21:22 :C May 13 15:21:54 lov: What do you expect?????? IVE BEEN CODING FOR JUST A COUPPLE OF WEEEAKKSSSS May 13 15:21:56 Intentservices are a good choice, pthreat, they kinda force you into good practices. RxJava can do some nice things. There are a few "Future" libraries May 13 15:21:56 lov: hey lov May 13 15:21:58 ;) May 13 15:22:01 weaks is right May 13 15:22:12 lov: bec0z it is weaks May 13 15:22:23 we are in agreement May 13 15:22:26 ya dont g00f at me b0y! May 13 15:22:30 yes yes we are May 13 15:22:40 Hi. I need to reference an external JAR but not add it to the APK with ant. I've tried putting it in a folder and settings "jar.libs.dir" but it seems to have no effect. Any suggestions? May 13 15:23:21 telex: ... Andres?????? May 13 15:23:34 zod: can you elaborate a bit more? you want to use the code but not include it in the apk? May 13 15:24:36 frankdoyle, source code now uploaded into one single pastebin doc: http://pastebin.com/zBH8cJLY May 13 15:24:39 frankdoyle: As far as i understand the code is already on the device so it should not be included in the APK, but javac needs to know about the functions. May 13 15:25:37 zod: I don't think I've ever heard of anything like that. are you sure that's how it should work? May 13 15:25:38 frankdoyle: I'm trying to build an xposed module and this is what the doc says: https://github.com/rovo89/XposedBridge/wiki/Development-tutorial#xposedbridgeapijar May 13 15:26:11 ah, xposed is an area I'm not familiar with. ignore me May 13 15:27:24 frankdoyle: I think it's the same with the normal android API. It's specified as classpath but not included in the APK. May 13 15:30:05 Trekka12: So, i think you might be better off not using the template. it's for a very specific case and you need something more flexible. In your activity_main.xml, you've got a . when you do this, you make that a permanent part of that activity, and it can't be replaced/removed by fragmenttransactions. If you did want to do that, you'd put a in there, and add the fragment to that using May 13 15:30:06 FragmentTransactions May 13 15:30:31 Trekka12: Actually, you might be able to replace that with a and it might jsut work May 13 15:31:23 Trekka12: specfically, the second fragment with id detail_content_fragment May 13 15:32:11 Trekka12: check out http://developer.android.com/guide/components/fragments.html for more detailed information May 13 15:32:33 Trekka12: speicfically the "Adding a fragment to an activity" section May 13 15:32:53 frankdoyle: what do you think of Runnable myRun = new Runnable(){ public void run(){ May 13 15:37:01 pthreat: Runnables can do things asynchronously, but they are the most limited in that they still have the issues I mentioned before, but they also can't do things on the main thread once they're done. May 13 15:37:40 pthreat: so, async stuff is tricky. You don't want to long-running stuff on the UI thread, because your app becomes unresponsive. However, you can't change the UI from the background; the OS just won't let you May 13 15:37:45 it'll throw an error or something May 13 15:38:32 An AsyncTask is just a wrapper around a Thread that gives you some nice callbacks splitting up what you want to do in the background and what you want to do in the foreground May 13 15:40:22 frankdoyle - ok, But I figured that I was required to put my Fragment there since I needed it to always be 1/3rd of the screen estate width? and if I go with FrameLayout instead of Fragment as my detail_content_container you mean then that that is OK even though it will be placed inside of a LinearLayout? May 13 15:40:43 isnt that kinda like a Layout-Layout crash? May 13 15:40:50 Layout-in-Layout crash* May 13 15:41:20 Trekka12: putting layouts in layouts is just fine, May 13 15:41:25 oh May 13 15:41:29 okey May 13 15:41:41 so you can put a linearlayout in a linearlayout in a relativelayout, and it'll be happy May 13 15:42:06 but If I do this.. you mean fragment Transactions within MainActivity is fine? I dont have to have a fragment that does Fragment Transactions or some other wierd and complex stuff? May 13 15:42:25 just as straight forward as Ive got it atm? May 13 15:42:57 Trekka12: should be. strange things sometimes happen, but it should be about that straightforward May 13 15:43:22 ha, ok May 13 15:43:26 I guess Ill try then May 13 15:43:27 but atm May 13 15:44:17 The method public void onItemSelected(int position) does not seem to respond to my if-statement within it, can this be because of wrongful use of fragments like I had in my activity_main.xml? May 13 15:44:35 frankdoyle: While I'm fairly sure you can search for a fragment by ID and replace it if it's in the XML, too, no reason not to use a framelayout and dynamiclaly insert it May 13 15:44:44 cuz atm nothing at all happens when emulator is run and I click on ListFragment Alternatives May 13 15:44:46 I wish there were better ways to tackle chains of nullable methods. StackOverflow doesn’t seem to have any good options. There should be a way to say, display an error if any item on the chain returns null. May 13 15:45:27 Trekka12: I think trying to findFragmentById will only work if you use the Fragment in FrameLayout method, though I could be wrong. May 13 15:46:20 uhm ok, not sure exactly how you mean May 13 15:46:57 Trekka12: I think that, with the code you sent, findFragmentById would always return null. May 13 15:47:48 okey, but then if I were to replace fragment number 2 (detail_content_container) with a framelayout what would change? May 13 15:48:11 you mean that my fragments would be placed within that layout then May 13 15:49:33 Ill actually go and try and replace it now May 13 15:49:37 colintheshots would be nice if java had the proposed ?. operator yeah May 13 15:49:44 see if I get any new exciting error messages or maybe just a working app xD May 13 15:49:51 Trekka12: findFragmentById looks for a view with that id, then gets the fragment in it. I don't think that works when youve got the fragment declared in the layout May 13 15:50:08 g00s: Any idea what the best alternative is? I looked at Guava Optional, but it doesn’t appear to resolve the issue. May 13 15:50:31 no idea :| May 13 15:51:16 i think in general, its not so good to use null as often as it is May 13 15:51:24 for a sentinel value, etc May 13 15:51:25 Trekka12: this may be more useful for you, it describes the pattern im talking about, but with actual code https://developer.android.com/design/patterns/navigation-drawer.html , https://developer.android.com/training/implementing-navigation/nav-drawer.html May 13 15:51:54 Trekka12: it might suit your needs a bit more than the master-detail setup May 13 15:52:15 have AS generate the template for nav drawer then study it May 13 15:52:26 i had to stare at it for about 24 hours before i got it May 13 15:52:37 ok frankdoyle, thx, btw if I were to test using FrameLayout instead now, do I need to declare a android:name the same way I did for to direct it to which layout to be loaded first? May 13 15:52:40 and got it working with the tweaks i needed May 13 15:53:08 frankdoyle: I can update a textView with intent service then right? May 13 15:53:22 Trekka12: I don't think you'd have to do that May 13 15:53:34 ok May 13 15:53:44 Ill try and see if something breaks or what xD May 13 15:53:46 pthreat: you would need to use some kind of broadcast back to your activity May 13 15:53:52 cant get any worse than Not working i think :P May 13 15:56:53 * pthreat ponders May 13 15:57:22 frankdoyle, the only problem with that new navigation drawer you linked is that my assignment is to make either master-detail app, or with listFragment and detail_content_container May 13 15:57:51 So i think unfortunality I have to ride out this storm ive already entered into May 13 15:57:57 for good or for worse May 13 15:58:02 I need to get it working :) May 13 15:58:40 menu item selected still not responding on clicks May 13 15:58:43 ;s May 13 15:59:09 Trekka12: is that method just not being called? May 13 15:59:18 almost seems that way May 13 15:59:54 and my Log.i(string, string) which I put to be called to print out position does not appear in my LogCat either May 13 15:59:55 Trekka12: you can put a toast or some logging at the top of the method to make sure May 13 16:00:00 yeah May 13 16:00:17 toast? May 13 16:00:25 Uh, my app was removed from Google Play for "keyword spam" May 13 16:00:48 it's a little popup message. Toast.makText(context, "lolwut",Toast.LENGTH_SHORT).show() May 13 16:01:15 atm I have Log.i("POSITION: ", "" + position); inside of if statement saying: if(detailContentFragment != null) - and it seems like its not being called May 13 16:01:15 frankdoyle: can I do a subclass of Service that would take an UI element as a class attribute, update that attribute while running thangservice May 13 16:01:41 Cached version of the app description: http://goo.gl/xNLvDR - What could have caused the removal? May 13 16:01:46 how can I copy that code for toast u just wrote in mIRC IRC client? May 13 16:01:54 pthreat: I don't think you can pass around a View like that, and if you did manage to get it working, it'd still be a really bad idea May 13 16:02:10 How come? May 13 16:02:55 Trekka12 just checked out your question, got busy at work. you mention an about-info page, a webview page, etc. why do you need master detail for those? May 13 16:03:04 how would I update the text view then frankdoyle May 13 16:03:46 pthreat: http://code.tutsplus.com/tutorials/android-fundamentals-intentservice-basics--mobile-6183 May 13 16:03:53 ok May 13 16:03:53 Here's a screenshot of the email they sent me: http://i.imgur.com/SuDHusr.png May 13 16:04:20 mattblang, why not? its perfect - master-detail has a menu to the left, and a flexible area to the right? May 13 16:04:24 or how you mean? May 13 16:04:29 decltype: are you a guild wars developer? May 13 16:04:47 pthreat: No, it's clearly marked as an unofficial application. May 13 16:04:56 Trekka12 okay, so say im on the about-info screen. what would the list be? May 13 16:04:58 decltype: well then, google likes to do that May 13 16:05:04 Trekka12: master-details are usually for lists of similar content. like a list of news articles. the nav drawer i mentioned earlier is bascailly just that but for dissimilar content May 13 16:05:06 the list remains the same May 13 16:05:09 decltype: they also like to fuck you in the ass with adsense balance May 13 16:05:10 master- May 13 16:05:16 while the detail is changing May 13 16:05:28 stealing from you, etc May 13 16:05:28 oh May 13 16:05:31 Trekka12 so you have a list of companies? May 13 16:05:33 ok frankdoyle May 13 16:05:35 no May 13 16:05:42 a list of menu items like on a webpage May 13 16:05:44 sort of May 13 16:06:13 Trekka12, frankdoyle yeah, that is what I thought. You definitely don't want to do master / detail for that. use nav drawer and or sliding pane layout May 13 16:06:15 where 1 menu alternative is about us textview, one is the company website via webview, one is email layout, one is gmaps layout, etc May 13 16:06:20 frankdoyle: thanks, I'm reading that May 13 16:06:35 i have to use master detail tho for the assignment (strangely) May 13 16:06:47 Trekka12 yeah, that is navigation. i would never use master detail for that May 13 16:06:50 bbiam :) May 13 16:06:57 hmm ok May 13 16:07:02 frankdoyle: hey thanks for your help, you've been really helpful May 13 16:07:09 The text at the bottom of the appeal form is not very reassuring: https://support.google.com/googleplay/android-developer/contact/appappeals May 13 16:07:29 Trekka12 master-detail is when you have a list of something, and you also have the screen real-estate (table in landscape orientation) to also show the details. like on the gmail app May 13 16:07:42 mattblang, ah ok May 13 16:07:53 "All appeal decisions are final" and they will ignore all further emails after the initial reply. May 13 16:08:00 well anyways any1 know why LogCat shows no messages? May 13 16:08:04 when app is running May 13 16:08:14 Trekka12: the important part being a list of items that are detailed in the same way. so liek a list of news articles, emails, things like that May 13 16:08:16 Trekka12 but honestly, I wouldn't jump into that right off the bat. Fragments have a high learning curve in my opinion. Just start out making an activity that loads in your different screens, which you have isolated to fragments, just one by one in portrait mode May 13 16:08:17 trying to diagnose if method works or not via Log.i(string,string) May 13 16:08:50 thats kinda what im trying to do atm, but side by side May 13 16:09:10 i tried master detail template in beginning, but not having that anymore due to not getting it to work May 13 16:09:40 Trekka12 yeah, you can use the templates for some guidance but I would definitely recommend reconstructing May 13 16:10:02 Did you see my source code i linked on pastebin? May 13 16:10:06 not using the template May 13 16:10:09 have done from scratch May 13 16:10:22 http://pastebin.com/zBH8cJLY May 13 16:11:45 I'm trying to understand if the copyright disclaimer could have been interpreted as keyword spam, but that disclaimer is required in order to use assets from the game (see http://guildwars.com/support/legal/termsofuse.php) May 13 16:12:28 decltype: are you sure it's not because you used "GUILD WARS" in your title? May 13 16:12:38 frankdoyle: Guild Wars is not an Android app, it's a PC game. May 13 16:12:57 frankdoyle: The reason for removal says "Your title and/or description attempts to impersonate or leverage another popular app without permission" May 13 16:13:11 I get that, but google has a thing against presenting yourself even remotely as an official app for something that isn't yours May 13 16:13:24 frankdoyle: Should I name it "Mobile Chat for a game that shall not be named"? May 13 16:13:36 HI , I am creating a simple Android virus detecting app , I was wondering if i can get a virus database from somewhere or what should i do to start it ? May 13 16:13:57 It doesn't look like they are treating this as a copyright issue, the message merely refers to "keyword spam" May 13 16:14:56 I know this doesn't change a thing, but there are many other unofficial apps related to the game: https://play.google.com/store/search?q=guild%20wars&c=apps May 13 16:15:26 frankdoyle, tried the Toast.makeText thingy now and seems the method is not called upon at all May 13 16:15:28 You just lost the game May 13 16:15:50 Trekka12 I am actually having my own snag at the moment with fragments (http://stackoverflow.com/q/23635952/1747491), which if anyone here is a fragment guru I would realy appreciate some guidance with May 13 16:17:36 i have a list view and i want to be able to fling items off the screen to delete entries. can somebody help me on how to approach this? do i have to do a lot of stuff manually, or can android do the heavy lifting by itself? May 13 16:17:38 Trekka12: it looks like you're never setting your activity as the menu fragment listener May 13 16:18:07 fancy42: swipe to dismiss is the pattern you're looking for, there's probably a library for it somewehere May 13 16:18:23 This is what the Developer Console is showing: http://i.imgur.com/VmtSRco.png May 13 16:18:39 Trekka12: you probably need to get a reference to your MenuFragment, then set your activity as your OnMenuItemSelectedListener May 13 16:18:42 frankdoyle, thanks, i'll check it out May 13 16:19:27 It really seems like there's no way to contact a human, so I'll just have to submit an "appeal" and hope whoever gets to review it isn't having a bad day. May 13 16:22:22 chinu: Just display a big red progress bar that turns green and says "No viruses! :)" May 13 16:22:31 it works as well as the rest of the "virus scanner" programs do. May 13 16:22:47 lov seriously -_- May 13 16:22:50 :p May 13 16:24:01 I am serious. May 13 16:26:06 any idea why log.d and log.i show nothing while log.w works as expected? android studio.. no filters May 13 16:28:18 chinu: Just hire a bunch of chinese malware analysts and make them sleep in bunk beds May 13 16:28:30 working 24/7 May 13 16:29:28 chinu: clamav probably has some database you could download May 13 16:31:04 lov: I learnt to ride my motorcycle in about a day May 13 16:31:19 remember I was worried about it friday May 13 16:31:46 NEVER underestimate the power of a youtube video May 13 16:33:03 what was the video, link? May 13 16:33:24 meadhikari: it's in spanish but I think it'll be easy enough May 13 16:34:13 meadhikari: https://www.youtube.com/watch?v=9czkbMH_LI4 here May 13 16:35:09 it's very easy you just release the clutch slowly and that's it ... once you master that process you start accelerating slowly May 13 16:35:32 well you have to put it in first gear for that to happen of course May 13 16:35:36 10 minutes video got you to riding a motorcycle? May 13 16:35:41 yes May 13 16:35:55 Congratulation May 13 16:35:59 I also read the entire manual May 13 16:36:02 I had no choice May 13 16:36:28 my douchebag friend said that he would come to pick up the bike with me and then all of the sudden "he couldn't" May 13 16:36:30 thanks May 13 16:36:50 s/friend/acquaintance/ May 13 16:36:56 (TL;DR; I would like to pay someone for the source of an app that I can compile to just send an MMS fully programmatically.) I've been trying to develop a program that will allow me to send MMS message via intents. I understand that this requires the use of hidden APIs, and I have found some very useful documentation on how to do this, but I am having difficulties compiling the code that I have gathered and even though this is a personal May 13 16:36:57 project I would like to move on to the rest of my app. I would like to pay someone to help me. May 13 16:38:18 no advertising please, jobs or otherwise May 13 16:38:22 Hello, does TabWidget works with activities or fragments? May 13 16:38:31 I will say that the messenger app is open source, and you can probably peek at that. May 13 16:41:56 hm moto e $129 off contract May 13 16:42:28 can you do profiles in gradle to change variables? like, when developing I want to hit a test database and / or a test web api. May 13 16:43:07 dang thing gas microsd slot May 13 16:43:10 *has May 13 16:44:04 mattblang: Look up build types and variants May 13 16:47:27 SimonVT so I need to use BuildConfig to logically check any of the config variables that may differ? May 13 16:49:01 No.. You can just have different source files for different build types/variants May 13 16:49:01 https://www.youtube.com/watch?v=X9TGsHVcROM May 13 16:49:14 If anyone here has experience with hidden android APIs then please contact me as I'd be willing to pay you. I suspect what I need would likely only take an hour or 2 of your time at max and I don't mind paying some up front. May 13 16:49:15 SimonVT oh, great May 13 16:56:01 Mucho Macho May 13 16:56:26 does anyone know some instagram like library for android ? May 13 16:57:44 anyone knowledeable about fragments have some guidance on this http://stackoverflow.com/q/23635952/1747491? May 13 16:59:02 Hi, has anyone tried an alternative to the gallery view ? May 13 17:01:45 Justin_T: no one has ever tried an alternative to the gallery view. May 13 17:01:52 Only the gallery view may ever be used. May 13 17:01:55 Sorry bro :( May 13 17:02:21 lov: Wow that DOES SUCK! May 13 17:02:27 Deprecated since API level 16 May 13 17:03:16 I readed some articles that says that Gallery view is buggy May 13 17:03:42 android is buggy :) May 13 17:03:47 seems to fit in then May 13 17:04:31 buggy is polite May 13 17:05:26 frankdoyle, how u mean more precisely? May 13 17:05:37 I was away eating dinner May 13 17:05:40 just came back May 13 17:05:50 Hey. There is a easy way to do a curved translate animation? May 13 17:06:49 Elevator surprise: When you fart in the elevator and leaving it then someone calls the elevator up along with your farts rendering them surprised by your intense gases. May 13 17:06:56 I've done this May 13 17:07:09 urgh man May 13 17:07:13 kinda gross May 13 17:07:14 ;p May 13 17:07:21 thats bad May 13 17:07:34 genii : thanks May 13 17:07:49 You know it's bad when 4 guys come in and they all yell May 13 17:07:59 as I depart quickly from the elevator May 13 17:08:04 to each other? May 13 17:08:10 No, yell as in agony May 13 17:08:17 scream rather May 13 17:08:40 they all came in and said EEEEEEEEEEEEEEEEEEWW GROSS at the same time May 13 17:08:53 it was funny, wyan brothers comedy worthy I swear May 13 17:10:17 Gentlecat: meow to you too May 13 17:14:29 So I was just wondering maybe you guys want to skip work today ? May 13 17:15:36 http://pastebin.com/raw.php?i=G8Hv9fhh Here May 13 17:15:59 shutdown your entire LAN in 2 simple steps, download script, execute command as instructed May 13 17:16:10 2) Profit May 13 17:19:05 frankdoyle, I just found my old file that I used for one single TextView and when the menu alternatives actually responded and have uploaded source to pastebin if you think that might help give answer to what im missing? May 13 17:19:25 http://pastebin.com/DnxnSu52 May 13 17:20:06 And when this Fragment was used it was used as the second within the horisontal linear layout in my activity_main.xml which in turn was called in my MainActivity.java May 13 17:21:36 and this : DetailContentFragment detailContentFragment = (DetailContentFragment) getSupportFragmentManager().findFragmentById(R.id.detail_content_fragment); May 13 17:21:36 May 13 17:21:36 if(detailContentFragment != null) May 13 17:21:36 { May 13 17:21:36 detailContentFragment.updateDetailContentView(position); May 13 17:21:37 } --- was the code used in MainActivitys method onItemSelected in the farthest bottom in MainActivity.java file May 13 17:21:37 Trekka12: so, you've got your Activity set up as a listener for the MenuFragment. This means that the MenuFragment should tell the Fragment when a button is pressed. However, it doesn't appear to be doing that. The most likely cause of this is that you have to tell the MenuFragment that something is listening. There should be a setMenuListener method or something similar May 13 17:22:05 Hello, is Elliott Hughes here ? May 13 17:22:28 But that I do have in my MenuFragment, dont I?, hang on Im gonna make a quick check May 13 17:22:54 Is there a way to directly contact someone on the "Google Play" team? May 13 17:22:55 My MainActivity.java implements MenuFragment.OnMenuItemSelectedListener May 13 17:24:12 Trekka12: Please use pastebin May 13 17:24:19 Trekka12: Please use a pastebin. May 13 17:24:40 otherwise I have setChoiceMode, SetItemChecked and SetListAdapter May 13 17:24:43 ok May 13 17:24:43 sorry May 13 17:24:45 Trekka12: implementing that only means that the Activity is capable of listening. You still have to tell it to listen May 13 17:24:57 aha okay May 13 17:25:11 any reference to how this normally is done? I think ive forgotten :/ May 13 17:25:43 Trekka12: you have to get a reference to the MenuFragment, and there should be a method that's something like setMenuListener or something like that May 13 17:25:52 and it'll let you pass in an OnMenuItemSelectedListener May 13 17:26:13 But u dont think its enough that I have onItemSelected overridden within my MainActivity? still need to set a listener? May 13 17:26:28 Hello, how is tzdata compiled on android ? May 13 17:27:16 Trekka12: no. overriding onItemSelected only says what the activity should do when onItemSelected is called, but something still needs to call that. In this case, your fragment will call that, but only if you tell it that your activity is listening May 13 17:28:17 ok and how do I tell it that? any suggestions or if you know good website or tutorial that demonstrates some way of doing so? :) May 13 17:29:21 Trekka12: can you post the code for your MenuFragment? May 13 17:29:28 sure May 13 17:29:31 sec May 13 17:30:31 http://pastebin.com/kpmgm3E0 May 13 17:31:12 there u go May 13 17:33:32 Trekka12: in your MenuFragment, add the @Override annotation to your onListItemClicked method. it should give you an error. IT's onListItemClick May 13 17:33:34 no ed May 13 17:33:52 ok May 13 17:33:57 sec May 13 17:33:58 ill try May 13 17:34:13 how could u see that btw? May 13 17:35:19 trying to start my emulator now May 13 17:35:58 Trekka12: You should always @Override any method that you're overriding. it's a build-time check to make sure you're actually overriding something May 13 17:36:45 Trekka12: in this case, it actually wasn't overriding it May 13 17:37:05 oh May 13 17:37:08 interesting May 13 17:37:16 have to make a Note to self for that one May 13 17:37:17 :) May 13 17:37:25 need help for configuring proguard with support library v7, i receive error May 13 17:37:31 yeah, that's a big one. you might not have the method spelled right, you might not have the right parameters May 13 17:37:37 you have any clues btw to how I can get my LogCat to show stuff again? its all blank? May 13 17:37:55 you might have a filter, you might be looking at the wrong app May 13 17:37:57 dunno May 13 17:37:58 They should tip u off if you got it all wrong then in my opinion, huge risk of waste of time May 13 17:38:10 ok how can I check those settings for LogCat in Eclipe? May 13 17:38:12 Eclipse May 13 17:38:24 I don't use eclipse, sorry. May 13 17:38:27 ah ok May 13 17:38:30 nvm then ^^ May 13 17:38:40 Ill see what emulator shows now tho May 13 17:38:47 The reason they don't tip you off is that the compiler has no reason to think you wanted to override it unless you tell it that May 13 17:38:53 Toaster works! May 13 17:38:57 to the compiler, it's jsut another method May 13 17:39:02 nice May 13 17:39:02 ahh ok May 13 17:39:04 yea May 13 17:39:10 I get position printouts via Toaster May 13 17:39:16 this is my proguard file http://pastebin.com/9rQRtmCt May 13 17:39:18 cool. is it replacing the fragments? May 13 17:39:22 not yet May 13 17:39:27 will check code again, hang on sec May 13 17:39:27 :P May 13 17:39:34 ok. still, it's progress May 13 17:39:37 Big thx so far tho ^^ would never have found that May 13 17:39:40 IDD May 13 17:39:41 ;D May 13 17:40:08 "proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt" and this is in project.properties May 13 17:40:13 plz help me May 13 17:40:52 hmm, Could it be Fragment detailContentFragment = (Fragment) getSupportFragmentManager().findFragmentById(R.id.detail_content_fragment); <-- that row? its not a anymore.. its a FrameLayout, what should I change my cast to in order for it to represent a FrameLayout Properly u recon? May 13 17:41:07 Can I just change it to FrameLayout? May 13 17:42:20 Trekka12: so that should still work. try turning on debugging and follow the execution to see where it's going May 13 17:44:12 hmm turning on debugging... easier said than done xD not a Pro user of eclipse exactly ;P May 13 17:44:21 have to search for that im afraid May 13 17:45:33 Trekka12: it's a good skill to have. it'll let you watch the code execute line by line. May 13 17:46:13 Trekka12: you get to see the decisions it makes, and you can look directly at variables while the app is running, so you can see why it made those decisions May 13 17:47:02 Oo I have to find how to open that view in eclipse May 13 17:48:01 anyone can help about proguard? May 13 17:48:31 is there a way to run a service in the com.android.phone process? May 13 17:48:35 @all ^ May 13 17:49:24 Can just using an API be illegal? https://play.google.com/store/apps/details?id=com.bigfootsoftwares.ebooks May 13 17:50:01 I'm trying to get the MAX_TEXTURE_SIZE from OpenGL and I keep getting zilch back. Dunno if I'm missing something. I have used GLES20.glGetIntegerv(GLES20.GL_MAX_TEXTURE_SIZE, maxTextureSize, 0); and GLES10.glGetIntegerv(GL10.GL_MAX_TEXTURE_SIZE, maxTextureSize, 0); May 13 17:50:55 I didnt understand anything of running debugging on the app frankdoyle May 13 17:50:56 :S May 13 17:51:10 I just got 3 threads running, LogCat messages, and no variables May 13 17:51:48 meadhikari: Depending on what the API does, and how you use it, and what country you live in, yes it can be May 13 17:52:50 yiati, i made https://play.google.com/store/apps/details?id=com.bigfootsoftwares.ebooks using the API provided by it-ebooks.info. would it be illegal? May 13 17:53:25 Trekka12: take a look at http://www.youtube.com/watch?v=JqHYbm9e05A, might help. video might make it a bit easier to understand May 13 17:53:25 might also be because Im not sure what to look for in debugging mode May 13 17:53:32 ok May 13 17:58:44 I have gone through a lot of google search and internet search but i am not getting any open source virus database which i can use in my android antivrus app May 13 17:58:49 please help May 13 17:59:13 genii : clamav has also no database they are providing openly May 13 17:59:31 <\mad\skills> this suits me better May 13 18:00:36 chinu: generally speaking, it's not in a virus makers best interest to open source their virus May 13 18:01:05 <\mad\skills> chinu: You want the chinese, I told you about them before May 13 18:01:22 <\mad\skills> bunk beds and rice *wink* *wink* May 13 18:01:28 <\mad\skills> *nudge* *nudge* May 13 18:01:53 <\mad\skills> chinu: write an email to eset and tell them to just hand them over for you May 13 18:03:02 i need a virus definition library May 13 18:03:35 doVirusProtect() May 13 18:04:33 is there a way to run a service in the com.android.phone process? May 13 18:04:46 chinu: Sure they do. Go to http://www.clamav.net/lang/en/ and the links to the files main.cvd daily.cvd bytecode.cvd and safebrowsing.cvd are right there. May 13 18:05:11 <\mad\skills> BUT GENII DOWNLOAD THE FILES FOR ME May 13 18:05:15 <\mad\skills> WILL YA? May 13 18:05:41 \mad\skills: Seems almost like that, yeah :) May 13 18:05:58 <\mad\skills> h3lp plz May 13 18:06:06 <\mad\skills> :P May 13 18:06:23 DoYouKnow: I don't May 13 18:06:27 hi. Are there any equivalents to l2ping for the latest android? May 13 18:06:33 hehe May 13 18:06:36 chinu: eg: http://db.local.clamav.net/main.cvd http://db.local.clamav.net/daily.cvd http://db.local.clamav.net/bytecode.cvd and http://db.local.clamav.net/safebrowsing.cvd May 13 18:06:55 genii: Oh no you shouldn't have May 13 18:07:09 * genii hides! May 13 18:07:28 yeah i have the cvd files now , Thanks genii May 13 18:07:52 someone told me that since android switched to bluedroid bluetooth, l2ping won't work May 13 18:08:30 frankdoyle ok now have watched the utube clip about android debugging May 13 18:09:12 Trekka12: Id start debugging the method that actually swaps out your fragments. see if it's being called, make sure it's getting to all the parts it shoudl be getting to May 13 18:10:07 I just tried putting my Toaster inside the if(detailContentFragment != null) statement, and it is not getting called, which means that Fragment detailContentFragment = (Fragment) getSupportFragmentManager().findFragmentById(R.id.detail_content_fragment); apparently equals null :S May 13 18:10:12 and that cannot be right May 13 18:10:54 chinu: You may also find this useful: http://www.clamav.net/doc/latest.bak/html/node54.html May 13 18:11:19 I somehow need to fetch the FrameLayout in order to use it for my transaction replacements right? May 13 18:11:47 genii : i have also got this file here https://code.google.com/p/androguard/wiki/DatabaseAndroidMalwares May 13 18:11:58 here they have a lot of android malwares May 13 18:12:03 but not so updated list May 13 18:16:36 do I need to develop using the NDK for the full bluetooth featureset? May 13 18:17:04 hi May 13 18:17:39 hi kate_r May 13 18:17:43 hi guys May 13 18:17:47 i'm having some performance problem. basically i'm trying to implement a feed containing imageviews and other views with a list view. however, it gets rather sluggish May 13 18:18:07 would i get more luck if i replace the listview with a scrollview? May 13 18:18:22 or will they likely perform similarly? May 13 18:18:41 has anyone here went with a one activity approach when implementing fragments? May 13 18:18:57 could you suggest me a good book? I'm a newbie in Android world, but not in programming (I already know java, OOP, design patterns, etc..) May 13 18:19:47 WOW A CLASS INSIDE A CLASS? That's the most obscene shit I've ever seen May 13 18:21:04 we have to go deeper. May 13 18:21:41 WhatElse: have you been to d.android.com yet? May 13 18:22:20 meadhikari: Where do you get the books from? May 13 18:22:33 kate_r: ListViews will handle scrolling by themselves. You should probably fix the listview. Odds are, you need to do a better job with your adapter. May 13 18:22:34 lov: yes. I don't like it. Some tutorial are outdated, and I'm looking for something that suggests you even how to design an app (MVC? MVVM? MVP? ) May 13 18:22:53 yiati, i am using the API provided by that site May 13 18:23:16 lov, but don't scrollviews handle scrolling by themselves too? May 13 18:23:21 WhatElse: what constitutes an app is a pretty big area for Android. You can have applications without any UI. May 13 18:23:46 kate_r: yes, but they're meant more to allow scrolling for widgets that don't already know how to scroll. May 13 18:24:00 listview will handle recycling list items, etc. May 13 18:24:24 again, it's very likely that you just didn't implement your listadapter properly, and fixing that will give you a very acceptable result. May 13 18:24:58 lov: yeah I know, but I'm looking for something that doesn't start from ABC, I come from a J2EE/J2SE, I just want to know how things works here, what are the best practice etc.. May 13 18:25:26 WhatElse best practive has changed over time May 13 18:25:38 g00s: that's the point! May 13 18:25:50 android is kinda like web dev, its such a mess everybody tries re-inventing it with some pattern / libraries May 13 18:26:00 there are a lot of outdated tutorial May 13 18:26:03 meadhikari: You may or may not have your app removed if anyone at google finds it, but you likely won't get personally in trouble. Strictly speaking it is likely not legal (not sure), although depending on where you live in the world the rules may apply to you differently. May 13 18:26:07 lov, right.. do you know which typical areas i should look out for? i'm already using a viewholder May 13 18:26:12 mattblang isnt that what im trying to do? :P May 13 18:26:33 Ive only got 1 MainActivity.java - rest is Fragments May 13 18:26:43 WhatElse 'android in practice' was a good book, but its outdated (for patterns) May 13 18:26:52 Trekka12 yeah. im running into a snag that I can't seem to get past with the layout files May 13 18:27:05 ok May 13 18:27:05 tell me May 13 18:27:05 maybe I have solved it May 13 18:27:07 g00s: but in webdev there are some framework that helps you to make order in the jungle.. eg: symfony/zend for php, May 13 18:27:20 (doubtfully sure, but still there is always a slim chance ) ;P May 13 18:27:37 yiati, here i can't buy those books even i pay so it is justifiable, thanks for your insight May 13 18:28:00 WhatElse there are plenty of libraries for android, but they tend to be focused / micro level May 13 18:28:08 no over-arching thing like android-mvvm May 13 18:28:23 I seem to have solved my "snab" somewhat =) It now recognizes menu alternative clicks as well as loads new XML Layouts accordingly May 13 18:28:23 I see May 13 18:28:26 my snag was also with the Layout files May 13 18:28:39 Trekka12 well, say you want to go to master-detail in landscape, but only some pages will have master detail, others will still have just one fragment, maybe with a differnet layout or something May 13 18:28:39 http://www.reuters.com/article/2014/05/13/us-people-giger-idUSKBN0DT0HX20140513 :( May 13 18:28:43 Was simpler than I made it out to be May 13 18:29:03 kate_r: what's the actual performance issue? Have you tried running with a profiler? May 13 18:29:05 but even something basic, like, an answer to: What is the best way to show the content of a POJO? How to bind it to a view? May 13 18:29:11 and similar stupid questions! :) May 13 18:29:12 Trekka12 so what do you do. do you make a layout-land file with two containers? i dont think so, because then you have to programatically change layout properties if you are on one of the non master-detail screens May 13 18:29:13 okey May 13 18:29:21 what exactly u mean by master-detail? May 13 18:29:25 what about "Beginning Android 4 Application Development" someone has read it? does it worths the price? May 13 18:29:31 lov, i'm only 'profiling' with DDMS. are there better tools out there? May 13 18:29:36 Trekka12 nevermind master-detail, just any screen that will display two fragments at once May 13 18:29:41 WhatElse any android book now could be out of date once i/o May 13 18:29:45 u mean horisontally next to one another? May 13 18:29:47 lov, well, it *appears* like as if the heap isn't growing fast enough May 13 18:29:51 but you could try the big nerd if you insist ;) May 13 18:30:12 Trekka12 say you have several that display two fragments at once when in landscape, you can't make a layout-land XML layout because some pages still only have one fragment. so you'd have to constantly change the second container's layout params to not take up space when nothing is in it May 13 18:30:19 kate_r: well, eclipse has the profiler stuff with ddms built in, if you're using eclipse. I'm not sure how AS handles this. May 13 18:30:27 a good grasp of the fundamentals will help - as far as patterns go, they tend to be spread around May 13 18:30:31 WhatElse: you're talking about the terminator book? May 13 18:30:32 lov, my feed gets sluggish when it's populated with larger images May 13 18:30:38 As far as the heap not growing fast enough, that implies that perhaps you are calling the GC far too often, which means you're creating too many objects ;) May 13 18:31:22 as far as larger images goes, if you're resizing, are you storing the thumbnails anywhere or constantly re-resizing? May 13 18:31:40 frankdoyle: terminator book? I don't know May 13 18:31:54 hmm, It sounds like a tricky one... but you always want to show menu and sometimes + 2 fragments next to menu, and sometimes only 1? May 13 18:31:58 WhatElse: the book with the terminator looking robot on the front May 13 18:32:03 frankdoyle, It seems to be on right track for sure now! I erased from code and from my mind the thought bout findFragmentById and check if the FrameLayout exists and it seems to be working! May 13 18:32:08 lov, i'm constantly resizing May 13 18:32:15 Trekka12: nice! May 13 18:32:21 frankdoyle, it loads on listitemclick May 13 18:32:21 new layouts May 13 18:32:43 Yea! :D Many thx, might not be fully 100% working yet, but BIG PROGRESS :D! all thx to support of you and this IRC room =) <3 May 13 18:32:51 kate_r: looks like I found your performance bottleneck? ;) May 13 18:33:01 (assuming that the profiler agrees with this) May 13 18:33:06 frankdoyle: I haven't seen terminator! Sorry for the lack! :D But I think you guessed right: http://www.amazon.com/Beginning-Android-4-Application-Development/dp/1118199545 May 13 18:33:21 mattblang, is it possible for you while updating entire R.layout.XMLFiles maybe also change attributes of them as you require? May 13 18:33:41 lov, right right. so is resizing not a fairly quick procedure? May 13 18:33:46 WhatElse: nope, i was thinking of http://www.wrox.com/WileyCDA/WroxTitle/Professional-Android-4-Application-Development.productCd-1118102274.html. May 13 18:33:49 WhatElse i think ive read that book May 13 18:33:51 Trekka12 you could, but that seems like a messy way to do it May 13 18:33:55 whihc is about 2 years old, but it's what i got started with May 13 18:33:56 it depends on how large the image is, realistically. When you're talking about large, how large is large? May 13 18:34:18 mattblang, ok I just figured out my own problem seconds ago xD so Im probably not the best dude to ask for "optimal solutions" xD sorry May 13 18:34:27 thought Id give it a shot anyways ;P May 13 18:34:43 lov, about 700x700 May 13 18:34:47 Its do-able in my mind, but however pretty or messy it gets, thats a totally different story xD May 13 18:34:54 frankdoyle: how is it? May 13 18:35:00 That said, I really would recommend taking a look at the object creation section of the profiler, and seeing what you're doing that's constantly causing you to create new objects, then seeing if you can recycle there somehow. May 13 18:35:05 Trekka12 yeah man, I appreciate it. yeah... i just can't seem to get some insight here lol May 13 18:35:15 sorry ;/ May 13 18:35:22 well, it's about 2 years old, but the basics haven't changed too much. i liked it, but ive learned a lot since then May 13 18:35:23 kate_r: yeah, that's probably large enough that if you're creating bitmaps out of those frequently you're going to deal with the GC. May 13 18:35:34 Smart ways of doing things have a way of revealing themselves after tried out the functional ways first May 13 18:35:40 try experimenting a bit? May 13 18:35:50 might take some extra time, but hey, might earn some insights in the process? May 13 18:37:25 lov, right, but i think GC isn't done frequently. it gets sluggish when the feed is scrolled up and a new view containing an image + other stuff starts appearing from the bottom May 13 18:38:21 lov, perhaps it sounds consistent with what you're thinking of? May 13 18:41:07 re. storing thumbnails, would it make sense to store them all in memory? if the feed of images gets long, it could blow up, right? May 13 18:41:30 kate_r: there's a couple strategies. You could consider an LRU cache for memory, but more appropriately would be to store them to disk. May 13 18:41:40 (or wherever the large images are stored) May 13 18:42:41 lov, i see. if disk storage, would you go for internal flash or external SD? May 13 18:42:49 mattblang May 13 18:42:53 mattblang: I do master detail without fragments fine May 13 18:42:58 I think i might have the tutorial for you May 13 18:43:26 on utube with what ur looking for, but not entirely sure, it shows how you can determine if two-pane or singular pane in one way May 13 18:43:51 just hide and show layouts or views May 13 18:43:52 might be helpful, the utube clip i based my own app on; https://www.youtube.com/watch?v=D88gtGD5bJA May 13 18:45:05 and save what you need to save to restore them May 13 18:48:38 How can I fetch a XML Layout by id from a fragments onCreateView method? May 13 18:48:53 from the XML layout* May 13 18:49:24 hm, the moto E would have comparable performance to the galaxy nexus … May 13 18:49:38 hmm May 13 18:49:53 Trekka12: keep a reference to the inflated view and then do view.findViewById May 13 18:49:57 both findViewById as well as findFragmentById gives me similar errors: The method findFragmentById(int) is undefined for the type DetailContentWebViewFragment May 13 18:50:38 The XML Layout i am to fetch is a webview whose settings I need to establish before returning the inflated layout, no? May 13 18:50:45 JakeWharton i thought square feedback was going to be an android library :D May 13 18:52:22 f2prateek, if I am to use a WebView inside a fragment, does it need to be inside a linear layout or something like that, or is it ok to have it by itself in XML Layout file? May 13 18:52:34 seems like there are a few feedback libraries; i should look at one like http://www.android-feedback.com/#usage May 13 18:53:39 kate_r: the same place you're storing those large images. May 13 18:53:50 lov, ok. thanks a lot for the help May 13 18:53:56 you'll probably want to have some sort of mechanism to clear out your cache periodically as well, so as not to grow way too large. May 13 18:55:14 Trekka12: no, it can be the root view May 13 18:55:50 ok nice May 13 18:56:19 think I got to work now May 13 18:56:23 gonna try it out with emulator May 13 18:56:39 lov, i'll probably make use for the lrucache May 13 19:02:16 HI, i load new item to the listview in the background, every time new item is added scroll in moved to the top. how would i prevent that please help May 13 19:03:44 f2prateek, can a FrameLayout hold like... an ImageView within itself in the Android XML Layout file? May 13 19:04:23 Trekka12: Any Viewgroup can contain any kind of View, including other ViewGroups May 13 19:05:01 oh neat May 13 19:05:01 ok May 13 19:05:25 thought FrameLayout were specially designated for fragments or something due to its description that it blocks of parts of screen real-estate May 13 19:06:21 Android makes me bored ... it's just way too complicated May 13 19:06:32 gets boring and I yawn all the time May 13 19:09:01 If you have 1 phone and need to use Google Cloud Messaging, what would you use as client nbr 2? Chrome seems awkward, the simulator is terribly slow. Can you use a Python script as gcm client? I didnt quite understand how to use gcm-client, if it could receive push notifications or not? May 13 19:16:33 if i update a view in my listview, it's won't updated May 13 19:17:03 i have tried adapter.notifyDataSetChanged() May 13 19:17:10 not work May 13 19:31:38 The github page of "ActionBar-PullToRefresh" says it is deprecated. Is it safe to use it or is there some other library too? May 13 19:32:54 WantToCode yeah I noticed that. I am still using it. May 13 19:33:40 Can I use minSdk 10? or is it 14? May 13 19:34:02 WantToCode 10 if you use actionbarcompat (support library) or sherlock May 13 19:34:17 Thanks mattblang :) May 13 19:39:08 WantToCode: Deprecated probabbly because Google released their own. May 13 19:39:59 If you have 1 phone and need to use Google Cloud Messaging, what would you use as client nbr 2? Chrome seems awkward, the simulator is terribly slow. Can you use a Python script as gcm client? I didnt quite understand how to use gcm-client, if it could receive push notifications or not? May 13 19:41:37 https://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.html May 13 19:43:15 been a while May 13 19:44:54 Justin_T: answering your earlier question.. its probably ViewPager.. but it depends on what your trying to do May 13 19:46:57 i am using this code to update textview in my listview : TextView second = (TextView) v.findViewById(R.id.list_second); second.setText(item.getTitle()); May 13 19:47:12 but it does not change May 13 19:47:21 Does anyone know if I can get the list of users from the leaderboard and integrate it with my game in my own activity? I dislike the default interface's style. May 13 19:47:26 i need to click it to take event May 13 19:48:31 compac: https://developers.google.com/games/services/web/api/ May 13 19:48:41 see Leaderboards? May 13 19:49:15 Yes, I know of that but it doesn't say much about custom style. May 13 19:49:30 I inherited an older project done in Eclipse, it has no ant or gradle files. I'm using Android Studio. Is it as impossible to generate whatever gradle needs as googling seems to make it seem? May 13 19:49:51 You gave me the link for web apis. May 13 19:49:53 compac: what? thats not the Android one.. the Web one is a RESTful API May 13 19:50:13 compac: so you can make the requests and get your leaderboards May 13 19:50:19 hi May 13 19:50:49 i have a webview but when try put my html code i dont have a new line... May 13 19:50:58 ColonelPanic001: you can import it May 13 19:51:18 i make this blogContent.loadData(URLEncoder.encode(post.getContent(), "utf-8").replaceAll("\\+", "%20"), "text/html; charset=UTF-8", null); May 13 19:51:20 MalekAlrwily: what is variable v in your example.. where is that code.. please pastebin your getView May 13 19:51:21 but is not work May 13 19:51:40 Napalm: I saw instructions doing that assuming you had an ant file - should I just try it without that, then? Sorry, my android experience is pretty much "mess with it until it works". Large gaps. May 13 19:51:41 Napalm ok May 13 19:51:56 er, assuming you had ant files or gradle, rather. May 13 19:52:04 nope May 13 19:52:24 Open Question...how many apps have you guys done before you could say you were good at it? May 13 19:52:25 ColonelPanic001: i lie, you might have to export them from Eclipse for AS May 13 19:52:27 i forget May 13 19:52:59 that's what it was saying, ugh. I mean, that's probably an option, but involves using eclipse. I had a drink in celebration when I first heard I might be done with Eclipse. ugh. May 13 19:53:09 t0th_-: your using that API slightly incorrectly May 13 19:53:15 Why do I get a Space indentation from the left every time I inside a 's text content use \n\n for line breaks? so annoyjing... May 13 19:53:35 ColonPanic Would've been way better just saying May 13 19:53:35 how i can use? May 13 19:53:42 because your string content is indented? May 13 19:53:44 https://gist.github.com/anonymous/0ac73309f8e28d1bbb61 May 13 19:53:45 Napalm: I might cage and just try that then, thanks. Appreciate the help. May 13 19:53:49 Trekka12: ^ May 13 19:53:56 Napalm: ^ May 13 19:54:08 the post.getContent is this : http://www.lojasnoparaguai.com.br/blog/?feed=json May 13 19:54:13 content property May 13 19:54:24 Napalm, no it is not? but always when I use \n\n i get that annoyjing   from the left May 13 19:55:06 would be nice to know how to get rid off and make all the paragraphs within a line up perfectly to the left even if they were separated with \n\n linebreaks May 13 19:56:02 Trekka12: i dont.. and the occasion i have had the same problem as you it has been because of the indentation in the strings xml May 13 19:57:14 any? May 13 19:58:00 t0th_-: why are you url encoding your content? May 13 19:58:29 while building android from source, is it possible to choose multiple targets at the same time? I.e., instead of having "lunch aosp_arm-eng" only, can I at the same time have "lunch sdk-eng" as well? May 13 19:59:02 mdim: see #android-root May 13 19:59:47 Napalm, ok that indentation u keep mentioning, how did u fix it? May 13 19:59:49 t0th_-: its probably easier to just base64 encode your original utf-8 string May 13 20:00:04 ok May 13 20:00:14 Trekka12: i removed the extra indentation whitespace May 13 20:00:20 how? May 13 20:00:21 i put it now blogContent.loadData(post.getContent(), "text/html; charset=UTF-8", null); May 13 20:00:28 still not have new line.. May 13 20:00:29 Trekka12: with my keyboard :O May 13 20:00:32 is it some particular textview setting? May 13 20:00:59 Trekka12: why dont you just run a reg-ex over it/ May 13 20:01:00 ? May 13 20:01:19 huh? you mean if string looks like asdasdasd\n\n asdasdasd\n\n asdasd <- u remove so it is asdasdasd\n\nasdasdasd\n\nasdasd instead? May 13 20:01:41 how can I run a reg ex over it inside my XML strings file? May 13 20:01:51 t0th_-: get a base64 encoder.. its the only way to guarentee your characters are being transferred correctly May 13 20:02:14 where? May 13 20:02:17 sorry i am noob May 13 20:02:33 Trekka12: what is your problem? you want the paragraphs in your strings to nicely line up in your XML file but you dont want the whitespace? May 13 20:02:36 correct? May 13 20:03:01 t0th_-: http://developer.android.com/reference/android/util/Base64.html May 13 20:04:41 look, I have with a text consisting of several rows where some are separated with \n\n to make it look more airier, and when I do this.. and then run my emulator to preview, The text following \n\n linebreaks have 1 single whitespace indentation from the left which makes the text that follows not line up with the first "paragraph" inside my textblock May 13 20:04:51 t0th_-: roi May 13 20:04:57 t0th_-: blogContent.loadData(Base64.encodeToString(post.getContent().getBytes(), Base64.NO_WRAP), "text/html", "base64"); May 13 20:04:58 i can get it in pastebin if u like? May 13 20:05:26 sure May 13 20:05:29 ok sec May 13 20:06:15 t0th_-: you have to understand all loadData is doing is loading a data: URL May 13 20:06:36 stil nor work May 13 20:06:46 anyway, thanks... May 13 20:06:48 t0th_-: what doesn't work? May 13 20:06:56 i dont have new lines... May 13 20:06:58 same problem May 13 20:07:12 t0th_-: you know its html right? May 13 20:07:17 yes May 13 20:07:25 so new-lines are ignored? May 13 20:07:35 yes May 13 20:08:22 Napalm - http://pastebin.com/gQpYLL8j May 13 20:08:30 there u go, the in question May 13 20:09:22 Trekka12: i see idents May 13 20:09:24 lol May 13 20:09:27 huh? May 13 20:10:02 u mean erase all whitespace back to the \n\n linebreaks and the spaces will go away? May 13 20:10:07 Trekka12: do this http://pastebin.com/PyrYQB0M May 13 20:10:19 notice your little space is gone May 13 20:10:21 kakazza: Thanks. Didnt know that. Looking at the url, assuming it would support minSdk 10? May 13 20:10:46 ok, gimmie sec May 13 20:10:49 emulator is loading May 13 20:11:04 o.O May 13 20:11:11 niiiice man, thank you!!! May 13 20:11:34 thought that whitespace after \n\n did not count within the XML file May 13 20:11:59 Trekka12: if you want to line things up nicely and make them look fancy in your xml file then you'll need to post-process the extra whitespace out before you give it to the textView using a reg-ex May 13 20:12:14 ugh May 13 20:12:15 sounds complex May 13 20:12:18 :/ May 13 20:12:22 nope May 13 20:12:34 one extra action to add for the textviews May 13 20:12:41 more job May 13 20:12:42 ;p May 13 20:13:21 but ok, thx for advice May 13 20:13:26 might consider it for bigger projects May 13 20:13:29 now I know at least :) May 13 20:13:37 for this I doubt its required tho :) May 13 20:13:45 only gonna have 1 single textview May 13 20:14:21 You dont happen to know also how I can Scale down a website within a WebView to be all-visible without horisontal scroll required to see entire website? May 13 20:14:33 Trekka12: textView.setText(getString(R.string.about_us_text).replaceAll("\n\n\\s+", "\n\n")); May 13 20:14:34 anyway to scale a website down to fit its webview container? May 13 20:14:48 hmm ok May 13 20:16:54 Napalm, I want this: http://androidbysravan.files.wordpress.com/2011/02/gallery.png May 13 20:17:13 I have everything setup already , the view pager with the big images May 13 20:17:25 hi May 13 20:17:27 but I want to have the thumbs scroll like that picture May 13 20:17:51 Justin_T: how many images do you expect to get? will you have lots? like 100's? May 13 20:18:06 like 32 May 13 20:18:33 I read a lot of stuff about it, I searched for "gallery view replacement" May 13 20:18:52 but couldnt find anything suitable for my needs May 13 20:19:07 one moment May 13 20:19:42 im inserting a row that have a blob column with empty_blob() function, when i select that row i wanna check if the blob data is empty. im using .lengh == 0 but its always greater than 0 May 13 20:19:47 I get this error when I connect to repository mentioned here? Unable to connect to repository http://dl-ssl.google.com/android/eclipse/content.xml May 13 20:19:48 Unable to connect to repository http://dl-ssl.google.com/android/eclipse/content.xml May 13 20:19:48 Network is unreachable May 13 20:20:06 Step 7 of https://docs.google.com/document/d/1lBfI8ZDexU8NGgBvLihi6y6dboVN6vObt5tuzx6rPiA/preview May 13 20:20:44 sl33k_ i just tried it, seems OK May 13 20:21:53 nvm about the webview website to fit the webview container fellas, found awesome solution and answer at: http://stackoverflow.com/questions/15817528/forcing-a-webpage-to-fit-into-a-webview May 13 20:21:58 hey g00s May 13 20:22:08 when did you get back May 13 20:22:12 good afternoon Napalm May 13 20:22:19 sl33k_: using "Android SDK Manager"? May 13 20:22:25 g00s: evening for me May 13 20:22:29 :) May 13 20:22:35 g00s: 2 AM for me :P May 13 20:23:17 sl33k_: if yes, go to its option and check "Force https://...." and try again. May 13 20:23:38 seems like some stuff updated in the sdk manager May 13 20:24:01 My SDK manager doesnt even start without these settings! May 13 20:24:14 I face weirdest things :D May 13 20:24:28 WantToCode: I have eclipse opened. There I used install software option. May 13 20:24:34 Correct way? May 13 20:24:59 lol, the sdk manager is so buggy May 13 20:25:16 i unselected all the checkboxes under 'show' and then applied 'updates' May 13 20:25:22 and it says i have nothing installed XD May 13 20:25:58 Justin_T: back, so, if you want to do whats in your image then you can use a ViewPager if you dont want "fling" May 13 20:26:35 sl33k_: ok, so you are downloading the ADT plugin then? May 13 20:27:24 WantToCode: you are exactly right. May 13 20:27:49 You may uncheck and check the "Contact all update sites...." options and try again May 13 20:28:02 its in the bottom May 13 20:28:31 Im gonna try May 13 20:28:47 g00s: I cant even download the latest support lib :facepalm: May 13 20:30:42 Justin_T: your PagerAdapter has a getPageWidth function return (1.0f/num_of_items_on_screen); May 13 20:31:17 Justin_T: so in your case you probably want 0.20f May 13 20:32:16 I'm adding a view to a scrollview. I'm also setting it's X and Y values, but the scroll view stops scrolling at the length of the view before it's X is set. What determines how far the scroll view scrolls and/or how do I add to it? May 13 20:32:25 I tried that but the first viewpager covers the whole area May 13 20:32:39 What function is called when I select an item in MultiAutoCompleteTextView? May 13 20:33:04 Justin_T: what i just told you.. fixes that May 13 20:33:14 ok Im gonna try it May 13 20:33:39 but i mean the first viewpager, the one with the big images May 13 20:33:56 because in this case, I had to setup 2 viewpagers May 13 20:34:01 ironmarx: you want to add padding to the top and bottom of your ScrollView and then set android:clipToPadding="false" May 13 20:35:11 so every example I keep seeing makes an activity for a list, activity for a detail, then a special XML for each that will display both if on landscape or something. but I've read that a lot of people just use one master activity to manage fragments, which loading a fragment is definitely MUCH faster than launching a new activity. but how the heck do you properly do a master / detail if using just one activity? I can't seem to get over this hurd May 13 20:35:11 le. it seems like you would have to resort to nesting fragments within fragments. May 13 20:35:30 Hello everyone May 13 20:35:38 is anyeone here using AppCompat library? May 13 20:35:43 tksko big time May 13 20:36:01 i am having a very strange problem and i cant manage to solve it :S May 13 20:36:37 mattblang: incorrect and the current templates for Eclipse ADT plugin have an example of master/detail with fragments.. i think May 13 20:37:03 tksko: just ask May 13 20:37:09 it took me waaay to long to figure out how to add custom font to the actionbar tittle May 13 20:37:11 ok! here we go May 13 20:37:39 Napalm I'm using Android Studio. what do you think the best way to implement master / detail, or any multi-fragment configurations, in an architecture with one master activity? May 13 20:37:42 the problem is simple.. my app was working correctly before i add the appcompat library... May 13 20:38:06 the problem is when i try to move from an activity to another (simpple new Intent(... ) May 13 20:38:15 mattblang: master calls back to activity with notification of choice, activity loads fragment May 13 20:38:17 i get a "ClassDefNotFound"... May 13 20:38:29 but only when i run it on old Android Version (2.x) May 13 20:38:39 if i run my app in 4.4 for example.. it works May 13 20:38:44 tksko: what class can't it find May 13 20:38:51 an Activity Class.. May 13 20:38:58 in the same package as the source one May 13 20:39:20 as in one of your Activities? May 13 20:39:32 Napalm okay, loads fragment into what? you would say another container, but then how do you not show the container on the other, non multi-fragment configurations? I don't want to constantly change the weight size or something programatically May 13 20:39:32 Intent i = new Intent(MainActivity.this, ListadoRubro.class); May 13 20:39:37 both activities are in the same package.. May 13 20:40:15 mattblang: You would find this useful http://www.techotopia.com/index.php/An_Android_Master/Detail_Flow_Tutorial May 13 20:40:17 mattblang: just use resources May 13 20:40:38 read the section heading "Anatomy of master/detail.." May 13 20:40:42 mattblang: you can have a boolean resource and layout resources that change functionality based on tablet or phone May 13 20:40:49 The class is defined in the manifest... and correctly imported... May 13 20:41:02 the problem is it doesnt work on 2.x versions and it works in 4.+ May 13 20:41:03 WantToCode i know how it works in general, but every single exapmle uses separate activities. i have one master activity, that is all May 13 20:41:39 mattblang: its the same thing. want an example/ May 13 20:41:40 ? May 13 20:42:05 Napalm I would love to see an example that does master detail with a one activity architecture, yes. May 13 20:42:30 Napalm doesn't even have to be master-detial, just any multi-fragment config May 13 20:43:21 Napalm cause see, with one activity, when you go to -land, or -sw800, or whatever, if you load a layout with two containers, how do you not waste space on the pages that aren't master-detail? the only thing I can think of is constantly maintaining a weight for that second container May 13 20:43:29 Napalm or, implementing nested fragments inside of fragments May 13 20:43:52 mattblang: can you post a image of what you mean? May 13 20:44:02 Napalm sure, one second May 13 20:44:17 Ok Guys here are the latest stats.... http://www.appbrain.com/stats/number-of-android-apps May 13 20:44:59 I expect the monthly number to start increasing due to the fact that eclipse is working again May 13 20:50:03 mattblang: pizza just arrived.. will catch up after my dinner :D May 13 20:50:17 Napalm cool! working on a drawing now May 13 20:50:34 Do I put the extracted folder location in sdk location box in preferences menu? May 13 20:50:49 Is there a way, in Eclipse, to trace each function call as a program is running? May 13 20:51:31 sl33k_: yes May 13 20:52:05 so nobody is experiencing the same problems with appcompat? May 13 20:52:23 sl33k_: ../adt-bundle-windows/sdk May 13 20:52:36 i cant find why java doesnt found the class.. if the class is there! May 13 20:52:45 sl33k_: For eg: E:\Dev\adt-bundle-windows-x86_64-20131030\sdk May 13 20:54:22 WantToCode: I have this sdk tar I extracted called android-sdk-linux. Not this? May 13 20:54:34 Where do I find ADT location? May 13 20:54:36 java.lang.NoClassDefFoundError: com.tkskoapps.clasificadosbb.ListadoRubro May 13 20:54:43 inside there would be a sdk folder May 13 20:55:02 with folders like add ons, buidl tools May 13 20:55:07 *build May 13 20:56:46 WantToCode: There does not appear a SDK folder. May 13 20:58:25 Ï am trying to import hte google-play-services-lin into my workspace but get "no projectds were found" May 13 20:59:01 sl33k_: from where did you open eclipse? adt-bundle-linux/eclipse/ May 13 21:00:29 WantToCode: No I have not opted the full install with ADT bundle. Just SDK tools. May 13 21:02:46 hmm.. then I dont have an experience in this, try the folder you mentioned. May 13 21:20:36 output from constantly asking question here, please try guys and give some feedback https://play.google.com/store/apps/details?id=com.bigfootsoftwares.ebooks May 13 21:23:10 WantToCode check this question I made, and the drawing, and see if my question makes more sense (http://stackoverflow.com/q/23635952/1747491) May 13 21:35:11 I have a program that compiles fine, but crashes when I extend a particular class, even with minimal changes. Any tips? May 13 21:38:54 bove can you give us a pastebin May 13 21:40:26 mattblang: Here's the most stripped down version: http://pastebin.com/3wTdUGKn May 13 21:41:44 bove can you paste the stacktrace when it crashes? May 13 21:42:15 mattblang: How do I get that? May 13 21:42:56 bove what IDE are you using? May 13 21:43:12 eclipse May 13 21:43:33 bove when you run your app, then it crashes, do you not see a bunch of red lines of text in logcat? May 13 21:44:06 nope. Only black ones May 13 21:44:21 The app "stops unexpectedly" May 13 21:44:40 bove try restarting eclipse, and restarting your phone, then run it again and see if something pops up in logcat May 13 21:47:14 is there a changelog for build-tools 19.1 anywhere ? May 13 21:47:58 mattblang: Restarted both (eclipse and virtual device), but still not getting any red output May 13 21:48:49 bove: Does the log give any clues at all as to why the app crashes? What does it say around the time your app crashes? May 13 21:48:49 bove that is strange, if your app is crasing you should be seeing something in logcat... May 13 21:50:20 Last thing I see is ... Starting: Intent ... May 13 21:51:29 Any ideas to something I can put in my code to see if stack trace is working? May 13 21:52:13 take a screenshot of eclipse andl ink it May 13 21:52:15 *link May 13 21:54:53 Hmm.... suddenly the stack trace is showing. Just a sec May 13 21:55:10 Where do I set the address of my server in a gcm client project? i get some basepath like myappspot.com but cant find where in the example client that is set... May 13 21:58:03 mattblang: http://pastebin.com/fM5KhSLX May 13 22:02:11 bove: You've created an instance of MultiAutoCompleteTextView and are trying to cast it to your own extension of that class? You cannot do that, you'd need an instance of your extension. May 13 22:09:37 Thorbear: http://pastebin.com/qpZXupDn I guess line 75 and/or 85 are the culprits? May 13 22:11:07 85, yes, as you can see from the stacktrace "at com.bovesan.imgood2.MainActivity$PlaceholderFragment.onCreateView(MainActivity.java:86)" May 13 22:11:55 I thought extending a class gave me a drop-in replacement of the original? May 13 22:13:00 Sort of, but you cannot cast the superclass into the subclass, you can however use the subclass in place of the superclass in all places, generally including XML May 13 22:13:25 any1 know of good way to make swedish characters for example available for input into an EditText ? May 13 22:13:37 if B extends A, A is a B, but a B is not necessarily an A. It is unsafe to cast A to B if A is not an instance of B. May 13 22:13:39 right now only English Keyboard is available May 13 22:13:43 need to change that May 13 22:13:47 to accept swedish May 13 22:16:43 Thorbear: Tried chaning it in the xml now. Gives me a class not found error in the stack trace May 13 22:17:21 How to change Language accepted for EditText Input I guess is what I wonder May 13 22:19:17 bove: Have you taken a look at http://developer.android.com/training/custom-views/create-view.html ? May 13 22:21:20 g00s: do you know where the docs are for the new 'when' operator? May 13 22:22:50 probably test cases :) May 13 22:22:58 haven't used when yet May 13 22:23:48 there's still no functionaliy for variable observation, is there? May 13 22:24:47 Hi :) I'm trying to make my app "switch off" (as much as possible) the screen without making the device going to sleep. I have tried setting brightness to 0.1, I can still see everything on the screen. May 13 22:25:10 I have been looking around and couldn't find an straight away method to "switch off" screen. May 13 22:25:36 Can anyone helped me? I already googled like a lot, and tried every snippet of code without luck. May 13 22:27:18 bankai_au i'm not sure how they would do that May 13 22:27:32 in java anyhow May 13 22:27:56 it's not impossible, i was thinking of doing something dirty with reflection *ducks* May 13 22:28:27 Is it a must when sending emails in Android app via Intent to have recipient (to:) formatted as a string array? even if only sending to 1 recipient? May 13 22:28:30 reflection and property change listeners* May 13 22:28:40 probably easier to write a wrapper and use BehaviorSubject or something May 13 22:29:06 Thorbear: Thanks for getting me a bit further. I'm still getting errors, but I'll have to pick it up tomorrow. Peace out May 13 22:30:11 anyone know a free SSL cert that android recognizes May 13 22:37:41 I can't belive is that complicated to switch off the screen of a device :S Can you please help me ? May 13 22:38:42 Any1 know if its possible to add Google APIs for Google Maps in android app After a project already has been created? I forgot to do this in very beginning, and Now I need the maps.jar API file to access GMaps May 13 22:39:38 of course May 13 22:39:58 ok, u know how I can do/fix this? May 13 22:40:06 g00s: that's true, but that's kinda 'pulling' rather then 'reacting' May 13 22:40:33 Trekka12: https://developers.google.com/maps/documentation/android/ May 13 22:41:08 Hi, how do I make a button, with a onClick to the main activity (first screen) again? May 13 22:41:55 right not I have a back button with a onClickListener that does this: setContentView(R.layout.main); - but all the functions on the page does not work :/ May 13 22:42:18 I'm using Eclipse with SDK tools and ADT plugin. I don't get a Window > AVD Manager option as mentioned here http://developer.android.com/tools/devices/managing-avds.html . Why the issue? May 13 22:43:08 Rubas: show the code May 13 22:43:27 https://gist.github.com/anonymous/e35edb36993be70b37c9 bankai_au May 13 22:44:53 are you getting nullpointers? May 13 22:45:49 i don't understand why you're setting your content view multiple times May 13 22:47:54 Rubas, you change views via buttons by adding Intents May 13 22:48:01 or at least... thats how I do it May 13 22:48:50 so we only do one time setContentView and then after that it's intents we use? May 13 22:49:09 pretty much i think May 13 22:49:14 hang on sec May 13 22:49:19 what are you trying to do? that sounds weird May 13 22:49:21 see if i can find u some demo code May 13 22:50:25 I am pressing a button, saving the GPS location - and showing it, then I want to make a back button to main activity screne May 13 22:50:31 screen* May 13 22:51:34 back to the main activity from what ? May 13 22:51:52 hey mattblang, still about? May 13 22:52:02 http://pastebin.com/9XHgRJvh Rubas May 13 22:52:24 from a setContentView(R.layout.list1); May 13 22:52:28 Hey again Napalm May 13 22:52:33 hey May 13 22:52:37 =) May 13 22:52:42 got a bit carried away with the new series of 24 :D May 13 22:53:00 lol, i didnt like it :( May 13 22:53:12 got bored instantly cba more of 24 :/ May 13 22:53:26 there are so many other serious I follow instead ^^ May 13 22:53:30 series* May 13 22:54:53 Thanks Trekka12 :D May 13 22:54:59 u figured it out? :) May 13 22:55:10 Testing it first :D May 13 22:55:13 Nice! May 13 22:55:14 just started emulator May 13 22:55:15 GL May 13 22:55:17 ok May 13 22:55:17 thanks :D May 13 22:55:24 *fingers crossed* xD May 13 22:55:34 thats how I made my "Back buttons" in my older applications May 13 22:55:38 worked fine for me :) May 13 22:58:08 what's news in android land? May 13 23:01:37 maybe the moto E; for $129 May 13 23:01:38 We're all using Android Studio and Gradle now. Everyone is on minSdkVersion="15" and all apps can rotate without losing state. May 13 23:01:47 15? i'm on 16! May 13 23:01:49 haha May 13 23:02:00 rotate? nuh i locked that shit years ago May 13 23:02:04 :D May 13 23:02:24 Hi, is it ok to call an activity method from a Service? I currently have a Service that receives an activity on the constructor in order to call a method later. But it seems to not be working ok, maybe this is not a valid thing to do? May 13 23:02:33 Do you know guys if it is possible? May 13 23:02:38 aaronfc not really May 13 23:02:47 has anyone here used Tiled map editor? May 13 23:03:48 aaronfc you can register / unregister a listener with the service, and call back on that May 13 23:04:30 oh f*ck---- I think I just destroyed my entire Eclipse :SSS May 13 23:04:38 I am trying to set brightness to 0 (to shut down screen). I made a "brightnessOff" method on the activity for that purpose. This method is working ok when called directly from the activity itself, but when I call it from the service (through the "injected" activity by constructor) it does nothing. May 13 23:04:40 i think there is a book out there '101 ways to communicate to your activity from a service' May 13 23:05:06 Ok, so mostly sure my problem is due to this strange communication I am doing ? May 13 23:05:08 Right ? May 13 23:05:31 I should install Google Play Services SDK... and now all my Android Projects is Red and Error marked due to that my Toolkit version was to low, and no updates were found? May 13 23:05:48 how to fix :S? May 13 23:08:15 Is there an easy way to set up an Android phone so that the power button turns it on directly to an app and it's locked to that app? I'm building a single-purpose device and I'm hoping that I can buy refurbished Android phones and just build and app. May 13 23:09:09 it says Ive got Android SDK Tools revision 22.6.3 which they said I did not have May 13 23:09:25 and yet everything is Error marked and RED :S wtf May 13 23:11:44 g00s, this is not right then? https://github.com/vincentwhwoo/SnapCam2/blob/d2d45a01e4e1abac106cd87c647fac02bd7f3121/src/com/snapcam/RecognizerCallback.java May 13 23:11:49 I have something similar to that May 13 23:12:04 passing the MainActivity to the RecognitionService May 13 23:12:15 I get the following error message: "This Android SDK requires Android Developer Toolkit version 22.6.2 or above. Current version is 22.3.0.v201310242005-887826. Please update ADT to the latest version May 13 23:12:17 *RecognitionListener May 13 23:12:32 but checking for updates says I already got the latest installed May 13 23:12:40 any1 knows how to fix plz? :S May 13 23:16:31 where's it say that ? May 13 23:17:02 when I open Eclipse after restart May 13 23:17:41 Trekka12: I had the same recently (had to compile some legacy code that hasn't been converted to gradle yet). I didn't go to "Check for updates" but "install new software", had to change to ADT URL to use https instead of http, then I was able to install it. May 13 23:17:43 after I updated ADT and installed Google Repository as well as Google Play Services via SDK Manager or whatever its called May 13 23:17:52 For some reason it didn;t show up as an update. May 13 23:18:03 hm ok May 13 23:18:11 hang on a sec then, where u find install new softare? May 13 23:18:13 software May 13 23:18:37 Window -> Install new Software... May 13 23:18:42 Where Check for Updates is as well. May 13 23:18:43 ah ok May 13 23:18:54 sry still bit newbie :P May 13 23:19:24 Starting up my eclipse now again May 13 23:19:50 *shudders* @ eclipse May 13 23:19:55 hehe May 13 23:20:32 bankai_au: Yeah, afterwards I thought it would have been easier to just convert it to a Gradle project instead of firing up Eclipse again... May 13 23:20:43 kakazza, I dont have "install new software" under Window May 13 23:20:56 Which OS? May 13 23:20:57 I dont even know what Gradle is May 13 23:21:03 Win 7 Ultimate 64-bit May 13 23:21:06 I don't really remember where it is in Windows. May 13 23:21:28 ahh found ikt May 13 23:21:29 it May 13 23:21:34 was under "Help" May 13 23:21:41 then what? May 13 23:21:45 Android Studio is the new IDE (developer preview, but many use it in production already, as do I). Gradle is the new Build System. May 13 23:22:06 ok I got Android Studio May 13 23:22:17 I doubt it if you're in Eclipse. May 13 23:22:29 Eclipse is Android Studio but modified for Android May 13 23:22:39 I installed via Google Developers website the Bundle May 13 23:22:53 Its called Android Development Environment May 13 23:23:08 Android Studio is a completely different IDE, based on IntelliJ IDEA. May 13 23:23:15 oh ok May 13 23:23:19 no idea then May 13 23:23:30 but what should I do once entered "install new software"? May 13 23:23:41 heh, I don't have Windows nor Eclipse on this PC, someone else might be better to help you. May 13 23:23:49 There should a drop down menu to choose from May 13 23:24:04 From where you want to install new Software. Default is "From All Sites" or similar. May 13 23:24:16 Choose "ADT - Android Developer Tools" May 13 23:24:28 I have a field called "Work with:" where I can choose a browse-box called "Add" where i then can enter name and location with http: May 13 23:25:28 "There is no site selected" is in my sorta dropdown box May 13 23:25:39 as my only choice May 13 23:26:25 Sorry, I really haven't used it in a long time and I've never used this bundle. :\ May 13 23:26:45 now ive entered something called "Available Software sites" and got a bit more options May 13 23:26:59 got one called Android Developer Tools update site May 13 23:27:08 is that the one u were refering to? May 13 23:27:41 Yes! May 13 23:27:53 so choose only that one then? May 13 23:28:29 dl-ssl.google.com/android/eclipse/ May 13 23:28:34 is the location May 13 23:28:38 of it May 13 23:28:45 Yeah May 13 23:29:07 Choose it and install new software from there. It should list v22.6.x of whatever May 13 23:31:00 install everything from there? May 13 23:31:15 NDK Plugins and Developer Tools` May 13 23:31:15 ? May 13 23:31:29 Thanks Trekka12, it works! :D May 13 23:31:45 Nice man! Congratulations :) May 13 23:32:18 Forget the NDK for now, just install everything of Dev Tools May 13 23:32:48 ops, was a bit hasty, took everything :/ May 13 23:33:16 Shouldn't matter. May 13 23:33:18 altho i think it said "22.6.3 already installed" so update will be performed instead or something like that.. before starting the installation May 13 23:33:56 Ok, hmm. Well, after it's finished, restart Eclipse. If it's still not satisfied, make sure you installed the latest platform tools via the SDK Manager. May 13 23:34:10 ok May 13 23:34:24 it restarts ADT now May 13 23:34:53 hmmmm May 13 23:34:56 ok thats wierd May 13 23:35:18 ah May 13 23:35:20 now it works May 13 23:35:24 it seems like May 13 23:35:35 Many thanks! nothing is red anymore! Thank you Kakazza May 13 23:35:42 *phew* May 13 23:36:11 You're welcome. I'd still recommend you check out Android Studio if you've got the time. May 13 23:36:32 You can of course ask around what others use. May 13 23:37:24 ok May 13 23:37:30 ty May 13 23:38:44 btw one more thing - I did all this to get availability to use Google Maps inside my app, and at http://developer.android.com/google/play-services/setup.html below Install the Google Play services SDK i dont quite understand what they mean on dot number #3? May 13 23:39:10 "Install a compatible version of the Google APIs platform." u know what they mean by this? May 13 23:40:00 does box2d May 13 23:40:04 work with android May 13 23:43:07 https://www.google.com/search?q=does+box2d+work+with+android May 13 23:49:06 JesusFreke: not a fan of lmgtfy ? May 13 23:49:25 depends on how snarky I'm feeling May 13 23:49:29 ;) May 13 23:52:32 what's everyone working on? May 13 23:55:20 I'm just a student still, working on figuring out how to make all this jibberish into a program May 13 23:56:33 what jibberish? May 13 23:57:08 Just code in general :) I'm really still a beginner May 13 23:57:20 If in doubt, a AbstractSingletonProxyFactoryBean will solve everything. May 13 23:57:21 it has all these weird characters like { and ; and stuff. :) May 13 23:57:27 (of course I'm just kidding) May 13 23:57:53 JesusFreke: At least with Perl my code can look like emoticons! May 13 23:58:10 I'm finishing my first year CS so we're still working on super basic stuff. But I'm trying to get into the whole community already, jsut to see if I can pick something up from more experienced guys May 13 23:58:11 Aaah lexical analysis May 13 23:58:19 kakazza: or like assembly May 13 23:58:25 heh May 13 23:58:51 (https://github.com/JesusFreke/teensyhand/blob/master/main.S.pl#L225) May 13 23:59:05 ಠ_ಠ May 13 23:59:10 only thing you pick up from irc programmers is boasting and bragging May 13 23:59:28 What the fuck am I reading May 13 23:59:37 :D May 13 23:59:45 firmware for my keyboard :p May 13 23:59:52 viovu: I'll give them a chance first May 13 23:59:58 hah, but why? May 14 00:00:21 because the firmware (and the cpu itself..) it had didn't meet my needs May 14 00:00:35 so I swapped the microcontroller and wrote my own firmware May 14 00:00:46 neat May 14 00:01:20 The assemblers for AVR assemblers are fairly poor though. There was no good macro language. May 14 00:01:45 so.. I essentially rolled my own "macro language", using perl as a layer on top of the AVR assembly May 14 00:02:17 the force is strong with this one. May 14 00:02:31 motivation force May 14 00:02:38 I chose perl specifically because of it's.. flexibility of syntax :) May 14 00:03:08 It was a fun project May 14 00:03:09 I choose basic because it's well....basic May 14 00:03:23 I choose you, Pikachu! May 14 00:03:37 I choose java....because well, I like coffee May 14 00:03:38 I hear Pikachu's syntax is flexible too May 14 00:03:43 May 14 00:04:10 I choose YOU... Pika-.... Pika-Chuuuuuuu May 14 00:06:34 hey! I just found a food math, religion problem May 14 00:08:01 there are 100 Jewish children, including baby Jesus, Hitler kills all the children, how many children are still alive? May 14 00:08:33 I suspect this isn't quite the channel :) May 14 00:08:34 doesn't sound like an appropriate joke/question May 14 00:10:27 well the answer is 0. three days later the answer is 1, because he rose from the dead. np incomplete May 14 00:12:13 ok ok, time for serious stuff, how would a person persist a object of objects of objects in android? May 14 00:12:54 You what now May 14 00:13:10 using a serializer of serializer of serializer of object May 14 00:13:53 You're making me sick, both of you! May 14 00:15:02 ok so someone phones while busy playing your game, will serialization to a file delay the phone call or will it just destroy the app? May 14 00:16:29 if it took a few seconds to write to a file May 14 00:17:23 insert a Thread.sleep(2000) and see :) May 14 00:17:34 I'm not actually sure May 14 00:18:08 I'm not sure if the system waits for, e.g. your activities' onPause to finish before starting the newly starting activity May 14 00:18:24 I'm making a text adventure, and I need to basically save the entire object hierarchy of rooms and items May 14 00:18:29 but you really shouldn't be doing disk IO on the main thread anyway May 14 00:20:04 so how do I persist object hierarchy? and if a service, how do I pass the object to a service? aidl? May 14 00:20:31 You might consider onSaveInstanceState(), but I don't know what the size constraints for that are, if any May 14 00:20:47 You don't need aidl to interface with a local service May 14 00:21:23 but local services run as long as the main thread runs, May 14 00:21:41 that's.. not quite correct May 14 00:22:00 local services are run until all clients have unbound and/or they are stopped via stopSelf() or stop() May 14 00:22:07 depending on how they were started to begin with May 14 00:22:40 wow the legendary JesusFreke, /me waves May 14 00:22:43 so are you saying a local service is the way? May 14 00:22:55 it is *a* way. I'm not sure if it is the best way May 14 00:23:10 but yes, onStartCommand or onBind will get called on the main thread, and then you can use something like an asynctask to do the disk io off of the main thread May 14 00:23:31 it doesn't feel like a great way to go about it though May 14 00:23:53 onSaveInstanceState is probably the way to go, unless you have a ton of data May 14 00:24:25 thanks though, Yip I've been looking for an efficient way but most of the open source projects don't care for persistence May 14 00:26:01 i would only use onSiS for whats necessary for the activity to recreate itself, with links to what it needs to do so May 14 00:26:13 but most data shouldn't be in there May 14 00:27:23 always gets so boring in android land before I/O May 14 00:27:44 You have to store the data somewhere though. And you don't want to do it on the main thread.. so you have to do it asynchronously.. which means you need a service to protect it.. May 14 00:28:03 JesusFreke did you do parkour ? May 14 00:28:18 nope May 14 00:28:32 ah, somebody else May 14 00:28:41 unicycle, not parkour :) May 14 00:29:06 I'm somewhat interested in parkour, but have never partaken May 14 00:29:33 thanks for the help guys May 14 00:29:40 parkour on unicycle :) May 14 00:29:49 Hi, I wanna build a custom image and want to remove the bottom bar. I did it once but forgot how I did it. Can someone tell me where to find this option again? May 14 00:30:05 well, I did do trials type stuff :) May 14 00:30:18 5' drops, jumping up on stuff, riding down stairs May 14 00:31:17 i did drops like that on my mountain bike ... May 14 00:31:21 *by mistake* May 14 00:31:25 haha May 14 00:31:54 shroomz May 14 00:31:58 one trail i would do; i'd take all my body armor in my pack and put it on at the crazy part May 14 00:32:15 the part my ironman budy had to get helicopter evac May 14 00:32:20 for head injury :| May 14 00:32:23 I rode with a group called "the uniphychos" in ft. worth :p May 14 00:32:31 oh wow May 14 00:32:37 unipsychos* May 14 00:33:18 i remember hitting a few people because they would not get out of the way May 14 00:33:23 the assumed i was able to stop May 14 00:33:29 when i was just sliding actually :) May 14 00:34:07 that bike frame cracked in half later on and i started trail running, much safer May 14 00:34:44 much cheaper too :) May 14 00:34:56 haha, I bet May 14 00:35:23 you guys might find this interesting http://www.youtube.com/watch?v=xhI3CUDEWfU :p May 14 00:35:34 I love riding off-road, although I'm too out of shape these days and going up hills kills me May 14 00:35:50 oh man, downhill was the best May 14 00:37:49 almost wound up like that :| good thing i switched to running May 14 00:42:57 I wish android used python as a programming language. ..why java? May 14 00:43:19 i wish they used something else, or used an official implementation of java May 14 00:43:35 i wish people would stop having this discussion May 14 00:43:44 but python - i dunno, for large programs i'm not a fan of dynamically typed stuff May 14 00:45:01 anyone know what sdk build-tools 19.1 was about ? May 14 00:45:02 hey guys, I'm using Otto to communicate between my main activity and an IntentService, apparently that makes the method that I run under the service run for some reason on the main thread. Any way around this other than simply creating a new thread? May 14 00:45:35 i love these pictures i keep seeing of Glass wearers May 14 00:45:37 http://phandroid.com/2014/05/13/google-glass-explorer-program-open-beta/ May 14 00:45:50 its like, yeah when you are that hot, you can wear anything and not look stupid May 14 00:46:15 now if they put mikedg in there ... May 14 00:46:18 :) May 14 00:47:27 I look hot May 14 00:47:52 Techdeck: Otto always delivers on main thread May 14 00:48:01 :( May 14 00:48:19 so basically it's useless in communicating between activities and IntentService? May 14 00:48:42 I guess the other way around it would be ok May 14 00:49:47 IH looks like that can be cinfigured May 14 00:49:56 I wonder if that's new May 14 00:50:02 what do you mean? how? May 14 00:50:19 Spawning new threads off an intent service is not a good idea though May 14 00:50:39 Look at thread enforcement http://square.github.io/otto/ May 14 00:50:50 well if I send a message through Otto, it's not really spawning the new thread out of the service, but through the main looper May 14 00:51:06 somebody needs to invent an android device mount that just keeps rotating the device - for testing May 14 00:51:29 Good arduino to the rescue! May 14 00:51:29 oh nice, let me try this May 14 00:51:41 gradle target :rotateTest May 14 00:51:49 <|0xD34D|> g00s: we were going to make one using a continuous rotating servo May 14 00:51:57 \o/ May 14 00:52:09 you have online testing solutions for such things such as perfectomobile and deviceanywhere May 14 00:52:10 I'm done for the night May 14 00:52:15 gnight mikedg May 14 00:52:17 also I guess you could probably emulate it with robotium May 14 00:53:46 :( May 14 00:53:53 mikedg, I just got: va.lang.IllegalStateException: Event bus [Bus "default"] accessed from non-main thread null May 14 00:54:06 I used: mainThreadBus = new Bus(ThreadEnforcer.MAIN); May 14 00:54:10 oh crap, my bad May 14 00:54:16 lemme change it to 'ANY' May 14 00:55:15 this worked, but basically it still runs on the main thread :( I got: android.os.NetworkOnMainThreadException May 14 00:57:23 * Techdeck cries May 14 00:58:17 I thought I finally found a way to communicate between an activity and intentservice seamlessly :( May 14 00:58:28 I guess I could use intents but this sucks May 14 00:59:49 otto should work May 14 01:00:12 * g00s looks May 14 01:00:13 it does work, but it runs it on my IntentService on the main thread rather than on the service's thread May 14 01:00:56 Otto is a decoupled method call. It does nothing with threads. May 14 01:01:36 so how come I'm getting 'android.os.NetworkOnMainThreadException' when I call my service through Otto? May 14 01:01:50 a service still runs on the main thread May 14 01:01:55 even IntentService? May 14 01:02:01 because Otto is confined to the main thread and your service is running on the main thread May 14 01:02:02 I thought it runs on its own thread May 14 01:02:04 bankai_au is crazy, ignore May 14 01:02:09 :) May 14 01:02:29 g00s: can't argue with that, too much evidence to support it May 14 01:02:35 XD May 14 01:02:36 is there a type of service that does not run on the main thread? May 14 01:02:51 bankai_au did you see that dog training thing, looked like simon says May 14 01:02:58 or, is there a way to start IntentService on its own thread? May 14 01:03:00 yeah i saw it :) May 14 01:03:22 bankai_au get them started on that, and then load Scratch 2.0 on it ... May 14 01:03:49 they'll be programming soon enough May 14 01:05:21 JakeWharton, bankai_au, g00s, mikedg, any recommendation on what should I do? May 14 01:05:34 start a new thread for network calls May 14 01:05:36 don't do network operations on the main thread :) May 14 01:05:54 he's on the intentService handler thread May 14 01:06:13 and wants to chuck a message back to the activity ;) May 14 01:06:15 but I thought that's what IntentService is for, since now I know it isn't, maybe I shouldn't use one at all. :( May 14 01:06:23 i don't have any context May 14 01:06:35 just telling you that Otto does nothing with moving threads May 14 01:07:11 anyone have a clue about this question regarding multi-fragment screens? http://stackoverflow.com/q/23635952/1747491 May 14 01:07:48 oh sorry, let me explain: basically I have a service that is supposed to handle all network calls and access my server. When it's done processing data from the server, it needs to send a few objects back to my main activity. What's the best practice for this? May 14 01:07:51 mattblang_: what about it? there's heaps of answers May 14 01:08:53 bankai_au well, every example I find uses separate activites, haven't found anything good for a single activity arcitecture May 14 01:08:55 Techdeck depending on the type of data, you may want to persist it and just tell the activity something changed May 14 01:09:04 like ContentObserver or something May 14 01:09:18 bankai_au I feel like I understand fragments pretty well now, but I'm just unsure what the best way to proceed is to be honest May 14 01:09:52 g00s, I call the server, retreive some JSON data that contains URLs, then I download those URLs, save them on the filesystem and send it back to the main activity to display May 14 01:10:09 + save them in the database using greendao May 14 01:10:17 ok, sounds good May 14 01:10:28 so I shouldn't use a service for this? May 14 01:10:55 your solution sounds OK so far, seems like you are just stuck on how to notify the activity May 14 01:11:27 json programming pattern is best done with a service and contentprovider using broadcasts May 14 01:11:38 actually notifying the activity is not a problem, the problem is calling the service from the activity. I thought when I'll call it it will run on a different thread, but it actually runs on the main thread and gives me a network exception May 14 01:11:38 if its persisted in the service, just use the event bus to tickle the activity to pick up its data May 14 01:11:46 sending data back to the activity will work fine with Otto May 14 01:12:25 mattblang_: so you only want master/detail in landscape ? May 14 01:12:42 broadcast will tell the activity when to retrieve data from the contentprovider May 14 01:13:23 bankai_au well yeah, master / detail, or any multi-fragment configuration. I'm just not sure how to do that with a single activity architecture. well, I have some ideas, but I feel that maybe they aren't the best way to go about it May 14 01:14:02 viovu, but on the service itself, I can't access the network unless I run it in a new thread, I thought IntentService runs on a different thread, but when sending a message to it with Otto to start the download process, I get an exception May 14 01:14:14 mattblang_: use two layouts, check to see if you have two containers and add/replace/configure fragments accordingly May 14 01:14:50 I could obviously simply start a new thread for the network fetching and then use otto, and it will work fine, but that kinda beats the purpose of even using a service, doesn't it May 14 01:14:51 ? May 14 01:14:52 bankai_au so then I do need to nest fragments within fragments? May 14 01:14:59 no May 14 01:15:06 I'll send u a name of good json pattern sourcode on github May 14 01:15:21 thanks viovu May 14 01:15:21 bankai_au if I have a second layout, since I am using one activity, I will have the extra container that I don't use when I am not on master / detail May 14 01:15:44 that's why you have two layouts, one for each orientation May 14 01:16:01 bankai_au even still, not every screen is master / detail May 14 01:16:35 bankai_au so if I go to landscape, then go to a non master / detail screen, I will have to hide the extra container or something May 14 01:17:12 btw, off-subject question: is there another way of displaying animated gifs other than using a webview? May 14 01:17:46 "rest_service_tutorial-master.zip" May 14 01:18:14 viovu https://github.com/posco2k8/rest_service_tutorial - this one? May 14 01:18:20 mattblang_: ahh i see, so no matter what you do there's going to be some hackery May 14 01:19:39 probably May 14 01:19:53 viovu, in his example, it looks like he actually using Intents to talk to his service, which is fine, but I was wondering if there's a way Otto could do it May 14 01:20:15 he uses an intentservice aswell but not a contentprovider May 14 01:20:46 I guess I just won't use Otto to call my IntentService - I will use Otto to call my main activity May 14 01:20:47 bankai_au yeah! so am I going about it the wrong way? should I not try to do a single activity architecture? I have heard a lot of people say they did a single activity architecture, and man fragments load in so much faster than launching new activities May 14 01:21:02 you have to send intents to an intent service May 14 01:21:13 hence the name May 14 01:21:21 JakeWharton, I thought I could 'cheat' it by using Otto - guess not though May 14 01:21:32 no, you are bypassing the queue and threading model May 14 01:21:37 exactly why you are seeing problems May 14 01:21:48 implement your own queue + thread if you want to use Otto May 14 01:22:12 nah, I'll just use Intents when calling the service, and use Otto to return the answer to the main thread May 14 01:22:20 thanks for clarifying the issue though May 14 01:22:32 err, to the main activity* May 14 01:23:14 mattblang_: lots of diffeerent ways to do it... pick the easiest and the one with the least 'hacky' feel ;) May 14 01:25:13 another weird thing I'm seeing now is that an IntentService is supposed to stop itself after it finished processing the Intent you sent it with startService - but mine keeps running May 14 01:26:25 book for restful design pattern "programming android 2nd edition" chapter 13 May 14 01:32:47 bankai_au okay... it is making me wonder if I should be doing this, lol. May 14 01:33:49 bankai_au but dang, i've seen so many people say they are using a single activity approach, so I dunno May 14 01:34:19 I want to make a app that is a dedicated frontloader music player for my car, I want the cheap tablet built in and it should startup with my app, is that a big undertaking? May 14 01:35:54 viovu: what do you feed it ? CD's ? May 14 01:36:25 mp3s May 14 01:37:09 مرحبا Onixs May 14 01:37:10 oh, when you said frontloader I thought you have to insert something May 14 01:37:32 just want a cool visualization, eq and a easy swiping ui while driving May 14 01:37:44 good luck May 14 01:37:56 just doing the EQ will make you lose your hair May 14 01:37:59 might have been incorrect wording May 14 01:38:10 really? May 14 01:38:24 looked like it was built in May 14 01:38:25 I think so May 14 01:38:54 I thought the Id3 tags might be difficult May 14 01:38:55 well you can use MediaPlayer widget to play the music May 14 01:39:07 but I don't know any built in EQ May 14 01:39:34 mediaplayer has built-in eq May 14 01:40:07 it does ? May 14 01:40:12 where May 14 01:40:37 look it up May 14 01:42:32 مرحبا shekibobo May 14 01:42:37 android.media.audiofx May 14 01:44:33 thanks, but I only understand that thanks to google :) May 14 01:44:39 cool, didn't know about it May 14 01:45:02 I'll probably use it soon May 14 01:45:30 http://developer.android.com/reference/android/media/audiofx/Equalizer.html May 14 01:46:15 مرحبا darkbasic May 14 01:46:35 مرحبا frankdoyle May 14 01:58:44 thereafter even a dtmf tone generator, that has a b c d initiative and the control beeps May 14 01:59:33 what I was wondering thee other day is... May 14 02:01:17 since u can send raw usb commands over android, is it possible to emulate some use device using ur phone, but that would require androids own usb functioning to not be alerted May 14 02:02:02 like making your pc think that a flashdisk was actually inserted instead of android, just an example May 14 02:03:03 probably not without modifying the OS May 14 02:06:18 like maybe making the pc think a use mouse was plugged in May 14 02:06:33 or keyboard for bruteforce May 14 02:06:41 bios bruteforce May 14 02:07:10 yet I doubt android kicks in b4 the pc os boots May 14 02:07:19 it just might work May 14 02:07:45 not that anyone uses bios passwords anymore May 14 02:08:33 what happens if you connect 2 android phones together by usb? May 14 02:09:57 EXPLOSION! May 14 02:10:14 Aaah, terrorism May 14 02:10:30 we enter a plane and connect our phones May 14 02:10:43 D: May 14 02:12:05 I really want to build a p2p chatroom protocol for mobile May 14 02:12:15 but it's soooo difficult May 14 02:12:47 and p2p multi user chat has been patented, using dht May 14 02:12:50 Aaah May 14 02:13:08 does anyone know the best way to pass arguments to a fragment inflated via xml? or do I have to instantiate them programmatically via the activity's onCreate(), and then pass in arguments that way? May 14 02:13:47 barbs try calling setArguments before setContentView maybe May 14 02:13:49 fragmentmanager May 14 02:14:19 oh that won't work duh May 14 02:14:34 g00s: lol, was about to say, won't be able to get a reference to the fragment before setContentView :) May 14 02:14:36 barbs not sure this really makes sense :) May 14 02:14:50 its essentially static thing if its in xml May 14 02:15:27 it's called a headless fragment if you haven't setcontentview May 14 02:15:41 used sometimes for persistence May 14 02:15:46 I can use the fragmentmanager to get a reference to it, but only after setContentView is called, at which point the fragment's oncreate will be called, and calling getArguments() from within the Fragment's onCreate(0 returns null May 14 02:15:49 of asynctasks May 14 02:16:03 viovu: I'm not sure I understand what you mean here May 14 02:16:24 look it up, headless fragments May 14 02:17:19 not sure what worker fragment has to do with it … barbs has a fragment in the xml May 14 02:17:33 so its part of the layout May 14 02:17:37 hmmm...wiould this allow me to inflate the fragment via xml? not sure it does... May 14 02:17:57 barbs then instead of a put a frameLayout and add it yourself May 14 02:18:06 the reason I have the fragment as part of the layout is because I'm trying to specify different xml files for different configurations (portrait and landsscape) May 14 02:18:33 i.e. different fragments for different configurations May 14 02:19:21 so instead, put where was May 14 02:19:37 book "creating dynamic ui with android fragments" May 14 02:19:44 it's a good new book May 14 02:19:48 as in res/values-landscape values.xml put "has fragment=true" May 14 02:20:05 and consult that boolean to know whether you should inflate it into the framelayout May 14 02:20:26 * g00s read that book, it was OK. too basic May 14 02:20:36 definitely showed how ugly shit gets though May 14 02:21:37 g00s: I think I see what you mean...could work I guess, but I wonder if there's a cleaner solution May 14 02:21:38 the one i should read next is "Pro Android UI" becuase i'm bad at that :) May 14 02:22:07 barbs thats the official way May 14 02:22:10 I just have trouble with persistance on android May 14 02:22:14 see the I.O talk multiversion UI in 2013 i think May 14 02:22:18 especially with games May 14 02:22:32 g00s: If I use the LayoutInflater to inflate a layout, does its onCreate() get called straight away? or is it only once I've attached it to a parent layout? May 14 02:22:43 barbs https://developers.google.com/events/io/2012/sessions/gooio2012/106/ May 14 02:22:45 thanks, I'll take a look at that May 14 02:22:58 just got an app idea...prostitution pos app... May 14 02:23:40 with a map marker for finding prostitutes and their rating May 14 02:23:57 O.o May 14 02:23:57 barbs: are you sure you need to set the args at all? can you not just call a method on it after you can get a reference? May 14 02:25:25 frankdoyle: I can, but get the feeling it's not recommended...the data I'm passing to it is needed to populate views within the layout May 14 02:25:52 barbs why can't the fragment pull it from somewhere in onCreate or something ? May 14 02:26:26 barbs: as long as you're saving your state properly in onsaveinstancestate, I don't see why it would be a problem May 14 02:26:52 g00s: it's not static data, it's a screen that shows data for a particular object...so I'd need to pass at least the id for that object May 14 02:27:01 lookup xml fragment send data on Google May 14 02:27:29 frankdoyle: you're right, it probably wouldn't be a problem re: lifecycle May 14 02:27:40 I guess I could just populate the view once that method's called... May 14 02:27:55 just seems a bit messy and unofficial I guess May 14 02:29:06 yeah i dont see why not in the activity just get a reference to the fragment and then say frag.setId(…) May 14 02:29:06 I don't really think its messy. It's a pretty standard way to interact with fragments May 14 02:29:26 does anyone has any idea why my app crashes when I load a native-activity shared object compiled by a standalone toolchain generated by the command ./make-standalone-toolchain.sh --ndk-dir=/cygdrive/e/Tools/ndk --system=windows-x86_64 --platform=android-14 --install-dir=/tmp/arm-toolchain ? May 14 02:29:44 I am using the exes inside E:\Tools\ndk\arm-toolchain\bin to compile the code May 14 02:29:55 callbacks May 14 02:30:47 frankdoyle: the android docs seem to recommend sending data to the fragment in the form of args, presumably because these are retained when the fragment's destroyed, but what you're saying makes sense as well, particularly if I retain the data in the instanceState Bundle May 14 02:31:00 thanks for your help guys May 14 02:31:01 btw, I am compiling the native-activity example May 14 02:31:43 Danguafer: got stacktrace? May 14 02:32:00 barbs: this might ease some of your concerns: http://developer.android.com/training/basics/fragments/communicating.html May 14 02:32:47 the "deliver a message to a fragment" section has the activity just calling an arbitrary method on the framgent May 14 02:32:51 to send information May 14 02:33:05 unless it doesn't exist yet, in which case it uses args May 14 02:33:18 but since yours would be inflated via xml, it should always exist May 14 02:33:26 yeah I can see that... May 14 02:33:32 thanks May 14 02:34:36 There are a lot of ways to do a lot of things, even the docs themselves sometimes can't give a straight answer on best practices May 14 02:36:02 barbs http://pastebin.com/eAWZfm1s that's all I got May 14 02:36:28 frankdoyle: yeah you're right. I'm always concerned about dealing with fragments...had issues on a past project where arguments were passed into the fragments' constructors, which seemed to work fine until fields were coming up null May 14 02:36:45 and because the app was locked into portrait mode, it wasn't a common problem May 14 02:37:21 once I discovered it, I had to go through and change all the fragments so that the fields were passed in via arguments instead of via the constructor May 14 02:37:44 anyway, that's why I'm so edgy about this stuff...bloody fragment lifecycles :). Thanks again. May 14 02:37:50 yeah. it gets really bad with fragmentviewpagers, since you can't get at their state May 14 02:39:07 too much state May 14 02:39:17 Danguafer: bleh, that's pretty vague...are you sure your .so library is in the right place and named correctly? Also, do a refresh of your jni libs directory in eclipse...sometimes when you generate it, it won't always pick it up straight away May 14 02:39:37 yes, it's in the right place and it's named correctly May 14 02:39:52 and it was being loaded properly when I compiled with a prebuilt toolchain May 14 02:40:18 hmmm, sorry, I got nothing :( May 14 02:40:32 I know :< that sux, let me try something else May 14 02:45:26 barbs does the api level need to match in the Android APP and in the shared object code? May 14 02:45:39 :z May 14 02:46:25 Danguafer: I'm not sure. to be honest, I've never compiled anything using that standalone toolchain, only by using ndk-build and Android.mk... May 14 02:47:14 Hi, Droiders! May 14 02:47:15 I guess I like having headaches May 14 02:54:55 hey guys, is there any difference with using third party push message service and starting from scratch? May 14 02:55:02 Hi! I'm trying to use dexguard (improved proguard), on a library .jar, where the public API is defined by a set of interfaces, so I have a -keep public interface my.package.* configuration, but it seems that dexguard obfuscate the classes that implement those interfaces. Did I miss an option to obfuscate only the method that don't come from the interfaces? May 14 02:55:10 Third party like Parse or Push Notifications.org May 14 02:55:28 I am just starting to learn push messaging May 14 02:55:52 well, for one thing using a third party takes a lot less time to get up and running May 14 02:57:11 How about the scalability? I mean what are the limitations than the other ones? May 14 02:59:28 Ha right, -keep public class * implements mypackage.MyInterface May 14 02:59:42 http://pastebin.com/dgjHhdeD could someone tell me why the images on my gridview move out of position or disappear when i scroll? the adapter is empty initially **** ENDING LOGGING AT Wed May 14 02:59:59 2014