**** BEGIN LOGGING AT Wed May 28 02:59:59 2014 May 28 04:02:40 I have a design question May 28 04:03:17 I need to create to views e overlay them May 28 04:03:43 When I swipe my finger from right to left the bottom view appears May 28 04:04:26 What is the best approach to do this ? May 28 04:16:53 wolfzinho: I would use a ViewSwitcher, or a ViewFlipper if you have more than 2 views. May 28 04:23:43 Hm, thanks May 28 04:24:11 in fact, just for sake of clarity May 28 04:25:15 I have a main screen and I want a ListView appear in half screen when I swipe May 28 04:25:45 pwnedu46: May 28 04:26:43 That should work May 28 04:26:58 https://www.youtube.com/watch?v=ARurq-uMNe4 May 28 04:28:02 hmm in java does dividing an int but another int only return an int? I'm trying to get the percentage of 30/100 and it's result is 0 May 28 04:28:05 yea, its very close what i want May 28 04:28:31 You'll jsut have to handle the swiping instead of a button press May 28 04:29:36 petecouture: on most languages int divided by an int returns a int May 28 04:30:00 I'm used to more scripting langauges .Php actionscript May 28 04:30:11 can you help me get a double out of that? May 28 04:30:15 just cast the divisor to float to get the desired result May 28 04:30:23 petecouture: if you want a double you must do a cast May 28 04:30:31 if you need a double just cast to double May 28 04:30:46 30 / 100.0 May 28 04:31:36 hmm int zoomLevel = (int)Math.round(parameters.getMaxZoom() * ( level / 100.00)); May 28 04:49:22 Can you always sent a camera object a new set of parameters or can you only set it when your initializing the object? May 28 04:49:36 I'm trying to get the thing to zoom May 28 04:49:45 but startSmartZoom doesn't seem to work May 28 04:53:21 Any on that understands zooming the camera programatically? May 28 04:53:38 I just tried a way that is dirty and ended up crashing my app May 28 05:36:40 hey party people! May 28 05:37:17 no partying going on here :( May 28 05:37:53 you sadden me May 28 05:38:07 :( May 28 05:40:54 i was told there'd be cake May 28 05:53:13 Now nick just pass May 28 06:19:50 yo May 28 06:20:00 wazzup! May 28 06:25:12 dddh: ? May 28 06:29:23 ah May 28 06:33:25 njcomsec: ? May 28 06:39:50 * __You make me very proud. Each and every one of you May 28 06:45:24 kazimir42, Mellow greetings. What seems to be your boggle? May 28 06:45:27 bankai_au http://digg.com/video/worlds-first-wingsuit-base-jumping-dog May 28 06:46:03 g00s: ! May 28 06:46:10 sup man from the land down under? May 28 06:46:44 hey thepoosh May 28 06:46:52 bankai_au is in the land down under :) May 28 06:47:11 bankai_au like Vegemite sandwiches ? May 28 06:47:41 g00s: got a chance to play watch_dogs May 28 06:47:42 ? May 28 06:47:53 thepoosh nope May 28 06:48:23 oh noez! May 28 06:48:25 anywho May 28 06:48:35 we created a beta group on play store May 28 06:48:46 and I failed to release a staged rollout May 28 06:48:57 ended up releasing to 100% last night May 28 06:49:02 \o/ May 28 06:49:02 stayed up until 2 AM May 28 06:49:15 refreshing our crash logger May 28 06:49:20 Im still up and its 8am May 28 06:49:27 njcomsec: what happened? May 28 06:49:46 work happen May 28 06:49:52 defaq?! May 28 06:50:01 njcomsec: you'ew from UK? May 28 06:50:16 aye ser May 28 06:50:25 sounds right, it's 10 AM here May 28 06:50:27 god save the king! May 28 06:50:41 the one who said Putin is Hitler? May 28 06:50:47 or his son? May 28 06:51:25 some crazy dude May 28 06:52:29 ??? May 28 06:53:00 ok May 28 06:56:21 shizzle; i have to buy a phone by friday (for a trip). i was hoping moto E or lumia 530 May 28 06:56:33 seems neither are available May 28 07:03:01 i didn't like the Lumia May 28 07:03:09 we have one in the office May 28 07:03:30 you can get it for $69 off contract here in the US May 28 07:03:36 thats like a grocery bill May 28 07:03:43 yeah May 28 07:03:54 but then you get a Win 8 like navigation May 28 07:03:59 it pissed me off May 28 07:04:11 I need someone to get me a contract free S3 from the US May 28 07:06:17 g00s, then just get a moto g May 28 07:08:36 moto g prepaid May 28 07:08:38 oops :) May 28 07:09:22 hm, don't see tmo. i'll have to look harder May 28 07:10:26 looks like it should work May 28 07:10:44 it's gsm, it should just work... May 28 07:10:57 even my motox is working in Thailand... May 28 07:11:14 and it's a vz phone May 28 07:11:40 $3 for a week of 3g... May 28 07:13:13 kind of a pain setting up apn, though, they use a nonstandard mnc May 28 07:13:28 can't get my s3 on hspa May 28 07:13:37 it only gets edge May 28 07:13:55 managed to get h+ on the motox May 28 07:19:25 hmm May 28 07:19:47 did the moto G sell well? i figure if i get an android phone, it should be a popular device for dev / testing May 28 07:19:54 i think the moto E will sell like hotcakes May 28 07:21:02 of course the g sold well May 28 07:21:13 that's why they followed up with the e May 28 07:22:10 ugh, this download needs to go faster, about to board the plane... May 28 07:22:30 pfn next leg in vacation, or back home ? May 28 07:31:01 phuket May 28 07:31:01 Hmm anyone here have experience with camera zoom and setting camera parameters? May 28 07:31:27 * pfn airplane mode & May 28 07:34:12 Hi all, I'm using gps to get the location. Last week, this was working good, then I added mocklocations but not I don't receive any location anymore from gps (no gps icon in status bar too), can this problem be related to the mock locations or can it be something else too? May 28 07:34:58 Hi tehre. May 28 07:47:53 do you actually need play-services to get the location from gps? I'm looking at this right now: http://developer.android.com/training/location/receive-location-updates.html May 28 07:51:48 hu guys May 28 08:02:43 thepoosh: sorry May 28 08:07:45 somebody used the LocationClient before, little question about how it works May 28 08:08:39 I guess that you don't need to ask for gps / network locations, system handles this? I use it now, get my location fast but no gps-icon in status bar on top, is this normal? May 28 08:11:37 Hi May 28 08:12:50 some body have some feed back with webview on kitkat (stability, memory leak, speed ...) May 28 08:28:13 so, we got two quotes to produce an iOS clone of the pretty basic Android app I've built for $DAYJOB... one quote for US$5800, one for US$7700. Seems quite a lot May 28 08:28:49 Hi All, I am writing a syncadapter and use it to sync my data between the phone and server. In the onPerformSync method, I do upload files to server first, and then followed by downloading new data from server. However, if I have lots of files needed to upload, the data on the phone needs to take a long time to start the data fetch, how should I fix this problem? May 28 08:30:03 Leeds, cheap May 28 08:30:15 you think? May 28 08:30:23 Leeds, or, more clearly, taking contracts under that is "usually" not worth it May 28 08:30:30 but depends on the app :) May 28 08:31:30 couple of custom screens, mostly text-based, 4 listview activities, login/logout, no state kept locally except username/authtoken May 28 08:34:22 boss was expecting to pay something like 1/2 that, I think May 28 08:39:41 Hey, I'm trying to do JUnit4 unit tests on some java classes with gradle. Has anyone had any success? May 28 08:40:01 (in an Android project) May 28 08:44:13 Does anyone know a good OCR library to extract strings from photos taken by the camera? May 28 09:01:26 maybe stupid question: what is the min. api level for using LocationClient? May 28 09:02:02 is it in play services? May 28 09:02:13 Leeds: yes May 28 09:02:45 10+ May 28 09:03:08 and unless you have a very specific use case, there's no reason at all to support anything below API 10 now May 28 09:03:37 Leeds, ok thanks :) May 28 09:06:20 Hi guys, May 28 09:06:46 i'm using retrofit and I want to wait until the callback from retrofit is back. How can I do that? May 28 09:08:05 Click66: you mean do it async? May 28 09:09:48 edwinkcw: yes, the callbacks off retrofit are async but the callback fills in my var so I need to wait for it May 28 09:11:02 Click66, use retrofit, and it is blocking, I use robospice to make it async. May 28 09:11:30 :( May 28 09:11:56 Retrofit can be asynchronous without robospice May 28 09:12:18 f2prateek: oh, I don’t know it.. May 28 09:13:17 f2prateek: oh, just need to pass the callback …… May 28 09:14:34 Click66: btw, I think you should do it asynchronous, otherwise, you ui thread will be blocked May 28 09:15:55 it is asynchronous now May 28 09:16:07 but the code that needs the var is executed before my callback is back May 28 09:19:12 Leeds: We were discussing 9 vs 10 internally yesterday. While being aware that the global stats says 10 are used and 9 is not, that may very well be different in local markets. From a pure API standpoint there doesn't seem to be lot's of useful changes between 9 and 10 unless you do a somewhat specialized application. Would you agree? May 28 09:20:57 my 'main app' has about 5% one 2.2 or below May 28 09:21:41 but 2.3.0-2.3.2 doesn't show, so presumably it's part of the 0.69% 'others' May 28 09:23:31 Hey, I'm trying to do JUnit4 unit tests on some java classes with gradle. Has anyone had any success? May 28 09:26:08 Have problems with sqlite. I am using _id as primary key with autoincrement. But LogCat gives me "primary key must be unique error". And in another table it tells me that the column in not unique even though the column isnt definded to be unique. May 28 09:26:19 I'm following this to make mock locations but onNewLocation isn't called: http://developer.android.com/training/location/location-testing.html what can be the problem(s)? May 28 09:27:00 Leeds: is it globally available? May 28 09:27:26 danieloskarsson: yes, but only really of local interest May 28 09:40:43 Hello, I have a edit text that I'm watching for per-character entry for doing search, what's the best data structure / way to buffer to handle throttling? May 28 09:40:51 Anyone have recomendations? May 28 09:44:36 Leeds: Could be that it's equal in the local markets we are interested in. I was just interested in confirming that there are not really any super-userful differences in 10 that are not in 9 for a simple generic application. May 28 09:45:15 lasserix_: LoaderManager May 28 09:45:26 danjoo uhh May 28 09:45:36 how so? this is for some custom non-standard backend May 28 09:45:56 Hi had asked a question about sqlite. Sorry if someone gave an answer. Had to change the network. My problem was that i get a primary key must be unique error even though the primary key is set as integer primary key autoincrement. Or id does define another column as primary key, which isn't. May 28 09:46:14 I have an observer the edit text calls back into when it gets a new entry, just want a way to mask against input throttling May 28 09:47:13 With loaderManagers you can provide searchsuggestions for edit texts so I thought thats what you are looking for.. May 28 09:47:40 no i am not using searchsuggestions or anything from the sdk other than a subclassed edit text May 28 09:47:50 the input goes to a custom backend May 28 09:48:00 "custom" = non-sdk May 28 09:48:28 What excactly do you want? Sth is put into an edit text and onTextChange calling some method that is throttled to like "only occur once ever 250ms" ? May 28 09:49:15 yeah something like that May 28 09:49:20 but that's way to much of a delay May 28 09:49:31 really i don't want to introduce any artificial delay May 28 09:49:56 what else? You have to throttle *on something*. A delay, number of changed chars... May 28 09:50:43 number of entered chars, number of already performed querys to backend May 28 09:50:46 i was thinking of something like a burst stack, where is keeps dumping into a stack, then some threshold (like "character entry deceleration" becomes negative) triggers the entire stack to pop, spitting off just the top May 28 09:51:29 hmm but maybe character input "speed" normalized by number of characters might work May 28 09:51:58 are you querying over web or why do you want to throttle anyway? May 28 09:52:49 What I missing the most currently is a nice little interpreter window where I can test statements May 28 09:53:04 for something like character imput speed, you might need something like a map to log every input May 28 09:53:06 Do you use anything for that? Like a Scala interpreter or similar May 28 09:53:14 together with a timestamp May 28 09:53:45 umm queries are both network and local based May 28 09:53:55 but the data sets can be very large May 28 09:53:59 platzhirsch: you could use a scala interpreter for scala code :p May 28 09:54:41 but this does not allow to test things related to the android-sdk May 28 09:55:01 danijoo: well, yeah.. I am just playing around with GSON at the moment, that's all May 28 09:56:13 lasserix_: you could log the number of times onTextChange gots fired over a timeinterval and throttle based on this. mh May 28 09:56:29 that would be my aproach May 28 09:57:54 yeah, May 28 09:57:54 http://www.yorku.ca/mack/chi00.html May 28 09:58:06 got to see if i can find second order equation May 28 09:59:23 that way i can use the sign of the derivative like speed / acceleration May 28 10:00:21 A paper on text entry speed prediction. Always funny to see what kind of research is done on some universities.. ^^' May 28 10:00:23 this is a root question, but that channel is dead: after rooting a device, what are good things to install (like i remember my friend helping me do this once and he installed some tool chain like busybox or other such stuff) May 28 10:00:29 yeah seriousily ;p May 28 10:01:09 the tools you need. May 28 10:01:38 if you dont need busybox, dont install it. May 28 10:02:00 there is only one must-have and this is titan backup :p May 28 10:02:17 i need to use superuser stuff so.. May 28 10:02:18 ahh yeah May 28 10:02:19 thanks May 28 10:02:38 define superuser stuff :P May 28 10:02:55 run executables May 28 10:03:04 *arm compliant binaries i mean May 28 10:03:13 other such stuff May 28 10:05:46 okay. couldnt imagine why to use this. so im out :p May 28 10:06:10 http://stackoverflow.com/questions/23908567/locationclient-mock-locations tips appreciated! May 28 10:10:02 anyone try this "terminal ide"? May 28 10:12:34 that sounds really pointless May 28 10:18:14 lasserix_: Nice paper :) May 28 10:21:22 in my app I'm taking a picture as examplained here: http://developer.android.com/training/camera/photobasics.html The problem is that if I turn on the developer option to disable processes in background the activity result is lost. Is this the normal behaviour? I guess the system should handle this situation, as it does for the activity state. May 28 10:25:36 rciovati: are you using the startActivityForResult? to launch the camera intent and get back the image May 28 10:26:55 kozko2001, yes I am May 28 10:36:22 anyone good at reading smali? May 28 10:37:38 Hope it helps, https://groups.google.com/forum/#!topic/android-platform/x72BabVtWcQ but as I understand they give you reason May 28 10:38:06 maybe the developer option is too much agresive than the system itself May 28 10:40:03 kozko2001, thanks. I'm trying to reproduct a problem a few user are reporting to me and I guess this is the situazione: my app process is killed as soon the camera is started and I'm not able to get the result back May 28 10:47:08 hi May 28 10:47:27 Anyone good at syncadapter? If I have a time-consuming process in syncadapter onPerformSync method, should I move the task to another thread? May 28 10:50:07 im having big problem with this http://pastebin.com/NwipuNLN May 28 10:50:28 it doesnt work properly and i havent fixed it May 28 10:51:26 i just want my usd image slideout animation when it dragged 50% of screen May 28 11:09:40 hmmm May 28 11:09:48 when trying to update a database with my content resolver May 28 11:09:53 i get a no executable code found May 28 11:10:00 did i break the internet? May 28 11:19:44 is there a simple way to change the background color of a button, just using android:background just makes the button look like a textview May 28 11:20:41 guys i really need to someone help me May 28 11:21:23 WEtxx being commited requires two adults May 28 11:21:37 i'm down to make the call if someone else is willing to vouch for your need for "help" May 28 11:22:57 can you be more specific May 28 11:23:47 im going to be crazy May 28 11:23:51 i want to show you my code May 28 11:24:08 so... May 28 11:24:14 actually nvm code May 28 11:24:17 i just want May 28 11:24:28 an image half of screen May 28 11:24:43 and i must drag it to out of screen with animation May 28 11:24:47 like slideout animation May 28 11:25:25 what does must drag it out mean May 28 11:25:46 you the developer must manifest behind the user and touch the screen dragging the screen out or what? May 28 11:26:10 look im pretty new to android and this is too important for me May 28 11:26:21 :) this channel is terrifying May 28 11:26:31 what can cause a remote exception when updating a database through contentresolver? May 28 11:27:02 contentresolver is a remote service May 28 11:27:07 asfdd, do you still want it to react? would making it look like a button from a buttonbar help? if so try style="?android:attr/buttonBarButtonStyle" May 28 11:27:21 WEtxx you are being entirely non-specific to help May 28 11:27:36 jvrodrigues is it your own content resolver? May 28 11:28:08 no it's not May 28 11:28:11 it's the android one May 28 11:28:13 basically a remote exception will be thrown any time a normal exception is thrown on the remote end, because that exception can't propogate from the remote service, so it becomes a remote exception May 28 11:28:19 yeah May 28 11:28:28 the normal one is a remote service May 28 11:28:34 that's what content providers are May 28 11:28:45 *or how they work i should say May 28 11:28:46 like May 28 11:28:50 the insert method works fine May 28 11:28:54 the update doesn't May 28 11:29:02 returns 0 May 28 11:30:24 post your code May 28 11:30:29 this is too ambigious May 28 11:30:40 but i am guessing you are passing something that dne May 28 11:31:16 Iasserix thanks for your trying first. i just want an image drag bottom to top with translate animation May 28 11:31:41 How should i make a "keyboard" like this: https://lh5.ggpht.com/fCaVQ9l2J_TQd_2hFECOTqHFHCLwIFbH9g6U5GlZLG7_0Qzqpne6b37eLjNT9Xa74A=h900-rw with linear layout and for every one click listener or any better solution? May 28 11:31:58 when this image reachs 50% of screen it will be moved otherwise no May 28 11:32:18 when you say drag i'm not sure you know what that means May 28 11:32:21 wait ill paste my code so you can get it May 28 11:32:23 too much gibberish in that url, not clicking. May 28 11:32:50 I guess it's not possible to see the source code of play services, right? May 28 11:33:08 i don't know how much of the code i'm allowed to post May 28 11:33:19 http://pastebin.com/Rmgt1KrA May 28 11:33:28 but this is the lines that i call the content resolver May 28 11:33:36 an image half of screen and i must drag it to out of screen with animation --> drag means automatically, you dont mean actually drag as in user touch? May 28 11:33:38 the insert works fine, the other one doesn't May 28 11:33:54 the content values only have one column in the update and have all the columns in the insert May 28 11:34:09 Iasserix http://pastebin.com/HswiRK2E May 28 11:34:27 which native content resolver are you using? May 28 11:35:02 package android.content; May 28 11:35:07 public abstract class ContentResolver { May 28 11:35:14 hope this answers May 28 11:35:18 i want this code make set first position to view when animation ends May 28 11:36:14 WEtxx your english is kind of broken or i am just very tired to parse it but i think you want to look into setFillAfter / setFillBefore on the animation May 28 11:36:19 Hi, I'm recording and processing audio. I have a controlling service that starts a processing thread if each time a block is recorded (e.g. 10seconds). Unfortunately, I'm running out of memory as the old processing threads are not removed from memory. Any ideas how to approach this? May 28 11:36:39 hrm.. so im basic-auth logging in to a page in my app in an asynctask. I believe I have that all working properly. Now I need to parse json as response objects. what would be the most efficient way? May 28 11:37:12 hi hello, i am trying to create a ics calendar feed with the date ical module May 28 11:37:20 Jesperhead: premature optmization is root of all evil May 28 11:37:31 but it aint work properly because my dates are within a field collection May 28 11:37:40 this issue : May 28 11:37:41 https://drupal.org/node/1743352 May 28 11:37:45 What would be the sleekest way to test if a JSON object's (receivng it as a string) field is either another JSON Object or a boolean property. I kind of want to avoid going through org.json, because I detest the exception handling May 28 11:37:58 freiform the threads themselves should not be consuming memory space, so pool or deallocate your buffers May 28 11:38:09 lasserix: Pardon? I am quite new to this so any tips are much appreciated May 28 11:38:28 Jesperhead: make something that works then worry about efficiency May 28 11:38:51 you can just use JSONObject JSONArray and stringbuilder May 28 11:39:12 lasserix: true, it's arrays inside those threads / runnables I use for audio processing. I just thought that the garbage collection should tkae care of this if a runnable is finished. May 28 11:39:21 lasserix: its a function related issue. The server has an api setup to retrieve user info about the account. I'm just a nublet to network calls/interpreting traffic May 28 11:39:47 freiform if you are using native buffers they are beyond the reach of the dalvik garbage collector i believe May 28 11:40:00 in any case you can use a pool May 28 11:40:26 jesperhead: use httpurlconnection May 28 11:40:31 lasserix: my main buffers are just a float[][] May 28 11:40:33 read from the inputstream May 28 11:41:06 that'll be your json response, then parse it you can just use jsonarry jsonobject if you know the json node schema May 28 11:41:07 lasserix: that is what im using to log in to the basic auth as well, so we're off to a good start May 28 11:41:50 Zharf all i want is a green button for ok and a red for a no May 28 11:42:00 instead of both beeing gray May 28 11:42:05 node schemas eh? that's a new one. Im attempting to port ios code so i have that source, but i can only assume so much about what im reading May 28 11:43:13 anyone else ever feel like they biit off more than they can chew? :) May 28 11:45:02 good afternoon, i created a library be.ugent:ugent-android-sdk and uploaded it to maven central, but when i add it as a dependency in my project, i have to add @aar at the end for it to work, transitive=true for it to force it to fetch the library's dependency and in the end everything except the library itself is visible in the "External Libraries" section May 28 11:45:09 asfdd, you should make drawables with pressed states and default states and put those as backgrounds for the buttons May 28 11:45:39 thats why i asked for a simple way =) May 28 11:45:53 lasserix did you get to look at my db update code? May 28 11:45:58 seems you can do something with a PorterDuffColorFilter May 28 11:46:04 but i am not sure how yet =) May 28 11:46:10 asfdd, if you just assign a colour as a background then you'll have no touch feedback which is bad May 28 11:46:34 jvrodrigues: one sec May 28 11:46:44 jesperhead i just had to do all that one sec May 28 11:46:52 json node schema : do you know what json is? May 28 11:47:10 asfdd, by the way, http://www.android-holo-colors.com/ May 28 11:47:24 it's like xml but instead of nodes they use {} and [] to mark jsonobjects and jsonarrays respectively May 28 11:47:27 it'll create you assets you can use May 28 11:47:31 i call it node schema but its probably got a real name May 28 11:48:55 I have a listview that automatically popullates data from *khm khm* soap web service.. When user clicks on one of the listviws row something happens. Now I'd like to implement on right swipe listener. So when user swipes to right it will do some stuff for that particular row in listview. Any suggestions on reading would be nice May 28 11:50:58 frojnd: https://github.com/47deg/android-swipelistview May 28 11:50:59 Jesperhead: http://pastebin.com/MZAxLMUR May 28 11:51:05 that's the basic jist of it May 28 11:51:14 May help you to read the source code if not meet your needs May 28 11:51:19 lasserix: JSON is a word I see used a lot. No clue what it is exactly (framework?) but I do know that when dealing with my current project, the json objects seem to work like dictionaries in python. Keys:Value May 28 11:51:39 if you don't know what the json structure is you can use jsonobject and jsonarray methods to iterate over it May 28 11:51:42 just look up what json is May 28 11:51:46 thanx kozko2001 May 28 11:52:05 lasserix: rgr, Thanks for the code too May 28 11:52:19 it's pretty easy: like xml but instead of its [ { } ] May 28 11:52:27 oh May 28 11:52:27 lasserix: i just set my buffers null manually after processing, seems to do the trick. thanks for your help. May 28 11:52:45 btw that code has to run OFF the ui thread else you get networkonuithread exception May 28 11:53:04 lasserix: rgr that, I have asynctask set up May 28 11:53:27 yeah so you would return results where a result is your data model May 28 11:53:55 freiform: i missed the link sorry clicked close accidently, repost? May 28 11:54:15 oh May 28 11:54:16 nm May 28 11:54:34 frieform do you process _a lot_ of blocks? May 28 11:55:25 frieform since you are recording audio you should be careful cause if you are generating garbage (temporary float arrays being dereferenced that are often generated is good pollution culprit) you can cause GC hiccups which i imagine is not good for your recordings... May 28 11:55:39 lasserix: depending on the feature. i read a whole audio block (5s) and send required chucks (frames) to features (each has its own runnable). May 28 11:55:49 ok Zharf =( seems all that does is create the untouched state yeah =( May 28 11:56:17 frieform each runnable going into a executor or something similar, you are not creating new thread for each runnable? May 28 11:56:18 guess i'll have to do it propertly then =( May 28 11:56:35 seems strange to me this should take much job though May 28 11:57:53 hi guys, does anyone have an api for CTOS? May 28 11:59:08 frojnd: http://mobiarch.wordpress.com/2013/11/21/prevent-touch-event-theft-in-android/ May 28 11:59:11 would it be possible to make a single drawable then initalize it from runtime via ctor call with the actual colors Zharf? May 28 11:59:13 lasserix_: i create a runnable for each feature running in the same thread but one thrad for each block which is set to null afterwards. thie was originally developped by someone else and I am quite uncomfortable tearing the whole this apart, despite some quiestionalbe design choices. May 28 11:59:59 frojnd: its not too difficult, you can use simple touch listener, set on row doing that which i mention above then just use translate on conent viewgroup container in your row and animate it May 28 12:01:29 frieform: ivetoo found derefencing things manually at the end of an execution in java usually bad code structure ;p May 28 12:01:47 i was just going to say pass your runnables into an executor service May 28 12:02:11 you can even wrap them as callables, then pass in the buffers, get the buffers back with the future and then reuse them May 28 12:02:46 also you might replace your float[][] with native buffers since it'll be faster and cause less garbage May 28 12:02:53 i think i see the problem May 28 12:03:11 do i have to have values for all the columns of the row i want to update in my content values? May 28 12:03:31 no i dont think so May 28 12:03:37 hum May 28 12:03:50 Here we use a ContentValues object again. The keys of your ContentValues object must of course match columns/attributes of the objects you want to update – otherwise you would get an exception. May 28 12:03:54 anyone familair with field collections? please see this issue: May 28 12:03:56 https://drupal.org/node/1743352 May 28 12:03:56 on a tutorial i was looking at May 28 12:04:23 lasserix_: I'll look into your suggestions, thanks! May 28 12:04:27 kozko2001: nice link! May 28 12:05:14 jvrodrigues: yeah but doing an update you only have to pass in whats updated since its just an update May 28 12:06:32 jvrodrigues: are you talking to an android provided content provider or custom? May 28 12:07:33 android provided May 28 12:07:40 wayt May 28 12:07:45 the provider is custom May 28 12:07:53 the resolver should be the android one May 28 12:08:11 yeah May 28 12:08:13 resolver May 28 12:08:17 but provider is custom May 28 12:08:44 so a remote exception happens when a remote service, which is what a content provider uses to talk to its clients, throws when any exception is thrown inside its implementation May 28 12:09:05 the beautiful thing about it is, there's no stack trace. May 28 12:09:10 well it's not throwing an exception May 28 12:09:23 you said it was throwing a remote exception May 28 12:09:32 ye, i thought it did May 28 12:09:41 but turns out it returns what is inside the try clause May 28 12:09:50 it just says that there is now executable code found May 28 12:09:54 in the line where the contentresolver updates May 28 12:10:14 oh May 28 12:10:26 you need to declare your return before the try May 28 12:10:35 and then set the value and return it after the try May 28 12:10:46 or you dont need to May 28 12:10:52 hum May 28 12:11:04 but it is better to do so May 28 12:11:04 the content resolver is not pointing to my custom provider May 28 12:11:06 is this normal? May 28 12:11:13 no May 28 12:11:21 means bad uri probably May 28 12:11:24 this line int rowsUpdated = provider.update(mPackageName, uri, values, where, selectionArgs); May 28 12:11:32 inside the android contentresolver May 28 12:11:41 does not point to my custom provider May 28 12:13:24 jvrodrigues, yes that is normal the uri tells the contentresolver which provider to use May 28 12:13:41 in your code you dont use selection args May 28 12:13:54 you are explicitly doing it in selection, try using the selection args? May 28 12:14:04 if you register a uri in your provider then than uri will point to your provider May 28 12:14:14 and you have to expose the provider in your manifest May 28 12:14:14 i see May 28 12:14:16 maybe the provider is doing WHERE xxx = long.valueof(whatever) = null May 28 12:14:54 hmmm May 28 12:14:57 the problem might be somewhere else May 28 12:15:05 anyway i think i figured a bit how this works May 28 12:15:05 thask May 28 12:15:07 thanks May 28 12:15:15 that's why remote exceptions are so much fun :) May 28 12:15:30 lasserix- you rock. this code/comment is really helping. May 28 12:15:32 ^^ lemonxah knows what he is talking about May 28 12:15:35 commenting* May 28 12:16:03 lol :P May 28 12:16:19 np, i am sure there is a better way to read the inputstream but i didn't have any code handy May 28 12:16:55 Guys, I'm having a searchview, how can I autosubmit the query after 2 letters written or 2 seconds? May 28 12:17:00 (for instance you can get the size of the input stream or the size of the reply from the connection object, then create a buffer of yay size and just dump it into that buffer) May 28 12:17:07 how would you know that i know what i am talking about :) May 28 12:17:21 it's been a long time since i wrote my first content provider May 28 12:17:37 yeah after all these hours, turns out the input was wrong lol May 28 12:17:50 but i vaguely remember wrangling exactly something along those lines May 28 12:18:03 fix'd it May 28 12:18:16 Click66_, in the mSearchView.setOnQueryTextListener just do a onQueryTextChange(String newText) newText count of char or internal count May 28 12:36:51 Has anyone succesflly set up a Gradle with a JUnit and an Android project? May 28 12:37:11 Driving me crazy now May 28 12:40:38 Hello guys. I have a problem here. I have 3 viewpager tabs. First tab has an item in the actionbar. But when I swipe to the second and third tab, the item is still there. How can I only show it on the first tab? May 28 12:41:39 piracyd3: i think you need to override the menu inflation in each fragment, and then called invalidateOptionsMenu (or whatever it's called) to update it May 28 12:41:39 ugh why doesnt playstore website list permissions for apps May 28 12:42:00 is does when you attempt to install i thought? May 28 12:42:04 piracyd3, you have to invalidate the menu May 28 12:42:10 Inflate an empty menu? May 28 12:42:17 each fragment should invalidate the menu in the onResume() May 28 12:42:25 this will cause the menu to re render itself May 28 12:42:32 ^^ May 28 12:42:46 and if there is no actionbar items in the other fragments it will clear or put in the new items May 28 12:43:01 and then returning to the old fragment it will re enable that menu item May 28 12:43:50 piracyd3, all your fragments have to have this in the onCreate .. setHasOptionsMenu(true); May 28 12:43:54 lemonxah can't you just call setHasOptionsMenus in oncreate of fragment and it'll autoinvalidate when it shows? May 28 12:44:19 and have this getActivity().supportInvalidateOptionsMenu(); in on resume May 28 12:44:51 lasserix_, no cause in a viewpager the oncreate doesn't get called again its in the fragmentmanager May 28 12:45:00 ahh oh yeah May 28 12:45:23 it also helps with rotation cause onResume will get called May 28 12:45:27 anyone know what this means 'full permissions to all device features and storage' what permissions this corresponds too? May 28 12:45:44 and if some menu items are dependant on data the onresume will sort it May 28 12:46:04 ok wait, trying May 28 12:46:35 thats almost like root May 28 12:46:43 all permissions May 28 12:47:05 yeah May 28 12:47:10 but which permission specifically May 28 12:47:24 is that google agreggating a bunch of permissions the app has or a specific permission? May 28 12:48:13 android.permission.ACCESS_SUPERUSER May 28 12:48:16 ahh i see May 28 12:48:23 didn't show up in autocomplete for some reason May 28 12:50:02 Aghhh the problem still persist May 28 12:50:11 WHat did I do wrong this time hmm May 28 12:50:23 piracyd3, pastebin all your fragments and the activity May 28 12:54:50 Here you go. I cleared it a bit http://pastebin.com/XyMtYMQA May 28 12:56:33 Oh btw, both FirstFragment and SecondFragment has its own ContainerFragment. So, from MainActivity, it actually inflates the ContainerFragmet before going to the FirstFragment/SecondFragment. Check it http://pastebin.com/fzb3WxNu May 28 12:57:12 why is there empty space around buttons? I just tried to make my own button style via a drawable like so http://pastie.org/9230651 but now buttons have no gap when added. Ie before when adding to a linear layout there was 4-5 dp between each button, now they are right next ot eachother May 28 12:57:14 Is that the reason why it fails May 28 12:57:15 any suggestions? May 28 13:15:37 asfdd: i believe there is padding added to the 9patch background image of the default button May 28 13:15:41 Hi there May 28 13:17:02 hmm any way to reproduce a similar effect in the drawable? May 28 13:17:23 are you using a 9patch? May 28 13:18:32 JakeWharton: The other day you said to me, avoid org.json at all costs. Now I am at a point I don't know how to avoid it. I get a string (json) and have to check if propert 'x' is either a boolean or something else. What other options do I have than parse it with JSONObject? May 28 13:18:32 no just a shape May 28 13:18:45 in an actual image i understand i can just add transparent space May 28 13:18:56 Gson, Jackson are both great JSON libraries May 28 13:19:03 but i am going to be needing alot of different colored buttons, i'd like to avoid having to create image files for every one May 28 13:19:04 Gson ftw May 28 13:19:12 https://code.google.com/p/google-gson/ May 28 13:19:22 GSON is awesome, but I doesn't help me with my current problem, does it May 28 13:19:25 http://jackson.codehaus.org/ May 28 13:19:26 Gson + Volley May 28 13:19:44 But I read Jackkson is faster May 28 13:19:52 never used jackson tho May 28 13:19:53 Jackson is faster May 28 13:20:08 junit + gradle is pissing me off May 28 13:20:15 if you know gson is awesome, how do you not know that it solves your problem May 28 13:20:25 gson also has json ectio May 28 13:20:27 pfn: because it is used for (de)serialization May 28 13:20:31 inspection apis May 28 13:20:56 and I cannot deserialize it to my POJO in a type-safe fashion without having a looking into the JSON values May 28 13:21:31 you can also use custom deserializers May 28 13:21:53 i just knew about http://www.jsonschema2pojo.org/ hah May 28 13:21:54 yeah I have to look into this again, I tried with exclusion strategy, but I am lacking information May 28 13:22:54 pfn: Maybe it's me but gson slows down all my apps May 28 13:23:29 I think may be for the use of reflection they use, do you use some tricks to make it faster? May 28 13:23:56 I'm trying to JUnit test some classes in my test gradle module, it tests classes from my other module. However when building, it gets a lot of cannot find symbol errors, any idea how I can fix this? May 28 13:23:59 parse json in a thread May 28 13:24:04 does jackson work on android these days? May 28 13:24:11 iirc about 3 years ago it didn't May 28 13:24:16 it has for the last few years... May 28 13:24:16 I have a new functionallity for soap service and I'm loosing my mind.. I keep getting The parameterized query expects the paramete which was not supplied I've checked that all the values are not null when I call the service but I still get this error :S What does it mean? It works in soapui. But I can't find out why it won't work under android: http://pastie.org/private/3k2rztjfmrri00na4bkjg#1 any experienced android users with ksoap are wellcome May 28 13:24:30 Jackson seems to be too old fashioned May 28 13:25:34 platzhirsch: Jackson can do just about everything. old way of parsing manually using string keys. as well as automatic type deserialization. May 28 13:25:52 Swiss Army Knives are especially old fashioned May 28 13:26:16 yeah. Jackson adds a TON of methods to an app. it sucks May 28 13:35:34 i've been reading on pickers May 28 13:35:45 is there a way to create a dialog that sets both the date and the time? May 28 13:36:39 jvrodrigues: you would have to build your own. Or use a lib. Its not built in May 28 13:36:47 i see, thanks May 28 13:37:19 jvrodrigues: I actually was just looking into this and couldnt find a good one =(. LMK if you find one you like May 28 13:39:52 no worries i can build one with relative ease May 28 14:03:21 This is really a usability question... I want to allow a user to change their password in my app. Right now, I popup an AlertDialog with three password fields: Current, New and Verify New. If the user puts in different data in New and Verify New, I want them to have an oportunity to reneter their data. However, I don't really want to close it and reopen it with no data if they made one mistake. May 28 14:03:36 Is there a way to do some verification before the AlertDialog closes? May 28 14:05:19 Should I possibly have a TextView that is visible when the strings do not match? And is there a way to poll the contents of those field as they type in data? May 28 14:05:22 Jonathan_Eyre: probably have to go to a DialogFrsagment maybe May 28 14:05:26 DialogFragment* May 28 14:23:08 guys, how to add pre-built .so libs to project? in Android Studio May 28 14:23:31 I've google, but can't get good answer May 28 14:23:52 Hi, I need to create an overlay which is at the bottom of the screen. Then need to animate it to half screen. I'm going to do this with a Fragment. Any suggestions to do the animation? (never done any animation yet) May 28 14:25:37 FrancescoV: Take a look to any of the Chet Haase talks May 28 14:25:55 https://www.youtube.com/watch?v=ihzZrS69i_s May 28 14:27:21 kozko2001: thanks for the advice :) May 28 14:34:48 Launcher devs: https://github.com/MohammadAG/Ok-Google-Hotword-Lib May 28 14:46:32 Does it even make sense to use Otto if you want to send a message other than from the main thread? May 28 14:53:56 as far as you don't want to receive it on the main thread, I'm more used to greenbot.eventbus May 28 14:59:22 new to android dev here - what's the preferred way to have development options in the app, such as a local development server May 28 14:59:36 things a developer would want to tweak May 28 15:01:19 I'm not quite sure what you mean. There's a few ways to go around doing this. May 28 15:01:43 If you're going to be doing this while the device is plugged into a dev environment, you can do this via broadcast receivers, and sending intents via adb shell. May 28 15:01:54 oh, doesn't need to be that fancy May 28 15:02:02 otherwise, just add a "dev" section to your settings screen and only display it in debug mode? May 28 15:02:16 just a way to point my app at a server running on localhost, instead of the production server May 28 15:02:20 oh May 28 15:02:35 uh, just point the app at localhost? May 28 15:02:40 so, maybe an XML file I can store those types of things in? May 28 15:02:44 yeah May 28 15:02:48 there's a few ways to do that May 28 15:02:52 1) as mentioned, debug vs release May 28 15:03:03 2) have your core functionality live as a library, and have different application targets May 28 15:03:26 3) have a file on the sd card that specifies the target in debug May 28 15:03:29 etc May 28 15:04:09 Use gradle and build types/variants May 28 15:04:56 ^^ May 28 15:05:22 hmm, thanks for the ideas. It sounds like there's not a widely accepted strategy. We're just moving to gradle so I will look into that first. May 28 15:05:24 Thanks! May 28 15:05:52 what SimonVT suggested is really the best way to handle this. There's really no "one true way" because there's a lot of ways to do a lot of things, so you should choose what's best for you. May 28 15:06:07 If you want an XML file, gradle and build types is probably the easiest. May 28 15:07:02 I don't have my heart set on XML, but when in rome... ;) May 28 15:08:25 Can also just have gradle put it in buildconfig based on build type May 28 15:10:37 using local.properties is probably ideal, since I don't want it checked in May 28 15:14:17 Or gradle.properties May 28 15:14:45 Users can even define it in ~/.gradle/ then if they want May 28 15:25:27 hey guys May 28 15:25:30 quick question May 28 15:25:42 what does Calendar.DAY_OF_YEAR return? May 28 15:26:29 http://developer.android.com/reference/java/util/Calendar.html#DAY_OF_YEAR May 28 15:26:36 Constant Value: 6 (0x00000006) May 28 15:26:37 It doesn't return anything.. It's a constant May 28 15:26:41 next! May 28 15:26:49 well yes, but what does that ocnstant represent? May 28 15:26:56 Field number for get and set indicating the day number within the current year. The first day of the year has value 1. May 28 15:26:57 i'm having trouble understanding the following line May 28 15:27:01 does anyone know why my camera.startPreview() would fail after i called takePicture()? May 28 15:27:06 .add(Calendar.DAY_OF_YEAR, 1); May 28 15:27:31 it's adding a day to the calendar instance May 28 15:27:35 Scorp1us: The ways the Camera API works are unexplicables May 28 15:27:36 e.g. making it tomorrow (at the current time) May 28 15:27:47 s/e.g./i.e./ May 28 15:27:51 public abstract void add (int field, int value) May 28 15:27:51 Adds the given amount to a Calendar field. May 28 15:27:52 AH May 28 15:27:53 i get it now May 28 15:27:54 ok May 28 15:27:55 So add 1 to day of year May 28 15:27:56 thanks May 28 15:28:01 well, that doesn't really work for me. May 28 15:28:17 Scorp1us: have you tried turning it off and on again? May 28 15:28:21 Scorp1us: is it plugged in? May 28 15:28:38 (fun fact: the camera API is usually very poorly implemented by the vendor, ignoring the API itself :( ) May 28 15:28:49 it's a nexus 5 May 28 15:29:19 ... yeah. May 28 15:29:40 Even on a nexus 5 May 28 15:29:41 anyway, the answer is "I don't know, but there's probably a stackoverflow post" May 28 15:29:48 lol. i searched. May 28 15:30:06 otherwise, just look at the logcat output, and/or the source. May 28 15:30:19 anybody have a guess as to when the Android NDK will support x64 binaries? :-) May 28 15:30:19 yup. it's of no help May 28 15:30:57 jonp if you compile from AOSP sources, it might do so right now May 28 15:31:05 OpenMaster contains a lot of x64 stuff May 28 15:31:33 (also arm64 and mips64) May 28 15:34:31 Chainfire: i'm hoping for "official" binaries ;-) May 28 15:35:17 there's no public ndk release schedule May 28 15:35:19 well NDK is just gcc. May 28 15:35:39 a gcc cross-compiler May 28 15:35:47 but yeah, "just" gcc May 28 15:35:49 if 4.4.3 public release supports 64 bit, then the next NDK version update will likely support these targets May 28 15:36:00 but tbh its anybodies guess who and when May 28 15:36:10 nobody here knows, speculation is all you are going to get May 28 15:37:51 which animation should I use to make the height or a tablerow from 0 to wrap content? ScaleAnimation? May 28 15:45:04 http://stackoverflow.com/questions/17256003/youtube-intent-filter-scheme May 28 15:45:22 I think that I'm have a Eureka moment May 28 15:46:27 how can I test whether the user is using 12/24 hour clock on their system? May 28 15:47:19 http://developer.android.com/reference/android/text/format/DateFormat.html#is24HourFormat(android.content.Context) May 28 15:50:28 anyone? May 28 15:51:06 tylertylertyler: did you look above? May 28 15:51:24 oh wow I didn't even notice May 28 15:51:26 thank you May 28 15:55:35 is https://play.google.com/apps/publish/ down? May 28 15:56:03 works for me May 28 15:56:25 i keep getting 500. That’s an error. May 28 15:56:32 meadhikari: down for me as well in nebraska May 28 15:56:49 I'm in central europe, so may well be on a different server May 28 15:59:47 I am from south asia and its down here too May 28 16:00:20 confirmed, here in the moon i get the same error, must be solar system wide. May 28 16:01:25 you are a reptilian? May 28 16:01:47 works for me May 28 16:01:51 jvrodrigues, can't verify on that whole solar system thing until curiosity confirms from mars May 28 16:05:07 Chainfire, there are reptiles in moon? May 28 16:05:47 meadhikari there's a couple of thousand crazy people in the world that believe reptile-descendants inhabit the inside of the moon. If you have a day to waste, Google it :) May 28 16:07:12 also, David Icke May 28 16:07:59 oh god now May 28 16:08:01 *no May 28 16:09:59 I used to follow some websites that had daily news on a lot of this sort of BS, it was quite entertaining... May 28 16:10:46 Hi, I was wondering if anyone can help me out with an issue. Basically I want to start a Handler.postdelayed in an activity, and stop it using handler.removecallbacks in the ondestroy of a service May 28 16:11:17 since my handler variable isn't accessible in the service, I'm not being able to do it. Is there a workaround for this? May 28 16:15:05 Can anyone explain to me how to do this? Add this at Makefile May 28 16:15:05 KBUILD_CFLAGS += -Wno-format -Wno-sign-compare \ May 28 16:16:21 I have this question on stackoverflow: http://stackoverflow.com/questions/23912094/how-do-you-make-multiple-instances-of-the-same-activity-for-a-grade-tracking-app was wondering if someone could answer it there or in this chat. May 28 16:19:16 Charl1e: http://stackoverflow.com/questions/11363209/alertdialog-with-positive-button-and-validating-custom-edittext May 28 16:19:18 jonDeer: Activity B needs to actually have its view backed by a data model. That's the short version. May 28 16:19:49 you should be doing this anyway, for the event of the activity being destroyed and recreated due to config change, etc. May 28 16:21:24 im fairly new,so is the concept i need to learn called data modelling? May 28 16:23:23 I need to make it into a database now? May 28 16:24:17 is it normal for me android clock to be 12 seconds off my laptop's clock? May 28 16:24:30 or am I magically breaking my android clock in my app possibly? May 28 16:25:04 tylertylertyler: it could be out of sync. They probably also use different servers to sync May 28 16:26:07 okay thanks May 28 16:29:53 lov: how do i go about making data models? never heard of this before :/ May 28 16:36:22 how do I verify my phone is properly connected to my linux box for testing an application? May 28 16:36:30 the phone is set for development May 28 16:36:47 DammitJim, check that you can connect via adb May 28 16:36:48 and I get nothing in the Choosing an android device when I hit run May 28 16:36:53 what is the adb command? May 28 16:37:04 adb devices May 28 16:37:41 oh, ./adb devices shows no devices attached May 28 16:37:46 I remember I used to have to restart something May 28 16:38:31 Any RxJava pros? How do I handle errors during a flatMap() call? Or do the errors bubble up to the top-level subscribe and I need to handle them appropriately there? May 28 16:38:38 do you mind running adb as root? May 28 16:38:45 sudo May 28 16:38:57 yes, that would be how you run things as root... May 28 16:39:03 oh, kill-server May 28 16:39:04 or something May 28 16:39:04 "adb kill-server" first May 28 16:39:10 DammitJim: make sure it's in "charge" mode, not mounted May 28 16:39:13 yes, that would be how you kill the server first :) May 28 16:39:45 ok May 28 16:39:47 then what? May 28 16:39:50 I did May 28 16:39:54 ./adb start-server May 28 16:39:59 and ./adb devices, but still nothing May 28 16:40:04 I probably have something wrong on my phone May 28 16:40:08 no May 28 16:40:14 "adb kill-server ; sudo adb devices" May 28 16:40:36 adb start-server? is that necessary? maybe that's why mine doesn't work May 28 16:40:53 Leeds, did it May 28 16:41:00 but List of devices is empty still May 28 16:41:09 cybrNaut: start-server is sort of implied May 28 16:41:25 DammitJim: do you get a notification on the phone to tell you it's connected for debugging? May 28 16:42:00 Connected as Media device May 28 16:42:05 Media Device (MTP) May 28 16:42:11 that's checked, but not Camera (PTP) May 28 16:42:26 doesn't help me.. adb devices still gives "???????????? no permissions" May 28 16:42:44 ok, there it is May 28 16:42:51 developer something wasn't enabled on the phone May 28 16:42:56 argh May 28 16:42:59 screw you guys May 28 16:43:01 I'm going to bed May 28 16:43:49 thank you May 28 16:43:50 I’m guessing in RxJava that flatMap errors bubble up to the subscribe Throwable, but I don’t know how to determine which phase of the process failed. May 28 16:43:51 :) May 28 16:44:02 DammitJim, then what did you mean with "the phone is set for development"? I thought you already had USB debugging enabled :D May 28 16:44:19 EPG, I had tapped on the build thing like 6 times May 28 16:44:26 until it said something about being a developer May 28 16:44:32 I think I didn't read the message properly May 28 16:44:34 ah, ok :) May 28 16:44:35 thanks guys! May 28 16:56:41 I have this question on stackoverflow: http://stackoverflow.com/questions/23912094/how-do-you-make-multiple-instances-of-the-same-activity-for-a-grade-tracking-app was wondering if someone could answer it there or in this chat. May 28 16:57:07 actually i asked this awhile ago and someone mentioned about data modelling, could anyone elaborate on this approach? May 28 17:02:22 Anyone good with RxJava? Why am I not receiving these Logcat messages? http://a.pomf.se/zgyqje.png May 28 17:03:00 vozz: nice debug messages -_-; May 28 17:03:17 s-sorry :( May 28 17:04:11 eclipse May 28 17:04:12 :S May 28 17:06:54 It's android studio May 28 17:07:03 What do you guys use? May 28 17:07:27 intellij May 28 17:07:31 same thing May 28 17:10:20 vozz y r u using an old version of rxjava May 28 17:10:44 Am I? How can you tell? May 28 17:11:08 well maybe not old, but ur using deprecated functions May 28 17:11:46 Oh. I've been following tutorials I've found around the place May 28 17:11:52 I guess I should be using the docs huh. May 28 17:12:01 :) May 28 17:12:37 look at the few blogs JakeWharton has given on RxJava, they were really helpful for me May 28 17:13:12 http://howrobotswork.wordpress.com/tag/rxjava/ May 28 17:13:50 Thanks May 28 17:14:01 I'll give it a go, wish me luck May 28 17:15:03 his examples also use the deprecated functions, but its trivial to switch over to the new ones May 28 17:15:10 Oh May 28 17:15:17 Where can I find out what the new functions are? May 28 17:15:24 same features May 28 17:17:52 vozz as for your code May 28 17:18:14 i think u got to many observables going on May 28 17:19:20 How would I make an Observable/Subject that I can store in a toxSingleton, and have it update when I tell it to, and have mutliple subscribers to it? May 28 17:20:40 can one test a wifi connection while on the cell network? May 28 17:20:42 does anyone use mono for android apps development? May 28 17:20:43 I've used a PublishSubject May 28 17:21:20 Have you got some example code somewhere I can look at? May 28 17:21:22 vozz http://howrobotswork.wordpress.com/2013/12/23/rxjava-and-android-working-with-subjects/ May 28 17:21:46 Okay, having a read May 28 17:24:04 vozz also https://github.com/jug6ernaut/divide/blob/master/Client/java-client/src/main/java/io/divide/client/auth/AuthManager.java May 28 17:24:13 look specifically at the usage of loginEventPublisher May 28 17:24:30 Thanks a lot! May 28 17:28:10 jug6ernaut: which new ones replace Schedulers.executor(executor)? May 28 17:28:33 I was just working on this exact problem. Reverting to 0.17 RxJava exposes me to some extra bugs. May 28 17:28:46 colintheshots i believe you can now create a schedule from an executor May 28 17:28:53 * jug6ernaut looks May 28 17:34:18 colintheshots not sure May 28 17:34:58 it wasn't even deprecated, just removed... May 28 17:35:45 colintheshots https://github.com/Netflix/RxJava/issues/1219 May 28 17:36:06 Is it better to use ADT's Settings Activity template http://i.stack.imgur.com/GLpdp.png or making your own? I have been receiving many errors related to deprecation etc if I build on my own. MinSDK 10. May 28 17:36:58 + can I have an item in Settings start an activity (with viewpagers)? May 28 17:38:38 jug6ernaut: Changed it a bit: http://a.pomf.se/nmsczh.png Can't really see why it isn't working May 28 17:39:57 Surely when I call updateFriendsList() it calls an onNext on the friendListSubject which is subscribed to... it should be logcatting it May 28 17:42:17 is "FRIENDS LIST SHIT HAPPENS" being logged? May 28 17:42:40 WantToCode: yes May 28 17:42:40 also May 28 17:42:47 why are u logging messages as your tags -_- May 28 17:43:17 WantToCode: http://developer.android.com/guide/topics/ui/settings.html#Intents May 28 17:43:22 jug6ernaut: It's not being logged, and I don't do that usually, it's just a quick hack to see if it's working May 28 17:43:56 WantToCode: that is an example of a preference in settings launching an intent to start an activity May 28 17:44:16 vozz change it to a publishsubject May 28 17:44:32 Thanks Napalm. May 28 17:45:12 I have this question on stackoverflow: http://stackoverflow.com/questions/23912094/how-do-you-make-multiple-instances-of-the-same-activity-for-a-grade-tracking-app was wondering if someone could answer it there or in this chat. May 28 17:47:56 jug6ernaut: Still no luck :( May 28 17:51:53 vozz code isn't freezing or anything right, just callback never called? May 28 17:52:05 jug6ernaut: yup May 28 17:52:34 I'm going to change updateFriendslist to just call friendListSubject.onNext(new ArrayList()); May 28 17:52:38 see if that does anything May 28 17:53:04 step through it with a debugger May 28 17:53:38 Oh damn, I need to remember how to do that May 28 17:53:51 and yeah that change didnt do anything May 28 17:55:06 add logging to your updateFriendsList function May 28 17:55:09 or step through it May 28 17:55:37 is it possible to make gson continue even if a ConvertionException is thrown and just ignore that field? May 28 17:57:05 some one thought they where clever when they made the api return a false boolean instead of an array when there were no values for a field :/ May 28 17:58:44 jug6ernaut: Didn't get the logging I added to updateFriendsList.... how strange May 28 17:59:15 is there a way to use wifi and cell network at the same time? May 28 18:02:15 Added logging at the beggining of initFriendList and don't get that either.... May 28 18:02:27 What the hell is going on, this has nothing to do with RxJava anymore May 28 18:03:20 lol May 28 18:05:25 Is there some reason why calls to functions defined in a singleton might not do anything? May 28 18:10:44 threading might be an issue May 28 18:10:45 Those functions don't do anything themselves? May 28 18:10:51 but it should complain May 28 18:10:53 Or they don't even run May 28 18:11:25 .j #ubuntu-live May 28 18:11:34 err May 28 18:12:26 #fail May 28 18:18:44 Hi, sorry if this sounds silly, when I update my app in appstore, user don't get notification is that something that I need to do as a developer? May 28 18:21:45 No, nothing you need to do May 28 18:21:54 Users will get a notification if they enabled it May 28 18:23:32 SimonVT, thanks for clearing that up May 28 18:46:19 jonDeer: 12:30:01 < jonDeer> lov: how do i go about making data models? never heard of this before :/ May 28 18:46:46 assuming that no one has answered you, the point is that your activity's view should actually map to something in your application, and thus be reproducible. May 28 18:46:54 Look up MVC, etc. May 28 18:47:09 saying "how do I make it decide to show a button again" doesn't really do anything; WHY is the button being shown? May 28 18:53:57 Hi :) ? May 28 18:55:53 :) May 28 19:01:19 Is Android MVC? May 28 19:01:29 It looks very much like it May 28 19:04:43 it...can be May 28 19:10:02 yeah, android is typically not MVC, but MVC kind of gives the idea behind what I was suggesting. May 28 19:10:23 here's your data model, here's your activity/fragment that represents that, you can interact with it to modify the data. May 28 19:10:45 your classes or whatever he wanted lives in the database, and when you update the database the adapter displays new info. May 28 19:18:45 Android is a werid language May 28 19:18:56 But at least it's easy to understand and pick up May 28 19:19:08 iOS was a lot more of a pain to learn May 28 19:19:20 Anyone able to help me diagnose an in-app purchase failure? My sandbox purchase attempts keep getting "The item you were attempting to purchase could not be found". May 28 19:19:31 I've found a few SO posts, etc on this but none of them have helped May 28 19:19:40 I'm using a test account May 28 19:20:36 Alpha APK has been uplaoded May 28 19:20:46 Status is "Draft in Alpha" May 28 19:36:05 cant figure out why my webview keeps getting a "clearing to background color" log result from ADB/dalvik when I \run in AVD May 28 19:36:11 https://gist.github.com/weems/17e72a8a64331ea09c79 May 28 19:47:03 Hey. I have an OnClickListener for my listview. And it works in the simulator but won't work when I debug it on an actual device. Or, let's say the output is not showing. May 28 20:11:10 Tobbi: Is the deivce on an older api level then the emulator? May 28 20:15:03 Is onCreateView called before onCreate? May 28 20:15:08 or the other way around? May 28 20:15:15 the other way arround May 28 20:15:34 What gets called after onCreateView? May 28 20:16:34 i think thats the last one May 28 20:17:32 http://developer.android.com/guide/components/fragments.html#Lifecycle May 28 20:18:05 ok there is still onStart() and onResume() after onCreateView() May 28 20:18:31 Ah thanks a lot May 28 20:32:20 So I am developing a 2-player game. You press "new game" and will get paired with a player. I am thinking what the best way to this is. I have to use a database to track all games. But there should obv be max one unpaired player at a time so how would this be done efficiently? I guess I have to have a multithreaded server to serve all requests but then the access to the database is serialized May 28 20:32:20 anyway right? so what does that help? Do I have to synchronize to the database or is it locked automatically when one read/write is made? I guess I need to atomically read (for available game) then write the new player (found game or created a new one and waiting to get paired). What kind of architecture would you suggest here? May 28 20:33:12 why not use googles games api? May 28 20:36:31 Wow, thanks, how have I missed that? May 28 20:36:41 welcome :) May 28 20:44:34 danijoo_: Nope, emulator is 4.2.2, device is 4.4.2 May 28 20:45:03 strange. can you post the code? May 28 20:46:44 Yes, hold on. May 28 20:47:22 danijoo_: Oh, wait: It seems the listener was fine. It was just log.d that was not working, for whatever reason. May 28 20:47:36 ok May 28 20:47:45 I used a Toast now and that shows fine. Don't really know why. May 28 20:49:50 JakeWharton did you happen to ask that coworker about the I/O registration think? May 28 20:49:52 *thing May 28 20:49:59 Chainfire: will do now May 28 20:50:40 thx May 28 20:51:00 he says no May 28 20:51:12 to which question? :D May 28 20:51:14 Can someone please help me with this? May 28 20:51:15 http://paste2.org/BOxCLzNB May 28 20:51:20 Used built in functions May 28 20:51:25 and tried rolling my own May 28 20:51:29 yet no winning :( May 28 20:51:34 Chainfire: haha. he hasn't gotten the same email I got nor a confirmation number. May 28 20:52:34 thanks! May 28 20:53:29 So, does the Google Play Services use the Cloud Messaging in the background? May 28 20:55:21 for your usecase, it would open a dialog "searching for players" until enough players are found to start the match May 28 20:56:42 if you want to see it in action: clumsy bird in the playstore May 28 21:11:54 I am a bit unsure if using the Google Play services API will mean shutting out a lot of users? i it only for the newer API:s or can it be used on old phones with Android 2.3? May 28 21:12:14 its 2.3 and up May 28 21:12:42 so you should have a user base > 90 % May 28 21:13:51 ok, guess the rest 10% dont really play anyway? May 28 21:15:13 https://developer.android.com/about/dashboards/index.html?utm_source=ausdroid.net May 28 21:15:24 look at this and ask yourself if its worth supporting devices under 2.3 May 28 21:16:23 especially for games. low api version usually comes with low budget hardware come with lags in games comes with bad reviews :p May 28 21:31:04 Hey there. May 28 21:32:04 I have a weird NFC problem: On Android 4.4.2, choosing "always use this app" in the application list that pops up when receiving a URL via NFC does nothing. May 28 21:32:13 But it works on 4.3. Why is that? May 28 21:32:27 Is this a bug? May 28 21:34:42 or are there any special rules that could make the "always use this app" button to not do anything? May 28 21:38:41 Hm... so I send this URL via NFC... before I modified my app, it opened in Chrome. Now I get a choose dialog that lets me choose between my app and Firefox (but not chrome). Selecting "Always use this app" doesn't work... could this be a problem with Firefox? May 28 21:40:24 anyone know what an "online enabling" team is ? May 28 21:41:51 the cable company? May 28 21:45:44 The import com.google.android cannot be resolved May 28 21:49:35 Hi May 28 21:49:39 lov: hello May 28 21:50:07 Is there any way to get the native window id without android_main? May 28 21:54:46 If you use Google Play services, what is your backend? I mean if you 8BitArtist for example, I don't think it comes with a backend. so what is the backend? May 28 21:56:27 lov: I was assaulted at gun point yesterday adn my bike got stolen. With luck I'll work this out with the insurance company Anyways, I have decided to make my own monitoring device with a smartphone attached to the motorcycle's battery. This device will be hidden behind/inside the front ligh, I'll make a bypass with the light wires to connect this http://bit.ly/1kM2exW and have the phone always charged. So, my question is: Is May 28 21:56:54 charging So in that fashion I can save/extend the motorcycle's battery life May 28 22:09:47 hm, nfc problem seems to be related to firefox. anyone knows about this problem? http://www.reddit.com/r/firefox/comments/1r8c5o/disabling_nfc_in_firefox_mobile/ May 28 22:18:30 Has anyone had any issue using Timers in android? May 28 22:29:59 Hi all. Question: When I'm diggin in a Library, I come across all these functions that just contain " /* compiled code */ " . Why is that? May 28 22:31:18 ThomQ: because you do not have the source for those classes May 28 22:32:03 Are those not included in the library? May 28 22:32:09 you can try to click 'Download sources', or if you do have the source somewhere, 'attach sources' to point intellij to the correct source root May 28 22:32:30 ahh, so it is a IntelliJ thing thne May 28 22:32:35 is it an android library project or a jar file? May 28 22:32:52 it's a .jar, the google play services one May 28 22:33:44 gps is not an open source library, chances are you do not have the sources available May 28 22:34:15 ahhh k, so it Does download sourcecode and drawables and such upon running the project May 28 22:37:02 is it possible to check Views and Layouts on runtime, then get the layout properties and use those on, in this case, a custom button? May 28 22:37:20 i seem to remember you can't get Layout properties but only set them, right? May 28 22:38:07 The simple way would be just to build my own layout, as close as possible, but I was wondering about other ways to achieve a more Robust solution May 28 22:47:35 This doesn't say how I can actually get one https://developer.android.com/reference/android/view/Surface.html May 28 22:47:42 I need to the raw surface. May 28 22:52:57 Ah, glview.getHolder().getSurface() May 28 22:54:13 hi guys. i'm trying to develop an app to identify health centers using google maps to make them more accessible to users. Since this is my first app of this type, what type of web hosting and charges should i expect. May 28 22:56:03 depends where you live and where you want it hosted and what you want to host May 28 22:58:24 bankai_au: oh sorry for not adding more info. I'm looking to save user info(name,email,username,password) and then for the healthcenters,(name , coordinates). That's basically it May 28 22:59:05 linode is pretty cheap and if you're in the US it's pretty fast (connection wise) May 28 23:01:07 I like nearlyfreespeech.net May 28 23:01:17 purely pay-as-you go model, where you only pay for what you actually use May 28 23:02:01 I believe they use amazon's cloud stuff as their backend May 28 23:02:12 thanks bankai_au May 28 23:02:33 but you basically get your own little linux VM you can do whatever with May 28 23:02:44 JesusFreke: They state on the site they host websites.Will that work for an android app too May 28 23:02:55 it's just a server May 28 23:03:43 ok i see. So its up to you to set it up how you want it? May 28 23:08:19 bankai_au: What if you are outside the US. I'm in africa May 28 23:09:12 depends on your market and $$$... i like hosting in america or japan for speed/money May 28 23:10:50 Well I'll look into it. Thanks a lot bankai_au and JesusFreke. really appreciate ur help May 28 23:11:25 something like a google AppEngine thingy might be an option as well. I haven't really looked into that May 28 23:59:33 I'm developing a library that provides a view and some callbacks to other applications. It takes a while for the main class to initialize and allocate all resources, so I would like to provide app developers with two options: May 29 00:00:06 listen for a callback that notifies when it's done loading asynchronously, and lock initialization until the library class instance is done loading May 29 00:00:49 the former I have solved in a relatively clean manner,but I'm running into some issues with the locking approach. The class should be instantiated in OnCreate, and I'm not quite sure how to best proceed with a lock/wait cycle May 29 00:01:32 hi May 29 00:01:45 kailoAtWork: what happens if they use the library when it is not initialized? May 29 00:02:19 sleepster, They can attempt to show the view, but it will be black May 29 00:02:22 can i create a subtheme from any (sub) theme and how? May 29 00:02:51 sleepster, in some situations though, app developers may want to delay showing the ui of their application until the library class is done initializing May 29 00:03:01 kailoAtWork: ah I see. I would pre-load an hour glass "waiting" type icon and then as the resources get loaded, replace the icon with the real content May 29 00:03:07 I had to do something like that for my activities May 29 00:03:10 it worked out okay May 29 00:03:29 using a fade-in/fade-out also made it look better May 29 00:04:05 kailoAtWork: oh I see. then the callback approach might be good. May 29 00:04:07 Right, but how and where should I handle the waiting logic? the library class instantiation takes place in onCreate in the wrapper app activity. What is the best way to go about locking the main thread from there? May 29 00:04:17 kailoAtWork: you would need to lock in the "onCreate" since that is the state intended for loading things May 29 00:04:58 that's what I'm trying to do yes May 29 00:05:00 kailoAtWork: hmm. yeah that's a bit tricky. if you block the thread for more than 3 seconds you get an ANR May 29 00:05:06 application not responding May 29 00:05:08 exactly May 29 00:05:09 =/ May 29 00:05:10 so you can't block the main thread May 29 00:06:22 kailoAtWork: so you provide a callback when it is done loading.. you can just create another thread in onCreate that performs the loading May 29 00:06:35 kailoAtWork: then invoke the callback on that worker thread May 29 00:06:44 i.e. that new thread you spawned off May 29 00:07:04 I don't think you have many options except to lazy load your resources as needed :( May 29 00:07:44 my concern is that the ui of the main activity is very unresponsive while my library class is loading in the background May 29 00:15:43 hi. i have an activity, and i would like to switch between 2 fragments onClick. but i don't know how to save the state May 29 00:15:48 wether the fragment is visible, currently attached or something May 29 00:15:55 i tried final boolean isAttached = false; May 29 00:16:00 but i cannot change it's state within the closure function of the onclicklistener.... May 29 00:16:04 is there a workaround ? May 29 00:23:14 is there some way to list items that ndk has detected in its source directory? May 29 00:23:52 I am not sure if ffmpeg which I have compiled is being found. When I try and include the headers they are not found May 29 00:25:46 have you added the directory/directories to the include search path, erisco ? May 29 00:26:17 in the Android.mk file (for ffmpeg) I have LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include May 29 00:26:39 is there some way I can see what the include path is to determine if it is correct? May 29 00:27:36 maybe run ndk-build with V=1 ? May 29 00:30:02 ill write my question in a forum... May 29 00:31:24 nope it was not in the include path leslie May 29 00:31:29 hm May 29 00:32:14 how does the ndk know what to look for? ie how would it know I need ffmpeg? May 29 00:32:37 LOCAL_SHARED_LIBRARIES += libavformat libavcodec libswscale libavutil this is all I have in jni/Android.mk May 29 00:32:51 I am reading off here btw http://www.roman10.net/how-to-build-ffmpeg-with-ndk-r9/ May 29 00:33:59 hrm on the github there is an extra line https://github.com/roman10/android-ffmpeg-tutorial/blob/master/android-ffmpeg-tutorial02/jni/Android.mk May 29 00:36:58 erisco, LOCAL_SHARED_LIBRARIES is for the linker. it doesn't tell the compiler where to look for include files May 29 00:37:21 I presume that extra 'call import-module' is what did it then May 29 00:39:09 got a build successful, whew May 29 00:39:46 now I just need to learn how to encode video with ffmpeg ... yay ... :) May 29 00:41:56 nice :p May 29 00:51:35 Hey guys, has anyone seen an issue where viewpager doesn't display fragments? This is a weird use case but I have a vp inside a list view. Everything works great until the vp is scrolled off (temp detached) then when I scroll back to it, the fragment pages aren't show. The fragment adapter is still called but nothing is inside the viewpager if I look at the view hierarchy. Any ideas? May 29 00:54:15 erisco: I'm right there with you May 29 00:54:48 petecouture, sweet. are you using opencv by chance? May 29 00:54:56 Yup May 29 00:55:18 Well I have used it in other applications' May 29 00:55:53 This is one where I'm using the raw camera buffer to runing OpenGL filters on the feed. Now I'm trying to figure out how to take the data the camera is sending and encode it somehow. May 29 00:58:30 hm... so in the ffmpeg Android.mk you can only specific one local source file May 29 00:58:37 but ffmpeg has many .so libraries May 29 00:58:48 when I run my application it crashes because they are not available May 29 01:00:16 Ah that I wouldn't be able to help you with. I'm just learning android myself and don't have enough experience dealing with library issues. May 29 01:01:21 have you got to the part where you can encode the frames stored in an opencv Mat? May 29 01:05:55 erisco: which OS are you compiling on ? May 29 01:06:02 windows May 29 01:06:08 there's your problem May 29 01:06:11 ffmpeg compiled fine May 29 01:06:30 really ? which instructions did you follow ? May 29 01:06:33 when I do System.load at runtime not all the libraries are found May 29 01:06:48 and I noticed that in Android.mk only one of the libraries is listed May 29 01:06:58 I tried this to no avail http://stackoverflow.com/questions/14516268/ndk-compiling-multiple-libraries May 29 01:07:26 you need some certain version of ubuntu to fix that lib problem probably May 29 01:11:39 erisco: Hah that's kinda like where I'm at May 29 01:12:00 I'm trying to figure out how to build a movie out of the raw camera data May 29 01:16:15 are there any intents for Google Play Music to 1) bring up a song chooser....and/or 2) launch a specific song in stored in Google Music via an intent? May 29 01:54:21 Hi guys I am working on a gridview and I see tht the height of the cell is not changing even when I set the height of the row in getView() method or when I am changing the height of the gridview can anybody please let me know how to set the height of the cell in gridview May 29 02:10:38 hmm anyone have experince with FFMEG? May 29 02:21:39 petecouture, ffmpeg? May 29 02:21:57 oh you're the person from before :) May 29 02:22:06 Hello. I am using HttpUrlConnection to do web restful get call. When I disable cellular data, only using wifi, it has a high probability of timing out where if I don't disable cellular, so it definatly using cellular, it never times out. Anyone have this problem? May 29 02:25:29 heh May 29 02:39:44 petecouture, how did you get all of the .so libraries loaded on the phone? May 29 02:53:18 how can I keep the screen on and unlocked? I am on Android 4.0.4 **** ENDING LOGGING AT Thu May 29 03:00:00 2014