**** BEGIN LOGGING AT Sat May 23 02:59:58 2015 May 23 03:21:52 making android app is difficult? May 23 03:25:13 not if you know how... May 23 03:25:37 Leeds: what mean? May 23 03:25:37 Can someone help me w/ getting Card View to work? May 23 03:25:53 jackcom: do you know how to make an android app? May 23 03:26:05 not yet May 23 03:26:09 Leeds: May 23 03:26:12 I've tried creating a fresh project, specifying the dependencies, and adding a simple cardview element to the XML, but I'm not having any luck May 23 03:26:12 hexus0: Only time will tell. May 23 03:26:17 jackcom: do you know java? May 23 03:26:54 This is the error I'm getting: java.lang.NoClassDefFoundError: android/support/v7/cardview/R$styleable May 23 03:27:00 yes i know it Leeds May 23 03:27:54 jackcom: then start reading at http://d.android.com - it's not too hard if you already know java May 23 03:28:00 I've also tried manually adding the library as a dependency, but still no luck :/ May 23 03:28:07 hexus0: Which IDE, and how are you depending on the CardView library? May 23 03:28:13 android-studio May 23 03:28:20 I'm specifying it in the gradle file May 23 03:28:44 http://pastebin.com/xhx0ThPs May 23 03:28:47 http://www.vogella.com/tutorials/Android/article.html <—— how about it? Leeds May 23 03:29:19 TacticalJoke: I've also tried including Card View as a module and marking it as a dependency May 23 03:29:37 I've tried all the suggestions from the SO posts that I've found, I'm just not having any luck May 23 03:29:58 Do they have to be the same version (21, 22)? May 23 03:30:00 The dependencies are also showing up under the "External Libraries" tab in Android Studio as well, so they're being pulled in May 23 03:30:01 I'm not sure, but I'd guess so. May 23 03:30:05 I don't think so, I've tried that as well May 23 03:32:09 Just tried it again, still no luck May 23 03:36:08 This is the class that can't be found: android.support.v7.cardview.R May 23 03:36:20 Looking under the dependency source and its not there.. May 23 03:36:25 was it excluded at some point? May 23 03:39:27 I can serialize a POJO with gson (gson.toJson(pojo)), pass that as a String through intents, then retrieve the intent, unserialize it (Pojo pojo = pojoString.fromJson("name", pojo)), right? Because I'm trying this and it's not working... May 23 03:40:31 Hi all. I have a question about admob impressions. for the sake of curiosity, lets say I have an advertisement in my navigation drawer. Will it count as an impression even if navigation drawer doesn't get opened but the code is pre-loaded? May 23 03:40:56 Nevermind... I forgot to initialize my Gson object :) May 23 03:40:56 I buess what I'm asking is how does admob know when the ad is onscreen, or does it not matter as long as it's loaded May 23 03:41:39 hexus0: Might be a dumb question, but did you sync Gradle after making the version numbers equal? May 23 03:42:03 TacticalJoke: yup, I've been manually syncing it myself every time I make a change May 23 03:42:59 Could you try cleaning and rebuilding after making sure the version numbers are the same. May 23 03:43:41 I'll give that a shot right now, I just removed the deps from my hdd, I'm redownloading, then I'll sync/clean/build May 23 03:48:20 still no luck :/ May 23 03:50:07 hello all May 23 03:50:09 if i do java well, then making android app is easy? Leeds ? May 23 03:50:40 TacticalJoke: thanks for the help, I'm going to call it a night! May 23 03:52:25 is a custom class the only way to support TimePicker in a PreferencesActivity? May 23 03:53:49 hey QubeZ May 23 03:53:58 yo g00s_ -- long time, how have you been? May 23 03:54:09 still fighting the fight :) May 23 03:54:20 QubeZ how have you been ? how is the little one ? May 23 03:54:38 whats going on with todomapr May 23 03:54:44 I'm good, work has been busy... moved to another city (same state) then had a 2nd kid (2 boys now) May 23 03:54:56 really hectic, took some time away from code but getting back into it again May 23 03:55:00 jackcom: It's around 86.59 difficulty units. May 23 03:55:36 ehh... not doing much with To Do Mapr these days, it hasn't really gone anywhere besides generating maybe $50 in-app sales and maybe another $20 or so in ads. It was a fun app to write though. May 23 03:55:57 I also wrote BActive which is a Fitbit / Jawbone complement app. Writing a few new features into it now. May 23 03:56:03 g00s_: what have you been up to? May 23 03:56:44 Also been writing some Android app for my AR Drone, a follow-me type of app using compass, gyro and gps combo May 23 03:57:22 QubeZ mostly working with various BLE devices, having those connect to my app. May 23 03:57:41 ah, drones look fun May 23 03:58:04 ya drones are a lot of fun and I've been getting into computer vision a bit, challenging and has piqued my interest May 23 03:58:09 i just don't want to see the sky blotted about by yellow amazon ones May 23 03:58:15 haha May 23 03:58:26 thanks TacticalJoke May 23 03:58:29 or dropping your package half way down the street hehe May 23 03:58:42 jackcom: What are you thinking of making? May 23 03:59:10 i want make game. but i don’t know about android app. May 23 03:59:10 QubeZ did you see the tank drone ? May 23 03:59:16 TacticalJoke: May 23 03:59:20 g00s_: ya I saw that on G+ today May 23 03:59:48 What kind of game? May 23 04:00:08 defending game. you know defending game? May 23 04:00:14 Tower defence? May 23 04:00:18 jackcom: why not use Unity or something that is multi-platform? May 23 04:00:30 like Zombie VS Samurai 2 May 23 04:00:33 TacticalJoke: May 23 04:00:36 Right. May 23 04:00:53 I don't know much about Android games, but I have heard that the NDK isn't fun to use. May 23 04:00:56 QubeZ: what is it? i don’t know anrodi yet. May 23 04:01:13 jackcom: Unity3D is a multi-platform game engine like Unreal and a few others. May 23 04:01:16 what is NDK? May 23 04:01:30 The Native Development Kit. It's often used for Android games. May 23 04:01:31 you write the game once, deploy to iOS, Android, etc... May 23 04:01:50 QubeZ: i have no skill of android app. i must study about android. May 23 04:02:41 jackcom: but if you're wanting to write a game, maybe it doesn't make sense to narrow your scope just to Android May 23 04:03:51 then i make android app and ios app? May 23 04:03:55 QubeZ: May 23 04:04:07 yeah especially since "Android trails iOS in 30-day mobile game retention by 72%" May 23 04:04:52 i learn android with ‘http://www.vogella.com/tutorials/Android/article.html’, this tutorial is nice? May 23 04:05:00 nooo May 23 04:05:03 jackcom: you write the game once in Unity3D using C# (or Javascript) then you can deploy it to many platforms May 23 04:05:10 e.g. build and target many platforms May 23 04:05:36 QubeZ: i don’t knwo c# May 23 04:05:48 so when has not knowing something stopped anyone? May 23 04:05:55 you are capable of learning new things yes? May 23 04:06:12 i want make game with java. May 23 04:06:15 QubeZ: May 23 04:06:24 thats a really bad way to approach a problem May 23 04:06:34 why? QubeZ May 23 04:06:37 "I want to solve problems with just what I know" mentality May 23 04:06:51 oh May 23 04:06:53 instead of learning the technology to best suit the need or problem you're solving May 23 04:06:58 you know what I mean? May 23 04:07:04 yes May 23 04:07:12 but my laptop is mac. May 23 04:07:20 I'm not saying Unity3D is for you, that is just one suggestion. There are other game engines out there. May 23 04:07:26 mac is not good for using c# May 23 04:07:28 If you do want to use Java, making an Android non-game app is fine. :D May 23 04:07:32 jackcom: so is mine, I use Unity3D just fine (it comes with Mono Develop) May 23 04:07:49 jackcom: who says Mac is not good for C#? Who told you this? May 23 04:08:28 there is no visual studio May 23 04:08:32 in mac May 23 04:08:36 jackcom: forget that point... dont focus on C#. I'm saying, if you want to make a game then its good to explore your options for mult-platform game engines May 23 04:09:18 by the way, what is game engin? just like motor engin? May 23 04:09:38 i don’t know ‘engin’? May 23 04:09:51 jackcom: ever heard of Mono Develop? Again not my point but look into Unity3D and other game engines. You may be surprised... I couldn't fathom writing a game these days in native. It's a bit of a headache. And I doubt the gains are that huge. May 23 04:09:53 i know just motor engin May 23 04:10:04 Maybe you should make a racing game. :D May 23 04:10:50 ok I think jackcom is pulling my leg May 23 04:11:17 heh 8) May 23 04:12:09 https://unity3d.com/ May 23 04:13:24 QubeZ: what is engin in game? May 23 04:13:46 jackcom: I'm incapable of informing you to that degree. Please use Google judiciously. May 23 04:13:51 read up, it's fun May 23 04:14:23 the troll is strong in this one May 23 04:14:31 dragorn http://www.theregister.co.uk/2015/05/22/factory_reset_fails_in_half_a_billion_android_phones/ May 23 04:14:33 indeed May 23 04:15:37 QubeZ: i can do question one more? May 23 04:17:02 i can pull data of other smart phone? QubeZ May 23 04:17:25 I'm not sure what that means May 23 04:18:08 i can see other smart phone data of photo, contacts. May 23 04:18:53 That's impossible. Android and Google does not allow that. Only Google can access it to share on the internet to generate ad revenue. May 23 04:19:22 i see 8) May 23 04:19:59 if i use unity3d, then i can make game easily? May 23 04:20:12 "Make game easily" just don't go together. May 23 04:20:20 It's hard no matter how you slice it. May 23 04:21:16 there is two version of ‘personal edition’ and professional edition’? May 23 04:21:46 jackcom: Just go read, I took you to water -- please drink. May 23 04:22:03 yeah 8) thanks QubeZ May 23 04:24:12 last question, C# is better than java for making game? May 23 04:24:16 QubeZ: May 23 04:26:28 I never said that, Unity3d supports C# and Javascript (that I know of) May 23 04:26:40 other game engines have their own bindings for various languages May 23 04:28:22 QubeZ: then if i make game with Unity3d, then how can i upload to play.google.com? play.google.com support java only? May 23 04:28:43 Please for the love of god just go read documentation May 23 04:28:46 go watch tutorials May 23 04:28:58 go through tutorials, go watch videos May 23 04:29:05 hi May 23 04:29:09 yeah QubeZ 8) thanks May 23 04:30:06 i try setup a mqtt service lib and can import in all of my apps and use it for advertise and notify user for new apps release and events May 23 04:33:52 molavy do you have a question ? May 23 04:35:28 i want only one instant of that service run even when more than one of my apps installed, May 23 04:36:24 in fact , if user installed one or more of my apps one mqtt service run in background May 23 04:37:25 molavy ohh . well i guess then you will have to put it in its own process, and then have both apps bind to it / use content provider May 23 04:38:51 molavy btw, its been a while - the paho client is pretty crappy, but the android service was really crappy May 23 04:38:59 i'd just stick to the client, not their service May 23 04:40:16 g00s_, ok, two keywords for searching , service in own process and bind app to to service using content provider May 23 04:40:46 wow my new phone has nothing on it May 23 04:40:51 300 mb free of 1.5gb May 23 04:40:52 wtf May 23 04:40:55 If I have an activity that implements SharedPreferences.OnSharedPreferenceChangedListener, is there any way to get the onSharedPreferenceChanged() method to fire from another activity? Or do I just call Activity.onSharedPreferenceChanged() ? May 23 04:41:03 molavy you dont have to use content provider. but it could be easy if you need to take paho messages and persist them for other apps May 23 04:41:12 molavy: make sure you use FTS May 23 04:41:35 fts for mqtt ? May 23 04:44:36 molavy http://stackoverflow.com/questions/6204492/android-shared-service May 23 04:45:25 g00s_,thanks May 23 04:50:12 how to get the current Theme as Object ? any one ? May 23 04:51:19 as Object of Resources.Theme May 23 05:27:33 I put an app up for alpha testing 14 hours ago but the link is still not active May 23 05:27:37 is that normal? May 23 05:28:03 I added my testing account correctly so I’m not sure whats happened May 23 05:29:28 I get ‘Sorry - nothing to see here.’ May 23 05:30:16 (logged in with tester google account) May 23 05:36:22 lol, bulldog meets bulls http://digg.com/video/bulldog-meets-a-herd-of-actual-bulls May 23 05:41:22 lol May 23 05:41:49 they are all so curious ! May 23 05:41:57 This made me laugh: http://i.imgur.com/3WXz9Kh.gif May 23 05:42:06 There's probably a programming metaphor in there somewhere. May 23 05:42:42 damage control, yeah May 23 05:43:11 TacticalJoke did you see that post the other day about software circuit breakers ? May 23 05:43:38 Nah. May 23 05:44:09 Activity class inherit Context class? May 23 05:45:35 jackcom: http://developer.android.com/reference/android/app/Activity.html May 23 05:46:42 nice thanks TacticalJoke May 23 05:46:44 8) May 23 05:49:43 love this chrome extension with the "View Source" link for developer.android.com https://chrome.google.com/webstore/detail/android-sdk-search/hgcbffeicehlpmgmnhnkjbjoldkfhoin May 23 05:52:49 hmm, seems like i can just copy source LinkedTransferQueue.java to my project (its api 21) ... these things really should be unbundled from the framework somehow May 23 05:53:29 there should be support-jsr-x for example May 23 06:00:01 Hello Im trying to use a library, opencv in my android app, looked here for instructions http://stackoverflow.com/a/27421494 but I cnat find the File->Import Module option May 23 06:00:21 Im using android studio 1.2 May 23 06:01:28 File > New > Import Module. May 23 06:13:28 TacticalJoke this is cool :) http://tech.puredanger.com/2009/02/28/java-7-transferqueue/ May 23 06:13:49 "Because SynchronousQueue is used as the heart of task handoff in something like ThreadPoolExecutor, this can result in similar kinds of performance improvements there. " May 23 06:19:19 I wonder whether that addresses a problem I've had with TPE: with TPE, there seems to be no way of implementing a thread pool featuring both queuing and idle-thread reuse. May 23 06:20:05 With LinkedBlockingQueue, you get the queuing but you don't get idle-thread reuse (threads are created until corePoolSize threads exist). May 23 06:22:09 i do have lots of threads running ... May 23 06:22:26 For this reason, my app uses more than one ThreadPoolExecutor (each with a single thread, queuing, timing out of core threads, and reuse of idle threads). I get the best of all worlds but at the cost of multiple thread pools. May 23 06:22:50 surf2b1: how to start that extension? May 23 06:22:57 said something about typing 'ad' and tab or something May 23 06:23:08 g00s support library May 23 06:23:14 put it up on github ;p May 23 06:23:24 java7 backport support library May 23 06:23:32 g00s_: I realised lately that my thumbnail downloads can work well on a single-thread thread pool. :D May 23 06:23:33 android studio keeps changing my .idea/misc.xml from languageLevel="JDK_1_8" and then back to languageLevel="JDK_1_7" over and over, what's that all about? May 23 06:23:41 As long as I set the connection timeout low (just in case). May 23 06:23:44 TacticalJoke: just use one thread pool but manage queues May 23 06:24:13 lasserix: Would I have to implement my own queue? May 23 06:24:17 ie youhave a linked blocking queue, but feed that from queues you manage May 23 06:24:19 no May 23 06:24:33 just make sure it is synchronized some how May 23 06:24:37 i can be connected to 7 ble devices & 2 rfcomm devices so thats 18 threads :D May 23 06:24:42 but that way you feed from wherever into that set of queus May 23 06:24:46 and then feed those into your threadpool May 23 06:24:54 you can do stuff like proirtizing and such May 23 06:25:04 by rearranging the feed May 23 06:25:26 Ah. I've not considered manually maintaining the queue. Hmm. May 23 06:25:47 yeah you add some extra and it works quite nicely May 23 06:26:22 Is that safe, though? Like, does TPE expect the user to mutate the queue? May 23 06:26:50 no May 23 06:26:53 not their queue May 23 06:26:56 you add another queue May 23 06:27:02 Ooh. I see. May 23 06:27:04 yeah May 23 06:27:08 so in your TPE class May 23 06:27:16 add a queue that is where all the runnables initially go May 23 06:27:35 then as they are processed, check if they are empty, if not, pass them to your executor May 23 06:27:51 and then you can do certain things like all from queue A get priority over B and so on May 23 06:28:05 plus you can do other things like implement a priority queue for one them if you need May 23 06:28:06 and such May 23 06:28:15 Yeah, that sounds powerful. May 23 06:29:18 I wonder whether it'd make sense, in that scenario, to implement our own BlockingQueue. May 23 06:29:30 And just give that to TPE. May 23 06:29:31 ? May 23 06:29:54 I wonder whether we could customize the semantics of the queue and use that queue only. May 23 06:30:05 eh May 23 06:30:19 I guess it'd be complex, though. May 23 06:30:20 think you would be constraining yourself more than anything May 23 06:30:54 I hate some parts of multithreading. :| May 23 06:30:57 you can even implement a runnable such that you have a callback on complete May 23 06:31:00 Some of it just gets too complicated for humans to understand. May 23 06:31:11 you use the oncomplete to iterate the next runnable into your TPE from the queue May 23 06:31:23 then you don't even need a queue, you can use a hashmap or arraylist or deque May 23 06:32:00 True. May 23 06:32:36 pfn you around? if i copy jsr166y TransferQueue into my project, do i need to rename its package ? May 23 06:33:00 its there on api21, but i'm copying it because minsdk=16 May 23 06:33:15 Maybe we need Java7Compat. May 23 06:33:20 do it May 23 06:33:26 put iton github May 23 06:33:42 supportTryWithResources(stream = openStream()); May 23 06:33:50 i dont know how the classloader will handle the package collision May 23 06:34:36 I think my app can get probably away with four threads in total (with backlog queuing). May 23 06:35:01 This assumes that, in cases where it matters, connection timeouts are low. May 23 06:35:12 And read/write ones, I guess. May 23 06:35:46 i was thinking about using netty's HashedTimingWheel. i have lots of timeouts in flight at once May 23 06:35:59 Your app sounds way more complex than mine. :D May 23 06:36:11 I feel lucky to have to tolerate only mild complexity. May 23 06:36:22 Probably the biggest complexity in my case is parsing reddit markdown. May 23 06:36:30 the complexity is mostly all these concurrent things May 23 06:37:00 limit is 2 simultaneous br/edr devices, 7 ble devices, and any number of mqtt servers May 23 06:37:15 so thats a lot of stuff going on May 23 06:37:33 i think the tough part is wakelock policy among all those pieces May 23 06:38:40 TacticalJoke but i stuck to this mostly, and its been pretty good https://github.com/tehmou/rx-android-architecture May 23 06:38:41 Yeah, sounds tricky. May 23 06:38:53 i took this approach way back since the first rev of the app, back in froyo days May 23 06:39:00 database is gold standard for all state May 23 06:39:24 Nice. May 23 06:39:41 its actually kinda hard testing if you are doing wakelock right ... there is always some app on my phone that has one May 23 06:39:58 Actually, I think reddit-markdown parsing might not be too bad. I can unit-test the tokenizing code. Probably the fiddliest part will be making sure not to allocate too much or just *do* too much. May 23 06:39:59 you might assume, yeay it works ... but only because another app has it :D May 23 06:40:10 Ah, yeah, May 23 06:40:12 .* May 23 06:40:33 oh man, markdown parsing ... yeah, that sounds pretty sloppy May 23 06:40:41 g00s_, you'll get a dex error if you don't pass the core library flag, otherwise it's mostly ok May 23 06:40:46 Text parsing has always been my favourite thing. :D May 23 06:40:52 So I will semi-enjoy it. May 23 06:41:01 I'm trying to add a Share menu item button to my actionbar. The icon is added OK, except it's unclickable. It's just grayed out. Is there anything special I need to do? May 23 06:41:02 pfn core library flag ? May 23 06:41:05 * g00s_ googles May 23 06:41:50 ahhh May 23 06:47:30 just make sure it's identical to how it's implemented on 21 otherwise you get an incompatible class change error at runtime May 23 06:47:36 * pfn zzz May 23 06:49:41 pfn thanks May 23 06:52:32 oh god, someone ?needinfo-ed me on a .css bug .... /I hate that stuff/ May 23 06:52:34 Is there a library for ExpandableRecylerView? May 23 06:53:01 aaaaaaaaaaaaaaaaaaaaaaand wrong server :/ May 23 06:55:18 yoavst lol May 23 06:55:31 sounds like FUN May 23 06:55:56 g00s_: Yea :/ May 23 06:56:17 they should rename recyclerview to DIYFunView May 23 06:56:51 g00s_: acutally there are few ExpandableRecylerview, but idk which to use May 23 06:59:48 android:name=".MainActivity" <——— why there is a ‘.’? May 23 07:00:02 before MainActivity May 23 07:00:07 . = your package name May 23 07:00:18 yoavst: thanks :) May 23 07:00:22 It uses your package name as base package May 23 07:00:46 so if your package is com.jack so it is com.jack.MainActivity May 23 07:01:13 com.jack.MainActivity == .MainActivity? May 23 07:01:41 8) thanks yoavst May 23 08:09:38 there is a gen directory in android studio? May 23 08:11:06 where is R.java reference? May 23 08:24:26 it is hidden from you May 23 08:24:33 if you inspect the directory May 23 08:24:53 you can find it in rootfolder/modulefolder/build/generated/... May 23 08:25:00 where modulefolder is name of your module May 23 08:26:48 i don’t know May 23 08:26:53 thanks lasserix May 23 08:27:01 how can i know id? May 23 08:32:02 what are you trying to do? May 23 08:35:17 > May 23 08:35:21 you dont want to rely on these ids May 23 08:35:25 they change per compilation May 23 08:35:27 err build May 23 08:35:37 in code you want to reference them as R.id.wahtever_the_id_is May 23 08:35:43 which are ints May 23 08:36:10 Is Android Studio different enough from using the ADT Plugin with Eclipse that I'll have a hard time following a book written for Android development in Eclipse? May 23 08:36:30 probably not May 23 08:36:41 but familarize yourself with how to open the debugger, and logcat May 23 08:36:51 and navigating your project May 23 08:37:00 that is fairly different -- just make sure you select Android May 23 08:37:10 instead of Project for the view for the project view window May 23 08:37:22 will do. Eclipse is/was being a royal pain in the ass to work with May 23 08:56:27 Why does StaggeredGridLayoutmanager perform much slower on API 21+ May 23 08:56:45 I just updated my device and it's sluggish May 23 09:02:10 What is the SCRIPT_ADDRESS under PUBKEY May 23 09:05:34 ronkrt, this has nothing to do with android dev, i guess it represents the adress of the script hash May 23 09:05:48 LOL May 23 09:05:55 clicked wrong chan sorry guys May 23 09:06:09 extend mean ‘inherit’? May 23 09:08:04 Hello. Anyone using telegram api for building something of their own? May 23 09:12:42 extend mean ‘inherit’? <—— help me May 23 09:24:25 hello May 23 09:25:36 jackcom: yeah in many ways May 23 09:25:52 in many ways? May 23 09:25:54 what mean? May 23 09:35:19 Is it bad architecture to call Main Activity methods from a fragment activity's view? May 23 09:37:37 kanso: not really, but you should really use a java interface for it May 23 09:38:45 Okay, thanks May 23 09:39:10 Hello May 23 09:39:55 I am working on an android client for an open source cloud project May 23 09:40:36 I don't have any issue about its frontend, but I can't understand its backend. May 23 09:42:00 e.g. for its sync operation it uses ContentResolver class, which is actually implemented in Android API 19. I wonder how ContentResolver understands where to sync with? May 23 09:42:06 hi, if the max texture size is 2048x2048, does that mean that I can have the same amount of pixels in a different shape? for instance, 1024x3072 ? May 23 09:42:48 momken: read http://developer.android.com/training/sync-adapters/index.html May 23 09:42:55 sorry, 1024x4096 May 23 09:43:05 nb-ben, no May 23 09:43:14 OGL textures are square May 23 09:43:23 Mavrik: I see, thank you :) May 23 09:43:49 or, more specifically, if your limit is 2048x2048, the GPU (usually but not always!) won't be able to handle 1024x4096 May 23 09:45:27 I suppose I am also curious as to whether what I am doing is okay or not.. I am making a particle animation and that means there are roughly 60x256 different shapes. Is making a sprite (I am dividing it into multiple bitmaps now) a good idea, or would there be a better thing to do? May 23 09:45:33 canvs2321, hello May 23 09:45:58 nb-ben, that sounds reasonable from performance perspecive May 23 09:46:09 you'll have only a few texture uploads and rendering clipped regions is pretty fast May 23 09:46:47 Mavrik: yes, that is where I got to while doing profiling May 23 10:20:31 Hey guys, google admob sent me a pin code to verify my account before 3 months but I cant get it till now, so I want to request a new one, but this time I hv changed my address. I followed this google help it is very simple and clear instruction but cant get the navigations specified on the help. https://support.google.com/admob/answer/2772302?hl=en-GB&ref_topic=3445812 May 23 10:26:42 hi! May 23 10:26:50 I still need help to finish my json request: https://github.com/xpheres/AndroidAnalyticalTranslator/issues/2 May 23 10:40:36 hey so I am trying to get android to upload using retrofit directly to amazon s3, not sure if this is how I convert the example from herokus site from js(web) to android: http://stackoverflow.com/questions/30411672/how-to-add-nodejs-s3-heroku-direct-upload-to-android anyone May 23 11:11:57 anyone know how to grab signed request from retrofit response May 23 11:15:54 wow, this pocket casts app is not bad May 23 11:17:52 except it doesn't seem to have every show, I wonder if I can add manually url's or list of urls May 23 11:27:28 mhmm estel now thats a familar name i recall.. :o May 23 11:52:25 Hello. I just cloned the open source telegram. How can I make sure that only the locale english is used? I will have to translate the app later for other languages May 23 12:10:44 hey guys what's good for Rest API's? should I go with Retrofit? May 23 12:16:11 So how does one use PendingIntents? Say I want to (using notifcations with buttons) tell my activity to make a boolean false, how would I do that? May 23 12:18:04 Neil: do you understand intents? May 23 12:18:18 Not really May 23 12:19:28 well... that might help May 23 12:19:40 basically, a pendingintent is an intent which will (or may) be delivered later May 23 12:19:59 Alright May 23 12:23:07 I get it now May 23 12:23:09 Thank you May 23 12:45:52 if i'm setting up multiple environments for my app, should i use separate build flavors? May 23 12:48:46 This is more of a Java question but: If i'm creating a new custom LinearLayout class/object everytime a particular fragment is created, am I creating any issue since a new object will be made each time? Or does Java clean up these types objects May 23 12:58:52 woops, i meant product flavors** May 23 12:59:05 that's what i'm going with anyways. didn't know if there was an easier way to configure this May 23 13:05:05 phew, I think I just avoided having to have to have a background service May 23 13:30:15 shmooz: why to avoid background service? May 23 13:32:43 a silly bug made me think I need a service when the device goes to sleep May 23 13:33:35 on the most cases you need a service when the device goes to sleep May 23 13:33:51 never! May 23 13:34:04 what's the best way to mock http responses for android development? can i use okhttp.mockwebserver for this? May 23 13:34:26 i basically want to mock out static json responses, to avoid implementing the API at this point. May 23 13:34:40 How can I set a new fragment in the same activity to be on the most top layer visualy? It goes behind the current fragment May 23 13:35:48 as long as variables continue to increment while the device is sleeping ... May 23 13:36:40 can i configure Robolectric to run in developmetn? May 23 13:37:34 i tried this with WireMock, but that project only works in test environments May 23 13:39:19 or nvm, looks like robolectric is not used for that. can okhttp.mockwebserver do that? May 23 13:44:59 [15:35:46] as long as variables continue to increment while the device is sleeping ... <<< that will last several minutes but the device will cancel this process by itself if you don't use a service May 23 14:13:44 Anyone know if there exists a programmatic way to enable ADB over wifi on un-rooted devices? May 23 14:24:19 emulator: emulator window was out of view and was recentered <—— what’s wrong? May 23 14:25:17 jackcom try resolutions settings may be? May 23 14:26:19 768 x 1680 May 23 14:36:31 in gradle: how can i access the name of the current flavor? May 23 15:05:33 up late yesterday? May 23 15:05:39 hi guys, anyone know how to program to take picture? May 23 15:05:46 yea May 23 15:06:07 show and tell? May 23 15:06:17 ok May 23 15:06:24 1. You google "Android taking picture" May 23 15:06:31 do that and come back May 23 15:06:42 Bahahhaha May 23 15:06:51 nice help May 23 15:06:56 * zcm is literally rolling on the ground laughing May 23 15:06:59 thank you :) I do it everyday May 23 15:07:00 you're be the best teacher May 23 15:07:05 true May 23 15:07:10 You are be the best teacher!?!?!? May 23 15:07:21 the best teacher is he who shows the student how to not need a teacher May 23 15:07:27 BAM I just blew your mind May 23 15:07:34 MIND BLOWN! May 23 15:07:37 may be this help: http://developer.android.com/guide/topics/media/camera.html May 23 15:07:42 that's the one May 23 15:07:51 it taught me too May 23 15:08:03 no, wait, that's not the one May 23 15:08:06 there's an easier one May 23 15:08:16 ? May 23 15:08:21 yep May 23 15:08:28 even has the word "easy" in the title May 23 15:08:48 sorry no "simply" May 23 15:09:49 are Snackbars really not native to Android? Gmail uses them extensively May 23 15:09:59 it's just the work of this guy I guess? https://github.com/nispok/snackbar May 23 15:11:04 why dont they mention the open source libraries they used May 23 15:11:09 that's not fair! it's wrong May 23 15:12:58 They do mention open source libraries they use May 23 15:14:12 in the Gmail app? where? May 23 15:14:30 help > overflow > open source licenses May 23 15:14:30 I've looked many times before May 23 15:14:52 ok, I used to look in Settings only May 23 15:15:14 what a terrible looking screen it is May 23 15:15:40 ok thanks May 23 15:16:50 probably they didnt use his snackbars, its not amazing to recreate them May 23 15:18:33 SimonTV May 23 15:18:36 heh May 23 15:21:32 Hi guys. Quick question. I have 3 statements that return a boolean, individually they all return true, together with && between they return false. Ideas? May 23 15:21:43 I cant explain it :S May 23 15:22:03 code? May 23 15:22:05 One of them doesn't return true then May 23 15:22:15 SimonVT: They do, I have evaluated them in the debugger. May 23 15:22:32 That's not possible, so no May 23 15:22:32 then the ones being anded have false May 23 15:22:33 They don't May 23 15:22:37 its impossible May 23 15:23:41 Ignore me May 23 15:23:49 Overlooked a regex I updated. May 23 15:23:53 Sorry May 23 15:24:03 I evaluated the wrong anded one May 23 15:31:05 hey how do I access every frame in an app? ex. the continueSettling method must be called "in each frame" May 23 15:31:10 anyone? May 23 15:32:56 maybe the onDraw of a view? May 23 15:33:07 im writing an app for personal use that posts info to a db server on the same network. should i include the db access in my app or should i host a post.php on my web server which posts to the db? May 23 15:33:11 but not sure if that's what you're looking for May 23 15:34:13 if you are saying it posts to a db server, then you post to a db server May 23 15:34:29 otherwise you replicate the db to the app and dont post to the db server May 23 15:34:37 but do i connect to the db in my android app or just post the things i wanted posted to a post.php on my web server May 23 15:34:37 either here or there May 23 15:34:44 just post May 23 15:34:59 lighter on you May 23 15:35:04 so i should have a post.php which adds stuff to my db? May 23 15:35:09 of course May 23 15:35:18 some thing that will take your data and talk to the db with it May 23 15:35:24 yeah, it'd be better to just send that as post data and let your server handle it as opposed to having the device do it May 23 15:35:28 write a node server and send it JSON May 23 15:35:34 easiest route May 23 15:35:36 o... May 23 15:35:48 interesting ok will do May 23 15:35:51 thanks May 23 15:36:49 why is it local? May 23 15:36:58 you developing an app for something only you want to do? May 23 15:37:13 yup May 23 15:37:21 what's that thing? May 23 15:37:24 no the onDraw is called only when the app needs to invalidate itself May 23 15:37:29 probably doesnt need an app? May 23 15:38:01 how can each rendered frame be accessed? just askin May 23 15:38:02 it does need an app :p whatever it is i am trying to do is being ran as a server on my phone May 23 15:38:12 i want to add logging now May 23 15:38:19 ahhh server monitoring May 23 15:38:20 ;) May 23 15:38:21 as a service**** May 23 15:38:54 I did something like that May 23 15:39:06 https://play.google.com/store/apps/details?id=com.cura May 23 15:39:24 its a failure as an app, but the bash commands are bullet proof May 23 15:39:56 what does this app do May 23 15:40:08 lets you connect to a remote server and see stats about it May 23 15:40:16 or use the terminal on it May 23 15:40:28 remote sysadmining basically May 23 15:40:36 Why would a listview with cursor data (ordered by unix time and stacking from bottom) populate the list correctly with different row views, but on the initial load have the first row of the last row that should be loaded at the bottom of the list? I'm checking my rowID's and it starts at 5, then counts down from where it should start (2000's). May 23 15:40:59 looks like a lot of work May 23 15:41:17 After scrolling up and back down, the row with the id of 5 is gone. Weird. May 23 15:41:19 have you made any moeny off this app May 23 15:41:48 well it won some competitions, this was a senior project in uni May 23 15:41:51 but no money from users, no May 23 15:41:53 Cura looks neat May 23 15:42:09 you need to know a lot more to be able to make an app like that useful to IT people May 23 15:42:18 JuiceSSH dwarves it May 23 15:42:27 cause the guys behind it each have 10+ years IT May 23 15:42:58 no ads? May 23 15:43:10 for example, for the longest time Cura didnt have a way to access the server through keyfiles, it relied on passwords and nobody had passwords to their servers, I didnt know that at all May 23 15:43:37 nah, this was for university, later it was published May 23 15:44:37 to make something that solves a real problem you really have to be an expert in that problem May 23 15:45:10 Crotanks: your problem probably relates to how your adapter is recycling the view. also your adapter's hasStableIds() should return true May 23 15:46:17 does the emulator supports nfc? i mean can i test nfc features with it? May 23 15:46:22 i am using android studio May 23 15:46:25 sdk May 23 15:46:43 is there a way I can prevent my app of being subject to the device's text enlargement? May 23 15:47:24 ah shit you have to use dp for fonts May 23 15:49:57 How often does the google play console update with sales? May 23 15:50:00 Is it daily? May 23 15:50:42 yea May 23 15:50:44 it says May 23 15:52:08 Cool thanks Odaym May 23 15:52:16 Hopefully getting this submitted tonight May 23 15:52:34 Hello guys. I am just trying to implement colorized sliding tabs (from developer.android.com) and have a problem with colors of the slider. The slider does not use colors specified via TabColorizer. During slider's movement, the color is black, otherwie the color is black with soma transparency applied to it. I really appreciate any help. May 23 15:52:59 little-fish: you are using R.color right? May 23 15:53:43 little-fish: when you set colors you should use getResources().getColor(R.color.xyz); May 23 15:53:59 Napalm: yes, i am. May 23 15:54:15 will try it.. May 23 15:54:16 see last message then May 23 15:58:56 Napalm: Thank you very much! It works like a charm! May 23 15:59:04 np May 23 16:01:28 Napalm: just override hasStableIds() to return true? May 23 16:02:02 thats part of it May 23 16:02:14 your getItemId should return a unique id for the data for the position May 23 16:02:23 not the position May 23 16:02:42 what i mean is; dont just return the position.. as if the data changes your views eont May 23 16:02:45 8wont May 23 16:03:12 then you might want to pastebin your getView or newView/bindView methods May 23 16:05:37 you have to use stableIds with recycler? May 23 16:06:12 nevermind May 23 16:06:14 no May 23 16:06:52 question guys, are you guys using eclispe IDE or one came with android provided? May 23 16:07:05 Eclipse May 23 16:07:13 Hulio: you mean Android Studio May 23 16:07:14 Android Studio. May 23 16:07:24 Android Studio myself but for many years Eclipse. May 23 16:07:49 Probably should move over May 23 16:07:59 I'm using Android Studio. May 23 16:08:01 yeap May 23 16:08:03 Yeah May 23 16:08:19 it's best to use android studio right? May 23 16:08:21 It's the standard now, plus it's easier and more inviting. May 23 16:08:35 I know eclipse like the back of my hand though May 23 16:08:47 It's not too bad. You could still use eclipse. May 23 16:09:28 It's a pretty solid IDE though. Everyone I know that switches from eclipse to intellij sticks with intellij May 23 16:09:40 Which is what AS is based on May 23 16:10:08 Napalm: http://pastebin.com/NvXvsT0h <--- Forgive me if I'm doing something stupid, I'm very new to this. May 23 16:10:14 Will anything need done to my projects for Android Studio to be able to work with them? Gradle conversaion etc May 23 16:11:42 Crotanks: at the top of your getView add messages.moveToPosition(position); May 23 16:11:46 I can't say. I never used Eclipse for android development, just classes at uni. I'd image their would be some slight differences, though nothing major. May 23 16:12:05 there* May 23 16:12:08 Crotanks: that should fix your current problem.. but really it looks like your using the wrong adapter type.. can you pastebin your full adapter May 23 16:12:48 Neil: AS contains a importer to import from Eclipse May 23 16:12:55 Oh, that's good May 23 16:13:00 Might be my goal for tonight then May 23 16:13:54 It probably sucks May 23 16:14:41 Napalm: I could kiss you. I've been working on this all morning and part of last night. May 23 16:14:51 The importer? I imagine so, but if it works, it works May 23 16:15:27 Crotanks: your welcome. still, pastebin your full adapter class May 23 16:16:58 Napalm: Sure thing: http://pastebin.com/TEnsv8Ei May 23 16:17:37 yea, this isnt right May 23 16:20:11 Crotanks: I'll rework it for you. can you message me your use/s of the constructor May 23 16:20:29 Crotanks: for example where you call new ConversationMessageListAdapter(this, ......); May 23 16:24:39 Crotanks: ? May 23 16:50:49 if anyone has any expertise in file uploads and can help me with this issue http://stackoverflow.com/questions/30415189/how-can-i-improve-my-video-upload-currently-crashes-the-app-from-out-of-memory-u May 23 16:51:13 I figured retrofit takes care of the video uploads without crashing the app since I am using multipart or should I be using something else too May 23 16:58:38 stupid question, cant you do it in batches? May 23 17:02:10 Multipart sends it in chunks May 23 17:02:33 then that's how you avoid memory issues May 23 17:02:35 :P May 23 17:03:41 should i be reducing the video size May 23 17:03:51 why lose when you can win! May 23 17:03:59 does anyone know what vine/instagram save their videos May 23 17:04:11 25mb is too big no? May 23 17:07:02 Lonesoldier728, "runs out of memory" ? May 23 17:07:30 yea it would be that simple, a straight OutOfMemory exception May 23 17:07:36 there's no why behind that May 23 17:08:11 Caused by: java.lang.OutOfMemoryError: Failed to allocate a 48298892 byte allocation with 16777216 free bytes and 44MB until OOM May 23 17:08:16 That was the error for the crash May 23 17:08:21 there's nothing more specific to say May 23 17:09:19 tell you what you do man, integrate Parse API and upload a video using their API May 23 17:09:38 Does anyone know what android does if an xml attribute that is used, doesn't exist in earlier SDK versions? Does it crash, or does it ignore? May 23 17:09:39 see if it works there, just to see if there is a layer of complexity that you are totally missing May 23 17:12:13 ParseApi May 23 17:12:48 just Parse May 23 17:12:51 try it May 23 17:19:44 Not sure what you mean by that May 23 17:19:55 I am using retrofit ... May 23 17:21:25 hello i need help, one of my activities keeps crashing and not certain how to fix.. I believe it might be caused by the new intent in the character activity May 23 17:23:15 character activity (http://pastebin.com/vy0zC7Rq) | Main Activity which is splash screen (http://pastebin.com/5k8ygE48) | Android manifest (http://pastebin.com/inXZqB6x) and the error its giivng me (http://pastebin.com/CbUj5J1t) May 23 17:23:48 removing the intent on character activity doesnt crash the app but when i include the intent code it just dont work May 23 17:23:58 what did i do wrong and how do i fix? May 23 17:28:00 things are quiet lol May 23 17:28:29 DarkChaoz, android:name=".character" shouldn't that start with an upper case ? May 23 17:29:11 does that affect whether it runs? May 23 17:29:27 because the class name doesnt start with uppercase May 23 17:29:56 it should be May 23 17:30:48 mhmm I'll change it anyway but is there anyway to fix the intent issue? May 23 17:31:21 the error you showed has nothing to do with intent May 23 17:32:27 mhmm then whats the problem? May 23 17:32:33 because when i take that intent code out May 23 17:32:35 it works fine May 23 17:32:54 Hey guys May 23 17:33:01 its too silly man i cant answer it for you May 23 17:33:09 just spend some time May 23 17:33:20 Ive got an activity that only serves one simple purpose, to collect user input and im thinking I should change it to a Gragment May 23 17:33:24 Fragment* May 23 17:33:26 Any thoughts May 23 17:33:54 why do you care.. May 23 17:34:04 me odaym? May 23 17:34:08 dont fragments have to sit in activities? May 23 17:34:31 well there is FragmentActivity too May 23 17:34:47 Yeah, im thinking FragmentActivity would be better then creating a whole new activity May 23 17:34:58 yea but why May 23 17:35:05 you just "feel" its lighter? May 23 17:35:27 Yeah, better practice May 23 17:35:42 says who May 23 17:35:58 fine then.. May 23 17:36:02 I read it online, also Im trying to keep the number of activities I have to a minimum May 23 17:36:08 then that's it, do it May 23 17:36:15 Ok May 23 17:36:15 no thoughts needed May 23 17:36:30 BadCompany2 you like my nick? May 23 17:36:35 wtf May 23 17:36:36 ah May 23 17:36:38 wat? May 23 17:36:40 damn this is taken May 23 17:36:40 watt May 23 17:36:54 Odaym should I use Fragment or FragmentActivity though.. May 23 17:37:00 zero idea man May 23 17:37:01 :P May 23 17:37:06 dont even know the difference, never read about it May 23 17:37:08 let's se May 23 17:37:28 yeah im gonna read up May 23 17:37:33 http://stackoverflow.com/questions/10609268/difference-between-fragment-and-fragmentactivity May 23 17:37:42 Looks like fragment is one with the activity May 23 17:37:45 Which may be what Iwant May 23 17:38:00 is the error in MainActivity or Character activity? May 23 17:38:09 because MainActivity looks fine imo May 23 17:44:46 So I dont think I can animate in a fragment May 23 17:45:30 Like for my current activity, when the new activity is created I slide the old one out and slide new one in May 23 17:45:39 The fragment goes on top of the activity, so idt thats possible May 23 17:48:03 yea you can, just google man May 23 17:48:41 Got it May 23 17:49:30 Odaym so the fragment will be inside of the current activity, so I dont need to include the toolbar in my fragments view May 23 17:49:37 definitely not May 23 17:49:38 yea May 23 17:50:44 Cool May 23 17:50:44 thanks May 23 18:01:50 I like Android Studio now May 23 18:02:20 whats android studio? May 23 18:04:28 It's the default android IDE May 23 18:04:33 it's a concept May 23 18:04:37 a..belief May 23 18:04:38 The one that google package with the SDK now May 23 18:04:45 It's nice May 23 18:04:54 But a little odd coming from eclipse May 23 18:05:02 yes, the truth is strange at first May 23 18:05:06 i recently migrated from eclipse too May 23 18:05:07 because you've been blinded for so long May 23 18:05:14 just dump it man, we had this conversation before :P May 23 18:05:15 so confusing May 23 18:05:33 dump android studio.. will do May 23 18:05:36 WHAT no May 23 18:05:38 the other way! May 23 18:05:40 lmao May 23 18:05:45 jesus May 23 18:05:51 :P May 23 18:12:28 why would you say what's android studio when you say you migrated from eclipse May 23 18:13:16 i was being sacastic May 23 18:15:04 so i got my first one stars May 23 18:15:13 they didn't even say why May 23 18:16:00 who cares May 23 18:16:11 it will come May 23 18:16:21 dont dwell on the store page, really :P May 23 18:17:06 there are some users who 1-star you and you talk to them privately and fix exactly what they said and they agree to change the rating and never do May 23 18:17:43 Awesome! 1-star :) May 23 18:18:15 hahaha May 23 18:18:18 no way..? May 23 18:18:35 paulo_, don't read play store reviews May 23 18:18:42 the world is full of utter morons May 23 18:18:53 and reading thei opinion just kills motivation May 23 18:19:04 sometimes they are right though, but yea whatever May 23 18:19:28 well this is my first app, so i'm still obesessing over my installs, rates, and admob earning May 23 18:19:29 I love those Amazon reviews: "WORST PRODUCT EVER" (5 stars). May 23 18:19:30 *s May 23 18:19:54 there is a Google document somewhere that gives advice on how to deal with user reviews May 23 18:20:03 Im sure I read it in the past May 23 18:20:10 paulo_, the best you can do is to give a dialog on 3rd or 4th startup asking people to rate your app May 23 18:20:16 (only once of coure) May 23 18:20:19 *of course May 23 18:20:33 that never worked for me, 100% of the time the answer was no/later May 23 18:20:38 100%! May 23 18:20:45 huh. May 23 18:20:47 How to deal with user reviews: sit in the corner, rock back and forth. May 23 18:20:53 yea, NO ONE pressed Yes/Rate May 23 18:21:01 pretty much for every app we got a huge influx of 5 and 4-star ratings May 23 18:21:06 couldnt believe it, but then I saw it in another app and pressed No/Later, and then it hit me :P May 23 18:21:32 Guess you timed it wrong :P May 23 18:21:39 but you're talking about an app I have that has 1,500 current users May 23 18:21:53 so it's like nothing to rely on its data May 23 18:21:59 users are idiots, ignore 1* reviews that can't be addressed May 23 18:22:28 some do it out of spite, cause they are angry May 23 18:22:37 some STRAIGHT OUT lie about something May 23 18:22:45 Mavrik, yeah, that's a nice addition, I'd like to beg for reviews some day May 23 18:23:04 yeah, it's not that it's begging, but that really offset the 1* from morons May 23 18:23:15 if people gives 1 star i'd say "doubt you can do much better" May 23 18:23:25 not like they know how to make the app May 23 18:23:39 there is a huge sense of entitlement if you see any app reviews May 23 18:23:45 DarkChaoz, visit /r/android once May 23 18:23:49 DarkChaoz: That's a (common) reasoning error, though. Even if we can't do better, sometimes, something just sucks. :D May 23 18:23:50 people feel like they are god when judging your app May 23 18:23:51 and you'll see that people aren't bothered by that :P May 23 18:24:07 Paul Graham said "Users are like sharks, they're too stupid to fool" May 23 18:24:17 Like, I don't know how to direct a movie, or act, and yet Impromptu featuring Hugh Grant is terrible. May 23 18:24:26 I'd go on reddit but its being wierd right now.. May 23 18:24:29 haha yea TJ May 23 18:24:36 "your end result is bad!" May 23 18:24:53 thank you guys, you lifted my mood :) May 23 18:25:07 ...akward May 23 18:25:23 awkward May 23 18:25:25 i mean my mood regarding the 1-stars May 23 18:25:32 awkward * 2!! May 23 18:25:34 Even though, sometimes people will legitimately want a feature you're just too lazy to implement :P May 23 18:25:40 + May 23 18:26:08 with one app, the very first review was a feature request that ended up killing my app's future because it took more than a year to get implemented because of lazyness May 23 18:26:33 /r/Android is dumb May 23 18:26:59 well its about Android the topic.. May 23 18:27:05 not dev or anything May 23 18:27:30 now that i went there once, chrome keeps autocompleteing to /r/android when i mean /r/androiddev May 23 18:27:37 have to figure out how to delete that May 23 18:27:53 1st world problem man May 23 18:28:15 :) May 23 18:28:29 you know its going to cost you two down arrows from now on? May 23 18:28:31 The only subreddits I like lately are the "Let's laugh at how bad humanity is" ones (e.g., /r/cringepics, /r/trashy, etc.). May 23 18:28:34 oh god... May 23 18:28:41 how long dod it take you guys to get the $25 back through ads? May 23 18:28:49 wut May 23 18:28:58 $25? May 23 18:28:58 Though the former gets too many "Zomg, I'm a young, attractive female and this TOTAL CREEP tried to hit on me" posts. May 23 18:29:04 lol May 23 18:29:05 I've never made a dime! May 23 18:29:06 haha May 23 18:29:12 Odaym: play store fee May 23 18:29:23 paulo_, uhh... May 23 18:29:29 unless you have huge amount of users May 23 18:29:31 about 15 years. May 23 18:29:36 danijoo makes money on the store May 23 18:29:40 if you have huge amount of users, 5 years :P May 23 18:29:45 otherwise never heard anyone else here making money May 23 18:30:09 but then again I never tried to, first app I make that has ads im finishing now May 23 18:30:37 you need to have something that solves a real problem somewhere, no escape May 23 18:30:50 you cant dick around! May 23 18:34:00 * paulo_ dicks arounf May 23 18:34:10 life is so hard brah May 23 18:34:11 see i can't even spell May 23 18:36:58 Odaym: What type of games does danijoo make? May 23 18:37:13 Games/App May 23 18:37:23 let me check May 23 18:37:43 https://play.google.com/store/apps/details?id=com.lolsummoners May 23 18:38:01 500K downloads bro May 23 18:38:05 waaaat May 23 18:38:24 wow May 23 18:38:31 Looks pretty cool! May 23 18:38:58 yea its colorful May 23 18:39:09 not wow amazing May 23 18:39:51 yeah I was looking at the 27K reviews May 23 18:40:00 27k? May 23 18:40:14 LBP3,840 per item <-- May 23 18:40:21 that's $2.5 May 23 18:40:41 His got 27,100 4 star reviews May 23 18:41:09 When your app is out let me know and I’ll review it :D May 23 18:41:16 yay cant wait! May 23 18:41:21 will you pay me money too? May 23 18:41:25 didnt think so May 23 18:41:27 :P May 23 18:41:40 hehe I might depending what it is :) May 23 18:41:48 it's a ..... May 23 18:41:54 money collector! May 23 18:41:56 yea! May 23 18:43:54 I noticed his description is pretty short so has limited keywords, did he have a big following through social networks or somthing to help him get noticed? May 23 18:44:11 dont know May 23 18:44:13 Maybe got reviewed on sites or something? May 23 18:44:20 or solved a real problem! May 23 18:44:21 :P May 23 18:44:29 true May 23 18:47:27 JesusFreke this is sad :( https://www.youtube.com/watch?v=1ZZrAdNoXB8 May 23 18:47:38 yey trailerpark May 23 18:48:07 hey g00s May 23 18:48:12 hey gdrc May 23 18:48:16 you have so many labels for things, americans :P May 23 18:49:09 Odaym: from your name, are you russian? May 23 18:49:20 tripped over your shoe lace at noon while going to lunch? we have a word for that! May 23 18:49:54 it's not a zero, paulo_, you can't have a nick that starts with a number on freenode May 23 18:49:56 hi! anyone using dagger2 ? someone my DaggerApplicationComponent isnt found (I'm using classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4' May 23 18:50:00 plugin too May 23 18:50:18 Odaym: what does the zero have to do with it? May 23 18:50:29 I read it as the letter O. May 23 18:50:37 cause 0day would mean something to do with hacking, hacking to do with russians, etc.. May 23 18:50:41 oh May 23 18:50:41 is it like "Oh damn"? May 23 18:50:52 that's by mistake May 23 18:50:58 my name is Oday, my family name starts with m May 23 18:51:10 Odaym son!! May 23 18:51:15 haha May 23 18:51:16 you got rekt! May 23 18:51:19 get good! May 23 18:51:31 g00s: heh, sounds about right May 23 18:51:39 everyone keeps assuming i'm brazillian because of my name. May 23 18:51:46 g00s: I'm glad the one I live in doesn't look anything like that :p May 23 18:51:49 why would Odaym seem russian May 23 18:51:52 JesusFreke something wrong with the world ... May 23 18:52:22 a buss full of people ready to exploit the poor May 23 18:52:56 meanwhile i'm reading about this investment company that buys 1400 houses / dat in phx May 23 18:53:01 *day May 23 18:55:03 i think what people don't understand is that as population goes up, living standards for the bottom 905 will go down May 23 18:55:12 90% May 23 18:55:20 I'm amazed that society even functions given human psychology. May 23 18:55:47 unsung heroes May 23 18:55:48 we're doing a great job of ruining the planet May 23 19:47:32 i have admob on my own app. It's safe use my app, right? as long as I don't tap the ads? May 23 20:04:21 For closing network connections, which should I prefer: Socket.close or FutureTask.cancel? May 23 20:04:22 paulo_, you can add your device ID to your Admob code so that bogus ads will be sent to your device May 23 20:04:29 My goal is to release the thread ASAP. May 23 20:05:12 I'm using Socket.close, but I just encountered a case where a slow server held the thread up for ages. (Hard for me to test, right now, whether FutureTask.cancel would avoid this holding up.) May 23 20:05:14 TacticalJoke, uhh, how are those two remotely connected? O.o May 23 20:06:11 Mavrik: The purpose of Socket.close is to release the thread. FutureTask.cancel is another way of doing that. May 23 20:06:44 (The purpose in this case.) May 23 20:07:22 Huh? May 23 20:08:09 So you close the socket on thread A to kill thread B reading from it? May 23 20:08:30 Yes. May 23 20:10:44 Hey so I am using this code, http://stackoverflow.com/questions/30415189/how-can-i-improve-my-video-upload-currently-crashes-the-app-from-out-of-memory-u retrofit to send a video/image file over... it crashes after the video finishes uploading May 23 20:10:55 Hmm, seems I can use to test this. May 23 20:11:07 I do not understand why and it does not show an error anymore just says stopped working... May 23 20:11:17 TacticalJoke, that's an awful practice when it comes to resource management May 23 20:11:30 Even if I let it go off in the background, am I missing something May 23 20:11:34 TacticalJoke, send an interrupt to the thread so it'll stop listening to the socket and close it in that thread May 23 20:11:46 that's the best you can do pretty much May 23 20:12:40 Lonesoldier728, if you get OOM then you're probably loading a huge file into memory. May 23 20:12:48 instead of just sending it to the wire May 23 20:13:08 well I am using retrofit async with multipart... which I thought can handle that (25mb videos) May 23 20:13:54 Lonesoldier728, what do you mean "it" May 23 20:14:07 it's up to you to not drag the full file into memory when you give it to retrofit. May 23 20:14:12 Okay. FutureTask.cancel calls Thread.interrupt. The main reason I'm using Socket.close is that I'm not sure whether Thread.interrupt is sufficient. Is there any guarantee that Thread.interrupt will stock a thread blocking on a network read/write? May 23 20:14:17 Mavrik: or use Selector's and Channels May 23 20:14:25 My googling suggests there isn't one. May 23 20:14:33 TacticalJoke, there is no guarantee. May 23 20:14:34 s/stock/stop/ May 23 20:14:39 TacticalJoke, there will not be a guarantee May 23 20:14:56 You cannot stop a thread if it's blocked. May 23 20:15:01 If you extend thread, override interrupt to close the stream, thats the best way May 23 20:15:05 JVIP page 149 :) May 23 20:15:06 Mavrik: Socket.close does work here. May 23 20:15:09 *JCIP May 23 20:15:18 Pretty much all languages removed thread stop capabilities because that trashed too much stuff. May 23 20:15:48 Maverik how so, any examples or directions I never dealt with big files May 23 20:16:00 g00s: Yeah, I guess I could do both. May 23 20:17:05 g00s, when you interrupt the thread the read() will exit with the interrupted exception anyway May 23 20:17:11 so you do the cleanup in finally as usual May 23 20:18:02 the streams don't have to be clocked though. often they are, depends how its designed May 23 20:18:09 shit, BLOCKED May 23 20:18:46 mhm, nonblocking IO is a pain to deal with tho :) May 23 20:19:38 Hmm. With http://httpbin.com/delay/10, Socket.close seems to be interrupting the read immediately. May 23 20:19:57 This wasn't happening earlier when imgur.com was slow. May 23 20:21:38 Maybe it was blocking on 'connect', not 'read', earlier. May 23 20:27:33 Ooh. This is interesting. :D May 23 20:27:40 http://stackoverflow.com/questions/9630430/upload-large-file-in-android-without-outofmemory-error I am seeing this question, does the answer still apply or march 2012, outdated? May 23 20:27:44 Thread.interrupt alone *isn't* interrupting the httpbin.com download. May 23 20:27:47 But Socket.close is. May 23 20:33:56 if i want to load a movie file and decode it frame by frame to a buffer. what api should i use? May 23 20:34:35 i think there's a mediaplayer but im guessing thats gonna send it straight to a surface May 23 20:34:41 also, is it hardware accelerated? May 23 20:35:00 DrBenway: MediaExtractor and then MediaCodec May 23 20:35:07 k thank May 23 20:35:11 s/httpbin.com/httpbin.org/ May 23 20:35:17 DrBenway, MediaCodec May 23 20:35:25 and yes, it'll use the HW decoder. May 23 20:36:05 DrBenway: example of its use https://developer.android.com/guide/topics/media/exoplayer.html May 23 20:36:23 sweet May 23 20:36:29 Having a hard time figuring this out, not sure if I have to do something to this mediafile ... http://stackoverflow.com/questions/30417315/how-to-send-large-file-on-android-without-out-of-memory-exception May 23 20:36:53 Lonesoldier728: you'll have to stream it May 23 20:38:00 ah May 23 20:38:07 Lonesoldier728: how big is the file? May 23 20:38:14 up to 25mb May 23 20:38:27 depending what the user picks May 23 20:38:38 are you getting OutOfMemoryException? May 23 20:39:06 I was originally now, it just says the app stopped working with nothing being logged in android studio May 23 20:39:26 kill the cached files and the app May 23 20:39:29 it takes up to 2 min a little more on the server side for it to finish uploading and it does save it May 23 20:40:02 what do you mean kill the cache and app? May 23 20:40:37 -_- May 23 20:40:42 exactly that May 23 20:41:39 sorry kind of a noob : / May 23 20:42:07 within the app clear the cache? May 23 20:42:24 or you are telling me to literallly May 23 20:42:28 clear it on my phone? May 23 20:42:36 open the settings page for the app on the device May 23 20:42:51 press the force stop and clear cache buttons May 23 20:43:05 oh ok May 23 20:43:31 and that is suppose to help the future of the app? May 23 20:44:24 the cache was only 100 kb... May 23 20:46:29 thats 99 more than 1 May 23 20:46:39 i hear youuuu hah May 23 20:50:27 One thing I don't understand is that some of the OkHttp tests deal with `InterruptedIOException` and, outside of some SPDY stuff, OkHttp doesn't appear to throw this exception anywhere. OkHttp also doesn't seem to call `Thread.interrupt` or `FutureTask.cancel` anywhere. May 23 20:50:33 It just does `Socket.close`, as far as I can see. May 23 20:51:29 I guess `InterruptedIOException` is separate from `Thread.interrupt` stuff. May 23 20:53:23 (Though my `Socket.close` calls never seem to yield this exception. I get the immediate read interrupt but I get `java.io.SocketException`.) May 23 20:53:27 s/io/net/ May 23 20:56:35 Okay, the `Socket.close` documentation does say this: "Any thread currently blocked in an I/O operation upon this socket will throw a SocketException." May 23 20:58:57 FutureTask is gross May 23 21:02:03 I've got multi select going on my listview, however, it doens't have any type of visual cue to tell the item is selected. Is this built in or do I have to implement from scratch? May 23 21:02:04 howdy. i'm fiddeling with vuforia. i'd like to use a smaller scale (meter) instead of the mm-scale vuforia seems to use by default. i dont know however how to define my trackers or change the objects in unity to make it work. any help highly appreciated. May 23 21:02:17 I think Socket.close has to be the best method here. Thread.interrupt just isn't enough. (Or a combination of the two.) May 23 21:02:33 uups wrong channel sorry. May 23 21:02:38 Because the documentation *does* guarantee that Socket.close will interrupt a blocked thread. There is no guarantee with Thread.interrupt. May 23 21:02:41 And this: https://android.googlesource.com/platform/libcore/+/master/luni/src/main/java/libcore/io/IoBridge.java#186 May 23 21:03:00 (Called by Socket.close.) May 23 21:03:02 eggie5: http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList May 23 21:07:22 On a side note, httpbin.org is awesome. (Found out about it via the OkHttp recipe page. :) May 23 21:21:19 fmm, if i want to copy LinkedTransferQueue into my project from AOSP, i wonder if i should also copy its superclasses AbstractQueue . etc, even though they would be there - but maybe not the same May 23 21:21:36 this is so stupid :| May 23 21:26:34 Hmm, sounds complex. May 23 21:27:54 LinkedTransferQueueInterpolationManager May 23 21:27:57 haha May 23 21:28:38 this is very objectivecy May 23 21:29:29 LTQ has 2 superclasses and 5 interfaces May 23 21:30:17 Hmm, is there a site like httpbin.org (with the HTTP response delay) but which takes a long time to *connect* (rather than just write)? May 23 21:30:24 I'm finding loads that delay just the write. May 23 21:30:33 if i could get away just copying LTQ.java that would be great, but if there are differences in AbstractQueue between platforms that would be baaaad May 23 21:30:35 (I'm trying to be lazy and avoid setting up my own server.) May 23 21:34:13 g00s: Does LTQ give you much over the existing stuff? (Just curious.) May 23 21:34:35 Hi, is it possible to create a new share option that is accessible by other applications? I don't want it only to be accessbile through the application creating the share option itself May 23 21:34:58 yeah its pretty cool. its similar to SynchronousQueue (with fairness=true) but has depth, you can mix async and sync stuff in there too May 23 21:34:59 SupaHam: yes May 23 21:35:25 Ah, sounds powerful. May 23 21:35:33 JesusFreke, would you be able to guide me through it, All I've seen so far is people creating share buttons in their application May 23 21:36:02 Sup TJ May 23 21:36:09 SupaHam: http://developer.android.com/training/sharing/receive.html May 23 21:36:11 Hey, drose379. May 23 21:36:14 How you doing May 23 21:36:24 Thank you. May 23 21:37:08 Hi everyone, when using YoutubeAPI on my phone there is no problem, but every other users seem to get a "An error occurred while initializing the YouTube player" error, i cant find a way to make it work, ideas ? :) May 23 21:37:20 Kinda drained. One of those days. How 'bout you? :) May 23 21:38:03 Not bad thanks, replacing an activity with a Fragment May 23 21:38:05 Trying to figure it out May 23 21:38:14 How do I call the new fragment from an activity? May 23 21:38:37 no May 23 21:38:59 ? May 23 21:39:30 cant ask that May 23 21:39:37 I already googled it May 23 21:39:41 nothing useful turned up May 23 21:40:12 Forget it May 23 21:40:31 cause there's no calling, should be another keyword here May 23 21:41:04 Just gotta add it to the existing viewgroup May 23 21:41:10 yea, add May 23 21:41:17 that'll turn up results May 23 21:41:22 drose379: It's in the Fragment guide. TL;DR: Declare it in XML or use FragmentTransaction.add/replace in Java. May 23 21:41:38 ok, but I want to get rid of everything in the current activitys layout and only see the fragments view May 23 21:41:41 I can do that right? May 23 21:41:42 I'm not a huge fan of Fragments, personally. Are you sure moving to them is an upgrade? May 23 21:42:23 Not sure, I read that I should try to have as few full activities as possible May 23 21:42:34 And I have an activity that only has one focus, to collect some user input May 23 21:42:47 I thought it would be a good candidate for a frag, no? May 23 21:42:48 I don't agree with that. Activities are what Android is all about. May 23 21:43:21 but they are heavy May 23 21:43:22 Some people talk of having a single activity with multiple fragments... ugh. May 23 21:43:28 regardless of the conclusion, they are heavy May 23 21:43:30 In place of multiple activities. May 23 21:43:39 Hmmm May 23 21:43:48 I dont get it, what's the argument/proof? May 23 21:43:49 I guess ill give the fragment a shot and see what happens May 23 21:44:03 that 1 activity with many fragments is a bad thing, and several activities is a better thing May 23 21:44:50 But fragments are good to serve small functions in the UI May 23 21:46:14 So I want this frags view to replace everything in the current viewgroup May 23 21:46:28 Dont know if im doing it right... May 23 21:46:56 Do I have to set everything in the current viewgroup to View.GONE? May 23 21:46:57 Odaym: My argument is just "Fragments are complicated". May 23 21:47:49 one moment May 23 21:50:36 I've made a full-screen animation that uses 5mb for its 1920x1080 animations, and exponentially less as the screen gets smaller. Is this common usage, or is that going overboard? May 23 21:51:31 sorry, 1920x1080 sprite bitmaps May 23 21:53:38 Havin trouble with Fragment May 23 21:54:22 also googleable May 23 21:55:03 Im getting No View Found for my frag May 23 21:55:41 man you are spending half of the time here and not in the IDE May 23 21:55:56 Ok May 23 21:57:09 I think I have to set everything in my activities view to GONE and then add the Fragment Odaym May 23 21:57:15 Does that sound correct? May 23 21:58:06 why would you have things inside the activity that are not fragments May 23 21:58:10 does it make sense to call View.invalidate(Rect) instead of View.invalidate() if draw() ends up repainting the whole view either way? ie. does simply having a smaller canvas make any difference in visual performance? May 23 21:58:22 your activity should have a framelayout only, the fragments sit inside that framelayout May 23 21:58:46 well unless you have anything else that is common to all fragments, you put those common things in the activity and replace only the volatile stuff May 23 21:59:01 When the fragment is called, I want to get rid of the Activities layout and only show the Fragments layout May 23 21:59:15 I know that May 23 21:59:36 * wakelock waits for the turn May 23 21:59:36 So I need to have a container for the fragment in my activity layout May 23 21:59:45 exactly May 23 21:59:51 that's it.. May 23 22:00:02 But what about all the other elements inside the activity layout May 23 22:00:08 Should I set those to gone? May 23 22:00:33 Guys, anyone can help with the youtube api ? :x May 23 22:00:40 you either go the path of showing things in an activity, or the path of showing fragments that have things inside them in an activity May 23 22:00:52 you cannot be showing things and then want to show a fragment with things May 23 22:01:06 so the "things" should ALSO be in a fragment May 23 22:01:10 Enyxx, meta questions like that usually yield quite poor response May 23 22:01:10 Ok May 23 22:01:11 then you just replace! May 23 22:01:11 Hmmm May 23 22:01:37 the activity should not have a layout of its own other than the toolbar or some other common thing between all the fragments that are going to sit inside it May 23 22:01:40 Thanks Odaym, I think Im starting to get it May 23 22:01:57 whatt May 23 22:02:01 Yeah, I just slide the fragments in whenever I need them May 23 22:02:01 NO! May 23 22:02:03 ? May 23 22:02:09 wakelock, yes it does make sense May 23 22:02:14 starting to get it.. May 23 22:02:16 Yeah May 23 22:02:18 wakelock, since 4.0 onwards of course :) May 23 22:02:18 you will forget it tomorrow May 23 22:02:21 learn it yourself May 23 22:02:24 wakelock: i know, but i did ask the full question previously and got no aswer :p I'll ask once more then x) May 23 22:02:29 I got it man May 23 22:02:30 thanks.. May 23 22:02:40 When using YoutubeAPI on my phone there is no problem, but every other users seem to get a "An error occurred while initializing the YouTube player" error, i cant find a way to make it work, any ideas ? :) May 23 22:03:15 Mavrik, ha, I see. so makes no difference to me but I'll implement it that way anyway. thanks. May 23 22:03:26 Enyxx, are you messing up the debug key May 23 22:03:40 wakelock, the thing is, even if you issue draw commands for full view in onDraw() May 23 22:03:53 the HW accelerated framework will throw away all GPU draw commands outside the passed rect May 23 22:04:05 cool, that's what I was hoping for May 23 22:07:08 Mavrik: no, i even try to change it ... same problem :x May 23 22:08:58 well May 23 22:09:15 you're really not providing any information that could help fix the problem. May 23 22:09:50 Idk what to provide, as YT doesnt give me any other informations that this error message :x May 23 22:10:18 Did you even look at the logcat? May 23 22:10:23 sounds like a key problem May 23 22:10:23 Yup May 23 22:10:56 Logcat print the same thing :x May 23 22:11:02 what THING man May 23 22:11:05 ffffffffff May 23 22:11:24 Odaym if it was a key problem, wouldnt it also show the error on my own phone ? May 23 22:11:37 > "An error occurred while initializing the YouTube player" May 23 22:11:50 the error that your key is wrong would appear on your phone? May 23 22:12:21 The error is both on logcat and replace the player on screen May 23 22:12:31 "An unknown error occurred. For that matter, we're not even sure that it was an error." May 23 22:13:45 Network is working, Youtube app seem to be up to date on every phone ._. May 23 22:14:34 And the player work on my phone. THe app is working perfectly on it May 23 22:14:43 but not on every other phone i've tried it on. May 23 22:20:13 ok TacticalJoke May 23 22:20:49 here's the answer, and the video inside the question should be decisive about what we were talking about about, it's by Eric Burke http://stackoverflow.com/questions/20306091/dilemma-when-to-use-fragments-vs-activities May 23 22:21:47 closed as opinion based! May 23 22:22:12 lol May 23 22:22:15 it's a bogus claim May 23 22:22:23 what he is asking is a real issue May 23 22:24:16 so next time someone asks, we spit that video, great May 23 22:24:22 I don't like the single activity thing, but whatever flows your boat May 23 22:24:34 also videos are poor answers to questions May 23 22:24:45 double combo of generalities :P May 23 22:24:49 yeah - also nav drawer makes everything a pita May 23 22:24:55 why! May 23 22:25:00 I dont even....... May 23 22:25:03 navdrawer is devil spawn :p May 23 22:25:12 videos about programming stuff are better presented as text only May 23 22:25:24 it's just stupid to watch a 10 minute video about something I can read in 30 seconds May 23 22:25:25 Enyxx, http://stackoverflow.com/questions/15458351/#25806861 May 23 22:25:38 I'll tell you what's stupid :) May 23 22:25:39 what would be cool is we specify xml that goes into nav drawer, with fragment class, and it takes care of swapping things out :) May 23 22:25:59 i think the xml menu part is coming soon May 23 22:26:05 Yeah, dealing with Fragment backstack hurts so much May 23 22:26:11 I'm really avoiding them lately May 23 22:26:52 Does OkHttp/OkIo use NIO channels to implement socket-write timeouts? May 23 22:27:00 Hard for me to tell from the source. May 23 22:27:17 s/I/i/ May 23 22:29:36 Okay, it seems to do it manually; just found this: https://publicobject.com/2014/04/12/okio-timeouts-and-deadlines/ May 23 22:30:12 it would be cool if you just had some navigation.xml file that contained the flow, nav drawers, what led to what and the support lib took care of everything May 23 22:32:36 so did the i/o schedule include any firesides yet ? May 23 22:33:32 wakelock: thanks for this, i've already did what is said there, and they have the correct YT version installed... May 23 22:51:08 another question, if I post the same Runnable to a Handler twice, will it be called twice or will the new message overwrite the old one? May 23 22:51:23 I think override, just do handler.removecallbacks May 23 22:51:39 and then post May 23 22:51:54 oh but I *want* it to be called twice :) May 23 22:52:12 what's the end purpose? May 23 22:52:43 no function you need will be correct if called while the first one is still running.. May 23 22:54:22 hmm I thought there's a guaranteed order of execution at least within one message queue, and that posted runnables don't run concurrently May 23 22:54:44 no one mentioned queue May 23 22:54:50 or that it will handle these things for oyu May 23 22:55:21 doesn't posting things to a handler really just push them into a queue? May 23 22:55:29 I dont know May 23 22:55:32 A good tip is to ignore Odaym, he generally doesn't know what he's talking about May 23 22:55:35 maybe this can help http://pastie.org/10204255 May 23 22:55:46 If you post a Runnable twice, it will be run twice May 23 22:55:51 that's what I said May 23 22:56:03 that's what I figured May 23 22:56:09 I do know! May 23 22:56:13 bullshit claim May 23 22:56:13 so my issue must lay elsewhere May 23 22:56:16 I think override May 23 22:56:20 That's not what you said May 23 22:56:29 meaning cancel the first and start the second? May 23 22:56:35 yea bad choice of word May 23 22:56:52 can you answer pm? May 23 22:56:59 i'd appreciate it May 23 22:57:46 a general tip is to not pm people, I've been taught that long time ago ;) May 23 22:58:14 should be the new "keep calm" May 23 22:58:14 Answered May 23 22:58:18 hi guys how to install Android Studio in linux ubuntu? May 23 22:58:19 "Ignore Odaym and don't PM" May 23 22:58:20 haha May 23 22:59:19 guys May 23 22:59:27 how to install android studio in ubuntu May 23 22:59:27 Hulio, by starting the install process presumably May 23 23:00:02 (this is not ubuntu helpdesk) May 23 23:00:11 haha May 23 23:00:27 isnt the ubuntu hype over yet? May 23 23:00:50 there was a hype? May 23 23:01:19 you must be kidding me May 23 23:01:30 yea, everyone was on it May 23 23:01:35 then Mint destroyed everything May 23 23:02:30 ubuntu, mint, same diff May 23 23:02:56 no, Mint has a superior DM May 23 23:04:19 Hey there, is it allowed to ask about Android Studio in this channel? I got a problem and is not directly related to android coding May 23 23:04:33 wouldn't know, I switched to xfce immediately May 23 23:05:07 Hey all. I'm setting my actionbar color programmatically - I noticed when I hit my recent apps / overview button - that the preview shows it with the base theme's app color? May 23 23:05:24 ermartinez, so long as it's not "how do I install" May 23 23:06:11 It's not like that, I will ask, you'll see if you can help me :P May 23 23:06:13 i got this issue: ERROR: Cannot start Android Studio May 23 23:06:13 No JDK found. Please validate either STUDIO_JDK, May 23 23:06:21 how to install JDK? May 23 23:06:25 Nonono, not like that :P May 23 23:06:28 lol May 23 23:06:47 Hulio, again, this is not ubuntu helpdesk May 23 23:07:12 go ask where appropriate May 23 23:07:33 wakelock: i am handling it out of band May 23 23:08:11 I've been struggling to make JUnit and Robolectric to work like for 3 days and now I did it, but an important step is to change a value in the file app.iml and everytime I restart the IDE the value is changed to its original content. So the question is how to keep that file edited (I couldn't find the option in the UI) May 23 23:08:14 :'c May 23 23:08:39 ok, although he really should've gone to #ubuntu May 23 23:10:11 * wakelock is not using JUnit, Robolectric, or AS for that matter, sorry May 23 23:10:25 :( May 23 23:10:27 ah May 23 23:10:29 this must be it May 23 23:10:38 So I'm currently learning Android development! May 23 23:10:58 we all are :( May 23 23:11:02 On a certain chapter in the book, I learned the the DVM will destroy activities when the user changes orientation May 23 23:11:17 Now I could use the savedInstanceState to save a few objects May 23 23:11:29 but how do apps like Netflix or YouTube save so much data during transitions May 23 23:11:59 when users change the orientation of their devices/ May 23 23:12:06 they probably handle rotation changes themselves May 23 23:12:10 They likely tell the framework not to destroy the activity May 23 23:12:47 hmm, I see. May 23 23:13:13 By the way I'm learning via the Big Nerd Ranch Android Programming book May 23 23:13:22 It's actually a lot easier than I imagined to create apps May 23 23:13:24 okay? May 23 23:13:50 this is not exactly the best place for noobs btw May 23 23:14:02 This is #android-dev May 23 23:14:04 so it is May 23 23:14:11 And I'm not a "noob". I'm a beginner May 23 23:14:17 Let us not cheapen this conversation May 23 23:14:59 those words actually mean the same thing AFAIK May 23 23:15:19 hm May 23 23:15:21 those words actually mean the same thing AFAIK May 23 23:15:21 I disconnected. May 23 23:15:27 no May 23 23:15:29 noob is not a word May 23 23:15:32 stop hitting enter! May 23 23:15:39 have a little respect for yourself and the english language. May 23 23:15:49 android ask is downloading at 5.4Mbps May 23 23:15:50 nice May 23 23:15:52 you're not making a good impression here, dude May 23 23:16:05 wakelock: I'm not here to make friends. May 23 23:16:23 then don't complain when you get bashed May 23 23:16:40 okay/ May 23 23:16:42 ? May 23 23:17:09 just move along May 23 23:17:09 Contrary to the belief of many, a noob/n00b and a newbie/newb are not the same thing. Newbs are those who are new to some task* and are very beginner at it, possibly a little overconfident about it, but they are willing to learn and fix their errors to move out of that stage. n00bs, on the other hand, know little and have no will to learn any more. They expect people to do the work for them... May 23 23:17:10 http://www.urbandictionary.com/define.php?term=Noob May 23 23:17:12 :) May 23 23:17:34 credible source May 23 23:17:42 indeed May 23 23:17:43 yes May 23 23:17:51 hahaha May 23 23:17:56 I just jumped in here, what did I miss? Some n00b bashing? May 23 23:18:04 ugh May 23 23:18:12 winning hearts and minds here, ladies and gents May 23 23:18:14 hearts and minds... May 23 23:18:34 I thought you are not in here for that May 23 23:18:58 I mean don't ostracize newcomers May 23 23:19:09 I may be new to the Android SDK but certainly not to programming May 23 23:19:33 I was merely making an observation about how Android activity management before you started this mess. May 23 23:19:39 dont mind him, I havent seen him answer a question without making you feel grateful that he did May 23 23:19:44 please move on May 23 23:20:11 * surf2b1 makes sure he isn't in ##java May 23 23:20:57 that channel is hell May 23 23:23:13 bankai_ pretty good with rx by now? hot & cold observables ? May 23 23:23:26 i hate a simple Q May 23 23:23:29 *have May 23 23:23:43 oh.... i know enough to do the things i do lol May 23 23:24:23 ok well, in my MVP presenter i have a property, foo. Its just a BehaviorSubject so that the UI binds to it and gets the last value May 23 23:24:54 but the model's observables are cold, and i need to transfer the value from a cold observable to that hot observable May 23 23:25:40 * wakelock checks this is in fact #android-dev too May 23 23:26:07 * darkchaoz cant fix the database issue May 23 23:26:10 if i say something like Observable bar = ... and then bar.subscribe(myHotObservable) ... this won't work May 23 23:26:32 because ... it will pass onComplete to the hot observable, and it will complete also May 23 23:26:42 but thats the point, its not supposed to ever complete. any ideas ? May 23 23:33:14 gn May 23 23:33:52 so I have a background service running, when the app close it tries to run again but the bundle data returns null at that point May 23 23:34:01 or should I be storing it in a preference file or something May 23 23:34:26 Odayam still cant fix it. May 23 23:35:05 Just kidding. Managed to fix it May 23 23:35:14 Along with the database May 23 23:37:21 g00s: nuh sorry :/ May 23 23:53:51 This seems like a good place for Android noobs to me. After all, it's an Android-app-development help channel. :) May 23 23:58:34 Hey everyone, I'm following this GitHub code (https://github.com/commonsguy/cw-omnibus/blob/master/AppCompyat/Share/src/com/commonsware/android/sap/MainActivity.java) for implementing a Share item in my v7 support toolbar. Everything works I guess except the icon doesn't respond to any clicks - what would I be doing wrong? May 23 23:59:37 Lonesoldier728: i think it depends on what you return from onStartCommand May 24 00:00:01 but sp is a def way to make sure May 24 00:00:31 toastcfh: are you uiing action bar or toolbar? May 24 00:04:14 lasserix does this make sense http://pastebin.com/S44cFvh3 May 24 00:10:24 http://stackoverflow.com/questions/30418821/trying-to-have-the-video-upload-in-the-background-but-crashes-android That is me explaining the issue May 24 00:10:55 t0astt: override onOptionsItemSelected(MenuItem item) and check if the item.getId() is R.id.share May 24 00:11:48 surf2b1: I got it, I missed the setShareIntent() May 24 00:12:27 t0astt: cool. Never used ShareActionProvider so what is there should work May 24 00:13:22 Lonesoldier728: the bundle intent is what you use to startservice? May 24 00:13:32 yes May 24 00:13:40 You want to see that code, it is a simple intent May 24 00:13:54 the toast gets called in startCommand May 24 00:14:03 Yeah it works now. Thanks for the help anyways! Different topic: My client wants me to implement footer ads on the app, I was thinking just insert a layout that holds the ad aligned to the bottom of the screen? Or is there more to it? May 24 00:16:14 Lonesoldier728:START_REDELIVER_INTENT May 24 00:16:14 If the system kills the service after onStartCommand() returns, recreate the service and call onStartCommand() with the last intent that was delivered to the service. Any pending intents are delivered in turn. This is suitable for services that are actively performing a job that should be immediately resumed, such as downloading a file. May 24 00:16:16 All day I have been stuck on this video upload and doing it in the background even if someone kills the app May 24 00:16:20 not start-sticky May 24 00:16:46 start sticky does not redeliver the intent May 24 00:17:34 kk, well that is why I actually stored it in a pref file that works still May 24 00:17:44 let me see if the first crash occurs now May 24 00:19:05 thanks that avoided the first crash May 24 00:19:13 lets hope no crashes show! heh May 24 00:21:51 lasserix thank you I think you have done it! May 24 00:32:27 This is interesting: if I throw an (uncaught) exception in a background thread, I get VisibleActivity.onPause, VisibleActivity.onDestroy, etc. as the app crashes. May 24 00:33:44 After the app crashes, according to LogCat. May 24 00:47:08 yo dog, we heard you like event handlers, so we put an uncaught exception in your onDestroy(), so you can crash while you crash. May 24 01:01:46 someone left me a 1* review because Dropbox sucks, my response: May 24 01:01:48 Dropbox sync does not work because Dropbox does not implement android storage access framework. This needs to be fixed by Dropbox. If you want sync, use a compatible cloud drive, such as Google Drive, Box.net, and OneDrive. Also, this is not an appropriate support forum. Try leaving a 1* review for Dropbox, maybe that will get them to fix it. May 24 01:01:52 heh May 24 01:03:07 hey, does anyone know a trustworthy prepaid/virtual creditcard service? I want to pay the registration fee for google play but I don't have a CC May 24 01:06:48 pfn i'd just change the end from "Try leaving a 1* review for Dropbox, maybe that will get them to fix it." to something like "Try submitting feedback to Dropbox so they can add that feature" May 24 01:07:36 no, it's intentional sarcasm May 24 01:07:53 clearly 1* reviews are great at making do what one wants May 24 01:08:58 i just find its best not to show your frustration ;) May 24 01:09:18 actually, i haven't replied to any of my comments May 24 01:12:50 I don't particularly care, May 24 01:13:39 but I hate dumb things May 24 01:20:47 I'm working on an app for a client who will be paying me 50% ad revenue generated from the app. How should I get the app to the Play Store: through his account, or through mine? May 24 01:21:21 t0astt lol, you are working for peanuts ? May 24 01:21:44 t0astt, depends on who owns the ip May 24 01:21:54 :P it's a relatively simple app (just a newsreader) May 24 01:22:14 I'm also new-ish to android dev, so I want to be able to have something in the play store with my name on it May 24 01:22:24 Who is paying you? Just being nosy. :D May 24 01:22:43 the client is paying me. May 24 01:37:56 Macadamia Nut Cookie May 24 01:38:52 http://www.androidpolice.com/2015/05/23/rumor-android-m-will-come-with-an-update-guarantee-for-nexus-devices/ May 24 01:43:17 ./r/Android calls it "exciting": http://www.reddit.com/r/Android/comments/3714d9/rumor_android_m_will_come_with_an_update/ May 24 01:43:43 Oops. lol May 24 01:43:45 I can't read. May 24 01:44:04 I'm so used to their cult mentality that I misread them. May 24 01:45:19 i agree with the commenters on androidpolice - too short support May 24 01:45:39 why can't they match apple ? May 24 01:46:03 Hey guys, what do you prefer as a language for a backend API to your app? May 24 01:46:34 Right now I use Java, on Tomcat with Jersey May 24 01:46:35 ruby all the way May 24 01:46:44 lol ruby May 24 01:47:02 PHP gets a lot of hate but it gets the job done. May 24 01:47:12 lol php May 24 01:47:20 what about DB stuff? SQL no a noSQL approach like reddit? May 24 01:47:23 reddis May 24 01:47:32 or a* May 24 01:47:35 plaintext May 24 01:47:36 idk May 24 01:47:41 well reddit is constantly going down, so i wouldnt' emulate them much May 24 01:47:42 depends on application May 24 01:47:50 just db stuff really May 24 01:47:56 oh, stuff May 24 01:48:00 yeah go with database then May 24 01:48:04 put, delete, edit May 24 01:48:11 get May 24 01:48:12 idk, sqlite? postgres? May 24 01:48:19 large scale though May 24 01:48:23 postgres May 24 01:48:35 maybe something like redis May 24 01:48:42 I've used sqlite for small test stuff but I'm afraid it would break with 100k people using it May 24 01:50:44 sqlite is an embeddable database May 24 01:50:49 wrong use case May 24 01:51:11 yeah sqlite is mostly for very small scale usage, which includes testing May 24 01:51:36 ruby on rails, for example, is often used with sqlite in testing and postgres in production I think May 24 01:53:14 MySQL and PHP. I don't do a lot of backend/web stuff. Why does that approach get so much hate? May 24 01:54:02 hi guys, anyone is available tonight? May 24 01:54:40 Hulio: about to watch the UFC fight :) Just ask a question and someone will reply if they can May 24 01:54:52 ok May 24 01:55:39 on android emulator. it said swipe to unlock. May 24 01:55:43 how to swipe? May 24 01:55:52 i click the mouse from left to right, didn't work May 24 01:55:56 use your mouse May 24 01:55:59 do it slowly May 24 01:56:23 nope not working May 24 01:56:27 Hulio: check out https://www.genymotion.com/ for a better emulator May 24 01:56:36 welp, I'm off to bed now May 24 01:57:14 did some sweet three hours of kickstarting a new app that might go pretty viral in the csgo community May 24 01:57:16 there's a cost May 24 01:57:31 Hulio: It works. Just drag. May 24 01:57:49 anwyay, i click on camera May 24 01:57:54 alternative :) May 24 01:58:01 it open a camera then i click home May 24 01:58:53 What's a good connect-timeout value for a reddit app? 10 seconds? May 24 01:59:01 1 second May 24 01:59:20 :D May 24 01:59:49 TacticalJoke use tag manager and configure it from the your dashboard :) May 24 02:00:52 Hmm, didn't know about Tag Manager. Seems like a lot of power. ;o May 24 02:01:17 it would be awesome if you could push arbitrary json to datalayer, right now i think its just k/v May 24 02:01:28 of course you could stuff whatever in the key maybe May 24 02:01:36 i mean value May 24 02:03:31 This seems so pointless: http://www.reddit.com/r/Android/comments/3715r0/we_are_the_mods_of_randroid/ May 24 02:04:23 yeah kind of May 24 02:05:48 "We are the mods of /r/Android. You might recognise us from such threads as 'KitKat has been announced' and 'Material design is awesome!'". May 24 02:06:33 i miss usenet May 24 02:07:13 Yeah. The only power people had was their kill-file. May 24 02:08:01 Usenet clients were pretty powerful (though they sometimes took a while to learn). May 24 02:08:06 I actually made an NNTP client once. :D May 24 02:08:06 Redis looks messy for things other than quick access to data.. May 24 02:08:42 I think I'll start on SQL.. but any recommendations as far as language? Java, PHP or Python? May 24 02:08:51 Java, I know best. Python second best May 24 02:09:23 i need something highly scaleable May 24 02:09:53 For programming Android? May 24 02:09:54 java is more scalable May 24 02:12:11 g00s: It's funny how the Internet has changed between then and now. In those days, all the crazy online people existed (in, for example, the uber-racist newsgroups) but they were limited to text. Nowdays, they have selfies, voice chat, etc. The full gamut. May 24 02:12:44 TacticalJoke yeah May 24 02:13:19 Nowadays* May 24 02:13:20 Tricknology can't go wrong with java on the server; i guess you need to find a provider that lets you do that May 24 02:13:32 hosting service, whatever May 24 02:13:55 tons of mature stuff for the jvm in that role May 24 02:16:20 thats where i always thought java's sweet spot was - server. meh desktop, yuck mobile May 24 02:16:47 not me, I'd rather trust PHP May 24 02:16:50 yuck embedded :) May 24 02:17:06 when I dealt with java on server side , it was unstable, slow and a hog May 24 02:17:11 yiati, for backend May 24 02:17:33 g00s no problem with that May 24 02:17:45 but that was in the late 90's ;) May 24 02:17:46 looking at vps to start, with full access to the VM May 24 02:17:51 CentOS May 24 02:18:17 I've done it before, Java/Jersey RESTlet on Tomcat 7 backend May 24 02:18:20 shmooz lol that was java 1.2 May 24 02:18:40 just wondering what, if any, a better alternative would be. May 24 02:18:42 yeah, swing had just come out May 24 02:18:45 Tricknology yeah there is all kinds of stuff rabbitmq, vertx, netty May 24 02:18:48 I can crank out a backend in a weekend. May 24 02:20:28 do i start new project as no activity? May 24 02:20:32 i'm new May 24 02:21:14 Depends on what you want May 24 02:21:21 but probably you don't want no activity May 24 02:21:49 oh May 24 02:21:50 an activity or fragment contains the UI elements that you interact with.. buttons, etc May 24 02:21:55 ok let me delete it then May 24 02:21:58 create a new project May 24 02:22:02 good plan May 24 02:22:08 AS or Eclipse? May 24 02:22:18 Android Studio May 24 02:22:42 here you go: http://www.vogella.com/tutorials/Android/article.html#androidstudio_startproject May 24 02:22:57 Vogella has a tutorial on everything. May 24 02:23:29 yep May 24 02:23:35 It's how I learned :) May 24 02:23:53 backend stuff, IBM though I think May 24 02:24:09 some tut of theirs, I just followed it kind ablindly May 24 02:24:23 but it works pretty well May 24 02:24:45 http://www.ibm.com/developerworks/library/wa-aj-tomcat/ May 24 02:32:45 Anyone in here from the LA area? May 24 02:33:45 been a long time since i used tomcat May 24 02:33:51 oh , the xml configurations :D May 24 02:39:59 Hello, I am new to android dev and I am building a simple app. My app crashes when the count goes to 4. http://pastie.org/private/3zbroe5jb6ehy8pl84nuaq#41-42,45,49 Can anyone tell me what the reason could be? There's a lot of data on the LogCat so I can't pinpoint the error. I am using Android Studio 1.2 BTW May 24 02:40:02 Not super necessary now g00s May 24 02:40:19 you can run a server out o fthe box without a web.xml May 24 02:40:26 at least with the implementation I use May 24 02:40:36 if you want to set ports then it's.. somewhere else May 24 02:41:02 Q: Where/how would be best to serve images? May 24 02:41:35 probably not a database, right? I was thinking a folder somewhere with children linked to entries in the database May 24 02:46:48 DarkSector: LogCat needs to be your friend, find the "Exception" in there May 24 02:47:34 yiati there are so many http exceptions, how do I get rid of them? May 24 02:48:13 DarkSector: If they are being swallowed, but logged then they should be green in AS, the top on in red is the cause May 24 02:48:25 s/on/one/ May 24 02:48:46 maybe not green, but not red May 24 02:49:11 DarkSector, there is something wrong with your logic at the top May 24 02:49:25 aspire which part? May 24 02:49:35 the logic at line 41 May 24 02:49:41 meh ignore my color speech, just look for the exception at the top, fix it, and keep working from there May 24 02:49:53 then, bam, problem solved May 24 02:50:00 lets say count = quoteList.size() - 1 ok? May 24 02:50:01 compilers are nice :D May 24 02:50:08 okay May 24 02:50:17 if count is quoteList.size()-1, count satisfies that condition May 24 02:50:19 Oh I just realized it's an indexing issue May 24 02:50:20 so now you increment it May 24 02:50:21 sorry but go on May 24 02:50:26 now count = quoteList.size() May 24 02:50:42 now the highest accessible index you can access a list is size-1 May 24 02:50:53 Ah so after click it's trying to go to size() May 24 02:50:57 right? May 24 02:51:03 you should check to see if count < size-1 May 24 02:51:16 O_O yes! you're right May 24 02:51:17 considering you are incrementing before accessing May 24 02:52:08 Yes, you're right May 24 02:52:25 Sorry, I come from Python, so it's gonna take me a while to get used to this May 24 02:53:03 Perfect, it works :) May 24 02:53:05 Thanks aspire May 24 02:53:19 based on your code though it seems like you want to increment at the end of the method May 24 02:53:24 what about the very first quote at index = 0 May 24 02:56:31 I think it's still showing up since it resets if the index = quoteList.size() May 24 02:56:50 But it shows up on the n+1th click so yeah, it doesn't show up in the beginning May 24 02:57:18 yup **** ENDING LOGGING AT Sun May 24 02:59:59 2015