**** BEGIN LOGGING AT Tue Mar 18 02:59:59 2014 Mar 18 03:08:18 oh wow http://www.crn.com/news/mobility/300072056/sources-microsoft-in-talks-to-acquire-mobile-app-development-startup-xamarin.htm Mar 18 03:08:45 bit curious as to why, but ok :S Mar 18 03:09:03 maybe they think it will help solve their app problem Mar 18 03:09:21 man, if they gave some form of that away from free, it would be killer Mar 18 03:09:38 you reckon ? Mar 18 03:09:54 i'd use it for android / WP Mar 18 03:09:59 2 birds, one stone :) Mar 18 03:10:23 2 girls, 1.. nevermind. Mar 18 03:12:13 i struggle to accept Xamarin as a solution to cross-platform compatibility (if that's even a thing) Mar 18 03:13:14 i always thought they were in a grey area with MS Mar 18 03:13:31 g00s: they weren't Mar 18 03:18:46 i thought they had already acquired xamarin... Mar 18 03:19:27 they really are putting some serious money into this mobile area Mar 18 03:21:56 yeah, who knows, this mobile thing may take off one day ;-D Mar 18 03:22:42 fuckin lammers Mar 18 03:22:53 for MS? i'm still not sure Mar 18 03:23:15 if MS didn't repel so many people with Windows 8, i think WP 8 would be doing better Mar 18 03:23:32 i bet many people are waiting to see Mar 18 03:23:42 will they fuck up Windows 9? heh Mar 18 03:24:49 when's that out ? Mar 18 03:25:05 g00s: afaik, Xamarin had worse beef from FSF Mar 18 03:26:03 p_l you're probably right, i didn't follow the conflict closely. like gtk vs Qt, seemed like something always simmering Mar 18 03:33:53 Miguel has been on course to work for MS sooner or later for a long time Mar 18 03:38:46 Is anyone aware of a way to have actionbar tabs only take up as much width as they need to? Mar 18 03:39:39 They take up almost twice as much space as they really need to, so they cause unnecessary scrolling. Mar 18 04:06:09 Jamie Zawinski replied to my e-mail. cool! Mar 18 04:34:47 How do you have gradle generate all release types (debug/release) at once? Mar 18 04:38:16 ./gradlew assemble Mar 18 04:38:26 or ./gradlew build if you have any check tasks too Mar 18 05:03:39 hm, the simple Bluetooth code i wrote when i had droid-1 doesn't work well at all my nexus 7 2013. two main reasons: one: 50% a connect is successful on the first try, 50% two connect attempts are required (I never saw this on my droid-1). Mar 18 05:03:57 second, the inputStream is sometimes filled with random gunk Mar 18 05:04:07 (on connect) so i have to bleed that off Mar 18 05:04:16 same BT device though Mar 18 06:18:44 first time trying to create an android app and im having a hell of a time just getting the IDE up to hello world... anyone got a free minute to help a noob get started? Mar 18 06:20:30 macntrash: what's going wrong? Mar 18 06:21:11 well right now when i try to launch an emulator from the AVD manager in android studio i get this message and it never loads Mar 18 06:21:12 emulator: ERROR: This AVD's configuration is missing a kernel file!! Mar 18 06:21:59 google that stuff Mar 18 06:22:00 http://stackoverflow.com/questions/9712605/emulator-error-this-avds-configuration-is-missing-a-kernel-file Mar 18 06:22:13 i had tried last night to get the eclipse ide up and running with limited success.. i could get the emulators up and running but for some reason no apk could ever get installed to it even though it said in the log it was installing it successfuly i just never saw the app anywhere in the emulator Mar 18 06:22:23 yeah ive been googling Mar 18 06:22:49 and everything seems way too complex of a solution for what is supposed to just work...for hello world..right? isnt it supposed to just work? Mar 18 06:23:32 im not trying to do anything crazy just follow the "getting started" tutorial which is just like "install android studio, make a new project, create an AVD, run" Mar 18 06:23:46 well, did you read the stackoverflow answer? Mar 18 06:24:48 yeah but thats for eclipse Mar 18 06:24:54 and im using android studio Mar 18 06:25:46 it seems like theyre both using the same avd manager though..is that true? Mar 18 06:26:13 yes Mar 18 06:26:24 the answer applies to android studio too Mar 18 06:26:39 theres multiple answers on that page Mar 18 06:27:11 read the top one! it's checked for a reason :) Mar 18 06:28:19 ok but i do have those system images Mar 18 06:28:44 i updated the crap out of everything in the SDK manager hoping it would work Mar 18 06:28:57 well ok not everything...but everything that seemd like it might help Mar 18 06:30:34 i still dont understand what ive done wrong... i downloaded the latest android studio, installed it, updated the SDK, and i just cant run any emulators! Mar 18 06:31:31 try creating another virtual device Mar 18 06:32:11 macntrash: don't you have a real android device ? Mar 18 06:32:13 ive been doing it over and over Mar 18 06:32:21 i do have a real one Mar 18 06:32:27 use that instead Mar 18 06:32:30 and i had it working with eclipse last night at least to hello world Mar 18 06:33:10 but today when i tried to make a new project in eclipse, i noticed it doesnt make the default activity anymore Mar 18 06:33:15 theres just nothing in the src directory Mar 18 06:33:33 so i tried to figure that out...couldnt...so i decided to go with android studio since thats the new thing anyway...and well... here i am Mar 18 06:34:07 macntrash: there's a checkbox in the new project wizard that says "create default activity" Mar 18 06:34:10 or something along those lines Mar 18 06:34:18 yeah it was checked, belive me Mar 18 06:34:37 im actually not a noob but this experience is really making me feel like one Mar 18 06:34:57 i just want to code some shizzz Mar 18 06:35:00 macntrash: take it slow Mar 18 06:35:21 if i take any more deep breaths ill pass out Mar 18 06:35:22 don't rage quit and try what else is next Mar 18 06:35:38 oh i am not going to quit Mar 18 06:35:48 i have an android phone and i am going to make apps for it Mar 18 06:35:53 you won't like the emulator anyway Mar 18 06:36:00 yeah its way too slow Mar 18 06:36:05 if you want an emulator go for genymotion Mar 18 06:36:14 but i still think it should work..i mean...its included in the thing Mar 18 06:36:17 but I recommend real device Mar 18 06:36:40 ok i guess i should try android studio with a real device first before i get too upset Mar 18 06:37:47 so but then i was following this tutorial Mar 18 06:38:01 and the guy had a template file he wanted me to put in a certain folder Mar 18 06:38:02 C:\Users\username\AppData\Local\Android\android-studio\plugins\android\lib\templates\activities Mar 18 06:38:07 but i DO NOT have that folder Mar 18 06:38:32 theres only one user on my computer and in that folders appdata/local there is no android folder Mar 18 06:38:40 Isn't it possible to compile a unix cli program and run it in a terminal? Mar 18 06:39:05 if you haven't used intelliJ, and you are new to android, expect some bumps ahead. i think the tuts / docs are better for the eclipse stuff still Mar 18 06:39:06 macntrash: try to find where it's installed by searching Mar 18 06:39:19 DarkLinkXXXX: yes Mar 18 06:39:28 I'm trying to compile a hello world program for android using llvm/clang, but I'm having a hard time figuring out what the options should be. Mar 18 06:39:37 ok searching entire users folder for android-studio Mar 18 06:40:05 maybe it went to like Program Files or something Mar 18 06:40:36 yeah it did install there Mar 18 06:40:46 but i figured the appdata folder is something seperate? Mar 18 06:41:04 depends how you install Mar 18 06:42:20 ok well thanks for that Mar 18 06:42:29 cause you were right thats where the folder is Mar 18 06:42:29 like if you choose to make it available to all users Mar 18 06:42:57 so i guess i can follow this guys tutorial now and maybe it will just work with my actual android device Mar 18 06:43:08 and if i try real hard i can forget about the fact that it wont work with emulators Mar 18 06:43:11 but it just bugs me Mar 18 06:43:25 get used to getting stuck but google it Mar 18 06:43:52 when you do Mar 18 06:44:10 do you guys think it's overkill to implement user registration for simpler, Android-only apps? Mar 18 06:44:15 yeah the problem there is a lot of times u read a solution but its for an older version Mar 18 06:46:26 macntrash: you probably need to get the latest USB drivers for your device Mar 18 06:46:35 meh...might as well implement user registration anyway. losing data upon uninstalling an app is silly Mar 18 06:48:03 Mango_Man: I'd make user registration but also allow them to use it without Mar 18 06:48:18 user registration would give you some benefits Mar 18 06:49:39 so it's either 1) user registration + save data in the cloud, or 2) no user registration, save data in a SQLite file, allow a data export option Mar 18 06:49:55 no i had the device working already last night Mar 18 06:49:57 who was asking about auto completing address the other day? Mar 18 06:49:58 i got the usb drivers Mar 18 06:50:06 Mango_Man: what kind of app are you making ? Mar 18 06:50:20 so yeah it does work using my actual device in android studio Mar 18 06:50:23 but now i have another question Mar 18 06:50:36 shmooz: a food app. :D the data would be a bunch of recipe objects Mar 18 06:50:42 why cant i find the app installed after im done running it? Mar 18 06:51:29 ok so for example you'd have comments, everyone can read without registering, but if you want to comment you have to register Mar 18 06:51:48 about how good that food is Mar 18 06:52:27 or if you want to submit a recipe Mar 18 06:52:58 hmm, you raise a good point. at the moment, users don't submit anything, so user registration is unnecessary. but it should be considered if users can submit recipes Mar 18 06:53:56 and why does logcat keep going after ive closed the app? Mar 18 06:54:46 oh hmm..looks like i never actually closed it since there is no close feature Mar 18 06:55:41 macntrash: logcat is crazy like that Mar 18 06:55:48 ok wait..no i killed the app with a task killer and its still just going nuts Mar 18 06:56:00 so thats normal>? Mar 18 06:56:06 yeah Mar 18 06:56:08 how do i make it stop? Mar 18 06:56:16 you don't Mar 18 06:56:18 god make it stop Mar 18 06:56:22 lol Mar 18 06:56:28 this is OCD nightmare level 10 Mar 18 06:56:54 u spawning threads? Mar 18 06:57:19 macntrash: logcat runs always Mar 18 06:57:42 ok cool if u say so Mar 18 06:58:05 what is the cat part of logcat Mar 18 06:58:26 Has musl ever been compiled for android? Would it be practical? Mar 18 07:06:09 anyone have a suggestion for a tutorial i could actually follow with android studio? Mar 18 07:06:37 my main problem with tutorials is when they say "do this and you should see this" and then i do that but i see something else... Mar 18 07:07:43 macntrash: I'm gonna guess it stands for concatenate Mar 18 07:08:08 My main problem with tutorials is when they say "do this and you should see this", they don't really explain what's really happening, so I don't understand what's wrong when I see something else. Mar 18 07:08:31 yea that too Mar 18 07:08:40 shmooz that was my only guess as well Mar 18 07:08:50 macntrash: you can see youtube videos of people compiling stuff Mar 18 07:09:37 "what'd you do for st paddys day?" Mar 18 07:09:49 "stayed home and watched youtube videos of people compiling things" Mar 18 07:10:35 macntrash: You know Americans celebrate that more then the Irish? Mar 18 07:10:57 "we were all shouting: BUILD! BUILD! BUILD! Mar 18 07:11:02 macntrash: what programming/design langs do you know ? Mar 18 07:11:14 i mostly learned C++ in school Mar 18 07:11:30 but i know java, html, css, php, sql... Mar 18 07:11:43 its all just programming Mar 18 07:11:48 languages dont matter so much i think Mar 18 07:12:15 welcome to android programming Mar 18 07:12:19 my main problem is i start something and then get distracted Mar 18 07:12:25 so heres hoping that's over with Mar 18 07:12:26 * DarkLinkXXXX nods Mar 18 07:12:38 Hi Mar 18 07:12:41 thanks Mar 18 07:12:47 ive been wanting to get serious about this for a while Mar 18 07:12:47 I'm like "learn all the languages", and then I end up learning nothing else. Mar 18 07:13:06 *useful Mar 18 07:13:15 yeah i got some simple ideas for some games i wanna make with the touchscreen Mar 18 07:13:19 I have a problem Mar 18 07:13:23 and maybe even some accelerometer Mar 18 07:13:23 macntrash: there's fragmentation and many ways to do things so take your time comparing stuff and deciding what you want to support Mar 18 07:13:42 yeah this tutorial im following mentioned fragments Mar 18 07:13:54 but thats why he has a custom template to start with that doesnt bother with fragments yet Mar 18 07:13:59 i am developing an app to tutorial math Mar 18 07:14:11 a lot of people need math help Mar 18 07:14:19 * macntrash raises hand Mar 18 07:14:55 yeah fragments are another fragmentation ;) Mar 18 07:15:03 but if i use for loop to change some images, it change at one time Mar 18 07:15:09 not one by one Mar 18 07:15:10 no prob, just run defrag, right? Mar 18 07:15:18 lol Mar 18 07:15:47 Can someone point to a guide for compiling unix programs for android? Mar 18 07:15:57 defrag? Mar 18 07:16:08 he's joking Mar 18 07:16:14 :D Mar 18 07:16:15 I hope :P Mar 18 07:16:30 dang its still not working Mar 18 07:16:32 Actually, I have a more intelligent question. What is android's binary file format? Mar 18 07:16:37 lemme try defrag again Mar 18 07:16:56 i will search about it Mar 18 07:17:24 Thank you Mar 18 07:24:04 can someone tell me what the gradle is? Mar 18 07:24:34 gradle gradle gradle, i made you out of code... Mar 18 07:25:12 http://pastebin.com/HL2i5eHY Mar 18 07:25:20 this is my code Mar 18 07:25:36 please visit it to understand my problem Mar 18 07:27:44 any solutions? Mar 18 07:27:44 Umm... why did you do that? I see what's wrong, but I don't understand the dilemma. Mar 18 07:27:48 so many for loops of the same kind Mar 18 07:28:18 yes, the circles should be change one by one Mar 18 07:28:27 but it change one time Mar 18 07:28:44 I'm not so familiar with java, but how about for each in R.drawable.... Mar 18 07:29:11 this is not the problem Mar 18 07:29:18 Okay. Mar 18 07:29:54 the problem is the android system apply images changes after finish all loops Mar 18 07:30:00 understand me? Mar 18 07:30:16 Oh... Mar 18 07:30:46 Maybe re-factoring will help make the solution more clear. ;) Mar 18 07:30:52 my app is a tutorial app, so i need to change it One-By-One Mar 18 07:31:00 Ah. Mar 18 07:31:37 i have try ThreedSleep, but it does not help me Mar 18 07:32:46 "c" and "r" in the code is column and row Mar 18 07:33:10 do u have to call soemthing inbetween the loops to refresh the screen? Mar 18 07:33:53 no, is it possible? Mar 18 07:34:00 oh boy Mar 18 07:34:04 i have 9*9 circles Mar 18 07:35:15 MalekAlrwily: you should be able to make a thread sleep some milliseconds Mar 18 07:35:31 i have tried it Mar 18 07:35:41 NOTHING CHANGE Mar 18 07:35:50 you did it wrong Mar 18 07:36:06 just wait and the screen not refresh Mar 18 07:38:28 macntrash: is there a method to update the screen? Mar 18 07:38:37 or update the views Mar 18 07:39:39 invalidate() Mar 18 07:40:00 hey guys Mar 18 07:41:22 what is the preferred way to model my domain models in my android application. so far I'm using POJOs Mar 18 07:43:03 shmooz: Thanks, and i will try it now Mar 18 07:57:21 mal sorry i was just making an ignorant suggestion, i am new as in day one to android development Mar 18 08:19:01 hellow Mar 18 08:20:31 hi Mar 18 08:21:21 hello mr rob0to Mar 18 08:21:55 I need help with this code Mar 18 08:21:56 http://pastebin.com/wrMc9kw6 Mar 18 08:22:41 Server server = getServerFromView(); in -> private boolean tryToConnect() { -> not work Mar 18 08:22:49 i do not understand Mar 18 08:23:27 ordered must be something wrong, but that is not Mar 18 08:24:13 what does "not work" mean ? Mar 18 08:24:51 I mean that the file does not read that string in that area of ​​the Mar 18 08:24:58 Server server = getServerFromView(); in -> private boolean tryToConnect() { Mar 18 08:25:08 but on the other hand if Mar 18 08:25:39 private void save() { ->getServerFromView(); in -> private boolean tryToConnect() -> work Mar 18 08:25:48 Server server = getServerFromView(); in -> private boolean tryToConnect() { -> not work Mar 18 08:27:03 hey y`all, is it possible to rescale the background image of a normal button? i have a small picture in a large button but whenever i try to get the measurements of the small image (getbackground()) itself i get too large values as if the current background of the button is the complete space of the button, where the originally small image is part of..... Mar 18 08:27:18 I have tried this but does not work. -> Server server = 0x0; Mar 18 08:27:51 b0t: sounds like you bit more than you can chew Mar 18 08:27:52 adkins: drawable background in html Mar 18 08:28:24 shmooz: i do not understand Mar 18 08:28:41 sorry adkins in xml Mar 18 08:30:01 b0t: not sure if you understand what i mean. i already have a 42pxX42px drawable background in xml. i want to resize that image, and only that, later in source-code Mar 18 08:31:00 I get an error with my code in conversation.java file on line 225, I see in the debug that means failure where I am saying Mar 18 08:31:08 wow, they found that missing airplane on the moon :O Mar 18 08:31:37 aliens, i was saying it all along. Mar 18 08:31:39 g00s: create drawables for different resolutions Mar 18 08:31:55 Vino yes, yes indeed Mar 18 08:32:00 b0t: not an option for what i want to do Mar 18 08:32:02 ;) Mar 18 08:32:30 adkins: and what do you wanna do? Mar 18 08:32:38 aliens? it's totally north korea Mar 18 08:32:40 Vino you saw this right ? http://i.imgur.com/Ee6MBIs.jpg Mar 18 08:32:51 how do you specify inner classes inside of aidl files? Mar 18 08:32:52 my internet isn't working right now for some reason Mar 18 08:32:56 it's the Illuminati! Mar 18 08:32:58 but irc is, i'm very confused Mar 18 08:33:17 my dns or something Mar 18 08:33:26 lets say I have a Parcelable Foo that has a static inner class (also parcelable) called Foo.Id Mar 18 08:33:44 .c Mar 18 08:33:47 /clear Mar 18 08:33:49 then in my aidl file I want to have a method that return Foo.Id Mar 18 08:34:22 Foo.Id getId(); Mar 18 08:34:29 is it possible? Mar 18 08:34:36 b0t: too much/too complicted to explain now......just curious to know if it is possible to rescale the background image, because if not i have to live with imagebuttons Mar 18 08:34:37 or do I have to break it up? Mar 18 08:36:18 http://stackoverflow.com/questions/1400782/android-scale-a-drawable-or-background-image Mar 18 08:36:45 Has anyone else seen "java.lang.ClassNotFoundException" in the Crashes & ANR tab on Google Play Developer Console: with the runtime exception as: "java.lang.RuntimeException: Unable to instantiate application com.companyname.appname.app.CompanyApplication: java.lang.ClassNotFoundException: Didn't find class "com.companyname.appname.app.CompanyApplication" on path: /mnt/asec/com.companyname.appname-1/pkg.apk' ? What might be the cause of this. I Mar 18 08:36:47 see that this happens when the user tries to install the application as the /mnt/asec filesystem path is used, which is a mount point for tmpfs Mar 18 08:36:50 android:scaleType="fitXY" Mar 18 08:37:03 adkins: check the link Mar 18 08:38:18 adkins: put a "scale background image android" in google, you had gotten faster Mar 18 08:38:36 someone can take a few minutes to code? Mar 18 08:38:43 *my code Mar 18 08:39:33 b0t: thx reading that Mar 18 08:40:25 cff by any chance are you using BackupManager> Mar 18 08:40:54 AND extending the Application class ? Mar 18 08:41:49 bankai_: You never want to give me a hand Mar 18 08:45:42 bankai_ wants to smash your Enter key Mar 18 08:47:42 g00s: No I don't use BackupManager inside application and yes MyCompanyApplication extends Application from android.app.Application Mar 18 08:51:29 g00s: I see many of those crashes on Android 4+ Mar 18 08:52:41 Top devices where it happens are: Galaxy S4 (jflte), Galaxy S3 (m0), Galaxy Note II (t03g), Galaxy S2 (GT-I9100), Galaxy Note2 (t0lte), Lenovo S890 (S890), DROID RAZR (cdma_spyder), Sensation 4G (pyramid), HTC Desire X dual sim (protodug) Mar 18 08:53:07 only Android4+ Mar 18 08:53:12 i remember ctate once mentioning some weird corner case; meh he doesn't come around any more. your best bet might be to post a Q on google groups Mar 18 08:53:59 i've heard of this bug or something similar before, but never saw it myself Mar 18 08:54:12 i guess you could change your manifest for now Mar 18 08:56:08 maybe try android:installLocation = internalOnly Mar 18 08:58:21 currently the install location is preferExternal Mar 18 09:04:48 With aapt; how do I tell it to copy java resources (.properties in this case) to the jar it generates? Mar 18 09:09:55 I am using Picasso, however, images are messed up, don't know why. Can you look at http://pastie.org/8946772 ? Mar 18 09:11:55 I know the answer to this, but I need to make sure Mar 18 09:12:16 Android does not take care of anything related to the pressed/hovered state of buttons upon creating them, right? Mar 18 09:12:33 not until you specify selectors that specify different drawables for different states Mar 18 09:13:25 :Sicp agree Mar 18 09:13:40 :Sicp how to do it? Mar 18 09:14:10 you're asking now? how to create selectors? Mar 18 09:15:54 :Sicp yes, how to create selectors? Mar 18 09:16:40 it shows different images, when I scroll each time Mar 18 09:17:14 http://pastie.org/8946793 Mar 18 09:17:34 you create that file under drawable/ Mar 18 09:19:11 then you create a styles.xml file under values (or populate it if it already exists) with this http://pastie.org/8946803 Mar 18 09:19:41 and then in your layout when you are defining the Button or ImageView or whatever you want to be pressable, you add an android:style="@style/whatever_you_named_the_style_in_stylesxml_file" Mar 18 09:20:04 in this case mixer_button_style Mar 18 09:21:03 :Sicp I am still not getting show selector is related to this problem? Mar 18 09:21:28 a selector is the one that handles what happens to the button when you hover over it or press it Mar 18 09:21:34 or don't press it, or have it disabled Mar 18 09:21:40 and that's what I was asking about Mar 18 09:21:48 if Android does any of this by default Mar 18 09:22:44 :Sicp let me follow your steps Mar 18 09:27:56 :Sicp I am using then you cannot do that on this element Mar 18 09:30:49 :Sicp then how to do? Mar 18 09:30:57 I don't know Mar 18 09:31:42 is there a handler i can call when ConcurrentHashMap is altered.. or should i write an access wrapper, or what is typical (to maintain UI shown with map contents)? Mar 18 09:33:22 :Sicp but it works in https://github.com/etsy/AndroidStaggeredGrid even I scroll. Is it related to picasso maybe? Mar 18 09:33:53 well if it works elsewhere, you have to look into something that you're missing Mar 18 09:33:58 wouldn't know anything about that honestly Mar 18 09:34:16 :Sicp ok Mar 18 09:34:24 let me try to find the issue Mar 18 09:34:40 that's a neat find, by the way Mar 18 09:34:40 usually, it is in my own code :D Mar 18 09:34:42 I need something like that Mar 18 09:35:11 yeah, it is a good library Mar 18 09:45:15 do Adapters auto update the eg ListViews they're set-to? Mar 18 09:47:09 you have to say "notifyDatasetChanged()" somewhere Mar 18 10:07:33 hola? Mar 18 10:07:35 lol Mar 18 10:07:35 .c Mar 18 10:07:54 it's back... Mar 18 10:09:28 ohnoes Mar 18 10:10:13 my pc can't detect my devices if it in debugging mode Mar 18 10:10:42 my device is Xperia Z1 Mar 18 10:10:48 C6903 Mar 18 10:15:07 google it MalekAlrwily, you'll get a faster answer Mar 18 10:15:30 i have google it Mar 18 10:15:31 for that question specifically Mar 18 10:15:58 i will google it again :( Mar 18 10:16:02 Brb Mar 18 10:22:37 Hello :), Is there a way to determine WHICH exact battery changed event callend onRecieve ? Apart from comparing current with previous voltage or temperature etc states ? Mar 18 10:25:44 oh god now my phone is showing the wrong time...its behind a good 30 minutes Mar 18 10:25:48 hey so trying to make sense of gson... If I have an array passed and I want to add another class in terms of making the hiearchy do I need to make ita separate class or can they all be under one class Mar 18 10:25:51 Unknown0BC, sure, yes. Mar 18 10:26:11 Yeah I think i'm getting my head around it now. Mar 18 10:29:26 EXTRA_STATUS Mar 18 10:36:07 http://pastebin.com/2VzmsfM6 am I doing this correctly, building the data out in a class response? Mar 18 10:42:57 Can someone please help me why line 15 isnt working. http://pastebin.com/YhTNXb0m Mar 18 10:43:46 amazwon: have you declared the service in your manifest xml? Mar 18 10:44:38 yeah Mar 18 10:44:56 amazon , do not use this Mar 18 10:45:05 anyone familiar with building gson Mar 18 10:45:23 amazwon, use more getApplicationContext() or getBaseContext() Mar 18 10:45:24 The constructor Intent(newView.ONClickListenr()[] Class PService) is undeifned, Mar 18 10:45:30 :D Mar 18 10:45:42 the this is not correct inside on function onClick Mar 18 10:45:43 and the method startService (intent) is undefied for the new type of OnClick Mar 18 10:45:54 but it was working before, i wanted a button to make it start service Mar 18 10:46:04 use getApplicationContext or Activity.this Mar 18 10:46:50 the this inside the function onClick reference the interface and not the activity Mar 18 10:46:50 Activity.this not working Mar 18 10:46:57 no Activity.this Mar 18 10:46:59 wait Mar 18 10:47:09 MainActivity.this Mar 18 10:47:16 your owner Activity ... Mar 18 10:47:21 ah i see Mar 18 10:47:24 ;) Mar 18 10:47:37 thats awesome man Mar 18 10:47:44 you know about the Start Service part? Mar 18 10:47:46 xD Mar 18 10:47:47 startService Mar 18 10:47:57 about what ? Mar 18 10:48:03 im learning fast, but just need to get into cntext Mar 18 10:48:28 what do you want to know ? Mar 18 10:48:30 the method startService(Intent) is undefined for the new type of View.OnClickListener() Mar 18 10:48:37 just trying to get used to these error messages, Mar 18 10:49:09 yeah it's normal because the function onClickListener behave of the interface Mar 18 10:49:15 which has no context Mar 18 10:49:42 startService without context in parametes behave to the class Activity Mar 18 10:49:49 belong * not behave Mar 18 10:49:51 ... Mar 18 10:50:03 sorry Mar 18 10:50:17 do i need to make a new method underneath? Mar 18 10:50:38 http://developer.android.com/reference/android/content/ContextWrapper.html#startService(android.content.Intent) Mar 18 10:50:41 ContextWrapper more Mar 18 10:51:18 use this http://developer.android.com/reference/android/content/Context.html#startService(android.content.Intent) Mar 18 10:51:30 so MainActivity.this.startService(intent) Mar 18 10:51:55 ah got itm ha just got it before you wrote that Mar 18 10:52:01 thanks tho, i get that now :) Mar 18 10:52:27 ;) Mar 18 10:52:32 you an actual developer feanorin? Mar 18 10:56:53 amazwon: also don't call onResume() manually in your onCreate method Mar 18 11:00:45 anyone familiar with gson? Mar 18 11:03:51 Hi all, I get the translations of the text in my app via http (json). How can/should I store this? 2nd time startup, no httprequest needed. I will receive json, but if xml is a better solution, I can get this too, but what are the possibilities for that? Mar 18 11:04:02 anyone know how tyo get rid of that gap that appears either side of a gallery? Mar 18 11:04:53 http://pastebin.com/2VzmsfM6 Radditz trying to see if I am implementing it correctly for an array Mar 18 11:11:04 or does somebody know the max lenght of a string value in SharedPreferences? Mar 18 11:11:49 <7JTAABRMY> FrancescoV: you can save the json as a file and load it dynamically Mar 18 11:12:04 FrancescoV: it's pretty damn long i believe Mar 18 11:12:17 FrancescoV: we serialize some classes and store it in sharedprefs and it works fine Mar 18 11:27:15 hello all Mar 18 11:56:47 anybody recommend android studio over eclipse? Mar 18 11:56:53 yea Mar 18 11:57:02 n0use: everybody Mar 18 11:57:05 lol ok Mar 18 11:57:24 it seems to be advancing...quickly. Mar 18 11:57:33 hey so trying to make sense of the gson class... I think I did it right but it is not working... : / Mar 18 11:57:37 n0use: using it since 0.2* just great Mar 18 11:57:49 ohcibi: awesome, thx Mar 18 11:57:55 I am calling List in my CustomObjects class Mar 18 11:58:16 !paste Mar 18 11:58:22 but keep getting error that expected an object but got an array.... when I am trying to Mar 18 11:58:29 http://pastebin.com/2VzmsfM6 Mar 18 11:58:43 ohcibi basically trying to intercept the array Mar 18 11:59:16 http://pastebin.com/j4T0jujP Mar 18 11:59:31 look at that one actually because it is being sent back as an object Mar 18 11:59:48 LoneSoldier728: i dont know the gson class.. but just List does not tell anything about your problem thats why I ordered a paste (for the othe residents to take a look at) Mar 18 11:59:57 I can get rid of items: and just send the [{}] array itself if that makes it work Mar 18 12:01:02 hi Mar 18 12:01:14 is it possible to swipe this http://share.thomas-peterson.de/Ungesichertes%20Vorschau-Dokument-2XGOfPm4nt.png Mar 18 12:01:24 left date down 1day right 1day up Mar 18 12:21:02 hello, I've got this activity that wants to use action bar tabs and also show an expanded action view Mar 18 12:21:39 if the display is narrow (say a phone), the tabs appear underneath the action bar and everything is fine Mar 18 12:21:54 if the display is wider, the tabs are nowhere to be seen Mar 18 12:22:09 I suppose they should be embedded in the action bar, but they don't show up Mar 18 12:24:05 by the way, is this the right channel or should I bother people on #android, too? ;) Mar 18 12:24:26 peres: right channel :) don't have an answer for your problem but yep Mar 18 12:25:14 peres: Mar 18 12:25:15 http://stackoverflow.com/questions/15113604/tabs-in-action-bar-that-contains-extended-action-view-reappear-on-rotation Mar 18 12:25:22 Not sure if that will help you Mar 18 12:25:47 Actually doesn't even have an answer and looks like different problem, so yeah xD Mar 18 12:25:59 well it's somehow related Mar 18 12:26:04 but definitely different Mar 18 12:26:07 I should go for lunch, shaking :P Mar 18 12:26:25 do you know if I can make sure the tabs appear under the action bar if I use my own pager view? Mar 18 12:27:15 you might be able to, i'll have a quick look Mar 18 12:27:34 http://stackoverflow.com/questions/12066589/how-to-force-splitting-actionbars-tab-and-title-home-menu Mar 18 12:27:52 I wonder why I don't find those myself Mar 18 12:28:03 :) Google Mar 18 12:28:20 Looks like you can't force it, have to use a viewpagerindicator or the PagerStripTab Mar 18 12:28:29 yeah Mar 18 12:28:38 I'll have a stab at it, thanks Mar 18 12:28:41 np Mar 18 12:28:43 foooood Mar 18 12:37:44 nice Mar 18 12:39:41 ok so my code runs in the 2.3.3 emulator but i want to add opengl to my game so am trying to run in the 4.4.2 emu Mar 18 12:39:58 the game is not being rendered right in this and it crashes after a while Mar 18 12:40:16 my game does not use anything specific to 4.4.2 its using the older abi Mar 18 12:40:24 but it should still freeking run on newer devices Mar 18 12:40:34 damn i cant get rid of the gap at the start and end of a gallery - any ideas? Mar 18 12:45:10 I440r, emulators really don't have a fully working OGL implementation anyway Mar 18 12:47:18 I need my android app to perform a job every 15-30 seconds, can I do this with intents? Mar 18 12:47:38 AlarmManager Mar 18 12:47:43 would still like to use a more modern emu to debug my game Mar 18 12:47:48 its just not working in it at all Mar 18 12:48:01 ok well it is working its just not rendering right and it crashes Mar 18 12:48:21 Mavrik, thank you. Mar 18 12:51:06 ok the 4.4.2 emulator how do i get rid of the stupid google search crap? Mar 18 12:51:19 thtas on my home screen Mar 18 12:52:08 you don't, it's an emulator. Mar 18 12:52:12 why do you even care -_- Mar 18 12:52:32 you could replace the launcher but that's way more work than it's worth it because you have no store. Mar 18 12:52:51 you can't even do OpenGL profiling an emu... use a real device for OGL development Mar 18 12:53:34 not doing opengl yet. if my code falls over in the emu does that mean it will fall over on a 4.4.2 physical device to? Mar 18 12:53:52 maybe. Mar 18 12:55:49 Is it possible to change a Drawable Shape programmatically? Mar 18 12:56:18 in what way? Mar 18 12:56:21 isnt that called animation? lol Mar 18 12:57:16 no Mar 18 12:57:25 not animation Mar 18 12:58:56 ok i must have had some config wrong with the avd, was messing with it and now the code renders in there, the crash was my fault, factored out some code that called JNI and needed to change the name of the JNI function to reflect where i was calling it from Mar 18 12:59:03 so my code is working in the avd now lol Mar 18 12:59:36 but. its PAINFULLY PAINFULLY slow because every time i click a button my get 24857629746524 messages in logcat about not being able to load /system/media/audio/ui/blah blah Mar 18 12:59:59 i hope theres a way to turn on the key clicks Mar 18 13:00:33 MalekAlrwily, you didn't say in what way are you trying to change the shape. Mar 18 13:00:52 yay yes there is lol Mar 18 13:01:36 define the shape with R resource Mar 18 13:01:57 but i don't know what is shape called programmatically Mar 18 13:02:54 MalekAlrwily, http://developer.android.com/reference/android/graphics/drawable/shapes/Shape.html Mar 18 13:02:58 one of subclasses of that Mar 18 13:03:28 MalekAlrwily, er, sorry, this: http://developer.android.com/reference/android/graphics/drawable/ShapeDrawable.html Mar 18 13:04:52 Oh yeah! Mar 18 13:04:59 Thanks very much Mar 18 13:07:04 Morning all Mar 18 13:07:10 good morning Mar 18 13:07:19 Is anyone aware of a way to have actionbar tabs only take up as much width as they need to? Mar 18 13:07:22 They take up almost twice as much space as they really need to, so they cause unnecessary scrolling. Mar 18 13:21:00 anyone here have any experience with the minix x7? Mar 18 13:21:12 I can't get the device to recognize on my windows 7 computer Mar 18 13:21:27 i've installed the included driver as well, still no luck Mar 18 13:28:15 I have a question: I have a relative layout. On top of it, I have a linear layout containing 2labels and then a button : [{label1 | label2} button] Mar 18 13:28:22 I put a onclick event on the relative layout but it doesnt seem to get called Mar 18 13:28:29 m wondering if my labels or the linearlayout may be absorbing... Mar 18 13:28:39 i'm* Mar 18 13:28:40 is this possible in android? Mar 18 13:29:10 yes i set the property android:clickable="true" to my relative layout Mar 18 13:33:45 JeremieDeNoob, android:focusable="true" add this parameter too Mar 18 13:34:09 and set the component inside layout by android:focusable="false" and android:focusableInTouchMode="false" Mar 18 13:34:28 thank you Mar 18 13:34:38 I will try right now and let you know the result Mar 18 13:34:39 after just override the View.OnCLickListener on the relative layout since the code Mar 18 13:34:43 ok Mar 18 13:39:05 jesus, ADB stuff is so annoying Mar 18 13:39:55 feanorin: it is still not working... maybe focusableintouchmodetrue for the relative layout? Mar 18 13:46:40 if I update List objects passed into ArrayAdapter constructor, will the corresponding ListView that the adapter is set to be updated automatically? Mar 18 13:47:06 you have to call notifyDataSetChanged Mar 18 13:47:22 e.g., i have : m_aa_AllScores = new ArrayAdapter(this, android.R.layout.simple_list_item_1, android.R.id.text1, m_AllScoreStrings); Mar 18 13:47:26 ok Mar 18 13:47:44 so if I update m_AllScoreStrings, then call notifyDataSetChange, it should update the ListView? Mar 18 13:47:47 update list, call adapter.onDataSetChanged(); Mar 18 13:48:09 notifyOnDataSetChanged()* Mar 18 13:48:15 shit Mar 18 13:48:21 notifyDataSetChanged()* Mar 18 13:48:24 there we go Mar 18 13:48:50 writing listeners for a bluetooth service currently, kind of have "onX" stuck in my head Mar 18 13:49:08 hm retrofit is calling my server 3 times even though it is successful anyone know why? Mar 18 13:51:54 I am not getting an error or anything so confused Mar 18 13:52:04 calling it 3 times? Mar 18 13:53:01 It is making 3 requests Mar 18 13:53:22 it seems to be advancing...quickly. - not tried it yet Mar 18 13:53:25 and I know it makes 3 requests if it fails/errors but on success it shouldn't be making 3 requests Mar 18 13:53:29 what are the response codes from your server? Mar 18 13:53:37 200 each time Mar 18 13:53:54 jonc-1: if you're updating an array and calling notifydatasetchanged, you need to make sure you're updating the array, not replacing it Mar 18 13:53:59 jonc-1: if that's your problem Mar 18 13:54:00 yes Mar 18 13:54:00 with the same object Mar 18 13:54:06 dragorn, I wasn't asking Mar 18 13:54:10 jonc-1: ah i misread Mar 18 13:54:20 jonc-1: it's early, coffee hasn't kicked in :P Mar 18 13:54:22 I just couldn't type the right function :P Mar 18 13:54:31 that is where the "shit" came from Mar 18 13:55:00 Yeah, I haven't finished mine yet Mar 18 13:57:40 that's why arrayadapter should be outlawed -_- Mar 18 13:57:49 ? Mar 18 13:58:51 jonc-1 any clue Mar 18 13:58:51 It should be obvious that the arrayadapter won't have the reference to the new object if you do new ArrayList<>() Mar 18 13:59:00 have you used retrofit? Mar 18 13:59:27 LoneSoldier728, not really, I haven't used it extensively, I would log the codes you get back, and maybe throw and catch an exception to see the stack trace to see who is calling it Mar 18 13:59:36 jonc-1, well, it's not to newbies really :) Mar 18 13:59:53 It's a common java idea Mar 18 14:00:05 hi Mar 18 14:00:09 any use volley lib? Mar 18 14:01:34 everything is by reference, if you assign a new reference, not all references to the old object get updated to the new one, it would actually be pretty bad if it did Mar 18 14:02:23 jonc-1, mhm, but you're presuming people know Java from before, there's bunch of people that are new to Android and Java :) Mar 18 14:02:43 Then it's a way for them to learn how java works :P Mar 18 14:04:46 anyone know any tricks to get your ADB device recognized? Mar 18 14:05:26 bacon1989: what's your system? Mar 18 14:06:37 bacon1989, install driver, plugi in device with USB debug on Mar 18 14:06:41 a minix x7 using rockchip Mar 18 14:06:43 disabling MTP is necessary on Windows occasionaly Mar 18 14:06:55 Mavrik: i'll try that Mar 18 14:07:04 bacon1989: I was asking about OS on PC Mar 18 14:07:14 So anybody found a workaround for G+ profile images no longer being available at plus.google.com/s2/photos/profile/{userid}? Mar 18 14:08:00 gordon_: win7 64-bit Mar 18 14:08:08 my other devices work fine Mar 18 14:08:20 I have a Lenovo Yoga 10 tablet, and a samsun galaxy neux Mar 18 14:08:32 both were pain to get working as well, but at least they were recognized Mar 18 14:08:42 bacon1989: so I dont know Mar 18 14:08:48 probably missing driver Mar 18 14:08:56 The device drivers it asks me to use are these http://www.cnx-software.com/2013/11/08/simplified-method-to-install-rockchip-usb-drivers-in-windows-xp78/ Mar 18 14:09:06 I installed it, and it still doesn't work Mar 18 14:09:16 is there a way to just wipe out all of my drivers? Mar 18 14:09:25 or better yet, just even see the god damn thign in my device manager? Mar 18 14:09:44 http://pastie.org/private/hjrxwg97dwaelfm4w2xjg Mar 18 14:09:46 hm jonc-1 because there are 2 tabs can that be an issue... Mar 18 14:10:06 or since they have separate fragments it should not collide Mar 18 14:10:07 any use volley lib? Mar 18 14:10:27 t0th_ use retrofit Mar 18 14:10:43 MalekAlrwily: having int i; and then using Log.i as just plain i("") is a crime against humanity Mar 18 14:11:29 Ok Mar 18 14:11:29 i have this error: com.android.volley.NoConnectionError: java.net.UnknownHostException: Unable to resolve host "xxx.xom.br": No address associated with hostname Mar 18 14:11:54 i have delete it Mar 18 14:12:20 but the problem is the buttons not change Mar 18 14:12:24 :( Mar 18 14:13:27 but my xxx.xom.br is work Mar 18 14:13:29 i can access Mar 18 14:13:44 i have INTERNET permission in my Manifest Mar 18 14:14:20 t0th_-: Paste your code Mar 18 14:14:31 what code? Mar 18 14:14:35 the problem is the host... Mar 18 14:14:37 and by paste your code, we mean paste it into pastebin or similar, not the channel Mar 18 14:15:36 but it is work my host Mar 18 14:16:02 Is this a mystery؟ Mar 18 14:16:22 WE NEED TO SEE YOUR CODE Mar 18 14:16:44 Is there a way to trigger a bug reporting to the Android market from the application without notifying the user? Use case: exception marking for a quota exceess or somthing like that froma third party service - I want to handle it nicely to the user (do not crash the app) but still be notified of the issue ---- this is a poor example but I hope I got you the idea Mar 18 14:17:27 OK Mar 18 14:17:27 http://pastebin.com/mt7fRxHY Mar 18 14:18:02 mastro: Yes, Use ACRA Library with BugSense Mar 18 14:19:18 MalekAlrwily, I found that option googling, I wanted to know if I could trigger the process for the google market Mar 18 14:19:57 No, you don't need to do that Mar 18 14:20:13 just need INTERNET permission Mar 18 14:21:21 the report will send when user touch "Force Close" button ;) Mar 18 14:21:37 mastro ^ Mar 18 14:22:45 thanks Mar 18 14:25:10 crashes are automatically sent for you if you have the INTERNET permission? Mar 18 14:25:40 hey guys, anyone know how to get the current buildType / applicationVariant in Android Studio / gradle? Mar 18 14:25:54 jonc-1: Exactly Mar 18 14:26:16 like I can iterate on all the variants by doing applicationVariants.all { variant -> //stuff } but I want to do something for just the one being assembled Mar 18 14:26:47 any can help me? Mar 18 14:27:08 How would I write data so it can be accessed in an intent using getIntent().getParcelableArrayExtra(); ? Mar 18 14:27:58 t0th_- you have a special request method Mar 18 14:28:39 ok, in my JsonArrayRequest or JsonObjectRequest i have the same error Mar 18 14:30:34 I tried obtaining a Parcel, writing the name of the extra by the .writeString() method, and the array content by just using .writeParcelableArray(), then on the intent using .readFromParcel() gives a ClassCastException Mar 18 14:31:58 i solved Mar 18 14:32:07 no one can solve my problem? Mar 18 14:32:28 what is your problem? Mar 18 14:34:17 http://pastie.org/private/hjrxwg97dwaelfm4w2xjg Mar 18 14:34:35 button background won't change Mar 18 14:35:54 have you confirmed that resource does anything you expect on an imagebutton? Does setting it in xml change anything? Mar 18 14:36:31 s1gmab3ta: Bottom left you can choose between build variants ? Mar 18 14:36:41 the resource is ok Mar 18 14:36:54 it's a shape Mar 18 14:37:33 MalekAlrwily: that's not what I'm saying. Does setting it as a background in xml do what you expect? Mar 18 14:37:37 but i haven't see an Exception yet Mar 18 14:37:50 daneo, you've misunderstood. I want my build script to detect which variant is currently being built and do something based off that Mar 18 14:38:09 no Mar 18 14:38:10 Hi guys. My application starts with a login page activity which is destroyed when the user successfully logged in. The problem when I put the app in the background and I launch it again via the launcher, as the login page activity (which starts the app) doesn't exist any more, the app relaunchs that activity. How can I avoid that? Mar 18 14:38:10 ok so now my avd 4.4.2 will not boot Mar 18 14:38:23 deleted it. recreated it. launches but no "Android..." Mar 18 14:38:24 never boots Mar 18 14:38:36 onClick dont need Override? Mar 18 14:38:38 like say i'm calling logger.warn(outputFileName) to show in the build script what the resulting filename will be - if I put that in applicationVariants.all {} then I will get three or four different filenames, only one of which is right. I want the right one. Mar 18 14:38:39 MalekAlrwily: I also don't see anything in your code that assigns those functions to the onclicklistener Mar 18 14:38:58 MalekAlrwily, I know, but that happen when your app crash. I want to actually HANDLE the exception gently for the user (show him a message or a feedback without crashing the app) but still receive that stack trace / app info on the google market Mar 18 14:39:17 wget: I'd make my launcher activity figure out state and create the splash screen Mar 18 14:39:22 wget: rather than launch into the splash Mar 18 14:39:47 dragorn: I set it in Activity XML File Mar 18 14:39:51 MalekAlrwily, like: try {... do something } catch (MyException e) { friendlyNotifyToUser(); sendToGoogleMarketInBackground(); } Mar 18 14:39:52 ok nvm it is booting now. left it for 10 minutes and it didnt boot, delted it and recreatd it and it took 2 minutes to boot Mar 18 14:39:57 the 2.3.3 avd boots way faster lol Mar 18 14:40:13 s1gmab3ta: No experience with that. Missed your first sentence, but you made it clear now. Sorry. Mar 18 14:40:16 dragorn: The problem actually appears only when I push the back button on the activity that appears after the user has successfully logged in. Mar 18 14:40:16 What do you mean by figure out the state? Mar 18 14:40:18 wget: splash either being another activity, or being temporary layout on the main activity, or a fragment on top of everything Mar 18 14:40:42 wget: you have some condition where you show a splash and some condition where you don't. You need to figure out when you don't, and don't do it. Mar 18 14:40:43 daneo, thanks anyways mate Mar 18 14:41:07 mastro: use MyException.getMessage(); Mar 18 14:41:32 MalekAlrwily, are you kidding me? Mar 18 14:41:47 MalekAlrwily, that's not what I asked Mar 18 14:42:25 dragorn: Hmm. Use the same activity then? Placing a login fragment when the user isn't logged in and replace it with the app content when the user is connected? Mar 18 14:42:29 you want to view the exception to user, alright? Mar 18 14:42:35 mastro ^ Mar 18 14:42:44 mastro: can you send debug data w/out a crash report dialog? AFAIK, no Mar 18 14:43:06 mastro: The report contains potentially sensitive data, which is why google reqires the user to confirm it and gives the option to look at it before they send it Mar 18 14:44:01 wget: that's what I'd do probably. You can either swap layouts, show/hide portions of the layout to make the login fragment take up the whole thing, or launch another activity Mar 18 14:44:02 MalekAlrwily, no. I'll handle it for my user. NEVER SHOW EXCEPTIONS TO USER. What I'll do will depend on the user experience I want to give. I want to send data report to gogole market to find it in the Crash & ANR section of my app without having to let the app crash. Mar 18 14:44:26 dragorn, sure, but there's an option to remove sensitive data... which should be good enough most of the time Mar 18 14:44:29 mastro: afaik not possible. if it IS possible, it would be something in the play services API Mar 18 14:44:32 dragorn, isn't that available? Mar 18 14:44:42 dragorn, I see.. would be handy Mar 18 14:44:50 mastro: "most of the time" is still a privacy/security issue. I'd expect them to err on the side of caution there. Mar 18 14:45:08 dragorn, probably.. can be a permission tough Mar 18 14:45:21 mastro: if it's possible it's almost definitely in the google play services lib Mar 18 14:45:26 so I'd look there first Mar 18 14:45:41 dragorn: Thanks for your POV. I'll try with the fragment solution. Mar 18 14:45:58 wget: think of how you want your appstack to look Mar 18 14:46:07 wget: you never want to back into the login screen, right? Mar 18 14:46:23 wget: so you want to launch, then bring up a login, then eliminate the login from the back stack Mar 18 14:46:42 yes, that's the behaviour I want. Mar 18 14:47:03 mastro: you can't do it silent Mar 18 14:47:08 dragorn: ^ Mar 18 14:47:16 google play = no silent Mar 18 14:47:18 dragorn, I don't see anything like that in the GPS :) well.. I guess we simply can't, too bad Mar 18 14:47:19 wget: at least, that's how I'd want to do it. So you can either get that by launching mainactivity, then launching loginactivity, or by making mainactivity act like a login until you're done. Either way, when main does oncreate you'd see if you're logged in, then decide if you show the login screen Mar 18 14:48:14 wget: if you need to retain a logged in state, you should probably get something like an oauth token and compare it during setup. if you need to maintain a logged in connection, like a persistent socket, you're going to need to look at making a service to hold that connection for you Mar 18 14:49:15 anyone here help me recover my sms's? Mar 18 14:49:24 dragorn: Nope in my use case, it's just a contact application which has to show the contacts of the user who has logged in. So no permanent connection to make I think. Mar 18 14:49:47 screwsss_ what is your device? Mar 18 14:50:26 dragorn: Btw, your solution regarding main activity launching the login activity is actually the other way around solution I'm doing in right now. Mar 18 14:50:39 Btw, in this case, I prefer to use activity instead of fragments. Mar 18 14:51:27 MalekAlrwily: htc legend Mar 18 14:51:32 wget: right - I thikn you just need to flip it Mar 18 14:51:34 running cyanogen Mar 18 14:51:44 screwsss_: try #android-root, or #cyanogen, this is an app-dev channel Mar 18 14:51:52 i also use a 3rd party app for sms'ing if that means anything Mar 18 14:52:07 screwsss_: have you backup it? Mar 18 14:52:11 ughhh im over this shit. ppl keep telling me to go #here or #here i keep getting passed along!! Mar 18 14:52:23 until i wind up in a channel full of idlers or ppl talking about the news Mar 18 14:52:34 MalekAlrwily: if i backed up my sms's - i wouldnt be here Mar 18 14:52:39 screwsss_, this is strictly and android app dev channel Mar 18 14:52:56 but surely there are some wiz's in here that can pm me Mar 18 14:52:56 so instead of getting pissy, read the topic, and realize that you are asking in the wrong place Mar 18 14:53:30 screwsss_: you can't restore it anyone Mar 18 14:53:36 I AM ASKING AN ANDROID RELATED QUESTION YOU EGOTISTICAL Mar 18 14:53:39 what Mar 18 14:53:54 MalekAlrwily: lol dont be silly Mar 18 14:54:01 MalekAlrwily: there surely is a way Mar 18 14:54:21 MalekAlrwily: im running a program right now (not finished yet) that has found pics and videos sof ar Mar 18 14:54:24 because google does not have any service for backup SMS Mar 18 14:54:31 screwsss_ i bet Google knows, and it wont tell you to fuck off like here Mar 18 14:55:07 screwsss_, just a friendly tip, if anyone was going to help you, that changed when you started calling them names Mar 18 14:55:13 MalekAlrwily: ive recovered deleted files before how are sms's any different Mar 18 14:55:25 i doubt it s1gmab3ta Mar 18 14:55:33 if the memory on the disk was considered empty and something was written over top you won't get it back Mar 18 14:55:34 screwsss_: please... fuck off Mar 18 14:55:45 Leeds: i tried asking you in the channel they told me to go to Mar 18 14:55:48 and you never answered me Mar 18 14:55:50 screwsss_ SMS not like files, it's a part of system files Mar 18 14:55:54 heh...isnt that... interesting Mar 18 14:55:57 how yall operate Mar 18 14:56:12 Leeds: are you from leeds? Mar 18 14:56:14 is it possible to recover deleted files from a disk, but only if that area of the disk hasn't been written overtop of Mar 18 14:56:17 screwsss_, you've already heard the best answers you're going to get here. 1) question is off-topic and 2) no, we don't know how to recover your text messages. Mar 18 14:56:29 mikedg: yes, I am Mar 18 14:56:37 s1gmab3ta: well im the worlds biggest skeptic. Mar 18 14:56:48 s1gmab3ta: and im the last person to reach a conclusion about anything Mar 18 14:57:09 screwsss_: you sound like my mom Mar 18 14:57:12 screwsss_, then learn Java and write an app to do it, or go somewhere where such a question is on-topic and where you haven't insulted the people you are asking for help Mar 18 14:57:16 mikedg: although I haven't lived in Leeds fulltime since 1994 Mar 18 14:57:21 screwsss_ there is an app to create SMS Mar 18 14:57:25 mikedg: i think u could learn a thing or two off ur old woman Mar 18 14:57:33 MalekAlrwily: yeh whats it called Mar 18 14:57:55 could i direct everyone who was talking about something else before i entered to #android for the time being. thanks Mar 18 14:58:18 SMS Edit Mar 18 14:58:49 oh. Mar 18 14:59:01 actually nah that doesnt help me. i need lotsa important sms's back Mar 18 14:59:08 screwsss_ Good luck Mar 18 14:59:13 lol Mar 18 14:59:13 just recreate them Mar 18 14:59:28 screwsss_ Bye! Mar 18 14:59:32 i cant remember what they said exactly Mar 18 14:59:37 so you refuse to help me Mar 18 14:59:39 screwsss_: you lost all those crazy sexts? there's lots of porn on the webernet man Mar 18 14:59:41 i just need to know Mar 18 14:59:45 NEXT... Mar 18 14:59:48 screwsss_: #android is the better place to ask Mar 18 14:59:51 o.O Mar 18 14:59:53 NEXT... Mar 18 14:59:53 i backed them up but in sept. Mar 18 14:59:59 i was hoping i could get my recent ones back Mar 18 15:00:06 ask the NSA Mar 18 15:00:13 call upyour carrier Mar 18 15:00:28 tell them they need to reload your messages since september Mar 18 15:00:40 you'll get like 5000 messages and be charged for them all, but you'll get them back Mar 18 15:00:52 i thought u were being sarcastic Mar 18 15:01:02 mikedg yep did that once Mar 18 15:01:28 gimme a link Mar 18 15:01:28 make sure you have a backup app installed incase it breaks your texting app Mar 18 15:01:36 sometimes that many messages break the stock messaging apps Mar 18 15:02:09 okay Mar 18 15:02:12 screwsss_ B'ye Mar 18 15:02:13 how do i get in touch with the nsa Mar 18 15:02:16 BYE Mar 18 15:02:18 BYE Mar 18 15:02:25 MalekAlrwily: whats the rush Mar 18 15:02:32 screwsss_: make terroristic threats Mar 18 15:02:37 JUST BYE! Mar 18 15:02:51 MalekAlrwily: while ur waiting u could perhaps read up about android and what it is Mar 18 15:02:54 MalekAlrwily, mind stopping the spam? Mar 18 15:02:55 mikedg: u just said u did it Mar 18 15:03:45 i didnt say anything about the nsa Mar 18 15:03:57 nor that i did this Mar 18 15:04:02 OH Mar 18 15:04:04 my carrier Mar 18 15:04:14 bugger off ya wankah Mar 18 15:04:27 huh?! Mar 18 15:04:34 little politeness goes a long way Mar 18 15:04:50 screwsss_ if you have any information about android, you should now INSTALLING NEW ROM REMOVING ALL SYSTEM SETTINGS Mar 18 15:05:02 mmm... the sweet sweet smell of hypocrisy Mar 18 15:05:04 know* Mar 18 15:05:23 I believe the politeness was, this isn't the right channel for discussing recovering SMS messages you deleted. Try #android-root or #cyanogenmod. This is for application development, you're in the wrong place. Mar 18 15:05:25 lol. Mar 18 15:06:08 Leeds: mm you guys started it Mar 18 15:06:49 [01:47] <_abc_> screwsss_: Are you sure you asked in #android-developers ? Mar 18 15:06:56 [01:48] <_abc_> screwsss_: #android-dev also Mar 18 15:06:57 1 Mar 18 15:07:00 [01:48] <_abc_> screwsss_: #android-dev also [01:48] <_abc_> screwsss_: #android-dev also [01:48] <_abc_> screwsss_: #android-dev also Mar 18 15:07:04 [01:48] <_abc_> screwsss_: #android-dev also [01:48] <_abc_> screwsss_: #android-dev also [01:48] <_abc_> screwsss_: #android-dev also [01:48] <_abc_> screwsss_: #android-dev also [01:48] <_abc_> screwsss_: #android-dev also [01:48] <_abc_> screwsss_: #android-dev also [01:48] <_abc_> screwsss_: #android-dev also [01:48] <_abc_> screwsss_: #android-dev also [01:48] <_abc_> screwsss_: #android-dev also [01:48] <_abc_> screwss Mar 18 15:07:17 I don't care if someone else told you to come here and ask. They're wrong, you're in the wrong place. Mar 18 15:07:23 [01:48] <_abc_> screwsss_: #android-dev also [01:48] <_abc_> screwsss_: #android-dev also [01:48] <_abc_> screwsss_: #android-dev also [01:48] <_abc_> screwsss_: #android-dev also Mar 18 15:07:26 [01:48] <_abc_> screwsss_: #android-dev also [01:48] <_abc_> screwsss_: #android-dev also [01:48] <_abc_> screwsss_: #android-dev also [01:48] <_abc_> screwsss_: #android-dev also Mar 18 15:07:47 MalekAlrwily|AFK: i didnt instal a new rom Mar 18 15:08:02 And now you're being a floodbot, so, welcome to /ignore Mar 18 15:08:08 someone needs to learn to not flood Mar 18 15:08:08 i just deleted /databases in the telephony folder Mar 18 15:08:15 /ignore Mar 18 15:08:19 someone needs to learn to READ Mar 18 15:08:41 n1 evan Mar 18 15:08:55 too late; sorry about that Mar 18 15:09:06 thanks Mar 18 15:09:43 back on-topic - anyone know how to force tabs that show up after declaring NAVIGATION_MODE_TABS to show up in the action bar, rather than under it? Mar 18 15:11:22 looks like on a phone UI it shows up under it unless i switch to landscape, in which case it shows up inside - but there's enough room on the action bar in portrait Mar 18 15:22:05 s1gmab3ta: i haven't seen that happen Mar 18 15:22:21 s1gmab3ta: (so no, but at least acknowledgement I saw the question since it's suddenly so quiet) Mar 18 15:23:47 Hey guys, how does one approach layouts for live wallpapers, when there is no associated xml. I'm currently setting the X, Y properties of each string programmatically, this seems cumbersome and should also change depending on device. Is there a best practice here or something I'm missing? Mar 18 15:24:02 s1gmab3ta: ah, you want tablet tab behavior on phones. The AB behavior is pretty locked to orientation on phones as i recall - for example split ab only happens in portrait, etc Mar 18 15:25:14 dragorn, good to know. if it can't be, it can't be. not a big deal, i just though i was doing something wrong. Mar 18 15:26:10 s1gmab3ta: there's probably always ways. You could check out ActionbarSherlock for ideas? Mar 18 15:26:30 s1gmab3ta: I parsed 'under' as 'overlaid by' not 'south' the first time i read your question, threw me off Mar 18 15:27:00 dragorn, no, no. i meant what I said, i actually kind of think I prefer it split the way it is; but I don't like things being the way I want by accident Mar 18 15:27:33 so if the answer is that it is that way by google's design, then that's a good enough answer for me Mar 18 15:29:24 s1gmab3ta: the design docs seem to just refer to "a wide screen". You could check the compat lib or the abs code for what consitutes a wide screen Mar 18 15:30:49 Anyone using joda time in their app? Mar 18 15:32:35 hi anyone could help with DNS problems on android? Mar 18 15:32:43 Say I have an Android library project with many jars in the "\libs" folder it uses, when I reference this library project in an application project how do I access Classes in the "\libs" folder of the library project? Mar 18 15:32:45 dragorn, that is the one question i did have remaining, because i didn't really think i had enough tabs (only 4, with icons) to take up enough of the room to split it. but I bet it's something like 400dp or something. Mar 18 15:34:07 do you know any place that I could get help for android core? (not for app development) Mar 18 15:38:49 SyntheCypher: You would import them Mar 18 15:45:56 512X512 that should be a big size image right? because it takes up a third of my screen only/// Mar 18 15:46:00 only...* Mar 18 15:46:26 512x512 is decent sized Mar 18 15:46:48 your phone could be 1920x1080 Mar 18 15:46:52 i have a click listener on a button and within that i want to change the text in another textview. afaik i need to do "setcontentview()" for the underlaying layout of the textview but that crashed the app. any advice? Mar 18 15:47:19 which would mean that 512x512 isn't a lot of screen real estate, in portrait mode it would be about 1/2 width and 1/4 height Mar 18 15:47:23 ah so how does instagram show images bigger... I doubt they are saving them at 1080p right? Mar 18 15:47:55 a 900x500 ish image stretched to fit the width of an s4 looks perfectly acceptable Mar 18 15:48:21 so what save them at a 900x500 size Mar 18 15:48:29 find something that works for you Mar 18 15:48:50 right but I searched and found that instagram uses 612x612 Mar 18 15:48:54 1 1080p resolution image isn't a huge deal Mar 18 15:48:58 is that false then.. Mar 18 15:49:06 I am not sure Mar 18 15:49:20 612x612 would appear fine Mar 18 15:50:12 hm Mar 18 15:50:20 Are these downloaded images? Have you already considered just picking the size at runtime? Ie, decide on a suitable physical size (eg: 1-inch, etc) and then map it back to the number of pixels for that device. Mar 18 15:50:23 it's more about how large the image is shown (inches), an S4 can have an image stretched by ~3x and still appear about the same as it would on a medium dpi screen of the same physical size Mar 18 15:50:58 right so would I just specify that and I can make it appear bigger but it will lose quality right? Mar 18 15:50:58 Is this safe: handler.postDelayed(new Thread(runnable object)); Mar 18 15:51:28 it will lose some quality, but on higher resolution phones it won't be nearly as bad as you may think Mar 18 15:51:54 hm kk Mar 18 15:52:18 because yes, you are stretching over many more pixels Mar 18 15:52:26 but physical space wise, you are approximately the same Mar 18 15:53:21 qkzoo1978: don't think you can postDelayed a Thread to a Handler (though you can post a Runnable with a delay) Mar 18 15:53:28 so if I specify 512x512 on a good quality phone and a lower quality phone will they be different sizes (is there a dpi kind of way to do it) Mar 18 15:54:15 if I have a 3 inch wide display that is 612 px wide, and another that is 3 inches wide and 1224 pixels wide, and I show a 612px wide image, which looks better? Mar 18 15:54:31 hi Mar 18 15:54:39 any tutorial to do searchable with autocomplete? Mar 18 15:54:40 kbs: it seems to work, i just dont know if its doing what i think it is. whats the most appropriate way to start a new thread from a handler?? Mar 18 15:54:45 i am trying 2 days ehehehe Mar 18 15:55:11 Is it okay to call "getActionBar().setHomeButtonEnabled(true)" before setContentView? Mar 18 15:55:23 prob the smaller one? Mar 18 15:55:25 In an activity. Mar 18 15:56:56 qkzoo1978: hm, surprised. I probably also don't actually understand the full problem you're trying to solve. Handlers are effectively entry points to a queue that sits in front of a Thread; so not sure exactly what's going on. Maybe posting some actual code; and some smarter folk than me might have some tips. Mar 18 15:57:53 but jonc-1 if you have a picture set at 900x900px and you have a big screen and then you load the same image on a small screen will it take up the whole screen or adjust? because it my code I am setting the image to 900x900 Mar 18 15:58:32 kbs: I have some really intense db work being done every 30 seconds. I need it in a non-ui thread otherwise it bogs the app. Mar 18 15:59:49 qkzoo1978: the usual technique here [well, *my* technique anyway] is to host a threadpool within a Service; and enqueue the task via a service call Mar 18 16:00:24 qkzoo1978: if you need to get responses back from the task, a small pub-sub type thing [maybe even using localbroadcastmanager] might be sufficient Mar 18 16:01:39 the advantage (more or less) is that it's a reasonably 'clean' way to keep (say) your db handles/threads active regardless of whether your UI-part of the code (ie: Activity) has been destroyed or not Mar 18 16:03:07 kbs:hmm, sounds promising, I wanted to open the data my app divulges to other apps any way via intents, so that may work in my favor. Mar 18 16:05:16 kbs: have any decent links? Mar 18 16:05:21 qkzoo1978: fwiw, https://github.com/kbsriram/savemypics/blob/master/android/src/org/savemypics/android/service/CTaskQueue.java - this is how I chose to do this - basically, code just calls CTaskQueue.enqueue*Task(..) - it maintains two thread pools to separate potentially network vs local activity. Mar 18 16:05:22 qkzoo1978: If the work is long, i'd consider running a service Mar 18 16:05:38 qkzoo1978: then run a thread in the service, and notify your app UI w/ async callbacks Mar 18 16:06:00 qkzoo1978: otherwise even in multiple threads, something like rotating the screen will break your db op Mar 18 16:06:12 yep Mar 18 16:06:29 Thanks for the tips folks, I appreciate it. Mar 18 16:06:46 qkzoo1978: if you run the service in the same process as your app (default mode) you can register callbacks into it directly and pass objects Mar 18 16:07:15 qkzoo1978: just remember that only the ui thread can update the ui; runonuithread will be your friend in your callbacks Mar 18 16:07:32 I'll check it out, never played with services before. Mar 18 16:07:38 qkzoo1978: it's not too bad Mar 18 16:09:07 qkzoo1978: http://kismetwireless.net/gitweb/?p=android-smarterwifi.git;a=tree;f=SmarterWifiManager/src/main/java/net/kismetwireless/android/smarterwifimanager;h=45a3ca59970f3d87a086561b777a9a63713a8cef;hb=HEAD Mar 18 16:09:27 qkzoo1978: wow that url was awful. anyhow, that might help; that's how I do same-process services w/ async callbacks via the binder Mar 18 16:09:44 two things left to complete and I finally finished my requests with retrofit/ square libs... basically if anyone knows how to properly cache text with retrofit or enable cookies... I am having trouble only with those two things Mar 18 16:09:47 qkzoo1978: don't promise it's perfect but might help along w/ the developer docs Mar 18 16:10:17 LoneSoldier728, cookies can be turned on without anything related to retrofit Mar 18 16:10:24 I have done it, but don't have that code handy Mar 18 16:10:39 android wear dev preview sdk Mar 18 16:10:41 http://googleblog.blogspot.com/ Mar 18 16:11:36 LoneSoldier728, http://docs.oracle.com/javase/tutorial/networking/cookies/cookiehandler.html is relevant, if you set a cookiehandler it will automatically handle any cookies Mar 18 16:11:56 http://stackoverflow.com/questions/18894540/using-retrofit-with-cookie-persistence has example code Mar 18 16:12:53 all the authentication for my app uses cookies (because the website does) Mar 18 16:13:17 yeah I was trying to use that example Mar 18 16:13:37 I just do it when the application starts Mar 18 16:13:38 is the answer sufficient? Mar 18 16:13:47 on like login right? Mar 18 16:13:50 and it will only work if you aren't using OKHttp or whatever Mar 18 16:13:54 before any networking code runs Mar 18 16:14:08 it sets it for all network calls from that point forward Mar 18 16:14:27 so if I avoid using okhttp it should be fine? Mar 18 16:14:48 yeah, if you are just using retrofit without okhttp attached it will work Mar 18 16:15:07 ok, but then what do you use for caching ur text Mar 18 16:15:15 because I have my images cached with picasso Mar 18 16:15:25 incoming or outgoing? Mar 18 16:15:29 incoming Mar 18 16:15:37 from GET requests Mar 18 16:16:14 Could put it into a sqlite database, save to a file, just toss it into a list Mar 18 16:16:15 I was about to setup my db but it is a pain in the ass to create a time and recycle Mar 18 16:16:43 right but if I placed it into my sqlite db Mar 18 16:16:45 for things like that I have a Generic class that I created that takes a key and value along with a time that it should live Mar 18 16:16:49 how do you go about time recycling Mar 18 16:16:57 and underneath it uses a max heap Mar 18 16:17:17 when I use "this.context.getApplicationInfo().dataDir;" will there be a separator (slash) at the end or no? Mar 18 16:17:20 how do you set up the time that it should live because that is what i need Mar 18 16:17:42 LoneSoldier728, when something is added I attach a new Date() to it Mar 18 16:17:46 because if I can do that, I already setup my db and call to my db before my servers Mar 18 16:17:58 I have a date in milliseconds Mar 18 16:18:02 mikedg: interesting, thanks. The second video looks more interesting than the first; at least as far as the visual appearance goes. Mar 18 16:18:57 and then I have a thread that gets scheduled at (nextObjectToRemove.dateAdded + millisSecondsToLive) - new Date().getTime() Mar 18 16:19:14 wait it is a min heap Mar 18 16:19:24 yo Mar 18 16:19:26 and it is sorted by timestamp Mar 18 16:19:28 do you store the date as a long btw Mar 18 16:19:34 so the item with the oldest time comes to the top Mar 18 16:19:38 you can do either Mar 18 16:19:41 does somebody know a good tutorial for start using gradle? Mar 18 16:19:45 What a good way to check if onSaveInstanceState has been called in an activity? Mar 18 16:19:47 I was doing int with /1000 Mar 18 16:19:57 if you want it in seconds sure Mar 18 16:20:03 but remember to convert all timestamps to that Mar 18 16:20:07 well I did it so it can be an int Mar 18 16:20:49 so is that the best way to do it... is there a lib that controls it better Mar 18 16:20:55 really won't matter, the memory usage won't be that bad unless you have a ton of items in your list Mar 18 16:21:03 LoneSoldier728, not sure Mar 18 16:21:15 that's why I just made a generic class that I can reuse over and over Mar 18 16:21:27 the thing is, because in the same db I am adding items that are being changed by the user Mar 18 16:21:54 and I want to keep those and send them to the server when a request occurs, so I do not want to remove them or have them collide somehow Mar 18 16:22:47 I don't use a db for that really Mar 18 16:22:55 just a map and a heap Mar 18 16:22:55 what do you use? Mar 18 16:23:07 yeah I got to learn about heaps then... Mar 18 16:23:11 map holds the actual objects, heap holds the key into the map + the timer Mar 18 16:23:26 is a heap a file or what is it exactly Mar 18 16:23:36 data structure Mar 18 16:23:48 if not I might just try to do it that way, it was the initial plan... but instead of a time amount can I say if a person resume Mar 18 16:23:52 http://docs.oracle.com/javase/7/docs/api/java/util/PriorityQueue.html Mar 18 16:24:10 then reset timer on items oh i guess I can update the times of the items in the db Mar 18 16:24:28 min heap is a datastructure where the "least" item is always at the top Mar 18 16:25:07 max heap is where the "largest" item is always at the top Mar 18 16:26:06 it's really a binary tree underneath, but you can think of it almost as a sorted queue, anytime you pop() the top, you get back the min/max value in the queue (depending on whether the heap is a min or max heap) Mar 18 16:26:44 so if you do it based on timestamps the oldest item will be at the top of a min heap Mar 18 16:26:56 and you can easily pull out different objects, meaning if one row/object pertains to a user another to an item table on your servers Mar 18 16:27:07 can you distinct them based on fields or something Mar 18 16:27:18 that's why I have the map and heap Mar 18 16:27:24 the actual values are stored in the map Mar 18 16:27:38 in my heap I have an object wrapper that has the key into the map and the timestamp of when it was added Mar 18 16:28:34 why the Log.d does not effect as the first statement of onCreate()? Mar 18 16:28:40 when my removal thread wakes up it takes the object off the top of the heap, makes sure the time is correct to remove it (addedTime + liveTime is before new Date()), then lock my map and remove with the key Mar 18 16:29:29 onResume is after or before onCreate? Mar 18 16:29:59 My Nexus 10 has arrived! Now I can start coding Mar 18 16:32:07 lj__: after, but https://developer.android.com/images/training/basics/basic-lifecycle.png (and https://developer.android.com/training/basics/activity-lifecycle/starting.html) are best to understand the nuances of lifecycle callbacks. Mar 18 16:33:10 LoneSoldier728, http://pastebin.com/N99VL20L that is my implementation, I don't gurantee bug free. But I haven't had any problems with it thus far. Mar 18 16:34:00 LoneSoldier728, although that one is meant to refresh the time after any access Mar 18 16:34:23 Can anyone assist on how to extract KitKat button styles to use in a previous SDK version? Mar 18 16:34:32 I use it mainly for logged in users, if they are active keep their sessions alive anytime I get them, but if they don't come back remove them Mar 18 16:36:05 hm kk Mar 18 16:36:17 thanks Mar 18 16:36:43 hi, i load an external website in a webview.. page showes "wepage not avaible" but site works Mar 18 16:37:54 jonc-1 when you were referring to removing from the heap you meant for sending it to update the servers right Mar 18 16:38:10 if that's what you want to do, sure Mar 18 16:38:13 sorry, it works now Mar 18 16:38:22 I downloaded a jar. How do I know what to import? It's not mentioned in the docs Mar 18 16:38:30 I have a listener that gets called when an object is removed from my cache Mar 18 16:38:47 so in that listener I could make a network call that updates that value Mar 18 16:39:00 that gets the new value and adds it back to the cache* Mar 18 16:40:09 ah ok, that is what the CachRemoveListener is Mar 18 16:40:30 yeah Mar 18 16:40:37 and it is just an interface that has 1 method Mar 18 16:41:16 http://pastebin.com/8arfG96W Mar 18 16:42:28 the TimedDataCache only allows for 1 listener, but I have another generic class that allows for any number of weakreferenced listeners Mar 18 16:43:01 so I could extend that in the TimedDataCache if I really wanted to and allow for multiple listeners, but haven't had the need quite yet Mar 18 16:44:40 so what is actually responsible for the default "blue background" that happens when you click a ListView? I made a ListView and a CustomArrayAdapter in order to implement a series of UI buttons (linear layouts) that the user can navigate with. But somewhere I am losing that "blue background" indicator. Mar 18 16:45:21 theblang, listview's suck for styling, if you want to keep the highlight you can't set a background color in your listitem's view Mar 18 16:45:33 Sure you can Mar 18 16:45:37 or create a selector that sets it transparent touched Mar 18 16:45:43 It's only drawn behind the view by default Mar 18 16:45:45 transparent when touched* Mar 18 16:45:58 It has a drawSelectorOnTop attribute Mar 18 16:47:21 SimonVT thank you X 1 million Mar 18 16:47:29 I looked all over the place for something like that and never could find it, son of a bitch Mar 18 16:47:43 jonc-1 haha, man, that attribute just helped me keep my sanity Mar 18 16:47:45 stackoverflow just kept suggesting adding in a selector that turned the background transparent Mar 18 16:48:29 so how do you implement this exactly you call TimeCacheData.add() passing in the key and value and that is that? Mar 18 16:48:52 LoneSoldier728, yes Mar 18 16:48:59 jonc-1 go to all of those SO questions, put the attribute that SimonVT referenced as an answer, ???, profit Mar 18 16:49:53 and to remove it it just listens for the interface to be called, that you have to call? and you can specify in the interface implementation what to do before the removal? Mar 18 16:49:55 theblang, haha, although it's sad to say, but I don't have a stack overflow account I don't think, I am a moocher Mar 18 16:50:20 it actually is removed before the listener is called Mar 18 16:50:27 but that could be changed Mar 18 16:50:52 and then the key and value are sent to the listener Mar 18 16:51:00 so in that case how would you update it before removal... Mar 18 16:51:04 what are you calling jw Mar 18 16:51:06 I mainly use the listener for logging when things are removed Mar 18 16:52:01 LoneSoldier728, you could just stop it from removing the item if you never want the item to be removed Mar 18 16:52:13 so if you wanted to do something before removal where do you call that Mar 18 16:52:23 well I would just want to send it to my server ultimately Mar 18 16:53:31 does it matter if it gets sent before or after it is removed? Mar 18 16:53:47 on network failure you could just readd it Mar 18 16:54:07 well I would need it to update otherwise the user's actions will be lost Mar 18 16:56:04 but knowing that it is time based, it only checks it when you call it right otherwise it won't remove until it is called? Mar 18 16:56:05 can app have read/write permissions of another app data/data dir? Mar 18 16:56:15 LoneSoldier728, that is correct Mar 18 16:56:22 it only removes once the timer is up for that item Mar 18 16:56:56 because I was thinking of doing something similar with the db to just check the first row and if the data is older than a certain amount and the size of the table (row wise) was a certain amount then to update the server then drop the table Mar 18 16:57:04 then recreate it again on a new input Mar 18 16:57:08 and keep it going like that Mar 18 16:57:09 and that'd work Mar 18 16:57:26 instead of a map and heap, you'd just need the database really Mar 18 16:57:27 but the thing I was thinking about is what if someone doesnt come back to the app for days Mar 18 16:57:49 and the data is just sitting there is there a way to use an alarmmanager or something Mar 18 16:58:00 to say if it has been a day then trigger Mar 18 16:58:21 but I guess that can be bad too if the data is there once then it will run everyday hm... Mar 18 16:59:25 i'm developing an app for Totem a minipc android with display. Problem.. when user don't touch di wnat display an animation Mar 18 17:07:25 hey guys, i'm trying to test in app billing. of course i can't use my developer account to make in app purchases, so i made a test google account. Mar 18 17:08:09 should i add that account to my android device and remove my main account? i wasnt sure if removing my main account would mess things up when i tried to log back in Mar 18 17:11:28 Hi there! Is there a way to keep an activity running (no onPause) and turn the display off? Or alternatively, is there a way to grant my bound service more CPU, after the activity has gone into the background (onPause)? I need much processing power on my service but the system seems to cut my cpu budget down when the activity to which the service is bound gets paused due to screen lock. I do not need the display at all. Mar 18 17:15:58 anyone here have experience with in app billing? Mar 18 17:19:08 Found the wakeLock ;-) Mar 18 17:19:39 hi Mar 18 17:19:51 what the difference to extends application or activity? Mar 18 17:20:58 t0th_-: do you know what inheritance means in programming? Mar 18 17:21:09 yes Mar 18 17:21:24 application has a different lifecycle than activity Mar 18 17:23:19 shigeru: it's much more than that Mar 18 17:23:25 what is? Mar 18 17:23:30 hello everybody Mar 18 17:23:32 t0th_-: extends means inheritance Mar 18 17:23:39 o know Mar 18 17:23:42 i know Mar 18 17:23:44 so extending application means nothing to the UI Mar 18 17:23:51 obvi thats not an exhaustive list of the differences Mar 18 17:24:01 when i need extends of Attivity or Application ? Mar 18 17:24:06 meaning, if you want to generate a page, than you must extend a UI based class Mar 18 17:24:19 Activity is the parent of the process Mar 18 17:24:41 oncreate() of my activity i start an asynctask. when i press back button and then again start that activity then my onPostExecute() is not getting called Mar 18 17:24:41 so if you need global things or managers and what not that must be alive throughout the app liftime Mar 18 17:24:49 that is what application is for Mar 18 17:25:46 sunny_slls: that's the expected behaviour Mar 18 17:26:04 thepoosh, how come ? Mar 18 17:26:05 as long as it's part of the activity object, it gets GCd Mar 18 17:26:26 and onPostExecute (that happens in the UI thread) will not run Mar 18 17:27:03 thepoosh, but when i press backbutton onDestroy() gets called that means the object goes for garbage collection Mar 18 17:27:17 basically, when creating an AsyncTask, you give a hook to the activity from which it's running Mar 18 17:27:26 if the activity dies, so does the handler Mar 18 17:27:30 (hook) Mar 18 17:27:53 hook means ? are you trying to say to give a weak reference ? Mar 18 17:28:05 of the activity object ? Mar 18 17:28:34 sunny_slls: no, asynctask has a handler to the UI thread, Mar 18 17:28:48 Handler with Looper.getMainLooper Mar 18 17:28:50 sunny_slls: Mar 18 17:28:55 use volley lib Mar 18 17:29:50 sunny_slls: what are you trying to do? Mar 18 17:30:16 actually i am trying to do some background processing and based on that data i am updating the UI Mar 18 17:30:23 in onPostExecute() Mar 18 17:30:38 ok Mar 18 17:30:42 * kbs continues to think introducing AsyncTask was a mistake Mar 18 17:30:50 so if you click back there is no UI to update Mar 18 17:31:20 if i click back i finish the activity. I checked it out by putting logs and saw that onDestroy() gets called Mar 18 17:31:41 yes! Mar 18 17:31:41 then again i start that activity and this time onPostExecute() of asynctask doens't gets called Mar 18 17:31:52 is being started? Mar 18 17:32:00 is onCreate() called? Mar 18 17:32:18 why not do processing in onStart() like the docs suggest you should? Mar 18 17:32:33 kbs: why? it's an awesome mechanism Mar 18 17:33:08 thepoosh, onCreate() gets called Mar 18 17:33:33 thepoosh: too many gotchas vis-a-vis subtle interactions with the activity lifecycle from which it's typically started. My personal opinion anyway; and more power to all those who find it useful Mar 18 17:33:38 i have put logs there too Mar 18 17:34:03 sunny_slls: does doInBackground get called? Mar 18 17:34:12 kbs: nahhh Mar 18 17:34:16 it's awesome Mar 18 17:34:56 thepoosh, let me check that Mar 18 17:35:05 i didn't check doInBackground Mar 18 17:37:20 thepoosh, yes doInBackground() gets called Mar 18 17:37:38 and you're sure you get to the return and give it normal values? Mar 18 17:37:53 because now I don't believe you anymore Mar 18 17:39:10 ya that's the weird part . i don't know how its happening. Never faced this before Mar 18 17:39:17 let me check again. Mar 18 17:39:37 k Mar 18 17:45:11 sunny_slls: ? Mar 18 17:50:40 thepoosh, i think its the application level problem. I am initializing some stuff in the application level. May be that could be the problem Mar 18 17:50:43 looking into it Mar 18 17:50:51 For this design, how many activities should I have? http://i.gyazo.com/aa9a586abcc394f912ca9a63e52f16c7.png Mar 18 17:51:44 autrilla: 1 activity 2 fragments Mar 18 17:52:01 one with the list and the other with the gridview Mar 18 17:52:16 thepoosh, and then one fragment for each nav drawer menu item? Mar 18 17:52:27 nahhh Mar 18 17:52:32 it can be a custom listview Mar 18 17:52:42 with more than one item type Mar 18 17:53:01 or custom plays with the views Mar 18 17:54:14 thepoosh, I meant when the user selects something like "Noticias" (News) or "Alarmas" (Alarms) Mar 18 17:54:59 so? Mar 18 17:59:12 thepoosh, do I need another fragment for that? Mar 18 18:01:46 Is it just me or ADT is kind of buggy? Mar 18 18:02:20 autrilla: no Mar 18 18:02:23 I've just started using it. Select the "new->android activity" option to create a new activity, went through the wizard, but nothing happened. Mar 18 18:02:29 that's always nice =D Mar 18 18:04:34 Trying to run Android Studio in Linux with a Galaxy S4. I have went through the process of installing the required MTP components and the phone mounts (after an initial error which goes away). I can run adb devices and find the phone, however, when I attempt to load and debug the application through android studio, it just hangs and uploading file. Does anyone know what I am missing in my setup? Mar 18 18:04:46 or have any ideas on where to look Mar 18 18:11:01 when you make a test purchase with in app billing, any idea how long until i can purchase it again? or will i have to programatically consume it? Mar 18 18:13:26 It also seems as Iif I am unable to adb push anything Mar 18 18:22:29 how does the Facebook app pop open a window from the action bar items? (like with notifications) Mar 18 18:23:51 epsilonorion_: I've found adb to be generally flaky; requiring constant kills of the process on the computer, and reattaching the device to usb. My 0.02 - test directly on the command-line with adb first [eg: install/uninstall etc] Mar 18 18:24:43 kbs: Thanks. I actually just finished killing and restarting adb multiple times and it finally worked. Definitely don't like how iffy it is, but at least it is working Mar 18 18:33:46 however, is still does not want to work through android studio Mar 18 18:36:45 I have a difficult problem, and what i've tried thus far hasn't worked Mar 18 18:36:49 so i'm hoping for some input Mar 18 18:37:07 I have device that won't respond to manually changing the orientation Mar 18 18:37:13 so it's always landscape Mar 18 18:37:26 however, I need the ability to make a certain view rotate into a portrait setting Mar 18 18:37:51 so what i've been trying to do is rotate this view that takes up the entire screen by 90 degrees using setRotation Mar 18 18:38:20 the problem is, it's not actually changing the dimensions of the view afterwards Mar 18 18:39:21 bacon1989: have you checked your system display options to make sure auto-rotate is enabled? Mar 18 18:40:05 bacon1989: you could also enforce the desired orientation via the manifest entry for whichever activity you're working with Mar 18 18:40:26 jjnye: no, I didn't. the device is a minix x7, so it takes an external display Mar 18 18:40:29 i'm going to check Mar 18 18:41:16 does anyone know how to upload a android library to the local gradle repo so that I may test? Mar 18 18:42:43 jjnye: from what I can tell, there is no way to change the orientation from within the android settings Mar 18 18:43:11 I checked display, and there's even an area for HDMI, since it's connected to a monitor by HDMI Mar 18 18:43:20 and it would only allow me to change scalling etc Mar 18 18:45:30 hey guys, anybody know anything about putting views into an actionbar? specifically, I would like to have a button in my action bar where I can capture and respond to MotionEvent.ACTION_DOWN and ACTION_UP events. Mar 18 18:46:18 but my OnTouchListener doesn't appear to be working - I can set an OnClickListener on the button I have in my actionbar (using setActionView(button)) but it appears to ignore it if I use an OnTouchListener Mar 18 18:49:01 I'm guessing since it's an external display, you can't change the orientation of your stuff Mar 18 18:49:08 which means i've been trying to do it by hand Mar 18 18:49:25 the view I want to rotate actually fills the entire screen Mar 18 18:49:45 which is also a problem, since I want it to recalculate it's bounds after it's been rotated Mar 18 18:50:02 this seems almost impossible Mar 18 18:56:19 just to be sure, when I set the CookieHandler to the default cookiemanager in my startup activity, I do not have to do this again if I branch to another activity? Mar 18 18:59:58 for which architectures should I include native libraries? armv7a, arm, mipsel, x86? Mar 18 19:00:27 armv7a allows for some additional fp optimizations, so I assume that could be listed separately Mar 18 19:03:44 [A3G1S]: ? Mar 18 19:03:51 why are you awake?! Mar 18 19:04:41 <[A3G1S]> watching TV Mar 18 19:04:49 <[A3G1S]> will sleep in a few Mar 18 19:04:53 <[A3G1S]> how are you ? Mar 18 19:05:29 tired Mar 18 19:05:39 and it's only 21:00 here Mar 18 19:05:45 kids will do that Mar 18 19:06:04 * [A3G1S] is a kid Mar 18 19:06:15 lol Mar 18 19:06:34 * thepoosh is turning 31 on friday Mar 18 19:06:48 <[A3G1S]> so you a old boi Mar 18 19:06:57 <[A3G1S]> i usually sleep late... mostly my mac stays alive 24/7 Mar 18 19:11:21 anyone familiar with android and linux. I can't seem to adb push or use android studio to upload and file and test Mar 18 19:16:29 epsilonorion_: What is the output of `adb devices`? Mar 18 19:18:03 freeone3000: shows the phone Mar 18 19:19:11 freeone3000: I went through the process of pulling and working with MTP Mar 18 19:19:45 Hey everyone, I have a package I'm creating with `android update project ....` I want to know if there is a way to specify the path to ant (a standalone newer version) without changing $PATH Mar 18 19:19:59 specifically using either a command line option or local.properties or even ant.properties Mar 18 19:20:27 epsilonorion_: What is the exact command you're giving (with adb push) and the exact output? Mar 18 19:20:28 freeone3000: if I do adb push, nothing happens. When in Android Studio, it shows the phone when I try to load it, then shows that it finds the device, but hands on the "uploading file" stage. Mar 18 19:21:24 I locate the apk, run "adb push . I have tried various paths, including the one that android studio puts out /data/local/tmp/ Mar 18 19:21:52 my googling is failing me to find the how here Mar 18 19:23:58 epsilonorion_: adb push does not report progress. Mar 18 19:24:02 for reference, the sdk we're using here is sdk 16, --- but ant needs to be 1.8.0+ so we're unpacking ant from a tarball, and thus its not in PATH Mar 18 19:24:23 (this is also in automation where its a pain to update PATH where this is run, for the context on "why not PATH") Mar 18 19:25:30 freeone3000: no Mar 18 19:26:18 epsilonorion_: I mean, it doesn't. If you're uploading a large file, it can take a good long while. `adb devices` means you're connected, no error means your paths are correct. Mar 18 19:26:29 epsilonorion_: If it's only a few meg, I've not a clue. Mar 18 19:26:42 * Callek is happy to provide any details, including source code, that someone here would want to try and help me get to a usable solution (everything is public) Mar 18 19:27:20 freeone3000: it shouldn't be very large, however, between android studio or adb, I am used to seeing something show up on the phone Mar 18 19:27:36 and I can access and copy the apk to the phone with no problem using the file structures Mar 18 19:27:41 *folder Mar 18 19:37:07 freeone3000: so yeah, definitely lost as to what is wrong Mar 18 19:37:25 epsilonorion_: Try connecting your phone via PTP ("As a camera"). Mar 18 19:38:30 freeone3000: I tried that before. I did get an error on this one (1st: Error initializing camera: -60: Could not lock the device, 2nd: Unable to open MTP device '[usb:001,020]') Mar 18 19:38:55 however, it still shows up on adb devices Mar 18 19:44:23 Why does my ActionBar text show black if I have