**** BEGIN LOGGING AT Tue Aug 05 03:00:00 2014 Aug 05 03:04:06 is there a service/api that gives me an illustration of a city's icon? Aug 05 03:04:48 A what? Aug 05 03:05:23 if i set a layout's focusable and clickable to false, does that mean that all of its descendants are neither clickable nor focusable? Aug 05 03:06:37 pfn: I want to grab say golden gate illustration (not photo) for SF zip codes or Sydney opera house etc -- Aug 05 03:06:59 That's certainly not standard... Aug 05 03:07:15 Because the gg bridge isn't the icon for the city Aug 05 03:07:18 yeah -- but you never know :) Aug 05 03:07:32 as long as something identifiable Aug 05 03:08:21 here is bing image search: https://www.bing.com/images/search?q=san+francisco+&go=Submit&qs=n&form=QBIR&pq=san+francisco+&sc=8-14&sp=-1&sk= Aug 05 03:08:31 but how to get illustration? Aug 05 03:08:42 photos are complex ... Aug 05 03:08:44 well Aug 05 03:08:49 maybe I should just use a photo Aug 05 03:09:53 shipit if you have the photo, you can use some image processing to get a 'painter' version which is more distilled Aug 05 03:10:13 GIMP has that filter Aug 05 03:10:17 g00s: interesting! Aug 05 03:10:26 no, this is in the app itself Aug 05 03:10:46 So, simple, bing image search the city name Aug 05 03:10:52 Take the first result Aug 05 03:10:53 I'm building an app for job search, thought it might be nice touch to show the city the user is searching around Aug 05 03:11:00 And run it through a filter Aug 05 03:11:50 shipit i can think of a few commercial ones (adobe Ps Oil filter) atc, but GIMP being open source, i bet you can grab the plugin and use it for some automated thing Aug 05 03:11:54 y, max I can think is play with opacity and blur Aug 05 03:13:20 I'm writing this app to learn gradle and Rx, but the UX is getting to be a massive time sync! Aug 05 03:14:32 yeah i sweat my information architecture quite a bit - the lower level UI stuff I just use stock crap Aug 05 03:14:53 not enough time for custom views etc Aug 05 03:15:12 it's harder on Android compared to iOS Aug 05 03:15:59 eg replicate the Google Now search bar in Android Aug 05 03:51:17 hm http://www.androidpolice.com/2014/08/04/the-play-stores-refund-window-is-now-seems-to-be-around-2-hours-for-many-paid-apps-and-games-not-15-minutes/ Aug 05 03:51:32 thats cool Aug 05 03:56:28 well ... that's enough for a quick preview on the can, huh? Aug 05 03:56:50 I installed android studio when I go to edit configuration under modules theres no modules. how do i fix this Aug 05 03:57:05 devslash edit the .gradle file of course :P Aug 05 03:57:13 fucking wizards ! Aug 05 03:57:17 where is it locatged Aug 05 03:57:20 where is it located Aug 05 03:57:33 build.gradle in a few places Aug 05 03:57:39 ive been using android studio for all of 3 minutes Aug 05 03:57:47 i dont have one Aug 05 03:59:47 can anyone tell me how to fix this error ? Aug 05 04:01:19 that usually happens when your environment isn't setup properly or you haven't synced your gradle Aug 05 04:01:34 if you created the project with AS it will have created a build.gradle for you Aug 05 04:03:12 no i didnt Aug 05 04:03:20 i imported it from another ide Aug 05 04:03:53 so do i have to redo the whole thing ? Aug 05 04:04:31 no, but if you don't know anything about gradle, it might be easier to start a new project and dump the source into that existing project Aug 05 04:04:49 Id rather not. are you familiar with AIDE ? Aug 05 04:08:12 is that where the code came from ? Aug 05 04:11:16 yes Aug 05 04:11:33 i know that the project that it creates is compatible with eclipse Aug 05 04:11:52 well, use eclipse then Aug 05 04:12:16 i do not want to i want to make it work Aug 05 04:13:25 ok then, see above, that's the easiest way Aug 05 04:14:24 so everyone who migrated from eclipse to AS has to recreate all of their projects from scratch ? is that what you're telling me ? Aug 05 04:14:38 devslash eclipse has a gradle export Aug 05 04:14:45 or the ADT does, i never used it Aug 05 04:15:51 im not using eclipse Aug 05 04:16:45 devslash so? you asked bankai_au a question about everyone migrating from eclipse Aug 05 04:16:56 i don't know anyone who used AIDE Aug 05 04:17:38 i asked because he said that i need to create a new project Aug 05 04:21:56 capella http://www.securityweek.com/mozilla-accidentally-dumps-info-76000-developers-public-web-server Aug 05 04:22:35 yah - i got my passwords reset Aug 05 04:23:20 devslash: i've just imported eclipse project directly in to AS, its working fine for me Aug 05 04:23:37 did it create a build.gradle for you ? Aug 05 04:24:36 yep Aug 05 04:25:18 ok let me try it again Aug 05 04:26:04 thanks Aug 05 04:26:20 `ls -h` doesn’t work on asb shell? Aug 05 04:26:39 not much does Aug 05 04:26:58 bankai_au: yeah, strange only `-h` doesn’t work Aug 05 04:27:05 i think they should call it snoozybox Aug 05 04:27:24 'only'? it only supports maybe three switches Aug 05 04:27:44 bankai_au rx still -rc4, are you holding up the works somehow ? :P Aug 05 04:27:53 kamol: you have to use -h with -l i guess Aug 05 04:28:11 g00s: my todo list is sooooooooooooooooo long atm, no time for rx :( Aug 05 04:28:14 -h will print human readable sizes, and sizes will only come with -l Aug 05 04:29:09 bhargavg: yeah, try :) Aug 05 04:31:49 so now im getting this build error: Error:Execution failed for task ':app:processDebugManifest'. Aug 05 04:31:49 > Manifest merger failed : uses-sdk:minSdkVersion 11 cannot be smaller than version L declared in library com.android.support:support-v4:21.0.0-rc1 Aug 05 04:32:49 seems obvious Aug 05 04:32:54 devslash: you should use a different version of support lib Aug 05 04:33:00 how do i fix it Aug 05 04:33:16 compile 'com.android.support:support-v4:19.+' Aug 05 04:33:31 maybe 20.+ Aug 05 04:33:38 how Aug 05 04:33:39 yeah g00s is right Aug 05 04:33:54 do i need to edit build.gradle ? Aug 05 04:34:17 yeah Aug 05 04:34:30 compile 'com.android.support:support-v4:20+' Aug 05 04:34:31 right ? Aug 05 04:34:39 devslash 20.+ Aug 05 04:34:49 technically, + is bad practice, but for now whatever Aug 05 04:34:50 oh thanks Aug 05 04:34:58 it just means 20 or above Aug 05 04:35:02 right ? Aug 05 04:35:26 minor version can be higher Aug 05 04:35:32 20.0, 20.1, 20.2 Aug 05 04:36:14 im getting this error now: Error:(68, 18) error: strings in switch are not supported in -source 1.6 Aug 05 04:36:14 (use -source 7 or higher to enable strings in switch) Aug 05 04:36:23 i dont see -source in build.gradle Aug 05 04:36:55 devslash may be a good time to look at the gradle docs Aug 05 04:37:01 i believe you will need 1.7 jdk Aug 05 04:37:04 why Aug 05 04:37:11 i do Aug 05 04:37:15 http://tools.android.com/tech-docs/new-build-system/user-guide Aug 05 04:37:35 jdk1.8.0_11 Aug 05 04:38:28 compileOptions { Aug 05 04:38:29 sourceCompatibility = JavaVersion.VERSION_1_7 Aug 05 04:38:29 targetCompatibility = JavaVersion.VERSION_1_7 Aug 05 04:38:29 } Aug 05 04:38:54 jdk 1.8 is unsupported for building i think, i might be wrong. Aug 05 04:40:49 i think you can use it Aug 05 04:41:07 as long as language level is 7 Aug 05 04:41:42 ok i got it working Aug 05 04:41:50 as a quick fix I rewrote my switch Aug 05 04:43:02 its working with 1.8 jdk? Aug 05 04:43:22 yea Aug 05 04:44:21 ok ive got another question for you. If I include a file in my assets, it will always be included in the resulting apk right ? Aug 05 04:46:07 src/res ? yep Aug 05 04:46:25 Assets, not res, presumably Aug 05 04:47:03 how do i get the full path of the asset in my code Aug 05 04:50:22 devslash: http://stackoverflow.com/q/11820142#11820891 Aug 05 04:51:38 thanks Aug 05 04:51:51 so assets are compiled directly into the apk right ? Aug 05 04:52:33 http://developer.android.com/tools/projects/index.html Aug 05 04:53:42 if my app requires root is there anything that would prevent me from creating an executable and running it Aug 05 04:54:35 devslash: app requires root? Aug 05 04:54:43 yes Aug 05 04:54:59 I didnt understand Aug 05 04:55:04 I am developing a TrueCrypt front end for Android Aug 05 04:56:16 are you trying to say 'If my app requires `rooted device`....'? Aug 05 04:56:34 yea Aug 05 04:57:04 sorry im multi tasking Aug 05 04:57:33 we all do :) Aug 05 05:02:12 except me Aug 05 05:02:18 i can't even singletask Aug 05 05:03:55 Shouldn't need root to write a Truecrypt front end Aug 05 05:04:30 Only reason Truecrypt needs root is either for raw disk access or mounting Aug 05 05:04:40 You should need neither on android Aug 05 05:04:44 well what good is it if you cant mount? Aug 05 05:04:50 And just provide a virtual vfs Aug 05 05:04:52 thats what my app does Aug 05 05:05:30 i thought truecrypt is now dead Aug 05 05:05:43 http://krebsonsecurity.com/2014/05/true-goodbye-using-truecrypt-is-not-secure/ Aug 05 05:05:43 You can even integrate into kitkat storage access framework without root Aug 05 05:06:12 thats not accurate Aug 05 05:06:48 version 7.1a is secure. the developers released version 7.2 and said that it isnt secure. seems that they were forced to shut it down Aug 05 05:08:20 i have a working binary compiled for android based on 7.1a, the last known working version before that stuff happened Aug 05 05:09:47 devslash question, why use truecrypt on android when you can use its system encryption ? Aug 05 05:10:51 g00s, not ignoring you on phone, encrypted containers without having to deal with system encryption is valuable Aug 05 05:10:56 because you're missing the point Aug 05 05:11:14 devslash ok, so you can put the truecrupt container on something like dropbox Aug 05 05:11:18 i see Aug 05 05:11:23 lots of people including me have tC volumes created on mac/windows/linux Aug 05 05:11:30 yea Aug 05 05:11:48 mount it on your phone,laptop,desktop wherever Aug 05 05:11:55 im just adding support for 1 more o.s Aug 05 05:12:01 cool Aug 05 05:13:24 is there a special permission needed for root apps to write to /data/data/mypackage ? Aug 05 05:13:33 I only use Truecrypt to hide my porn stash Aug 05 05:13:42 No Aug 05 05:15:50 The apps themselves are never root, they can just execute programs with root permissions Aug 05 05:21:29 yeah from the looks of it they got threatened by NSA or something Aug 05 05:25:12 omg it seems IT Crowd is making season 5, could it be true ? Aug 05 05:26:25 oh no, ok I was wrong, they just renamed 'The Last Byte' Aug 05 05:48:12 wow, Chrome still has no native way of preventing animated GIFs? fucking lame Aug 05 06:02:45 I have followed ContactsList training code on google but for some reason the alphabetindexer doesn't work... Aug 05 06:09:00 g00s: how goes it? Aug 05 06:10:36 hey detachYo , sketching some UI stuff on paper Aug 05 06:10:46 detachYo what are you up to ? Aug 05 06:11:23 LoaderCallbacks :/ Aug 05 06:11:37 UI sketches sound fun Aug 05 06:12:13 except when the IA is a Klein Bottle :/ Aug 05 06:14:48 IA =? Information Architecture? Aug 05 06:14:55 yeah Aug 05 06:15:28 :D Aug 05 06:15:29 Hmm, wouldn't it indicate that something is wrong if it is Klein Bottle? Aug 05 06:15:47 Just saying that if its not simple, its wrong :) Aug 05 06:15:57 yeah :D Aug 05 06:17:03 well, one thing i'm struggling with, is that i have 3 spinners that inpact the view : A, B, and C. Think of these as filters of different kinds Aug 05 06:17:26 while the spinner allows selecting an item, i'm not sure where to put 'Manage these items' Aug 05 06:17:40 toying with making that the first item in the spinner ... Aug 05 06:17:59 hmm, so 'Manage these items' would act like a header/label? Aug 05 06:18:02 or putting that in a nav drawer (navigate to manage a, manage b, manage c) Aug 05 06:18:17 yeah ... kinda breaks the spinner though Aug 05 06:18:58 excuse my noobness, spinners are dropdown lists? Aug 05 06:19:04 wellyeah Aug 05 06:19:06 oops Aug 05 06:19:08 yeah Aug 05 06:19:27 why not hav esomething like this Aug 05 06:19:30 LABEL 1 Aug 05 06:19:32 Spinner here Aug 05 06:19:34 LABEL 2 Aug 05 06:19:36 Spinner here Aug 05 06:19:38 LABEL 3 Aug 05 06:19:41 Spinner here Aug 05 06:20:12 they are under the AB, like Aug 05 06:20:19 oh ok Aug 05 06:20:26 do you mean put another button next to them like 'manager' or something ? Aug 05 06:20:38 More like under, since 4 columns would look clunky Aug 05 06:20:47 yesh this sucks Aug 05 06:21:03 AB = sections or is it an acronym? Aug 05 06:21:11 Ab = action bar Aug 05 06:21:25 To be honest, I see nothing wrong with Aug 05 06:21:39 Select items to manage (this is header) Aug 05 06:21:48 Aug 05 06:21:52 [ Continue Button ] Aug 05 06:22:08 Unless your spinners don't fit on the screen either Aug 05 06:22:20 if they have long texts, that is. Aug 05 06:23:55 Hm, if it was up to me, I would probably put spinners in separate lines and have 5 lines (header and button (if any) included) Aug 05 06:24:42 the data is most important, spinners need to be discrete Aug 05 06:24:53 i think i will do this like AS filters spinner Aug 05 06:25:17 No filters / Edit configurations / filter1 / filter 2 ... Aug 05 06:25:30 (for logcat) Aug 05 06:25:48 having hard time visualizing that Aug 05 06:26:00 detachYo do you use AS ? Aug 05 06:27:25 Yup Aug 05 06:28:00 when you have the android logcat up, its the rightmost spinner / dropdown Aug 05 06:28:09 some call it combobox Aug 05 06:29:22 hm, time for bed. gnight Aug 05 06:29:36 Log Level [ Dropdown ] ( search string ) [ Filter dropdown ] Aug 05 06:29:42 is that what you're talking about? Aug 05 06:29:56 yeah [ filter dropdown ] Aug 05 06:30:18 problem is, 'manage filters' shows a dialog which is like a combined master / detail Aug 05 06:30:27 on the left, having a list of all the filters Aug 05 06:31:07 Ah, makes more sense now (I think) Aug 05 06:53:35 On a nested exception like this: java.lang.RuntimeException: ... Caused by: org.springframework.http.converter.HttpMessageNotReadableException ... Caused by: java.net.SocketTimeoutException: Read timed out. which exception should I actually catch? Aug 05 07:26:31 hi all, how can I cancel a timer that was started with "Intent intent = new Intent(AlarmClock.ACTION_SET_TIMER)"? Aug 05 07:29:56 I'm attempting to have a ListView which changes the view of the item clicked, but am running into problems when scrolling etc. Any tips on this ? Aug 05 07:32:36 I'm back for yet another attempt at getting help.. Is there anybody around that can help me in getting my NDK project to link properly? I'm using Android Studio and can't seem to get all the dependencies hooked up properly. Aug 05 07:33:52 in particular I"m hooking up Google Protobuf, OpenCV and a custom lib. Maybe some help with my Android.mk file? Aug 05 07:36:06 ls Aug 05 07:45:48 anybody? Aug 05 07:55:16 what does the notifyChange() do on contentResolver()? Aug 05 07:58:55 i am having trouble installing android studio. it says that i need to install a jdk. but i already have a jdk installed. i also have the JAVA_HOME and JDK_HOME env vars set. what else am i missing here? Aug 05 08:00:35 what os are you on? Aug 05 08:00:39 lizzini: on windows? try restart? Aug 05 08:00:51 oxs Aug 05 08:00:57 osx Aug 05 08:01:08 then logout, log back in Aug 05 08:01:13 if you haven't already Aug 05 08:01:15 i just restarted Aug 05 08:01:48 maybe multiple jdk problem? Aug 05 08:01:52 is it actually opening android studio? Aug 05 08:01:56 oh Aug 05 08:01:56 sorry Aug 05 08:01:59 "installing" Aug 05 08:02:18 java version "1.7.0_45", javac 1.7.0_45 Aug 05 08:02:38 Hello guys I am looking forward to implement Google sinign in android client Aug 05 08:02:49 but I want my web serveer to authenticate user with google and get the profile info from google Aug 05 08:02:59 any idea on how to proceed with this ? Aug 05 08:03:10 I have seen - https://developers.google.com/+/mobile/android/sign-in#enable_server-side_api_access_for_your_app Aug 05 08:03:57 so offer users to sign in with google? Aug 05 08:04:41 Yes Aug 05 08:04:56 user signs in in andorid using Google account Aug 05 08:05:03 I send a token to server Aug 05 08:05:10 nicxz detachYo any suggestions for what i should try? Aug 05 08:05:22 server gets the profile info and authenticates userr Aug 05 08:07:22 lizzini, what is the exact message you're getting and after what step? Aug 05 08:09:10 i dlled android studio, moved it to app dir, double clicked the icon, and then i get the following msg: "To open "Android Studio," you need a Javaa SE6 runtime. Would you like to install one now?" Aug 05 08:09:30 java 7 should be fine right? the docs said >=1.6 Aug 05 08:09:37 yeah, 7 should be Aug 05 08:09:39 hang on 1 sec Aug 05 08:09:42 ok Aug 05 08:10:32 and java -version in terminal gives you the correct java version, right? Aug 05 08:10:43 what does echo $JAVA_HOME say Aug 05 08:10:53 java version "1.7.0_45" Aug 05 08:10:54 Java(TM) SE Runtime Environment (build 1.7.0_45-b18) Aug 05 08:10:54 Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode) Aug 05 08:11:21 detachYo: /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home Aug 05 08:12:11 lizzini: did you download and install the official OSX java package? Aug 05 08:13:19 meaning, from official websites Aug 05 08:13:20 ? Aug 05 08:13:22 i dont remember Aug 05 08:13:39 i would think so though Aug 05 08:14:14 hmm Aug 05 08:14:22 it would be a good idea to follow the official links for downloads Aug 05 08:14:30 i am sure they would elliminate some of the problems you are facing Aug 05 08:15:37 so reinstall the jdk? Aug 05 08:16:48 yes, I would recommend Aug 05 08:16:55 let me find you the official link Aug 05 08:17:49 http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-install-faq.html ? Aug 05 08:17:52 lizzini: this should do it Aug 05 08:17:52 http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html Aug 05 08:17:59 thanks Aug 05 08:18:17 no prob Aug 05 08:18:30 let me know how it goes Aug 05 08:19:11 On a nested exception like this: java.lang.RuntimeException: ... Caused by: org.springframework.http.converter.HttpMessageNotReadableException ... Caused by: java.net.SocketTimeoutException: Read timed out. which exception should I actually catch? Aug 05 08:19:52 detachYo: i will Aug 05 08:21:17 Syzygy: it's always good idea to catch all potential exceptions Aug 05 08:21:38 Make sure you have some unit testing, to have an idea what can fail Aug 05 08:21:43 even the generic RuntimeException? Aug 05 08:22:11 do you know if there is a case when RuntimeException can happen? Aug 05 08:22:56 apperently, since the example i just linked is from an actuall stacktrace Aug 05 08:23:43 well, then you have your answer :) Aug 05 08:24:07 so I'll just catch everything. Aug 05 08:24:09 I would start with SocketTimeoutException Aug 05 08:24:14 well, not really Aug 05 08:24:21 start with SocketTimeoutException Aug 05 08:24:28 see if that fixes it.. heres what happened Aug 05 08:24:50 apperently it can't even be thrown Aug 05 08:24:55 read timed out -> exception thrown for timeout Aug 05 08:25:11 had it not timed out, that exception would have not been thrown Aug 05 08:25:13 however Aug 05 08:25:27 message can be not readable, even if it didn' time out, correct? Aug 05 08:25:38 so, since it was not readable Aug 05 08:25:57 "the reader" could not run it, therefore the runtimeexception was thrown Aug 05 08:25:59 I don't actually know. I assume it's supposed to be readable. Aug 05 08:26:06 well it says, read timed out. Aug 05 08:26:12 :) Aug 05 08:26:13 sure Aug 05 08:26:44 well, I'll catch them in that order Aug 05 08:27:05 if you want to get over with as few catches as possible, you would need to start with RuntimeException Aug 05 08:27:13 detachYo: brb Aug 05 08:27:15 but you don't want that Aug 05 08:27:33 its a good practice to have solid application capable of handling edge cases Aug 05 08:27:49 lizzini: ok, though I might not stay here for long Aug 05 08:27:55 lizzini: how's installation going? Aug 05 08:28:02 yeah i know, more specific exceptions should be caught first Aug 05 08:28:32 yup.. here's an example... Date date = formatter.format(someStringDay); Aug 05 08:28:36 you always want to catch that Aug 05 08:28:48 (I believe you HAVE to.) Aug 05 08:29:04 detachYo: i uninstalled my prev version and then reinstalled from the link you gave. same issue still though. i was just about to try rebooting Aug 05 08:29:13 oh, and formatter is just SimpleDateFormat Aug 05 08:29:21 try rebotting Aug 05 08:29:23 but will a HttpNotReadableException even be caught in my specific example from earlier since it's nested into a generic RuntimeExceptopn Aug 05 08:29:24 rebooting Aug 05 08:29:46 detachYo: fwiw, JDK_HOME and JAVA_HOME are populated Aug 05 08:29:51 ok, one sec Aug 05 08:30:22 Syzygy: not sure to be honest, depends if you're using a class/method that depends on it Aug 05 08:30:52 I would catch it, since you can't guarantee if there will NEVER be read time outs. Aug 05 08:31:20 sorry I had got disconnectd Aug 05 08:31:21 neo3: any luck with google stuff? Aug 05 08:31:34 not yet Aug 05 08:31:55 I have checked this Aug 05 08:31:56 http://www.androidhive.info/2014/02/android-login-with-google-plus-account-1/ Aug 05 08:32:02 and implemented this Aug 05 08:32:45 but it authenticated using mGoogleApiClient.connect(); Aug 05 08:32:57 I want to send access token to my server Aug 05 08:34:14 any idea detachYo Aug 05 08:34:14 detachYo: same issue afer rebooting Aug 05 08:34:18 after Aug 05 08:35:11 neo3: why would you wanna do that? Aug 05 08:35:41 I want to authorize user at backend so that if I launch I IOS app infuture Aug 05 08:35:50 authentication remains seemless Aug 05 08:35:57 how do i achieve that Aug 05 08:36:20 hmm Aug 05 08:36:45 authentication should be such that I dont want user to enter username and password Aug 05 08:37:02 I want to authorize them based on the acounts synced on their phone Aug 05 08:37:36 and authorization should be backend based Aug 05 08:37:48 so taht If I go cross platform it should be seamless Aug 05 08:37:49 :) Aug 05 08:37:49 lizzin: so the app would never lunch? Aug 05 08:38:05 neo3 makes sense Aug 05 08:38:22 lizzin: just trying to see where it hangs Aug 05 08:38:37 any suggestions ? or links to some exmaples Aug 05 08:39:26 lizzin: check this link https://code.google.com/p/android/issues/detail?id=65830 Aug 05 08:39:35 neo3: never actually tried that on my own Aug 05 08:39:39 so no :( sorry Aug 05 08:40:08 lizzin: looks like you'll need 6 Aug 05 08:40:10 instead of 7 Aug 05 08:40:12 ahh no problem Aug 05 08:40:16 :) Aug 05 08:40:28 jdk 6 Aug 05 08:40:28 i click to open the app and the a software update box poops up saying i need java se 6 Aug 05 08:40:33 ok Aug 05 08:41:13 lizzin: java -version returns this for me (10.9.4) Aug 05 08:41:14 java version "1.6.0_65" Aug 05 08:41:14 Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609) Aug 05 08:41:14 Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode) Aug 05 08:41:52 lizzin: hold on Aug 05 08:41:57 ok Aug 05 08:41:59 hve you deleted anything yet? Aug 05 08:42:07 try this Aug 05 08:42:12 just clicked install on java 6 Aug 05 08:42:23 hav eyou removed 7 yet? Aug 05 08:42:31 Right click the Android Studio logo and select “Show package contents” Aug 05 08:42:53 ok Aug 05 08:43:09 go to contents Aug 05 08:43:18 open info.plist Aug 05 08:43:36 cancel java 6 install, unless its done Aug 05 08:43:41 then don't wrry Aug 05 08:43:43 worry* Aug 05 08:43:46 damn it, i can't type Aug 05 08:44:33 did you open the file? Aug 05 08:45:10 yes Aug 05 08:45:31 ok Aug 05 08:45:35 search for 1.6 Aug 05 08:45:38 and replace with 1.7 Aug 05 08:45:44 save and retry to open Aug 05 08:45:55 might not let you save it Aug 05 08:46:02 if it doesn't, we'll do it through terminal Aug 05 08:46:52 I might have to leave soon, so let me know if you see any changes Aug 05 08:46:56 it launched! Aug 05 08:47:02 yay Aug 05 08:47:08 you can delete java 6 now Aug 05 08:47:24 ok, thanks for help! Aug 05 08:47:30 welcome! Aug 05 08:47:34 such an easy fix :) Aug 05 08:47:40 :) google skills Aug 05 08:47:51 just starting with android dev? Aug 05 08:47:56 yep Aug 05 08:48:12 i tried googling. but everything i found mentioned setting the two env vars Aug 05 08:48:24 haha yeah Aug 05 08:48:28 just working my way through the udacity course Aug 05 08:48:29 sometimes you gotta google deeper Aug 05 08:49:01 i don't have much time now, but next time when I see you here, i'll give you some good resources you can refer to when needed Aug 05 08:49:04 i have to go now Aug 05 08:49:09 i'll see you around Aug 05 08:49:15 awesome Aug 05 08:49:17 i am here regularly Aug 05 08:49:25 alrighty, take care Aug 05 08:49:33 you too Aug 05 08:49:38 ill be around more often myself Aug 05 08:49:54 hi all.. how i can put a progress bar on a grid layout? Aug 05 08:50:33 i have a grid bar on all layout dimension Aug 05 08:50:41 Quinto: http://www.compiletimeerror.com/2013/09/android-progress-bar-example.html#.U-Ca04BdWwE Aug 05 08:50:55 lizzin: awesome Aug 05 08:50:58 and i want put over it at center the progress bar Aug 05 08:51:00 cya all Aug 05 08:52:35 emulator executeable when checked with ldd then got this error not a dynamic executable. ldd emulator Aug 05 08:52:58 file exist but does not run on debian wheezy Aug 05 08:53:39 i have this layout http://s28.postimg.org/byctwjld9/image.png How put at center a progress bar? Aug 05 08:53:50 what i can do make itbrun? the emulator Aug 05 08:54:03 run** Aug 05 08:54:03 Hi, tomorrow i dosn't arrive to load multi permanent tabs with fragment, so now i am watching for an other way who seems working, but i have a problem, now i create the tab's by sending them a intent to the activity, BUT i must send a parameter to the intented activity. I know for "putextra" but that i want to send is "XMPPTCPConnection connection" it's "connection" so and putextra doesn't want it .. Aug 05 08:54:21 How can i send the "connection" to the intented activity ? Aug 05 08:56:42 do you help me? Aug 05 08:58:30 nice... sourcetree doesn't realize that a file changed Aug 05 08:59:37 t9h8&9&"e command file emulator returns this output ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamiîcally linked (uses shared libs), for GNU/Linux 2.6.15, stripped Aug 05 09:02:23 Syzygy: you can help me? Aug 05 09:02:27 i have this layout http://s28.postimg.org/byctwjld9/image.png How put at center a progress bar? Aug 05 09:03:18 don't ask people directly unless you're already in a discussion with them. Aug 05 09:03:57 Syzygy: why? Aug 05 09:04:08 :) Aug 05 09:04:20 Quinto: what's your specific problem? Aug 05 09:04:46 i want put a progress bar in my layout.. but i cant put it in center of y layout Aug 05 09:04:54 in my layout there is a gridview Aug 05 09:04:58 why can't you? Aug 05 09:05:00 because there are about five thousand people in here and randomly pinging names is annoying as hell. just ask your question and if someone knows the answer they'll respond ... or not, that's just how things are. Aug 05 09:05:06 look image:http://s28.postimg.org/byctwjld9/image.png Aug 05 09:05:21 Quinto: yeah I looked Aug 05 09:05:40 if i put a progress bar grid view is moved on right Aug 05 09:05:44 post your xml file Aug 05 09:06:14 Quinto: so you have a gridview and a progressbar... in which layout are they? Probably not the one you want Aug 05 09:06:28 Linear layout Aug 05 09:06:41 well that's to ... linearily layout views Aug 05 09:06:49 which is not what you want Aug 05 09:06:51 http://postimg.org/image/jp5kwuxgl/ Aug 05 09:06:56 so... use another layout? Aug 05 09:07:27 http://pastebin.com/tqtRrfsx Aug 05 09:07:31 BoD: which? Aug 05 09:07:46 I recommend you look at the documentation first Aug 05 09:07:56 look for a list of possible matches Aug 05 09:08:10 I'm sure you can easily find one that will do what you want Aug 05 09:08:13 http://developer.android.com/reference/android/widget/ProgressBar.html here use linear layout! Aug 05 09:09:01 which layout i must use? Aug 05 09:09:02 irrelevant Aug 05 09:09:34 Quinto: find the list of layouts in the sdk first Aug 05 09:10:06 i have many layout Aug 05 09:10:26 hi there, is it possible to make two buttons superposed ? Aug 05 09:10:31 linear relative frame table ecc.. Aug 05 09:10:52 Quinto: yes. Well for instance, do you think it could be the TableLayout? Aug 05 09:11:01 obviously not, so eliminate this one Aug 05 09:11:05 i think frame layou? Aug 05 09:11:09 frame layout Aug 05 09:11:11 ahhhhhhhh Aug 05 09:11:17 look at the description :) Aug 05 09:12:23 and after i must add android:layout_centerInParent="true" /> Aug 05 09:12:24 ? Aug 05 09:12:40 teach a man to fish and you lose al your hair Aug 05 09:12:52 I don't think so... where did you see this? in the documentation of FrameLayout? Aug 05 09:13:01 no Aug 05 09:13:03 on internet Aug 05 09:13:07 ok i use frame layout Aug 05 09:13:17 and now how i move it in center of layout? Aug 05 09:13:18 you really really should take 3 minutes Aug 05 09:13:22 and read the documentation Aug 05 09:14:13 i'veread Aug 05 09:14:19 but how move it in center? Aug 05 09:15:34 I'm sure it's there somewhere! Aug 05 09:15:51 in FrameLayout's doc Aug 05 09:18:09 BoD: ok i resolved Aug 05 09:18:26 Quinto: android:gravity="center" Aug 05 09:18:30 wow congrats! Aug 05 09:18:41 now i have my code in onCreate method where i must put it in new Thread(new Runnable() { Aug 05 09:18:41 public void run() { Aug 05 09:18:42 ? Aug 05 09:19:16 I don't understand the question Aug 05 09:20:42 http://developer.android.com/reference/android/widget/ProgressBar.html Aug 05 09:20:48 in java file Aug 05 09:20:55 where i must put my code? Aug 05 09:21:02 in public void run() { ? Aug 05 09:21:06 which code? Aug 05 09:21:09 yes Aug 05 09:21:56 it looks like you are working on your first android app Aug 05 09:21:59 am I correct? Aug 05 09:22:14 why not follow a tutorial? Aug 05 09:23:39 BoD: forprogress bar yes :) Aug 05 09:23:43 which tutorial^ Aug 05 09:23:43 ? Aug 05 09:24:10 I don't know... Google for "my first android app" or "first hello world app tutorial" something like that Aug 05 09:24:34 trying things randomly won't get you anywhere Aug 05 09:24:48 BoD: you insultMe? Aug 05 09:25:06 what no I wouldn't dare Aug 05 09:25:48 then answer me pls? Aug 05 09:25:59 I did Aug 05 09:26:06 I'm helping you Aug 05 09:26:47 no you say follow a tutorial for hello world Aug 05 09:26:57 yup Aug 05 09:27:05 my question is: i have a java file with my code Aug 05 09:27:14 now i want put a progress bar Aug 05 09:27:51 where i put mycode in new Thread(new Runnable() ? how use it? Aug 05 09:27:56 well when you ask this question, it looks like you don't know how to make a basic android app Aug 05 09:28:11 which is why I'm advising you to read a tutorial to make a basic android app Aug 05 09:28:32 BoD: but you can answer me? Aug 05 09:28:33 now if you find that insulting, I am very sorry Aug 05 09:31:12 hi guys Aug 05 09:31:30 which way is good to autorize users in Android Aug 05 09:31:39 BoD: you can answer? Aug 05 09:31:50 Google plus signin or Google authenication using Play services Aug 05 09:32:10 Quinto: I'm afraid not. I don't understand the question. Aug 05 09:32:23 where i put mycode? Aug 05 09:32:30 how to use progress bar Aug 05 09:32:42 for view progress of my code? Aug 05 09:34:06 on android guide i view this code:http://pastebin.com/nJJnYM3j Aug 05 09:36:01 ok Aug 05 09:36:06 and? Aug 05 09:36:22 where do you put this code? well, in a file I guess Aug 05 09:36:31 is this really your question? Aug 05 09:36:36 wait Aug 05 09:37:22 i hsave this class extend activity: http://pastebin.com/t9RyWVRv Aug 05 09:37:35 it load image from url and show them on a gridview Aug 05 09:37:42 i want now add a progress bar Aug 05 09:37:47 you undstand? Aug 05 09:38:37 yes Aug 05 09:38:56 what i must write in this class for to have progressbar? Aug 05 09:39:44 dude you've put your password in clear text in this pastebin Aug 05 09:41:07 hi guys, I am using cwac-camera. and this part of code is very slow http://pastie.org/9447049 maybe I am doing something wrong? Aug 05 09:41:32 BoD: sorry is a simple test Aug 05 09:42:03 i'm learning android! Aug 05 09:42:08 you can help me now? Aug 05 09:42:49 "...this should only be used for cases where it is okay for the UI state to change unexpectedly on the user." (from http://developer.android.com/reference/android/app/FragmentTransaction.html#commitAllowingStateLoss()). Can someone explain to me what is meant by that? Aug 05 09:43:31 does it mean stuff like "focus is reset"? Aug 05 09:44:45 Syzygy: I think so Aug 05 09:44:58 ok, that's fine then. Aug 05 09:45:11 it means that what you are committing Aug 05 09:45:20 could be lost :) Aug 05 09:45:34 so if you show a fragment then maybe it won't be shown Aug 05 09:46:38 BoD: yu can help me? Aug 05 09:47:08 hmm, then I probably should test a bit more... any idea how I could reproduce java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState from getSupportFragmentManager().beginTransaction() .replace(R.id.fragment_container, fragment).commit(); Aug 05 09:47:14 Quinto: seriously, your question is too vague! Please ask a precise question! What is EXACTLY the problem? Aug 05 09:47:44 how add a progress bar in my codefor load all my code Aug 05 09:48:20 Quinto: too general Aug 05 09:48:25 just try to do it Aug 05 09:48:27 why? Aug 05 09:48:52 in android guide: http://developer.android.com/reference/android/widget/ProgressBar.html Aug 05 09:48:52 because it's like asking "how do I make an app that does this and this and that" Aug 05 09:49:08 i view new Thread(new Runnable() { Aug 05 09:49:23 public void run() { Aug 05 09:49:33 where i put my code in this function? Aug 05 09:49:47 Syzygy: not sure.. I think it's a very common problem. Try the monkey tool :) Aug 05 09:50:01 what monkey tool? Aug 05 09:50:33 Syzygy: google it :) it's a tool that click everywhere and rotates the screen and so on.. It's good to find this kind of bugs Aug 05 09:50:35 Quinto: runnable = new Runnable() { public void run() { if(taskComplete==false) { statProgress.setVisibility(View.VISIBLE); } else { statProgress.setVisibility(View.GONE); } handler.postDelayed(runnable,200); } }; Aug 05 09:51:00 (it's in the sdk) Aug 05 09:51:15 I'll look into it. Aug 05 09:51:29 but first let me describe the setup, maybe there's something glaringly wrong Aug 05 09:52:10 shmooz: what is taskComplete? Aug 05 09:52:45 I have a main activity that holds two FragmentActivities (support library), menu and content. when the content switches itself out for a different content fragment the app crashes with the illegal state exception i mentioned earlier - i can not reproduce it, but some users seem to get that exception. Aug 05 09:53:19 shmooz: where i put my code Aug 05 09:53:35 Quinto: in run() { Aug 05 09:53:51 taskComplete is just a made up boolean Aug 05 09:53:55 shmooz: my code is this: new GetLinksTask(){ @Override protected void postExecute(List links) { gridview.setAdapter(new MyGridAdapter(Gallery.this,links,names)); } }.execute(); Aug 05 09:54:06 Syzygy: you mean 2 Fragments ? Aug 05 09:54:29 yeah Aug 05 09:54:53 Quinto: that's Asynctask Aug 05 09:55:07 well I don't see anything wrong with this setup :) Aug 05 09:55:34 it's pretty much standard Aug 05 09:56:35 shmooz: is correct? http://pastebin.com/qWQZ53Ym Aug 05 09:58:33 shmooz: my code load image from server and put it in a gridview Aug 05 09:58:57 not sure Aug 05 09:59:15 you can have postExecute in run ? Aug 05 09:59:31 yes Aug 05 10:00:13 my code is this: Aug 05 10:00:15 new GetLinksTask(){ Aug 05 10:00:15 @Override Aug 05 10:00:15 protected void postExecute(List links) { Aug 05 10:00:15 gridview.setAdapter(new MyGridAdapter(Gallery.this,links,names)); Aug 05 10:00:15 } Aug 05 10:00:15 }.execute(); Aug 05 10:01:09 with GetLinksTask i load image and in postexecute load this image on gridview Aug 05 10:01:40 does GetLinkTask extend Asynctask ? Aug 05 10:02:16 yes Aug 05 10:03:28 so then you show the progressbar on preExecute and hide it in postExecute Aug 05 10:04:14 and do your stuff in doInBackground() Aug 05 10:06:27 yes but how? Aug 05 10:06:34 you can write code for me pls? Aug 05 10:06:40 is the first time Aug 05 10:09:29 Quinto: here's one that also uses progressUpdate to tell you the progress .. http://stackoverflow.com/questions/18069678/how-to-use-asynctask-to-display-a-progress-bar-that-counts-down Aug 05 10:10:13 Quinto: here's another one http://www.android-ios-tutorials.com/182/show-progressbar-while-downloading-image-using-asynctask-in-android/ Aug 05 10:10:41 o i read it Aug 05 10:17:47 shmooz: i have error here: Aug 05 10:17:55 mProgress=ProgressDialog.show(GetLinksTask.this, "Wait", "Downloading..."); Aug 05 10:18:16 Hi guy's, i know how to change the color of "all" the text of my tabs in tabhost, but i don't know how to set a default text color ..? did someone know ? Aug 05 10:18:34 The method show(Context, CharSequence, CharSequence) in the type ProgressDialog is not applicable for the arguments (Gallery.GetLinksTask, String, String) Aug 05 10:20:32 Quinto: it depends where that code is I guess Aug 05 10:20:52 it is in private static abstract class GetLinksTask extends AsyncTask> { Aug 05 10:21:07 try just 'this' instead Aug 05 10:21:15 protected void onPreExecute() { Aug 05 10:21:15 super.onPreExecute(); Aug 05 10:21:15 mProgress=ProgressDialog.show(GetLinksTask.this, "Wait", "Downloading..."); Aug 05 10:21:15 } Aug 05 10:21:31 with this same error Aug 05 10:22:59 try MainActivity.this Aug 05 10:23:56 wait Aug 05 10:24:02 but mProgress what must be? Aug 05 10:24:15 private static ProgressDialog mProgress; ? Aug 05 10:26:01 shmooz: with mainactivity-->No enclosing instance of the type MainActivity is accessible in scope Aug 05 10:29:27 Grettings, Using the Android Studio if I have a method "adapter.getItem(someParameter)". How would see what that method returns and what arguments with requires. For example I just mouse over in Visual Studio and it will tell me what the method returns and needs. Thank you Aug 05 10:32:41 MadMan2021: Ctrl+space while typing or Ctrl+Q to see the java doc, (if on mac replace Ctrl with CMD) Aug 05 10:33:03 Quinto: set it like mProgressDialog.setMessage("wait"); and just use mProgressDialog.show(); Aug 05 10:33:30 bhargavg: Thank you. Exactly what I needed. Aug 05 10:34:28 Quinto: initialize like mProgressDialog = new ProgressDialog(this); Aug 05 10:35:53 where i put ProgressDialog mProgressDialog=new ProgressDialog(this);? Aug 05 10:35:59 in onCreate method? Aug 05 10:36:09 yeah Aug 05 10:36:29 What would be the easiest way to search for words using regex in a file of about 600KB? Should I load it in memory or store it in a db? Aug 05 10:36:54 Quinto: first should be private ProgressDialog mProgressDialog; Aug 05 10:37:12 I'll be doing this often Aug 05 10:37:21 here? public void onCreate(Bundle savedInstanceState) { Aug 05 10:37:21 super.onCreate(savedInstanceState); Aug 05 10:37:21 setContentView(R.layout.gallery); Aug 05 10:37:21 ProgressDialog mProgressDialog=new ProgressDialog(this); Aug 05 10:37:24 and then you can put it in onCreate or override onCreateDialog Aug 05 10:38:07 hello, can anybody tell me please, how old i need to be for publishing apps on google play store? Aug 05 10:38:24 Quinto: is the Asynctask in the MainActivity as inner or is it in a separate file ? Aug 05 10:38:38 is in mainactivity Aug 05 10:39:00 public final class Gallery extends Activity { Aug 05 10:39:14 -->public void onCreate(Bundle savedInstanceState) { Aug 05 10:39:20 -->GetLinksTask Aug 05 10:39:21 hello, can anybody tell me please, how old i need to be for publishing apps on google play store? Aug 05 10:40:17 In detecting outgoing call state (TelephonyManager, PhoneStateListener) there is now RINGING state triggered (for incoming yes), is it possible to detect when other side picked up the call? Aug 05 10:40:45 KatsuraAgilek: 13 Years of age or older: See here: https://play.google.com/intl/en/about/play-terms.html Aug 05 10:42:22 thanks MadMan..and for adding ads to my app, i think i need to be 18, right? Aug 05 10:42:36 shmooz: it work thanks! Aug 05 10:42:39 I think that may depend on the ad provider. Aug 05 10:43:00 hmm i have read admob is 18+ Aug 05 10:43:10 KatsuraAgilek: Adsense is 18+ aswell so maybe there is some Law around it. Aug 05 10:43:25 thats next thing i need to know...what ad provider to choose? how much they pay for ad etc? Aug 05 10:44:54 KatsuraAgilek: Depends on the content of your app. You'd be better collecting the providers rates and calculating it for your self. Read the Terms carefully. Aug 05 10:45:22 Quinto: congrats ! Aug 05 10:45:42 hm,well i really dont understand ad terms like eCPM etc. :D Aug 05 10:46:16 It's a adverage cost per thousand impressions. Aug 05 10:46:28 Someone correct me on that if I'm wrong Aug 05 10:46:39 i for sure..if i want some ads in my app, it cost some money right? so if i have low click rate it will be unefficient Aug 05 10:48:10 so eCPM is how much i need to pay ad provider for showing ad to thousand people? Aug 05 10:49:21 but i havent found on ad providers page nothing about how many money they give me per clic on ad... Aug 05 10:49:33 that's CPC Aug 05 10:50:19 yeah, but cpc is not on their page or i am blind Aug 05 10:52:34 its really shame, that admob is 18+, i am 17...guys, do you know any other ad provider for me? :D Aug 05 10:53:06 Can a ListView only be a String value, I'm looking for a String to display but for the ItemOnClick I need a ID to work with the DB. Can this be achived with a CustomAdapter? Aug 05 10:53:17 KatsuraAgilek: Nope, Unless your parents can help you out. Aug 05 11:06:38 MadMan2021: you want listview to have only string values? Aug 05 11:10:07 bhargavg: I want to Display a string value, But have access to a database ID on the OnItemSelected event. I'm looking at CustomAdapters atm. Hopefully this will solve my issue Aug 05 11:14:26 http://pastebin.com/xUMcXqeR - In this code I'm struggling at Line 25. Am I missing something really obvious. Aug 05 11:16:00 to my previous question, https://stackoverflow.com/questions/25137454/find-out-time-when-other-side-answered-call-if-at-all-outgoing-call-not-trigg Aug 05 11:20:48 MadMan2021: you need to have a list/array as a datasource in adapter i guess, because it will be hard to fetch it directly from map Aug 05 11:20:57 one more thing, maps dont preserve ordering Aug 05 11:21:21 you sure you want to use only map? Aug 05 11:22:27 I guess not, I'll look into doing it another way, any reccomendations ? Aug 05 11:23:24 MadMan2021: tell me what exactly you want to achieve Aug 05 11:24:55 The data I am getting is a Unique ID e.g "12" and a DisplayName e.g "Hello UI". I want the Display name to display in a ListView on the activity. But on the OnItemClick. I need the UniqueID as the DisplayName is not unique. Aug 05 11:25:27 I will then use the Unique ID to grab more information from the DB Aug 05 11:27:08 MadMan2021: you can create a class RowData or something with two fields, uniqueId and displayName. Create objects for this RowData class and keep those inside an ArrayList or something, send it over to your adapter Aug 05 11:28:49 bhargavg: Thank you for your help, I will try this haha Aug 05 12:04:24 hi all Aug 05 12:04:39 im wondering - can i load an activity from an external APK given that i'm using DexClassLoader? Aug 05 12:04:52 in this external APK - i have both the activity class and the layouts packed. Aug 05 12:18:27 can I put two buttons in superposition ? Aug 05 12:18:52 Hi, what type of menu do you recommend for a singl link to the app's settings? On my Smartphone (samsung s4) I usually click on the left button and then a menu appears. Is latter a 'popup' or 'options' menu? http://developer.android.com/guide/topics/ui/menus.html Aug 05 12:27:27 bewees: are you talking about the top right icon in the action bar? its a menu Aug 05 12:27:54 options menu in action bar to be precise Aug 05 12:28:47 Ah no Aug 05 12:29:01 bhargavg, I mean the popup menu when you click the options button on your smartphone Aug 05 12:30:05 I think I have to follow this tutorial http://www.javatpoint.com/android-option-menu-example Aug 05 12:38:41 How do I store additional data in a ListView other than the text that would be displayed for each item? i.e. I have a a list of TextView items, but I want to store an ID for each and pass it to an intent when an item is clicked. How is this done? Aug 05 12:40:18 My app creates a custom URI to share what the user has made. I want to enable sharing of this URI via other apps (e.g. messenger, twitter etc). I can display an app chooser and pass it an intent, but what specifically do I add to the intent to give the app the text I want to share? Aug 05 12:42:34 avri: Create your own class to hold the "text" and "ID", Then create your own data adapter with the datasource being a ArrayList of that class you created. Thats how I did it with help from bhargavg Aug 05 12:43:01 MadMan2021: i was about to type the same... Aug 05 12:43:20 MadMan2021, bhargavg: thanks both Aug 05 12:43:38 I've created my own class and it holds both text and ID Aug 05 12:43:48 but how do I access the ID from the onclick? Aug 05 12:43:49 donniezazen: you want to share content form your app to other apps or the vice versa? Aug 05 12:44:16 avri: simplest solution, set the id as tag to convertview Aug 05 12:45:15 bhargavg: what is 'tag' and what is 'convertview'? I need access to it from onItemClick(AdapterView adapterView, View view, int i, long l){} Aug 05 12:46:10 bhargavg: Sorry for beating you too it, Trying to help aswell. So I'm not just leaching :P Aug 05 12:46:28 or maybe I missunderstood the data adapter part? Aug 05 12:47:44 MadMan2021: no issues man.... its good to help when you know the things... :) Aug 05 12:48:08 I have ArrayAdapter adapter = new ArrayAdapter(this, R.layout.the_item, mMyClasses); Aug 05 12:48:35 then: list.setAdapter(adapter); Aug 05 12:48:48 avri: its not possible with array adapter Aug 05 12:48:54 you have to extend baseadapter Aug 05 12:49:09 ah Aug 05 12:49:21 been pulling my hair over this :) Aug 05 12:49:36 ah, seemed that I needed to use .putExtra(EXTRA_TEXT, mytext) Aug 05 12:49:42 thanks Aug 05 12:51:07 heh - flame wars on the busybox mailing list Aug 05 12:51:18 so what is the point of an ArrayAdapter if I can only treat the items as String - I would expect to be able to access the custom objects within the array :/ Aug 05 12:52:21 When would it make sense to use ArrayAdapter for a ListView of TextViews? Aug 05 12:52:26 avri: android cant predict which property to pick if you use ArrayAdapter, its only suited if you have list of strings Aug 05 12:52:50 I see Aug 05 12:52:54 avri: you can overwrite the toString() method in your CUSTOM_CLASS and give the string you want Aug 05 12:53:16 bhargavg: What? Aug 05 12:54:17 jush: yes, that makes sense, but its very limited, as its a one way street - i.e. I can't get access to those fields after they are set into the ListView Aug 05 12:54:30 other than parsing the string Aug 05 12:54:57 ArrayAdapter is just a simple implementation that displays a list of Strings.. If that's not what you want, extend BaseAdapter Aug 05 12:55:14 ok, got it - wrong tool for the job :) Aug 05 12:57:58 avri: Here is my example. http://pastebin.com/v3bWyNVT - Might not be the best but it works. Aug 05 12:59:36 That shouldn't work properly, text is only set when convertView is null Aug 05 13:00:07 SimonVT: Oh damn, Nice spot. Let me fix that haha Aug 05 13:03:21 I've moved everything from String Value and below out of the if. Thanks for that wouldnt have spotted that untill I started testing with bulk items Aug 05 13:11:09 If I have a html5 video playing in a webview, how can I retain the video state when the activity is recreated? Aug 05 13:15:11 I see that the Android Eclipse bundle has had two updates recently. Is it worth my while updating? Aug 05 13:16:08 I see that the Android Eclipse bundle has had two updates recently. Is it worth my while updating? Aug 05 13:16:13 (Reposted because of the netsplit.) Aug 05 13:23:48 I need to run something when my fragment resumes, but after onCreateOptionsMenu. any method that I could look at? Aug 05 13:24:33 onResume? Aug 05 13:34:16 Whats the recommended or most straightforward approach to something as straightforward as a "click to continue" dialog to pop up and await a click? Aug 05 13:35:21 AlertDialog ? Aug 05 13:36:33 yeah, just looking at DialogBuilder too. Aug 05 13:37:49 mattblang: http://developer.android.com/reference/android/support/v4/app/FragmentActivity.html#onResumeFragments%28%29 Aug 05 13:41:38 hi how to change background of my layout? Aug 05 13:42:15 http://pastebin.com/rejnUgNW Aug 05 13:42:34 i have add android:background="#00000000" but dont work Aug 05 13:42:43 i view always black background Aug 05 13:42:55 Quinto: that means black Aug 05 13:42:58 yes. Aug 05 13:42:59 also Aug 05 13:43:02 that means minimal alpha Aug 05 13:43:06 so 100% transparency :) Aug 05 13:43:07 white sorry Aug 05 13:43:12 i walways view white Aug 05 13:43:16 yes Aug 05 13:43:20 because you set Alpha to 0 Aug 05 13:43:25 and your background is transparent. Aug 05 13:43:31 and how to set alpha to 100? Aug 05 13:43:40 ie #ff000000 Aug 05 13:43:41 Quinto, by setting a color with certain alpha Aug 05 13:43:47 #[AA][RR][GG][BB] Aug 05 13:44:19 I always have to test before working out whether ff or 00 is minimal alpha >_> get it wrong every time Aug 05 13:44:29 well, it's 0 or 255 ;) Aug 05 13:44:31 but yes. Aug 05 13:44:32 Even though it's obvious :P Aug 05 13:46:17 Should my options acitivity have the same package name as my main acitivity? Aug 05 13:46:20 you can ignore the alpha by using 6 digit instead of 8 Aug 05 13:52:06 how add a border to an image? Aug 05 13:53:55 Quinto: set a background with a custom drawable Aug 05 13:54:21 how? Aug 05 13:58:04 Quinto: you can set background color and then use setHorizontalSpacing and setVerticalSpacing on gridview Aug 05 14:13:13 no i have an imageview Aug 05 14:13:13 inflate to a gridview Aug 05 14:13:14 shmooz: http://pastebin.com/hBRfWSi9 Aug 05 14:13:14 how i must edit ? Aug 05 14:14:47 Quinto: maybe marginTop/Bottom/Left/Right Aug 05 14:15:04 or padding on the imageview Aug 05 14:15:26 yeah or padding Aug 05 14:15:50 he got it and ran! :) Aug 05 14:38:30 hey all, trying to implement a gcm client using google's walkthrough and im hitting an error in two places. first, @ https://developer.android.com/google/gcm/client.html under "Edit manifest", putting in the custom permissions named my.app.permission.C2D_MESSAGE corrupts autogen'd files in source Aug 05 14:39:32 secondly, their implementation of "registerInBackground" with a new asynctask doesnt seem to be working Aug 05 14:41:57 what do you mean by "corrupts"? Aug 05 14:45:18 hey guys Aug 05 14:46:00 I'm trying to record audio, and it's working fine, plugging the jack and getting input from the jack also works fine, but not when the input is coming from the phone's mic. It stalls for like 10 seconds and gives me this "Android Audio Settings Permission Denial: setSpeakerphoneOn()" then it continues to work again Aug 05 14:46:04 any idea why this might be happening? Aug 05 14:46:28 seems to corrupt anyhow. the actual error is: Error:(10, 14) error: duplicate class: com.my.app.Manifest... and looking in the /gen/source/r folder, there is a 2nd manifest file Aug 05 14:46:31 do Aug 05 14:47:14 wat Aug 05 14:47:21 odd Aug 05 14:47:40 if i remove that custom permission it goes away Aug 05 14:47:56 im still pretty new to AS so i dont know if I messed with the wrong build.gradle Aug 05 14:48:14 probably a gradle problem indeed Aug 05 14:48:25 try with eclipse? ;) Aug 05 14:48:30 why would it be a gradle problem? Aug 05 14:48:34 * Jesperhead shrieks in terror Aug 05 14:49:03 why not? Aug 05 14:49:15 Sicp: what permissions do you have? Aug 05 14:49:27 are there any other kind of problems? ;) Aug 05 14:49:34 record audio, modify audio settings and wake_lock Aug 05 14:49:53 because there's nothing there whatsoever which suggests it might. he's not even said he's using gradle even thought I guess he is if hes using AS. Aug 05 14:50:16 i am using gradle Aug 05 14:50:19 im just new to it Aug 05 14:50:24 and there are 2 build.gradle files Aug 05 14:50:34 so which do i edit for GPlayServices? Aug 05 14:50:47 rgr: he touches the manifest and something is incorrectly generated, under AS... Aug 05 14:50:52 well i edited the one that had the word "dependency" and "compile" in it Aug 05 14:50:57 looks like a gradle problem to me Aug 05 14:51:08 in terms of this whole practice ive only modified A. my upper tree build.gradle, B. the manifest file for the custom permission Aug 05 14:51:15 Sicp: How are you calling setSpeakerphoneOn(), i'm just googling results :) so i'm no expert just curious Aug 05 14:51:23 I havent even called it Aug 05 14:51:31 that's what's strange Aug 05 14:51:48 Android is just telling me that it has no permission to call it whenever the jack is plugged in while audio is already recording Aug 05 14:52:17 ahh ok, i'm not sure then :) are you sure the error is for your app? Aug 05 14:52:26 ok we have different understandings of "gradle problem" then;) It might be a dependency issue caused by his editing of gradle config : not a gradle problem in my book but a misconfiguration on his part. Fair enough. Aug 05 14:52:55 settings.gradle? Aug 05 14:53:00 maybe Ive set audio source to be MIC explicitly Aug 05 14:54:34 nope, still the same Aug 05 15:02:01 hi Aug 05 15:02:10 I'm making a game with CocoonJS. I have the apk decompiled but I need to add a function. Aug 05 15:02:15 http://stackoverflow.com/questions/15125327/custom-ios-interface-orientation-change-animation-with-opengl Aug 05 15:02:43 Well ideally I need a way to refresh the screen on before orientation change. Aug 05 15:02:48 But it just doesn't refresh. Aug 05 15:03:20 So I need some sort of little api hook to either do that or to stop the orientationchange animation Aug 05 15:03:20 what's CocoonJS Aug 05 15:03:29 I have no idea how to do that Aug 05 15:03:37 CocoonJS is kinda like Phonegap. Aug 05 15:03:38 hey guys, MapFragment is slamming GC_FOR_ALLOC, any ideas how to do this better? Aug 05 15:03:54 hmmok Aug 05 15:04:21 I decompiled the apk with apktool Aug 05 15:04:55 I changed my gradle to include the latest version of gplay services (i was using the 3.0+ in the example) and the dupe manifest went away Aug 05 15:04:56 so there is a compiled so file Aug 05 15:05:09 but ... i don't really know what to do Aug 05 15:05:59 so um..... any ideas here Aug 05 15:05:59 nvm Aug 05 15:06:04 problem still exists... Aug 05 15:06:06 crap Aug 05 15:06:08 is redoing the whole app in 'native platform' (Java) an option? Aug 05 15:06:15 from scratch Aug 05 15:06:35 no Aug 05 15:07:00 i barely know Java and the code is about 3k lines Aug 05 15:07:22 Agamemnus: what are you hoping to do with the decompiled SDK? Aug 05 15:07:24 *APK Aug 05 15:07:42 Add a little api hook Aug 05 15:08:11 Is that how you're supposed to work with cocoonJS? Build an app, decompile it and add a hook? O_o Aug 05 15:08:16 something that prevents the animation or modifies the webview to refresh the screen before an animation Aug 05 15:08:22 I have a method defined in my second activity class and I need the method in my first activity. Should I just copy the method to the first activity class or should I import the second acitivty class and then use the method Aug 05 15:08:35 no, you are just supposed to build the app Aug 05 15:08:42 Agamemnus: I'm afraid you are probably on the wrong channel Aug 05 15:08:54 what's the right channel...? Aug 05 15:09:30 it's a javascript->app converter Aug 05 15:09:38 Agamemnus: the SO link you posted was for iOS, on Android there's no orientation change animation Aug 05 15:09:50 I have an activity with an inner fragment class. When I try to get an extra from the intent in the activity's onCreate method, it returns null, but when I try getActivity().getIntent().getLongExtra() in the fragments onCreateView, it returns the correct value. How is this possible? Aug 05 15:09:51 #CocoonJS-dev ? Aug 05 15:10:04 basically my javascript plus a compiled api plus webview Aug 05 15:10:11 nahh there is an animation in android Aug 05 15:10:45 if you didn't notice Aug 05 15:10:49 it rotates a little Aug 05 15:11:13 without experience of coccoon and knowing what it does when it compiles, it's impossible to give advice about how to do stuff with rotation. Aug 05 15:12:07 all webpages rotate in android Aug 05 15:12:35 that... does not mean anything :) Aug 05 15:12:43 it's a standalone chromium build plus an api plus my javascript Aug 05 15:13:23 if that helps... Aug 05 15:13:40 how would you do it in phonegap for example... Aug 05 15:14:00 if the platform is powered by javascript, #javascript might be where a better place to find functionality help Aug 05 15:14:10 By default when the device is rotated, Android destroys the entire app and rebuilds it from scratch; we don't know how Cocoon rebuilds it, or if it handles orientation changes like that Aug 05 15:14:19 Agamemnus: wrong channel also :) try #phonegap ? Aug 05 15:14:23 but i need an api hook Aug 05 15:14:27 ugh Aug 05 15:14:42 i like to stick to native :) Aug 05 15:14:43 javascript can't do this Aug 05 15:14:53 so java! Aug 05 15:14:58 yes, java can do this Aug 05 15:15:06 yayyyyyy java Aug 05 15:15:19 but this is only because of the API limitation Aug 05 15:15:35 or maybe a bug idk Aug 05 15:15:53 K. May have a terrible solution Aug 05 15:15:55 Agamemnus: so after the devices rotates, you want the webpage to get reloaded compoletely? Aug 05 15:16:01 why do you use cocoon? Aug 05 15:16:03 Estel: not it doesnt destroy the entire app. It destroys the activity. Aug 05 15:16:16 +1 Aug 05 15:16:21 rgr: yes, but I wasn't sure if I could make that distinctiona Aug 05 15:16:25 Jesperhead: i got trapped Aug 05 15:16:35 yes you can. it only destroy the activity. a big difference. Aug 05 15:16:42 hang on. Aug 05 15:16:46 I mean, with Agamemnus, who's not from an Android background Aug 05 15:16:49 I was lured with the idea of having a stable webview for a variety of different devices Aug 05 15:17:00 them JS traps... laid out all across the interwebz from the war of the lulz almost a decade ago... Aug 05 15:17:15 even more important to say the activity is destroyed not the entire app. Aug 05 15:17:15 more like a corporate trap Aug 05 15:17:30 Jesperhead: http://stackoverflow.com/questions/456211/activity-restart-on-rotation-android Aug 05 15:17:31 I was told it was all sunshine and roses Aug 05 15:17:38 ahah :) Aug 05 15:17:41 they barely responded to any attempts at communication Aug 05 15:17:52 and now it has been almost 3 weeks since any commit Aug 05 15:17:58 well for certain kind of apps, it could be OK Aug 05 15:17:59 ah ty rgr, my issue was gradle related. just trying to get more info from Agamemnus Aug 05 15:18:12 for instances, the kind of apps that don't care about rotation animations :) Aug 05 15:18:28 testcases that I put up after requests go unanswered Aug 05 15:18:50 it isn't a big thing but polish is important. anyway i think i have a solution Aug 05 15:19:03 goodl uck Aug 05 15:19:09 I remembered they have their own internal rotation Aug 05 15:19:12 er Aug 05 15:19:13 resize Aug 05 15:19:22 I have one with CSS Aug 05 15:19:48 Basically the problem is that I have to set transform-origin to 0 0 0 for anything to work right Aug 05 15:19:57 but that messes up the orientation. Aug 05 15:28:48 Hi there guys... Im doing some unity-android thingy, I need to construct a dialog that shows some native android things, but in the background I need to see the unity in-game, the way I have it now, it shows the dialog and the content, but the unity thread is freezed.... so Iit is not updated.... Aug 05 15:29:21 have you tried a Unity channel? Aug 05 15:29:26 tyoc213: you might have better luck on the Unity forums, doubt many people here have Unity experience Aug 05 15:30:19 OK if anybody can provide some info https://gist.github.com/tyoc213/78dea7a9f06e1121330d Aug 05 15:30:20 tyoc213: but as a rule, the activity would receive an onPause signal, which might reasonably freeze the 3D stuff Aug 05 15:30:50 thx, is there a "builder popup" that doesnt send a pause signal??? Aug 05 15:31:12 another kind of dialog that I can show as popup (to see the background) Aug 05 15:31:42 onPause is called whenever something stops being at the top of "the stack", so it would make sense for it to be called usually for anything that's like a dialog. Aug 05 15:32:00 ok, thx Aug 05 15:32:03 what you probably want is for Unity to not pause when that happens Aug 05 15:51:13 can anyone help or point me to a good resource on using forked versions of libraries instead of using the official maven release? Aug 05 15:53:18 forked by whom? Aug 05 15:53:32 by myself Aug 05 15:53:53 I want to fork a github repo to fix an issue I'm having Aug 05 15:54:04 it's a maven project? Aug 05 15:54:14 https://github.com/astuetz/PagerSlidingTabStrip Aug 05 15:54:30 ah it's a gradle project Aug 05 15:54:34 gradle, yes Aug 05 15:54:59 hmm then one way is to add the fork inside your project Aug 05 15:55:14 as a module Aug 05 15:55:33 Or build the maven artefact of the fork and have it deployed to your local repository Aug 05 15:55:34 instead of depending on the aar Aug 05 15:57:18 how can i get listview position inside inner class? I had problem because my dialog onclick required final declaration inside inner class, and i want to get current position. but the position wont changed caused final declared Aug 05 15:58:00 Keda87: what are you doing? Opening a dialog once the user has clicked on a row? Aug 05 15:58:47 I created approval apps. and the dialog show up when user do a longclick each item in listview Aug 05 15:59:03 in other news... so " must be escaped in strings.xml ... but if you don't you don't have a warning... but the " is not present in the string. Aug 05 15:59:18 whereas if you don't escape a ' you do have a warning Aug 05 16:00:02 does anyone find this annoying / ridiculous Aug 05 16:01:44 Estel, any idea? Aug 05 16:04:41 Keda87: subclass the dialog and pass in the position to a constructor Aug 05 16:04:53 or a newInstance() Aug 05 16:05:42 Make the position in your onItemLongClick method final Aug 05 16:08:03 Or, to do dialogs right, pass it in arguments to a DialogFragment Aug 05 16:08:36 I'm trying to scale a view, but when it's scaled down, the rest of the layout should fill the now created space. Is there any way to do that? Aug 05 16:08:58 set a weight on your layout and request layout Aug 05 16:12:10 anyone see canadiancow lately? Aug 05 16:12:30 sorry haven't been to canada in a while Aug 05 16:12:41 :) Aug 05 16:12:55 he's online though Aug 05 16:13:01 Wow. The lastest ADT bundle doesn't come with Eclipse Java Development Tools. Aug 05 16:13:16 What is Google thinking? Aug 05 16:13:42 Google, thinking? Aug 05 16:13:51 haha Aug 05 16:14:02 And Android Studio doesn't support JVM unit tests. Aug 05 16:14:12 Does Google not realise that people do JVM unit tests for Android projects? Aug 05 16:14:20 you've been hit, you've been stuck by, grammar nazi! ;) Aug 05 16:17:54 I want to print a string list in android with toast, but no popup message appears with my code? Aug 05 16:17:54 recipients[0] = loadSavedPreferences(); Aug 05 16:17:54 Toast.makeText(MainActivity.this, recipients[0], Toast.LENGTH_LONG).show(); Aug 05 16:18:38 (It's within the public void onCreate(Bundle savedInstanceState) method of the class MainActivity Aug 05 16:20:45 Can I use JDK8 with Eclipse for Android development? Aug 05 16:22:41 Estel, Sorry i didn't get it. do you have some example or link for more explain? Aug 05 16:24:24 TacticalJoke, I'm pretty confident you can Aug 05 16:24:44 Right now I'm using android:launchMode="singleTop" when my activity consists of a list of items for a certain x_id. I'm doing this because when I click an item, go to the detail view, and go back using the back arrow in the actionbar, the list is still there, because the activity isn't recreated. Would this be a correct way of doing this? Aug 05 16:25:06 Okay. Aug 05 16:25:57 Hi, i doesn't arrive to close properly my app .. This app is something like a chat, it open new intents for every channels where the user want to speak, but when i want to close, the good method, and brutal method doesn't work (application is "closed" but i continue to see them started on android) Aug 05 16:26:41 the brutal method is System.runFinalizersOnExit(true); android.os.Process.killProcess(android.os.Process.myPid()); System.exit(0); Aug 05 16:27:11 Can the problem comes because i haven't implement onDestroy ? Aug 05 16:27:41 Well, it worked now Aug 05 16:27:51 can you rephrase your question? Aug 05 16:28:12 what doesn't work exactly? Aug 05 16:28:52 so it is seeming impossible to be able to create a DialogFragment that has a SupportMapFragment with positive and negative button Aug 05 16:29:08 Bod me ? So i see the application "closing" visualy (she disapear, but she stay "active" for android system) Aug 05 16:29:09 The problem lays in Eclipse... I have to clean the project, then I get lots of R errors, then I have to restart eclipse, then I always get the missing Manifest error, then I have to clean the project again, and then deinstall the app manually, and finally I can install the app Aug 05 16:29:45 cyber37: try #android-fr Aug 05 16:29:55 it will be easier :) Aug 05 16:30:10 How do I center a grid layout? Aug 05 16:30:15 Do other IDE's work better than eclipse? Maybe android studio by IDEA? Aug 05 16:30:21 yes Aug 05 16:30:39 jkeys > eclipse Aug 05 16:30:52 Okay, thanks for assuring. I try IDEA out Aug 05 16:31:22 So did someone have an idea ? about how to force my application to close :D ? Aug 05 16:31:47 cyber37: try #android-fr, it will be easier Aug 05 16:33:08 Oh IDEA is by jetbrains. I tried Pycharm by jetbrains and I liked it a lot Aug 05 16:34:30 En plus tes francais .. Aug 05 16:35:11 cyber37: vas sur le channel #android-fr, cela sera plus facile Aug 05 16:35:36 So. I have put some println(); in the "onDestroy();" of each activities, and it's called, but the application isn't closed in android system Aug 05 16:36:56 Is IDEA's community edition sufficient for android development or is it pretty limiting? Aug 05 16:38:07 Just use Android Studio Aug 05 16:38:14 bewees, I have found the free version has all the features I like/want Aug 05 16:38:18 But yes, it's sufficient. Aug 05 16:38:43 I've decompiled an old abandoned app to find out why new SuperSU does not work with it. Browsing through the source I found this: http://pastebin.com/aFHX5HdE Aug 05 16:39:04 gutano, On what distru? Aug 05 16:39:18 bewees, I've used it on Debian, OS X, Win Aug 05 16:39:46 Good to know, thanks. I'll check the free version out Aug 05 16:39:57 the random variables makes it a bit hard to understand, but what exactly does it do? Aug 05 16:40:36 doesnt look like its looking for the superuser.apk or the su in xbin Aug 05 16:40:52 Android Studio still doesn't support JVM unit tests, right? Aug 05 16:43:05 Quacked: it is running 'su' and checking if there is any response from the runtime, if there is, it is returning true, otherwise false Aug 05 16:43:24 s/running/executing Aug 05 16:43:32 bhargavg, yeah Aug 05 16:43:51 Estel, may I pm you? i still didn't get it your suggestion Aug 05 16:43:53 but why doesnt it work if I install latest supersu ? Aug 05 16:44:28 surely that would give a response to 'su'? Aug 05 16:44:48 Quacked: not really sure Aug 05 16:45:12 are you getting anothing on logcat debug level? Aug 05 16:45:31 Whelp so you can't use custom views on the widgets huh? Aug 05 16:45:37 bhargavg, good suggestion. didnt think of that at all Aug 05 16:45:48 because if there is no 'su' then it will raise some exception, which will cause 16 line to get executed Aug 05 16:48:19 Does ADT work with Eclipse Luna? Aug 05 16:51:39 http://sv.tinypic.com/view.php?pic=dbgjll&s=8#.U-ELkNbzTFY Aug 05 16:57:11 thats what my gridlayout looks like. I want it centered and equal space between buttons. code is here: Aug 05 16:57:20 can you see me? my internet is weird Aug 05 16:57:29 Guest82224: what ide are you using? Aug 05 16:57:59 (layout:gravity : you can google the rest) Aug 05 16:58:28 i have gravity=center already Aug 05 16:58:55 i cant paste my code because my internet is weird, i am connected obv since I can post and read but cant gert to any sites Aug 05 16:59:37 what do you mean your "internet is weird"? Aug 05 17:00:00 set it in the xml. Aug 05 17:00:50 anyway, layout gravity is what you want I think. http://i.imgur.com/YjymKAe.jpg Aug 05 17:01:44 theres no shame (despite what some "hardcore" types might tell you) in using the graphical layout tool if only to familiarise yourself quicker with what XML attributes are availabled. You can use the form designer and then study the generated xml. Aug 05 17:02:54 http://pastebin.com/ZTyHGkiy Aug 05 17:03:00 theres my code Aug 05 17:06:56 right. And did you look at the example image I showed you? Aug 05 17:07:02 spot the difference. Aug 05 17:08:26 In the context of what we've said it should be quite obvious what the error is on your part. Aug 05 17:09:00 what is just gravity then if not for the layout? Aug 05 17:09:16 have you found the error? Aug 05 17:10:29 and again, which IDE are you using? in IntelliJ/AS just put your cursor on the XML attribute in question and press Control-Q. All will be revealed : a nicer way of saying RTFM ;) Aug 05 17:12:00 eclipse Aug 05 17:12:27 i thought you meant gravity->layout_gravity but it does not change anything, cant you just tell me what it is? Aug 05 17:16:43 you're sure it does not change anything? Do you know what android:gravity is? thats for the content. Did you look at the gravity setting of the container? I dont know : but its where I would look. Aug 05 17:21:50 isnt it the content i want to center? Aug 05 17:21:59 or that means what is inside the content? Aug 05 17:22:35 when creating custom views, if there is a custom parent container that extends a layout that has multiple children. is it the parent layout that needs to make sure onMeasure/onLayout is called on the children, or will these methods be called automatically? Aug 05 17:26:25 hi sorry i haven't been able to find a definitive answer with my googling. building master right now =/= building android l preview? Aug 05 17:35:43 grid layout seems useless. use nested linearlayouts instead? Aug 05 17:35:52 but nested weight are apparently bad...? Aug 05 17:39:58 Do I have to close SQLiteDatabase objects when I already called SQLiteOpenHelper.close()? Aug 05 17:41:15 the Android Settings app, under "Battery" shows a small list of apps and a ProgressBar for a visual percentage. These bars are just ProgressIndicators with a special android:progressDrawable https://android.googlesource.com/platform/packages/apps/Settings/+/master/res/drawable/data_usage_bar.xml Aug 05 17:41:43 however, the colors are hardcoded there which seems ugly. i'd like to reuse this, but ising some attr for the 'holo' colors Aug 05 17:41:49 I need help with parse (parse.com), anybody? Aug 05 17:44:45 anyone know if holo defines attrs for colors, or are they all 'baked into' drawables, pngs, etc Aug 05 17:46:26 Hi all. I am looking for a way to override strings or preferences when I build my client. For example I need to change the backend host and the default protocol from http to https for automated testing. We build with gradle. Is there a standard way of doing this? Aug 05 17:49:23 I need help with parse (parse.com), anybody? Aug 05 17:50:47 ugh, gross platform progress_horizontal.xml has colors hard coded Aug 05 17:55:29 rgr, https://stackoverflow.com/questions/25145067/android-cannot-center-my-gridlayout Aug 05 18:03:47 ? Aug 05 18:05:29 Did you do what I suggested and place it in a container and see what that does? Its what I would try and what I had that works that you saw in the example screenshot. Aug 05 18:05:41 in a container? Aug 05 18:05:50 nside a Lineasrlayout you mean+ Aug 05 18:07:25 try it. it takes 2 seconds in the layout designer. Aug 05 18:07:40 did not help Aug 05 18:07:48 got a warning that it was useless Aug 05 18:08:07 is nesting weights really that bad? Aug 05 18:08:16 seems easier to work with nested Linear layouts Aug 05 18:08:21 right. well works for me. sorry I cant help anymore. Aug 05 18:08:25 nested weights?!? Aug 05 18:09:44 you dont use weights in that sample code. Just create a linearlayout and drop your gridlayout in and see what happens. You could do that in the designer quicker than it takes to ask "why" ;) Aug 05 18:10:15 i did and it doesnt work Aug 05 18:10:27 starting a project from scratch and testing Aug 05 18:10:29 ty anyway Aug 05 18:10:38 hi all, i guess it's a stupid question but i have this code http://pastebin.com/JhFFbYv9 and i get "java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first." Aug 05 18:11:04 i thought that layout.removeAllViews(); at line 27 would be enough but it's not Aug 05 18:11:38 i've also tried layout.removeView(seekBar); without success Aug 05 18:12:21 anyone know how I could put a SupportMapFragment in a DialogFragment, and also have positive and negative buttons? Aug 05 18:12:50 even layout.removeAllViewsInLayout(); doesn't help Aug 05 18:23:06 anyone figure out how to get shift+esc to work all the time? it's supposed to close all non editor panels Aug 05 18:30:59 sorry, in android studio. i forget this isn't exclusively android studio talk. Aug 05 18:32:08 GridLayout must seriously be the worst thing ever created, how useslesss it seems when you google what people have to do to make it work Aug 05 18:41:16 hi i have activities that i want to replace with fragments. the activities have overridePendingTransition in their callbacks, the animations have a definition which have fromX=100% and toX=0% and so on in them. that doesnt work for a fragmentransaction#setCustomAnimations call. the objectAnimator however does not know about an interpolator nor about relative values for the property transitions.. how to achieve the same thing as with a Aug 05 18:41:16 animation? Aug 05 18:42:14 my xml now looks like the one in the accepted answer here: http://stackoverflow.com/questions/4817900/android-fragments-and-animation Aug 05 19:01:45 what is a good way to generate viewIds for children of relative layouts that can support below API level 17? Aug 05 19:03:43 Hi everybody! Need your opinion on something. Let's say you are developing an app for logging your blood pressure. You create a simple ListView that displays all data. Since there's gonna be a lot of rows in this ListView after a while, in what way to you thnk it's best so divide/separate rows in this ListView that belongs to different days/weeks/months? Aug 05 19:04:07 how do i make my paid app freemium, to make sure the people who already bought it keep all the in-app purchases? Aug 05 19:05:25 ultra- from what i understand; you can convert the app to free, but those people will have to rebuy the IAPs Aug 05 19:05:38 there is no linkage between previous buys and IAPs Aug 05 19:05:46 that really sucks Aug 05 19:05:57 yeah, its why i haven't done it myself Aug 05 19:07:06 sjrp i wouldn't use a listview for that Aug 05 19:07:22 actually, the github commit visualization is pretty nice idea here Aug 05 19:07:32 use darker colors for higher BP Aug 05 19:07:50 is a 2 dimensional graph, X axis date, Y axis time Aug 05 19:17:59 oh nice, ivan Rustic's book BulletProof SSL and TLS is done Aug 05 19:21:24 is it ok to take the size of a view and calcult things in code and do layout like that? that is how game engines must do it right+ Aug 05 19:21:36 I heard "dont use screensize" but is using viewsize ok? Aug 05 19:29:10 g00s, thanks for your input! I'll use a graph as an alternative view of the data, but the main view will be a listview. Got an idea now that might work. Thanks again :) Aug 05 19:34:17 i have a paid app, and now i want to make a free version of it… is there some benefit to going freemium, rather than keeping two apps out there? besides my own conveniences Aug 05 19:34:39 i don’t want to mess with the whole iap thing, mostly because of users who already paid for the app Aug 05 19:38:38 Where do I find documentation (assuming it's possible :-) to directly make (eg:) a pre-recorded voice call? Ie, without calling Intent.ACTION_CALL to the stock dialer app. Aug 05 19:39:15 The actual problem is being able to do a one-click widget to call emergency number from a pin-locked lockscreen Aug 05 19:40:00 I find that the lockscreen needs to be unlocked if I just do startActivity(ACTION_CALL) from the widget Aug 05 19:56:05 Is it possible to loop from R.id.level1_button to R.id.level15_button? Aug 05 19:56:48 gardenlayout yeah make an array: int things [] = { r.leve1, r.level2 } Aug 05 19:57:10 XD Aug 05 19:57:17 well then i dont save anything :) Aug 05 20:00:15 hi ! I am using TABHOST, in my android app, i creat the tabs dynamicly, the tabs are associed to an Intent who create the activity associed to the tab. But i am at the end of the program.. and now i see that i have to acces to the class for implement a custom listener (doing something like "Something.addMyCustomListenner") but the big problem : i don't know where the Intent save the implementation of the activity so how i can acces it .. Aug 05 20:00:21 Here is an example! http://pastebin.com/durZkUDt Aug 05 20:01:38 is it really bad to get screensize? i have not encountered a single device that does it wrong Aug 05 20:02:38 if i was doing something like that for implement the activity : "MyActivity foo = new MyActivity" i would just have to do "foo.addMyCustomListenner(...);" But actualy i am using the intent so i don't know how i could acces to the public classes of that class (by the intent) Aug 05 20:03:37 gardenlayout: get screensize how? Aug 05 20:05:20 http://lpaste.net/108868 Aug 05 20:05:24 rgr^ Aug 05 20:06:23 why do you think this is bad? Firstly you need to explain your use case and then give some idea as to why someone said this is bad. But without knowing why you need this or what you really need its hard for people to know. Aug 05 20:08:41 surely there you just want to get the canvas width and height? Aug 05 20:08:46 Hello. I've a circle shape saved in a png file. It's background inside the circle and outside is transparent. Is it possible somehow to fill the inner part of the circle with a color and leave the outer one intact (transparent) ? Aug 05 20:09:47 Or am I just better off drawing the shape myself? Aug 05 20:11:16 skulltower: i dont have a ton of experience with canvas, plaint and all that, but if it is just a simple circle, id imagine drawing it your self would be the easier option Aug 05 20:11:26 plaint = paint* Aug 05 20:12:13 Or just bitblt a solid disc over it. depends on how you're displaying it, how frequently, whether its scaled, how many different inner colours you might want etc etc. Aug 05 20:12:49 skulltower: listen to rgr, he clearly knows more than me Aug 05 20:13:17 rgr, no way to fill the transparent pixels only? Aug 05 20:14:12 rgr: well I want it for 2 purposes. 1. Create a grid of buttons (now I tried using Girdlayout instead but I am not satisfied yet because it is not as good as just calculating buttonsizes and spaces from screen size). 2. The important one. I have made a game and I have a tmx file and from that I draw the level, I base the tile size on the screen size. I have not had a problem with this but people say getting screen size is bad beca Aug 05 20:14:12 use it is not implemented the same for all phones. Aug 05 20:16:30 skulltower: that would be horrifically slow. Why not just drawcircle the inner? Aug 05 20:17:11 gardenlayout: you dont want the screensize. You want the canvas size. Aug 05 20:17:15 (it seems to me) Aug 05 20:17:38 you should not have to be calculating status bar and title bar heights etc. You already have the inner dimensions. Aug 05 20:18:24 great. L developer preview search goes to the web for the wrong shit. how stupid and half assed is bundling this in a zip file Aug 05 20:18:41 rgr, ah. Thought i could avoid drawing it as the inner circle has some some details too. Perhaps I should draw the circle the overlay disc and the details on top. Thanks for your help :-) Aug 05 20:18:55 rgr: well I remember that I didn't, getting the canvas size included the action bar or something like that Aug 05 20:19:09 in onMeasure, if a view has "wrap_content" as its height. how can that be preserved ? Aug 05 20:19:21 but allowing for the width to be adjusted Aug 05 20:21:41 wtf; when i try to browse the L preview docs, most of the links just result in "Firefox can't find the file at /Users/xxx/develop/android/l-developer-preview/reference/android/widget/package-summary.html." Aug 05 20:21:44 if i was doing something like that for implement the activity : "MyActivity foo = new MyActivity" i would just have to do "foo.addMyCustomListenner(...);" But actualy i am using the intent so i don't know how i could acces to the functions (public) of the class .. Aug 05 20:21:48 http://pastebin.com/durZkUDt Aug 05 20:22:19 https://gist.github.com/freeone3000/05d06b2ff5e7cb529fe7 <- I'm only recieving one Phone.CONTENT_ITEM_TYPE entry for all of my contacts. One contact I know of with ID 133 shows in the phone with an address and two phone numbers, but no phone numbers are showing up here. What am I doing wrong? Aug 05 20:23:15 maybe I want a tablelayout not a gridlayout... Aug 05 20:24:25 Grr. With the latest SDK Eclipse bundle, there is a huge gap in the toolbar and I can't move the toolbar. Aug 05 20:24:29 I can't find a solution in Google. Aug 05 20:24:57 How do I know the smallet amount of dp for normal? Aug 05 20:25:30 I guess I should use the instead of the old normal, large etc right? Aug 05 20:25:42 Also, the latest Eclipse bundle doesn't support normal JUnit tests. I had to manually install Eclipse Java Developer Tools. Aug 05 20:25:49 This new one seems so buggy. Aug 05 20:25:58 I get a Lint error almost every time I start Eclipse now. Aug 05 20:26:01 God, I wish I hadn't updated. Aug 05 20:26:16 Why do Android IDEs suck so bad?! Aug 05 20:26:20 they dont. Aug 05 20:26:25 Name me one that doesn't. Aug 05 20:26:34 :| Aug 05 20:26:57 All you seem to do is whine about IDEs so I daresay you wont be convinced ;) I think IntelliJ is a work of genius. I must admit I hated Eclipse. Aug 05 20:27:23 because all TacticalJokes suck so bad Aug 05 20:27:33 Does IntelliJ use Gradle? I forget. Aug 05 20:27:49 layout-sw400dp/ // Can I do values-sw400dp instead because my layout will be the same, just different dimensions... Aug 05 20:27:49 Android Studio's use of Gradle makes it unbearably slow, even with the pre-caching thing. Aug 05 20:28:30 rgr: Just curious -- why do you use IntelliJ rather than Android Studio? Aug 05 20:29:04 No Gradle bullshit. Aug 05 20:29:16 Okay. Aug 05 20:29:43 yeah wtf is up with the gradle. my biggest complaint with the android framework Aug 05 20:29:55 or, AS or whomever its associated with Aug 05 20:29:57 is layout-sw400dp for height or width? Aug 05 20:30:04 gardenlayout, both Aug 05 20:30:51 gardenlayout, sw -- "smallest width" Aug 05 20:30:57 Android Studio also doesn't support JRE unit tests. I can't believe people recommend it. Aug 05 20:30:57 http://developer.android.com/guide/practices/screens_support.html Aug 05 20:31:01 I think it's rather clear :) Aug 05 20:31:16 TacticalJoke, uhm... JRE unit tests? Like JUnit tests? Aug 05 20:31:25 Android Studio is good Aug 05 20:31:36 hi all, does android support H264/AAC over HLS? Aug 05 20:31:43 it doesn't really differ much in feature set from IDEA itself, just don't mix the build system and IDE Aug 05 20:31:43 ocx, yes, but it sucks Aug 05 20:31:48 why? Aug 05 20:31:55 Mavrik: Yeah, JUnit tests. Aug 05 20:31:59 ocx, depending on version yes, but until 4.3 or even 4.4 the support is kinda crap Aug 05 20:31:59 Running on the JVM. Aug 05 20:32:05 TacticalJoke, JUnit tests work perfectly fine in AS Aug 05 20:32:15 Without an Android emulator or device? Aug 05 20:32:18 Mavrik: what is the best format to use for livestreaming?\ Aug 05 20:32:19 Yes. Aug 05 20:32:23 ocx, HLS. Aug 05 20:32:37 so better develop my app for 4.4. and above Aug 05 20:32:42 if i have livestreaming in mind Aug 05 20:32:47 ocx, or find a 3rd party hls library Aug 05 20:32:48 Mavrik: The web is full of complaints that you can't easily run JVM unit tests in Android Studio. Aug 05 20:32:53 nah Aug 05 20:32:53 That you have to jump through hoops. Aug 05 20:32:58 TacticalJoke, *shrug* works perfectly fine for us Aug 05 20:33:06 no extra setup needed Aug 05 20:33:14 but we don't use Gradle though Aug 05 20:33:19 Aha. Aug 05 20:33:23 which does have some problem with most popular Robolectric testing library. Aug 05 20:33:24 That's a huge but. :D Aug 05 20:33:33 The problem relates to Gradle, I think. Aug 05 20:34:07 ocx, we had decent experience doing HLS on 4.x+ Aug 05 20:34:09 Mavrik: pfn so by HLS i point the player to m3u8 which in turn reads the .ts rifles? Aug 05 20:34:28 just don't expect advanced feature support or good control over streaming until latest Android versions Aug 05 20:34:36 the alternative is Vitamio, which is utter shit tho Aug 05 20:34:40 Here's the bug ("Add support of normal unit test folders to Android Studio"): https://code.google.com/p/android/issues/detail?id=65186 Aug 05 20:34:54 It's marked with High priority. Aug 05 20:35:09 Mavrik: cirrect about the m3u8? Aug 05 20:35:17 TacticalJoke, *shrug* Aug 05 20:35:24 again, not using that build system this relates to Aug 05 20:35:32 AS will load Maven, IDEA, Ant and Gradle Android projects. Aug 05 20:35:41 ocx, m? Aug 05 20:35:51 Mavrik: so at the end HLS is an MPEG-4 container right? Aug 05 20:36:02 uh, no Aug 05 20:36:11 HLS uses MPEG2-TS container Aug 05 20:36:25 there's no stream-ready container defined in MPEG4 spec Aug 05 20:36:25 k Aug 05 20:36:35 it uses m3u8 playlist right? Aug 05 20:36:46 IntelliJ is very slow on here. Aug 05 20:37:18 Is there any chance that someone here have compiled AOSP for the Xperia C6503? I did it, but I got a system without display... Aug 05 20:37:44 Can somone help me please ?????? Im using tab host, who implements activity's who are passed to him by an intent object http://pastebin.com/durZkUDt it work fine, but i don't know how to acces to the class by th tabhost (if we can..) exemple when you do "MyClass foobar = new MyClass;" then you can do "foobar.SetFooBar(something)" .. Aug 05 20:38:28 TacticalJoke, on where? Aug 05 20:38:58 On the laptop I'm using. Aug 05 20:39:09 sorry wrong channel Aug 05 20:39:13 Ah. Aug 05 20:39:26 Well, time to invest into your tools then :P Aug 05 20:39:39 How do you mean? :D Aug 05 20:39:43 Can somone help me please ?????? Im using tab host, who implements activity's who are passed to him by an intent object http://pastebin.com/durZkUDt it work fine, but i don't know how to acces to the class by th tabhost (if we can..) exemple when you do "MyClass foobar = new MyClass;" then you can do "foobar.SetFooBar(something)" .. Aug 05 20:39:43 Buying a new laptop? Aug 05 20:40:56 cyber37, stop: spamming, ovedoing punctuation and being generally annoying Aug 05 20:41:17 people will answer you if they want, we're in 2014, we have 16G of RAM and the IRC scrollback can be quite long you know. Aug 05 20:41:47 TacticalJoke, you can turn off some of the plugins for a small speed boost, but IDEA/AS are both known to be quite a bit less resource intensive than Eclipse Aug 05 20:42:18 Mavrik Thanks, that's why i ask Aug 05 20:42:47 Less? Hmm. Eclipse is *way* faster on here. Aug 05 20:42:59 Eclipse feels speedy; IntelliJ feels slow; AS feels extremely slow. Aug 05 20:43:00 hehe, something is wrong Aug 05 20:43:58 TacticalJoke, hmm, IDEA is significantly faster on all my machines Aug 05 20:44:03 Weird Aug 05 20:44:03 . Aug 05 20:44:12 I might try the latest version of IntelliJ. I'm using an old one. Aug 05 20:48:41 If you have a slow disk, that'll do it. IDEA is very disk-intensive. Aug 05 20:49:19 I doubt anyone still tortures their developers with machines without SSDs Aug 05 20:49:30 :'( Aug 05 20:49:53 rumor has it most android devs are hobbyists; maybe we don't have great machines ;) Aug 05 20:50:19 OTOH, my 2009 MBP runs the newest xcode just fine Aug 05 20:51:50 Hello, My Android App is vulnerable to man in the middle attack over SSL, I want to follow the web browser model of showing the users the certificate details and allowing the user to either add the certificate to a trusted store or cancel the connection attempt. Aug 05 20:52:10 so it seems that this doesn't work pager.setOffscreenPageLimit(0); Aug 05 20:52:22 Does anybody knows how can I see the certificate and add it to my app? Aug 05 20:53:14 android-dev969, why aren't you using certificate pinning? Aug 05 20:55:27 android-dev969 i saw this today, but didn't read it - maybe something in here http://op-co.de/blog/posts/java_sslsocket_mitm/ Aug 05 20:55:34 my user they have their own serves with self-certifcates Aug 05 20:55:39 *my users Aug 05 20:55:40 there are also a few libraries Aug 05 20:56:19 android-dev969 yeah, i had that problem too. you will have to import them into your own trustStore Aug 05 20:56:21 android-dev969, their own what? Aug 05 20:56:46 That, or you can just pass list of valid certificates to SSLFactory Aug 05 20:57:20 And HttpsURLConnection will automatically refuse connection to server not identifying itself with proper certificate or certificate derived from passed CA. Aug 05 20:58:23 android-dev969 https or tcp ? Aug 05 20:58:34 g00s I'm not pretty sure if I can import all the certificates because I have too many users with their own self-certificates Aug 05 20:58:46 g00s HTTPS Aug 05 20:58:54 android-dev969 yeah, you have to ask them to put it on sdcard and then import it Aug 05 20:59:40 g00s When you mean ask them? Do you mean with a prompt? Aug 05 20:59:49 the settings app lets you do that, but it goes in the system truststore Aug 05 21:00:36 android-dev969 of course :) Aug 05 21:00:44 the UX kinda sucks, lots of things can go wrong, etc Aug 05 21:01:19 g00s I'm reading this article http://nelenkov.blogspot.com/2011/12/using-custom-certificate-trust-store-on.html. Is what you mean? Aug 05 21:01:41 yeah thats pretty close Aug 05 21:01:55 also see https://github.com/moxie0/AndroidPinning Aug 05 21:02:08 and the link there ... http://www.thoughtcrime.org/blog/authenticity-is-broken-in-ssl-but-your-app-ha/ Aug 05 21:05:10 g00s oh thank you so much Aug 05 21:05:20 yw Aug 05 21:05:37 android-dev969 BulletProof SSL came out today Aug 05 21:05:52 http://blog.ivanristic.com/2014/04/bulletproof-update-april-attacks.html Aug 05 21:06:08 oops, wrong link Aug 05 21:06:19 here we go http://blog.ivanristic.com/2014/08/bulletproof-ssl-and-tls-final-released.html Aug 05 21:07:04 android-dev969 and there are a few good papers on android-ssl.org Aug 05 21:09:25 Can someone look over this code I wrote and let me know if there is a better way to figure out if it is currently dawn, day, dusk or night? http://pastebin.com/Dv5L7nC9 Aug 05 21:10:05 Maybe GridView is better for me since it scrolls, is it easy to change from GridLayout to gridView? Aug 05 21:10:05 surf2b1 hm, dusk is defined as the degree angle of the sun below the horizon Aug 05 21:10:16 surf2b1, that looks fine enough, you're just missing the fact that those can vary for several hours :) Aug 05 21:10:42 like here, 8PM is still daylight haha Aug 05 21:11:00 nevermind dusk or night Aug 05 21:11:04 g00s: yeah.. is there a way to figure that out for different places around the world though? Aug 05 21:11:17 hm, i dont know Aug 05 21:12:04 i guess you need the long, lat, date & time for accuracy Aug 05 21:12:19 your code won't work for alaska :) Aug 05 21:12:33 surf2b1, not easily, so unless you need precision this is ok Aug 05 21:12:40 lol.. yeah. That's why I was hoping someone had some awesome solution :) Aug 05 21:12:52 just remember, in Denmark you can get dusk at 23:00 and dawn at 4:00 in the summer Aug 05 21:13:04 and dusk at 16:00 and dawn at 9:00 in winter :) Aug 05 21:13:23 while near equator those differences will be pretty much nil :) Aug 05 21:15:20 Hi, http://pastebin.com/durZkUDt I am using a tabhost who implements my activity, but i don't know how to acces to the instanciation of my activity. any ideas ? Aug 05 21:16:22 https://gist.github.com/freeone3000/05d06b2ff5e7cb529fe7 <- I'm only recieving one Phone.CONTENT_ITEM_TYPE entry for all of my contacts. One contact I know of with ID 133 shows in the phone with an address and two phone numbers, but no phone numbers are showing up here. What am I doing wrong? Aug 05 21:17:11 Hey guys. When playing an audio on galaxy s5 using media player my app freezes for a moment and i got "qcmediaplayer mediaplayer not present". After some time the audio start, but it takes something like 5/6 seconds. Any ideia? Aug 05 21:18:31 nothing works for alaska! Aug 05 21:18:46 cyber37: you can't access the instances.. And that approach was deprecated about 3 years ago.. Use fragments Aug 05 21:19:03 freeone3000: what are you trying to do? Aug 05 21:19:17 detachYo: Load all information associated with a given contact. Aug 05 21:20:09 detachYo: If I could get phone number, that'd be ideal. I get phone numbers for some contacts, but not for others. Some contacts I get a nickname for. Some, an address. Aug 05 21:20:40 Hi, is it possible to do an active Wifi scan in android? Aug 05 21:20:48 I mean using the API Aug 05 21:20:59 startScan() does a passive scan. Aug 05 21:21:05 maybe they don't have phone contacts? Aug 05 21:21:18 phone numbers* Aug 05 21:22:03 freeone3000: do you want to retrieve contacts that have phone numbers? Aug 05 21:22:08 meaning, exclude those that don't? Aug 05 21:23:44 SimonVT> before i was using fragments but i had a problem : When i was on the Tab1 for exemple, and switching to the second, if i come back to the one, the activity was "restarted". that's why i don't use fragments Aug 05 21:23:45 freeone3000: check this out https://gist.github.com/kgrigor/1944298739773e04b792 Aug 05 21:24:08 SimonVT so with my aproch it's not possible ? Aug 05 21:24:43 can someone help me with this notification progress bar problem during file upload? I have already posted it in SO with the code, stackoverflow.com/questions/25127908/notification-progressbar-during-file-upload Aug 05 21:25:01 Fix the problem you had with fragments. What you're doing now is not the answer Aug 05 21:28:18 Ok thanks i will see it latter Aug 05 21:28:23 Time to sleep Aug 05 21:28:27 Bye Aug 05 21:29:25 detachYo: That's not quite what I want. Given a given contact ID, I want to get all available data for that contact. Aug 05 21:29:29 Tried IntelliJ again. Very slow. Aug 05 21:29:38 Just opening a menu involves clear lag. Aug 05 21:29:49 TacticalJoke: Are you running gcj or something? Aug 05 21:29:50 get a better machine, runs fine on my three machines Aug 05 21:30:05 Nothing else runs slowly on my machine. Aug 05 21:30:10 What's 'gcj'? Aug 05 21:30:21 gnu java compiler Aug 05 21:30:59 Oh. no. Aug 05 21:31:00 No* Aug 05 21:31:46 are you using oracle's jre to run it ? Aug 05 21:31:50 Yeah. Aug 05 21:31:58 Eclipse is very fast. Aug 05 21:32:48 they are all slow because they use the java runtime Aug 05 21:32:58 Eclipse feels snappy here. Aug 05 21:33:01 freeone3000: it is possible that a contact doesn't have a phone number or other information, you can't expect all contacts to have all information Aug 05 21:33:07 IDE's with C/C++ runtimes are snappy Aug 05 21:34:01 No problems with Eclipse here. Aug 05 21:34:36 TacticalJoke: are you running on windows with a virus scanner ? Aug 05 21:34:40 TacticalJoke: on my quad core AMD laptop with 4GB ram Eclipse is about 10% faster than Android Studio but they are both slow Aug 05 21:34:57 r3s: how often is your onProgress getting called? Aug 05 21:35:28 Android Studio has to be at least three times as slow as Eclipse for most things here. Aug 05 21:35:33 Even ignoring Gradle. Aug 05 21:36:07 TacticalJoke: AS is far better than Eclipse, plus Google is goign to stop support Eclipse. :) Aug 05 21:36:23 And this is coming from heavy Eclipse user. Aug 05 21:36:35 But then again, you might be faceing more problems than I have. Aug 05 21:36:39 AS is slow, it doesn't support JVM unit tests out of the box, it uses extremely slow Gradle, etc. Aug 05 21:36:44 canvs2321, i think it is getting called about 10-20 times a second. Aug 05 21:36:49 I worry about the future of Android development. :/ Aug 05 21:36:56 TacticalJoke: we all do :( Aug 05 21:37:55 i worry supporting L is going to be another headache - but i hope google learned from past ;) Aug 05 21:38:16 the design is quite different, i don't want different code paths. a few changes in xml are ok Aug 05 21:38:20 r3s: is there any limitation to how often you can update a notification? plus maybe add in some Log.X to see how often and the values of percentage etc..see what you can see Aug 05 21:38:33 g00s: pfft .... just do what the apple devs do and say 'fu' to whoever isn't running the latest OS :) Aug 05 21:38:51 canvs2321, but the notification doesn't even show up. I have added the code to start it even before I start the network request, but it only appears after that activity completes uploading Aug 05 21:41:24 Hey g00s, at the beginning I didn't understand what you meant with certificate pinning? But what I have read, it's about trusting all the certificates, right? Aug 05 21:41:43 r3s: where is your intial notification post located in your code Aug 05 21:42:03 canvs2321, Just before I make the client.post() request Aug 05 21:42:03 android-dev969 you cant to make sure the fingerprint of the certificate matches what you received Aug 05 21:42:57 is that in a onClickListener Aug 05 21:43:04 is swdp for tablets only? Aug 05 21:43:09 android-dev969 i am a little rusty on this topic though :( ... i don't want to mess you up and then your users get exposed to an attack Aug 05 21:43:32 does it load if you comment out the client.post code Aug 05 21:43:40 i had to use a java library that fucked this all up (SSLSocketFactory, peer verification, etc) Aug 05 21:44:59 canvs2321, Let me check Aug 05 21:46:21 g00s, yes exactly that what I'm doing right now. I'm using EasySSLSocketFactory, but what it does, it's trusting all the certifcates not matter what Aug 05 21:47:42 and I would like to ask the user before if he wants to add the certificate in the application with prompt, like a browser behaviour, you know? Aug 05 21:48:08 canvs2321, yep, it appears if i try it in a separate thread without the client execution Aug 05 21:49:12 hi Aug 05 21:50:38 r3s: posting it in seperate thread, does it update it in your client.post with your handler? Aug 05 21:52:02 canvs2321, I don't understand. Aug 05 21:52:46 g00s: aww did you see onStart has been added to Subscriber ? Aug 05 21:53:07 you said you used a seperate thread to get the notification up, doing that will the your onProgress update that notification? Aug 05 21:53:10 bankai_au no, i haven't looked at 0.20.0 yet Aug 05 21:53:33 if your builder&manager are in the same scope Aug 05 21:54:00 been waiting for that feature :) Aug 05 21:54:39 I have an application with only 1 Activity, the App crashes everytime i open it up. and i'm very puzzled and i i actually don't know the reason.. MainActivity: http://pastebin.com/qAcNGwP8 Aug 05 21:55:21 fargment_main has only one TextView in a RelativeLayout Aug 05 21:55:26 am i in the right place? Aug 05 21:56:13 OverCoder: is the activity in the manifest? Aug 05 21:56:15 canvs2321, actually I used the thread to update the notification, every 2 seconds. It was started as it was before, above the client.post. Aug 05 21:56:34 OverCoder: if yes, then pastebin the stacktrace Aug 05 21:56:57 yes Aug 05 21:57:40 r3s: well hope ya get it, i was just trying some different things with you, not sure why it's getting blocked til done, maybe google those symptoms a bit Aug 05 21:59:00 <_abc_> Hello. Can someone please help me understand what this app is doing in my android sdk 2.3 default image? http://188.27.185.3:8881/mypaste/5568c8d82c0a2c109e83 The server is in my laptop. Aug 05 21:59:08 shipit: should i post LagCat? Aug 05 21:59:24 OverCoder: yes, but please use pastebin or something Aug 05 21:59:37 shipit: OK Aug 05 21:59:41 OverCoder: on the logcat there should be an exception trace Aug 05 21:59:56 _abc_: I've seen this a lot in Chinese Tablets/Phones Aug 05 22:00:05 <_abc_> Okay. What is it? Aug 05 22:00:10 i dont know xd Aug 05 22:00:17 <_abc_> Nobody read Mandarin here?! Aug 05 22:00:19 r3s: one last thing, and you did say for sure onProgress is getting called? even if the notification didn't show immediately? Aug 05 22:00:49 canvs2321, thank you. I've been searching, i guess it may be because the progress is being updated too fast. I'll have to find a way to get it work. And yes, onProgress is being called. I can log it Aug 05 22:01:36 <_abc_> I love android shipping funny apps by default with no explanation. Aug 05 22:02:03 <_abc_> Also it has all possible permissions. Aug 05 22:02:43 <_abc_> Is that one of the search engines they use? Baidu? Aug 05 22:02:59 r3s: maybe do a test to only update on the 1/4s of completetion Aug 05 22:03:13 <_abc_> Nope, wrong icon Aug 05 22:03:41 seems 10-20 times a second would be a stalling point, but i'm not an expert :) Aug 05 22:03:55 specially if it all gets queued on main UI Aug 05 22:04:38 When i click the save button to save LogCat is onyl creates an empty file Aug 05 22:04:39 wtf Aug 05 22:04:54 I did try to update it every 10%, but it didn't work. let me try increasing that delay Aug 05 22:05:53 r3s: what if you comment out your onProgress notifications, and keep the original before client.post, will it put the notification up before upload is complete? Aug 05 22:06:28 shipit: http://pastebin.com/ufrGR42S Aug 05 22:06:33 that's log cat* Aug 05 22:06:46 what a cat, it logs everything Aug 05 22:07:17 OverCoder: No view found for id 0x7f050014 (com.mirodrod.codeexamplepro:id/home) Aug 05 22:07:38 canvs2321, nop. it doesn't Aug 05 22:07:42 oh i just saw it Aug 05 22:07:55 r3s: :/ not sure then Aug 05 22:09:06 shipit: sorry for being an idiot, i just didn't see that before, i've located the typo, i sorry but i'm a beginner Aug 05 22:09:42 OverCoder: no worries, we've all been there :) good luck! Aug 05 22:09:48 :) thx Aug 05 22:09:52 no problem canvs2321 . thank you Aug 05 22:16:42 is it easy to make anything scrollabe? if I have a GirdLayout that is slightly bigger than the screen can I make it scroll easily then? or should I just us a gridview then? Aug 05 22:17:49 canvs2321, increasing the delay to 20%. I'll see if i can get it down more Aug 05 22:20:32 Anyone know what this error might be about? http://pastebin.com/raw.php?i=utmRb8Xm Aug 05 22:22:05 vozz: it says com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000) Aug 05 22:22:28 Do you know what that means? Aug 05 22:31:10 Nope, but I am sure google has some info on it Aug 05 22:32:00 can an android application initiate an 'adb pull' to move a file from the device to a connected pc? Aug 05 22:32:56 detachYo: I've googled it and get very little, and what is there is not useful for me. Things like changing to Java 6. Aug 05 22:35:14 wow mkdocs is pretty cool Aug 05 22:35:49 still vozz at least you got told what it said in the pastebin... ;) lol. Aug 05 22:36:51 if you need to draw a level based on the canvas size, how would you do that? when in the fragment lifecycle would you get thesize and how? would you not draw everything when it is created but wai until onResume where you can get the width? Aug 05 22:37:13 should you get the width of the View not the get the screen size? Aug 05 22:37:42 yes Aug 05 22:41:08 vozz: i see, sorry don't know what to say Aug 05 22:42:58 shmooz, yes to what? Aug 05 22:43:07 gardenlayout you should using surfaceview Aug 05 22:43:17 usually you have surfaceview implement surfaholder.callback Aug 05 22:43:27 which has onviewportchanged which has parameters (newWidth, newSize) Aug 05 22:43:35 which are your viewport size (canvas size) Aug 05 22:43:58 if you want to not use surfaceview and subclass your own view you can override onmeasure Aug 05 22:55:35 guys, is there any way to get automatic change transitions in a listivew? Aug 05 23:04:46 I have an EditText with a gravity=center, but the problem is that the text starts from the center and goes to the right from there. What I want is that the whole text that is typed is in the center of the EditText, i.e. not start from the center. How to accomplish that? Aug 05 23:08:13 Should I be targetting 4.4W? Aug 05 23:09:14 anyone have any strong opinions for/against jfx ? Aug 05 23:09:29 aww crap, i dont know how to computer. i unzipped "L Developer Preview reference" from http://storage.googleapis.com/androiddevelopers/preview/l-developer-preview-reference.zip ... and all the effing links are broken. nothing is clickable ... what did I do :| Aug 05 23:10:54 TacticalJoke: do you have a Wear device? Aug 05 23:10:58 Nope. Aug 05 23:11:06 Isn't it just the latest SDK? Aug 05 23:11:12 I'm confused about what it is. Aug 05 23:11:21 look at the W Aug 05 23:11:42 Should I be targetting API 19 instead? Aug 05 23:12:13 target 20 if you want, or 'android-L', the 4.4W is for wear devices Aug 05 23:12:42 Okay, but the other one is a preview. Aug 05 23:12:47 then do 19 Aug 05 23:13:23 Hmm. I'm pretty sure the ADT Eclipse bundle came with only 4.4W. Aug 05 23:13:35 Then use the SDK Manager and get the rest Aug 05 23:13:52 check your sdk folder Aug 05 23:14:04 I know. Just don't understand why it's using only 4.4W if using 4.4W is a problem. Aug 05 23:14:18 Where's the link to the bundle you downloaded? Aug 05 23:14:43 http://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.zip Aug 05 23:15:15 is there a page that has that link on it i meant :) Aug 05 23:15:17 g00s: you done f* up mang. Aug 05 23:15:18 that describes it Aug 05 23:15:26 g00s: JK, good luck though :) Aug 05 23:15:36 Yeah, it's this: http://developer.android.com/sdk/index.html :) Aug 05 23:17:30 Where did you extract the bundle Aug 05 23:17:50 To C:\. Aug 05 23:18:34 is there a C:\\platforms\? Aug 05 23:19:04 Yeah, C:\\sdk\platforms\. Aug 05 23:19:09 It has only "android-20". Aug 05 23:19:12 A directory. Aug 05 23:19:27 then you'll have to download the other platforms you want too Aug 05 23:19:38 is there a SDK Manager.exe Aug 05 23:19:39 Is using 4.4W an issue? Aug 05 23:19:44 I've been having problems all day. I wonder if it's this. Aug 05 23:19:45 Yeah Aug 05 23:19:46 . Aug 05 23:19:48 it is a SDK For Wear devices Aug 05 23:20:02 ok the SDK Manager and download the platforms you'll be using Aug 05 23:20:07 ok = open Aug 05 23:20:17 So it can't be used for normal Android apps? Aug 05 23:20:23 ... Aug 05 23:21:21 I know. I'm starting all over again. Gonna install Eclipse again. Aug 05 23:21:26 Then download API 19. Aug 05 23:21:43 I'm just hoping that API 20 is the reason I've spent six hours trying to fix this problem. Aug 05 23:21:50 just use the SDK Manager to download the other APIs Aug 05 23:22:02 if only targeting 19 then download 19 Aug 05 23:22:08 if anything earlier get what you need Aug 05 23:22:33 Yeah. I just don't understand why 20 is called 20 when it's not really the next in line after 19. Aug 05 23:22:46 My previous idea was "Use the highest SDK version possible". Aug 05 23:22:49 stop trying to understand, just get what you need Aug 05 23:23:15 20 isn't valid for now, it is just a preview. if you don't have 19, then you can't code for it Aug 05 23:23:31 during startActivityForResult, what could cause the originating class’s onActivityResult from being called? Aug 05 23:23:50 it’s kind of odd but I’m experiencing something like that. Aug 05 23:24:35 I’ve confirmed with Log messages (first line in onActivityResult) that aren’t getting logged. Aug 05 23:26:26 I am using okhttp for multiipart/form-data request https://github.com/square/okhttp/issues/1014 however I am doing something wrong.. any help, please Aug 05 23:28:45 People always said "Compile against the highest SDK version". Aug 05 23:28:48 Has that changed? Aug 05 23:28:52 Should we stick to 19 now? Aug 05 23:35:34 I downloaded the latest Eclipse ADT bundle. When I create a JVM unit test and try to run it, I get a NullPointerException. Aug 05 23:35:41 20 Aug 05 23:35:59 I can fix this by installing Eclipse Java Development Tools. But why do I need to do this/ Aug 05 23:36:06 I'm concerned that doing this will break something. Aug 05 23:36:11 JakeWharton: Are you recommending using 20? Aug 05 23:36:16 yes Aug 05 23:37:48 20 is just the latest API, then? Aug 05 23:38:10 yes, it's 4.4W Aug 05 23:38:22 min 15, target 20 Aug 05 23:38:51 My min is 14. ;o Aug 05 23:39:08 change it to 15 Aug 05 23:39:14 nobody uses 14 Aug 05 23:41:20 14 was only on the galaxy nexus Aug 05 23:41:26 everyone else got 15 Aug 05 23:44:43 is there a bitmap scale routine which allows you to only specify the destination height OR width of a bitmap and it automagicaly scales the other axis to keep the original aspect ratio? Or do I need to query using inJustDecodeBounds and manually calculate the other length? Aug 05 23:59:01 i don't know what a 'bitmap scale routine' is, but yes, you should do this yourself Aug 06 00:05:17 "bitmap "scale". not hard. But thanks. ;) Aug 06 00:08:33 Hello Aug 06 00:08:43 Has anyone actually set up admob? Aug 06 00:08:49 I can't seem to get ads from it. Aug 06 00:08:57 Do I need a published apk for admob to work? Aug 06 00:09:44 is my publisher ID pub-xyz or just xyz? Aug 06 00:20:45 never mind i found the ad unit id.... dear god, it was buried Aug 06 00:22:15 Anyone know how to add javadoc for a local aar in android studio? Aug 06 00:27:52 click into the class, add sources Aug 06 00:33:26 "click into class"? Aug 06 00:34:15 ive added a local aar as a new module, then added that as a dependency to my application module Aug 06 00:34:50 trying to link the javadoc jar of that aar (generated seperatly, since it appears they can't be bundled), now trying to figure out how to see that java doc from my application module (which has the aar module as a dependency) Aug 06 00:38:10 I'm having issues setting properties on the andorid.widget.Switch; the emulator displays it correctly, but my S3 w/ jellybean still shows the default on/off switch. Any ideas? Aug 06 00:46:24 I'm having issues setting properties on the andorid.widget.Switch; the emulator displays it correctly, but my S3 w/ jellybean still shows the default on/off switch. Any ideas? Aug 06 00:46:59 If someone can answer they will - copy paste isnt necessary Aug 06 00:47:28 I'm having an issue that should be easily fixed, but it's giving me a lot of headache. All I'm trying to do is write a simple web view app, but when I open it all I get is a white screen. Any ideas? Aug 06 00:47:39 logcat isn't giving me any information. Aug 06 00:48:13 so i called requestFocus on an edittext and the keyboard comes up, but the edittext doesn't. what might be the issue? Aug 06 00:57:40 this is what I have in my code to invode the website, but it's just showing white Aug 06 00:57:41 Aug 06 00:57:41 WebView myWebView = (WebView) findViewById (R. id. webview); Aug 06 00:57:41 myWebView.loadUrl ("http://www.rockcomputerrepair.com"); Aug 06 00:57:48 anything that should be different? Aug 06 01:03:47 any ideas? g00s? Aug 06 01:06:45 would an onclick work better on the edittext? I'm really really new to this so I'm just sort of guessing. Aug 06 01:07:02 as you can tell by my question of trying to get my web view app to work lol Aug 06 01:48:34 i'm still confused about api 20. in the SDk manager, there are 2 entries "(1) Android L (Api 20, L Preview) ... and (2) Android 4.4W (Api 20). is #2 only for wearables ? Aug 06 01:49:04 could they make this any more confusing :| Aug 06 01:49:34 i thought the wearable Apis were in play services + compat lib Aug 06 01:55:34 if i'm not doing anything with wear atm, should I still be saying targetSdk=20 ? Aug 06 01:56:08 JakeWharton: Should I set targetSdkVersion to 20 even if I've not tested my app on 20? Aug 06 01:56:16 I've tested my app on 16 at most. Aug 06 01:56:18 yes #yolo Aug 06 01:56:27 So my targetSdkVersion is 16. Aug 06 01:56:47 Hmm. I wonder whether any harm could come of this. Aug 06 01:57:02 People seem to say "target the highest you've tested against". Aug 06 02:04:04 Hello Aug 06 02:05:19 I have a couple of custom classes that implement parcelable. I was wondering if there is a way of storing an ArrayList of one of my parcelable classes inside the other Aug 06 02:07:04 I am really having problems with reading the object not storing it Aug 06 02:07:34 the object is something like this: private ArrayList pages; Aug 06 02:08:11 i am not sure how to tell the read parcel method what type of array it is Aug 06 02:08:43 because this is where it is failing: pages = in.readArrayList(ArrayList.class.getClassLoader()); Aug 06 02:08:53 JakeWharton: "Add support of normal unit test folders to Android Studio" ( https://code.google.com/p/android/issues/detail?id=65186 ) is picking up momentum. It's been marked as "High" priority. Aug 06 02:09:58 any help would be awesome thankyou Aug 06 02:51:26 "Visual Studio is technically a team, yes, but there are thousands of devs working on it." holy shit Aug 06 02:53:26 what requires so many sweaty dudes crammed into one team? Aug 06 02:53:43 well, they write the tooling for their own languages :P Aug 06 02:53:54 hello. I'm trying to figure out how to verify in-app purchases on a server. It seems as if this is the API call to use, but it doesn't seem to actually contain a parameter identifying the purchase https://developers.google.com/android-publisher/api-ref/purchases/products Aug 06 02:54:05 can anyone point me in the right direction on how to do this? Aug 06 02:55:03 Hi, would someone explain more about the doc, http://developer.android.com/reference/java/lang/ref/WeakReference.html Aug 06 02:55:08 nesoi: you can check out the in app billing sample Aug 06 02:55:20 I know "All weak references pointing to obj" Aug 06 02:55:42 But I am confused about the second part: All weak references pointing to objects from which obj is either strongly or softly reachable. Aug 06 02:55:44 MohitKanwal: thanks. where's that? Is it server code? I'm looking to do batch verification, not verification from the app... Aug 06 02:57:08 the obj is considered weakly reachable but the second part says that the obj is either strongly or softly reachable **** ENDING LOGGING AT Wed Aug 06 02:59:59 2014