**** BEGIN LOGGING AT Mon Aug 25 02:59:58 2014 Aug 25 06:24:37 wow, Coherence was a mind trip Aug 25 06:47:37 g00s: you need to get real-life friends Aug 25 06:49:42 Inspired no doubt by the vastly overrated Inception - everyone felt honour bound to say how clever it was and easy to figure out if you concentrated enough. In reality a jumble of junk... :) Aug 25 06:50:21 You were just not smart enough to understand it. Aug 25 06:51:22 Sure. Aug 25 06:52:43 That's what most pretentious viewers of Inception liked to think ;) I did understand it and that's why I still maintain it was a jumbled joke of a movie joy riding high on its own pseudo-cleverness. Aug 25 06:54:35 I love this movie. Even though I agree it's not particularily clever or "hard to understand". Aug 25 06:57:38 i hope if te commet passes over, i'm not stuck in a reality with sblack2 :) Aug 25 06:59:30 Am I visible? Aug 25 07:21:41 Hi all, I always use an image for my MenuItems. Is it possible to show text instead of an image like "Start" ? Aug 25 07:27:00 you can always create your own drawable dynamically Aug 25 07:32:51 ravilov: ok, so it isn't possible to show text , like the Title or something else? Aug 25 07:33:24 I don't really know what you mean Aug 25 07:33:31 a menu item can have an icon and a text label Aug 25 07:38:23 inception is a great movie Aug 25 07:38:33 rgr hates on it because his mind cannot comprehend Aug 25 07:38:34 :p Aug 25 07:41:38 ravilov: the text label, is this the label which is visible when long click on the item? Aug 25 07:42:00 hating on the movie and its fans just because they (over)glorify it is no less pretentious Aug 25 07:42:09 FrancescoV, no Aug 25 07:42:21 FrancescoV, I'm sure this is all documented on d.android.com Aug 25 07:45:32 ravilov: ok tnx, will check it out Aug 25 08:16:31 strange that I can't find results about removing empty tooltips from menuitems Aug 25 08:16:39 for when longclick happens on them Aug 25 08:17:56 don't have empty tooltips Aug 25 08:18:45 I dont want anything to appear Aug 25 08:19:18 Gmail has it, nothing happens when you longclick on any of the menuitems Aug 25 08:19:32 no it happens on Search and Compose, but nothing else Aug 25 08:21:52 set it to null? Aug 25 08:29:46 nope Aug 25 08:29:50 still shows empty box Aug 25 08:29:56 Im going to override the onclicklistener on that item Aug 25 08:52:39 I'm trying to create a dailer (don't care about incoming calls though), what should I need to implement - PROCESS_OUTGOING_CALLS or CALL_PHONE, and how should I call? Aug 25 08:54:52 Hello, does anyone knows why the View setAlpha accept float but the Drawable setAlpha accept integer from 0-255 ? Aug 25 08:56:34 MoshDev: why? Aug 25 08:57:05 @canvs2321- thats what am asking, I don't know why Aug 25 08:57:06 one is float one is int, are you asking why both aren't the same primitive? Aug 25 08:57:15 tes Aug 25 08:57:16 yes Aug 25 08:57:47 Is this any solid reason why there is this difference in argument between the Classes over the same property? Aug 25 08:57:51 Sicp: still want to know how to get rid of the tooltips? Aug 25 08:58:01 i'm sure created at different times, maybe one was easier/faster than other, but not sure Aug 25 08:58:01 yea man Aug 25 08:58:10 this didnt work http://stackoverflow.com/questions/8614293/android-get-view-reference-to-a-menu-item Aug 25 08:58:25 actionview makes it transform into whatever you feed it Aug 25 08:58:35 just for the sake of getting it back as a view, you lose it as a menuitem Aug 25 08:58:41 moshdev: but do they act the same? or go through same process to get the alpha Aug 25 08:58:58 Sicp: in your menu set android:title="@null" and android:titleCondensed to your actual title Aug 25 08:59:01 moshdev: with the setalpha on view it'll alpha the whole view, can you do that with a drawable? Aug 25 08:59:17 well I dont have a title, its a button Aug 25 08:59:26 @canvs2321- the effect of the class is the same Aug 25 08:59:33 Sicp: where do you think it gets the tooltip from? Aug 25 08:59:38 title Aug 25 09:00:01 Sicp: ah, you mean it displays an empty tooltip? Aug 25 09:00:05 yea Aug 25 09:00:22 canvs2321-: the property is the same, and for consistency they should use same primitives Aug 25 09:00:29 Sicp: set a custom android:actionView Aug 25 09:00:36 Sicp: see https://gist.github.com/slightfoot/d7fb255d6f4d3d43def8 Aug 25 09:01:34 Sicp: you want to basically just create a View that extends ImageButton that has the setItemData(MenuItem itemData) method and call it in your onPrepareOptionsMenu Aug 25 09:02:14 Sicp: and the performClick method from that example Aug 25 09:03:05 MostDev: what i'm saying is if you setAlpha on a view, how can you mimmick it with a drawable? Aug 25 09:04:41 Sicp: want an example? Aug 25 09:05:07 canvs2321-: I didn't understand you Aug 25 09:07:11 canvs2321-: setAlpha on Drawable was around before setAlpha on View.. Drawable.setAlpha(0-255) was more efficient method of setting the alpha as the resulting alpha is that byte value.. so it was more direct, and float's were expensive. Now with hardware renderering float's are better as this value directly correlates to the the gpu feature. Aug 25 09:07:32 setAlpha on a view like a textview alphas the whole view background,text etc...using a drawable you can't mimmick that whole effect. if that makes sense, anywho looks like pre api 11 setAlpha didn't exist, and to use alpha it was decimal, then api11>it added setAlpha and used float Aug 25 09:07:44 or dat^ Aug 25 09:10:17 the part of float's were expensive clears that Aug 25 09:10:18 thanks Aug 25 09:12:00 MoshDev: sorry my reply was for you not canvs2321- Aug 25 09:12:21 if Sicp returns can someone give him this link https://gist.github.com/slightfoot/ce90a224d37282fa6824 Aug 25 09:12:23 im off Aug 25 09:41:39 i upgraded my OS on my sdk... now i lost all the contacts Aug 25 09:41:43 is there any way to retrieve them?? Aug 25 09:47:38 sorry back Aug 25 09:51:18 Sicp, if Sicp returns can someone give him this link https://gist.github.com/slightfoot/ce90a224d37282fa6824 Aug 25 09:51:35 ty Aug 25 09:55:28 anyone can help? Aug 25 09:55:33 upgraded OS and contacts did not get saved? Aug 25 09:55:44 can i retrieve them on windows (i'm working on windows) somewhere? Aug 25 10:44:56 Hi there ! Aug 25 10:45:07 I have a question Aug 25 10:46:40 Is it possible, from an app, to automatically launch the Play Store and install an app for which we know the package name ? Aug 25 10:48:06 ypcress, not for autoinstall, sure fore showing the app page Aug 25 10:48:24 It is possible to open Play to the specified app. It is not (easily) possible to force installing it without user-interaction. Aug 25 10:48:28 @Zharf this is a shame Aug 25 10:48:43 It is not. Aug 25 10:48:59 If any app could install any other app, where would we be? Aug 25 10:50:00 well you would have to authorize that kind of permission before as you already do for camera or microphone Aug 25 10:50:44 because to my knowledge, storing the apk and diffusing it yourself is not very complidant with Google rules. Aug 25 10:50:54 Yeah, talk about permissions... Aug 25 10:51:40 So let's imagine you want to propose your own store (Samsung-apps like to name one) what would be the process ? Aug 25 10:51:52 Without a major rework, I don't see how it could not cause major trouble to grant download/installation of apps from other apps. Aug 25 10:54:11 So if you want to build a sort of private store for apps that aren't yours (but free and legal) your only option is to seal a deal with Google (thanks to a big check) Aug 25 10:55:43 If they aren´t yours I assume they´re already on Google Play no? Aug 25 10:56:04 No, you can work around it, with either root or popping up the install window for users to install them. Aug 25 10:57:41 ok Aug 25 10:57:49 well thanks for your answers Aug 25 10:58:03 Thanks to you @flan3002 Aug 25 10:58:11 :) Aug 25 10:58:13 see you soon Aug 25 10:59:12 hello, what's the minimal android api level for google endpoints? Aug 25 11:06:35 kelonye, you can develop your app for just version 19 if you wanted to, you´re just gonna reach a smaller audience Aug 25 11:09:06 Hey, VnM .. thanks for your time .. my app targets east africa market so am trying to get it work on an older phone running api level 10 Aug 25 11:09:21 here's the buikd.gradle http://hastebin.com/udakeyilop.vhdl Aug 25 11:10:29 VnM: i guess is there a way to let gradle set dependency versions that match the specified min sdk version? Aug 25 11:12:14 I have no idea about gradle sorry, I personally develop my Android stuff in Eclipse Aug 25 11:20:00 @kelonye you can do this in default config section in build.gradle -> defaultConfig { minSdkVersion 8 targetSdkVersion 20} for example Aug 25 11:20:14 VnM: I see .. anyway, maybe i should just pin it to the recommended 3.x (API 11) .. http://goo.gl/tbb8GO Aug 25 11:21:43 barnie__: yup .. I've tried that http://hastebin.com/udakeyilop.vhdl Aug 25 11:22:54 Is hastebins file extension in the URL supposed to have a sense or be funny? .vhdl for Gradle and .coffee for Rust... :/ Aug 25 11:23:27 (Not saying it has any relation to the language/DSL) Aug 25 11:23:51 flan3002: haha syntax mainly http://hastebin.com/udakeyilop.gradle Aug 25 11:24:34 Ah, that makes a lot more sense. I thought it would only highlight Haskell by default, but this is much cooler! ;) Aug 25 11:25:08 yeah .. much cleaner than the rest Aug 25 11:25:22 hey guys, can anyone explain me why exactly the onCreate method of the content provider abstract class returns a boolean, and what should be done with that boolean? Aug 25 11:25:27 cant seem to find this information anywhere Aug 25 11:28:05 jvrodrigues: http://developer.android.com/reference/android/content/ContentProvider.html#onCreate() " true if the provider was successfully loaded, false otherwise" Aug 25 11:29:38 what else would one expect from a boolean return code ;) Aug 25 11:29:58 yes i worked no i didn't Aug 25 11:31:32 capella: :) Aug 25 11:31:46 what happens if I use api/xml stuff 11 on android 2.x? will it fail to compile or crash or just get ignored or something Aug 25 11:33:29 will my cell phone work if I travel back to 1936? Aug 25 11:33:59 How do I make the statusbar transparent? Aug 25 11:34:28 sq: just got this http://hastebin.com/opapukicar.pas Aug 25 11:35:36 no fair actually trying it! Aug 25 11:38:45 kelonye: mhm. I see! Aug 25 11:38:49 thanks Aug 25 11:51:52 hello, i'm using ndk for compiling a c program, but i've troubles for giving to gcc the path to the headers Aug 25 11:52:10 $ arm-linux-androideabi-gcc mathtest.c --sysroot=/opt/android-ndk-r10/platforms/android-14/arch-arm/usr/ Aug 25 11:52:13 mathtest.c:2:17: fatal error: math.h: No such file or directory Aug 25 11:52:55 -I / Aug 25 11:52:56 _ Aug 25 11:53:30 -I / ? Aug 25 11:54:47 note that it compiles if i do instead: $ arm-linux-androideabi-gcc mathtest.c -I/opt/android-ndk-r10/platforms/android-14/arch-arm/usr/include Aug 25 11:55:14 ? Aug 25 12:01:28 hello guys... Aug 25 12:01:36 http://paste.lisp.org/display/143504 Aug 25 12:01:40 hello Aug 25 12:01:57 I'm trying to consume a webservice and i get this message: http://paste.fedoraproject.org/128229/14089676 Aug 25 12:05:55 PsciCodeliXHAt: Caused by: java.lang.NoClassDefFoundError: org.ksoap2.serialization.SoapObject Aug 25 12:07:56 but it is on my libs folder Aug 25 12:19:28 fixed http://goo.gl/gKswaL ! Aug 25 12:21:43 PsciCodeliXHAt: fix your imports, clean and build Aug 25 12:28:47 JakeWharton was wondering in which language are Square web applications made ? Aug 25 12:31:21 hello folks, I've got a WearableService running (on the device) and an activity on "Android Wear" also running. If I don't touch the watch for a little while, the wearservice will be destroyed (I/WearableService onDestroy). How can I know/detect on the watch side that the wearableservice has gone since i'm not able to use wearableservice if it is destroyed to notify the watch about it (lol)??? Aug 25 12:33:51 abq: i'm noob, but, are you sure it's destroyed? maybe it's cached or something.. Aug 25 12:34:10 OverCoder, yes i'm sure of it Aug 25 12:34:19 and not recreated until i send a message from the watch to it Aug 25 12:34:35 hi, I'm having the following error - HapticFeedbackConstants cannot be resolved to a variable. However, I see that it should be a part of android sdk - http://developer.android.com/reference/android/view/HapticFeedbackConstants.html Aug 25 12:34:56 meital: do you use Eclipse? Aug 25 12:35:06 OverCoder: indeed Aug 25 12:35:15 did you check the imports? Aug 25 12:35:28 Ctrl + Shit + O Aug 25 12:35:30 import android works Aug 25 12:35:33 will organize imports Aug 25 12:35:40 it doesn't suggest any import Aug 25 12:35:51 also "import android.view.*;" works Aug 25 12:36:13 hmm Aug 25 12:36:22 App minSDK? Aug 25 12:36:42 not specified Aug 25 12:36:58 it can't be! Aug 25 12:37:43 is AppCompat is added as a library to the project? Aug 25 12:39:14 Is better to use push or websocket for realtime android app ? Aug 25 12:39:26 both Aug 25 12:39:38 OverCoder: AppCompat? what is that? Aug 25 12:39:54 "push" (gcm) for when your app is not running, "websocket" for when it is Aug 25 12:40:37 it's a support library that should be added when targeting to lower android versions to give you ability to use most of the newer API feature in that old API Aug 25 12:40:56 I'll just try to specify high min versio Aug 25 12:40:58 n Aug 25 12:41:50 BoD, if my app should work in LAN (not WAN) can I use gcm ? Aug 25 12:41:53 you can Right Click your project > Properties >in the left side click "Android" > and there check if AppCompat library is added Aug 25 12:42:10 also make sure that AppCompat is present in the project list on eclipse Aug 25 12:44:16 KeyboardNotFound: you mean the device on which your app runs doesn't have access to internet? Aug 25 12:44:24 BoD, yep Aug 25 12:44:53 I don Aug 25 12:44:57 don't see it Aug 25 12:45:09 but I saw that it used api 1.1 so I moved it to 4.4 Aug 25 12:45:11 but same problem Aug 25 12:45:18 meital: that means it isn't added Aug 25 12:45:34 how can I add it? Aug 25 12:45:54 moving to >API 11 means that you have nothing to do with AppCompat Aug 25 12:45:57 so just forget it Aug 25 12:46:17 lol ok, any other idea? Aug 25 12:46:42 idk but i think it's silly Aug 25 12:50:09 KeyboardNotFound: then you cannot use gcm Aug 25 13:01:05 Hey, I made an app that prints whatever is in EditText, but I need the printed text do display on a new line? How do I do that? Here's how it looks: http://i.imgur.com/FOlaHMG.png Aug 25 13:03:28 You read up on the basics of layouts. And you "print" your text to another view. Aug 25 13:03:29 Put the ´printed´ text which is probably a TextView in a new LinearLayout Aug 25 13:04:16 So a LinearLayout is a single line? Aug 25 13:04:51 It has an orientation, the default is horizontal, it puts the elements after eachother rather than below Aug 25 13:05:07 You can change it to vertical but it´ll put the button below the EditText Aug 25 13:05:14 And the TextView under the Button Aug 25 13:06:21 i'm inflating a layout but not getting the element in that layout using findElementById. can it be an issue with cache storing the old layout somewhere? Aug 25 13:07:12 threenuc: seriously read the layout docs. You probably want a linear layout set as vertical and in that yo uwill have a linear layout set a horizontal containing the input field and button and under that another textview. https://developer.android.com/guide/topics/ui/declaring-layout.html Aug 25 13:07:12 If you suspect it´s a cache issue, run a Clean on your project that´ll solve that kind of issues Aug 25 13:07:41 rgr: I searched the article you provided after you told me to. Thanks c: Aug 25 13:07:42 clean runs 20 minutes :| Aug 25 13:08:12 Are you developing on a potato or is it a REALLY big project? lol Aug 25 13:08:59 idk but it's always hellishly slow :< Aug 25 13:10:28 You gave it a ¨@+id/¨ right not a ¨@id/¨ I believe that can cause it to not turn up, would be faster to check that Aug 25 13:11:13 it runs fine on a 4.5" device but when i load it in a 7" emulator it fails with null pointer exceptions Aug 25 13:11:39 (running clean) Aug 25 13:11:54 It loads different layouts due to screensize and you don´t have that element in your layout for higher screen values? Aug 25 13:12:51 i recently deleted the layout that was meant for the higher resolution, and it indeed didn't have the elements Aug 25 13:13:00 but it just behaves like it's there Aug 25 13:13:20 Clean should sort it then I imagine, with layouts it will often cache previous versions Aug 25 13:13:42 Like when you move about elements without a clean you can end up with ClassCast exceptions Aug 25 13:14:00 hope so :3 Aug 25 13:14:12 Because a Button for example was in place where there previously was a TextView or whatever Aug 25 13:29:19 sq: use the debugger and run a findViewById in the evaluator. Doubel check in the IDE by selecting "jump to source" from where you use the @id for the view thats missing. Aug 25 13:29:56 let me try cleaning first Aug 25 13:30:06 * sq starting the emulator already Aug 25 13:30:19 It shouldnt be that if you're using AS/Intellij IMO. Aug 25 13:30:31 Why are you starting the emulator to do a clean? Aug 25 13:30:52 hi Aug 25 13:30:58 can anyone point me a shortest possible tutorial on retainInstance ? Aug 25 13:31:28 I have a very basic game in java, and I want it to not-blow-up on screen orientation change Aug 25 13:31:40 without learning world war II history Aug 25 13:31:46 or something similarly thick Aug 25 13:32:27 what does "blow up" mean? Aug 25 13:33:07 well, I got onCreate called, which reconstructs a lot of objects Aug 25 13:33:28 upgraded OS and contacts did not get saved? can i retrieve them on windows somewhere??? Aug 25 13:33:29 you need it to in order to rescale. Typically you would release all the resources (and rendering threads) when your view dies and then reinitialise when its recreated and restart the rendering thread. Aug 25 13:34:01 anew: this is for android development. Not OS support Qs. Try the forums. Aug 25 13:34:03 rgr, ok, but how can I retain stuff like "game state" Aug 25 13:34:30 You dont have it stored in view classes.... Aug 25 13:34:40 rgr this is android dev question... i am using eclipse, loading my sdk Aug 25 13:34:43 You need to read the android lifecycle documentation. Aug 25 13:34:53 rgr, ok. Aug 25 13:34:55 i upgraded the os from 4.2.2 to 4.4w on my sdk Aug 25 13:34:58 and lost all the contacts Aug 25 13:35:07 anew "upgraded os and contacts did not get saved" is not a development Q. Aug 25 13:35:14 ... Aug 25 13:35:40 i am using android sdk and used to push/pull data on the SD card Aug 25 13:35:44 and contacts are nothing to do with your SDK unless you mean you have an app which uses a new SDK and your app doesnt save. Aug 25 13:35:53 i am using the android dev environment Aug 25 13:35:55 it's a dev question Aug 25 13:35:58 not a forum question Aug 25 13:36:08 Hi everyone. Has anybody faced a problem when standard Camera Activity returns Intent data == null? I start camera activity with EXTRA_OUTPUT fileUri, photo is succesfully created and saved where I want it to, but when I click OK in camera activity it returns to my activity with data == null. I googled a lot on that but still didn't find anything that could explain this to me. Aug 25 13:36:36 how can i see where in windows the sd card is saved Aug 25 13:36:39 other than the DDS manager Aug 25 13:37:02 or does the DS card get overwritten when you edit your config to a different OS ? Aug 25 13:37:14 anew: this really isnt a dev question.. :/ Aug 25 13:37:17 Are you trolling? None of your Qs make one iota of sense. Aug 25 13:37:44 I woudl help if I could but I havent got a clue what you're talking about. Where the SD card i saved? Aug 25 13:37:45 hello friends... please help me! Aug 25 13:37:56 i am using eclipse, i load the AVD manager, i edit the settings to configure an OS, SD card size etc Aug 25 13:38:19 all works fine, i save contacts, apps on the virtual device Aug 25 13:38:23 anew: dev is for writing new android application. Your question belongs to #android-root Aug 25 13:38:27 ..how long do you usually wait for the emulator to start before you give up? :| Aug 25 13:38:45 sq: for ever. I never ever got an emaulator to work on debian linux.... Aug 25 13:38:48 sq: better dont use it at all D: Aug 25 13:38:51 +1 Aug 25 13:39:00 i want to load data from json into a viewpager, the json consist of three (3) file, the file for questions, answers, and options. how can i related them together and getting into viewpager Aug 25 13:39:02 well i don't have a tablet! Aug 25 13:39:11 oh god. Aug 25 13:39:12 sq: check out genymotion Aug 25 13:39:16 sq, Use a device or check out GenyMotion Aug 25 13:39:23 : ) Aug 25 13:39:38 want to develop online exam Aug 25 13:39:40 i want to load data from json into a viewpager, the json consist of three (3) file, the file for questions, answers, and options. how can i related them together and getting into viewpager Aug 25 13:39:42 :O Aug 25 13:39:55 * sq grabs genymotion Aug 25 13:40:06 hackable: show your code. explain why you have json in three files. Again. Aug 25 13:40:36 hackable: store them all as lists and grab the answers, questions options depending on view position? Aug 25 13:40:42 that should work Aug 25 13:41:07 yeah rgr: appreciate... i don't have it in code yet but i am trying to analyse how to get it done... my client need an e-exam platform Aug 25 13:41:12 online exam Aug 25 13:41:23 i have the questions, answer and options... Aug 25 13:41:49 hackable: a listadapter chooses what view to show by position. Parse three lists out of your json files and use them Aug 25 13:42:22 so question number X one would be direct to answers[X]. quesiont[X] and options[x] Aug 25 13:42:29 use will be able to check for answer when reading the questions.. now, how do i pull the answer to the view when the user request to show answer Aug 25 13:42:31 android-root and android doesnt use eclipse or make android apps !! Aug 25 13:42:50 or maybe overthink your design and store answers and options in one file with the question.. Aug 25 13:43:13 anew: but upgrading OS has nothing todo with making andorid apps, too Aug 25 13:43:35 i didnt 'upgrade' my os... you can choose what OS you want to work with when you create an environment Aug 25 13:43:36 and the android-root guys know much more about those procedures Aug 25 13:43:43 Thanks Danijoo: Aug 25 13:43:57 it's a click of a button to switch OS Aug 25 13:44:04 Thanks Danijoo: i think complex list adapter will be the best options Aug 25 13:44:29 anew: yes, and by this click you basically tell the emulator to format the storage and put a new OS on it Aug 25 13:44:33 contacts lost Aug 25 13:44:36 likely Aug 25 13:44:38 fack Aug 25 13:44:39 he needs one listview with an extended baseAdaptor. That contains the records of each json "triple". Aug 25 13:45:02 rgr... really? Aug 25 13:45:05 when i view DDS for the device i'm working on, how can i find the filepath of where all these files are located on my local machine? Aug 25 13:45:07 dont know if it also format the emulated sd, but I guess it does Aug 25 13:45:09 is there a way to make an object (set of variables) parcelable, and make it witout explicitly defining methods packing/unpacking fields? Aug 25 13:45:18 like in C#, just say "all" or "all except" Aug 25 13:45:27 anew: they arent located as normal files Aug 25 13:45:30 really. But until you actually write some demo code and understand json and BaseAdaptor its pointless asking here for now. Aug 25 13:45:43 Give an AsyncTask with Log statements in onPre..., onPost... doInBack... and onCancelled: How can only onPre... be printed? AFAIK either logging fails for the other, or onPre throws an exception which I can't see. Other reasons? Aug 25 13:45:47 alright... Thanks rgr Aug 25 13:45:58 its time to get my hands dirty! Aug 25 13:46:03 anew: its just one big file representing the android file system. Aug 25 13:46:23 argh Aug 25 13:46:26 ok Aug 25 13:46:28 thxnks Aug 25 13:46:58 but you can find the path to that from the avd manager btw Aug 25 13:47:18 just click on the device and choose "details"on the right menu Aug 25 13:47:41 ok thx Aug 25 13:48:22 seems like the content of sdcard is stored as an image sdcard.img under the folder showed in the manager Aug 25 13:48:32 maybe you have some luck in opening it with an image tool Aug 25 13:55:16 what does the sw mean in layout-sw600dp? my nexus 4 and nexus 7 have same DPI but I'm getting in a bit of a mess/confused with sw600dp vs sw720dp which I googled up in SO. Aug 25 13:55:31 shortest width Aug 25 13:56:12 *smallest actually Aug 25 13:56:21 Ah yeah. and width being...? Width in portrait mode? Doesnt really seem to reflect size in anyway. Aug 25 13:56:35 rgr: http://developer.android.com/guide/practices/screens_support.html table 2 Aug 25 13:57:09 yeah, I need to reread that. Bah.. ;) Aug 25 13:58:48 I'm calling function in parent activity (from fragment), and my app minimises, there are no errors or anything. Aug 25 13:59:03 snowpong, maybe onPreExecute never finishes? You happen to have an endless loop in there by any chance? Aug 25 13:59:13 it does it 4/5 times Aug 25 13:59:20 works 1/5 Aug 25 13:59:37 VnM: onPre is not doing anything except spit out a Log so it's very unlikely Aug 25 14:00:01 if im dynamically adding fragments, is there any way to get the preview to show in Android Studio? seems like tools:layout is only for when statically adding Aug 25 14:00:35 VnM: but this is happens in app when it's running in the background and the network changes - so it might just be that ADB / Android Studio misses some of the logs...? Aug 25 14:01:14 snowpong, are you running multiple AsyncTasks at the same time? Aug 25 14:02:12 VnM: not in this case no, and I'm using execute as opposed to executeOnExecutor to start it off - this is on a 4.3 device Aug 25 14:02:37 how to verify google(oauth2) authentication on server side? For example, if user authenticate on client(android device) and just send email to server, how sould i know this is his real email? Aug 25 14:03:03 VnM: and I know the asyntask is created and exectured from the UI thread... Aug 25 14:03:24 VnM: it's very strange - let's assume it's running multiple asynctasks - what would be the issue... another is blocking it? Aug 25 14:05:49 anyone using android studio 0.8.7 already? does your DDMS work? Aug 25 14:06:03 I know the thread pool was limited to 1 in old Android versions, I believe for Jelly Bean it should be at least 5 though Aug 25 14:06:47 But it would basically not go past the onPreExecute for the AsyncTasks following the first Aug 25 14:11:18 Nice. I get a nullpointer exception in org.eclipse.core.something... I'm using android studio Aug 25 14:48:07 ok i launched genymotion and it's amazingly fast. but i still am getting nullpointer exceptions... can i check if i'm loading the same layout on different devices? Aug 25 14:54:09 Why does a onClick method need to have View as it's argument? Aug 25 14:56:01 So you know what View was clicked in case you use the same listener for multiple views Aug 25 15:11:37 ok i'm supersmart Aug 25 15:11:59 i logged ((ViewGroup)convertView).getChildCount() and the count was different for different devices Aug 25 15:11:59 fake Aug 25 15:12:25 so there's this old layout file that wasn't wiped by cleaning project Aug 25 15:12:43 is there superclean button somewhere? Aug 25 15:19:15 What's the smartest way to convert a date in string format from the contacts database to a locale based Java date? Aug 25 15:22:39 i downloaded and installed an app on my virtual device, but when i close and open the virtual device it says 'this app is not installed' Aug 25 15:23:19 anew: which emulator are you using? Did you configure an SD card? Aug 25 15:23:36 i have sd card set to 1 gb Aug 25 15:23:42 when i click 'edit' Aug 25 15:23:46 do i have to do more than that? Aug 25 15:23:50 also emulatr = device ? Aug 25 15:24:06 the device saves media (pictures) and contacts Aug 25 15:24:07 but not apps... Aug 25 15:25:14 I cant update SDK ADT to version 23... help->install new software doesnt help, also i cant manually delete previous version... any idea? Aug 25 15:25:49 error: Cannot complete the install because of a conflicting dependency. Aug 25 15:26:07 pustinja: what I ended up having to do is redownload & reinstall eclipse + ADT =/ Aug 25 15:26:38 anew: so you launch the virtual device, install the app, the app runs and then you reboot the device and the app will not launch? Aug 25 15:26:53 exactly Aug 25 15:28:48 anew: reported issue here https://code.google.com/p/android/issues/detail?id=62274 Aug 25 15:28:58 similar to what you are describing Aug 25 15:29:09 What version is the Virtual Device? Aug 25 15:29:52 4.2.2 Aug 25 15:30:22 yeah that link is exactly whats happening to me also Aug 25 15:31:00 but no answers... what happened to you user kmans Aug 25 15:31:03 what do you know that i dont Aug 25 15:31:35 anew: do you have a real device to test on? Aug 25 15:32:00 likw my phonw? Aug 25 15:32:08 like my phone? Aug 25 15:32:21 i am installing apps from store, not my own app on the vd Aug 25 15:32:25 whatsapp for example Aug 25 15:32:31 Oh. Interesting. Aug 25 15:33:08 anew: what store? Google Play, Amazon, other? Aug 25 15:33:23 wnatsapp.com/android Aug 25 15:37:06 anew: have you tried it with other apps? Aug 25 15:37:26 my other vd it works fine Aug 25 15:37:33 not sure what i did when i created this new one Aug 25 15:38:07 anew: Try a diff on the config files for each vd Aug 25 15:38:58 try a diff ? Aug 25 15:39:23 http://www.diffnow.com/ Aug 25 15:39:33 ah ok Aug 25 15:39:53 cool didnt even know that existe Aug 25 15:41:43 The only time we should stop learning is when we die ;) Aug 25 15:41:50 Or go into a Coma... Aug 25 15:58:30 i think it was an sd card size issue Aug 25 15:58:35 i changed it from 2gb to 1gb Aug 25 15:58:41 seems to be ok now... fingers crossed Aug 25 16:05:05 is there a list of device names VS marketing device names? the device name as you would get it from android.os.Build.Model Aug 25 16:05:31 one of the Xperias here shows up as "D5503", for example Aug 25 16:05:42 I couldn't find any yet :/ Aug 25 16:06:29 hm Aug 25 16:06:37 the query is what's difficult, how do you google for that Aug 25 16:07:20 there's a question, http://stackoverflow.com/questions/17718532/a-complete-list-of-all-android-devices Aug 25 16:07:38 I have such a project on todo for last 6 months and just no time Aug 25 16:07:47 we have an internal company database but I can't publish that :/ Aug 25 16:07:56 to gather all the phones in the world and run that code on them? Aug 25 16:07:59 and write it down? Aug 25 16:08:14 we can have a campaign for it Aug 25 16:08:17 basically make an app that collects data and upload it Aug 25 16:08:32 a tiny app that prints that back to a server, mapping name to model name, and tell people to use it Aug 25 16:08:34 it would work Aug 25 16:08:35 together with annoying hard-to-find data like supported camera resolutions, SoC model, arch, NEON etc. Aug 25 16:08:42 yea all that shit Aug 25 16:08:45 buuut, not time :) Aug 25 16:08:45 for greater good Aug 25 16:08:47 *no Aug 25 16:09:03 https://support.google.com/googleplay/answer/1727131?hl=en-GB what about this Aug 25 16:09:05 Xperia matches Aug 25 16:09:22 they all match.. Aug 25 16:09:29 Got an email from google admob telling me that my app has been identified as "high potential" with below-average clickrate and that they would like to help me planning a strategy to improve that. Aug 25 16:09:38 does anyone know if this is scam? ^^ Aug 25 16:09:48 its not like theyre going to give you money :P Aug 25 16:09:50 check email headers first Aug 25 16:09:59 step one, view the full headers and see if it originated in google at all Aug 25 16:10:03 Mavrik: already did. seems legit Aug 25 16:10:05 step two, if they're asking for a login - don't. Aug 25 16:10:16 why wouldnt it be legit Aug 25 16:10:19 and they tried to phone me, lol Aug 25 16:10:21 its not like the chance of a lifetime man Aug 25 16:10:35 YOU ARE THAT GOOD BRAH! Aug 25 16:10:54 just wondering because I didnt see me as "high potential" lol Aug 25 16:10:56 believe in your cellphone Aug 25 16:11:46 is it a flappy copter clone ? Aug 25 16:12:17 flappy copter Aug 25 16:12:22 that name wouldnt have sold Aug 25 16:12:34 guy knows what he's doing Aug 25 16:12:41 :) Aug 25 16:12:43 no clone :D Aug 25 16:13:08 is it an app that sends "hi" to your contacts? Aug 25 16:13:13 haha Aug 25 16:13:23 I'm just listing high potential concepts Aug 25 16:13:24 no, "Sup" Aug 25 16:13:27 ;) Aug 25 16:13:29 BoD: wish it would be that Aug 25 16:13:32 say it with "sup B" Aug 25 16:13:37 "sup brah" Aug 25 16:13:50 great idea! Aug 25 16:13:53 maybe high pot. is everything over a specific amount of impressions mh Aug 25 16:18:11 when i want to install ADT v 23.0.3 i get this error http://pastie.org/9501609 Aug 25 16:18:44 what is wroong? Aug 25 16:20:41 yea....... Aug 25 16:20:43 i just downloaded adt Aug 25 16:20:47 you're at that time of your life Aug 25 16:20:57 see you in 6 hours Aug 25 16:21:01 every young man has to go through that Aug 25 16:21:05 its a rite of passage Aug 25 16:23:12 yo Aug 25 16:23:29 yo maaaan Aug 25 16:23:36 Hi, just a question, currently I get 2 app Icon for my app becuase I have 2 android manifest files (plugins and stuff, If I remove one of them they won't work), I wanna ask, when I publish my app the users also gonna get 2 app icons? Aug 25 16:24:04 huh Aug 25 16:24:07 theres an icon per a receiver if i understand things right Aug 25 16:24:26 i think you are merging one android manifest or you have a multiple declaration in one of your android manifest files Aug 25 16:24:27 I get 2 of them right now, emulator and also not on an emulator Aug 25 16:24:36 what.. Aug 25 16:25:29 but i have a question my self, i’m into pending intents but i dont get how they work. i have a service which listens to screen_off and i want the intent to be responded by the same service, so how do i actually construct my pending intent? Aug 25 16:25:51 Ill try to seek the problem in the manifests but it make no sense to me that the user also will get 2 app icons, I never saw that in a google play app before Aug 25 16:26:28 it makes sense if your app has 2 different entry points Aug 25 16:26:37 like go direct to settings or something Aug 25 16:26:50 but ofcourse not for you so just change it Aug 25 16:26:50 The user gets as many launcher icons as you have activities with the launcher category in your manifest Aug 25 16:27:06 thanks simon, i’m such a newbie Aug 25 16:27:06 And so do you when developing Aug 25 16:27:27 so can someone help me understand the pending intent? Aug 25 16:28:05 mountSin: You don't have two manifests, unless you are making two apps. What is happening is that gradle is merging two of your manifests into the final one. Just remove the main action / launcher category from the non-entry point manifest. Aug 25 16:29:25 ok thank you i'll do that Aug 25 16:30:08 mountSin: it is important to understand that your final apk will have a single manifest. You can have many manifest files but they are just there to make things more modular, in the end they will result in a single one. You can even find the source for it in build/out Aug 25 16:31:38 thanks defer I understand now Aug 25 16:31:42 hey guys, can you help me with my code?, it crashes when i call the method "getInstance" from the activity class. Aug 25 16:32:05 https://gist.github.com/nschurmann/2215546808693ac79917 Aug 25 16:33:32 naschurmann: attach a stacktrace as well. Aug 25 16:33:43 getInstance isnt called. Aug 25 16:33:49 Hey , I m trying to use textospeech but ,It's not working ,http://pastebin.com/shpbvnL6 Aug 25 16:34:06 Did you, err, set a breakpoint and step into your code? Aug 25 16:34:54 https://gist.github.com/nschurmann/4ae36ecaa9e5a397d966 Aug 25 16:34:58 there is the stacktrace :P Aug 25 16:35:08 rgr: it's called in the main thread Aug 25 16:35:11 bah Aug 25 16:35:15 in the activity main class Aug 25 16:36:11 naschurmann: are you using gradle? Aug 25 16:36:20 defer: yup Aug 25 16:36:23 but not in the code you pasted. Aug 25 16:36:29 naschurmann: how are you including the retrofit dependency? Aug 25 16:36:33 paste the line Aug 25 16:36:35 It's evicting GsonConverter because you haven't added gson as a dependency Aug 25 16:36:40 Either do that, or provide another converter Aug 25 16:36:45 retrofit should add it Aug 25 16:36:49 it's transitive Aug 25 16:36:51 yes Aug 25 16:37:00 that's why I want that line Aug 25 16:37:33 this is the main Aug 25 16:37:39 https://gist.github.com/nschurmann/0e76e8c5a807f053ca6b Aug 25 16:38:12 naschurmann: forget about that, it's a dependency issue. How are you depending on retrofit? Aug 25 16:38:39 defer: depending on it?, i don't understand the question Aug 25 16:38:46 you mean the import lines on the top? Aug 25 16:38:54 no, I mean the build.gradle line Aug 25 16:38:57 that include the dependency Aug 25 16:39:12 any idea how to type anything but latin in genymotion? Aug 25 16:39:13 or are you just placing the jar in the lib/ folder? Tell me you are not placing the jar in the lib folder. Aug 25 16:39:24 oh!, this line you mean? compile files('libs/retrofit-1.6.1.jar') Aug 25 16:39:32 yeah, don't do that Aug 25 16:39:57 then what should i do? Aug 25 16:40:06 naschurmann: compile 'com.squareup.retrofit:retrofit:1.6.1' Aug 25 16:40:15 it will automatically fetch it and its dependencies Aug 25 16:40:33 and do dependency resolution for you Aug 25 16:40:40 you won't have to deal with jars ever again. Aug 25 16:41:15 DEATH TO JARS Aug 25 16:41:22 wow! Aug 25 16:41:25 that's gr8! Aug 25 16:41:30 ok, added the line :P Aug 25 16:42:01 life's too short to compute dependency graphs yourself. Aug 25 16:42:51 defer: now i have another error :P Aug 25 16:42:58 https://gist.github.com/nschurmann/8b7b257dc014607a8165 Aug 25 16:43:29 naschurmann: delete that jar from the lib/ folder Aug 25 16:43:38 naschurmann: you probably have a line that auto-includes all jars there Aug 25 16:43:51 Is the android speech-to-text library ok to use for monetized redistribution if you use it in your apps? Aug 25 16:43:52 or forgot to delete the other one Aug 25 16:44:44 py0, look at the license. Aug 25 16:44:49 I blame google for this, they automatically add a line to every gradle project created in android studio that includes lib/*.jar Aug 25 16:45:08 those jar-copying hippies! Aug 25 16:45:10 I even understand why, adt retro-compat and all but meh. Aug 25 16:45:15 defer: now it doesn't crash :P, that's cool! ^^! Aug 25 16:45:58 naschurmann: cool! now spread the word, #killthejar Aug 25 16:46:07 hahaha will do :D Aug 25 16:50:52 Hi Aug 25 16:51:40 I-ve got a issue - I try dispatching a touch event from outer scrollview to a inner scrollview Aug 25 16:52:05 it is a hierarchy like: ScrollView -> RelativeLayout -> ScrollView Aug 25 16:52:33 and Aug 25 16:53:00 I override onTouchEvent in a inner ScrollView Aug 25 16:53:51 set a breakpoint in debugger and I see the app does not enter in this method Aug 25 16:54:20 there's a reason all guidelines say not to put a scrollable view inside another scrollable view Aug 25 16:54:34 (that includes listviews too) Aug 25 16:54:57 so what is a alternative if I need a scroll in inner view? Aug 25 16:56:08 hey, I'm looking to register a google developer account with the money already in my google wallet Aug 25 16:56:12 I've got very custom like-list solutin implemented using relativeLayout Aug 25 16:56:29 and I must put this relative layout in ScrollView Aug 25 16:56:31 however it doesnt give me the possibility to get it out of my wallet instead of adding an option Aug 25 16:56:37 the alternative is to reconsider your design and figure out why you'd need such a strange setup Aug 25 16:56:42 pessimik, ^ Aug 25 16:57:15 I don't know what else to advise, I can't really imagine a situation where this setup would be needed Aug 25 16:57:26 but in the other side, I need assign a fragment with ScrollView Aug 25 16:57:50 guys, when i send the data to the server, is in a json nameValuePairs. This ain't the expected result, so how should i get rid of that and only send the specified data? Aug 25 16:57:51 I cannot, it is a business solution Aug 25 16:57:59 which works on iPhone Aug 25 16:58:08 so it *must* work on Android Aug 25 16:58:10 Adib, this has nothing to do with actual development Aug 25 16:58:22 wehre should i go then? Aug 25 16:59:01 no idea, maybe someone would know so try sticking around, but don't get any hopes up Aug 25 16:59:43 naschurmann, are you not in control of your own data that you're sending? Aug 25 17:00:39 ravilov: yup, i'm sending from android to node a login form. But adds the object user password in a nameValuePairs key. Aug 25 17:00:43 WHat is the alternative to this for spanish textToSpeech.setLanguage(Locale.US); ? Aug 25 17:01:23 raivlov, imagine that you have a list of element and after click on the element is going up and below it shows a fragment to you and a fragment can contains many fields, etc. Aug 25 17:01:35 killer, http://developer.android.com/reference/java/util/Locale.html Aug 25 17:02:07 ravilov: i want to get rid of the key "nameValuePairs", how can i do that from android?, i don't want to alter the server Aug 25 17:02:58 I have no idea and no way to answer without seeing some actual code Aug 25 17:03:17 ravilov: Spanish doesn't seems to be there Aug 25 17:03:22 pessimik, how about two separate scrollviews, top and bottom one? Aug 25 17:04:07 killer, maybe not as a constant, but you can always create your own locale Aug 25 17:04:21 also, locale designations are not android-specific, they are used everywhere Aug 25 17:04:28 https://gist.github.com/nschurmann/e9051fe59b0288476925 Aug 25 17:05:03 killer, I believe you need the es_ES locale Aug 25 17:05:07 that, translates into {nameValuePairs: {password: 'pass', email: 'test@test.com'} } Aug 25 17:05:34 it should be only {pass: 'pass', email: 'email'} Aug 25 17:06:33 ravilov: I cannot see that, all elements are in inside of the outer scrollView, so firstly I need get rid of that Aug 25 17:06:53 Can I make tabbed activities in API 8? Aug 25 17:07:34 ah, the inner ScrollView is adding programitically Aug 25 17:07:37 naschurmann, I see two possible approaches here: 1) reparse the generated JSON, alter as necessary, repack new data as JSON; 2) figure out why and where it gets formatted like that and fix it Aug 25 17:07:44 personally I recommend #2 Aug 25 17:07:48 naschurmann: You should google how gson works.. Aug 25 17:08:00 Protip: JSONObject keeps the keys and values in a field called nameValuePairs Aug 25 17:08:49 pessimik, dunno, your case seems pretty specific, I'm out of ideas Aug 25 17:08:53 because after click on the element you have a animation like all elements above the clicked element going up, all below going down (out of screen) and the clicked view going up and has top = 0 Aug 25 17:09:19 all I know is, a scrollable view inside a scrollable view is a bad idea Aug 25 17:09:24 and in free space I am adding a fragment Aug 25 17:09:33 after two days of trials me too :) Aug 25 17:09:43 that should tell you something Aug 25 17:09:58 I really believe this can (and must) be restructured in a different way Aug 25 17:10:19 threenuc, as far as I know, yes Aug 25 17:10:37 (depending on what you mean by tabbed activity) Aug 25 17:11:01 ravilov: a screen where I can swipe to change the content viewed Aug 25 17:11:16 Hi all Aug 25 17:11:36 How can I run a script prior to NDK building any of the libraries using ndk-build? Aug 25 17:12:06 threenuc, that sounds more like a paged, not tabbed activity Aug 25 17:12:07 I tried just putting my shell script in the beginning of the file and I get the following error /jni/Android.mk:12: *** multiple target patterns. Stop. Aug 25 17:12:18 either way, it should be possible at least with the support lib Aug 25 17:12:45 ravilov, so tabbed is paged but with a "what-tab-am-I-on" indicator? Aug 25 17:15:38 railov, if I add a inner ScrollView in RelativeLayout, but out of outer scrollView, set a correct position on the screen, invoke bringFront, should it handle events correctly? Aug 25 17:15:51 I mean, overlaps Aug 25 17:15:52 threenuc, something like that Aug 25 17:16:01 ok thanks Aug 25 17:16:18 pessimik, I guess... the only way to know for sure is to try Aug 25 17:16:31 yeah, ok, thanks Aug 25 17:23:27 I did this for text toSpeech tts = new TextToSpeech(this, this); Aug 25 17:23:29 Locale locSpanish = new Locale("es", "MEX"); Aug 25 17:23:31 tts.setLanguage(locSpanish); Aug 25 17:23:36 But still english Aug 25 17:24:14 what makes you think "MEX" is a valid identifier? Aug 25 17:24:26 did you try googling valid locale identifiers? Aug 25 17:24:59 lol Aug 25 17:25:02 it wokrs Aug 25 17:25:07 Yes, It was the one suggested Aug 25 17:25:14 on Nexus 5 at least Aug 25 17:25:18 \o/ Aug 25 17:25:28 a fu*** hack Aug 25 17:25:36 killer, did you try es_ES like I suggested? Aug 25 17:25:42 killer, also, http://stackoverflow.com/questions/3577058/android-tts-languages Aug 25 17:26:21 pessimik, congrats Aug 25 17:26:51 it seems less of a hack than your scrollable inside scrollable with nested and chained ontouch listeners Aug 25 17:26:57 question for any android-facebook-sdk devs - is it just me or does https://developers.facebook.com/resources/Facebook-11.zip [to download the official app outside the play store] keep constantly read-erroring at around 10-11 Mb? Aug 25 17:26:59 ravilov: new Locale("es_ES")? Aug 25 17:27:15 killer, for example, yes; but also see my SO link Aug 25 17:27:42 ravilov: I have seen it when I was googling Aug 25 17:27:51 did it not help? Aug 25 17:28:10 kbs, just downloaded it, didn't stop at any point, must be just you Aug 25 17:28:34 ravilov: oh well. Thank you for testing, much appreciated. Could you tell me the final byte size, just for kicks? Aug 25 17:28:35 killer, if neither the SO suggestion nor es_ES helps, then I'm out of ideas Aug 25 17:29:09 it suggested new Locale ("spa", "MEX") and it didn't help and u r suggesting new locale("es_ES) Aug 25 17:29:14 kbs, 28403052 bytes, md5 858140e0fbc33a242d7fe614ab525f7f, sha1 6013841bc07c8169fc19d77f91648e2a51658d7c Aug 25 17:29:22 ravilov: perfect, thanks much Aug 25 17:30:07 killer, yeah that was the idea, but it's just a guess, I don't know if it will work; I do know es_ES is a valid locale identifier for spain/spanish, but I don't know how TTS works Aug 25 17:31:10 killer, perhaps a stupid question but could it be that you don't have the spanish TTS engine installed? Aug 25 17:33:31 ravilov: I dont' know about it , if I am to deploy the application in future , user have to install it first on his android device?Doesn't it come pre installed ? Aug 25 17:34:25 hey, if i need to check if the screen is on or off, listening to the intent is safer or more accurate than asking the PowerManager? Aug 25 17:35:56 killer, according to the docs the only locale guaranteed to exist on all devices is en_US Aug 25 17:36:22 I for one see no reason why would I have a spanish TTS engine installed Aug 25 17:38:58 have anyone experienced simply dropped POST calls to AsyncHttpClient (loopj)? Aug 25 17:39:14 using older 1.4.3 here Aug 25 17:39:30 ravilov: But many different language apps (speech) seems to work on my phone , how does that work ,how do they insure that it works Aug 25 17:42:05 I don't know Aug 25 17:43:56 I have a textview that I append text to it. I want it to scroll horizontally, end to auto scroll to the end on append. How do I do that? Aug 25 17:44:57 textviews don't scroll easily, edittexts do Aug 25 17:45:39 here's one (roundabout) way to do it: http://stackoverflow.com/questions/5224761/android-scrollview-autoscrolling-as-text-is-added Aug 25 17:45:45 just realized; the Play listing promo graphic shows up in Play App, but not web play.google.com O.o Aug 25 17:47:47 g00s: huh, is that right? Didn't know that either, thanks Aug 25 17:48:26 kbs they stopped using it a while ago, but i just noticed in play console saying that its mandatory aug 31 or something Aug 25 17:50:43 oh, its called the 'feature graphic' Aug 25 17:51:07 https://support.google.com/googleplay/android-developer/answer/6066610 Aug 25 17:52:53 ravilov: it works for vertical, tried with HorizontalScrollView but it didn't work with focusRight Aug 25 17:53:32 yoavst, like I said, textviews don't scroll easily Aug 25 17:53:55 ravilov: textviews sucks ;) Aug 25 17:56:17 it would be interesting if google put up / downvote buttons in the javadocs Aug 25 17:56:28 people could take out their frustrations on the apis by downvoting Aug 25 17:58:00 g00s, there's an idea for an app right there Aug 25 17:58:01 go Aug 25 17:58:18 well, it should probably be a plugin to AS Aug 25 17:58:31 like, you autocomplete, and an option is 'the method sucks' Aug 25 17:59:28 more like Aug 25 17:59:44 or more politely "i find theis class useful / i don't find this class useful' Aug 25 17:59:45 "Think you can do better? _Start a new project_" <--- link or whatever Aug 25 18:00:25 or rating with stars, google likes that Aug 25 18:01:02 of course there should be a taxonomy of why the class / method is not useful (1) buggy (2) inconvenient (3) not enough docs, etc) Aug 25 18:01:39 (4) doesn't look pretty (5) doesn't smell nice Aug 25 18:02:27 i always thought it would be kinda nice for a crowd-sourced project, a cenral repository of known bugs in apis across devices / versions Aug 25 18:02:44 so that you could see as you were typing, what devices may have a bug with a class you were using, etc Aug 25 18:06:02 istead of going to te android bug tracker, typing in the method / class name, getting a list of stuff Aug 25 18:06:33 which is more like a garbage pile; the schema & fields used to capture the information is not useful for much Aug 25 18:06:57 and the quality of the data entered is bad , but that could be blamed on not haveing the correct forms / fields / schema for a defect tracker Aug 25 18:07:54 yo Aug 25 18:10:49 i doubt google would ever do this, it would be a sort of acknowledgement for vatious kinds of fragmentation Aug 25 18:11:01 hey frankdrey Aug 25 18:12:06 * frankdrey is making a meh.com app :3 Aug 25 18:12:52 I have yet to see what's wrong with android.widget.Gallery Aug 25 18:13:40 frankdrey is there anythng wrong with it ? Aug 25 18:13:54 it's deprecated Aug 25 18:14:06 is there a Gallery2? Aug 25 18:23:49 anyone know if there are plans to fix getRunningTasks on L? Aug 25 18:24:34 dcow, google probably knows Aug 25 18:25:09 well, google developers know :P Aug 25 18:25:21 ravilov this is the official irc support channel for the android open source project, presumably if someone there knows they can answer d= Aug 25 18:26:14 dcow: Well, we mostly have app-devs here, not aosp-devs. Aug 25 18:27:02 flan3002: is there an more appropriate aosp channel? Aug 25 18:27:36 Not really. #cyanogenmod doesn't apply here, though I feel like they can help more with repo/breakfast questions... Aug 25 18:27:57 But I'd be happy to be corrected. ^^ Aug 25 18:28:00 there’s android-root, but that’s not related either Aug 25 18:28:34 dcow 'if there are any plans' ... if google hasn't said something about it, its unknowable Aug 25 18:29:02 g00s: just came across it today. has it been a known issue for awhile? Aug 25 18:29:07 (probably late to the game here) Aug 25 18:29:27 no idea. not like the project is developed in the open ;) Aug 25 18:29:47 I mean among the community at least. Sounds like you’ve heard of it. Aug 25 18:30:04 no really, i haven't heard of it being broken Aug 25 18:31:27 dcow, you can always contact google directly Aug 25 18:31:33 not accusing haha, just curious if people have been talking about it Aug 25 18:31:41 I’ll have an issue filed. Aug 25 18:32:12 there is an issue already that happens because getRunningTasks isn’t working, but not an issue explicitly for the method being broken Aug 25 18:32:37 I’m just worried because of the adition of the “use this method for debug only” disclaimer Aug 25 18:33:57 That the intention is to axe the method because “too many developers are iterating over the running tasks list”—which is fine logic, it’s just very unclear what the intention is. Aug 25 18:37:41 ravilov how might I do that? can’t post on the google group. Aug 25 18:38:06 dcow, no idea but surely it is possible somehow Aug 25 18:39:24 dcow: why not ask on one of the AOSP d-lists? Aug 25 18:39:45 posts from new users are moderated, Napalm Aug 25 18:39:57 dcow: http://source.android.com/source/community/index.html Aug 25 18:40:03 and..? Aug 25 18:40:56 I’ve submitted multiple questions and responses. None have ever shown up. Aug 25 18:41:38 I’m happy to mail the list, though. I didn’t realize that was any different from google groups though because I thought that was just backed by email. Aug 25 18:41:39 dcow: did you read these points? http://source.android.com/source/community/index.html#getting-the-most-from-our-lists Aug 25 18:42:37 Napalm: well I don’t think I’ve violated any of the rules. I’ve laned on that “How to Ask Questions the Smart Way” page many times (; Aug 25 18:42:59 I was talking about the link in the first point, but yea Aug 25 18:43:02 just making sure Aug 25 18:43:08 anyways, back later Aug 25 18:43:10 Talking to a co-worker, he had the same experience. Aug 25 18:43:19 asked a few questions, dead silence Aug 25 18:44:07 it would be nice to know if someone say looked at your post and rejected it—for no other reason than to break the radio silence Aug 25 18:50:54 hm okay, maybe they don't want to be contacted ;) Aug 25 18:53:24 I tried to run text to speech in spanish and when I do , the speech is still in english , I did Locale spanish = new Locale("es", "ES"); Aug 25 18:53:26 tts.setLanguage(spanish); Aug 25 18:53:31 ANy help? Aug 25 18:57:59 is there a way to set overlay blending mode on paint ? Aug 25 19:01:34 i haven't followed the mailing lists in a while; they used to be answered by DH and a few others from google Aug 25 19:01:48 i bet they are just getting tired of answering the same questions :) Aug 25 19:05:16 ping JakeWharton Aug 25 19:05:24 what Aug 25 19:06:13 trying to help track down a memory issue.. picasso loads large Bitmaps intelligently with the inSampleSize values set, right? Aug 25 19:06:18 yes Aug 25 19:06:24 assuming you use .fit() or .resize() Aug 25 19:06:44 cool, i'll check that that's happening. gracias Aug 25 19:07:37 ANy help? Aug 25 19:13:45 Hi all, can someone tell me what would be the best way to pass data from one fragment to another? Aug 25 19:14:30 I tried looking at bundles to see if it was possible to do it using them, but it seems like they only work with activities and maybe fragment -> activity but not fragment -> fragment Aug 25 19:14:43 depends on type of data Aug 25 19:14:51 I usually use a messagebus (e.g. EventBus or Otto libraries) Aug 25 19:16:31 Just passing through a single string Aug 25 19:18:00 what is the string for Aug 25 19:19:20 Used to transfer to a fragment which summarises the information Aug 25 19:19:28 hello guys, What shuld I read to learn android Aug 25 19:19:55 I need to consume a webservice.. Aug 25 19:19:57 *used to transfer information which is the string, to a fragment which summarises the information Aug 25 19:20:09 from yahoo Aug 25 19:20:19 PsciCodeliXHAt: You should probably start with the New Boston Tutorials Aug 25 19:20:32 They're available on YouTube and they're great in my opinion Aug 25 19:20:41 not really Aug 25 19:21:07 PsciCodeliXHAt: http://developer.android.com/training/index.html Aug 25 19:21:38 markyosullivan: are both fragments displayed at once? Aug 25 19:22:00 No desmin88 only one fragment is displayed at one time currently Aug 25 19:22:40 so just have a create method for the summarizing fragment Aug 25 19:22:43 which takes a string Aug 25 19:22:57 and then put that string in the fragment bundle, and then in the onCreate of the fragment, retrieve it Aug 25 19:24:35 markyosullivan: http://pastie.org/9502088 Aug 25 19:25:27 I don't understand how that code works Aug 25 19:26:03 i create the fragment, make a bundle and put my object in it, then set the bundle on the fragment Aug 25 19:31:41 Think I just made a silly mistake and that's why it wasn't previously working, going to test something desmin88 Aug 25 19:31:44 Appreciate the help Aug 25 19:34:59 thankyou guys Aug 25 19:35:57 My texttospeech (spanish) is not working http://pastebin.com/m0LUaAgn Aug 25 19:37:52 killer you know it's device dependant ? Aug 25 19:38:06 locale resources I mean Aug 25 19:38:06 Is there anyway to manage the z-order of a viewpager in some way so that the current item is always the first item in the z-order Aug 25 19:38:42 Ooh, think I found it nvm. http://developer.android.com/reference/android/view/ViewGroup.html#bringChildToFront(android.view.View) Aug 25 19:39:00 StingRay_: But in Android emulator , shouldn't it work Aug 25 19:39:01 I have an aar file in a maven repo. I am including it in my Android Studio project, how can i attach the javadoc to this dependency? Aug 25 19:39:36 killer dunno, never done anything like that… just stating a fact on the hope it may help…as asking here constantly probably will not solve your issues Aug 25 19:39:37 :) Aug 25 19:40:07 killer http://developer.android.com/reference/java/util/Locale.html#getAvailableLocales() Aug 25 19:40:20 StingRay_: Most of the devices support spanish Aug 25 19:43:04 hello all, do you think that following is a secure way to do a secure https request (no problem with MITM, for example)? Sorry for formatting and disorder: pastebin.com/RdF7EBDP Aug 25 19:46:28 killer, I have some doubts in that, but like I told you earlier - even if most of them happen to do, this is not something you can or should rely on Aug 25 19:47:14 +1 was gonna say "thats a dangerous assumption to have" …but decided to make a coffee instead Aug 25 19:49:13 Whats the convention on having a SwipeRefreshLayout and a Refresh action button Aug 25 19:49:27 StingRay_, since I did your work just now, you owe me a cup of coffee :p Aug 25 20:00:42 so I have a semi-hypothetical situation: http://pastebin.com/fjDr0xMQ - my question is, whose invalidate() is the runnable calling, ComplexView's or ChildView's? since it has access to both... Aug 25 20:03:40 Is there a way to check if a bundle contains anything such as a string? Aug 25 20:04:18 yes Aug 25 20:04:28 d.android.com Aug 25 20:04:38 bundle.getString(key) Aug 25 20:05:04 that's to get a string, not to check if there's a string Aug 25 20:05:13 ... Aug 25 20:05:47 if(bundle.getString(key) == null) Aug 25 20:06:35 thats how you check Aug 25 20:07:15 yes, that is one way Aug 25 20:07:52 you can also do Aug 25 20:07:56 bundle.containskey(key) Aug 25 20:08:06 that's kind of what I was aiming at Aug 25 20:08:15 ok then there ya go Aug 25 20:08:51 but now that I look into it more, it seems trying to get the string and checking for null might be the simplest way actually Aug 25 20:11:04 ravilov: they are the exact same thing Aug 25 20:11:44 there is literally no difference code wise Aug 25 20:12:32 ok, accepted Aug 25 20:12:42 http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/util/HashMap.java#351 Aug 25 20:12:58 containsKey does get(key) == null Aug 25 20:12:59 I did say I accept... :p Aug 25 20:15:21 Do you not have to do Bundle bundle = this.getArguments? Aug 25 20:15:32 no you do Aug 25 20:17:07 markyosullivan, you asked how to check the bundle contents, so it is automatically assumed you have the bundle already :) Aug 25 20:21:28 How easy is it to check if two smartphones are near eachother? Aug 25 20:24:35 threenuc: in what sense? near as in the same room/house or the same neighborhood or same city? Aug 25 20:25:08 deanrock0: Well, from room to house Aug 25 20:25:35 threenuc: bluetooth is probably the only option Aug 25 20:25:37 both need to have some active communication/discovery going Aug 25 20:26:00 GPS isn't that accurate? Aug 25 20:26:13 not with receivers found in consumer devices Aug 25 20:26:38 not to mention, GPS doesn't work indoors (wifi-assisted locating helps some) Aug 25 20:29:05 And checking whether people are within 150m? Is GPS precise enough? Aug 25 20:29:48 threenuc: for that, yes Aug 25 20:29:52 it should be accurate to a few meters outside Aug 25 20:30:18 deanrock0: no guarantee on that, and you need to add inaccuracies of all the people involved Aug 25 20:30:31 ok, this is crazy... Drawable.setCallback() existed since API 1, but Drawable.getCallback() is only available since API 11 ?! Aug 25 20:30:43 when should I talk about graphics driver development? Aug 25 20:30:58 I founded #android-ports. Aug 25 20:31:00 ...when? Aug 25 20:31:24 And NFC? For detecting phones within arm's lenght? Aug 25 20:31:30 ravilov: To who? Aug 25 20:31:46 arm's length? nah, as far as I know that's too far Aug 25 20:32:01 threenuc: NFC works when you touch the backs together Aug 25 20:32:02 it works within a few inches or so Aug 25 20:32:07 at moist Aug 25 20:32:09 most* Aug 25 20:32:14 :| Aug 25 20:32:17 muh dreams Aug 25 20:32:23 it can work further but you need non-phone hw on one side Aug 25 20:32:41 p_l, doesn't that kind of defeat the point of *near* field comm? ;) Aug 25 20:32:53 threenuc: bump used accelerometers to detect "bumps" then correlated them with location Aug 25 20:32:54 MY123, probably nobody in here, this is mostly for app development Aug 25 20:33:07 ravilov: not when your goal is hacking them remotely ;) Aug 25 20:33:53 p_l, in my circumstances the phones won't touch, the owners will just pass by Aug 25 20:36:11 What about 10m? Aug 25 20:36:23 bt? Aug 25 20:39:11 what exactly are you trying to achieve? Aug 25 20:40:39 Checking if people pass on a pavement Aug 25 20:40:50 like, two phones Aug 25 20:42:11 bluetooth then ... not sure how many people actually have bt turned off tbh Aug 25 20:42:20 yet another way to socialize virtually? Aug 25 20:42:43 yeah, original idea blease don steal :^) Aug 25 20:42:53 * g00s yawns Aug 25 20:42:54 no worries :D Aug 25 20:44:52 instead of having your phones talk to each other, why don't you do the talking and invite them to beer? ;) Aug 25 20:45:17 humanity is doomed Aug 25 20:45:33 Can you get a search view, http://developer.android.com/training/search/setup.html#create-sa Aug 25 20:45:35 nah, not doomed, just being made obsolete :p Aug 25 20:45:35 fail. Aug 25 20:45:38 How do I start the default activity through am? Aug 25 20:45:53 AaronMT, define "default activity" Aug 25 20:46:01 AaronMT, also, did you google this first? Aug 25 20:46:01 How can I have my activity that has the search view handle the intent rather than it opening up a new activity Aug 25 20:46:06 ravilov: one with a android.intent.category.DEFAULT Aug 25 20:46:47 category itself is not enough Aug 25 20:47:19 but you can try this: am start -a android.intent.action.MAIN -c android.intent.category.DEFAULT Aug 25 20:47:27 I'll try Aug 25 20:48:07 (yes kids, it is always advisable to blindly run random pieces of shell code obtained from the internet :D ) Aug 25 20:48:35 what's going on guys Aug 25 20:48:59 anyone here happy help me out? Aug 25 20:49:24 you NEVER ask can you ask, you just ask Aug 25 20:49:50 I wish people would quit expecting undivided personal attention Aug 25 20:50:01 I was just wondering whether somebody was willing to help :P Aug 25 20:50:10 I'm trying to implement a sliding panel. I have a button on the top right of the screen that when clicked starts two translate animations, one for the sliding panel and one for the button. The problem is that the animation doesnt move the button object to the new position, just the pixels. Aug 25 20:50:25 So in the onAnimationEnd I call "filtersButton.layout(filtersButton.getLeft(), filtersPanel.getBottom(), filtersButton.getLeft() + filtersButton.getMeasuredWidth(), filtersPanel.getBottom() + filtersButton.getMeasuredHeight());" Aug 25 20:50:27 didn't want to talk on top of somebody who is already helping someone else out Aug 25 20:50:37 Tried using bundle.getString("IncomeBundle") == null Aug 25 20:50:38 The problem is that when I call .layout() the view blinks Aug 25 20:50:44 But I got an error Aug 25 20:50:56 RSAutos, I don't see why not, it happens all the time anyway ;) Aug 25 20:51:03 markyosullivan: instead of saying you got an error, just tell us what the error was Aug 25 20:51:07 'Attemping to invoke virtual method', any suggestions? Aug 25 20:51:32 The position is correct, but when it calls layout the view apparently is erased and recreated. Aug 25 20:51:41 just trying to keep the chat neat and clean I'll wait for there answer to be answered Aug 25 20:51:54 their* Aug 25 20:52:12 RSAutos, your efforts are pointless, but suit yourself; you might be in for a long wait though Aug 25 20:52:34 most people are not as nice Aug 25 20:52:50 I've got patience so I can wait Aug 25 20:53:21 Any suggestions desmin88 ? Aug 25 20:53:33 stacktrace Aug 25 20:54:56 stacktrace? Aug 25 20:55:31 is there a way to get an adb console inside android studio? Aug 25 20:56:04 "stacktrace?" what is that supposed to mean Aug 25 20:56:51 means he's clueless Aug 25 20:56:59 and also gone Aug 25 20:57:29 anyone able to help me with some really basic math ? Aug 25 20:57:49 I assume I want an exponent of a value over time Aug 25 20:57:58 sure shoot Aug 25 20:58:05 * StingRay_ is an artist, not a programmer Aug 25 20:58:08 :) Aug 25 20:58:16 if you are programming you are a programmer Aug 25 20:58:28 if you are not programming, this is the wrong chan Aug 25 20:58:30 :) Aug 25 20:58:35 g00s and if you doodle on a pad are you an artist ? Aug 25 20:58:38 :) Aug 25 20:58:40 sure Aug 25 20:58:44 lol Aug 25 20:58:47 just not a Pro Aug 25 20:58:50 Art is in the eye of the beholder and what-not Aug 25 20:59:03 no thats beauty Aug 25 20:59:14 True, people get blind from my art Aug 25 20:59:16 just like, everybody is a philosopher, but maybe not employed as such ;) Aug 25 20:59:28 Does searchview w/ actionbar only start a new activity? Aug 25 20:59:30 after all, sit in the subway and talk to all the philosophers out there Aug 25 20:59:41 I'd rather have my activity with the search action bar item handle it Aug 25 20:59:44 Hi, quick question, android.permission.INTERNET and will any of them make my app won't work without internet? Aug 25 20:59:48 Hi. I'm developing an app in which I want to show meaning of the highlighted word in a small popup. Any ideas how to get the meaning of a given word from within an app? Aug 25 20:59:58 something like... opinions are like buttholes, everbody has one? ;) Aug 25 21:00:35 alright so I need some suggestions lads, right now I have a login form which signs in without a issue but what I'm trying to do right now is transfer over the User object from the current Activity over to another Intent Aug 25 21:01:43 anyways, i need to find out the math behind PorterDuff.Mode.DARKER Aug 25 21:01:49 *DARKEN Aug 25 21:02:09 since putExtra() doesn't allow me to transfer over a Object how would I do this? Aug 25 21:02:13 I believe it’s in the docs Aug 25 21:02:24 hi guys, can you advise me tools to create a quick mockup of a mobile app like this http://blog.soat.fr/wp-content/uploads/2013/10/balsamiq.png ? Aug 25 21:02:31 RSAutos: parcelable. Aug 25 21:02:40 StingRay_, the docs (http://developer.android.com/reference/android/graphics/PorterDuff.Mode.html) says: [Sa + Da - Sa*Da, Sc*(1 - Da) + Dc*(1 - Sa) + min(Sc, Dc)] Aug 25 21:02:47 trying my hand at rxjava, i with to use okhttp to download a file, but i get a networking-on-main-thread error. How do i get around this? I have this but it does not work: .subscribeOn(AndroidSchedulers.handlerThread(new Handler())) Aug 25 21:02:48 desmin88: could you get into more detail Aug 25 21:02:54 I'm sure that's of much help :p Aug 25 21:02:55 StingRay_: [Sa + Da - Sa*Da, Sc*(1 - Da) + Dc*(1 - Sa) + max(Sc, Dc)] Aug 25 21:02:58 RSAutos: just google "Android parcelable" Aug 25 21:03:08 osxorgate: use observers for retrofit interface Aug 25 21:03:09 osxorgate: because that's telling it to do work on the main thread Aug 25 21:03:20 new Handler() == main thread Aug 25 21:03:25 nmm Aug 25 21:03:36 JakeWharton, unless it's created in a different thread? :p Aug 25 21:03:47 JakeWharton: ok i see.. how then? Aug 25 21:03:54 ravilov: yes, in which case you should be punched in the face for relying on that behavior Aug 25 21:04:14 public Handler() { throw new StopWritingBugsException("C'mon!"); } Aug 25 21:04:26 man, you can be so violent sometimes Aug 25 21:04:33 osxorgate: Schedulers.io() Aug 25 21:04:43 no, I don't rely on that, I usually pass the correct thread when creating handlers Aug 25 21:05:04 yeah. lint should flag the absence of that as an error. Aug 25 21:05:08 * dcow punches ravilov anyway Aug 25 21:05:20 sry. Aug 25 21:05:25 JakeWharton: awesome, thanks.. i thought I had to find it in AndroidSchedulers Aug 25 21:05:26 * ravilov tips dcow Aug 25 21:05:30 desmin88: right now I'm using serializable to transfer over the user, any reason to why I'd use parcelable instead? Aug 25 21:05:55 Speed Aug 25 21:06:01 backwards compatibility Aug 25 21:06:02 sanity Aug 25 21:06:05 Serialization is slow as hell Aug 25 21:06:10 http://i.imgur.com/W7Z02n4.png Aug 25 21:06:16 random graph Aug 25 21:06:35 alright I'll quickly change that then Aug 25 21:09:16 If I add the action_search intent filter to the same activity with the searchview, is it going to start a second activity Aug 25 21:10:38 nvm Aug 25 21:11:35 so this won't work, how would I transfer over the "state"? http://pastebin.com/UmVNVeBv Aug 25 21:11:52 since state is a boolean Aug 25 21:12:19 http://developer.android.com/reference/android/os/Parcel.html Aug 25 21:19:53 anyone experienced Log.d statements not making it out to logcat? Aug 25 21:20:23 I'm debugging some concurrency stuff and need to check my assumptions :) Aug 25 21:22:58 alright so is there any issue with managing user login this way? Aug 25 21:23:06 creating a user object like this: http://pastebin.com/rKzx5d95 Aug 25 21:23:17 and logging in like this: http://pastebin.com/GKX2R1wt Aug 25 21:24:07 sure why not Aug 25 21:24:26 although why are those exceptions being caugh Aug 25 21:25:23 you could also use some butterknife for those views Aug 25 21:26:34 because login(); executes the asynctask and that asynctask returns true or false on user credentials Aug 25 21:27:02 User user = new User(username, password); creates the User object Aug 25 21:27:53 inside the User object there's also a asynctask which in background validates the credentials with the server and returns doInBackground true or false Aug 25 21:28:42 this asynctask gets run when you run user.login() where user.login() would return theAsyncTask().execute().get(); Aug 25 21:29:07 desmin88: I've got a feeling that there is something wrong with this, am I correct? Aug 25 21:52:49 What do you call those wishing cards that when you read them without opening them it says something offensive but when you open them, you see the full sentence and it is something nice? Aug 25 21:53:16 Hey, I came back to ask. Can I intiate Bluetooth connection between two devices without requesting user permission each time? Aug 25 21:53:36 dragorn around by any chance? i have a basic BLE question (radio / link layer) Aug 25 21:54:25 Good evening folks. Aug 25 21:54:47 one more question how would I store a parcel? Aug 25 21:55:12 RSAutos define 'store' Aug 25 21:55:58 Is there a recommended guide for somebody with 0 dev experience outside of a day of VB.Net to get started? Aug 25 21:57:49 alright sorry guys I dced Aug 25 21:58:09 so how would I store a parcel in mememory? **** BEGIN LOGGING AT Mon Aug 25 22:00:32 2014 Aug 25 22:00:46 cs_shadow you may get better responses with specific questions on what you are stuck with Aug 25 22:01:02 rather than, I want an app that does x, how do I do x ? Aug 25 22:01:06 how would I store a Parcel into the memory, as in like I have a Parcel which is a User and I'd like to store the User into memory when they login so when they start the app again then it would load the User from the stored Parcel Aug 25 22:01:12 Derstn: focus on learning java basics Aug 25 22:01:39 Nasir http://developer.android.com/guide/topics/data/data-storage.html Aug 25 22:01:49 StingRay_: I basically want to know from where to get the meaning of a particular word. I mean from some site or using some XML file with meanings. Aug 25 22:02:08 StingRay_: Or is there a more standard way to get meanings of words. Aug 25 22:02:14 cs_shadow is that not the R&D you have to do ? Aug 25 22:03:15 cs_shadow no Default ways in android I dont think Aug 25 22:03:35 StingRay_: so would this mean that I'd store the User data and not the User Parcel? Aug 25 22:03:40 StingRay_: Well, I didn't got very relevant solutions. So thought maybe I can get some ideas here. Aug 25 22:03:46 just a beginner. Aug 25 22:04:12 Nasir I dont understand your question Aug 25 22:04:23 so right Aug 25 22:04:36 there is "data" and that link gives you "data" storage options Aug 25 22:04:53 up to you to decide how and what Aug 25 22:06:18 StingRay_: so right now I have a User Object which is Parcelable, so on Login I send the User from the login screen to the Chat Intent but I'd also like to store this User Object so I can retrieve him from memory next time restart the App Aug 25 22:07:28 Nasir odd use of the word memory in the context you gave… but read that link then, 100% relevant Aug 25 22:09:24 alright thx **** BEGIN LOGGING AT Mon Aug 25 22:13:09 2014 Aug 25 22:18:04 best quit now then Aug 25 22:19:47 while you're still ahead :| Aug 25 22:20:42 i guess you could use scala ;) Aug 25 22:21:59 bankai_au there was an article on HN the other day : "swift is like scala" or something like that. didn't read it tho Aug 25 22:22:24 the very very little swift codei looked at didn't look anything like scala :S might go dig up the article Aug 25 22:26:59 oh well that was a pretty weak article based on crap, glad i read it :) Aug 25 22:27:56 i dont think it was on the front page for long :P Aug 25 22:29:13 i was just about to say "it looks like they got rid of that infuriating NS prefix", but seems not Aug 25 22:32:53 how does one create a defStyle from a custom style ? Aug 25 22:33:34 when a custom view is used and instantiated, i want it to use my own style, but referenced from attrs Aug 25 22:36:57 oo Aug 25 22:47:19 what is the eclipse equivalent of adding LOCAL_REQUIRED_MODULES to Android.mk Aug 25 22:55:30 What is are the substrings at the beginning and end of a string called? Aug 25 22:58:01 chars :) Aug 25 22:58:07 Uhh Aug 25 22:58:08 yes Aug 25 22:58:14 I dont even understand the question lol Aug 25 22:58:17 but i am looking for like prefix / sufix Aug 25 22:58:37 but since it's not stem per say, they are tags around a substring i dont know what to call them? leading and trailing tags? Aug 25 23:03:17 can I get user`s google email and access token without showing "sign in google+" button everytime user launch app? Aug 25 23:05:13 is it possible to withhold my payments from google play? Aug 25 23:06:02 mrpyo why would you want to do that ? Aug 25 23:06:13 taxes Aug 25 23:06:32 ah, no idea what taxes are so … dunno Aug 25 23:06:49 How do I set text to bold programmatically? Aug 25 23:07:00 smitzer typeface Aug 25 23:08:15 spannable. Aug 25 23:09:07 myText.setTypeface(Typeface.BOLD) Aug 25 23:09:13 ty Aug 25 23:09:22 not fine grained enough Aug 25 23:09:26 typeface is where its at Aug 25 23:09:28 shit Aug 25 23:09:30 i mean spannablews Aug 25 23:10:10 Okay quick question, how can I get search view to not start up a new activity, but just notify or otherwise tell my current activity what happened Aug 25 23:10:52 desmin88 maybe my artist brain here, but that makes no sense :) Aug 25 23:11:02 my question or spannables Aug 25 23:11:11 question Aug 25 23:11:17 I display my levels in a 3*5 grid, each is a rectangle with the level nbr, i want to indicate f the user has passed the level and if he has the global highscore. someone here sguggested using a tic/v for clearing the level and a Crown for global highscore. is there any simpler way? just adding a line around the level or something? Aug 25 23:11:58 StingRay_: Search view (the action bar search item) sends off an intent (ACTION_SEARCH) and typically starts up the activity whichever has the intent filter Aug 25 23:12:16 I'd rather just my current visible activity handle that rather than starting a new activity Aug 25 23:12:26 oh right yeah, I stay away from all the actionbar stuff, makes little sense to me most of the time Aug 25 23:13:06 I have my own state view that does whatever I want Aug 25 23:13:39 wat Aug 25 23:13:55 I have what you would call my own actionbar Aug 25 23:14:08 let me see Aug 25 23:14:11 i want a pic Aug 25 23:14:20 why? Aug 25 23:14:23 lol Aug 25 23:14:28 i want to Aug 25 23:15:10 naa, cause now I'm suspicious of you Aug 25 23:15:13 :) Aug 25 23:15:23 i just want to see what it looked like Aug 25 23:15:40 oh it looks like however my theme engine wants it to look Aug 25 23:15:49 and it has whatever the state system says it has Aug 25 23:16:01 it's just a fragment with views Aug 25 23:16:15 do you replicate the action bar look? Aug 25 23:16:26 can do, but that dependant on theme Aug 25 23:16:37 I do not have any menus on it Aug 25 23:16:42 cause thats just horrid design Aug 25 23:16:48 for a mobile phone Aug 25 23:17:19 eh Aug 25 23:17:38 hrrid = not good ? Aug 25 23:17:42 horrid* Aug 25 23:18:00 you're breaking convention Aug 25 23:18:11 no, I'm designing for use Aug 25 23:18:19 what kind of apps Aug 25 23:18:22 sms/mms Aug 25 23:18:39 eh Aug 25 23:19:24 perhaps Aug 25 23:19:53 if convention is silly and bad, I dont mind breaking it Aug 25 23:20:03 :) Aug 25 23:20:17 now i want to see what your app looks like Aug 25 23:20:33 it looks like "the theme you choose" Aug 25 23:20:38 there is no set look Aug 25 23:20:47 and user can edit the look too Aug 25 23:20:49 :) Aug 25 23:20:52 you had my curiosity, but now you have my attention Aug 25 23:20:57 show a screenshot Aug 25 23:21:00 show me a pic of default theme? pls. Aug 25 23:21:11 unless you are EMBARRASSED Aug 25 23:21:55 I'm and Yorkshireman from Britain, I seldom get embarrassed Aug 25 23:22:00 TRIPLE DOG DARE Aug 25 23:22:26 now you have to do it Aug 25 23:22:35 actually I dont.. Aug 25 23:22:53 why would I "have" to ? Aug 25 23:23:03 its a joke Aug 25 23:23:07 oh Aug 25 23:23:20 apparently yorkshireman from britain never grew up with triple dog dares Aug 25 23:23:33 got no idea what that means :) Aug 25 23:23:38 dog dare ? Aug 25 23:23:39 i think it's a weird americanism Aug 25 23:23:40 wft? Aug 25 23:24:01 desmin88 that like a new age kids thing ? Aug 25 23:24:07 https://www.google.com/search?q=triple%20dog%20dare Aug 25 23:24:11 thats old Aug 25 23:24:16 its not new age whatsoever Aug 25 23:25:07 a film? Aug 25 23:25:16 from 4 years ago ? Aug 25 23:25:18 no Aug 25 23:25:21 desmin88 how old are you ? Aug 25 23:25:27 the fuck Aug 25 23:25:34 who doesnt know about dog dares Aug 25 23:26:01 maybe 99% of people outside the US ? Aug 25 23:26:05 guessing :) Aug 25 23:26:26 so everybody in commie land Aug 25 23:26:28 murica. Aug 25 23:27:07 "The Child and Childhood in Folk-Thought" - 1896 Aug 25 23:27:10 references the double dog dare Aug 25 23:27:20 so unless 19th century is 'new age' Aug 25 23:29:40 so much talk and no screenshot Aug 25 23:29:43 yorkshiremen sounds like a reference to monty python Aug 25 23:29:59 * desmin88 agrees with sq Aug 25 23:30:29 desmin88 sq maybe you have lots of free time atm I dont Aug 25 23:30:43 you have nough time to tlk for the past couple minutes on irc Aug 25 23:30:46 a screenshot takes less Aug 25 23:30:51 cant be arsed taking a current screenshot, wiping the personal data or blurring it etc Aug 25 23:31:01 https://www.youtube.com/watch?v=Xe1a1wHxTyo Aug 25 23:31:11 weak excuse imo Aug 25 23:31:17 as if you don't have a less recent screenshot Aug 25 23:31:45 I'm developing an app and I've got like 100 screenshots of it ready in Dropbox Aug 25 23:32:46 yeah I probably have, well not on db Aug 25 23:32:50 dropbox* Aug 25 23:33:01 I also have the theme thumbnails live too Aug 25 23:33:12 OK I'm ready Aug 25 23:33:15 show Aug 25 23:33:17 also the promo images Aug 25 23:33:26 god the anticipation is killing me Aug 25 23:33:31 well 1st pass promo images Aug 25 23:33:42 placeholders really :) Aug 25 23:33:45 triple dog dares are a worldwide indisputable force Aug 25 23:33:51 wtf is this "no i don't have to do it" BS Aug 25 23:34:00 damn your app must be so cool Aug 25 23:34:14 triple dog dares are no trifle. if someone triple dog dares you to do ANYTHING you must do it or ELSE Aug 25 23:34:14 it does a few cool things :) Aug 25 23:34:15 can't wait for you to finish it already Aug 25 23:34:32 im about to explode from excitement Aug 25 23:34:38 no matter what it does I must have it Aug 25 23:34:58 well it's on the play store in "open beta" :) Aug 25 23:35:16 still a ways from me taking beta off the name though Aug 25 23:35:17 :( Aug 25 23:35:57 what's the name Aug 25 23:35:58 ok whats the name of it Aug 25 23:36:20 hope I won't have to sell the house to buy it Aug 25 23:36:22 hahha it's like waving a bone in front of dogs Aug 25 23:36:34 yeah no idea what this fuss is tbh Aug 25 23:36:37 :) Aug 25 23:36:54 woof Aug 25 23:37:13 it is not in a state where I want to say, here look at this….soon though Aug 25 23:37:25 ffs stop being a tease Aug 25 23:38:20 desmin88 you working on an app right now ? Aug 25 23:38:25 yeah Aug 25 23:38:30 care to share it ? Aug 25 23:38:32 sure Aug 25 23:38:37 give me a sec to get a screenie Aug 25 23:38:38 oh ffs, programmers Aug 25 23:38:48 :p Aug 25 23:38:51 artist/designers dont do that shit! Aug 25 23:39:44 shouldnt artists be proud of their work Aug 25 23:39:50 and not want to keep it from public eyes Aug 25 23:39:50 never Aug 25 23:40:00 well I'm a TD artist Aug 25 23:40:03 so no Aug 25 23:40:05 never Aug 25 23:40:09 app I'm working on: https://www.dropbox.com/s/zokl9a0hkjx4uwx/Screenshot_2014-08-26-02-38-56.png?dl=0 Aug 25 23:40:14 not proud only see bad things Aug 25 23:40:40 made the icons myself Aug 25 23:40:48 so I'm an artist too! Aug 25 23:40:59 3 cats ? Aug 25 23:41:23 cute but …but I really want to press that now Aug 25 23:41:30 what does it do ? Aug 25 23:41:37 reddit link ;) Aug 25 23:41:50 I'm.. I'm not read to say, StingRay_ Aug 25 23:43:15 sq you in west Europe ? Aug 25 23:43:23 east sorry Aug 25 23:43:31 east, why? Aug 25 23:43:40 ah just timestamps on that shot Aug 25 23:43:46 2h ahead of me Aug 25 23:43:56 ah Aug 25 23:44:04 sweed ? Aug 25 23:44:09 latvia Aug 25 23:44:22 cool Aug 25 23:44:38 who wants to hear some latvian potato jokes Aug 25 23:44:56 StingRay_: http://i.imgur.com/KKtJQ4b.png Aug 25 23:45:02 awe in its glory Aug 25 23:45:43 you've been working on that one for about 6 months haven't ya ? Aug 25 23:46:00 no the other one is done Aug 25 23:46:03 this is my 'fun' Aug 25 23:46:37 saint of the day?.. Aug 25 23:46:57 I would never even Aug 25 23:46:58 what is unclear about that Aug 25 23:47:13 no, nothing.. Aug 25 23:47:38 ok then Aug 25 23:47:49 what's that icon on the right hand side of the action bar Aug 25 23:48:14 custom action bar icon Aug 25 23:48:17 the knights templar Aug 25 23:48:45 the app icon is a little different Aug 25 23:49:07 the right side Aug 25 23:49:13 oh Aug 25 23:49:17 where menu icon usually is Aug 25 23:49:28 sorting Aug 25 23:49:35 i dont have an overflow yet Aug 25 23:49:42 oh Aug 25 23:49:48 yeah but wouldn't you love to see a screenshot of StingRay_'s app! (hehe) Aug 25 23:50:00 bankai_au: im starting to believe it doesnt exist Aug 25 23:50:11 cool, go with that Aug 25 23:50:21 sq: See the star? Users click it to save that post. Then they sort by either saved posts or the feed Aug 25 23:51:13 um.. so.. they sort by.. there is star/there's no star? Aug 25 23:51:41 yes you tap the star to 'favorite' it Aug 25 23:52:03 that's hardly "sorting"... Aug 25 23:52:34 but I see, I just never encountered that icon Aug 25 23:52:48 ok i used the wrong word Aug 26 00:28:13 Salaam/Hello all! 32gb sdcard. Want to partition so I can use 7gb to install apps directly. Can anyone guide "what kind" of partition, since my Ext2 partition is not seen by the phone! Aug 26 00:29:06 taariqq wrong channel Aug 26 00:29:06 wroong irc Aug 26 00:29:46 try #android Aug 26 00:31:03 cool StingRay, thanks ... yep, they already helping me :) Aug 26 00:37:21 when I'm ing a layout, which layout params take precedence? those in the layout file, or in the tag? Aug 26 00:37:25 I assume the latter... Aug 26 00:38:50 you mean the layout params for the join ? Aug 26 00:39:06 as in the include root to layout container ? Aug 26 00:41:06 "SELECT id FROM posts WHERE slug = saints" why would it be giving me an error where it thinks saints is a column Aug 26 00:41:33 not quoted Aug 26 00:42:12 thinks you are assigning saints column to slug var Aug 26 00:42:26 or slug column I forget Aug 26 00:43:39 damn Aug 26 00:44:15 whats the matter? Aug 26 00:45:32 "SELECT id FROM posts WHERE slug = 'saints'" is giving me a cursor size of zero Aug 26 00:45:43 when my database clearly has this info in it Aug 26 00:46:31 blankspace perhaps Aug 26 00:46:40 this an android database ? Aug 26 00:46:45 yes it is Aug 26 00:46:47 _id Aug 26 00:47:02 i just changed it to select * Aug 26 00:47:04 still nothing Aug 26 00:47:16 oh then there is no row there that has that Aug 26 00:47:19 simples Aug 26 00:47:42 but there is Aug 26 00:50:57 Saints Aug 26 00:51:22 figured it out Aug 26 00:59:59 desmin88 typo right :) Aug 26 01:00:33 no wrong slug Aug 26 01:00:44 i had post slug vs post's category's slug Aug 26 01:01:25 desmin88 you have apps on play right now ? Aug 26 01:01:45 whos askin' Aug 26 01:01:56 erm, me Aug 26 01:02:08 maybe i do maybe i dont Aug 26 01:02:17 oh, ok Aug 26 01:02:33 if you show me your app Aug 26 01:02:35 ill show you mine Aug 26 01:02:37 its not gay that way Aug 26 01:02:53 I will show anyone my app when it's done Aug 26 01:03:21 just a waste of time answering questions or comments on things that are not finished Aug 26 01:03:31 thats the worry when you show something that is no finished Aug 26 01:04:41 thats not really a worry Aug 26 01:05:12 well i kinda is if you have not got lots of time Aug 26 01:05:24 depends what you worry about I guess Aug 26 01:05:28 me it's time Aug 26 01:05:51 you shouldnt worry about time so much Aug 26 01:06:14 hmmm, let me guess you are 17-25 ish ? Aug 26 01:06:27 7 year ballpark Aug 26 01:06:29 :) Aug 26 01:07:08 if you worry about time so much you shouldnt be in this irc channel talking to me Aug 26 01:07:12 besides what does it matter my age Aug 26 01:07:27 matter lots in the way we think Aug 26 01:07:57 age really isnt a factor Aug 26 01:08:08 in what? Aug 26 01:08:22 age is a factor in many many things Aug 26 01:08:24 lol Aug 26 01:09:01 you say it like the only reason two people may think different is age Aug 26 01:09:20 maybe thats the way you read it, that was not my intent Aug 26 01:09:39 people think different for countless reasons Aug 26 01:14:12 "just a waste of time answering questions or comments on things that are not finished" Aug 26 01:14:16 thats not even a waste of time Aug 26 01:14:30 constructive comments and questions during the process of making an app are great Aug 26 01:14:37 indeed Aug 26 01:14:48 but pointing out things on my to do list is a waste Aug 26 01:14:55 of my time saying, oh thats on the list Aug 26 01:15:17 wow Aug 26 01:15:45 having a discussion on something that is in-progress is good in a team with focus Aug 26 01:15:55 but not a random focus group test Aug 26 01:16:23 you seem a little high-strun Aug 26 01:16:26 strung* Aug 26 01:16:43 no, just been at many focus tests in my career Aug 26 01:16:45 :) Aug 26 01:17:14 granted console games are a bit different, but many principals are shared Aug 26 01:36:54 this is so awesome for runners http://www.gizmag.com/runscribe-fitness-tracker/33502/ Aug 26 01:37:08 * g00s wants :) Aug 26 01:37:44 g00s i just wish i could wear my fitbit on my ankle Aug 26 01:38:08 i thought i saw another version of this where the sensors were in the insole Aug 26 01:38:10 idky its not possible Aug 26 01:38:40 g00s a friend of my worked on a startup that made something like that Aug 26 01:38:44 retrofit pls. "api/core/get_posts/?post__in=7751&post__in=7761&post__in=20710" when using getPosts(@Query("post__in[]") int[] paramInt, ...); Aug 26 01:38:48 so LG is coming out with a real round watch because the Moto 320 is not real round Aug 26 01:38:55 apparently its in fcc(or some gov agency) testing right now Aug 26 01:39:07 http://www.gizmag.com/round-g-watch-r-teaser/33491/ Aug 26 01:39:11 jug6ernaut would it be publicly available at some point ? Aug 26 01:39:23 g00s as soon as its approved Aug 26 01:39:32 ah, so fda approval ? Aug 26 01:39:54 something like that, i forgot what approval exactly Aug 26 01:40:02 (he told me last week already forgot lol) Aug 26 01:40:14 shmooz man square, circle ... ZZzzz Aug 26 01:40:15 trying to find the website Aug 26 01:40:34 jug6ernaut cool thanks Aug 26 01:43:52 g00s can't remember lol...ill find out tomorow Aug 26 01:44:20 jug6ernaut Boogio ? Aug 26 01:45:13 hmmm no Aug 26 01:45:50 yeah, curious about it, let me know if you find out Aug 26 01:46:40 will do Aug 26 01:46:56 So it seems retrofit isn't handling the array correctly. "getPosts(@Query("post__in[]") int[] postIds, ...)" translates to "?post__in=7751&post__in=7761&post__in=20710" and not "?post__in[]=7751&post__in[]=7761&post__in[]20710 Aug 26 01:48:31 thx Aug 26 01:49:36 desmin88 retrofit just uses gson(by default) Aug 26 01:49:47 not for creating the URL Aug 26 01:49:55 what he said Aug 26 01:50:19 oh, ur trying to pass an array into the url? Aug 26 01:50:43 correct Aug 26 01:51:25 what are you expecting it to translate to? Aug 26 01:51:54 "?post__in[]=7751&post__in[]=7761&post__in[]=20710" Aug 26 01:54:38 so your problem is the [] is being stripped from the query param name? Aug 26 01:54:42 correct Aug 26 01:54:56 i doubt thats specific to arrays Aug 26 01:56:03 JakeWharton: is this something on my end? Aug 26 01:56:38 not sure if retrofit supports that but im trying to find out Aug 26 01:57:50 if i had to guess the url encoder is stripping them Aug 26 02:00:31 perhaps Aug 26 02:00:40 ill try going through retrofits source Aug 26 02:05:10 ok scratch that Aug 26 02:05:17 time to curl into fetal position and cry Aug 26 02:08:37 lol Aug 26 02:09:16 desmin88 if u really wanna know u could step through he code and see how the query name is being built Aug 26 02:10:24 well i have to know, its part of my apps core functionality Aug 26 02:10:28 so i will attempt that Aug 26 02:12:26 as far as can see from the source it doesnt seem to be doing anything specifically to the query_param name Aug 26 02:12:47 Look at RequestBuilder Aug 26 02:13:23 Yeah thats where I'm looking at now, addQueryParam Aug 26 02:16:35 looking there too. Aug 26 02:20:20 i cant see anywhere where it would get stripped Aug 26 02:21:35 me neither Aug 26 02:22:21 where are you seeing the url with the stripped [] at Aug 26 02:22:51 response.geturl Aug 26 02:23:46 response? not request? Aug 26 02:24:08 In the callback Aug 26 02:24:37 so is the request going through? If its in the response who knows where its being stripped at Aug 26 02:24:56 yes it goes through Aug 26 02:25:27 -_- i mean was the request successful Aug 26 02:25:34 yes it was Aug 26 02:25:38 well Aug 26 02:25:41 it gets a response Aug 26 02:25:43 use List, not stupid native arrays Aug 26 02:25:43 just not a correct one Aug 26 02:25:44 ?foo[]=Bar&foo[]=Baz Aug 26 02:25:47 works for me Aug 26 02:26:25 that makes it so much easier Aug 26 02:26:31 i thought that was my original problem Aug 26 02:26:34 but i never changed it back Aug 26 02:26:34 -_- Aug 26 02:27:43 let me try with a list Aug 26 02:29:01 .setLogLevel(BASIC), also Aug 26 02:29:09 you can see the actual URL on the way out Aug 26 02:30:19 good idea Aug 26 02:31:03 ahh Aug 26 02:31:05 CME Aug 26 02:31:20 cme? Aug 26 02:31:30 concurrent modification Aug 26 02:31:42 :| Aug 26 02:33:55 figured it out Aug 26 02:34:08 thanks guys Aug 26 02:34:12 well Aug 26 02:34:14 what was it Aug 26 02:35:04 the CME was preventing retrofit from doing its thing Aug 26 02:35:19 I sublisted a list and then removeAll'ed the sublist from the list Aug 26 02:35:21 kinda dumb Aug 26 02:36:35 well Aug 26 02:36:38 at least u got it working Aug 26 02:36:44 and learned something in the process lol Aug 26 02:36:49 yup **** ENDING LOGGING AT Tue Aug 26 02:59:58 2014