**** BEGIN LOGGING AT Wed Jun 17 02:59:59 2015 Jun 17 04:22:10 CedricBeust: can you put sample java file to Easy SQL reads post Jun 17 04:22:58 it is easier to pick source sample than reading, although your writing style is very nice to read Jun 17 04:24:54 squ: Thanks but I think there's enough in the blog post to make up a working example Jun 17 04:24:59 and how do you perform ‘getWritableDatabase();’ per activity, static (per application), or on each ‘getUsers()’ function call Jun 17 04:25:16 The db helper gives you getWritableDatabase() Jun 17 04:25:42 so, in activity onCreate? Jun 17 04:25:59 er... no, db helper makes this method available to you Jun 17 04:26:47 what do you mean? Jun 17 04:27:26 http://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html#getWritableDatabase() Jun 17 04:28:10 and Jun 17 04:28:49 you open the database for writing on method construct? Jun 17 04:29:15 >> I usually create one Java class per table and these tables are then managed by my SQLiteOpenHelper. Jun 17 04:29:19 Get a writable db if you're going to write, a readable db if you're going to read. Read the db Jun 17 04:29:25 :) Jun 17 04:29:43 My class that extends SQLiteOpenHelper is the only way to access the persistenc elayer Jun 17 04:29:53 I want my Android wear application to stream data to a desktop application using the local network, how is a good way to approach this? Jun 17 04:36:53 Snicers-Work, over wifi? Jun 17 04:37:37 Well I imagine I need to stream the data to the android mobile application and from there use the wifi to maybe connect to a web socket server? Jun 17 04:38:05 So over bluetooth to phone and then over wifi to a server that is on the local network. Jun 17 04:38:28 redengin, ^ Jun 17 04:38:39 I wouldn't expect the watch battery to last long maintaining a wifi stream Jun 17 04:39:01 ah, I see, are you familiar with BLE? Jun 17 04:39:09 I am not. Jun 17 04:39:43 well, check that out, its a bit different than maintaining a socket (if you want something like a network socket you'd use SPP) Jun 17 04:40:24 the difference is that GATT over BLE is event driven, so the connect only gets activated when data is generated Jun 17 04:40:28 Well the socket would be maintained by the phone. I think I need to use the Wearable Data Layer for this correct? http://developer.android.com/training/wearables/data-layer/index.html Jun 17 04:40:55 I definatly want an event driven approach. Jun 17 04:43:50 I'm not familiar with the wearable data-layer, and the page you linked is too abstract to know how it gets the job done Jun 17 04:44:29 k, I will dig around some more. Jun 17 04:44:46 I definatly think I am doing something that isn't really intended for watches to do. Jun 17 04:44:56 But that's the fun of experimenting I suppose. Jun 17 04:44:59 hey I have a question about runnables.. I have a method that displays log messages in a textview via a new runnable instance.. should I be concerned with messages being displayed in order? Jun 17 04:45:06 its pretty straightforward already to make a bridge from GATT to a stream Jun 17 04:45:23 redengin, any source that explains how? Jun 17 04:45:41 redengin, I'm working on one now, I'll post when I get done Jun 17 04:46:13 tricknology_: Where are you passing the Runnables? Jun 17 04:46:24 It's a question about Handler.post or something, I guess. Jun 17 04:46:27 Tricknology: First of all, you should be concerned you are updating your UI on the correct thread Jun 17 04:46:28 through a callback, it could be anywhere Jun 17 04:47:34 Looper.getMainLooper()).post(new Runnable()... Jun 17 04:47:37 Fix that first Jun 17 04:50:03 new Handler(Looper.getMainLooper()).post(new Runnable() {…} Jun 17 04:50:26 the first one was good, so you have that down, good Jun 17 04:50:56 meh it works :) Jun 17 04:51:14 not sure about the order of messages but as long as they get there it’s ok I guess. Jun 17 04:51:55 just wondering, if it did matter, should I create a synchronized/lock with some pooling action? Jun 17 04:51:59 or is that overdoing it Jun 17 04:52:17 No it makes sense if you want to make sure your messages are serialized Jun 17 04:52:43 ok. In this case I put time stamps in the messages, they are coming through in order down to the 0.001s Jun 17 04:52:48 The most important thing is when a string is added, it can't be chopped up. After that, if two threads add a string to the central queue then whoever gets there first gets displayed first Jun 17 04:52:56 some on the same 0.001s Jun 17 04:53:09 yeah I understand that much Jun 17 04:53:23 concurrency heaven Jun 17 04:53:38 Thanks CedricBeust and TacticalJoke Jun 17 04:58:01 tricknology_: How many background threads are calling Handler.post? Jun 17 05:04:08 tricknology_: Handler.post ultimately calls MessageQueue.enqueueMessage, which has a synchronized statement all around it. Jun 17 05:04:26 The documentation also makes some guarantees surrounding message ordering. Jun 17 05:04:32 TacticalJoke: Not sure it's relevant, on a mobile phone, the contention is never going to reach noticeable amounts Jun 17 05:05:20 What is tricknology_ even asking? :D That's what I'm trying to figure out. Jun 17 05:05:35 I think he's asking about ordering guarantees relating to Handler.post. Jun 17 05:05:53 Yeah and the only guarantee is whoever gets there first gets there first Jun 17 05:06:31 TacticalJoke, not many, liek main or background that’s it Jun 17 05:06:33 onle 1 background Jun 17 05:07:14 It is possible for the thread to send a message while the main UI is updating but that case is pretty far off for this Jun 17 05:07:21 Since only one thread is calling Handler.post, it's really simple. Jun 17 05:07:28 They're simply posted in order. Jun 17 05:07:30 especually for debug messages in a demo app :P Jun 17 05:07:46 tricknology_: It doesn't matter if the thread sends a message while the UI is updating. Jun 17 05:07:52 well it could either be main UI’s callback instance or thread’s callback instance Jun 17 05:07:55 The message queue is processed only when it's ready. Jun 17 05:07:59 i see Jun 17 05:08:02 good to know Jun 17 05:08:03 thanks Jun 17 05:13:19 For example, if you handled a button click by calling `Thread.sleep(20000);` and during this time the background thread called Handler.post, that Runnable would not run for a long time (since the message queue wouldn't be processed until the button-click handler had returned). Jun 17 05:38:15 If anyone here has worked with Xposed Framework, is it possible to overwrite parameters that a method accepts? In this case, a method accepts an Intent. I'd like to replace the contents of the intent. Jun 17 05:45:44 redengin, figured it out using Node API to get the bluetooth device and message API to stream the message I need. Jun 17 05:49:09 Snicers-Work, hmm, is it using BLE (GATT)? Jun 17 05:51:57 I believe Google API Client is. Jun 17 05:52:10 I think it abastracts that away from the developer though Jun 17 05:53:09 I will monitor battery performance and see. Jun 17 06:02:11 has anyone used unity? thoughts? Jun 17 06:20:50 hey guys, is there a way to pass custom headers, along with the post body in the webview? I cant seem to find anything on this. Jun 17 06:29:47 dhanush: set your own WebviewClient and take care of the appropriate callbacks Jun 17 06:29:47 http://developer.android.com/reference/android/webkit/WebViewClient.html Jun 17 06:31:03 thepoosh: I dont quite understand. How will handling the callback help me in sending headers + body in a post request? Jun 17 06:32:01 http://developer.android.com/reference/android/webkit/WebViewClient.html#shouldInterceptRequest(android.webkit.WebView, android.webkit.WebResourceRequest) Jun 17 06:38:42 Bonjour! Jun 17 06:41:09 Did anybody see RecyclerView randomly crashing when you put it inside a Fragment? Jun 17 06:41:27 All the stack overflow answers suggest that one must have forgotten to put a layout manager Jun 17 06:41:36 I have a layout manager set, still this issue Jun 17 06:45:28 SheikhAman: http://imgur.com/jacoj Jun 17 06:51:34 thepoosh : Here you go - https://gist.github.com/Sheikh-Aman/d35b482aa0446bcf85d5 Jun 17 07:23:03 SheikhAman: https://code.google.com/p/android/issues/detail?id=82199 Jun 17 07:30:32 Thanks! Jun 17 08:11:19 http://www.itworld.com/article/2936575/security/software-applications-have-on-average-24-vulnerabilities-inherited-from-buggy-components.html Jun 17 08:12:33 g00s: sounds about right Jun 17 08:12:55 Hi, I'm populating an array randomly with strings from three arrays. As soon as I move on to an index higher than 0 for the array to be populated, I get the error java.lang.ArrayIndexOutOfBoundsException: length=2; index=-12 and similar. Here is my code: http://pastebin.com/cx3HmCM7 Jun 17 08:13:14 d0https://www.nowsecure.com/blog/2015/06/15/a-pattern-for-remote-code-execution-using-arbitrary-file-writes-and-multidex-applications/ Jun 17 08:13:23 * g00s: https://www.nowsecure.com/blog/2015/06/15/a-pattern-for-remote-code-execution-using-arbitrary-file-writes-and-multidex-applications/ Jun 17 08:13:38 "“I have encountered vulnerable open-source software in the remotely connected parts of automobiles that was exploitable and could put people’s lives in danger,” oh boy Jun 17 08:13:44 can't wait for self driving cars Jun 17 08:14:18 TwistedBlizzard: String[] blackCards = new String[rounds]; Jun 17 08:14:24 rounds is zerop Jun 17 08:14:27 *zero Jun 17 08:14:28 thepoosh interesting thanks Jun 17 08:14:49 np, saw it in the facebook israeli defcon group the other day Jun 17 08:15:09 looked nice, but it requires control over the additional resources website Jun 17 08:15:31 thepoosh: I thought it was being pulled from the SharedPreference Jun 17 08:15:49 with a default value of zero Jun 17 08:15:52 so... Jun 17 08:16:31 length = 2 Jun 17 08:16:36 index = -12 Jun 17 08:17:09 TwistedBlizzard, man you're creating a new Random object per loop Jun 17 08:17:17 +1 Jun 17 08:17:18 You should like have one for your entire app Jun 17 08:17:38 But that's unrelated to your problem Jun 17 08:18:15 I dont' see anything that would justify having an index of -12 at one point Jun 17 08:18:24 I mean I didn't check the borders, -1 maybe, -2 at worse Jun 17 08:18:29 How the hell can this code produce -12 Jun 17 08:18:47 I just created a log event for the rounds int and that is working fine Jun 17 08:18:54 Oh wait Jun 17 08:18:57 I found your problem Jun 17 08:19:12 Well Jun 17 08:19:16 At least line 29 is completely wrong Jun 17 08:19:28 Not sure if that could lead to -12 in the else though Jun 17 08:19:42 Should be "i < tab1Size + tab2Size" Jun 17 08:19:43 I guess Jun 17 08:21:23 Thank you! I'll fix it and see if my problem goes Jun 17 08:23:43 Ok, so the error is now stuck at length = 19 index = -1 Jun 17 08:24:20 There that's a more normal problem Jun 17 08:24:26 Check all your corner values everywhere Jun 17 08:24:32 I see a lot of +1, -1 Jun 17 08:24:40 triple check all of that Jun 17 08:25:30 Shall do - thanks for your help! Jun 17 08:26:06 how can i convert my number to international format my number is this 03448797786 how can i add my country code in it ? Jun 17 08:27:36 just convert the first 0 Jun 17 08:28:05 .replace("^0", countryCodes.get(daLang)) Jun 17 08:32:19 danijoo, I want it automatically.. detect the country code and add with it not only with my number.. Jun 17 08:32:25 Ribesg Jun 17 08:32:43 what do you mean with automatically? Jun 17 08:32:51 without writing the code for it? :p Jun 17 08:33:48 no no .. thats not what i mean Jun 17 08:34:43 then you got a working code snippet. what do you mean? Jun 17 08:34:58 i want to write a method that will add country code to icoming call. Jun 17 08:35:18 any number from the world. it will add its country code Jun 17 08:35:34 danijoo, Jun 17 08:35:44 yeah that would be help full :) Jun 17 08:35:51 dont get it. Jun 17 08:36:02 why cant you use the given method for that Jun 17 08:36:46 i cant find any proper method that will add county code for the incomming call. Jun 17 08:36:54 you have to write it Jun 17 08:37:01 see Ribesg answer Jun 17 08:37:19 what is daLang ? Jun 17 08:37:19 or do you mean adding it to the stock phone app? Jun 17 08:37:38 danijoo, there's no way to get the currently used language? Jun 17 08:37:52 Ribesg, there is. Jun 17 08:38:10 Then that's it Jun 17 08:38:18 getResources().getConfigurtion().locale Jun 17 08:38:39 s9iper1, before you listen to any retarded suggestions here. Jun 17 08:38:55 Know that parsing phone numbers is a hard problem that will cause issues to people if you do it dumbly. Jun 17 08:38:57 So use this: https://github.com/googlei18n/libphonenumber Jun 17 08:39:14 Hello. I'm trying to implement subscription payment using the sample code from the google "gas game" example. Unfortunately I keep getting this error when I launch the purchase window.. "Error while retrieving information from server ..prc s-7 aec-0..." Any ideas? Jun 17 08:39:17 Someone already thought about all the corner cases and gives you an API which can reformat numbers. Jun 17 08:39:33 hi everyone, how to track the distance by uising google maps ? I'm already getting the coordinates. Jun 17 08:40:03 rohit7roy, Location.distanceBetween Jun 17 08:40:25 Ribesg: my problem is fixed but earlier you said I should have a single Random object for my entire app. Would the way to go about it be to write a method in main and then call it from wherever it's needed or should the method be in the class in which it is being used? Jun 17 08:40:26 no no actually i am wrtting an app that will save the contact number and when that specific number calls you it give a popup: so before saving to DB i want to convert that to international number and after that when the call comes i will compare that number with the DB number.. Jun 17 08:40:42 Mavrik: right now i'm working on a app to track delivery guys Jun 17 08:40:51 Yay. Jun 17 08:41:09 TwistedBlizzard, I'm not sure, I just use a "global variable" in Kotlin (not really but it's kinda it) Jun 17 08:41:09 s9iper1, yes, use libphonenumber to parse it and convert to international format. Jun 17 08:41:18 s9iper1, there's an example like 10 lines down the paeg. Jun 17 08:41:20 *page Jun 17 08:41:22 ok tahnks :) Jun 17 08:41:29 Mavrik: so i need to track the total distance travelled by them Jun 17 08:41:33 System.out.println(phoneUtil.format(swissNumberProto, PhoneNumberFormat.INTERNATIONAL)); Jun 17 08:42:24 rohit7roy, and? Jun 17 08:42:35 There's no magical "Location.implementMyApp()" API Jun 17 08:42:55 Mavrik: i know that... Jun 17 08:43:20 How do you know which route the delivery guy took? :D Jun 17 08:43:26 rohit7roy, I mean, what's your actual issue? Jun 17 08:43:27 i'm aasking if there are any good apis for such tracking Jun 17 08:43:43 well, use fused location provider to give you movement updates Jun 17 08:43:57 distance travelled you'll have to calculate on your own Jun 17 08:44:39 anyway, can someone help me with my "prc s-7 aec-0" error? Jun 17 08:45:08 Mavrik: distanceTo and DistanceBetween are the 2 methods available but are these reliable enough ? Jun 17 08:45:43 what do you mean reliable? Jun 17 08:45:56 They just give you a direct spherical distance between to WGS84 coordinates Jun 17 08:46:01 It's math, nothing unreliable there. Jun 17 08:46:20 ok Jun 17 08:46:20 They won't account for GPS signal precision and other errors Jun 17 08:46:33 *between two WGS84 Jun 17 08:46:48 i need something like tracking there path Jun 17 08:46:54 so you'll have to implement an algorithm that will calculate distance travelled on a period while taking into account inaccuracies Jun 17 08:47:03 if i start an activity to display a MyThing, and i want the activity to remember its properties, should i then use Parcelable and place it in a bundle-extra in onSaveInstanceState etc? Jun 17 08:47:11 and the fact that you can lose GPS track, that GPS accuracy can vary, etc. Jun 17 08:47:14 or what are my options Jun 17 08:47:43 osxorgate, how long do you want the state to persist? Jun 17 08:48:09 Mavrik: thanks :) Jun 17 08:48:09 Mavrik: uhm.. across activity destroys ? not sure why you ask Jun 17 08:48:32 Mavrik: i need something to track their path Jun 17 08:48:55 osxorgate, well there's a difference if you want the settings to be persisted over orientation change and process deactivation and if you want the properties to be stored permanently Jun 17 08:49:27 Mavrik: orientation changes then, not store it in a db or whatever Jun 17 08:49:52 onSaveInstanceState() Jun 17 08:49:57 and restore it in onCreate Jun 17 08:50:05 yeah ok, but then Parcelable Jun 17 08:50:09 or Serializable Jun 17 08:50:12 yes, definetly parcelable Jun 17 08:50:16 Serializable is like 100x slower Jun 17 08:50:20 alrighty Jun 17 08:50:24 you don't want your orientation change to skip animation frames Jun 17 08:50:33 IcePick is a nice library that helps there Jun 17 08:50:35 and AutoParcel :) Jun 17 08:51:15 ok cheers Jun 17 08:51:31 anyone know what the market share of android 4.4.3+ is like? BLE seems a total mess before then Jun 17 08:51:52 samskiter: https://developer.android.com/about/dashboards/index.html?utm_source=suzunone Jun 17 08:52:10 osxorgate: ? 4.4.3 not 4.4.x Jun 17 08:53:51 should be close to 4.4.x Jun 17 08:54:06 most phones receive updates in 3rd period Jun 17 08:54:31 "Error while retrieving information from server ..prc s-7 aec-0..." on my new subscription payment implementation .. Any ideas? Jun 17 08:55:13 Ribesg: I've not come across Kotlin before, I was thinking something like this would be better: http://pastebin.com/Pb4TYYTM Jun 17 08:56:21 TwistedBlizzard, http://pastebin.com/UKZjTJTV Jun 17 08:56:43 this way you recycle your rnd instance instead of creating a new one for every call Jun 17 08:57:26 Mavrik, that library giving me my country code +41 but actually mine is +92 Jun 17 08:57:45 I use this https://github.com/Ribesg/Encypokedia/blob/master/PokeApp/src/main/kotlin/fr/ribesg/android/encypokedia/Globals.kt#L9 Jun 17 08:57:56 But I'm not sure what the correct way of doing it in Java is Jun 17 08:58:27 Ribesg, really? .. :/ Jun 17 08:58:31 s9iper1, that's because you dumbly copy pasted code without understanding what it does. Jun 17 08:58:42 thats even bad style in kotlin ^^ Jun 17 08:58:43 hah Jun 17 08:58:55 the example sets the country code to switzerland. Jun 17 08:59:07 hence +41. Jun 17 08:59:24 is there any way that it automatically detect the code ? Mavrik Jun 17 09:00:04 danijoo, I just don't get why there's not a single instance in the Random class and why everything isn't just static calls Jun 17 09:00:10 Why would you use multiple Random instance Jun 17 09:00:20 Random should be a singleton Jun 17 09:00:24 different seed Jun 17 09:00:30 Ribesg, no it shoudnt Jun 17 09:00:38 and no it shouldn't Jun 17 09:00:48 do you also have global singeltons for stringbuilder? Jun 17 09:01:01 and all other stuff like that? Jun 17 09:01:05 you can make a singleton of a random instance if you're not please with the implementation Jun 17 09:01:16 you should create an instance where needed. if you need it multiple times in a class, use a variable Jun 17 09:01:24 but theres no point in exporting it globally Jun 17 09:01:29 s9iper1, according to what? Jun 17 09:01:58 e.g. how do you know which country the phone number / call is coming from? Jun 17 09:02:37 (it's not a trivial problem) Jun 17 09:03:42 are you processing calls or contact numbers? Jun 17 09:05:16 Anyone know if its possible to merge a bitmap into a video? Jun 17 09:05:52 chrisaardal, in what way? Jun 17 09:06:27 I have a edittext, which im getting drawingCache from. I want to merge this as a overlay into the video Ive recorded Jun 17 09:06:40 like a caption on Snapchat Jun 17 09:07:07 and you're doing this on which api? Jun 17 09:07:10 That's... possible but not trivial. Jun 17 09:07:34 hint: it's called watermark Jun 17 09:07:46 and indeed it's not trivial, depends on the codec used, etc Jun 17 09:08:17 adq, I can also teach trans Jun 17 09:08:20 min api is 16. Tho I can push it a bit higher Jun 17 09:08:44 chrisaardal, you'll have to reencode the video with the watermark addede Jun 17 09:08:47 *added Jun 17 09:09:04 The "proper" way is to do it with MediaCodec, but for that you'll need a bit more experience Jun 17 09:09:13 You can also get an ffmpeg binary and run it via shell Jun 17 09:09:22 (But that'll do encoding on CPU which may take awhile) Jun 17 09:09:58 ah ok! Jun 17 09:09:59 ty Jun 17 09:10:24 Essentially you decode video, grab each frame, blend it with bitmap and then reencode it Jun 17 09:10:32 Not for the faint of heart :) Jun 17 09:11:52 Guess Ill make that task a "could have". For now atleast! :P Jun 17 09:12:57 chrisaardal, what kind of merge? active or frame reset? Jun 17 09:14:06 chrisaardal, you can of course always render the bitmap over the video when you play it ;) Jun 17 09:15:12 I could. Clientside that is. I have to pass it to a backend. And display it cross-platform Jun 17 09:15:41 Images were pretty easy to get it to work Jun 17 09:16:16 chrisaardal, without a youtube like transform, its gonna block a lot of video Jun 17 09:16:41 youtube like transform? Jun 17 09:16:57 never used a ValueAnimator before,someone please tell me why this doesn't work Jun 17 09:16:59 http://pastebin.com/KeqatfWU Jun 17 09:17:00 chrisaardal, I'd suggest from a UX you'd put annotations outside of the video Jun 17 09:18:02 chrisaardal, youtube places text boxes on top and removes them Jun 17 09:18:30 Its more like a snapchat caption implementation. Let the user do whatever they like to the video. If they want big-ass captions, let it be xD Jun 17 09:18:41 if you want to do something like that, you could just make an overlay view Jun 17 09:19:18 My co-worker managed to merge them on iOS Jun 17 09:19:36 fairly easily Jun 17 09:19:43 chrisaardal, I don't see why you'd want to bake this into a single video Jun 17 09:20:08 To keep track of the position of the watermark etc Jun 17 09:20:20 The user can rotate and pan the caption Jun 17 09:20:49 Better to process the video clientside. Pass it as 1 video to backend. Voila Jun 17 09:20:50 chrisaardal, so hash the video file and keep a watermark id Jun 17 09:21:58 hmm, yea. Its a possibility. Much work on our whole stack then Jun 17 09:22:08 Mavrik, according to incoming number ? for example i have call coming from USA it would automatically System out the country code for USA Jun 17 09:22:57 How would it know that the call is incoming from USA if it wouldn't have the +1 prefix? Jun 17 09:23:15 regex? Jun 17 09:24:26 god damn, man Jun 17 09:24:34 chrisaardal, the cost of storing all those custom videos is going to pile up Jun 17 09:24:36 I've been fooling myself into thinking that Butterknife just doesn't work in Fragments Jun 17 09:24:51 all because I got an error when trying to pass 'this' inside onCreateView Jun 17 09:25:00 what the fuck ... Jun 17 09:25:10 who fucking does that Jun 17 09:25:41 is it obvious to anyone why nothing happens when I start() this valueAnimator? Jun 17 09:25:42 Odaym, android in general doesn't work.... Jun 17 09:25:43 ((ValueAnimator)arrValueAnim.get(ktorI)).setValues(PropertyValuesHolder.ofFloat("X", arrXCache[ktorI], desX), PropertyValuesHolder.ofFloat("Y", arrYCache[ktorI], desY)); Jun 17 09:25:52 redengin, They are not that large. 3-4Mb Jun 17 09:26:00 nice shit-comment bro Jun 17 09:26:11 worth zero Jun 17 09:27:09 that animator is pretty confusing tho Jun 17 09:27:25 dunno what ure trying to achieve here entropyeqzero Jun 17 09:28:04 chrisaardal, the compute power to transcode a 3-5mb is considerable Jun 17 09:28:14 i call the setvalues function from a ValueAnimator from the arrValueAnim ArrayList and pass 2 propertyValuesHolders as arguments Jun 17 09:28:29 what I'm trying to do is Jun 17 09:29:42 create new propertyValuesHolders each time the above is called and pass them as arguments Jun 17 09:30:20 arrYCache and desY are floats, obviosly Jun 17 09:33:40 "Error while retrieving information from server ..prc s-7 aec-0..." on my new subscription payment implementation .. Any ideas? Jun 17 09:34:03 nvm Jun 17 09:36:24 hey guys Jun 17 09:36:36 anyone wanna team up on a vr project im working on Jun 17 09:37:11 danijoo, hey you forked my project Jun 17 09:38:58 which? Jun 17 09:42:30 https://github.com/Ribesg/Encypokedia Jun 17 09:42:37 https://github.com/danijoo/Encypokedia Jun 17 09:46:57 later guys Jun 17 09:49:04 oh. dont ask me why :S Jun 17 09:49:48 WHY Jun 17 09:51:16 really no idea.. maybe you showed a file and i misclicked? Jun 17 09:51:48 x) Jun 17 10:06:28 Mavrik: ok i decided to use Icepick, also looked at Frozen but it has more hassles. thanks for advice Jun 17 10:21:23 any opinion about this? http://javolution.org/ Jun 17 10:25:29 is there a tl;dr? Jun 17 10:57:18 Hey, how can I catch image loading failures in Picasso? Jun 17 11:00:16 I did it :0 Jun 17 11:00:17 :) Jun 17 11:02:30 I think you can attach a callback into a request Jun 17 11:03:28 and then from there define a onImageLoadFailed method Jun 17 11:06:00 Ankhwatcher, https://square.github.io/picasso/javadoc/com/squareup/picasso/Target.html Jun 17 11:07:29 bmorris danijoo thanks Jun 17 11:07:48 I added a callback but it doesn't tell me why it failed Jun 17 11:08:05 Ankwatcher, you can also set a default image of just a blank png, if that's all you're worried about Jun 17 11:08:08 hi: I want to change the color of a specific state in a selector based on my theme but somehow I cant get it to work.. I have a more detailed issue explenation on stackoverflow.. I'd really appreciate any help... https://stackoverflow.com/questions/30869584/change-text-color-based-on-theme-in-a-selector-with-different-states Jun 17 11:08:09 can I determine that here? or could I determine it in the custom OkHttpDownlaoder I'm working with? Jun 17 11:13:58 I've got skia (android-4.4.4_r2) crashing during boot with http://fpaste.org/232033/43435551/ on armv7-a-neon. Jun 17 11:14:05 do I need to configure a gpu backend during android build? Jun 17 11:14:19 this looks related: https://code.google.com/p/skia/issues/detail?id=1485 Jun 17 11:16:03 Is it a good practice to place keys (keys as in parse appId and client key) and stuff like that in strings.xml? Jun 17 11:17:26 nice question Jun 17 11:18:27 would like to understand the difference of complexity to decompiling the app file for .xml strings and .java strings Jun 17 11:18:57 atm can tell you one thing for sure about ios Jun 17 11:19:48 there you have app package, in which non-code-compiled files are put in one directory as it is Jun 17 11:20:55 welcome to 1999: http://euw.leagueoflegends.com/en/news/riot-games/announcements/euw-spectator-mode-fell-over-recently-heres-why Jun 17 11:21:53 biggest multiplayer game worldwide and the service goes offline because they used ints instead of longs :D Jun 17 11:22:17 hello. How would I test subscription type purchases in my app? Jun 17 11:22:28 squ, proguard obscures code. It doesn't do anything with the non code types right? Jun 17 11:22:49 Sophomore: I don't know Jun 17 11:22:55 Sophomore, yes, but minifyEnabled true will also shrink/remove images Jun 17 11:23:15 danijoo: that's fun: In other words, during the design of the spectator feature, our developers never anticipated the Game ID counter going that high on a single platform. Jun 17 11:23:25 ^^ Jun 17 11:24:46 i wonder if they now use unsigned ints and end with the same problem in a few more years Jun 17 11:28:10 good morning all Jun 17 11:28:32 so I was talking on the phone yesterday with someone who runs an app development shop Jun 17 11:29:10 he told me that one time his client had to submit the source code to google in order to be featured Jun 17 11:29:32 pics or it didnt happen Jun 17 11:29:33 isn't that a bit weird? Jun 17 11:29:36 squ, So how do you store the keys? Do you hardcode it in code? Jun 17 11:29:55 danijoo, yeah that's what I thought Jun 17 11:30:11 i mean like Jun 17 11:30:14 JFlash, that sounds fishy Jun 17 11:30:45 maybe it was a mail from support@thisIsNotReallyGoogle.com Jun 17 11:30:46 if they think you are doing something wrong or fishy, could they at least in theory ask you to submit source code? Jun 17 11:30:49 What is the benefit of using apis like www.parse.com and http://www.pushapps.mobi/ over using gcm? Jun 17 11:31:11 in theory they can ask you anything Jun 17 11:31:50 then why would it be so far fetched to thing that this actually happened? Jun 17 11:31:52 but in practice, if they think you are doing something wrong, they will staight away ban your app from to store without notification Jun 17 11:32:24 well now I have to tell you... this is not the US Jun 17 11:32:35 doesnt matter Jun 17 11:32:46 so ppl actually have connection (friends) inside google which help you get featured Jun 17 11:32:58 i mean, not that it decides it Jun 17 11:33:06 but it facilitates it Jun 17 11:33:07 we must talk about different google companies here. Jun 17 11:33:27 there are no humans doing that stuff Jun 17 11:33:51 hehe, of course. because humans are those flawless machines :) Jun 17 11:34:11 there are algorythms checking your app and if it matches some filters, it will get banned Jun 17 11:34:11 Sophomore: I don't know, as mentioned, would like to hear answer to this interesting question Jun 17 11:34:25 they wont contact you. you have to contact them to get unbanned Jun 17 11:34:26 yes this is not about that Jun 17 11:34:47 it's about some company trying to get his app featured on the store Jun 17 11:34:56 pretty sure featured works the same Jun 17 11:35:09 so they want to make sure their code are following all the guidelines and all that Jun 17 11:35:26 "Error while retrieving information from server ..prc s-7 aec-0..." Any ideas? Jun 17 11:35:28 do you really think theres an employee chosing the featured for all the categories Jun 17 11:35:36 been tryin to find anything on that matter for days :( Jun 17 11:36:07 Savag, how many days until you see this in the topic: http://imgur.com/jacoj Jun 17 11:36:37 i actually heard of ppl reaching out to google and collaborating to fix whatever they needed to get fixed in order to get featured , even in the US Jun 17 11:37:33 mh. cant tell much about that tbh Jun 17 11:37:57 google has as much interest in popular and potential big hit apps being feature as anyone else even more Jun 17 11:38:05 that makes sense. its in google's interest to help apps get better Jun 17 11:38:24 but saying they promised to feature the app is where you lose me Jun 17 11:38:28 i think its just another algorythm. Jun 17 11:38:42 if your app performs nice in the first few days, you get the featured Jun 17 11:38:46 If I test in app billing with my own account I get "the owner of the app cannot purchase it" and if I test with any other account I get "Error while retrieving information from server ..prc s-7 aec-0.. " Jun 17 11:38:57 i did not say the promised to feature it Jun 17 11:39:02 i think the algorithms do the heavy lifting, but there's probably some team that makes sure junk isnt getting out there Jun 17 11:39:17 Savag, noone will be able to help you without some code and real stacktraces Jun 17 11:39:17 danijoo: how can I stack trace something that throws an error on the google play side? Jun 17 11:39:18 i said that in the process of getting featured, they had to submit source code Jun 17 11:40:01 what could be the reason that Gradle seems to completely ignore a dependency I've added to my app build.gradle? Jun 17 11:40:07 im out. aloha Jun 17 11:40:14 i also dont know if google asked for source code or they just felt they had no other way to clear up things other than submiting the source code Jun 17 11:40:17 zalatovo, maybe wrong file. ;) Jun 17 11:40:43 I'm trying to add the Apache HTTPComponents port for Android Jun 17 11:41:07 maybe i can see that. but just requiring a submission of the code would seem like a big intellectual property issue Jun 17 11:44:29 danijoo: how does one debug in app billing when the only way to make it work is when you already signed your application, and at that point usb debugging doesnt help (I think) Jun 17 11:46:25 Savag, you can upload signed application to alpha and then debug build will work if its the same versionCode and versionName Jun 17 11:46:46 or why would it seemingly ignore a jar I've added to the "libs" directory? Jun 17 11:47:50 danijoo: alright I will try that Jun 17 11:48:07 danijoo: I guess I have different versioncodes Jun 17 11:51:35 danijoo: yup that way of debugging works Jun 17 11:51:47 danijoo: thx. Jun 17 11:52:25 I have a problem where a app with a foreground service stops responding behind the lock screen sometimes after 15-30 minutes, and then starts responding when the screen is unlocked. What could be the reason? Jun 17 11:53:00 It might be bluetooth that stops responding and not the service Jun 17 11:55:42 My AS freezes when I try to run my app and it's initializing the ADB. At the bottom of the IDE the last task it's running says "Applying filter". Anyone know what filter it's talking about? Jun 17 11:57:11 What is a filter in this context? Jun 17 11:59:58 My app is simply crashing, without priting any stack trace. Everyting i got is: "threadid=1: thread exiting with uncaught exception (group=0x40e69438)". Why is that? Jun 17 12:00:04 Why don't I see any stack trace? Jun 17 12:00:14 I'm using IntelliJ 14.1.1 Jun 17 12:00:40 Wizziee: thats a crash dump file yea? Jun 17 12:00:53 that's logcat log Jun 17 12:01:13 do you have any native JNI libraries? Jun 17 12:01:20 .so files in your project Jun 17 12:01:36 nope, it's simpel android app with TTS speaker Jun 17 12:02:02 your using the android TTS service? Jun 17 12:02:07 yeah Jun 17 12:02:27 pastebin the entire log section for the crash Jun 17 12:04:06 SpaghettiCat: its the filter selection on the right of the logcat window Jun 17 12:04:14 https://gist.github.com/WizzieP/ad6566a54deae943641e Jun 17 12:04:51 Wizziee: is this a real nice? Jun 17 12:04:54 real device Jun 17 12:05:03 yes, Huawei Y300 Jun 17 12:05:06 lol Jun 17 12:05:12 must bea pile o crap Jun 17 12:05:30 well it is a cheap phone :D Jun 17 12:05:58 what's the problem? Jun 17 12:06:07 the dalvik VM (your app) is trying to open the framework resources to process something Jun 17 12:06:18 and its failing so its jut crashing Jun 17 12:06:34 unless you have code thats doing it Jun 17 12:06:41 why don't I see stack trace? Jun 17 12:06:52 because its in the ClassLoade Jun 17 12:06:54 Loader Jun 17 12:08:03 this might be sonething your app is doing Jun 17 12:10:11 Wizziee: i assume you've had this open your in your Debugger Jun 17 12:10:18 its TextToSpeech's speak method what crushes my app Jun 17 12:10:21 Wizziee: it shows its connected to it.. Jun 17 12:11:30 Wizziee: incorrect assumtion.. its something that TextToSpeech#speak is indirectly causing to happen Jun 17 12:11:50 Wizziee: its probably some Huawei library for speech thats loading Jun 17 12:12:08 Wizziee: have you tried changing it in the system settings or even running the test feature in there? Jun 17 12:12:43 what do you mean by running the test feature in there? Jun 17 12:13:29 in device setttings Jun 17 12:13:32 on your phone Jun 17 12:14:11 Wizziee: are you trying to create your own voice/language for TTS or are you simply trying to use the system one Jun 17 12:14:24 trying to use the system one to read Text Jun 17 12:14:27 text* Jun 17 12:15:05 have you confirmed that TTS works on your device? Jun 17 12:15:51 Wizziee: settings > language and input > text-to-speech output > Jun 17 12:15:52 ok, the test feature doesn't even speak a word Jun 17 12:15:58 Wizziee: test it there Jun 17 12:16:04 just tried it Jun 17 12:16:16 then it sounds like some Huawei thing is screwed up Jun 17 12:16:25 what engine does it say its using? Jun 17 12:16:37 Pico Jun 17 12:16:39 from 1 to fucked up, how slow is the android emulator? Jun 17 12:16:49 especially on older computers like mine? Jun 17 12:16:49 Napalm: thanks for the tip about the filter Jun 17 12:16:51 Wizziee: your using the wrong one Jun 17 12:17:00 that's the only one I have there Jun 17 12:17:11 Wizziee: dont tell me.. your emulating ARM Jun 17 12:17:12 lol Jun 17 12:17:17 Wizziee: what you expect? you have an old pc :P Jun 17 12:18:45 lol i've changed the language of Pico Jun 17 12:18:49 and the test feature works Jun 17 12:18:55 Wizziee: what language? Jun 17 12:19:20 from German (it's not even my native language) to English Us Jun 17 12:19:32 erm Jun 17 12:19:42 its not a translator.. you do know that Jun 17 12:19:56 I do Jun 17 12:20:02 it hs language choice option Jun 17 12:20:27 I have a problem where a app with a foreground service stops responding behind the lock screen sometimes after 15-30 minutes, and then starts responding when the screen is unlocked. What could be the reason? Jun 17 12:20:31 1 Jun 17 12:20:33 It might be bluetooth that stops responding and not the service Jun 17 12:20:45 I believe you are suppose to query the TTS engine to find out if it supports the language you want.. before you attempt to use it. Although. I'd say its Pico that is crashing. Jun 17 12:21:27 prinsen: and the screen is on all the time the screen is locked? Jun 17 12:21:39 that is to say "switched on" Jun 17 12:21:57 Napalm why did you say earlier that I'm using the wrong engine? Jun 17 12:23:19 Wizziee: install this: https://play.google.com/store/apps/details?id=com.google.android.tts Jun 17 12:24:05 Wizziee: then go into the TTS device settings and swich over to the Google one ;) Jun 17 12:24:16 Wizziee: you can even download any language of your choice to your device Jun 17 12:25:29 Is there someway I can see the tower number my phone is connected to? Can I ping them? Jun 17 12:25:43 Napalm: don't know what you mean Jun 17 12:26:04 Napalm: I lock the screen and it turns black, and sometimes my app stops responding to bluetooth events Jun 17 12:26:16 or the service is paused, i can't tell which Jun 17 12:26:19 prinsen: thats correct behaviour.. the device is going to sleep Jun 17 12:26:52 prinsen: you need to hold a PARTIAL_WAKE_LOCK read http://developer.android.com/reference/android/os/PowerManager.html Jun 17 12:28:00 Napalm: so even a foreground service will pause if i dont havea PARTIAL_WAKE_LOCK? Jun 17 12:28:06 ofc Jun 17 12:28:13 the device is going into "stand-by" Jun 17 12:28:37 Napalm: Is it good behaviour to hold a PARTIAL_WAKE_LOCK forever? Jun 17 12:28:44 never ever do that Jun 17 12:28:53 you would drain the battery dry Jun 17 12:29:18 Napalm: Hmm what to do then? We are developing a bluetooth button that can be configures as a shortcut Jun 17 12:29:29 Napalm: people will get frustrated if it stops responding Jun 17 12:29:46 well its suppose to when you turn off your device Jun 17 12:29:52 hold the screen on Jun 17 12:30:14 Napalm: but it's supposed to work forever Jun 17 12:30:21 Napalm: like controlling your lights Jun 17 12:30:29 lol Jun 17 12:30:30 no Jun 17 12:30:35 you start it when you open the app Jun 17 12:31:02 Napalm: start what? Jun 17 12:31:28 whatever is it your doing Jun 17 12:31:33 Napalm: In IOs, bluetooth has the ability to wake a paused app Jun 17 12:31:53 Napalm: But the button is supposed to work when your phone is in your pocket Jun 17 12:32:05 what button Jun 17 12:32:06 what? Jun 17 12:32:10 explain what your doing Jun 17 12:32:43 Napalm: We have developed a bluetooth button (Flic) that can be configured in our app to control your phone/lights etc. Jun 17 12:33:09 Napalm: On some devices we have a problem where the app stops responding to clicks Jun 17 12:33:43 is there a getter, setter methods like this http://pastebin.com/gCptVv0n for arrayList Jun 17 12:35:07 I've installed Google TTS (the voice is awesome btw), but my app still crushes :D Jun 17 12:35:19 gonna read through TTS reference Jun 17 12:36:30 Napalm: Any idea? Jun 17 12:36:40 Is there someway I can see the tower number my phone is connected to? Can I ping them? Jun 17 12:39:48 Did Studio 1.2.2 break for anyone? I can't load my project at all. Different errors on all restarts Jun 17 12:40:37 cart_man, getCid and getLac Jun 17 12:40:52 on CallIdentityGsm class Jun 17 12:42:19 Napalm: restarting the PC somehow fixed the problem. strange Jun 17 12:44:28 Why I don't see my Log.d messages in Logcat? Jun 17 12:44:54 Wizziee: are your filter settings set up to show them? Jun 17 12:45:48 filter is set up to my app Jun 17 12:46:07 and log level? Jun 17 12:46:22 Verbose Jun 17 12:50:54 Sorry my internet connection died, who did I walk to about parital wake locks? Jun 17 12:52:16 Wizziee: are they not in "abd logcat" or are they not in your IDE? Jun 17 12:52:21 *adb Jun 17 12:52:48 Napalm: ^ Jun 17 12:53:14 prinsen: hang on, busy Jun 17 12:56:02 claint not in my IDE, I haven't used anything else so far Jun 17 13:00:49 Is there anybody here who have worked with Parse in the past? Jun 17 13:00:50 Napalm: I might have a setting so the user can set timeout for the partial wake lock. Jun 17 13:06:39 i have a string "678976" in database column is there a way that i can match "8976" and than get the string like we normal have option of contain ? Jun 17 13:07:34 Is it possible to put views in the NavigationView? A RecyclerView for example? Jun 17 13:10:12 s9iper1: SELECT x,y,z FROM your_table WHERE your_col LIKE '%8976%' Jun 17 13:10:18 prinsen: hey im nack Jun 17 13:10:20 back Jun 17 13:11:12 SpaghettiCat: you can restart ADB and that would have probably fixed it.. next time close AS. open a terminal/command-prompt and enter: adb kill-server and then re-open AS Jun 17 13:11:28 Napalm, ok Jun 17 13:12:06 prinsen: hellooooo Jun 17 13:12:32 Napalm: hi Jun 17 13:12:48 Napalm: What do you think about having it as a setting? Jun 17 13:12:55 bad idea Jun 17 13:12:58 check PM Jun 17 13:14:15 Napalm: oh I didn't know it was a separate, parent-less process. thanks for the tip Jun 17 13:20:18 I have this basic implementation of the example code for subscriptions and in-app billing --> "http://pastebin.com/Fu8iTu1s". No errors in stacktrace, but I get "Error retreiving information from server RPC-S-7-AEC-0.." inside the google play popup that shows up after initiating a payment. What could be wrong? Jun 17 13:20:26 Wizziee: try and see if you can see the logs in a terminal by using the "adb logcat" command. Jun 17 13:20:47 sorry for the quote after the link.. just remove it :) Jun 17 13:27:05 hey guys, I want to create the native code (c++) for a class during the java annotation processing. RN, IDK if the C++ files are processed before or after the java files. Also where to put the generated c++ files so that it may be detected by the ndk? Jun 17 13:27:25 anyone have any idea? Jun 17 13:27:54 Can you try to rephrase that question Jun 17 13:28:16 I use 99% c++ in my app but I'm not really following your question Jun 17 13:29:56 anyone have experience with exoplayer, for video? How does it compare to other options? Jun 17 13:32:03 Hi all. I'm using an sqlite db for my data. When I have a query with 40 000 records, it takes 20 seconds to make for every record an object of my class. I'm doing this in an Asynctask right now but I wonder if I can make it faster. Any advice? Jun 17 13:32:06 avinashrbhat: you probably just need to put them in the jni source set directory for your projectr Jun 17 13:32:42 FrancescoV: have you created index's on your table? Jun 17 13:32:51 Naparm, yes Jun 17 13:32:54 just got AS 1.3 Preview 5, for which no release notest exist. Cool :) Jun 17 13:33:10 FrancescoV: and your simple just creating 40,000 java objects from your sqlite query results is really silly Jun 17 13:33:22 FrancescoV: what are you doing exactly.. and why load them all Jun 17 13:33:22 g00s: Hi can I ask some BLE questions? Jun 17 13:33:40 Napalm, I don't want to put it there as they will be generated. Jun 17 13:33:51 what are some places where I could find developer help, or even help from google play employees? Jun 17 13:33:58 Napalm, any idea where it can be put alternatively Jun 17 13:34:02 avinashrbhat: there are generated source sets Jun 17 13:34:24 oh! generated source set. ok, let me check. Jun 17 13:34:52 Napalm, but does ndk load the c++ files from the generated source set? Jun 17 13:34:57 avinashrbhat: project/module/build/generated/source/jni Jun 17 13:35:05 Napalm, Querying soldiers from ww1, I load them all because the boss says it needs to be loaded all.. Jun 17 13:35:31 Napalm, ok, thx a bunch :-) Jun 17 13:35:46 FrancescoV: erm, you load them whyyyy Jun 17 13:35:51 hmm, my AS distribution is missing 1.3.0-beta version of tools Jun 17 13:35:55 any idea what's going on there? Jun 17 13:36:29 FrancescoV: it really defeats the point of a database to just load everything.. plus you will probably just run out of memory Jun 17 13:37:03 anyone familliar with this kind of error? http://postimg.org/image/d0ahlmcu1/ Jun 17 13:37:10 FrancescoV: on Android you normally get a Cursor object from your database query.. and actively use that dataset to display whatever it is you want. Jun 17 13:40:25 Napalm, you're right. It's actually the first time i'm using an sqlite db and cursor etc. Jun 17 13:41:01 FrancescoV: are you just trying to display a long list of all of the database query results? Jun 17 13:41:08 Mavrik, https://jcenter.bintray.com/com/android/tools/build/gradle/ maybe you miss the number after beta Jun 17 13:41:27 adq, meh found it, old project structure and it had maven central as a repo Jun 17 13:41:33 Napalm, yes. I'm using a custom baseAdapter right now, so I need to change it to a CursorAdapter Jun 17 13:41:44 k ! Jun 17 13:41:49 FrancescoV: yup Jun 17 13:42:16 Napalm: thanks :) Jun 17 13:44:00 Savag, probably the play store failing, already saw this screen while trying to install an app Jun 17 13:44:42 adq: I've had my subscription payment implemented for 2 days now and I keep getting this error when I click the button there Jun 17 13:44:47 I'm not even sure if its working Jun 17 13:45:17 I dont know where to search for help for this issue Jun 17 13:45:46 a search engine is a start Jun 17 13:46:10 yeah the only thing I find there is users getting this issue, not devs ;) Jun 17 13:46:42 i did a quick search, first link: "Called Google support this morning and was informed that this is a known issue that started yesterday morning with some accounts." Jun 17 13:46:53 "It's on their end, so there's nothing that can be done to fix it from the user side. They're working on it and consider it a major outage, no ETA for a resolution." Jun 17 13:46:55 lol Jun 17 13:47:17 and the suggested solutions are "restart your phone" and "delete cache" Jun 17 13:47:53 woah Jun 17 13:48:02 adq: can you gimme the link? Jun 17 13:48:04 i didnt find that one Jun 17 13:48:24 2 sec i already closed it, but you could have find it by searching the sentence in the search engine.. Jun 17 13:48:32 http://forums.androidcentral.com/google-nexus-5/433573-google-play-services-outage-rpc-s-7-aec-0-error.html Jun 17 13:48:43 Savag: https://support.google.com/googleplay/android-developer/troubleshooter/3076003 Jun 17 13:49:31 Savag: more specific https://support.google.com/googleplay/android-developer/troubleshooter/3076003#ts=3098249 Jun 17 13:50:03 adq: the one you found is 1 year old though Jun 17 13:50:16 check what Napalm gave, it's official Jun 17 13:50:28 also, logcat should probably reveals something on your side Jun 17 13:50:58 according to logcat I only get success messages Jun 17 13:51:11 like "everything went smooth, everything is setup etc" Jun 17 13:51:53 yeah I think I'll have to message them, because clearing cache and stuff did not work Jun 17 13:52:00 but that contact link could be invaluable Jun 17 13:55:46 any nice libraries to load pdf files on android? Jun 17 13:55:49 same with epub Jun 17 13:56:20 Napalm: thx for the link I sent email to support Jun 17 13:56:25 np Jun 17 13:58:02 My logcat doesn't show anything when my app crashes, any idea? Jun 17 13:58:36 Kake_Fisk: set you filter to "not filter" on the log window Jun 17 13:58:57 Kake_Fisk: if you still dont see anything, restart adb Jun 17 14:00:07 Napalm, my problem with logcat wasn't caused by tts or internal libraries, but I wrote down wrong method name for onClick event Jun 17 14:00:18 I'm wondering why I didn't get any message about it then Jun 17 14:00:24 only "uncaught exception" Jun 17 14:00:55 Wizziee: are you using android:onClick property on your views? Jun 17 14:01:15 yeah Jun 17 14:01:19 OMG Jun 17 14:01:28 that thing should have been deprecated many years ago Jun 17 14:01:42 Wizziee: set the onclicklistner in your code and stop all that Jun 17 14:01:56 oh, I'm totally new to android :p Jun 17 14:02:02 Wizziee: you do know that android:onClick methods have to be on the Activity Jun 17 14:02:40 Wizziee: just dont use them.. simple.. its a really bad.. no real binding between the views and the code.. ugh. Jun 17 14:02:46 yeah, but i wrote: `myMethodName()` instead of `myMethodName` in xml Jun 17 14:03:00 that is even in tutorial... ok, i wil change that Jun 17 14:03:07 find.. but its still not good. for those types of reasons. Jun 17 14:03:07 Napalm: Tried restarting abd dozens of times. 2 lines with D/OpenGLRenderer and 1 with D/Atlas is all logcat displays Jun 17 14:03:36 Kake_Fisk: tried "adb logcat" in your terminal? Jun 17 14:03:52 I can try Jun 17 14:03:54 Kake_Fisk: tried restarting it with "adb kill-server" then "adb devices"? Jun 17 14:03:59 have a play Jun 17 14:04:02 righty o.. im off Jun 17 14:04:05 cya all Jun 17 14:04:11 cya, and thanks Jun 17 14:15:15 Napalm: Do you need to recycle the views in a CursorAdapter? Jun 17 14:18:31 hi,i want to ask a general question about supporting different screens. Jun 17 14:19:17 for instance i have 2 images xxhdpi(200x200) and hdpi(100x100). I set these to image views with wrap content Jun 17 14:19:37 in small screen (hdpi) it looks as big as in xxhdpi Jun 17 14:19:55 is it how it works or i do mistake ? Jun 17 14:21:20 basically how i can scale these views according to screens? Jun 17 14:25:01 when i save a number inside database it adding a space by itself after 4 character i am saving it as string. used trim but not working any suggestions ? Jun 17 14:26:40 s9iper1, you need to "format" your stuff Jun 17 14:26:59 http://developer.android.com/reference/java/util/Formatter.html or http://developer.android.com/reference/java/text/NumberFormat.html or something else similar Jun 17 14:27:19 thanks Jun 17 14:27:31 :) Jun 17 14:28:15 wow they put in red "NEW" Jun 17 14:28:21 in android doc of decimalformat Jun 17 14:39:13 I'm adding makers to a map and drawing polygon then saving the markers coord and polygon info to parse i also want to save each marker id that forms the polygon in an array column, this is where i get stuck i don t know how to make a getter or setter method for arrayList or how to send the list to parse Jun 17 14:39:14 http://pastebin.com/rsV6455z Jun 17 14:40:15 hi guys Jun 17 14:40:30 how do you get the time by code? Jun 17 14:40:48 you ask google Jun 17 14:40:52 he'll tell you Jun 17 14:41:18 so you need Internet? Jun 17 14:41:46 guess he has no time to do that Jun 17 14:42:02 should i be able to import android.net.WebAddress;? it’s not finding it Jun 17 14:42:14 no, you can call Google instead. but I forgot the number so you'll have to google that Jun 17 14:42:16 I need to get the time to sync the data also without Internet connection Jun 17 14:42:22 -.- Jun 17 14:42:29 SpaghettiCat, you used to be able to text google Jun 17 14:42:36 You don't know how to get the current time in Java ? Jun 17 14:42:40 dragorn: huh? when was that? Jun 17 14:43:00 ye ye Jun 17 14:43:05 currentTimeSystem Jun 17 14:43:12 SpaghettiCat, a long time ago. pre-smartphone, early 2000s. You could text google and it would sms you back search results in a limited fashion Jun 17 14:43:30 cool Jun 17 14:43:35 but, also the Android team, suggest to don't use it, because it could be not exactly Jun 17 14:46:25 icemanbp: if you want to time how long things take, rather than the actualy 24-hour time: http://stackoverflow.com/questions/180158/how-do-i-time-a-methods-execution-in-java Jun 17 14:48:35 should i be able to import android.net.WebAddress;? it’s not finding it Jun 17 14:49:45 luist: it doesn't seem to be listed in the API docs... Jun 17 14:49:54 yep SpaghettiCat, I need to save some data with time field. In your way, I need to manage the offset of the last request to the server, to be sure of the time saved Jun 17 14:49:57 luist: what makes you think it's there? http://developer.android.com/reference/android/net/package-summary.html Jun 17 14:50:29 there's no way to get some clock time, used by the system, not the one that the user can change? Jun 17 14:50:36 i was just following this example to download files form my webview and it uses WebAddress: https://android.googlesource.com/platform/packages/apps/Browser/+/master/src/com/android/browser/DownloadHandler.java Jun 17 14:51:33 yeah, that's platform code - it's not written against the public API Jun 17 14:54:04 ok now how can i use it :) Jun 17 14:54:17 or… whats the best way to import it Jun 17 14:54:28 don't, and don't, probably Jun 17 14:56:05 lol Jun 17 14:56:44 Leeds: than a better question… how should i implement a downloadmanager to download the files listened by my webview downloadlistener :P Jun 17 14:57:21 luist: I have no idea, off the top of my head - but you still shouldn't be using non-API calls Jun 17 15:01:14 Leeds: what do you mean by that? shouldn't be using any 3rd party libs? Jun 17 15:02:32 3rd party is fine... the issue here is using Android platform code which isn't exposed in the public API Jun 17 15:03:11 Leeds: can’t i just put WebAddress in my package and use it? Jun 17 15:03:26 sure, whatever, do that Jun 17 15:04:54 luist: beacuse it's not in the public API, there's no guarantee that in the next API version this method does something totally different or not be there altogether Jun 17 15:05:08 Hi, i'm curious if there are any good resources out there to help mock retrofit responses? Jun 17 15:06:27 luist: So it's bad practice to rely on this. If the code you need is really uncoupled you could copy the code into your program directly. Then it would be safe from change Jun 17 15:06:27 Leeds: it has a @SystemApi tho lol Jun 17 15:06:37 AdamJB: It's not specific to Retrofit, I'm using https://github.com/square/okhttp/tree/master/mockwebserver Jun 17 15:06:51 you can also just implement the interface on a class which returns fake data Jun 17 15:06:55 SpaghettiCat: yeah ill do that.. thanks :) Jun 17 15:07:29 oh ok cool. Jun 17 15:07:57 I was hoping to look up some best practices on testing, so I can share/explain it to my team members. Jun 17 15:08:09 ugh, why does my actionView not show up right when I do showAsAction="always|collapseActionView" .... Jun 17 15:08:17 * pfn kicks appcompat Jun 17 15:08:35 thnx for the link dex2goat Jun 17 15:08:43 np Jun 17 15:09:00 I wonder if it's an order of operations problem Jun 17 15:10:14 I already wrote a mail to google support but just in case, does anyone know anything about this error? have you had it before? http://postimg.org/image/d0ahlmcu1/ Jun 17 15:12:20 if i wanted to make it so that markers added in google maps always had a certain behavior (in my case, started a new activity when tapped and held on) would i need to create a new activity for this? Jun 17 15:13:38 lads, where can I find professionaly written application that I can learn software architecture from ? Jun 17 15:15:07 Hessesian1: the Universal Music Player sample from google Jun 17 15:15:50 Hessesian1: more sample apps from google: https://github.com/googlesamples Jun 17 15:20:47 Is there a way to open music by id in default music player? Jun 17 15:37:11 if i wanted to permanently change the behavior of markers (google maps) in my app how would i go about doing this? Jun 17 15:52:51 how does GMaps kill it’s service when you kill the acitivity? Jun 17 15:56:03 hey guys, this sounds like it should be a relatively easy thing to do but i'm having a lot of trouble. I want to have a really short JSON string in my strings.xml. Jun 17 15:56:31 is there a way to just do a block escape of the entire thing? Jun 17 16:03:22 xml cdata Jun 17 16:11:25 hi Jun 17 16:11:48 please help me! Jun 17 16:12:01 how do I change the height of the viewpager tabs Jun 17 16:12:22 I'm using google provide SlidingTabLayout and SlidingTabStrip Jun 17 16:13:23 i tried setting direclty in xml but it doesnt work because only the outside container and background size change, but the sliding strip does not adapt to new size/position Jun 17 16:20:14 anyone? Jun 17 16:21:02 I know we use a custom view for our tabs. have you tried that? Jun 17 16:21:33 anyone from florida, miami? Jun 17 16:22:23 anyone know how google maps keeps the service alive whilst the app is background but kills the service when the activity is dismissed Jun 17 16:22:55 it’s probably running as a service, which doesn’t get killed automatically like an activity is Jun 17 16:23:30 s73v3r: when i swipe the activity from recents, the service is stopped Jun 17 16:23:34 and then calling stopService Jun 17 16:23:37 but otherwise the service hangs around Jun 17 16:23:52 its not ondestroy though Jun 17 16:24:32 hmmm, maybe onsaveinstancestate wasn’t called so it uses that.... Jun 17 16:25:16 aha! isfinishing! Jun 17 16:27:02 s73v3r: … nope that didnt work Jun 17 16:35:25 s73v3r: FYI - ‘stopWithTask’ seems to work :) Jun 17 16:44:29 hi, I need some help with layouts and fragments. Jun 17 16:46:31 hello Jun 17 16:46:52 can anyone help me to make an youtube json api request? Jun 17 16:47:14 i want the json responce of my uploaded videos Jun 17 16:47:36 with videos duration Jun 17 16:47:39 ? Jun 17 16:47:52 cananyone help me regarding this? Jun 17 16:57:34 Read the documentation Jun 17 16:57:40 s73v3r, thank you, I eventually figured it out Jun 17 16:57:45 i have this one fragment and one activity, after turning off the screen, I believe the activity is covered by the fragment and becomes invisible. I am using relative layout oncreate and added the fragment to the layout first, then the game view Jun 17 16:58:23 but for some reason the game view goes first after resume. any idea how to reorder the layout? Jun 17 16:58:24 s73v3r, oh no, I just figured out how to change the color, no the size Jun 17 16:58:30 not* the height Jun 17 17:07:13 Does releasing updates help downloads at all in the play store? Jun 17 17:07:24 Thinking about updating an app or making a new one Jun 17 17:07:31 why is my button not clicable? Jun 17 17:07:40 do I have to set an onClick for it to be? Jun 17 17:07:56 when I press I get no sound like in other buttons Jun 17 17:08:04 or state change Jun 17 17:08:39 JFlash: wat Jun 17 17:08:47 do you android at all? Jun 17 17:10:20 thepoosh, I'm trying! Jun 17 17:10:30 thepoosh, you can help by answering the question Jun 17 17:10:34 hi Jun 17 17:10:58 thepoosh, I'm using this inside of a special class that adds a header to a recyclerview Jun 17 17:11:00 JFlash: how will your button do anything if you don't set an onClick listener? Jun 17 17:11:14 thepoosh, so I'm afraid it's intercepting the touch events Jun 17 17:11:30 try pasting your code Jun 17 17:11:39 thepoosh, in some framework the button is still clicable even if you don't set a listener Jun 17 17:11:55 define clickable Jun 17 17:11:58 thepoosh, it would be clicable, just would do nothing, but would change state Jun 17 17:12:12 clicable = changes state on click Jun 17 17:12:22 thepoosh, do you do interface programming at all? Jun 17 17:12:35 yesir Jun 17 17:12:54 as always: "Carefully explaining your problem is half the solution." Jun 17 17:13:01 then you should know what clicable 'actually' means ;-) Jun 17 17:13:25 i do, i just suspect you're misusing it Jun 17 17:13:41 is it possible to make three build flavors dependent on one common flavor? Jun 17 17:13:45 JFlash, android:clickable="true" in your xml, did you try? Jun 17 17:13:54 (note the k between the c and a) Jun 17 17:14:23 Afzal, any flavor depends on "main" Jun 17 17:14:35 which is not really a flavor but the base Jun 17 17:14:39 adq sweet! Jun 17 17:14:45 thanks Jun 17 17:14:51 adb, doesnt work Jun 17 17:14:56 hi, I have this libgdx activity and fragment which i used a relative layout to set it to the background of the libgdx activity onCreate() but, onResume(), the fragment comes to the top layer and covers the main activity. Any idea how to fix this? Jun 17 17:15:27 JFlash: try adding your xml and java for this Jun 17 17:15:28 and I checked the childcount of the layout. It's just one. Jun 17 17:15:32 in a paste Jun 17 17:15:45 which is the libgdx game view. Jun 17 17:16:21 guys , I'm using it inside this header: Jun 17 17:16:23 https://github.com/blipinsk/RecyclerViewHeader Jun 17 17:16:37 i think it may be blocking touch events to the button, but how to tell for sure Jun 17 17:17:18 JFlash: “E.g. if your header uses a complex layout (with multiple scrolls and focusable elements) or a complicated Touch management system I advice you not to use RecyclerViewHeader, but a proper RecyclerView Adapter that incorporates inflating multiple types of views. There are other libraries on github (for example HeaderRecyclerView by Karumi) that might seem a bit more complicated to use, but are implementing mentione Jun 17 17:17:18 d approach and will fit your needs better.” Jun 17 17:17:53 yes i did see that Jun 17 17:18:00 and... Jun 17 17:18:14 but did not understand it as so limiting to a point where the content is not clicable Jun 17 17:19:38 he said it doesn't work well, why would you assume it works fine?! Jun 17 17:20:49 "Haier to peddle Android fridge in Asian markets" lul Jun 17 17:22:19 wtf, if you drag lots of files onto one file in AS, it merges those classes? wtf Jun 17 17:23:13 Afzal: is it a good result? Jun 17 17:23:22 I am working with C++ native code, that uses JNI like: FindClass(jni, classname) instead of jni->FindClass(classname), is that a kind of C interface of JNI? Jun 17 17:23:38 yes Jun 17 17:23:48 thepoosh, it probably compiles but that is definitely not what most people would want Jun 17 17:24:03 i disabled the drag features of the project pane Jun 17 17:24:06 so dangerous Jun 17 17:24:40 we didn't do the shift to AS yet Jun 17 17:24:43 it sucks Jun 17 17:24:53 i'm not happy with AS :( Jun 17 17:25:12 I'm pretty happy with AS. It's the gradle integration that is flaky Jun 17 17:26:34 jonp: did you answer to me? Jun 17 17:26:40 yes Jun 17 17:26:50 talking about AS, preview 5.0 available Jun 17 17:26:56 instead of `jni->FindClass(classname)`, in C it's `(*jni)->FindClass(jni, classname)` Jun 17 17:27:07 that ( Jun 17 17:27:09 oops Jun 17 17:27:12 note the *jni dereference *and* providing it as the first parameter Jun 17 17:27:15 that (*jni)-> part is missing though Jun 17 17:27:21 adq oh god no, I learned my lesson with the last preview and I'm staying on stable now :D Jun 17 17:27:27 we use jenkins for builds anyway Jun 17 17:28:02 *thug life* Jun 17 17:28:23 jonp: lin 68 here for example: https://chromium.googlesource.com/external/webrtc/+/master/talk/app/webrtc/java/jni/androidvideocapturer_jni.cc Jun 17 17:29:10 ...and? Jun 17 17:29:26 there's probably a global FindClass(JNIEnv*, const char*) function in scope there. Jun 17 17:31:59 Is this a common Android annoyance? You accidentally register the same receiver twice, then try to unregister it properly onPause() and get get a receiver leaked message when the activity ends? Jun 17 17:32:41 even calling unregister multiple times throws Receiver not Registered, then throws an error that I forgot to unregister a receiver.. Jun 17 17:33:19 the problem is that an SDK was already registering a receiver under the hood, and I was trying to register my own on top of that.. btu that’s not the point Jun 17 17:34:19 jonp: you were right, I found the problem that's causing my crash there Jun 17 17:37:07 I need ActionBar with overflow and settings. In ActionBar must be visible and ready to use search field with delete cross and function button together -> like this|[Searchfield[x]][btn][overFlow]|. What would you recomend as basic libraries (android.support.v7.app.AppCompatActivity vs android.support.v7.app.ActionBarActivity) and gradle settings(com.android.support:appcompat-v7:22.2.0 vs com.android.support:appcompat-v7:21.0.0) when I would like Jun 17 17:37:07 to support as mutch Android devices as possible without to much overhead for newbie? Jun 17 17:37:07 Right now I am extending ActionBarActivity from android.support.v7.app.ActionBarActivity and compile 'com.android.support:appcompat-v7:22.2.0' in Gradle. I have problems with SearchView from android.support.v7.widget.SearchView - I am unable to make it working like i need ^. Today I was playing with ActionBarActivity from android.support.v7.app.ActionBarActivity, but without any visible progress. Jun 17 17:50:08 Is it possible to add a view under (along z axis) another existing view programatically? Jun 17 17:54:02 yes bt you have to reorder your views Jun 17 17:54:05 astroduck Jun 17 17:54:12 it also depends on the parent layout Jun 17 17:54:18 but you will want to use bringToFront() Jun 17 17:54:44 hello Jun 17 17:54:48 as of now I don’t think there is a way for you to specify which z level you want it to land on though, you have to bringToFront in order until you get your desired config Jun 17 17:55:18 first bringToFront will but it on top, next will stack the view ontop of that one, and so on Jun 17 17:55:20 how can I get a reference to the activity from the onNavigationItemSelected event handler? Jun 17 17:56:29 you have an item position, you can get it from the parent Jun 17 17:56:39 view.childAt9position) Jun 17 18:01:29 hi, I have this view and fragment in a layout. after pause and resume, the view and fragment layers changes.The view is supposed to be at the top layer and fragment below. But I can only see the fragment and view is hidden totally Jun 17 18:01:31 JFlash: that was for you Jun 17 18:01:59 argyris: can you post code? Jun 17 18:02:06 how do I revert them back to the correct order Jun 17 18:02:07 tricknology_, thank you Jun 17 18:02:12 np JFlash Jun 17 18:02:22 tricknology_, I did it using MainActivity.this Jun 17 18:02:39 tricknology_, but now i cannot get back to the main screen Jun 17 18:02:42 I guess that works Jun 17 18:02:43 http://pastebin.com/zRbtupEB Jun 17 18:02:50 I managed to get an arrow back button by adding this Jun 17 18:03:02 getSupportActionBar().setDisplayHomeAsUpEnabled(true); Jun 17 18:03:10 but when I click the back button nothing happens Jun 17 18:03:31 how can i make it so that I click the button and it goes back tot the main activity? Jun 17 18:03:57 sorry on a call, I would google that one JFlash Jun 17 18:05:35 JFlash Intent mainIntent = new Intent(Splash.this, AndroidLauncher.class); startActivity(mainIntent); Jun 17 18:05:54 yes but how do I even create the listener? Jun 17 18:05:57 replace AndroidLauncher with the MainActivity or something Jun 17 18:06:06 this is the new toolbar Jun 17 18:06:24 use interface. Jun 17 18:06:45 I need to see code, I'm a newbie Jun 17 18:07:06 so I'm overriding loadInBackground in my class that extends CursorLoader, in it I'm getting a new DB context and getting a cursor from it, I don't need to use a ContentProvider because I don't need to share this data between apps, problem is I'm not sure how to close the DB, it's just left dangling, and ContentProviders apparently take care of this for you Jun 17 18:08:04 most code I'm seeing about toolbar is about fragments Jun 17 18:08:22 but I don't want to change fragments Jun 17 18:08:39 ok, I know i have to use intent but I dont know now to listen to the button click Jun 17 18:08:51 you haven't tried Jun 17 18:08:56 period Jun 17 18:09:07 @Override Jun 17 18:09:08 public boolean onOptionsItemSelected(MenuItem item) { Jun 17 18:09:12 is that it?? Jun 17 18:09:42 do you see "click" anywhere? Jun 17 18:09:52 no Jun 17 18:09:55 good Jun 17 18:10:02 you select items from the toolbar in onOptionsItemSelected Jun 17 18:10:12 public boolean onOptionsItemSelected(MenuItem item) Jun 17 18:10:19 with a switch/case Jun 17 18:10:22 there, see the button click? Jun 17 18:10:24 item.getItemId() Jun 17 18:11:40 that's what i was saying Jun 17 18:11:47 if itemId == youritem {do stuff} Jun 17 18:11:50 so I was right and you where wrong Jun 17 18:12:16 doenst matter who’s right or wrong, matters what works and what doesnt Jun 17 18:12:22 and what’s efficient, to some extent Jun 17 18:12:38 keep in mind there are a boatload of ways to do it Jun 17 18:12:50 you probably could have gotten the view and set an onClickListener to it Jun 17 18:13:03 not pretty though Jun 17 18:13:33 no refficient if there is a chance you aren’t going to use it Jun 17 18:17:56 it did work guys, thanks Jun 17 18:17:58 does anyone have any idea why my google maps isnt reloading the tiles when i zoom out? Jun 17 18:18:08 but I also had to add a parent activity on the manifest xml file Jun 17 18:18:13 it seems like something in my code must be making the reload method (however it works) hang Jun 17 18:18:56 tricknology_, true for boatload Jun 17 18:19:04 tricknology_, I used this: NavUtils.navigateUpFromSameTask(this); Jun 17 18:21:42 tricknology_: Ok, thanks. I'll rewrite my code to add views in order I want, bringToFront is not a good option for me as I have many views Jun 17 18:37:18 does anyone have any idea why my google maps isnt reloading the tiles when i zoom out? Jun 17 18:37:20 it seems like something in my code must be making the reload method (however it works) hang Jun 17 18:47:15 is there way to create a shorter uuid? Jun 17 18:49:15 hert: what do you mean? Uuids are a standard that declare how long they should be Jun 17 18:51:01 is there a standard for shorter number, or is it ok to trim the uuid? Jun 17 18:51:19 probably not Jun 17 18:51:24 why do you need a shorter uuid? Jun 17 18:51:48 32 is getting too long to read :D Jun 17 18:52:05 UUID in terms of the very low probability of collisions, no Jun 17 18:52:29 if you need a shorter uniquiing, with a much higher collision probability there are other algoriths Jun 17 18:53:21 hakes line which one? Jun 17 18:53:29 hkais Jun 17 18:54:59 hert: http://stackoverflow.com/questions/4267475/generating-uuid-but-only-for-8-characters Jun 17 18:57:14 cool thanx Jun 17 18:57:45 welcome Jun 17 18:58:21 but do not use it for data , you will face bigger issues with the high collision probability Jun 17 19:03:26 how does one get the name of the current variant in gradle files?! Jun 17 19:03:41 the documentation just says how to get all of them :/ Jun 17 19:39:24 any reason why adb install -r would still fail if the device has a previous version of an app? Jun 17 19:40:37 d'oh, nevermind Jun 17 19:41:27 i'm trying to draw a polygon from retrieved marker coord i get each marker coord at line 23 in the for loop then crash at line 33 "at com.google.android.gms.maps.GoogleMap.addPolygon(Unknown Source)" http://pastebin.com/avz1CJCC not sure why Jun 17 19:45:11 hi all, can anyone advise me aboutt storing key in my app? i don't speak about true security, i just want to use some storage with masterkey that will be hardcoded in app. I looked on storage generated by keytool(used it for selfsigned certs), but seems it can't import symmetric keys(add it on when generate). now i thinking about just encripted text file with json on somthing like this. maybe som Jun 17 19:45:17 eone know more proper way? Jun 17 19:45:21 Hello folks! Jun 17 19:46:05 When I try to make a select on sqlite I got the following error : https://gist.github.com/anonymous/2fddd9f4e5564241ea49 Jun 17 19:46:30 I try to execute this same query at terminal and it runs just fine. Jun 17 19:47:16 Could someone help me figure whay it could be possibly happening here please? Jun 17 19:47:35 ircfox_, quotes, obviously Jun 17 19:48:32 "SELECT _id FROM Revista WHERE titulo=Mag A" what is A? column of table Mag? then it must be Mag.A, i think Jun 17 19:48:54 pfn: the pasted content are based on the error log console, probably when the method is called using a String as parameter it uses quotes. Jun 17 19:49:12 ircfox_, I doubt it Jun 17 19:49:17 you're not using placeholders properly then Jun 17 19:49:25 codebinder: A is part of the 'Mag A' Jun 17 19:49:41 oh, i c Jun 17 19:50:42 pfn: what you mean? Jun 17 19:51:05 ircfox_, google sql placeholder Jun 17 19:51:08 adq can one build variant be dependent on another build variant that is not main? Jun 17 19:52:58 wtf, why doesn't TabLayout scroll Jun 17 19:55:20 like swipe gesture-wise? Jun 17 19:56:00 Afzal, i think you meant flavor, i'm not sure but it should be possible, maybe with dependencies including flavorCompile (i'm using that to include playservicesads only in a free flavor of a project: freeCompile 'com.google.android.gms:play-services-ads:7.5.0') Jun 17 19:56:15 maybe you should consider simply using a module dependency, specific to the flavor you target Jun 17 19:56:23 it is so flexible that i cannot imagine it's not possible anyway Jun 17 19:58:00 pfn: my code is using SQLiteDatabase class to query the database, so if I get the error log query and execute it manually at Terminal it gets the expected result free of error. As : sqlite> select _id from Mag where titulo='Mag A' Jun 17 19:58:27 Perhaps it is something extra I need to set to read from database? Jun 17 19:59:17 ... Jun 17 19:59:24 how about you show how you're running the query Jun 17 19:59:27 since you're clearly doing it wrong Jun 17 20:00:07 ircfox_: "select * from Revista" works? Jun 17 20:00:32 I have a question.. If download android studio from ppa does it take care of new and old packages/sdk's that are downloaded? Does it 100% manage obsolete files that are not needed anymore? Jun 17 20:00:42 codebinder: yes Jun 17 20:00:50 ax562, no files are "obsolete" Jun 17 20:00:57 code I get 1|Mag A Jun 17 20:01:05 and probably not Jun 17 20:01:11 codebinder: I get 1|Mag A Jun 17 20:01:20 well for instance on an upgrade does it wipe/delete old unneeded files Jun 17 20:02:09 doubtful Jun 17 20:02:18 The method I am using is as follows : https://gist.github.com/anonymous/43823ed8129f0582dc2b Jun 17 20:02:47 ircfox_: i think you should use "SELECT _id FROM Revista WHERE titulo='Mag A'" Jun 17 20:03:12 adq I'm doing this to a library that is going to be published on artifactory. The problem with a library dependency with gradle is that I can't package two modules together into one aar Jun 17 20:03:16 I've had a horrible time with memory management (I don't have much space on drive left)...upgrading and using new versions of AS has been a nightmare with the little drive space I have left Jun 17 20:03:34 pfn isverysmart Jun 17 20:03:35 it's basically multiple flavors of a library. One for wearable client/host, one for phone Jun 17 20:03:38 oooh that sounds painful Jun 17 20:03:52 its not an option just to wipe android studio and reinstall the new one fresh? Jun 17 20:03:56 codebinder: I am not doing it manually, see the method : https://gist.github.com/anonymous/43823ed8129f0582dc2b Jun 17 20:03:59 ircfox_, yeah, you wrote your query wrong Jun 17 20:04:02 second_string yes it is Jun 17 20:04:11 ircfox_, you have '' in console, yet none in code Jun 17 20:04:49 use placeholders properly Jun 17 20:05:07 pfn: I only have access to the query statement on the error log. Probably it is using quotes. Jun 17 20:05:12 Any one have a work around for this https://code.google.com/p/android/issues/detail?id=176647 Jun 17 20:05:26 ircfox_, if you don't put quotes, it doesn't have quotes... Jun 17 20:05:28 ircfox_: pfn is right Jun 17 20:06:09 pfn: So if I have manually quote each String? NO way! Jun 17 20:06:24 ircfox_, ... I've told you the answer several times now, use placeholders Jun 17 20:06:28 I'm not going to tell you again Jun 17 20:07:08 pfn: I am using placeholder, haven't you seen the method I've pasted? Jun 17 20:07:17 yeah, I have, you're not using placeholders Jun 17 20:07:20 so are we going to call the messages that are produced by the snackbar, snacks I'm guessing? Jun 17 20:07:59 cause that will be funny Jun 17 20:09:39 pfn: could you show me how to use a placeholder on my method please? Jun 17 20:10:54 ircfox_, =?, next arg you put {name} Jun 17 20:11:13 new String[] Jun 17 20:12:10 ircfox_: yep, just like in query(boolean distinct, String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit, CancellationSignal cancellationSignal) Jun 17 20:12:29 selection is your "line" Jun 17 20:13:05 new String[] {name} is selectionArgs Jun 17 20:13:25 pfn: as : String line = DatabaseHelper.KEY_MAG_NAME + "=?{" + name + "}"; Jun 17 20:13:51 ircfox_: no Jun 17 20:15:51 ircfox_: Cursor c = database.query(DatabaseHelper.MAG_TABLE, columns, DatabaseHelper.KEY_MAG_NAME + "=?", new String[]{name}, null, null, null); Jun 17 20:18:00 ircfox_: look at developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html on query methods Jun 17 20:21:14 use an orm Jun 17 20:27:12 now it is throwing this error : https://gist.github.com/anonymous/ae4a4212a2f71c0409ba Jun 17 20:32:29 ircfox_: android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 1. soo since size is 1 it obvious that you need to request index 0 Jun 17 20:34:11 codebinder: this error message is still from the same preview query. Jun 17 20:38:24 ircfox_: do you use cursor.moveToFirst() befor try to extract some data from it? Jun 17 20:47:33 Hi... What is a good guide on developing for the android using C++ (or C) and the ndk? Jun 17 21:08:23 it's basically multiple flavors of a library. One for wearable client/host, one for phone <- oh, for wearable it's a bit different, the wearable itself is a module (any flavors too) which will generate an apk, and this apk is then encapsulated in the "handheld" (mobile) final apk Jun 17 21:08:45 adq it's a wearable library Jun 17 21:08:45 which can also have any flavors, and not necessarily the same as the wearable module Jun 17 21:08:49 phao your own blood and sweat Jun 17 21:08:51 ahhh Jun 17 21:08:55 nv then Jun 17 21:09:00 if you can't find a book, look for github projects Jun 17 21:09:05 I just went with flavor dimensions and just ignoring one of them :p Jun 17 21:09:11 and an empty flavour Jun 17 21:09:11 lasserix, =D hehe Jun 17 21:09:14 it's terrible :( Jun 17 21:09:26 lol Jun 17 21:10:23 oh, i just read that: http://www.xda-developers.com/play-store-permissions-change-opens-door-to-rogue-apps/ Jun 17 21:10:35 lololol, who didn't see that one coming? Jun 17 21:11:12 "Their rationale is that most apps use Internet access, and therefore users don’t need to know. Funnily enough, one of the best ways to actually protect your privacy is to prevent apps from communicating with the Internet. " Jun 17 21:11:15 :)) Jun 17 21:11:39 meh, most apps need internet Jun 17 21:11:40 * pfn shrugs Jun 17 21:11:45 they would start disabling internet to remove ads Jun 17 21:11:47 2015 called Jun 17 21:11:50 pretty bad Jun 17 21:12:00 ads is soon fully decentralized Jun 17 21:12:06 with the play services ads Jun 17 21:12:27 there are other ad companies, you know :) Jun 17 21:12:42 yup, what i was about to add, is at some point Jun 17 21:13:00 * groxx just wishes that mobile ads were as unobtrusive as google's text ads online Jun 17 21:13:04 a similar mechanism as the intent could be used Jun 17 21:13:27 so you don't have anymore to declare your perm, the other "part" does it, and you just request data from it via content:// or something else Jun 17 21:13:43 legal rebond Jun 17 21:13:57 just download a bunch of ads Jun 17 21:14:03 if they click Jun 17 21:14:09 then later push notification about that ad Jun 17 21:14:16 ah true, some ppl does that with "in house ads" Jun 17 21:14:25 or ask for user information Jun 17 21:14:25 save it Jun 17 21:14:28 and email them Jun 17 21:14:31 then you get an email too Jun 17 21:14:55 also mobile ads take significant cpu/resources Jun 17 21:15:12 i can see that on an old phone I test an app processing audio (heavy) Jun 17 21:15:29 oh yeah Jun 17 21:15:34 the sdks are such BS Jun 17 21:17:06 thank odin for RE Jun 17 21:20:50 Regular Expressions? Jun 17 21:22:09 reverse engineering, I guess Jun 17 21:23:03 on second thought, I'll vote for "Racist Emoji". that sounds most probable. Jun 17 21:26:20 mobile ads do not take significant cpu or resources Jun 17 21:26:38 maybe lasserix is a viking, adept of north mythology Jun 17 21:33:40 hey Jun 17 21:33:42 does anyone know Jun 17 21:33:49 where i can find a horizontal line Jun 17 21:33:52 the muffin man? Jun 17 21:33:57 representing the fibo sequeunce Jun 17 21:33:59 such as Jun 17 21:34:15 _-_-_--_---_ and so on Jun 17 21:34:40 -_- Jun 17 21:35:58 hmm? Jun 17 21:36:05 make it Jun 17 21:36:21 draw underscores Jun 17 21:37:49 i know but i need like a couple of thousands worth Jun 17 21:38:33 loop! Jun 17 21:39:42 recurence! Jun 17 21:41:31 racist emoji Jun 17 21:41:40 groxx is that a thing? Jun 17 21:42:48 He lives on Drury Lane. Jun 17 21:44:36 lasserix: depending on how you interpret things, it existed either before or after the UTF skin-color modifiers for emoji :) Jun 17 21:45:53 hello :) Jun 17 21:47:06 hi Jun 17 21:47:52 Hey Jun 17 21:48:34 I've already written an email about it to google but just in case wanted to check if any of you recently had such an error Jun 17 21:48:39 http://postimg.org/image/d0ahlmcu1/ Jun 17 21:48:49 when initiating payments Jun 17 21:49:31 ugh, why does my search view keep getting focus when flipping my viewpager, so annoying Jun 17 21:50:22 its probably you, Savag Jun 17 21:50:29 groxx heheh Jun 17 21:50:30 RE will be a thing as soon as I get over to Stormfront Jun 17 21:50:36 Odaym: what do you mean its me? Jun 17 21:50:50 pfn where is your search view? Jun 17 21:50:53 meaning its not someone else's fault Jun 17 21:50:55 in the actionbar Jun 17 21:50:57 like Google Jun 17 21:50:57 WHERE IS YOUR SEARCH VIEW NOW Jun 17 21:51:01 or someone else who is not you Jun 17 21:51:08 there is a hack it hink you can put a 0 by 0 et before the search view Jun 17 21:51:17 so when the viewpager absconds focus then it'll grab it Jun 17 21:51:29 Odaym: it might be but I've triple checked everything, and I also did not change my code for a week.. and this used to work Jun 17 21:51:47 It just stopped working yesterday out of nowhere Jun 17 21:52:00 ah Jun 17 21:52:02 well, good luck Jun 17 21:52:14 danijoo might know Jun 17 21:52:19 is viewpager unambiguously the worst thing ever, or is that just me? weird touch event inconsistency crashes, jerky fake-paging, focus problems... Jun 17 21:52:30 why.. Jun 17 21:52:34 its..more than great here Jun 17 21:52:38 know what? Jun 17 21:52:46 groxx tru dat Jun 17 21:52:50 something is giving him an error when he wants to process a payment, danijoo Jun 17 21:52:52 plus no built in recycling Jun 17 21:52:53 he linked above Jun 17 21:52:55 danijoo: the question was iff you know what might have caused an error like this Jun 17 21:52:57 theys hould have made it a gridview Jun 17 21:52:57 http://postimg.org/image/d0ahlmcu1/ Jun 17 21:53:01 or a horizontal list view Jun 17 21:53:02 and since you are a millionaire from in-app purchases Jun 17 21:53:03 so.. Jun 17 21:53:05 with a different animatiom mode Jun 17 21:53:14 like snap to page + with fade animation Jun 17 21:53:15 i dont Jun 17 21:53:22 oh Jun 17 21:53:24 alright thanks Jun 17 21:53:40 reminds me Jun 17 21:53:57 danijoo: grats on being a millionaire :D Jun 17 21:54:03 danijoo, if I want to make a pro version of an app, would it make sense to make that version be an in-app purchase? Jun 17 21:54:19 meaning not another completely different application, just one that gets unlocked upon payment Jun 17 21:54:38 Odaym: I'd make it so that people can buyy/subscribe to premium features within your free app. Jun 17 21:54:49 Nobody wants to go and search for a 2nd application Jun 17 21:54:50 depends i guess Jun 17 21:54:56 what's it depend on Jun 17 21:55:07 I have ...4 features. 1 of them is unlocking of a restriction Jun 17 21:55:18 the rest are either adding new capabilities, and 1 for removing ads Jun 17 21:55:25 these are the things I can offer for money Jun 17 21:55:42 but what I want is just "go pro", not "buy this and that" Jun 17 21:56:05 or even better "free trial" :D Jun 17 21:56:06 cause they are non-repeatable purchases, you buy it and that's it, now you have it Jun 17 21:56:31 ah so its not subscriptions Jun 17 21:56:37 let him answer please Jun 17 21:57:48 i wouldnt make it iap if it adds 10mb worth of content Jun 17 21:58:00 worth of code Jun 17 21:58:11 functionality gets added Jun 17 21:58:26 dunno. whats easier to implement Jun 17 21:58:29 ? :) Jun 17 21:58:44 well, 2 apps and 1 app means 1 switch case difference Jun 17 21:58:46 if paid, this, else that Jun 17 21:58:56 easier is things getting unlocked Jun 17 21:59:21 if its just remove adds or a few if/else maybe just make it iab Jun 17 21:59:31 for more difficult stuff, two apps might be better Jun 17 21:59:40 but i think thats pretty much opinion based.. Jun 17 21:59:54 sure but you have experience with one of the models Jun 17 22:00:00 thats more than opinion Jun 17 22:00:02 lasserix: pretty much exactly. A horizontal listview seems like it would be _massively_ more controllable. I don't suppose you know anyone who has tried though? I'm not sure off-hand how to act like viewpager :| Jun 17 22:00:05 i made iap Jun 17 22:00:24 but i had a few 100k users when i did this. it wasnt really an option to make a second flavor Jun 17 22:00:28 and about that you must keep track of user accounts, yes? Jun 17 22:00:50 if you plan to let it reflect on other devices Jun 17 22:00:53 naturally Jun 17 22:00:57 groxx its simple Jun 17 22:01:03 you use a recycler view Jun 17 22:01:07 Keep in mind that if you split the apps, then you could also split your reviews and rankings Jun 17 22:01:08 you change the transisition animation Jun 17 22:01:12 and just make it snap Jun 17 22:01:15 true Jun 17 22:01:18 why? gps will track iaps for me Jun 17 22:01:19 adjust the view so that is fills parent Jun 17 22:01:20 2 apps is a no go, that's it Jun 17 22:01:21 but yeah Jun 17 22:01:25 maybe that is a project we can work on Jun 17 22:01:26 and upload Jun 17 22:01:32 ah, correct, danijoo Jun 17 22:01:33 anyways Jun 17 22:01:36 can anyone help me out Jun 17 22:01:41 i have some data that is displayed Jun 17 22:01:42 they log in with their google account to the device, download your app, GPS will know Jun 17 22:02:10 im also not a big fan of seperate apk Jun 17 22:02:12 if the data is like say 4 hours old, i need to change something to note this (ie, the cached data is being used and it's not necessarily the same as what the server would be) Jun 17 22:02:17 i think iap will get used more often Jun 17 22:02:20 so I'm wondering what text label is good for that Jun 17 22:02:24 "Last Updated? Jun 17 22:02:26 yea yea that's no go, especially cause of s73v3r's point Jun 17 22:02:26 but its definitly harder to implement Jun 17 22:02:34 but i dont want them to think it was updated by server Jun 17 22:02:38 all of the top performing (money wize apps) are iap Jun 17 22:02:41 I think that speaks for itself Jun 17 22:02:42 iap is hard to implement? Jun 17 22:02:46 I..dont think so? Jun 17 22:02:52 what do you mean Jun 17 22:03:08 cause of the ifs? Jun 17 22:03:09 there is exampel code provided by google for api v3 Jun 17 22:03:12 harder than different apps Jun 17 22:03:23 sure yea but its' a conditional away.. Jun 17 22:03:27 if paid, do this.. Jun 17 22:03:36 there’s more work involved in hiding/enabling things based on whether they’ve paid or not Jun 17 22:03:43 iap really sucks to implement Jun 17 22:03:44 how Jun 17 22:03:58 and the docs on that are full of bugs Jun 17 22:04:08 but there are a gazillion people doing it.. Jun 17 22:04:16 regardless Jun 17 22:04:23 thanks Jun 17 22:04:26 yueah but if you use googles example code, youll end with exceptions eveywhere Jun 17 22:04:33 haha yea that's a given Jun 17 22:04:55 i made good experience with https://github.com/onepf/OPFIab Jun 17 22:05:37 cool Jun 17 22:05:39 seems minimal Jun 17 22:05:44 9 stars Jun 17 22:05:55 but that does use googles example code :D Jun 17 22:05:57 trivia drive is one Jun 17 22:06:20 yeah it lets you add iab with a few easy callbackls\ Jun 17 22:06:25 its great though that I can just add the "pro" thing as 1 purchase Jun 17 22:06:29 and that's it Jun 17 22:06:33 pretty nice. and also works with amazon store Jun 17 22:06:34 I implement the rest in code Jun 17 22:07:19 you'll be my first customer, danijoo Jun 17 22:07:48 what app is it? Jun 17 22:07:58 existence enhancer Jun 17 22:08:08 helps you exist better Jun 17 22:08:11 another downsite of iab btw is license check Jun 17 22:08:25 99% of apps are pretty easy to obtain premium without purchasing Jun 17 22:08:42 hows that Jun 17 22:08:48 if different APK, sure Jun 17 22:08:54 otherwise never Jun 17 22:09:16 bad implementation Jun 17 22:09:22 even if you use apk extractor, you will still get the code that CHECKS before running Jun 17 22:09:29 you will never "ok you're a good guy, you paid" Jun 17 22:09:31 that would be stupid Jun 17 22:09:47 or you can do that, but check again at every internet connection Jun 17 22:09:51 that would be the correct way Jun 17 22:10:14 Is this really ysuch a big issue? I mean how many users do you think will do that? Jun 17 22:10:17 ive seen apps where you could open shared prefcs and edit boolean premium to true and it never checks play store again :D Jun 17 22:10:22 the massive user.. 99.9% are just users, not devs Jun 17 22:10:28 that's a bad implementation Jun 17 22:10:40 its simply, if no internet, rely on DB, otherwise check interent and update DB if any Jun 17 22:10:42 thats it Jun 17 22:10:48 and license checking can be mitm pretty easily in a lot of cases Jun 17 22:11:01 how Jun 17 22:11:05 there is even an app for that Jun 17 22:11:06 its https Jun 17 22:12:04 you mean certificate checking? Jun 17 22:12:26 maybe i forgot security class, but that doesnt make sense Jun 17 22:12:29 you can't fake it Jun 17 22:13:07 you can fake it because you can act as a certificate authority and issue a different certificate, which most apps implicitly allow Jun 17 22:13:30 dude you will be caught for phishing, that's even in old IE Jun 17 22:13:33 stuff like freedom app: http://in-appstore.com/?page_id=12 Jun 17 22:13:36 I've done it in my hands Jun 17 22:14:24 phishing? Jun 17 22:14:27 yes Jun 17 22:14:32 unauthentic certificate Jun 17 22:14:35 or lucky patcher http://lucky-patcher.netbew.com/ Jun 17 22:14:42 its not from a CA Jun 17 22:14:49 cause you sign it yourself Jun 17 22:14:52 Odaym: you install a new CA on the device Jun 17 22:15:09 Odaym: same principles as http://mitmproxy.org/index.html Jun 17 22:15:24 it can be detected, but almost nobody does Jun 17 22:15:28 hm, yea, beyond what I know Jun 17 22:15:39 yes it can. but you have to explicitly do that Odaym \ Jun 17 22:15:44 and nobody does that Jun 17 22:16:03 danijoo: tbh if you put the effort everything can be hacked one way or the other. the question is how big of a problem is it really that 1,2 or 100 users used your app for free? Jun 17 22:16:07 its like those stupid implementation of https rest clients Jun 17 22:16:20 I know there is a much bigger hole in Android and the Play Store, it's carefully detailed in a paper I have that my friend wrote which can very easily disable ads on any app Jun 17 22:16:21 if you google that, every guide will tell you to just allow every https certificate Jun 17 22:16:29 but the way THAT is done is way different and much more straight forward Jun 17 22:16:32 which is really bad Jun 17 22:16:51 well, "stupid" / "put trust in the CA architecture". arguably that's exactly the same as being stupid, but it's Generally Acceptable™ Jun 17 22:17:24 yes groxx, that's a good point Jun 17 22:17:33 at that point, yes you're fucked Jun 17 22:17:43 ok, cool Jun 17 22:17:47 you are pretty much always fucked in android Jun 17 22:17:53 nah Jun 17 22:17:57 there are significant tradeoffs if you e.g. use certificate pinning. you can prevent this sort of thing, but you also lose some (sometimes critical!) flexibility Jun 17 22:18:08 you should read this paper about how easy it is to stop ads in apps Jun 17 22:18:17 if someone wants, he can just RE your app and change your if(isPremium() ) to if(true) :p Jun 17 22:18:25 one second Jun 17 22:18:38 hmm, well I had the paper Jun 17 22:18:43 its my friend who wrote it Jun 17 22:18:52 its an amazingly easy way to do it Jun 17 22:19:09 actually.. my app stops ads in all apps :D Jun 17 22:19:14 is it "turn off data and wifi" ? :D Jun 17 22:19:25 nah Jun 17 22:19:33 what it does is take an APK as input Jun 17 22:19:38 Savag, ? Jun 17 22:19:40 gets back library names for ad networks Jun 17 22:19:40 mine? no :) Jun 17 22:19:56 feeds the calls (unobfuscated code) null, and no ads are returned Jun 17 22:19:57 Odaym, i think thats how lucky patcher works Jun 17 22:20:04 it uses weaving Jun 17 22:20:07 danijoo: I have an actual implementation that legitimately blocks ads Jun 17 22:20:11 a software by some university Jun 17 22:20:14 at least i know it repackages apks Jun 17 22:20:24 same Jun 17 22:20:24 danijoo: requests to ad servers to be more precise Jun 17 22:20:25 yes Jun 17 22:20:35 Savag, theres no legitimation in blocking ads Jun 17 22:20:36 its the unobfuscated code that gets it Jun 17 22:20:40 its just a dick move Jun 17 22:21:16 and also, it can actually intercept google play to get its APK Jun 17 22:21:20 no need to apk extractor on it Jun 17 22:21:29 danijoo: why? If I want to not see ads on my phone, and I'm willing to pay for it why am I not allowed to not see ads ? Jun 17 22:21:38 you dont need to. apk is stored as apok on the phoine Jun 17 22:21:44 Why are you using the app, then? Jun 17 22:21:47 i never knew where, I told him it isnt Jun 17 22:21:52 where are those apks.. Jun 17 22:22:00 Why not choose a different app to use that doesn’t have ads? Jun 17 22:22:07 Savag, dick move. Jun 17 22:22:10 Savag, i dont want to pay for my stuff at stores, why should I not be allowed to steal them? Jun 17 22:22:12 dont even argue please Jun 17 22:22:21 stupid discussion that one Jun 17 22:22:32 yep Jun 17 22:22:38 1995 Jun 17 22:23:06 But at least now I feel less bad that he cant get his IAP to work :p Jun 17 22:23:23 here we go, https://hal.archives-ouvertes.fr/hal-01120550/document Jun 17 22:23:27 this is how he did it Jun 17 22:23:45 Savag: How would you feel if people simply cracked your app and took your IAP for free? Jun 17 22:23:52 let me read it up Jun 17 22:23:59 I'm pretty sure i didnt do it like that Jun 17 22:24:04 of course not Jun 17 22:24:06 that's a masters paper :P Jun 17 22:24:10 Odaym, is right. better dont discuss that at all Jun 17 22:24:15 yea please Jun 17 22:24:28 that discussion is just brick wall of shitness Jun 17 22:24:32 yeah. Jun 17 22:24:43 s73v3r: I wouldnt mind actually. As long as there people left who dont do that Jun 17 22:24:56 And what if everyone did? Jun 17 22:25:02 dude Jun 17 22:25:09 you're throwing theories on each other Jun 17 22:25:12 and going to end up with nothing Jun 17 22:25:21 no one cares Jun 17 22:25:55 I fought that idea in that paper, mainly that how you gonna get the APK Jun 17 22:26:12 first he said they were on the phone, second he said he could get the app to get the APK from Play as its being downloaded Jun 17 22:26:21 its stupid that you get to have the APK on your phone..how the fuck Jun 17 22:26:22 well, like it or not there are real reasons as to why some1 would want to block ads. Ads are personalized. You go to work you open google and you see a porn ad because you watched your favorite porn movie the other day. Jun 17 22:26:28 now your colegues think you like dildos Jun 17 22:26:35 great stuff Jun 17 22:26:41 you really were more valued before you said that sentence Jun 17 22:26:41 haha Jun 17 22:26:44 down the drain Jun 17 22:26:52 power of words brah Jun 17 22:27:03 s73v3r will follow suite now Jun 17 22:27:19 suit, not suite Jun 17 22:27:41 you like dildos? interessting Jun 17 22:27:46 suit Jun 17 22:27:47 ok Jun 17 22:28:04 I’m sorry, but the entitled attitude of people like Savag just irks me. Especially when he’s trying to make money himself Jun 17 22:28:16 welcome to your country Jun 17 22:28:17 :P Jun 17 22:28:22 yeah but you really cant argue with them Jun 17 22:28:23 Amurikans Jun 17 22:28:33 either RMS or Savagans Jun 17 22:28:36 haha Jun 17 22:28:40 no sane people in Amurika! Jun 17 22:28:41 its like arguing with little kids Jun 17 22:28:44 really no point Jun 17 22:28:45 yep Jun 17 22:28:52 not that he's a kid Jun 17 22:28:58 but the argument itself is stupid, drags everybody down Jun 17 22:29:05 step up your game Jun 17 22:30:33 is it wrong that I have Bitch Better Have My Money on loop Jun 17 22:30:40 Im smart and Im cultured, I swear! Jun 17 22:30:45 but ..its a nice track!! Jun 17 22:31:23 listen to this Jun 17 22:31:34 not my genre :) Jun 17 22:31:39 today at work, we have to talk to the server via SOAP, the iOS person was doing it through HTTP requests Jun 17 22:31:54 meaning she writes the whole header, with the tags and everything, the wholeeee thing, and sends that Jun 17 22:31:57 what..the fuck Jun 17 22:32:25 basically you look at the code, it's like .NET page with construction of tags and HTML inside it Jun 17 22:32:53 cause the library for SOAP she was using gave her some problem Jun 17 22:33:01 one would wonder why anyone is using SOAP in this day and age Jun 17 22:33:08 exactly Jun 17 22:33:16 but that's how one system they have worked Jun 17 22:33:18 arguing didnt work Jun 17 22:33:35 I whipped out ksoap2 like a boss and made it my bitch, ultra elegance Jun 17 22:33:56 i know plenty of people who use NSURLSession by itself, instead of using a library. Same with HTTPUrlConnection on Android Jun 17 22:34:08 and they HAVE libs for it Jun 17 22:34:10 im sure Jun 17 22:34:22 man she has a problem wiht loading too many items into a listview in one go Jun 17 22:34:25 you said she was using one, it just wasn’t very good Jun 17 22:34:28 what the fuck, saying it will lag if there are many pictures Jun 17 22:34:37 what do you mean not very good :P Jun 17 22:34:50 its a whole library, she had a problem with it that she wasnt willing to put effort on Jun 17 22:34:53 she went bareback Jun 17 22:34:56 that's just stupid Jun 17 22:35:03 how can you let go something like that knowing you couldnt do it! Jun 17 22:35:11 how do you sleep!! Jun 17 22:35:12 depends on what the problems were Jun 17 22:35:21 nah its a well thought out library that millions before her used im sure Jun 17 22:35:30 you just add the header, add the soap action, the properties....done Jun 17 22:35:31 i would sleep just fine knowing I didn’t waste a huge amount of time on a problem that doesn’t matter Jun 17 22:35:38 it isnt huge Jun 17 22:35:43 just ONE MORE HOUR than what you expected Jun 17 22:35:45 that's it Jun 17 22:35:48 it's always like that Jun 17 22:35:59 or at least 1 more chunk than you expected Jun 17 22:36:06 no, it isn't Jun 17 22:36:10 how would you know Jun 17 22:36:16 if you do it once, you do it all the time Jun 17 22:36:20 if you never do it, you never do it Jun 17 22:36:30 you cant be a "measurer of worth" Jun 17 22:36:45 there are things you would never approach Jun 17 22:36:51 you have to be. you need to know where to put your time and effort Jun 17 22:37:05 nah you end up less Jun 17 22:37:18 a compromiser Jun 17 22:37:20 hey, I'm back from my job interview! Jun 17 22:37:38 great! Jun 17 22:37:38 i applied for a senior android position and I have just have got it Jun 17 22:37:42 response tomorrow Jun 17 22:37:51 have just have got it? Jun 17 22:37:59 disclamer, I know nothing about android and java Jun 17 22:38:01 did you get it or no Jun 17 22:38:06 ahh you're that guy! Jun 17 22:38:06 haha Jun 17 22:38:09 dream on! Jun 17 22:38:15 hey said probably but the respons will be tomorrow Jun 17 22:38:19 no seriously Jun 17 22:38:37 bro Jun 17 22:38:41 you aint gonna get it Jun 17 22:38:42 it's a small shop and they really liked me Jun 17 22:38:45 dont they always say that? ^^ Jun 17 22:38:54 small shop? Jun 17 22:38:59 they seem to know the word senior :P Jun 17 22:39:00 they have some junior guy but he is lazy and doesnt want to evolve Jun 17 22:39:01 oh joy. SOAP. I had to write code to interface with a bank that had a SOAP API once... and their parser would throw exceptions if you didn't emit attributes in a specific order :| of course the .NET SOAP libraries never let you specify anything like that, so yeah. lots of hand-generated XML. Jun 17 22:39:06 depends on if they’re looking for a senior developer who can do android, or a senior android developer Jun 17 22:39:18 true groxx that's how it behaves Jun 17 22:39:21 well I told them I was very good Jun 17 22:39:27 nah man ksoap2 solves everything! Jun 17 22:39:33 told them? :P Jun 17 22:39:40 if they didnt test you, they deserve to have you Jun 17 22:39:41 :) Jun 17 22:39:54 well they need someone, android ppl are in hi demand Jun 17 22:40:00 no Jun 17 22:40:06 skilled people are in high demand Jun 17 22:40:39 btw, they said that the guy they interviewed before me was a 21 y.o. how charged them an unbelieaveble amount of money Jun 17 22:40:50 probably cause he's good Jun 17 22:40:57 in your country it pays a lot to do dev Jun 17 22:41:06 at 21? not very likely Jun 17 22:41:07 unbelievable amount of money can be relative Jun 17 22:41:16 quite likely Jun 17 22:41:20 anyone know how to get data from the chrome app, without the device being rooted? Jun 17 22:41:30 Specifically the tabs list Jun 17 22:41:30 anyway, the job is going to be mine anyone. I will have confirmation tomorrow Jun 17 22:41:38 id rather employ a 21 years old nerd who does andorid since hes 15 out of fun than a 30 year old M.Sc CS Jun 17 22:41:48 yep :P Jun 17 22:41:58 depends on the job really, but you have to test the guy at least Jun 17 22:42:03 i’d rather find out which one was better first Jun 17 22:42:09 someone who will hire you on your word is an absolute moron Jun 17 22:42:15 what did you talk about in teh interview if you don't know java or android? :/ Jun 17 22:42:21 yeah. maybe for actually code design the M.Sc might be better ;) Jun 17 22:42:25 I think nobody will employ me anymore since everybody knows what I did now :( Jun 17 22:42:27 he talked about how he did know :P Jun 17 22:42:30 well I did show him something, but it was mostly copy and paste code Jun 17 22:42:39 copy pasta is not that easy Jun 17 22:42:49 i wouldn’t hire someone who specifically tried to make it harder for me to make money Jun 17 22:42:51 you have to be not stupid at least Jun 17 22:42:54 yeah that's what I think to Jun 17 22:42:59 but at the job Jun 17 22:43:01 no copy pasta Jun 17 22:43:02 haha Jun 17 22:43:04 even to copy and paste you need talent Jun 17 22:43:08 haha Jun 17 22:43:10 you troll Jun 17 22:43:11 well I will have time to learn Jun 17 22:43:15 I can study at night Jun 17 22:43:19 talent my ass Jun 17 22:43:24 what's the app out of curiosity Jun 17 22:43:31 you gonna fall on yo face! Jun 17 22:43:33 :D Jun 17 22:43:40 bottomline, I will really need you guys now that I got this job Jun 17 22:43:46 broadcast receivers for sending data between activities Jun 17 22:43:47 hahaha Jun 17 22:43:53 I will have questions all the time :( Jun 17 22:43:59 we will make it absolutely necessary to never answer you! Jun 17 22:44:06 cause you're wasting someone else's time and money! Jun 17 22:44:12 no, please , don't do that Jun 17 22:44:13 oughtta be shot Jun 17 22:44:17 JFlash, I accept paypal :) Jun 17 22:44:20 give me their email! Jun 17 22:44:28 danijoo, that makes 2 of us! Jun 17 22:44:34 i'll take a consulting fee Jun 17 22:44:40 ignore them. Congratulations, JFlash Jun 17 22:44:40 get this Jun 17 22:44:47 no! Jun 17 22:44:52 he hasnt got it yet even Jun 17 22:44:53 well it's not like I'm charging him a lot of money Jun 17 22:45:03 1$ per question. 5 if its a dumb one and 100$ if you can google it Jun 17 22:45:03 danijoo and I, and s73v3r will do it for you Jun 17 22:45:07 if I was , I'd definitely pay you guys beer money Jun 17 22:45:07 I swear Jun 17 22:45:12 I am willing Jun 17 22:45:19 you get your jobs 1 day after Jun 17 22:45:28 post today, tomorrow you get it Jun 17 22:45:38 so that you could say "I need time! this needs to be perfect!" Jun 17 22:45:40 I'm trying to design a tab exporter because I have so many tabs that I simply see :D all the time Jun 17 22:46:09 you pay danijoo since I dont have paypal in my country :P Jun 17 22:46:18 I fight with s73v3r over the amount Jun 17 22:46:25 and you get your jobs Jun 17 22:46:42 oh man haha what’s going on here? Jun 17 22:46:49 broadcast receivers? Jun 17 22:46:54 guys, stop the nonsense, I will not pay for answers :) Jun 17 22:46:54 JFlash got senior android dev position Jun 17 22:46:57 knows NOTHING Jun 17 22:47:01 answers? Jun 17 22:47:04 wait really? Jun 17 22:47:05 no, you're paying for solutions Jun 17 22:47:09 we WRITE the thing you have Jun 17 22:47:14 the thing you want* Jun 17 22:47:25 how is a broadcast receiver going to help? Chrome doesn't broadcast tab information Jun 17 22:47:32 but if I pay you , how will I learn Jun 17 22:47:34 that wasnt for you SeunDos Jun 17 22:47:37 oh Jun 17 22:47:38 you will read the code.. Jun 17 22:47:47 you are paying for support and follow up too Jun 17 22:48:04 well reading the code is not the xp as writing. c'mon, you know better than that! Jun 17 22:48:06 outsourcing in the full sense of the word Jun 17 22:48:15 we will tell you what you can write on your own Jun 17 22:48:23 we're not going to take EVERYTHING Jun 17 22:48:29 just the stuff you find hard Jun 17 22:48:30 loooooooool I just read the thread Jun 17 22:48:30 Odaym, cut it off, already :) Jun 17 22:48:36 dude Jun 17 22:48:38 I am serious Jun 17 22:48:44 we're not allowed to do this here though, by teh way Jun 17 22:48:52 tricknology_ congrats, i can't make sense of Odaym typing one word per line Jun 17 22:48:52 Have fun with the position Jun 17 22:49:05 yea I abuse enter, sorry Jun 17 22:49:13 Odaym, I think you are misunderstanding the whole situation, bro Jun 17 22:49:40 I'm not, you're going to have a lot of difficulties even in small-to-medium applications, we will help you with those until you can really fill those Senior shoes Jun 17 22:49:55 who can ask for anything better than a coach? Jun 17 22:49:58 Odaym, I've been programming for the past 10 years. I have never in 10 years payed someone for code. You are not likely to the the first ;-) Jun 17 22:50:31 Odaym, btw, it's not really senior. It's more like experiencied level. I don't know the market name for it Jun 17 22:50:40 still, it's not like you can pick up the API and spin-off a Whatsapp clone, man. it IS difficult and you should approach it with reverence Jun 17 22:50:51 there's junior, there's like minimum 2 years xp, and then there's senior Jun 17 22:51:05 so the one I got is the middle one. And the salary is not good at all Jun 17 22:51:21 so don't think I have money to spare on buying code :) Jun 17 22:51:22 2 years of exp in what? Android? you said you dont know Java even Jun 17 22:51:51 well I have like 3 weekends of java xp ( not 3 weeks, 3 weekENDS ) Jun 17 22:51:59 that's...nothing Jun 17 22:52:04 exactly! Jun 17 22:52:10 yea so you are junior Jun 17 22:52:17 any ideas? I can't very well design a tab exporter without a way to access the tabs. Jun 17 22:52:19 pre-junior ^^ Jun 17 22:52:24 pre-junior Jun 17 22:52:46 junior means knows Java, doesn't know Android Jun 17 22:53:11 let's say I'm soon-to-be-experiencied. That's the label I mostly identify with Jun 17 22:53:24 ...that's all our titles Jun 17 22:53:29 it's like calling yourself human Jun 17 22:53:30 you mean soon-to-be-fired? ^^ Jun 17 22:53:35 soon-to-be-fired Jun 17 22:53:41 danijoo, nah I don't think so Jun 17 22:53:49 people love big talk, but they dont tolerate little-work! Jun 17 22:54:03 nicest guy will turn into a real asshole if you do not deliver Jun 17 22:54:12 my work will the very good. but not in the very beginning, indeed Jun 17 22:54:22 I will try to start studing today Jun 17 22:54:23 but the beginning is the first impression man! Jun 17 22:54:33 guys Jun 17 22:54:40 LATER is when you can start slacking off, not at the beginning Jun 17 22:54:41 actually tomorrow, since I haven't yet got the confirmation Jun 17 22:54:47 I'm trying to do a log in with parse, but I'm getting this in my error log http://hastebin.com/ekiqezebes.avrasm Jun 17 22:54:52 SeunDos: dunno. I would guess that there isn't a way to query the app directly / observe it, because that'd be a leak of reasonably sensitive data. possibly the tab / bookmark sync system has an API you could plug into though? Jun 17 22:54:54 I will do it for you for free, JFlash Jun 17 22:54:58 fine? Jun 17 22:55:08 for 1 month Jun 17 22:55:29 guys, I'll come back later, I feel like I'm disrupting the channel. I just wanted to share the news with someone because I'm mega excited Jun 17 22:55:38 this is when i try to register the user. anyone have any clue what i can do to debug? Jun 17 22:55:38 つ ◕_◕ ༽つ giff code...... Jun 17 22:55:42 I fought hard for this job! Jun 17 22:55:51 you are not disrupting the channel, but you are trolling Jun 17 22:55:54 thanks to evryone that helped me , including s73v3r Jun 17 22:56:05 and you're getting a run for your money Jun 17 22:56:07 as you did last time Jun 17 22:56:11 no it's serious, maybe I can post something later to prove it Jun 17 22:56:37 but I need the confirmation, tomorrow. please route for me! Jun 17 22:56:50 buy a router Jun 17 22:56:54 lol Jun 17 22:57:08 I’m trying to leave but I’m afraid I’ll miss something good on my 15 min commute Jun 17 22:57:19 same here XD Jun 17 22:57:25 tricknology_, you help me as well. thank you! Jun 17 22:57:28 lol Jun 17 22:57:53 Did you sign an NDA? heh Jun 17 22:57:57 liftedbronco: possibly http://stackoverflow.com/questions/27595057/converting-an-anonymous-user-to-a-regular-user-and-saving ? there are some other "com.parse.ParseUser.signUpAsync stack overflow" google results too, one seems likely. Jun 17 22:58:06 no , it's on site Jun 17 22:58:21 well even I did and it’s on site Jun 17 22:58:23 oops sorry, I thought the question was for me Jun 17 22:58:28 did you see that post by chris banes I think about adding a ripple to any image? Jun 17 22:58:29 the NDA, yeah Jun 17 22:58:43 ttyl. Jun 17 22:58:47 there is a part that Im missing from it, I am guessing its the XML that has the ripple tag inside it Jun 17 22:58:55 lol later Jun 17 22:59:00 ok I can finally leave Jun 17 22:59:00 ok here it is, https://plus.google.com/+NickButcher/posts/azEU6s4APbu?utm_source=Android+Weekly&utm_campaign=318f1afed6-Android_Weekly_156&utm_medium=email&utm_term=0_4eb677ad19-318f1afed6-337905357 Jun 17 22:59:02 nick butcher Jun 17 22:59:03 my work here is done Jun 17 22:59:11 see you all in an hour or so, kek Jun 17 22:59:14 Drawable image = Jun 17 22:59:17 that first line Jun 17 22:59:43 thanks groxx ill look into that Jun 17 22:59:46 cause Im still struggling with getting the listview to apply the ripple to the exact shape of the drawable i've set on each of its list items Jun 17 23:00:08 it still does it square, and the drawable has round edges, so I thought I can apply the ripple manually on each list item and remove drawSelectorOnTop Jun 17 23:00:36 liftedbronco: it seems like it's entirely within Parse, so I'd guess you're just trying to do something when it's in an incorrect state (e.g. hopefully that "save anonymous before converting to registered" is documented, because that could be "normal" behavior) Jun 17 23:01:06 yea im sure he placed a ripple in XML and that's what he feeds to the Drawable image = .. Jun 17 23:01:29 the fucked up thing is im following a tutorial groxx lol Jun 17 23:01:41 liftedbronco: lol, well good luck then :) Jun 17 23:04:05 ok lol Jun 17 23:04:08 figured it out >.> Jun 17 23:04:19 defaultACL.setPublicReadAccess(true); Jun 17 23:04:19 was the solution lol Jun 17 23:04:45 ah! here's my problem! http://www.michaelevans.org/blog/2015/05/07/android-ripples-with-rounded-corners/ Jun 17 23:07:53 liftedbronco: seems weird that it causes infinite recursion :\ oh well. Jun 17 23:08:27 yeah whatever Jun 17 23:08:32 i love parse Jun 17 23:08:49 Odaym: your better off setting the outline on the view Jun 17 23:24:16 not-exactly-developement question: anyone know of a good vector/diagram drawing app for android? Jun 17 23:26:50 Hey guys. Question about fragment manager. I want to start/launch an Fragment to pick some info and then get back to the original Fragment i was before. I tried with ".add(Fragment)" but the old fragment appears on back ground. Jun 17 23:28:38 p_l: dunno. Inkscape over VNC? Jun 17 23:28:44 lol Jun 17 23:28:49 abara: FragmentTransaction.replace Jun 17 23:28:59 might as well run Xfig then Jun 17 23:29:02 p_l: haha https://play.google.com/store/apps/details?id=org.gimp.inkscape&hl=en Jun 17 23:29:48 TacticalJoke: but "replace" will keep the state of the frag "A" when accessing frag "B"? Jun 17 23:31:56 groxx: https://play.google.com/store/apps/details?id=x.org.server + xfig xD Jun 17 23:32:18 p_l: they even show gimp, that's great xD Jun 17 23:32:48 well. I think that proves that that's the best idea. Jun 17 23:35:16 abara: What state? Jun 17 23:35:58 TacticalJoke: of the fragment instante itself, but nevermind i figured out :) thanks Jun 17 23:42:53 how do I apply this http://www.michaelevans.org/blog/2015/05/07/android-ripples-with-rounded-corners/ to this XML drawable http://pastie.org/10246049 Jun 17 23:43:09 I can't get the second item to become the mask without having the first item completely disappear Jun 17 23:43:36 I tried to put the whole layer list in the ripple, but it becomes unbounde Jun 17 23:43:39 unbounded* Jun 17 23:46:16 p_l: I use Inkscape Jun 17 23:46:16 this is the shape that my XML produces https://dl.dropboxusercontent.com/u/19390574/shape.png Jun 17 23:46:43 innerview is where the text and all the layout elements sit, the upper view is the one that's providing the "shadow" Jun 17 23:47:41 cause you cant have a layer list be the mask apparently Jun 17 23:47:53 p_l: wait.. did you mean to use "on android"? or did you just mean for android development "on mac/pc" Jun 17 23:50:04 Odaym: it doesnt need a layer-list for a mask Jun 17 23:50:19 I want the mask to be innerView Jun 17 23:50:38 but I am doing things later with that ID innerview, with android's own ID, can I still grab it from code? Jun 17 23:51:18 what are you doing Jun 17 23:51:21 what are you trying to do Jun 17 23:51:45 just have the ripple cover the rounded corners on the shape that Ive set to each list item, not go on a square shape filling the whole list item Jun 17 23:51:56 later, I can press something and the innerView changes its color Jun 17 23:52:19 I do that with GradientDrawable Jun 17 23:52:43 ok Jun 17 23:52:49 drawSelectorOnTop completely ignores Jun 17 23:52:55 i'll take a look in 10 Jun 17 23:55:21 p_l let me know what you find, ipad has omnigraffle and a bunch more Jun 17 23:55:21 hmm, how do I get TabLayout to scroll? it extends horizontalscrollview, yet doesn't scroll Jun 17 23:55:43 p_l maybe adobe or autodesk has something Jun 17 23:57:29 pfn: how many tabs? and do they extend outside the screen.. Jun 17 23:57:52 ah, tabMode=scrollable Jun 17 23:57:54 app:tabMode="scrollable" or TabLayout#setTabMode(TabLayut.MODE_SCROLLABLE); Jun 17 23:58:02 but thats the default Jun 17 23:58:03 yeah, joo too slow Jun 17 23:58:04 btw Jun 17 23:58:06 it's not default Jun 17 23:58:13 mMode = a.getInt(R.styleable.TabLayout_tabMode, MODE_FIXED); Jun 17 23:58:39 ah, i sware it was he default Jun 17 23:58:41 :| Jun 17 23:59:35 I'm designing a Google Location API service for my app. Is that a good idea? Jun 18 00:00:33 of course, scrollable tabs look like ass Jun 18 00:00:51 should alllow fixed-size scrollable tabs Jun 18 00:01:03 without having to resort to custom view Jun 18 00:01:12 erm... they do dont tey Jun 18 00:01:14 Should I both build the GoogleApiClient and connect() in the onStartCommand function? Jun 18 00:01:24 Napalm, no, scrollable tabs fit content width Jun 18 00:01:28 sec Jun 18 00:01:39 of each label, fixed tabs fit content width of largest tab Jun 18 00:01:39 pfn: just use my code for it Jun 18 00:01:43 does both Jun 18 00:01:47 If I personally dislike Material Design, is it recommended to use v19 appcompat to avoid it? Jun 18 00:01:50 from that project we did together Jun 18 00:02:07 jimbo1qaz, do whatever you want Jun 18 00:02:15 Napalm, eh, I feel like using libraries that already exist :p Jun 18 00:02:21 dude Jun 18 00:02:24 rather than copy-pasting old stuff Jun 18 00:02:27 its a single View file Jun 18 00:02:29 lol Jun 18 00:03:14 pfn Jun 18 00:03:25 it does use largestTabWidth Jun 18 00:03:42 just adding paddingLeft and paddingRight on your tabs then it should look fine Jun 18 00:03:45 Napalm, only for fixed Jun 18 00:03:52 oh yea Jun 18 00:03:58 dude Jun 18 00:04:06 For my service class, where should I put the GoogleApiClient.Builder? Jun 18 00:04:13 just set measureWithSmallestChild on the LinearLayout used for SlidingTabStrip Jun 18 00:04:19 Is it possible to use a view as the error view for picasso? Jun 18 00:04:23 like i want to put a text view Jun 18 00:04:23 pfn: ^ Jun 18 00:04:28 uuh Jun 18 00:04:29 Napalm, yeah, might resort to that Jun 18 00:04:32 AND-401? Jun 18 00:04:34 anybody? Jun 18 00:05:00 is that even a real thing? Jun 18 00:05:01 Tricknology: what? Jun 18 00:05:20 Android Development Certification lol Jun 18 00:05:21 http://www.androidatc.com/pages-4/Android-Certifications-and-Exams Jun 18 00:05:43 meh, who needs certifying Jun 18 00:05:44 lasserix: use the failure callback to show it Jun 18 00:06:00 hey Jakey Jun 18 00:06:01 hmm Jun 18 00:06:06 :) Jun 18 00:06:08 maybe i will just draw it from a canvas instead then Jun 18 00:06:14 and use it as drawable function Jun 18 00:06:27 problem is its in a viewpager/gridview Jun 18 00:06:27 JakeWharton: so when are we seeing compile-time annotations in Moshi? :) Jun 18 00:06:43 I have never heard of it before, Napalm which Is why I ask Jun 18 00:06:45 *not a problem, just rather change as little as possible Jun 18 00:06:52 thanks for answering JakeWharton Jun 18 00:07:32 Tricknology: example exam: http://www.androidatc.com/upload//editor_upload/file/AND-401%20Exam%20Sample.pdf Jun 18 00:07:59 lasserix: you could just use a Tareget and get the onFailed callback and do whatever you like with your own custom vuews Jun 18 00:08:02 views Jun 18 00:08:02 omg.. Jun 18 00:08:34 Tricknology: browsing the exam makes me feel like i'm back in school. in all the worst possible ways. Jun 18 00:08:35 groxx: i gotta see this Jun 18 00:08:36 lol Jun 18 00:09:19 naplam ahh thats a good idea Jun 18 00:09:49 groxx: so boring, they say the answers upfront and not even at the end for reference. Jun 18 00:09:57 its not like its hard anyways Jun 18 00:10:12 Hey guys. Doubt about passing data between fragments. I have two frags FragA and FragB. i call FragA from an activity with fragManager using replace, and then i call FragB which i do some task and before getting back to FragA with "popBackStack" i set some data to a recovered instance of FragA. But when i check the data saved on "onResume" from FragA the data is still null - Jun 18 00:10:12 https://dpaste.de/gxN1 Jun 18 00:10:38 I am just wondering, has anyone ever heard of these types of certifications? Jun 18 00:10:51 or is it one of those "doorknob installer" certs Jun 18 00:11:39 certifications are all doorknob installer certs Jun 18 00:11:51 unless it's a phd or something, it's pretty much worthless Jun 18 00:12:02 some are less worthless than others, though. Jun 18 00:12:10 ^ big time Jun 18 00:12:15 I think the MS certs can be worth something in the right sectors. Jun 18 00:12:47 government work, maybe Jun 18 00:12:54 Not one I'd want to be in Jun 18 00:12:56 Whats the best way to do a background reoccuring task every 2-5 seconds? I was using an IntentService BroadcastReceiver and the AlarmManager before but it seems that the alarm doesn’t fire so often anymore. Jun 18 00:13:19 alarmmanager is the wrong tool if your app is running Jun 18 00:13:20 Tricknology: right, but it does get you employment. if you want it is a different story. :P Jun 18 00:13:33 true Jun 18 00:14:00 thread.sleep)_ maarek Jun 18 00:14:00 meh, I need to look into multidex with target/min=21 to see how fast it is Jun 18 00:14:13 hate having to turn off incremental dex because I'm at the dex limit Jun 18 00:14:18 For my service class, where should I put the GoogleApiClient.Builder? In onStartCommand or constructor? Jun 18 00:14:45 onCreate Jun 18 00:14:48 pfn: i found adding preDexLibraries=false in dexOptions fixes that Jun 18 00:14:58 pfn onCreate me? Jun 18 00:15:06 Napalm, oh? interesting Jun 18 00:15:24 Napalm, but nothing's getting predexed though, hmm Jun 18 00:15:35 its faster Jun 18 00:15:41 just for dev/debug Jun 18 00:15:45 for release it should be true Jun 18 00:16:52 Odaym: so, still playing around with the mask? Jun 18 00:17:04 Napalm, already default to false for me Jun 18 00:17:17 well Im realizing that i dont know much about drawable xml :P Jun 18 00:17:22 trying to put an item inside an item Jun 18 00:17:22 haha Jun 18 00:17:41 I am having trouble to execute this sqlite database query : https://gist.github.com/anonymous/2922deeca4152c16891b Jun 18 00:17:50 its not what I need, I only need the innerView to be the mask of the ripple, but you cannot apply the ripple on an item like that Jun 18 00:17:54 i...dont know Jun 18 00:18:01 http://stackoverflow.com/questions/21125302/gradle-builds-really-slow-with-a-multi-project-structure Jun 18 00:18:05 lol, 1hr20 minutes? Jun 18 00:18:06 wtf Jun 18 00:18:07 hi. https://github.com/tyczj/ExtendedCalendarView <- how do i add this to my project ?? Jun 18 00:18:30 If someone could help me figure whats going on please Jun 18 00:19:30 ircfox_, use placeholders Jun 18 00:19:32 problem solved Jun 18 00:19:47 i.e. read the stupid database documentation Jun 18 00:19:58 Tricknology: if you're a) paid to get certified, and b) paid more after being certified, then they're worth it. otherwise I'd say no. Jun 18 00:20:24 Odaym: you can apply it.. one moment i'll show you Jun 18 00:20:35 fair enough. by paid to get certified you mean paid for your time? or cert paid? or both? Jun 18 00:20:35 it makes the other item not show up Jun 18 00:20:41 ircfox_: we'll need to see what the values of those constants are Jun 18 00:20:58 ircfox_, already gave you your answer, use your brain Jun 18 00:20:59 Napalm: just a sec Jun 18 00:21:04 ircfox_: dont bother.. i just saw the problem Jun 18 00:21:13 your not providing the arguments correctly Jun 18 00:21:16 never + then Jun 18 00:21:40 Tricknology: I've seen a number of cases where Enterprise Business X™ would pay for MS certification classes and tests, and then you'd either get or be eligible for a higher pay scale. that seems fairly "sure, why not" in my book Jun 18 00:21:59 Napalm: what? Jun 18 00:22:03 sure, if you're paid to Jun 18 00:22:07 one moment Jun 18 00:22:30 ok Jun 18 00:22:45 god, I hate hipchat Jun 18 00:22:54 bubbely: it looks like there's a jar in the bin folder https://github.com/tyczj/ExtendedCalendarView/tree/master/ExtendedCalendarView/bin Jun 18 00:22:59 I got a message at 4pm, the desktop notification shows up at 5:20pm Jun 18 00:23:05 how garbage is that... Jun 18 00:23:14 bubbely: if that doesn't work, probably by copy/paste, or creating a library project for it. Jun 18 00:23:34 ircfox_: left a comment on your gist https://gist.github.com/anonymous/2922deeca4152c16891b Jun 18 00:23:35 pfn: that is not less than 30% garbage. Jun 18 00:24:50 pfn: were they using Jun 18 00:24:50 urban airship Jun 18 00:24:52 lol Jun 18 00:25:34 I never get hipchat notifications on my phone, either Jun 18 00:26:48 It's hoestly not somethign that's pushed, and at my position, I hardly touch Android anymore though my title is Android Developer Jun 18 00:26:54 groxx^ Jun 18 00:27:06 ircfox_: wotking for you? Jun 18 00:27:11 *working Jun 18 00:27:14 Tricknology: is that a good thing or a bad thing? Jun 18 00:27:35 I think its bad Jun 18 00:27:36 does someone know a good calendar control? one that i can highlight multiple dates with Jun 18 00:27:51 heh, groxx it depends on how you look at it Jun 18 00:28:19 on the plus side I'm learning new languages Jun 18 00:28:28 I mean, I like coding. but at the same time, being paid to not code has some upsides. Jun 18 00:28:35 [info] Generating dex, incremental=false, multiDex=true Jun 18 00:28:35 [info] dex method count: 146617 Jun 18 00:28:36 lol Jun 18 00:28:41 but I miss Android a bit Jun 18 00:28:49 it's gotten easy Jun 18 00:28:55 -er Jun 18 00:28:59 pfn: build time? Jun 18 00:29:05 56 seconds Jun 18 00:29:11 nice Jun 18 00:29:22 Napalm: yes! Thank you! ;D Jun 18 00:29:23 pfn: that "living on the edge" thing - I think you may have left the edge a while ago. Jun 18 00:29:25 eh, nonincremental dex is also 56 seconds Jun 18 00:29:33 dont think thats bad considering all the things you must be including Jun 18 00:29:35 hmm Jun 18 00:29:36 that's more like "bleeding valley" Jun 18 00:29:46 now I'm on like 7 projects Jun 18 00:30:00 and I was paid to do 1.. I think that's what it comes down to Jun 18 00:30:40 no absolute build speed improvement for me... hmm Jun 18 00:30:48 I need to look at the v21+ multidex optimization Jun 18 00:30:59 still takes 52 seconds to deploy to device (incremental build + deploy) Jun 18 00:31:08 pfn: is this after trying gradle 2.4, or something else? Jun 18 00:31:11 with incremental dex, it takes 30 seconds Jun 18 00:31:13 groxx, I don't gradle Jun 18 00:31:30 ah, right. then D: at your build time :) Jun 18 00:31:44 well, it's a 20mb apk, takes 20 seconds to install Jun 18 00:31:48 i really like by 1 second build times Jun 18 00:31:49 er, 30 Jun 18 00:31:56 lol Jun 18 00:31:58 killer Jun 18 00:31:59 central-debug.apk] Install finished: 19.08MB in 29.93s. 652.62KB/s Jun 18 00:32:34 I only ever really count build+deploy times Jun 18 00:32:45 [success] Total time: 52 s, completed Jun 17, 2015 5:28:36 PM Jun 18 00:33:01 does someone know a good calendar control? one that i can highlight multiple dates with Jun 18 00:34:10 bubbely: date and time picker libraries: http://android-arsenal.com/tag/27 Jun 18 00:34:13 pfn: I can never figure out why installing takes so long :( Jun 18 00:34:27 slow flash maybe? Jun 18 00:34:34 bubbely: you can probably do that with any of them.. use a selector drawable for each cell. add your own activated state as the highlight.. now when a cell is tapped setActivated on it.. tada.. now you have multi-select.. add a variable to keep track of them.. your done Jun 18 00:34:44 ok I have this videoview which I detect onTouch to pop up my custom media controller, my problem is I'm hiding the soft menu bar in fullscreen landscape mode, and when user touches the first time it pops up the soft navigation menu, and then the user has to touch again to pop up the media controller Jun 18 00:35:08 groxx, dex2oat Jun 18 00:35:23 groxx, doubled install times Jun 18 00:35:24 how do I detect that first touch that pops up the soft navigation menu because it was hidden Jun 18 00:35:26 ??? Jun 18 00:36:08 so I can pop up my media controller in one touch with the soft navigation menu instead of two touches Jun 18 00:37:45 shmooz: add a click listener to your view.. ? Jun 18 00:38:31 surf2b1: to which view, I am wrapping the VideoView with a RelativeLayout and that inside another vertical LinearLayout Jun 18 00:39:35 surf2b1: I am already detecting the first touch on the videoview fine, but I can't detect the touch that brings up the soft navigation menu bar because it was hiding which happens before anything else Jun 18 00:40:07 Napalm: it did work once, now it is throwing this error : https://gist.github.com/anonymous/72c16283fb18d52154de Jun 18 00:40:49 ircfox_: thats something else.. look at the stack trace.. com.example.trabalho2.RegistroAssinanteActivity$1.onClick(RegistroAssinanteActivity.java:60) Jun 18 00:40:54 Depends on your layout. Whatever view is match_parent. Is it the only child? Why have it in a RelativeLayout too? Jun 18 00:41:01 I am trying to access it this way : int id = c.getInt(c.getColumnIndex(DatabaseHelper.KEY_REVISTA_ID)); Jun 18 00:42:27 Napalm: RegistroAssinanteActivity.java:60 == int id = c.getInt(c.getColumnIndex(DatabaseHelper.KEY_REVISTA_ID)); Jun 18 00:42:50 KEY_REVISTA_ID does nt exist in your resutl Jun 18 00:42:52 rsult Jun 18 00:42:57 omg.. this new keyboard Jun 18 00:43:03 im going to bin it Jun 18 00:43:29 stomp it first Jun 18 00:43:46 ircfox_: probably you need to moveToNext(). Jun 18 00:44:07 If the key is not in one row, it's probably not in the next row either. Make sure it's in the projection Jun 18 00:44:48 there's one row, but they're on row -1. Jun 18 00:44:49 ircfox_: you also probably want to use getColumnIndexOrThrow Jun 18 00:45:02 my problem is a common one for anyone writing a full screen video with soft navigation hidden, which is the right way imo Jun 18 00:45:12 And write a helper method instead of always doing this silly c.getInt(c.getIndex()) madness Jun 18 00:46:35 shmooz: https://chris.banes.me/2014/08/29/systemuihelper/ Jun 18 00:47:42 cool, thanks Napalm I'll check that out, hopefully it will solve my problem Jun 18 00:52:40 can i do both "implements" and extends in a class declaration Jun 18 00:52:56 Napalm: I guess onSystemUiVisibilityChange(int visibility) could help ;) Jun 18 00:52:59 yes Jun 18 00:56:27 Napalm was that to me? Jun 18 00:56:39 eh? "W/art : Attempt to remove local handle scope entry from IRT, ignoring" Jun 18 00:57:09 i'm trying to draw a polygon from retrieved marker coordinate everything works i get each marker coord at line 23 in the for loop then crash at line 33 "at com.google.android.gms.maps.GoogleMap.addPolygon(Unknown Source)" http://pastebin.com/P3vvChAV something with map not sure Jun 18 00:57:36 bubbely: yes Jun 18 00:58:46 hert: that's not how async works. everything in "done" is happening after the rest of that code is finished. Jun 18 01:03:52 grow how do i make them run after "done"? Jun 18 01:07:52 hi, I have an activity and a fragment. everything works fine for the first run, but after turning off the screen, the fragment totally overlays the main activity and cannot be seen. But the input listeners are still working. I can still press the buttons, How do I fix this? Thanks Jun 18 01:12:10 Guys, thank you for tonight. Jun 18 01:22:52 argyris: Overlays and cannot be seen? Jun 18 01:24:32 wow Jun 18 01:24:48 these new app wizard templates have everything deprecated Jun 18 01:24:54 I am wanting to stream text quickly from my Wear device to my Android phone, I am using MessageAPI but the data rate is very slow right now. Jun 18 01:24:58 Any suggestions? Jun 18 01:29:19 TacticalJokes. Not overlay. I want the activity view to be the overlay Jun 18 01:29:34 But yes, main activity view cannot be seen Jun 18 01:30:14 Sorry, I just can't understand your description. Jun 18 01:31:04 I do not have a physical xml layout file though. The fragment is added to the activity using this.getactivity().addcontentview(...). Jun 18 01:32:14 http://pastebin.com/qWK3bgXt I think this should help. I am playing with the resume method. this is not final Jun 18 01:37:19 argyris: AFAIK, you should be adding that fragment only if `savedInstanceState` is null. Doing this might solve your problem. Jun 18 01:37:31 But, to be honest, that code looks it has various design issues. Jun 18 01:38:18 Is it okay to launch an activity from my Application subclass's onCreate? Or will that create problems when Android tries to launch the default Acitivity defined in my manifest? Jun 18 01:38:25 Even the very first line -- why is an Activity called "AndroidApplication"? An Activity is not an application. Jun 18 01:45:18 http://pastebin.com/d7DMBL8m <- does this mean the website deosn't have the widget? Jun 18 01:46:07 bubbely: it means jcenter doesn't know what you're looking for. github projects aren't by default maven-friendly Jun 18 01:46:16 Oh. Jun 18 01:46:57 bubbely: I've been meaning to try out https://jitpack.io/ , but I haven't gotten around to it. it might work for you though. Jun 18 01:47:18 You can use jitpack if you want to use a github project that’s not on Maven Central nor JCenter Jun 18 01:49:44 I would assume it still needs a pom.xml or something? I haven't looked too closely at it yet Jun 18 01:49:54 nor am I a maven maven :) Jun 18 01:52:30 I've delt with timezones and internationalisation plenty of times.. but these videos say it all. Every programmer should see these. Jun 18 01:52:35 https://www.youtube.com/watch?v=MijmeoH9LT4 Jun 18 01:52:38 https://www.youtube.com/watch?v=0j74jcxSunY Jun 18 01:55:50 I wish I could remember what site I saw a long time ago :\ it was this _massive_ static-html site with detailed info on date/time calculations, when and why leap-stuff happens, how to account for it, ways to deal with clock skew, etc. google fails me though :( Jun 18 01:56:08 I need to quickly send light wieght text data from android wear to my android phone, any advice, a simple Log.d() shows that the rate at which data is sent seems pretty low. Jun 18 01:57:33 Snicers-Work: dunno. is there a way you can send data directly over bluetooth? Jun 18 01:58:42 The Google MessageAPI does this I think. I am using it and the rate is pretty slow. Jun 18 02:01:54 is the bluetooth just too unreliable for real time data streaming? Jun 18 02:01:57 Hello, trying to pm grant com.google.android.gms and my device (amazon hd fire 7) is saying it's not a valid package. was this package named differently now or perhaps has amazon removed it? Jun 18 02:02:23 grep'd for google in package list and i only found talkback. Jun 18 02:03:14 Err sorry, perhaps I got the wrong channel. Jun 18 02:04:02 hi Jun 18 02:05:01 i want to create an app that streams video from an android phone to another android phone, i know you can use socket filedescriptor with mediarecorder Jun 18 02:05:15 but why does everyone use ffmpeg with jni? Jun 18 02:10:26 hey guys, i just updated google suport lib to 22.2 but when i try to build with gradle with "compile 'com.android.support:appcompat-v7:22.2.0'" he says "failed to resolve" how can i make it resolve the new version? Jun 18 02:10:56 TechEffigy: smoother results probably Jun 18 02:20:58 meh i hope comcast doesn't buy tmobile Jun 18 02:37:00 hi, the fragment is overlaying the activity layout after resume. How do I reorder them? I can still press the buttons from the activity, but I cannot see them Jun 18 02:37:44 argyris: I answered before -- there's a reasonable chance that adding `if (savedInstanceState == null)` around the fragment code will fix it. Jun 18 02:37:54 But, in general, the design of that code is problematic. Jun 18 02:38:27 TacticalJoke, Thanks, I didn't see the previous suggestion, internet connection. Jun 18 02:40:18 TacticalJoke, It's the same result. Jun 18 02:41:15 In my fragment, I had to do this. this.getActivity().addContentView(mGLView, new LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT)); Jun 18 02:41:48 Why do that? Why not just keep things simple. Jun 18 02:42:01 is it possible to add this to global layout throughout the whole project>\? Jun 18 02:45:56 I know. I am trying my best to keep things simple. Things are getting out of hand. Jun 18 02:50:37 what is the problem? Jun 18 02:50:48 argyris: I'm no fragment guy, but to me it seems crazy for a fragment to be adding to the activity's content view. Jun 18 02:51:39 ok, I am not going to fix this, instead when I pause, I stopped the activity Jun 18 02:51:51 on resume, it just recreated itself. fixed !! Jun 18 02:52:03 not sure if that is even a resume. Jun 18 02:53:12 I think it apparently is not. :D Jun 18 02:53:39 TacticalJoke, thanks for the help, I have been trying to fix this for weeks. on and off. Jun 18 02:54:23 Hmm, what fixed it? I can't understand what you're saying. Jun 18 02:57:32 nothing fixed it, I just stopped the whole activity, probably destroying and restarting when I try to resume. **** ENDING LOGGING AT Thu Jun 18 02:59:59 2015