**** BEGIN LOGGING AT Mon Oct 13 03:00:00 2014 Oct 13 03:02:05 well, i do Oct 13 03:02:09 if i scroll a lot Oct 13 03:02:30 if you start in free jigsaw puzzles.... scroll down 170 spaces..... Oct 13 03:04:45 I need to download data everyday at a certain time regardless if the application itself is running or not..do i just use a Service? Oct 13 03:05:00 MartialLaw you use the docs ! Oct 13 03:05:06 yikes Oct 13 03:05:11 (AlarmManager) Oct 13 03:05:21 g00s - ##java is where u need to be Oct 13 03:05:37 g00s thinks that the docs will feed the poor Oct 13 03:06:00 no, but you guys keep asking questions out of the FAQ or 'dev 101' Oct 13 03:06:10 sure we do Oct 13 03:06:36 g00s - #android-dev-experts Oct 13 03:06:47 oo la la Oct 13 03:07:47 sorry dude. it's difficult to hear read the docs in a chan that is for helping people. thanks for pointing me to AlarmManager, I appreciate that but nothing more. Oct 13 03:11:03 i was gonna say, go through the training http://developer.android.com/training/sync-adapters/index.html Oct 13 03:11:19 seems like the quality of developers is really going downhill Oct 13 03:12:03 or, you just figured out how to read the google docs somehow, but on one else did Oct 13 03:12:12 they are almost as bad as Facebook's a couple years ago Oct 13 03:12:30 but the docs go hand in hand with the scattered nature of the design Oct 13 03:12:46 there are good and bad parts of the docs. the good parts, are the training, tutorials, guides Oct 13 03:13:05 when somebody says 'how to i send data from one activity to another", they clearly didn't read the docs Oct 13 03:13:13 now, the javadoc is often bad in places Oct 13 03:13:21 but confusion from bad javadoc is easily identifiable ;) Oct 13 03:13:28 laziness is too Oct 13 03:13:42 *popcorn* Oct 13 03:13:43 man Oct 13 03:13:49 i don't even know what an activity IS Oct 13 03:14:07 then you clearly don't know zilch about android Oct 13 03:14:23 that's a double negative Oct 13 03:14:29 so you mean to say I know EVERYTHING Oct 13 03:14:41 ah yes, i stand corrected Oct 13 03:14:57 Agamemnus: No, not knowing zilch would be merely knowing something, however little. Oct 13 03:15:01 activity is like "start here" material Oct 13 03:15:07 arbn: beat me to it :P Oct 13 03:15:20 That's true. Oct 13 03:15:27 I like exaggerating things. Oct 13 03:16:12 Speaking of exaggerating things Oct 13 03:16:23 Anyone here look at their ad stats, if they have them? Oct 13 03:16:34 Agamemnus: I just worked through the first tutorial, and I actually found it quite decent. I'm having a smoother time than I had learning some to developer for some other mobile platforms that I won't mention here, Oct 13 03:16:35 What do you get for click-through rates for interstitials? Oct 13 03:16:50 learning to develop for some* Oct 13 03:17:14 i guess it isn't bad if you are using the right tool set and already know java Oct 13 03:17:25 i do not like how they link things in their docs Oct 13 03:17:35 it is very haphazard Oct 13 03:17:45 they have huge pages sometimes... well a lot of docs do Oct 13 03:18:01 and sometimes the pages are too short Oct 13 03:18:08 just totally wrong way to write docs Oct 13 03:18:28 emphasis on important parts is missing Oct 13 03:18:39 basically it is amateurish imo Oct 13 03:18:44 stop hitting enter, would you Oct 13 03:19:22 I tend to do that, don't I? Oct 13 03:22:21 I need to stop using object names that are synonyms for lustful intercourse Oct 13 03:22:30 g00s isn't it more important to spend channel time discussing peeves that practicing writing code? Oct 13 03:23:06 Darklust: Just name every object lustfulIntercourse{1,2,3,..}. Problem solved. Oct 13 03:24:20 Hmm, I think ProGuard did that once while obfuscating Oct 13 03:25:31 capella-s3 also, Agamemnus is using cordova, and no java - so basically it would be best to get help in #cordova or something Oct 13 03:25:53 Heh phonegap Oct 13 03:26:04 oic Oct 13 03:26:05 of course the java docs aren't going to make sense, if you are using javascript :) Oct 13 03:26:08 It's a fun word Oct 13 03:26:27 javascript and java are the same thing. 'java' is just short for 'javascript' Oct 13 03:27:01 i'm pretty sure, if i refused to learn javascript, i'd be completely clueless how to use the underscore.js apis Oct 13 03:27:18 bankai_au: You're paying to replace the monitor I just vomited on right? Oct 13 03:27:20 "but they have parenthesis !" Oct 13 03:27:28 bankai_au: you're trolling right? Oct 13 03:27:36 heh Oct 13 03:27:37 http://imgur.com/MilKmny hehehe Oct 13 03:27:55 bankai_au: I knew you were going to paste that. Saw it last week. :) Oct 13 03:27:58 i refused to learn javascript for a long time but mozilla kind of beats it into you Oct 13 03:28:41 bankai_au is that posting a joke ? Oct 13 03:28:47 That looks like a great company to work for Oct 13 03:28:51 i honestly don't know lol Oct 13 03:28:57 bankai_au: The company is real. It's up to you. Oct 13 03:29:21 bankai_au: It's an outsourcing/staffing company in India. Oct 13 03:29:28 "I'm not taking a drunk shit on my desk, it's called JQuery!" ..."Okay!" Oct 13 03:29:29 snap Oct 13 03:29:43 g00s: ^ Oct 13 03:29:50 So much will just not get done Oct 13 03:29:52 they keep trying to make me use "Promises" Oct 13 03:30:07 fight it Oct 13 03:30:20 capella-s3: Promises are a way for JavaScript programmers to be more explicit in not handling errors. Oct 13 03:30:24 I have a BroadcastReceiver to sense NETWORK_STATE_CHANGED_ACTION Oct 13 03:30:39 its very trendy ;) Oct 13 03:30:39 and I am trying to detect when there has been a WiFi disconnect Oct 13 03:30:58 is it normal that there is a DISCONNECT before a CONNECT? Oct 13 03:31:09 Dammit Jim Oct 13 03:31:22 don't wear out my name dude Oct 13 03:31:45 lol Oct 13 03:32:07 yourdead jim Oct 13 03:32:35 like I can see: DISCONNECT.... then OBTAINING IPADDR..... then CONNECTED Oct 13 03:32:36 seen it too many times Oct 13 03:32:42 Have you seen the Chrome error? Oct 13 03:32:55 so, if I try to catch a DISCONNECT, I'm getting messed up because there is on before a connection! Oct 13 03:35:28 rm /system/build.prop && reboot Oct 13 03:35:35 The feels Oct 13 03:37:38 anybody? Oct 13 03:38:58 Anybody know where the galaxy s5 system font is? I replaced it and now no emoji :( Oct 13 03:40:29 aretecode what does that have to do with android dev? please read the topic Oct 13 03:40:56 g00s, someone may have developed a custom galaxy s5 emoji font :3 Oct 13 03:41:07 http://pastebin.com/ft5tMPEQ Please tell me I'm a moron, that this already exists already Oct 13 03:41:49 aretecode: Ask in #android, this is for questions about developing for Android. Oct 13 03:41:56 emoji font? Oct 13 03:42:41 what happened with the old emotes/emoticon word Oct 13 03:42:57 IPhone Oct 13 03:43:06 thosr people Oct 13 03:47:46 emoji is japanese Oct 13 03:48:47 it means picture letter or something Oct 13 03:50:56 lol, here is an amazon review (1 star) "I'm sorry, but I can't rate it yet because I have been so busy I have not had time to read it yet." Oct 13 03:51:29 hehe, man people should be tested on how to rate stuff before they have the proviledge :D Oct 13 03:51:53 1 star - it was awesome , wanted you to see this ! Oct 13 03:57:19 can i add a header to my listview using ListFragment? do i have to mess with my adapter for it? Oct 13 03:58:22 oh Oct 13 03:58:24 * capella-s3 always gives 5 stars when it sucks... so I don't damage their self esteem Oct 13 03:58:24 nvm Oct 13 03:58:51 capella ill share you my app as soon as i publish it Oct 13 03:59:23 5 stars... it Sucks but he tried Oct 13 04:02:33 I won't rate it, and the minute the app pops up a dialog saying "Rate Me!" I rate them 1 star and uninstall out of spite, then scour the internet talking shit about them to kill their reputation Oct 13 04:02:41 But I'm really a good guy Oct 13 04:03:46 g00s I got a one star on a FF addon I wrote cause the guy was mad he had the version of FF that didn't require my addon Oct 13 04:04:23 Sometimes someone writes for mine "This is a great app! Love it!" with one star Oct 13 04:04:33 Ologn from turkey ? Oct 13 04:04:42 seems to be a thing in a part of the world Oct 13 04:04:49 g00s: have to check Oct 13 04:05:27 Perhaps they have it backwards Oct 13 04:05:31 Probably Oct 13 04:05:36 Ologn: Stars are a bad omen. Oct 13 04:05:44 like golf the low number is bettet? Oct 13 04:06:23 Par is 2, but I got 5 so I win! Oct 13 04:06:52 The Russian judge gave it a 1! Oct 13 04:07:18 In soviet Russia, star rates you Oct 13 04:07:43 He stuck the dismount! A perfect 1! Oct 13 04:08:44 Holy crap, how about google lets us rape the users! Oct 13 04:08:53 Like ebay Oct 13 04:08:58 s/rape/rate Oct 13 04:09:13 rape all the users Oct 13 04:09:42 Software ain't free Oct 13 04:10:06 heheh Oct 13 04:11:36 Use a satellite to launch hungry sharks at their loved ones Oct 13 04:16:44 you could probably just hack into the same one google uses to launch hungry sharks at unsuspecting devs Oct 13 04:17:23 i'm coming more and more to the conclusion that google doesn't give a shit about those people :) Oct 13 04:17:35 g00s Oct 13 04:17:48 I saw your link earlier, yesterday I think. Oct 13 04:17:53 About Google banning some guy Oct 13 04:18:00 oh probably on reddit Oct 13 04:18:03 I posted it in the ##javascript topic Oct 13 04:18:13 some people saw it before it got struck down by an older op Oct 13 04:18:16 ANYWAY Oct 13 04:18:25 I saw yours, will you see mine? Oct 13 04:18:27 http://www.reddit.com/r/Phonegap/comments/2j36fk/so_i_made_a_cordovaphonegap_plugin/ Oct 13 04:20:02 I can smell a shitstorm brewin Oct 13 04:21:16 in india? hehehe Oct 13 04:23:01 ehh I think he was talking about my topic Oct 13 04:24:47 <_blackbox> I want to make an Tile based Puzzel android game, in which the tiles slide (Just like in 2048), how should I go about making this. I am new to android Oct 13 04:25:05 The pink site template is getting to me Oct 13 04:25:20 I'm gonna lose it Oct 13 04:25:34 where? Oct 13 04:25:48 _blackkbox: make it in Javascript ^_^ Oct 13 04:25:54 err Oct 13 04:25:59 "_blackbox", sorry. Oct 13 04:26:04 The link you provided Oct 13 04:26:21 i don't see any pink Oct 13 04:26:34 What do you see, you're scaring me Oct 13 04:26:39 oh Oct 13 04:26:47 yeah it isn't in the post itself Oct 13 04:26:53 I see it now Oct 13 04:26:58 it's kind of light-pink-blue Oct 13 04:27:19 It's kind of light-pink-evil as shit Oct 13 04:27:34 It radiates hatred and all that is terrible in the world Oct 13 04:28:06 This is the color you see when you die Oct 13 04:28:29 <_blackbox> how can I use javascript in android Oct 13 04:28:37 you don't ... ever ... Oct 13 04:29:26 Agamemnus: I'm refreshing this furiously, how long does it take them to reply? Oct 13 04:30:25 what do you mean? Oct 13 04:30:29 Who should reply? Oct 13 04:30:54 The indians that run the site Oct 13 04:31:30 i don't think they are going to do anything even if they reply Oct 13 04:32:13 Don't tell me you're not going to verbally assault the next rep that puts a canned response in those comments Oct 13 04:34:00 Did I verbally assault him? Oct 13 04:34:02 Arrest me. Oct 13 04:34:23 I wanna see a fight is all Oct 13 04:34:33 i see Oct 13 04:41:59 do I expect hidden views (e.g. with "GONE" visibility) to show in the UI hierarchy viewer? I had expected them to, but I'm not seeing them Oct 13 04:42:15 trying to decide if that's just because they're not shown or if they're like... more gone than I was thinking Oct 13 04:42:31 you are lucky if anything shows up in hierarchy viewer :) Oct 13 04:42:45 hm? ;p everything else seems to show up okay Oct 13 04:55:21 damn Oct 13 04:55:37 the app looks slower with a header for the listview Oct 13 05:07:34 is facebook the accepted method of adding social shit to a game? Oct 13 05:10:47 It's likely the most convenient Oct 13 05:44:15 I have a gradle project where dependencies fo dependencies does not get included automatically. Any idea what could be wrong? Oct 13 06:04:33 you mean dependencies from maven/gradle repo? Oct 13 06:04:42 yes Oct 13 06:05:12 can you show the gradle file? Im not really a gragle-experienced but might be the only one arround here at this time :p Oct 13 06:06:39 I’m afraid that would not be possible :( Oct 13 06:07:39 so I cant see whats wrong with your file :/ Oct 13 06:07:57 The problem with non open source code :P Oct 13 06:08:23 * Darklust screams like a banshee Oct 13 06:08:52 yeah ^^ Oct 13 06:09:34 I don’t own the code so would be very wrong if I would paste it somewhere. Oct 13 06:10:14 yeah I understand that Oct 13 06:10:32 is it an oss library repro you want to include? Oct 13 06:11:03 In this case one of the dependencies pull in org.skyscreamer:jsonassert Oct 13 06:11:24 building without explicitly specifying it gives me a class not found exception. Oct 13 06:14:06 hey all, what mesurement is used here: public RelativeLayout.LayoutParams (int w, int h)? I would like to set the w as dip but that doesn't seem to be the case. Oct 13 06:15:38 pixels Oct 13 06:15:51 look at the docs Oct 13 06:16:11 Ah damn. Did all I found was (int w, int h). Oct 13 06:16:26 Any way to set it as dip? Oct 13 06:17:36 Need to do conversion myself, thanks. Oct 13 06:17:39 You'd have a hell of a time convincing the FDA to approve that Oct 13 06:18:01 They'd probably tax a good amount Oct 13 06:23:31 SASDOE: usually everything in XML is in dip, while everything in java is in pixels Oct 13 06:23:51 (just to have a guideline) Oct 13 06:24:28 danijoo: Good to know, cheers Oct 13 06:25:02 well, in xmp you have the post qualifier to be whatever, dp,px,sp Oct 13 06:25:06 xml* Oct 13 06:25:20 if you just type the number pretty sure it wont use complex unit Oct 13 06:25:28 so wil still be in pixels I think Oct 13 06:25:32 yes. but usually people use dp :) thats what i mean Oct 13 06:25:48 StingRay_: I think if you only type a number lint complains Oct 13 06:26:13 or at least my ide does.. Oct 13 06:29:32 can anyone point me to an example of how to refactor Location related code out of an activity?, google's examples are riddled with over 400 lines of code in the activity... http://developer.android.com/training/location/retrieve-current.html Oct 13 06:31:41 sylon probably quick not to search but to start and do it Oct 13 06:31:48 quicker* Oct 13 06:41:20 https://www.dropbox.com/s/ywt7ikw2ag64w01/Screenshot_2014-10-13-02-39-37.png?dl=0 Oct 13 06:41:33 I need some tips on how to make this pretty Oct 13 06:42:09 Getting a "Resource id cannot be an empty string" error in Android Studio while working on my first app. --> http://dpaste.com/2EQ0NCT at line 10 Oct 13 06:42:34 james0r yeah… it cant Oct 13 06:42:53 android:id="@+id/somethingtoidentifythisthingwith" Oct 13 06:43:28 or if you do not need to reference it, delete that line Oct 13 06:43:54 the latter option is probably what you want to do Oct 13 06:43:57 :) Oct 13 06:44:02 StingRay_, sorry i'm new to the environment. what element is that? apologize for my laymen terms Oct 13 06:44:32 line 10 ??? Oct 13 06:44:38 StingRay_, yeah Oct 13 06:44:44 thats a relatvie layout Oct 13 06:44:50 not sure what you are asking Oct 13 06:45:21 okay, not somethign i'll likely need to referencing eh? delete it? Oct 13 06:45:23 gnight Oct 13 06:45:48 yeah, remove the blank id assignment Oct 13 06:46:14 as the error says, you can assign blank refs anwyas Oct 13 06:46:19 ways* Oct 13 06:47:42 StingRay_, gotcha. thanks. Oct 13 06:59:37 D: Oct 13 07:02:49 is redirecting to the playstore from my application a violation of the content policy or not?? Oct 13 07:03:17 I see apps do it all the time sooo Oct 13 07:06:21 it is stated as : Promotion or install tactics which cause redirection to Google Play or the download of the app without informed user action. Oct 13 07:07:19 Which means the user has to consciously click a view or something, don't just automatically pull up the store Oct 13 07:08:46 i was opening the playstore from a navigation drawer list item.. is this a violation?? Oct 13 07:09:50 why is jcenter to prefer before maven central? Oct 13 07:10:12 ahulr_: What does the list item say? Oct 13 07:10:50 Buy ad free version Oct 13 07:11:35 Maybe bring up a dialog saying "You're going to be linked to PlayStore" or something Oct 13 07:11:53 hi guys, is there a way to tell gradle to not care that one of my libaries has a larger minSdkVersion then my app? Oct 13 07:12:11 ohk i'll do so and pray that my application does not get suspended.. Thanx for your help Oct 13 07:12:40 you have 20 seconds to comply Oct 13 07:13:00 I think you better do as he says Oct 13 07:15:24 hey all, slight issue whith httpClient http://lpaste.net/112514 I have included stacktrace and relevant lines. Oct 13 07:16:04 I get a "Item cannot be null" IllegalArgumentException when creating a CloseableHttpClient with a cookiestore Oct 13 07:56:09 I am unable to use "match_parent" inside a relativelayout. It just resolves to height 0 Oct 13 07:56:26 although I tried manually setting the height of the view on the parent view Oct 13 07:56:36 I still get 0 on children views using match_parent Oct 13 07:57:16 :( Oct 13 07:57:20 then the patent view has height of 0 Oct 13 07:58:14 Mrdarknezz or you are doing something horribly wrong :) Oct 13 07:58:22 hi guys, is there a way to tell gradle to not care that one of my libaries has a larger minSdkVersion then my app? Oct 13 07:59:02 I tried using a global layout listener to set the height and then it storta did get the correct dimensions Oct 13 07:59:58 Mrdarknezz ok well thats fine, as long as you know layout is not just called once … and that it can have zero dimensions on a view on all but the last call that can be N times Oct 13 08:00:59 StingRay_: Yeah it's a listview so It won't be called once Oct 13 08:01:16 no i mean even if it wasn't a listview Oct 13 08:01:16 I sorta figured I just did something wrong and I'd figured it out along the way since my brain was potato last time I looked at it Oct 13 08:01:38 and that using a layout listener to fix this trivial task was a horrible overkill Oct 13 08:01:58 Mrdarknezz what is it you are wanting ? there maybe easier way ;) Oct 13 08:02:22 I am trying to create a vertical line between 2 points inside a view item inside a list view Oct 13 08:03:01 description not good enough Oct 13 08:03:31 I have 2 points inside a view Oct 13 08:03:57 these align with 2 textviews Oct 13 08:04:07 these align to the left of* Oct 13 08:05:00 these 2 points are just textviews with an icon inside it Oct 13 08:05:25 between these 2 points I create a normal tag that I align with the points horizontally Oct 13 08:05:44 well, not that your description makes it clear, but just sounds like you want a drawable background on a container that has the textviews Oct 13 08:05:54 Nope Oct 13 08:06:02 The line is a Oct 13 08:06:04 then I dont get what you want Oct 13 08:06:10 A vertical line Oct 13 08:06:14 forget how, need to know what Oct 13 08:06:22 so word like view are irrelevant Oct 13 08:07:38 like I say, from the image in my head, easy with drawable background on container Oct 13 08:08:08 Already have a custom drawable on the container Oct 13 08:11:26 maybe a screenshot Oct 13 08:35:04 Me again. I can post data to login form, but have no clue how to know wether auth was successful. Should I reload page again? Or will the response from httpClient.execute() have the info stored somewhere? Oct 13 08:37:38 I'm sharing a file via intent using filestream uri. Google hangouts and some other share apps are choking. Logcat says can't open the file, which is in /emulated/0/somefolder/foo.jpg Oct 13 08:38:05 File was created by the app that's sharing it just a fraction of a second earlier than the intent selector is shown Oct 13 08:44:48 Hi, could someone tell me a standard way to download a visual interface definition from my app (layout, buttons...) ? Oct 13 08:45:29 zebu1er not sure about anyone else…but that question makes no sense to me Oct 13 08:47:12 I mean my android app would download an activity layout from my server instead of using the bundled one. Is that possible any way ? Oct 13 08:48:46 what happens if no internet connection ? or server down ? Oct 13 08:48:57 also what would be the point ? Oct 13 08:48:59 What's the best practice to save / hold some data (global state variables) in an android application? I need to access them from an main activity with some fragments... should I save / load them in the main activity or Application class? Oct 13 08:49:05 A guy did it but sells his (non open source) solution, : http://netio.davideickhoff.de/en/ Oct 13 08:49:31 zebu1er: itd be easy just serialize the state send the state reinstatiaion with meta information Oct 13 08:49:44 you can do it probably with proxy binders Oct 13 08:49:47 if you want to get fancy Oct 13 08:51:45 There is no (trextual) interface descriptive language that android would have a class to load it ? Oct 13 08:52:21 For exemple, on .Net there is an XML to describe a layout Oct 13 08:53:39 Like XUL also... Oct 13 08:55:35 May be some of : http://en.wikipedia.org/wiki/List_of_user_interface_markup_languages#Java Oct 13 08:56:05 Is there a way to identify if I'm calling any UI functions from outside of the main UI thread? Oct 13 08:56:50 I'm new to a large code base, and they've found a few times when the UI goes bad due to drawing outside of the UI thread. Other than manually reading through tons of code, is there a simpler way to get android to warn/error ? Oct 13 09:02:35 johnflux__ well it will throw exceptions if you attempt to alter any element on an active view hierarchy Oct 13 09:03:00 BACKGROUND: I am trying to set up a service for the first time. Initially, I want it to provide specialized logging, later handle database access. I'm relatively new to Android, but I started on Mainframes many years ago, though I've been doing Java for over 10 years – so quite possibly, I going about things the wrong way! Oct 13 09:03:02 QUESTION: My doBindService() in MainActivity doesn't bind. I suspect it is something obvious in ether Chivisda002Manifest.xml or how I'm setting things in the doBindService() method. So what am I doing wrong, and what do I do to remedy the problem? Oct 13 09:03:03 MainActivity: http://paste.fedoraproject.org/141380/13190113 Oct 13 09:03:05 ChivisdaLogService: http://paste.fedoraproject.org/141382/19034214/ Oct 13 09:03:06 Chivisda002Manifest.xml: http://paste.fedoraproject.org/141383/90387141/ Oct 13 09:13:12 None of the diagnostics in ChivisdaLogService get triggered, so it appears that it never gets there... Oct 13 09:37:11 after a certain activity, i would like to call an HTTP member:method to a server api. what should i be looking at? Oct 13 09:37:41 so, when you say 'activity', do you mean 'Activity'? Oct 13 09:38:00 Yes Oct 13 09:38:16 not sure if im on the right approach Oct 13 09:38:20 and... when you say "after"? Oct 13 09:38:26 planning to make an HTTP call in the onActivityResult Oct 13 09:39:50 Hi all, I'm trying to post some JSON data to a PHP script for processing a login, however, when I check on the server, $_POST is completely empty every time. Oct 13 09:41:21 I have a gist of what I've got so far here: https://gist.github.com/sdousley/4300f75ad545f2261845 Oct 13 09:47:02 Leeds: how many years you been doing android dev? Oct 13 09:47:43 onats: all of them, approximately Oct 13 09:48:21 you mean since it was created? Oct 13 09:48:34 yup Oct 13 09:50:14 are you mentioned in any wikipedia related to android? Oct 13 09:50:26 I paid my $25 registration in December 2008 Oct 13 09:51:42 I don't think so - why? Oct 13 09:58:10 * StingRay_ thinks Leeds has a….stalker .. oooo Oct 13 10:00:23 Some help would be appreciated to solve my service problem, thanks! Oct 13 10:02:58 hello i have read a lot of similar questions in stackoverflow but i couldn't find a good answer. When i replace a fragment the previous fragment is still visible in the background Oct 13 10:03:17 even if i use remove and add i can't fix the problem Oct 13 10:32:19 which manifest hocus pocus do you use to force landscape mode? Ive googled, there are numerous "answers" none currently working despite a project clean and rebuild. Setting it programmatically using setRequestedOrientation in onCreate works but sucks. Oct 13 10:33:10 How can I get data out of an ArrayList ? Oct 13 10:33:45 Are there any good REST client libraries out there? Oct 13 10:33:58 wait, retrofit, duh >_> Oct 13 10:34:02 rgr, android:orientation="landscape"? Oct 13 10:34:13 erm Oct 13 10:34:17 it's actually screenOrientation Oct 13 10:34:18 whatever Oct 13 10:34:36 it's per activity Oct 13 10:34:51 I have that. Oct 13 10:35:20 in yup Oct 13 10:37:24 and it's not in landscape? Oct 13 10:37:25 -.- Oct 13 10:37:32 can you provide a test case Oct 13 10:39:49 test case? no. It's as simple as stuck in portrait. Which is funny because I used to have landscape locked before I started playing with different fragment layouts based on orientation. it'll be some crap lying around somewhere no doubt. clean and clean again. Oct 13 10:40:20 works. Oct 13 10:42:11 well I've never had that problem -.- Oct 13 10:46:31 I have gradle error that version 1.10 ir required, but current version is 2.0. It says I should change distributionUrl in "project/gradle/wrapper/gradle-wrapper.properties", I don't have cuch dir in my project. Oct 13 10:53:12 You're not expected to have every problem that others have :) Anyway. another clean and rebuild and it worked. go figure. Oct 13 10:55:52 AS sometimes opens wrong AndroidManifest.xml file which elads to these bugs :P Oct 13 11:25:56 How do I animate an ImageView's size in absolute values, width/height? ScaleAnimation uses scale factors Oct 13 11:27:22 I display a PNG image at 100dp x 100dp. The actual PNG resource is 100 pixels by 100 pixels. But on some display sizes and densities it comes out as blurry. Why? Oct 13 11:28:24 d0de, 100dp is 100px in mdpi displays Oct 13 11:28:38 it's 200px in xhdpi displays Oct 13 11:28:53 ah, so I need to scale it to the physical pixels it will be displayed at, not the dp rez? Oct 13 11:30:02 didn't quite understand that... Oct 13 11:30:03 Oh fuck, DEX method limit :'( Oct 13 11:30:07 Anyone know how to replace a fragment inflated in a FragmentPagerAdapter Oct 13 11:30:30 d0de, but if you use px in xml it won't be scaled Oct 13 11:30:40 Zharf, as in, in each drawable folder I should put a PNG resource that has the same dimensions as the size in physical pixels it will be displayed at for the devices in that layout category? Oct 13 11:30:54 d0de, yes Oct 13 11:30:58 yes Oct 13 11:31:14 ahh, I had misunderstood how to use device-independent pixels Oct 13 11:31:16 put 100x100 image in drawable-mdpi, 150x150 in drawable-hdpi, 200x200 in drawable-xhdpi and 300x300 in drawable-xxhdpi Oct 13 11:31:21 thanks, that clears things up Oct 13 11:31:33 and it's just 0.75, 1, 1.5, 2 for the scaling ratios? Oct 13 11:31:48 1, 1.5, 2, 3 Oct 13 11:31:48 1, 1.5, 2, 3 is used nowadays Oct 13 11:31:55 ldpi (0.5) is deprecated Oct 13 11:32:20 s/0.5/0.75/ Oct 13 11:32:39 well tat. Oct 13 11:32:41 this is one of the things I kind of dislike in android... I hate how big apks get because of it Oct 13 11:33:34 mdpi is the new ldpi Oct 13 11:34:15 Zharf: deal with it... apps are getting bigger networks are getting faster Oct 13 11:34:19 ok great, thanks. I resize resources for mdpi, hdpi, xhdpi and xxhdpi? Oct 13 11:34:50 DarkSlay3r, my internal storage isn't getting bigger Oct 13 11:35:20 but then I haven't seen a new mobile app in years that wasn't just utter crap anyway ;) Oct 13 11:35:22 It will pretty soon Oct 13 11:36:03 Anyone know how to replace a fragment inside a FragmentPagerAdapter Oct 13 11:36:05 ? Oct 13 11:36:49 You need to implement your own PagerAdapter that allows replacing fragments Oct 13 11:37:16 DarkSlay3r, what magic would make my phone's internal storage bigger? Oct 13 11:37:45 Zharf: Magic green paper Oct 13 11:37:57 Thanks SimonVT Oct 13 11:38:00 ... -.- Oct 13 11:38:02 i thought i missed something Oct 13 11:38:06 you're not making any sense Oct 13 11:38:19 Zharf: Over time storage size should increase. Oct 13 11:38:33 flan3002, storage is constant in a phone -.- Oct 13 11:38:46 Zharf: Not saying that I like the duplication of resources and native code. Oct 13 11:39:39 Zharf: Sure it will. Buy a phone in 2042 and, if the storage size has not increased, I'll buy you a coffee. Oct 13 11:39:50 unfortunately no one is making phones I would want to use anymore, so I'm stuck with my xperia mini pro until it breaks Oct 13 11:39:59 then I'll go do something else Oct 13 11:40:33 flan3002, I know what you meant but you chose to ignore the possibility of me not getting a new phone Oct 13 11:40:34 Zharf: Well, there are lots of ways to reduce this duplication, but they all have tradeoffs. Oct 13 11:40:50 sure, but most people don't bother Oct 13 11:41:07 I did split my own applications into multiple apks Oct 13 11:41:23 I didn't talk about you. I just said that it's very likely that average storage size in phones will increase over the next years. Oct 13 11:41:46 no you said storage size increases, not average ;) Oct 13 11:41:54 Zharf: Things aren't perfect, but it's hard to make really good apps that are less than 10mb these days Oct 13 11:41:56 if I define a layout for xlarge but not for xxlarge, will xxlarge devices use the xlarge layout, or the default one? Oct 13 11:42:02 sure new phones have more storage, but there aren't any usable phones out there Oct 13 11:42:15 Zharf: the z3 shows promise Oct 13 11:42:27 Zharf: I didn't say what storage size will increase. Oct 13 11:42:28 hi Oct 13 11:42:45 flan3002, no, you didn't Oct 13 11:43:31 DarkSlay3r, no hardware keyboard, too big, useless Oct 13 11:43:55 you like physical keyboards? Oct 13 11:44:00 absolutely Oct 13 11:44:03 can't live without one Oct 13 11:44:14 on-screen keyboards are absolutely horrible to use Oct 13 11:44:15 the Blackberry passport is for you Oct 13 11:44:37 I would rather go back to my old-school nokia phone Oct 13 11:44:45 Well, do that then... Oct 13 11:45:57 I might if this mini pro breaks someday Oct 13 11:46:23 Old school nokias were nice Oct 13 11:46:28 Hi all Oct 13 11:46:40 i wonder if i can install cyanogen on them Oct 13 11:47:32 I have a lot of Fragments where I use something to close the keyboard when Fragment onPause is called. I want to make this work with a simple re-usable solution. what are my option? Oct 13 11:47:56 is a custom 'BaseFragment' the best option? Oct 13 11:48:01 possibly Oct 13 11:48:22 or implement something Oct 13 11:48:28 I frequently make my own basefragments Oct 13 11:51:33 ok, thanks Oct 13 12:01:35 What are you working on Estel :o Oct 13 12:11:52 Nothing especially complicated, but there are lots of huge dependencies that are being used for very little reason Oct 13 12:12:04 For example appcompat was included but used only for an abc_fade_in animation Oct 13 12:15:29 lol :x can always try switching to appcompat v7 if you're using v4, should cut down a bunch of methods Estel Oct 13 12:15:42 I created the animations and removed it Oct 13 12:15:53 Ah thats even better :D Oct 13 12:26:49 https://plus.google.com/+AndroidDevelopers/posts/eXfegungS64 Oct 13 12:27:12 http://i.imgur.com/aTTtlhU.png Oct 13 12:27:17 why doesn't it work? Oct 13 12:27:20 I can't compile Oct 13 12:28:54 Is it possible to save images on internal memory instead of external? Oct 13 12:29:08 storage* Oct 13 12:29:21 in your application's private internal storage, sure Oct 13 12:29:44 Ok, because when I send the uri to the camera activity it doesn't allow me to press the ok button after I took the photo Oct 13 12:30:09 It doesn't even close the activity or gives me any errors Oct 13 12:30:17 nothing simply happens when i press the ok button Oct 13 12:30:23 well that won't work because the camera doesn't have access to your application's *private* storage space Oct 13 12:30:28 Ah Oct 13 12:30:42 Mrdarknezz in future ask the direct question first too Oct 13 12:30:43 only your application process can write there Oct 13 12:30:45 saves time Oct 13 12:31:56 Zharf: That makes sense Oct 13 12:32:08 of course it dose Oct 13 12:32:10 does* Oct 13 12:34:16 Zharf: So is there any public directory on the internal storage that I could write to instead? Oct 13 12:34:28 Mrdarknezz why would you want to ? Oct 13 12:34:34 image data can be huge Oct 13 12:34:47 so that would not be the best idea in the world :) Oct 13 12:34:58 No, there's no public directory on internal storage Oct 13 12:35:00 StingRay_: because the external storage is unavailable Oct 13 12:35:23 Mrdarknezz what ?? what version of android ? Oct 13 12:36:49 StingRay_: http://developer.android.com/guide/topics/data/data-storage.html#filesExternal Oct 13 12:37:00 "External storage can become unavailable if the user mounts the external storage on a computer" Oct 13 12:37:19 erm, no I know what external storage is and if there is no MTP then yes... Oct 13 12:37:58 but you should just be able to test if there Oct 13 12:38:06 or rather if available Oct 13 12:38:25 would not put too much thought into a < 1% edge case Oct 13 12:38:47 I frequently remove my sdcard from my phone :p Oct 13 12:39:14 Well all of the test users devices has their external storage unavailable Oct 13 12:39:22 SimonVT, any way to disable the dimming when sliding (slidingDrawer obviously) Oct 13 12:40:09 Mrdarknezz I would not design for test users either… more for main stream users ;) Oct 13 12:40:29 StingRay_: We are running tests before we are launching the app Oct 13 12:40:55 deploying* Oct 13 12:40:58 yeah cool, but you alter a test environment to suit the needs of the app, not the other way Oct 13 12:41:11 or in every professional development I have been part of neways ;) Oct 13 12:41:21 Yeah I guess I'll have to check with the testers Oct 13 12:42:01 I would just disable photo taking if there's no external storage available Oct 13 12:43:39 StingRay_, my drawer lets you do that (setDrawOverlay iirc), dunno about SlidingDrawer Oct 13 12:44:04 no I mean yours :) Oct 13 12:45:03 SimonVT cool works, thanks, odd naming if you don't mind me saying :) Oct 13 12:45:26 Eh, probably :p Oct 13 12:45:31 setFadingContent Oct 13 12:45:34 :) Oct 13 12:45:39 Hello guys, I can't show a jpeg file because it uses CMYK color model instead of RGB. Is there an alternative lib that support jpeg with CMYK color model? Oct 13 12:46:21 But it doesn't necessarily fade out the content Oct 13 12:46:47 If the menu is behind the content, it fades the menu Oct 13 12:47:04 hmm, setFadeOnSlide Oct 13 12:47:27 setSlidingFade Oct 13 12:47:52 ugh, neways :) works so dont care…just seemed not a logical name Oct 13 12:48:52 I'm unlikely to do any more work on it anyway Oct 13 12:49:06 heyho! got a problem with webviews. i want to add a javascript interface into native android webview. got internet permission, @javascriptinterface over a public method, i Oct 13 12:49:15 cmyk jpeg sounds weird Oct 13 12:49:25 SimonVT in favour of using native or just cause you have no more ideas ? :) Oct 13 12:49:27 '.. javascript is enabled, but object is null... Oct 13 12:49:32 no you dont alter the test environment to suit the needs of the app!! You alter the test env to meet the nedes of your target audience. A huge difference. Oct 13 12:49:46 Number5, http://stackoverflow.com/a/15897011/857853 Oct 13 12:49:54 No more ideas Oct 13 12:49:56 And it works Oct 13 12:50:13 rgr, well no, app design is based towards a demographic so…what I said is legal Oct 13 12:50:23 I don't have a need for more features Oct 13 12:51:00 Zharf, thnx man! I hope it works for me :) Oct 13 12:53:25 SimonVT well, start and end fade color would be nice…but yeah…pretty complete Oct 13 12:54:13 It would be for performance reasons if I were to start developing it again Oct 13 12:54:35 For everyone else, it's pretty much patches welcome Oct 13 12:55:53 nicotine patches? Oct 13 12:56:27 I get an ClassNotFound exception (Class not found when unmarshalling:) for an intent I make which contains custom a parcelble. when i create the intent I do intent.setExtrasClassLoader(context.getClassLoader());. Any idea what I’m missing? Oct 13 12:58:39 hi Oct 13 12:58:50 can someone explain me the use of this method http://developer.android.com/reference/android/support/v4/view/PagerAdapter.html#isViewFromObject(android.view.View, java.lang.Object) ? Oct 13 12:59:50 instantiateItem returns an Object.. Is the view from that object? Oct 13 13:01:07 umm the object returned there (in my case from inflating a layout file) is the same as the view passed to this method, so what does view "from that" object would imply ? Oct 13 13:01:25 The object returned can be any object Oct 13 13:01:32 e.g. a fragment Oct 13 13:01:53 ViewPager has no knowledge about what type of object is returned, so it's asking you if the View is associated with the Object Oct 13 13:05:24 SimonVT: um ok, so lets say if I return strings as object from instantiateItem, what sort of comparison will i do in this method based on the view object I have? Oct 13 13:05:59 also why does the viewpager need to know about the association anyway, i wonder Oct 13 13:06:08 You'd need a way to figure out if View a is associated with String a Oct 13 13:06:18 With a Fragmen it's easy, just compare the view with Fragment#getView Oct 13 13:06:40 For when the dataset changes Oct 13 13:07:16 So it doesn't unnecessarily destroy views Oct 13 13:07:36 hm, i wonder how objects of types like View are compared Oct 13 13:07:52 is there a method in the class that converts the object to some value for comparison Oct 13 13:08:01 .toString() or some such method Oct 13 13:08:14 == compares instances Oct 13 13:09:21 ya i wonder how do comparison on instances work, i guess very basic question. Oct 13 13:13:30 shmoon: it's just comparing the pointers - the memory address. Oct 13 13:15:20 https://youtrack.jetbrains.com/issueMobile/SCL-6273 Oct 13 13:15:21 nice Oct 13 13:15:50 ah yeah thanks Oct 13 13:18:50 Hi, how do I make the text appearance larger than ?android:attr/textAppearanceLarge ? Oct 13 13:19:00 for a TextView. Oct 13 13:19:59 android:textSize Oct 13 13:22:44 left out any details there SimonVT ? Oct 13 13:22:54 But thanks for the tip... Oct 13 13:22:59 :D Oct 13 13:23:04 Not at all Oct 13 13:23:20 Unknown0BC: android:textSize="999999999999999" Oct 13 13:23:26 Unknown0BC: that would be larger Oct 13 13:23:31 You forgot sp Oct 13 13:23:34 :0 Oct 13 13:24:43 I see this: ?android:attr/textSize Oct 13 13:25:32 It's a view attribute.. Oct 13 13:25:35 Set it on the view Oct 13 13:28:22 Oh :) Oct 13 13:28:24 got it. Oct 13 13:28:26 :D Oct 13 13:30:42 for Animation (ScaleAnimation), how can I set this pivotX value programatically? android: pivotX="50%p" Oct 13 13:30:50 the constructor takes float as an argument Oct 13 13:31:22 probably .5? Oct 13 13:31:34 documentation is quite clear: The X coordinate of the point about which the object is being scaled, specified as an absolute number where 0 is the left edge. (This point remains fixed while the object changes size.) Oct 13 13:32:03 you even have another constructor Oct 13 13:32:04 The X coordinate of the point about which the object is being scaled, specified as an absolute number where 0 is the left edge. (This point remains fixed while the object changes size.) This value can either be an absolute number if pivotXType is ABSOLUTE, or a percentage (where 1.0 is 100%) otherwise. Oct 13 13:32:44 Mavrik: thanks, now I see the second constructor which allows to specify the type Oct 13 13:42:31 Anyone konws where i could find 1440p bootanims? Oct 13 13:43:19 www.1440bootanimations.com Oct 13 13:44:15 hey guys. i have an app with several background services. how would i go about doing the most verbose power profiling? Oct 13 13:45:22 evil asfdd :( Oct 13 13:49:44 hi, I just installed the ADT and sdks and stuff, I made an android project, I did not modify it yet…. I clicked on the run icon, the emulator starts up, but eventually after a while it appears with a window that has a title that says “disconnected” and a cloud icon, any idea what is wrong? Oct 13 13:57:03 how is the most appropriate layout for a given device chosen by Android? Say I specify one layout for "large" screens and a different layout for "xhdpi" screens. If a device is both large and xhdpi, which layout is chosen? Oct 13 13:57:50 https://developer.android.com/guide/topics/resources/providing-resources.html Oct 13 13:58:29 Matched in the order they're listed in the table Oct 13 13:58:33 d0de, "large" is deprecated, you should stick to using "xhdpi" and stuff Oct 13 13:59:31 I'm assuming it was an example, noone would use dpi as layout qualifier Oct 13 14:00:52 Syzygy__, SimonVT, thanks Oct 13 14:01:05 yes, just a hastily chosen example Oct 13 14:01:57 hi, is there a way to get the current gps location without a listener? Oct 13 14:02:32 Nope Oct 13 14:02:40 Hi, I'm quite a newbie in android development and have an annoying newbie-problem I'm not able to get rid of:I have imported a project in android studios and I get this Gradle error message 'Confiuration with name 'default' not found.' Do I have to make this configuration (how?) or should it be part of the project? Any hints? Oct 13 14:03:08 This would be the project btw: https://github.com/owncloud/News-Android-App Oct 13 14:06:16 hmmm, it seems it runs on an actual android device but not on the android simulator, I would rather test my app in the simulator, I guess something musty be wrong witht he was I set up the sim Oct 13 14:12:51 amigojapan: how does it not run? Oct 13 14:13:33 mikedg: the emulator appears, then no clear error appears, the emulator says “disconnected” at the top, with a cloud icon Oct 13 14:14:00 that sounds like it has nothing to do with your app Oct 13 14:14:06 did you try rebooting? Oct 13 14:14:08 what OS? Oct 13 14:15:53 mikedg: rebooting the emulator? I tried closing it and running again… I dont know how ot reboot it Oct 13 14:16:22 rebooting your computer Oct 13 14:16:36 ah ok mikedg , I will try that Oct 13 14:16:48 mikedg: Mac OS Oct 13 14:54:48 I had an Eclipse android project and it was being used between me and a partner on github. I opened up the project in Android Studio and was able to make everything run with Android Studio. I tried to push my changes to git, but theres no changes apparently. Ideas? Oct 13 14:55:45 more like a git issue than android dev Oct 13 14:56:10 sounds like you didn't commit your changes Oct 13 14:56:52 Theres no changes though. Which I'm confused why changing an android project from Eclipse to AS is saying no changes. Oct 13 14:57:12 I understand how git works, I'm more confused about the Android project structure changing. Oct 13 14:58:10 Howdy, people! Oct 13 15:00:39 Can anyone confirm if there are actual android project changes when going from an eclipse project to AS? Oct 13 15:01:30 Uh.. AS and eclipse have different project files they create Oct 13 15:03:02 Yep, the project structure is completely different Oct 13 15:03:16 there is indeed a learning curve when you switch to AS Oct 13 15:03:17 https://dpaste.de/VsB8# Oct 13 15:03:17 hi, anyone can help? Oct 13 15:03:18 i want the know how to let onCreateLoader return the cursorloader i wanted Oct 13 15:13:37 seeing a weird issue where there's no listview draw after notifydatasetchanged on the adapter. any of y'all see anything like it before Oct 13 15:14:12 I open a file from my finder and it displays different code than the file being open in Android Studio. What gives? I've tried restarting AS also. Any ideas? Oct 13 15:14:26 funktronic only when there is no data in the backing object/s Oct 13 15:15:09 funktronic but thats not really a problem, just totally expected and logical Oct 13 15:18:42 ah i think i found the bug Oct 13 15:31:07 Just in case somebody will have the same problem as I: The Gradle error message "Configuration with name 'default' not found." was a missing dependence (at least in my case). Oct 13 15:31:27 innerand, some times insufficient permissions also cause this Oct 13 15:31:34 funktronic, Awesome :D Oct 13 15:32:04 eghdk, are you sure Studio is referring to the same file, or at least the same version of the file (any CVS being used? ) Oct 13 15:32:59 Damnit. I imported from my git directory, and I didn't notice android studio moved it into a different directory. Oct 13 15:33:04 Hence being untracked. Oct 13 15:34:22 :) Oct 13 15:35:16 How do I open a project from a different directory in Android Studio thats not the AndroidStudioProjects directory? Oct 13 15:35:57 erm, file>open ? Oct 13 15:49:29 I think you'll have to import the project? Oct 13 15:49:32 I don't have an exact idea Oct 13 15:49:50 I am currently trying please Mister Eclipse to open the Java editor correctly Oct 13 15:50:04 hi, for public void onLoadFinished(Loader loader, Cursor data), what is the loader properties? Oct 13 16:02:00 semanty: http://developer.android.com/guide/components/loaders.html Oct 13 16:03:18 Mrdarknezz: thanks, i found there is no getUri method for loader. could you check https://dpaste.de/vtaP and advise what way i can get the URI Oct 13 16:19:57 any one can help https://dpaste.de/vtaP for judge which adapter? Oct 13 16:21:45 which file in an android project may be executable. I want to send my code to a friend but gmail is telling me that the zip file is blocked for security reasons. because there may be an executable inside of the file. Which file is this usually in android apps? Oct 13 16:22:32 semanty someone may have slipped me some drugs, but your questions make no sense to me at all Oct 13 16:22:38 * StingRay_ goes for more coffee Oct 13 16:23:14 in_deep_thought: Why can't you just use search to find .exe files Oct 13 16:23:19 StingRay_: could you tell any thing about it? Oct 13 16:23:43 semanty I just said, I have absolutely no idea wtf you are asking lol Oct 13 16:24:37 Ironthighs: I can find something called java.exe. But I didn’t make it. is that something generated inside of android projects? Oct 13 16:24:49 StingRay_: i have two tables, i want to decide the cursor loader for the specific loader Oct 13 16:25:16 inside of gradlew.bat Oct 13 16:25:20 Oh, you're gonna want to delete that Oct 13 16:25:26 (just kidding) Oct 13 16:25:39 Don't delete that Oct 13 16:25:56 so I need to send gradle.bat as well for him to be able to use the project? Oct 13 16:26:02 gradlew.bat Oct 13 16:26:20 did you zip the android project? Oct 13 16:26:25 yeah Oct 13 16:26:37 should I just zip something inside of it? Oct 13 16:26:41 just change the extension to something like .yayalorde Oct 13 16:26:55 and have your friend change it back to zip Oct 13 16:27:31 hmm interesting Oct 13 16:28:38 ah gmail still sees its a zip file though Oct 13 16:28:54 what is the file name? Oct 13 16:29:00 with extension Oct 13 16:29:16 its testa.change_to_zip.zip Oct 13 16:29:23 ... Oct 13 16:29:25 or thats what gmail thinks it is Oct 13 16:29:32 its really just testa.change_to_zip Oct 13 16:29:37 No, it's probably not Oct 13 16:29:44 go to control panel Oct 13 16:29:54 finder Oct 13 16:30:00 erm Oct 13 16:30:09 view extensions Oct 13 16:30:25 I'm assuming that you just changed the file name Oct 13 16:30:33 yeah Oct 13 16:31:05 ok well it still sees it as a zip file. Oct 13 16:31:13 so thats probably the issue Oct 13 16:32:13 in_deep_thought Oct 13 16:32:21 is there an official way to make it not a zip file? but then my friend could still change it back and see it on his end? Oct 13 16:32:23 click on any empty space on ur desktop then Finder->preferences -> advanced check the show ext. box. Oct 13 16:33:06 Once you do that, look at your zip file name again. Oct 13 16:33:12 I bet it will have a .zip on the end Oct 13 16:33:25 yep you’re right Oct 13 16:33:27 ok Oct 13 16:33:29 so remove it Oct 13 16:33:34 then it should work Oct 13 16:33:47 not knowing how to use a computer > * Oct 13 16:34:12 idk how to use mac’s Oct 13 16:34:28 or windows or linux. fine ok Oct 13 16:35:41 * pfn comes to the conclusion that this resort is mediocre at best Oct 13 16:35:53 * Ironthighs doesn't give a shit Oct 13 16:36:10 stupid checkout line has barely moved in 30 minutes Oct 13 16:36:41 there are places that still make you check out? Oct 13 16:37:02 everywhere? Oct 13 16:37:02 all inclusive resorts all do Oct 13 16:37:06 Oh Oct 13 16:37:20 because they want their wrist bands back Oct 13 16:37:21 So you're not at a grocery store Oct 13 16:37:39 * StingRay_ walks away from #holidays to #android-dev Oct 13 16:37:45 oh fk, same place Oct 13 16:37:50 lol Oct 13 16:37:54 they don't want you mooching off their food and drinks after you've checked out Oct 13 16:38:38 as if you have any #android-dev going on here Oct 13 16:38:55 it's #helpthenoobwithcomputers hour Oct 13 16:38:55 anyone ever compared libGDX to andengine ? the sit is I'm going to be new to game programming, but from an Art TD sense I have 16 years in console dev… but freshy programmer… so hard to form an opinion Oct 13 16:38:56 He's right, StingRay_. We just helped someone with their file name Oct 13 16:39:46 so hard to form a coherent sentence Oct 13 16:42:11 Interesting, pvz2 won't launch for me in mx Oct 13 16:43:37 join #libgdx Oct 13 16:43:41 good idea Oct 13 16:44:05 in answer to my own question :) Oct 13 16:45:01 :o Oct 13 17:06:16 My scale animation seems to lag a bit Oct 13 17:06:24 :D Oct 13 17:07:21 yay Oct 13 17:07:32 no, it needs fixing Oct 13 17:08:00 Hi ! I have 2 activity, Main and Second. Main is the first activty, and Second is launched by Main. When I'm in "Second", if I press the "Return button", I don't have the same behaviour than is I use "onBackPressed();". ===> Back button make me return to Main, ===> onBackPressed() make me return to main, but redo the "OnCreate" of main Oct 13 17:08:07 any idea ? Oct 13 17:08:11 (i don't want "OnCreate" to be redone) Oct 13 17:15:26 How do you chain Tween Animations (View Animation) just with the properly set #startOffset()? Oct 13 17:15:51 did you not just answer in the question ? Oct 13 17:16:21 StingRay_: ? Oct 13 17:16:24 or are you asking "how to chain animations?" Oct 13 17:16:35 StingRay_: well, yes.. is that the right approach? Oct 13 17:16:40 Because it looks like my animation is lagging Oct 13 17:16:43 not really Oct 13 17:16:51 so? Oct 13 17:17:18 docs are your friend Oct 13 17:17:22 no way! Oct 13 17:17:25 so is the search http://developer.android.com/reference/android/view/animation/AnimationSet.html Oct 13 17:17:43 yes way… Oct 13 17:17:55 StingRay_: A AnimationSet in itself plays the animation together Oct 13 17:18:05 with chaining I mean execute them sequentially Oct 13 17:18:13 An AnimationSet* Oct 13 17:18:47 oh then anim listener maybe ? Oct 13 17:19:06 yes, that's probably what I need Oct 13 17:19:09 but using a set with offsets would be quite seamless I think (not that I ever have) Oct 13 17:19:21 but anim listener with onAnimationEnd use Oct 13 17:19:35 Use Animators, AnimatorSet lets you chain animations Oct 13 17:20:33 SimonVT: but AnimatorSet is for Property Animations (based on the Animator class, rather than the AnimatION class) Oct 13 17:20:45 jesus, you programmers and your utter horrid naming relevance … ught!!! Oct 13 17:20:53 Yes Oct 13 17:21:16 SimonVT: the API is perfect, but I am still confused, since Animation (tween animation) seems to be what I need :) Oct 13 17:22:40 * platzhirsch hammers Animation into Animators Oct 13 17:22:55 putting squares into circular holes Oct 13 17:25:27 platzhirsch thats why I thought animationSet with offsets Oct 13 17:25:45 since from the description is seems to pre-compse Oct 13 17:25:48 StingRay_: yeah, I mean maybe it's just about right and not the reason for my lags at all Oct 13 17:25:51 compose* Oct 13 17:25:59 maybe the problem are my eye-balls Oct 13 17:26:09 problems Oct 13 17:29:05 * platzhirsch scratches out his eye balls Oct 13 17:29:26 Not sure what Animation does that Animators can't Oct 13 17:29:40 ScaleAnimations Oct 13 17:29:59 You can do that with animators Oct 13 17:30:13 golly gosh, alright, then maybe Animators replaces Animation with API 11+ Oct 13 17:30:26 The Animator API is much better Oct 13 17:30:31 agreed Oct 13 17:48:50 Is there anything wrong with having a fragment self contain a navigation drawer? Oct 13 17:49:16 for example main activity only contains a framelayout and the fragment layout is a drawer layout? Oct 13 17:49:44 i'm getting some errors related to the drawer layout view not being a sliding drawer (linear layout) Oct 13 17:50:43 it works with the activity layout managing the navigation drawer, I just wanted to have the fragment self manage it's own navigation drawer Oct 13 17:54:22 hi porten_ Oct 13 17:54:32 JacobTabak: hey Oct 13 17:54:36 reading your Q Oct 13 17:55:18 what do you mean exactly by 'fragment self' Oct 13 17:55:32 Does anyone know what is it about and how I debug it? http://i.imgur.com/MVh1u7b.png Oct 13 17:55:50 icedp are you using acustom font? Oct 13 17:56:01 its klingon Oct 13 17:56:20 porten_ there's no issue with having a drawer layout in a fragment Oct 13 17:56:34 if you paste your layout and the stack trace maybe can give you some more insight Oct 13 17:56:50 JacobTabak: no, usual font. it appears after I load texture in 3d lib I use.. so maybe it has something to do with OpenGL. however the is nothing strange at all in the logcat Oct 13 17:57:19 odd, i got nothing for you Oct 13 17:58:32 how do you use square's burst testing library with robolectric? they both have their own test runners, right? Oct 13 17:58:36 JacobTabak: there's nothing wrong with this? Oct 13 17:58:37 http://pastebin.com/J1jzXNsH Oct 13 17:59:04 JacobTabak: you'd have to adapt the integration using the core to a custom runner Oct 13 17:59:12 so it's not trivial? Oct 13 17:59:19 depends on your definition of trivial Oct 13 17:59:24 ha Oct 13 17:59:30 well trivial means someone's done it before and i can copy/paste Oct 13 17:59:32 in this case Oct 13 17:59:43 just copy/paste the JUnit 4 runner and change the superclass Oct 13 17:59:59 thanks, I'll give it a shot Oct 13 18:00:01 see how far I get Oct 13 18:00:18 porten_ your layout is a bit messed up Oct 13 18:00:48 there's no point in having a layout with just a framelayout in it Oct 13 18:00:58 JacobTabak: make a burst-robolectric module and send a PR Oct 13 18:01:09 http://imgur.com/t9HqaFf Oct 13 18:01:21 last nap on the beach Oct 13 18:02:02 porten_ your linearlayout has no layout_height? Oct 13 18:02:30 pfn underexposed, what camera ? :D Oct 13 18:03:06 Why did i never use Android Annotations before? :/ Oct 13 18:03:14 i want some coconuts :( Oct 13 18:03:27 Estel the allure of the dingleberry Oct 13 18:03:44 JacobTabak: it does, sorry i'm copy/pasting snippets Oct 13 18:04:00 mikedg: something, something, Cocoapods Oct 13 18:04:00 Estel i'm in that boat as well Oct 13 18:04:15 hehe Oct 13 18:04:25 but AA was good at the time, there are just better tools now Oct 13 18:04:27 android annotations is so fucking overboard Oct 13 18:04:28 that are more precise Oct 13 18:05:01 AA is like the sledgehammer when you need a tweezer, screwdriver, and file Oct 13 18:05:18 AA is like a liquidy shit Oct 13 18:05:25 when you need a bagel Oct 13 18:05:50 JacobTabak: and the framelayout inside the fragment has some other views that fill up the entire screen Oct 13 18:09:04 in case anyone was wondering at my text glitches OpenGL question above.. disabling hardware acceleration for the activity makes the problem go away Oct 13 18:09:22 icedp good to know Oct 13 18:10:07 mikedg: i thought you said "liquidity shit" which sounds so much cooler Oct 13 18:10:17 thats what i meant Oct 13 18:10:43 i always meant the thing that sounds cooler Oct 13 18:13:35 JakeWharton: bleh, i'm such a noob, i was using android:gravity instead of layout_gravity Oct 13 18:13:48 JakeWharton: sorry that wasn't for you Oct 13 18:13:56 JacobTabak: bleh, i'm such a noob, i was using android:gravity instead of layout_gravity Oct 13 18:14:08 oh yeah i missed that Oct 13 18:14:10 nice catch Oct 13 18:17:01 wow, so our 2.3 percentage is down from around ~8 percent in the middle of the year, to less than 3 percent last week Oct 13 18:18:37 i just hope google put as much, or more effort into QA than philosophizing about animations and material Oct 13 18:19:30 Mavrik new sdk update, maybe that fixes your ndk stuff Oct 13 18:20:30 I don't Oct 13 18:20:49 I hope the 99% code path is solid and beautiful Oct 13 18:21:03 and the edge cases can always be addressed later Oct 13 18:21:56 well, QA likely does capture all the issues you imagine are important, they're just prioritized into nothingness Oct 13 18:40:13 i don't think QA catches much, then again you can't test quality into a product - so if QA got crap, its not going to be polished. Oct 13 18:40:21 well, hopefully they won't forget december again Oct 13 18:43:15 maybe bluetooth low energy will start working better and i can say minSdk=20 Oct 13 18:46:11 what the f... Oct 13 18:46:18 I was in #android the whole day Oct 13 18:46:23 I thought I was in #android-dev Oct 13 18:46:35 god damn sidebar Oct 13 18:47:03 and I'm watching the conversation wondering what are they on today! Oct 13 19:01:04 Hey!! Oct 13 19:01:29 So I defined a class App extends android.app.Application Oct 13 19:02:07 but I'm not able to obtain it using getApplication() in one of my another class's methods! Oct 13 19:02:18 Why? Oct 13 19:04:47 where are you calling getApplication from? Oct 13 19:06:22 hey guys - im almost done with my android app, but the layout for 7 inch tablets is not. Oct 13 19:06:27 how would i exclude those ? Oct 13 19:06:31 android:largeScreens="false", right ? Oct 13 19:07:48 JakeWharton from one of the methods inside a class! Oct 13 19:07:54 what class Oct 13 19:08:21 i am not a psychic here. pretend like i know nothing about your app... or don't pretend because i know nothing about your app Oct 13 19:08:58 ok Oct 13 19:09:00 sorry Oct 13 19:09:31 anyone who knows if android:largeScreens="false" would exclude 7 inch tablets ? Oct 13 19:09:38 from a different class other than the said App Oct 13 19:09:50 just tried on handheld devices with larger screens, and it can install on those Oct 13 19:09:52 actually there are a lot of classes in my app Oct 13 19:10:03 start a school Oct 13 19:10:19 it's working in some classes' methods and not from others' Oct 13 19:11:25 this is great, i should frame it Oct 13 19:11:28 "Basically, no one seems to grasp that when stuff that's fundamental is broken, what you get is a combinatorial explosion of bullshit." Oct 13 19:12:17 have to add liquidy Oct 13 19:13:04 that's good Oct 13 19:13:12 but too obvious Oct 13 19:13:28 its from a blog talking about "worse is better" Oct 13 19:13:41 basically, no one seems to grap that some stuff is fundamentally broken Oct 13 19:13:49 and so they consequently end up with the above quote Oct 13 19:14:20 cause if you point it out, of course they will say that adding more fundamentally broken stuff will end up producing a combinatorial explosion of bullshit Oct 13 19:14:34 like this conversation Oct 13 19:14:37 lol jk Oct 13 19:45:40 is there any way to check whats the top activity (being displayed to user) without an activity manager that requires GET_TASKS Oct 13 19:46:14 its possible with local flags thou... but want to be sure thats the only methoid Oct 13 19:53:56 JakeWharton does BurstJUnit4 need to stay final? I hate to copy/paste all this code Oct 13 19:54:15 no, it just wasn't designed with inheritance in mind Oct 13 19:54:23 k Oct 13 19:54:25 hence final. final all the things by defaut Oct 13 19:55:05 i wish you could do package-final Oct 13 20:00:57 hmm, any good pattern of making stuff "package-and-sub-package private"? Oct 13 20:01:15 i wish you could do jar-level private (ala C#) Oct 13 20:01:32 Yes, that's pretty much what I'm wondering :) Oct 13 20:01:53 we just define an 'internal' package where anything is fair game Oct 13 20:01:53 Basically "my library private" without exposing stuff to users that they could break and without making your code into a salat Oct 13 20:02:07 mhm, that's what we do now as well Oct 13 20:05:57 I'm having trouble installing apps in the emulator... Any help would be appreciated. http://stackoverflow.com/questions/26347373/why-is-app-process-generating-an-segmentation-fault Oct 13 20:08:21 hm, i do internal package too. was hoping you guys had a better way to do that :P Mavrik Oct 13 20:08:29 does seem meh Oct 13 20:14:44 Hello everyone. I'm creating a wrapper for routes created with different Location objects. I store each location into the route (Stack) and I want to create a unique identifier for each route. I also want this unique identifier to have a meaning if it's looked, say, in a database. That's why I was thinking I could use System.currentTimeMillis() and change that to a string of the form YYYYMMDDXXXX, where XXXX go from 0001 to 9999 (I don't think anyb Oct 13 20:14:50 ody would create 9999 routes per day, but just to make sure it's safe). I'm concerned with what would happen if I close the application and start it again, because I want to be able to save and load old routes. Any comments or suggestions? Oct 13 20:28:42 My app plays a bunch of audio streams at once. I've had reports of it stuttering really badly on two devices - the Xperia Z Ultra and the Nexus 5. I don't own either of these to test with. It works fine on much older and slower devices Oct 13 20:29:04 the only thing I can find in common is that both devices use the MSM8974 Snapdragon 800 Oct 13 20:29:25 is it conceivable that this could be the culprit? Or is it probably something else? Oct 13 20:36:43 is there a way to keep a edit an edittext while a listpopupwindow is active Oct 13 20:39:52 If my localmanifest.xml does not provide a "fetch" path does git assume the "name" is the path? Oct 13 20:43:12 hi. I decompiled an apk to eclipse project... and it's full of errors... can't recompile it. Oct 13 20:43:34 any way of fixing errors or is there any decompiler than can get good code Oct 13 20:43:57 just use your original code. Oct 13 20:44:21 ^ Oct 13 20:45:12 xenaxon: Decompiled code is obfuscated Oct 13 20:45:41 no, in this app it's not obfuscated Oct 13 20:46:03 but it has some decompilation problems I think Oct 13 20:46:06 misplaced tags/variables Oct 13 20:46:12 _L1 _L2 _L3 etc Oct 13 20:46:38 I just want to make a modification in the app and recompile... Oct 13 20:46:53 meh... Oct 13 20:47:05 just modify your original code xenaxon Oct 13 20:47:08 but it has thousands of errors. most of them are the same: _L1 unknown type Oct 13 20:47:21 Obviously he doesn't have the original code Oct 13 20:47:23 cause, obviously you're not using somebody else's app, right? Oct 13 20:47:23 I don't have the original, because I didn't write the app Oct 13 20:47:29 i doubt that it's even his app Oct 13 20:47:41 duh DarkSlay3r , and you're helping him... Oct 13 20:47:50 :)) Oct 13 20:47:52 i'm telling him you can Oct 13 20:47:54 xenaxon: This channel isn't for decompiling other peoples apps. Try and find another channel Oct 13 20:47:58 *can't do that Oct 13 20:48:15 what's wrong with decompiling other people's apps Oct 13 20:48:19 Also there really isn't a magical way of making decompiled code work except actually fixing it. Oct 13 20:48:20 It's a crime Oct 13 20:48:22 it's a free app after all Oct 13 20:48:24 :)) Oct 13 20:48:26 the FBI is looking for you Oct 13 20:48:39 even if it's free, it's still a crime Oct 13 20:48:55 and probably open source... but can't get in touch with the author... otherwise I would have asked him Oct 13 20:49:11 If it's open source you could probably find the source Oct 13 20:49:11 SimonVT: Do you have code that allows replacing fragments in a FragmentStatePager? Oct 13 20:49:19 And compile the source Oct 13 20:49:20 Good luck on your task, but please do not discuss it any further in this channel Oct 13 20:49:51 why? Oct 13 20:49:54 SimonVT Oct 13 20:50:20 Because I asked you nicely :) Oct 13 20:50:27 ^ Oct 13 20:50:27 I can tell you not so nicely Oct 13 20:50:29 it's not about you personally Oct 13 20:50:35 I'm asking you why not? Oct 13 20:50:37 objective reason Oct 13 20:50:44 xenaxon: You are asking a channel full of developers, how to steal another developer's work? Oct 13 20:50:50 Do you see the problem? Oct 13 20:50:52 because you're stealing code, and we don't approve Oct 13 20:50:59 Arghhh screw JavaME so much :( Oct 13 20:51:31 DarkSlay3r: Probably somewhere in my git history.. It's not that hard to do Oct 13 20:52:58 SimonVT: Praise be to those who share their code! Oct 13 20:53:16 xenaxon: most people here make a living from the code they write and won't want to help you do something that the original author of your app wouldn't be happy with. Oct 13 20:54:37 Estel: I need an improvement to the app I actively use. Tryed contacting him... can't reach. by my ethics, that's not stealing. Oct 13 20:54:42 DarkSlay3r, from memory it's just a fragmenttransaction and implementing getItemPosition and isViewFromObject in your PagerAdapter Oct 13 20:54:54 but ok, rest asure I will find a way to do it on my own Oct 13 20:55:32 does anyone know if there is a irc channel for android rom source building? Oct 13 20:55:45 ax562, #android-root Oct 13 20:56:28 mikewallacedev: thanks Oct 13 20:56:35 xenaxon: you said it's open source, so find the source Oct 13 20:58:47 hey! How do you stop a service which was started by the android manifest? Oct 13 20:58:48 after boot Oct 13 20:59:45 Context#stopService or Service#stopSelf Oct 13 21:00:42 Intent stopServiceIntent = new Intent(MainActivity.this, AppCheckService.class); Oct 13 21:00:47 that didn’t seem to work for me Oct 13 21:01:10 when doing stopService(stopServiceIntent) Oct 13 21:01:32 it won't stop if it is binded too Oct 13 21:01:37 to? Oct 13 21:01:39 to. Oct 13 21:01:50 Why is your Service running indefinitely anyway Oct 13 21:01:59 Start it, have it do its work, then stop itself Oct 13 21:03:17 Anyway, how do you check that stopService doesn't work? Is Service#onDestroy not called? Oct 13 21:04:58 no it is called that is the weird thing. The service creates a dialog every 10 seconds and the dialog pops up even after service.onDestroy() is called Oct 13 21:06:02 You're not stopping your work when the Service is stopped Oct 13 21:06:07 That's your responsibility Oct 13 21:06:11 SimonVT: I am just not getting this right... Could you share the FragmentStatePager code Oct 13 21:06:31 I tried what you said but it's just not working for me Oct 13 21:06:33 so how do i stop the service work? Oct 13 21:06:37 AlexAbraham: call finish() inside the service when you're done ? Oct 13 21:06:52 I don't know how you implemented it.. If you've started a thread, you'd stop that Oct 13 21:06:53 etc.. Oct 13 21:07:07 DarkSlay3r: I'm not going to look through a few years git history for it :) Oct 13 21:07:24 Is it a public repo? Oct 13 21:07:30 Nope Oct 13 21:07:45 Dang... thanks anyway Oct 13 21:07:53 shmooz, no, that's for an Activity Oct 13 21:08:24 I don’t want it to stop until the user says so. The idea is that every 10 seconds the service gets the name of the current running app and logs it. That way people can see how much they use certain apps. Right now I have the service starting up at boot so it logs automatically. I would like to have an on-off switch inside my app that could start/stop logging Oct 13 21:09:09 yep, that's a job for stopService Oct 13 21:09:40 That you stop a Service doesn't mean that threads, etc, that it started disappear with it Oct 13 21:09:42 so i create a new intent and then run stopService but that didn’t seem to work. The dialog with the app name still shows up Oct 13 21:10:01 You're supposed to stop those things when the Service is destroyed Oct 13 21:10:03 not only that, if i start the service again i get 2 dialigs. stop and start i get 3, 4, etc Oct 13 21:10:25 so how do i do that? Oct 13 21:10:25 read what simonvt is saying Oct 13 21:10:34 stop you loops Oct 13 21:10:35 other than super.onDestroy() Oct 13 21:11:39 so right now I have a handler that calls a method every 10 seconds. Is there a way I can give that handler a condition that the service has to be running? Oct 13 21:12:10 That's the wrong way around Oct 13 21:12:14 stop the loop that is sending the handler msgs Oct 13 21:12:31 break; Oct 13 21:12:39 there is no loop Oct 13 21:12:45 wait a sec i will make a gist Oct 13 21:13:20 https://gist.github.com/anonymous/c589a1ef7ebdacfc8e91 Oct 13 21:13:39 AlexAbraham, from the docs : Oct 13 21:13:41 A service can be both started and have connections bound to it. In such a case, the system will keep the service running as long as either it is started or there are one or more connections to it with the Context.BIND_AUTO_CREATE flag. Once neither of these situations hold, the service's onDestroy() method is called and the service is effectively terminated. All cleanup (stopping threads, unregistering receivers) should be comp Oct 13 21:13:41 lete upon returning from onDestroy() Oct 13 21:14:19 your handler is stuck recursive Oct 13 21:14:27 What would be the best container for data that I have to load/save and keep track of the time of when it was saved? I'm currently using a HashMap, but I'm thinking about an ArrayList. Any suggestions? Oct 13 21:14:28 You can use Handler#removeCallbacks to remove Runnables from the message queue Oct 13 21:15:02 recursive is a loop Oct 13 21:15:12 so i should just make the handler a field and run that method inside onDestroy Oct 13 21:17:42 i also make the runable a field? Oct 13 21:21:30 that didn’t work for me. I made my handler and runnable public, in onCreate i run handler.postDelayed(runable, 10000), and in onDestroy i run handler.removeCallbacks(runable) Oct 13 21:24:35 That works for everyone else Oct 13 21:33:18 I think i got it working Oct 13 21:34:12 i set a condition for my runnable “if (running)”. running is a field that is set to true in onCreate and false in onDestroy Oct 13 21:39:35 saved by another custom boolean Oct 13 21:41:47 :D Oct 13 21:45:43 if (crash) then dont(); Oct 13 21:45:50 I fix it!! Oct 13 21:46:30 MikeWallaceDev: What you're explaining is try { } catch (Exception e) { } Oct 13 21:46:44 On Error Resume Next Oct 13 21:47:04 Yeah, just surround everything in the try block Oct 13 21:47:39 in = with* Oct 13 21:47:51 and register a global exception handler Oct 13 22:03:06 Is setting bg thread to lower priority on multicore phones important? Oct 13 22:04:32 Anyone seen this library? Oct 13 22:04:32 https://github.com/path/android-priority-jobqueue Oct 13 22:05:02 guess depends on how aggressive you need your thread work to be prioritized Oct 13 22:06:53 i have several "intense" tasks Oct 13 22:07:01 reading mediastore/contactcontract etc Oct 13 22:07:19 they can take 30-60seconds Oct 13 22:08:14 but do you need to eat majority of ticks just todo your work, if not give your threads a normal or low priority Oct 13 22:08:39 yeah Oct 13 22:29:56 Hi, does anyone have experience with deploying libraries to maven central through sonatype? Oct 13 22:30:16 how is that android related? Oct 13 22:30:23 I've done it before, although I don't remember too much about the process, other than that it was rather painful :) Oct 13 22:31:12 bankai_au I've developed an Android open source library that I'm deploying Oct 13 22:31:23 JesusFreke, I very much agree about the pain Oct 13 22:31:48 I deployed a snapshot version of the library first - didn't realize that release version must come first. Oct 13 22:32:03 Yeah, I didn't play with the snapshots at all Oct 13 22:32:06 The snapshot version was online in about 10 seconds, by it's been 20 minutes now and I still don't see the release version Oct 13 22:32:17 Just wondering if anyone had an estimate on how long it is supposed to take Oct 13 22:32:29 Few hours Oct 13 22:32:55 yeah, isn't there like some approval that needs to happen for the first release push or something? Oct 13 22:32:56 Ah ok, so I guess I did it right then! Oct 13 22:33:06 I can't recall Oct 13 22:33:07 Well there's time for approval, but it should show up in the nexus listing Oct 13 22:33:27 I can see the snapshot no problem, so I'd imagine that I should be able to see the release too Oct 13 22:33:53 yeah, I think the releases are handled differently. Not sure that would be a safe assumption :) Oct 13 22:34:02 I think the only difference is that snapshots have the version name as 1.0.0-SNAPSHOT instead of just 1.0.0 Oct 13 22:34:05 Snapshots are handled by sonatype themselves Oct 13 22:34:10 so all I changed was the version name Oct 13 22:34:25 Releases are synced with central every so often Oct 13 22:34:32 my app looks like its compatible from android 1.4 but my api use is min=14... do i have to do something? Oct 13 22:35:26 Thanks for your advice, guess I can stop worrying about it Oct 13 22:42:42 If i were using an singleton in the application class, and i have some cleanup/release todo, when should i call that? Oct 13 22:49:46 hey guys Oct 13 22:49:51 i have some authentication questions Oct 13 22:50:24 what’s the right way to implement login such that i want the user to login to the mobile app using their facebook account, but at the same time, this login is also detected/authenticated against a back-end server Oct 13 23:50:54 Hi guys Oct 13 23:51:34 I have a question regarding Fragments. I dont get when to use it. I mean can I use the fragments everytime I make an app? Oct 13 23:51:57 http://developer.android.com/training/basics/fragments/index.html Oct 13 23:51:58 I know why it is good for. but is it prefered to make fragments ? Oct 13 23:52:15 bankai_au, yes I know. how its done. Oct 13 23:52:39 im so stupid. just 1 sec after i put my question here i realise that I already know the answer Oct 13 23:52:39 like anything, use them where they are needed Oct 13 23:52:45 not the first time it happens Oct 14 00:02:56 "E/JHEAD (20359): can't open 'file:///storage/emulated/0/knapps_apps.reduce/tmp.jpg'" Oct 14 00:04:43 when sharing a file via intent. passed URI. I made that path using Environment.getExternalStorageDirectory().getAbsolutePath() Oct 14 00:09:02 but is I want my app to be used both in phones and tablett. does Android knows it self how to do that? I mean i should have both methods? Oct 14 00:09:36 I have a problem, bindService() reports I've successfully bound a service, but the service, instance is null... Oct 14 00:09:38 see: http://paste.fedoraproject.org/141623/24511214 for summary details which I think probably captures enough. Help solving it would be greatly appreciated. Oct 14 00:12:56 Does anyone know when you make new packages in the same project? Oct 14 00:15:35 nivag, binding is done async, so you wouldnt check your instance of immediatley after calling bindservice Oct 14 00:16:32 your probably finish()ing your activity before it can bind Oct 14 00:16:49 whatitis-: Thanks, I thought it must be something 'obvious'! :-) What should I be doing then? Oct 14 00:17:36 in your onServiceConnected after getting your service make a call to whatever to notify success Oct 14 00:21:05 some ppl have an activty scoped boolean they set for when bound. there are a few ways to keep state. just remember to unbind whenever not needed, or itll leak, maybe crash Oct 14 00:21:11 #web-dev Oct 14 00:26:13 whatitis-: Could I bind it earlier, I plan to have it available for the life of the app, as it will eventually handle all my specialized logging? I want to be able to log the various onXXX invocations, and other things. So when my user is testing it I can see what they are doing & get a better handle on any problems that may occur. Oct 14 00:27:50 whatitis-: or can I wait in some way until the binding is complete before continuing? Oct 14 00:30:38 whatitis-: The app will run on an Android table dedicated to one task (recording eyesight tests) and is likely only need of the order of 10MB, while the device has 32GB! Oct 14 00:35:08 hello, i have a question if anyone is free Oct 14 00:36:29 save yourself and everyone else time, by just asking your question, instead of asking to ask Oct 14 00:36:47 Nivag you can do all that with google analytics sdk Oct 14 00:36:49 poney81: best ask the question & then see if anyone has the time & interest to answer it! :-) Oct 14 00:37:30 yes, my bad. Oct 14 00:37:57 is there any way to extract the boot.img from an android device other than with romdump? Oct 14 00:38:23 my device does not have a proc/mtd, so i cannot use romdump Oct 14 00:39:19 my goal is my modify the init.rc of my odroid board Oct 14 00:39:24 poney81: wrong channel -- try #android-root or something Oct 14 00:39:58 ok, will do Oct 14 00:42:11 does this make any sense at all? http://cl.ly/image/433Q3I100S1K Oct 14 00:42:37 how is target instanceof RobolectricTestRunnerSelfTest false if target.getClass = RobolectricTestRunnerSelfTest? Oct 14 00:43:15 separate class loaders Oct 14 00:43:43 ughhh Oct 14 00:43:45 look at the hash codes Oct 14 00:43:52 this is not easy Oct 14 00:43:59 actually pretty impossible Oct 14 00:44:05 i might make an issue with everything i've figured out though Oct 14 00:44:44 depending on where you are you should be able to access the parallel universe for access to the executing classloader Oct 14 00:45:28 well I can get it to work for burst with changes to robolectric test runner Oct 14 00:45:34 but then it doesn't work for robolectric anymore Oct 14 00:45:50 and the method i need to change is like 200 lines and access several private methods/fields :\ Oct 14 00:46:00 accesses* Oct 14 00:47:44 but at least i understand why now Oct 14 00:48:35 yeah robolectric innars are non-trivial despite the seemingly simple nature of what it does Oct 14 00:49:16 the biggest and most obvious roadblock is that it pulls the bootstrapped class from the parallel universe by name, and the name of the burst methods aren't actual class names Oct 14 00:49:30 and also it only searches for methods with no parameters Oct 14 00:49:52 and this is right in RobolectricTestRunner's methodBlock method which is almost override Oct 14 00:50:42 almost impossible to* override Oct 14 00:54:57 Can I use the analytics sdk without leaking info to the internet? there are sever privacy & confidential considerations! Oct 14 00:55:12 seevere Oct 14 00:55:17 severe Oct 14 00:55:26 * Nivag can't spell! Oct 14 00:55:54 that depends on if you trust https and the analytics provider Oct 14 00:56:55 I simply want to start a servce and be able to use itb ASAP afterwards Oct 14 00:57:31 it is a specialized logging service Oct 14 00:59:48 what's the point of creating handlers? why not use one handler per thread? Oct 14 01:00:54 if you're only sending one time of message to each handler, the logic in that handler would be simpler Oct 14 01:01:10 rather than sending a ll sorts of messages to a handler and having a big switch statement Oct 14 01:05:56 I'm mostly talking posting runnables Oct 14 01:06:57 also, what's the point of posting to views? Oct 14 01:08:07 you seem confused about terms Oct 14 01:09:09 new Handler().post(...) Oct 14 01:09:28 Can anyone help me figure out how I'd use this on Android? http://www.cs.au.dk/~jakobt/libwkhtmltox_0.10.0_doc/ Oct 14 01:09:31 view.post() Oct 14 01:09:34 you arent posting to the view, you are executing a runnable on the thread it is associated withs queue Oct 14 01:11:01 yes. and the question is, why. why not getHandle().post()? Oct 14 01:11:21 huh? Oct 14 01:11:33 you arent asking any real question Oct 14 01:12:08 why different objects implement methods that do the same thing Oct 14 01:12:17 post your Runnable to any threads queue you want it ran on Oct 14 01:13:38 it'd make sense if posting to a view would put message right after that view's messages Oct 14 01:14:04 but every views post method does basically the same thing Oct 14 01:14:17 if I'm getting it right Oct 14 01:14:53 which they should, as its just running the runnable on their thread, which is ui thread Oct 14 01:16:53 ok. let's say you have a handler and a view Oct 14 01:17:18 it's actually hilarious how hard it is to work with multiple class loaders Oct 14 01:17:24 you want to post a runnable. you can do it using the handler and the view, no difference Oct 14 01:17:27 my mind is literally being blown Oct 14 01:18:19 just. why does handler implement that method, if there's already something that is implementing it? Oct 14 01:18:36 sq what if you want the work in the runnable todo network stuff? can you still post it to your view? Oct 14 01:19:47 whatitis-: you call something along getHandler() on the thread you want Oct 14 01:19:59 no need to create another object Oct 14 01:20:05 no, its on ui thread Oct 14 01:20:26 but you can't run network on ui Oct 14 01:20:38 thats what im saying Oct 14 01:20:50 I have an AutoCompleteTextView among other EditTexts, but the "next/prev" buttons on the soft keyboard stop working when it gets focus Oct 14 01:21:03 how'd posting to a handler help here Oct 14 01:21:22 you me another thread either way Oct 14 01:21:29 need* Oct 14 01:22:17 views run on ui, so using a runnable with them gets ran on ui. so inseperate thread I can do work, then post my results back to ui using a view if its in scope Oct 14 01:22:48 right Oct 14 01:22:51 sq, thats also why your questions dont make sense. you arent really asking anything Oct 14 01:23:37 ... Oct 14 01:23:56 not sure how else I can ask. Oct 14 01:24:09 ask it again Oct 14 01:25:06 oh, well, another angle Oct 14 01:25:17 it's like AutoCompleteTextView eats IME_ACTION_NEXT Oct 14 01:25:29 just ask again, maybe I misinterpreted it Oct 14 01:26:05 there's runOnUiThread. it doesn't require another object. but posting to ui thread requires one. why Oct 14 01:26:29 it requires activity context Oct 14 01:26:38 still Oct 14 01:26:46 still what? Oct 14 01:27:04 run runOnUiThread in an empty class Oct 14 01:27:24 it wont, so thats why you can call it in activity Oct 14 01:28:02 this.runOnUiThread, if this is activity Oct 14 01:28:24 Handers work with loopers. so when you create a handler, that's actually two objects needed. sorta Oct 14 01:28:25 I think I might have figured it out... Oct 14 01:28:49 AutoCompleteTextView let's ListPopupWindow consume DPAD keycodes Oct 14 01:29:06 there's even a comment "avoid passing the focus from the text view to the next component" Oct 14 01:29:09 sq, creating a handler on ui adds it to ui looper Oct 14 01:30:01 both post and runonuithread work with the looper. why can't I just call context.post or new Looper(). post Oct 14 01:31:06 why do I need an intermediary object in one case and not in another Oct 14 01:34:52 question still isnt making sense. can you post any example of what you are trying todo? or maybe someone else can help Oct 14 01:35:49 youll always need an object to have a runnable run in Oct 14 01:36:24 intermediary object means one extra object Oct 14 01:36:44 runnables are just that, code that gets executed/ran. where you run it is up to where you give it Oct 14 01:37:06 my explanation skills are exhausted :< Oct 14 01:37:17 show an example of where you think an extra object is not needed Oct 14 01:37:42 show something that you think isnt correct Oct 14 01:37:49 do you want to use a looper without a handler? Oct 14 01:37:58 this is a theoretical question Oct 14 01:38:09 with no basis? Oct 14 01:38:27 i don't think i was here when you asked the original one Oct 14 01:38:35 andreyrd: is that possible? Oct 14 01:38:36 im just saying link me to code you deem is unecessary, so I can understand Oct 14 01:41:19 andreyrd, it seems like he is wanting to post a runnable to an object, but he doesnt actually want the object. he just wants Runnable to run with no link to a thread Oct 14 01:41:37 sq, what's the question? Oct 14 01:41:49 is that correct? ^ Oct 14 01:42:06 no Oct 14 01:42:16 that's crazy. Oct 14 01:42:34 lol Oct 14 01:43:15 thats what I got out of it :) which yes sounded crazy Oct 14 01:46:46 ok this is really weird Oct 14 01:46:59 both next/prev give keycodes of KEYCODE_ENTER Oct 14 01:47:07 with no difference Oct 14 01:52:08 huh, adding actionNext to imeOptions fixed it...weird because it was already showing the next button Oct 14 01:52:41 that's crazy. Oct 14 01:53:02 anyway it works Oct 14 01:53:05 * andreyrd doesn't touch Oct 14 01:53:41 now test on all api from 1 to L. Oct 14 01:53:44 layout done, should i write the fragment code tonight or tomorrow morning?:P Oct 14 01:53:44 lol Oct 14 01:53:51 my minimum is 4.1 Oct 14 01:54:14 weakling! Oct 14 01:54:19 lol Oct 14 01:55:24 5 am here, you might as well write that fragment code today. Oct 14 01:55:55 7pm here Oct 14 01:55:56 fiine Oct 14 01:57:19 hey guys Oct 14 01:57:31 what’s the best way to send data to server side from an android app? JSON POST? Oct 14 02:00:06 I want to set my own default hotlist in the image I generate (so I can put it on all my devices without needing to manually make the change after flashing)... I can't figure out where to make the change(s) in the source tree. Can someone help me? Oct 14 02:08:02 Where is R.java in Android Studio? Oct 14 02:20:29 Everytime I open a different file in Android Studio is complains about R.java. Have no idea what to do next. Oct 14 02:24:17 you know what R.java is, right? Oct 14 02:29:17 what a damn pain is to simplify layout complexity using relative layouts **** ENDING LOGGING AT Tue Oct 14 02:59:59 2014