**** BEGIN LOGGING AT Sun Jul 21 02:59:58 2013 Jul 21 03:33:43 s it good way to use sth like "TextView tx1 = (TextView) findViewById(R.id.editText1);" to access elements of views in activity each time ? Jul 21 03:33:47 *Is Jul 21 03:34:09 what else do you suggest ? Jul 21 03:35:14 StingRay_: ok, then I get it :) Jul 21 03:35:29 it looks more like DOM query Jul 21 03:35:50 findElementById.. hehe Jul 21 03:59:40 i renamed my project, changed the manifest file. and all references. but now it won't load into the simulator Jul 21 03:59:48 using ADT Jul 21 04:04:42 wont load isn't all that descriptive Jul 21 04:18:44 ls Jul 21 04:19:16 anyony have any good example or info how how android works with sqlite like with database cursor and such Jul 21 04:20:39 darkspadez: http://developer.android.com/training/basics/data-storage/databases.html Jul 21 04:27:23 getting plain idea to use the gradle dir structure has been fun fun fun Jul 21 04:28:00 i wonder if AS will be 1.0 by next i/o Jul 21 04:28:44 see with my zero experience of build systems, thats why I still use ant in AS Jul 21 04:29:08 use sbt and sbt-idea, problem solved Jul 21 04:29:16 i knew it ... Jul 21 04:29:18 lol Jul 21 04:29:34 i'm roflol seriously Jul 21 04:29:43 pfn you're hilarious Jul 21 04:29:53 you resist so hard, it's funny as well Jul 21 04:30:14 haha Jul 21 04:30:40 you complain about things so much, but when offered alternatives, you flat out ignore them Jul 21 04:30:46 pfn do you have a preference for protobuf / thrift / avro ? Jul 21 04:30:58 protobuf Jul 21 04:31:51 unlike the c++ version, the java version creates immutable objects via the builder Jul 21 04:32:08 which has been a worry, since i'll be making thousands of them Jul 21 04:32:33 so i can't reuse the same one and just put different data in it :( Jul 21 04:32:46 which is like, 30 doubles Jul 21 04:33:21 immutable ftw Jul 21 04:35:43 but yeah, I had a similar concern, but for a different reason when I used protobuf a while ago Jul 21 04:35:50 * pfn & Jul 21 04:37:31 anyone tried this? http://rubyluwak.com/ Jul 21 04:41:14 * pragma- vomits on ruby. Jul 21 04:42:21 well Jul 21 04:48:26 hats off to idea though, for being flexible enough to support the gradle dir structure with some tweaking Jul 21 04:48:32 its simply not possible with the adt Jul 21 04:48:36 (atm) Jul 21 04:50:50 although, in the end i had 2 document roots for each modules (one in build/) which looks kinda weird Jul 21 04:51:03 but it works Jul 21 04:51:21 err, content root Jul 21 06:02:47 where is the link to download studio 2.1? Jul 21 06:04:23 eeerr. 0.2.1 Jul 21 06:34:59 Hi everyone, I'm developing an Android service library that interfaces with a network protocol. For observing changes in the network state, should I use AIDL callbacks to client activities or intents? Jul 21 06:47:35 how to maintain session variables when you are making request from HTTPRequest object in android ? Jul 21 06:48:29 i will query mysql database for login. And maintain php session till it makes queries from php host to run the android app. Jul 21 06:48:38 is it a good design to go ? Jul 21 06:54:29 anyone ? thnx in advance Jul 21 07:09:58 pranav, use a cookie store sort of thing Jul 21 07:10:15 and if you need it to last b/w app instances, used SharedPreferences to store the cookies Jul 21 07:20:25 has anyone experience with getting gradle to compile play studios/somthing as a dependency in android studio? It's just plain ignoring the dependency for me :( Jul 21 07:22:22 yo Jul 21 07:29:05 Estel, what do you mean "play studios/something" ? Jul 21 07:29:33 well, I don't know if my issue is Play Studios specific Jul 21 07:29:44 What is Play Studios? Jul 21 07:29:59 ahh, *Play Services (sorry, no sleep) Jul 21 07:30:22 oh okay Jul 21 07:35:30 Estel, just tried by putting this line in build.gradle > compile "com.google.android.gms:play-services:3.1.36" Jul 21 07:35:57 and then had to Make Project using the button, auto make didn't include it but Make Project did Jul 21 07:36:56 Yeh that just seems to give me import errors for play services. What gets output to the console to show it being built? Jul 21 07:38:17 3:37:21 AM Compilation completed successfully in 24 sec Jul 21 07:38:49 just did a quick isGoogleServicesAvailable() test and it worked as well (returned 2, whatever that means) Jul 21 07:39:16 I get the feeling it's just ignoring build.gradle Jul 21 07:39:20 try syncing build.gradle with the project Jul 21 07:43:06 no difference Jul 21 07:51:19 strange Jul 21 08:01:11 I get Error in http connection org.apache.http.conn.HttpHostConnectException: Connection to http://192.168.0.107 refused when i connect to localhost/android/index.php Jul 21 08:01:15 my firewall is off Jul 21 08:01:49 and i am on the same network. what could be the possible reasons ? Jul 21 08:04:19 pranav, is the server on the phone? Jul 21 08:04:31 Afzal: its on emulator Jul 21 08:04:38 using adt Jul 21 08:04:56 Afzal: *sry, server is php application on my computer Jul 21 08:05:10 pranav, then localhost won't work. Use your computer's IP Jul 21 08:05:20 Afzal: I am using it Jul 21 08:05:28 http://192.168.0.107 Jul 21 08:05:52 that should work then, can you access it through the emulator browser? Jul 21 08:06:11 Afzal: hmm... wait :) Jul 21 08:07:08 Afzal: yeh, managed to get gradle working fine from command line, must just be a plugin issue Jul 21 08:07:41 Estel, nice, maybe, you have the latest version of everything? Jul 21 08:07:54 Afzal: Yup! I can access the php website in my emulator Jul 21 08:07:58 yes Jul 21 08:08:23 Afzal: should i add INTERNET permissions to my manifest file ? Jul 21 08:08:28 pranav, hmm then it should most definitely work unless your app doesn't have the internet permission or the IP you ...---- Jul 21 08:08:35 yeah, was typing that lol Jul 21 08:08:51 *sry didn't thought of that.. Thanks but.. Jul 21 08:15:19 Afzal: its still saying connection refused after i added the internet permission line in manifest file Jul 21 08:16:41 pranav, must be something wrong in the code then. Could you try with something like www.google.com? Jul 21 08:17:31 Afzal: the internet plus my php page works in well in emulator browser Jul 21 08:17:51 pranav, that's why I'm suggesting something must be wrong in your app Jul 21 08:18:06 see if you can access google.com from your app Jul 21 08:28:10 Afzal: i got disconnected.. from irc briefly Jul 21 08:28:18 i tried http://www.google.com Jul 21 08:28:22 says.. 07-21 08:25:35.728: E/log_tag(1013): Error in http connection android.os.NetworkOnMainThreadException Jul 21 08:28:51 you cant make networking requests on the main thread Jul 21 08:29:13 you'll have to either use async task or some kind of service Jul 21 08:30:11 there are a lot of resources about NetworkOnMainThreadException on the internet Jul 21 08:30:20 Afzal: will async perform it in different thread.. ? Jul 21 08:30:24 yeah Jul 21 08:30:33 Afzal: Thanks I got it :) Jul 21 09:08:53 Hello, I have a problem with adb: the day before yesterday, my phone was listed in adb devices and I could use it with Eclipse ADT, but today I can't get it work. I have debugging mode enabled and restarted my system (PC & phone) and adb. Does anyone has an idea? Jul 21 09:39:56 did you jiggle the cable? Jul 21 09:40:03 (seriousily) Jul 21 10:18:12 Ok this is gonna be a long one... Jul 21 10:18:14 In an Activity I am performing an AsyncTask. The AsyncTask reads a file in the background and keeps an update object. As it reads the file, the update object tells the asynctask when the update is ready to go to the UI. I publishProgress(updateObject) and the object reference goes to the UI thread. The UI thread then makes changes by getting the data out of the object. In the meantime, the AsyncTask is still reading the file and publishing the Jul 21 10:18:14 same object reference to the UI. Thus, my data processing in the UI performs kind of randomly due to the race condition. I have applied synchronized(AttomicBoolean) { code that reads the file, code in onProgressUpdate } but it gives different but wrong results. Can anyone help me understand where I'm going wrong? Jul 21 10:20:00 you should use a runnable instead Jul 21 10:20:27 hi everyone i meet some problems with actionbarsherlock Jul 21 10:20:32 Okay, why do you think so, lasserix? Jul 21 10:20:52 asynctask is per task, but it looks like you want somethign continually running Jul 21 10:20:57 how to change the homelayout of actionbar Jul 21 10:21:06 updateprogress is not the way you should be handing off updates to UI Jul 21 10:21:14 not exactly. the file ends. but you're right because it's going to change later to be more of a file seeking thread Jul 21 10:21:36 lasserix, what would you suggest? a handler? Jul 21 10:21:40 well if updateprogress is for feedback, the actually change of state is supposed to occur onpostexecute or whatever Jul 21 10:21:42 yeah Jul 21 10:21:51 use a handler with recycled messages? Jul 21 10:21:54 I didn't think I could send an object back through a handler Jul 21 10:22:05 i dont think you can Jul 21 10:22:21 that kinda seems pointless to me then Jul 21 10:22:36 umm so you have the background then updating some data object Jul 21 10:22:48 and the UI thread updating the ui based on the data in the data object? Jul 21 10:22:55 *background thread Jul 21 10:23:00 heh. yeah Jul 21 10:23:04 it's a graph Jul 21 10:23:12 "the update object tells the asynctask when the update is ready to go to the UI" Jul 21 10:23:14 reading a data file and then showing the graph of the data Jul 21 10:25:04 is this for one graph? Jul 21 10:25:17 it is today. later, there will probably be multiple graph views... Jul 21 10:25:26 well Jul 21 10:25:44 why not just put it in postexecute, tell the UI to update and run another async task? Jul 21 10:26:20 double buffer your data object so one is only being read from (by ui), and the other is being written too (by async task) Jul 21 10:26:20 so you're suggesting that my task not be to read the whole file, but to read the size of my chosen update size? Jul 21 10:26:55 yeah then just requery the next set Jul 21 10:26:59 hmm Jul 21 10:27:08 because if you have multiple graph views Jul 21 10:27:09 that would guarantee that all ui updates are processed before continuing to read Jul 21 10:27:23 you'll end up reading subset of the data anyways? Jul 21 10:27:24 i definitely see a benefit to that Jul 21 10:27:33 lasserix, correct Jul 21 10:27:50 right now, multi-channel time-series data is graphed on one view Jul 21 10:27:54 later, i may separate those views Jul 21 10:28:24 actually, lasserix, you're a genius lol Jul 21 10:28:34 that might easily solve my problem of reading only part of the file Jul 21 10:29:06 the files are gonna be gigabytes in real life... Jul 21 10:29:14 easy enough to talk about sometimes not so easy to actually do ;p Jul 21 10:29:29 i still had to solve the problem of keeping only a little bit of the file in memory for the viewport of the graph Jul 21 10:29:40 cuz you can't load gigabytes of data points onto a graph. the user can't even see that much anyway Jul 21 10:29:59 well, if i'm thinking of this right, redoing the asynctask may not be too bad Jul 21 10:30:16 and i could link the buffer length and position handed to the task with the viewport of the graph views Jul 21 10:30:26 you could use offload the data object into postexecute into a "renderable" queue for the graphview Jul 21 10:30:57 i'm not sure what you mean there Jul 21 10:30:59 yeah Jul 21 10:31:05 oh well dont worry Jul 21 10:31:29 i couldn't tell if the graphview is going to be changing because the underlying data is going to be changing a lot? Jul 21 10:31:32 later, the trick will be to not be running too many asynctasks as the user scrolls/zooms the graph...but that comes later. Jul 21 10:31:48 the underlying data is "static" but the position within the data is not Jul 21 10:32:05 the problem i'm talking about here is for reading archive files of the data Jul 21 10:32:15 there is another component that displays real-time but that's not a big deal right now Jul 21 10:32:27 ahh i kinda see what you mean Jul 21 10:32:52 yeah but your idea seems sound, using the buffer and offset as your task inputs to output desired data object that gets rendered Jul 21 10:33:27 and i can then police how the buffer and offset are setup so that i don't create tasks too often (keep some data off screen in the graph) Jul 21 10:34:04 to read the file i'll probably use a RandomAccessFile then Jul 21 10:34:17 so i can position the buffer when i open the file Jul 21 10:36:19 lasserix, thanks for the advice. i'll see what i can come up with Jul 21 10:38:34 np good luck Jul 21 10:38:40 ;D Jul 21 10:53:36 anyone know a good way to tackle space partitioning for games in dalvik? Jul 21 10:55:10 space partitioning with dynamic object "creation" Jul 21 11:36:32 i have a problem with something, probably eclipse. i get the 'R cannot be resolved to a variable.' error. it does this on new, empty projects as well. (i know it happens if you mess up the layout xml). project clean&refresh no help. any ideas? i thought there was a cache folder i could clean out somewhere too, but i dont remember where... Jul 21 11:37:56 R.gen Jul 21 11:38:19 also make sure your imports are not redirecting R to the wrong place Jul 21 11:45:50 hm Jul 21 11:48:36 lets try to update sdk tools Jul 21 11:50:30 i cant find any errors anywhere Jul 21 11:50:42 it worked yesterday and today it doesnt Jul 21 11:50:45 hah Jul 21 11:52:22 well actually i did update a the android sdk Jul 21 11:52:29 thats probably it and eclipse cant cope Jul 21 11:53:18 hah there we go Jul 21 11:55:47 either a new update came just very recently to fix this issue or my sdk update didnt complete when i did it a couple days ago.. updated now and its all good again Jul 21 12:04:54 welcome to eclipse android development Jul 21 12:06:08 hey there Jul 21 12:06:53 implementing a LoaderCallback atm and experiencing some strange behaviour Jul 21 12:07:32 the wrong cursor is returned, when the database is updated Jul 21 12:08:30 seems that onLoadFinished() is called before update finished Jul 21 12:09:30 some hints where to take a look at? Jul 21 12:09:43 would be great Jul 21 12:10:36 are you using content observer ? Jul 21 12:10:43 on content changed observer or whatever Jul 21 12:10:47 designed for that kind of thing Jul 21 12:11:26 yes Jul 21 12:12:14 notifyChange() in my update-method of contentprovider Jul 21 12:14:29 the correct cursor is returned every second time i trigger update Jul 21 12:15:02 perhaps important - database is updated from an intentservice Jul 21 12:24:30 would be interesting if it is possible at all, that an database-update triggers the onLoadFinished() before the upate is finished Jul 21 12:29:33 mikewintermute: i solved that in a different way Jul 21 12:29:48 sorry i mean mauricemoss Jul 21 12:30:09 mauricemoss: i created an aplpication object and i always tirgger a small sql select in the application object Jul 21 12:30:38 so any sql database updates happens in the applicaition object and any other stuff comes behind Jul 21 12:31:29 so it is possible that the update still takes place and the onloadfinished is called Jul 21 12:31:33 so it is possible that the update still takes place and the onloadfinished is called? Jul 21 12:31:36 no! Jul 21 12:31:43 the application object has an onCreate Jul 21 12:32:00 and the activitys or the widgets or services will only start if the onCreate has finished Jul 21 12:32:14 will this fit you needs? Jul 21 12:32:40 ok. in your approach it is not possible. if i stick with the 'normal' loader, there is the possibility that the loader is notified before update finished? Jul 21 12:32:52 define "loader" Jul 21 12:33:22 i use a smal "select * from foo limit 1" sqlite select with my default openhelper Jul 21 12:33:36 that's what my fragment implements Jul 21 12:33:37 s/openhelper/datbasehelper Jul 21 12:33:37 implements LoaderManager.LoaderCallbacks Jul 21 12:33:40 yeah Jul 21 12:33:42 so Jul 21 12:33:47 the Application objects comes first Jul 21 12:33:49 in any case Jul 21 12:33:57 and it is only initalized once Jul 21 12:34:10 my database is wrapped inside my contentprovider Jul 21 12:34:30 look Jul 21 12:34:37 android starts your apk Jul 21 12:34:45 1) the application object is initalized Jul 21 12:34:48 2) any other suff Jul 21 12:35:18 in the application object trigger one simple database query (packed in a content priverer, or by a select...) Jul 21 12:35:36 then the db update takes place (or if not needed nothing happenes) Jul 21 12:36:04 but there is a 100% predictable order - the step 2) only takes place after you quit the onCreate of your application object Jul 21 12:37:19 ok. i understand stand. Jul 21 12:37:41 Sounds unnecessary Jul 21 12:37:44 but what about some updates taking place while the app runs Jul 21 12:37:49 And designed to slow down app loading Jul 21 12:37:58 mauricemoss: that is not possoble Jul 21 12:38:08 ? Jul 21 12:38:17 doing that already. but ... Jul 21 12:38:26 hm. let me explain again. Jul 21 12:38:40 got some periodically updated data on a server Jul 21 12:39:02 parsing these data from an intentservice Jul 21 12:39:04 ok gotr you Jul 21 12:39:14 "update database" != "updateS for a database" ;) Jul 21 12:39:23 sorry forget what i wrote Jul 21 12:39:28 ^^ Jul 21 12:39:52 my database is wrapped with the content-provider Jul 21 12:40:17 More like update != upgrade Jul 21 12:40:20 and my view (in my case a fragment) implements LoaderManager.LoaderCallbacks Jul 21 12:41:25 now i trigger some data-UPDATE, my intentserver parses the new data (does that correct - i checked that) and calls Jul 21 12:41:43 getcontentResolver.update(... Jul 21 12:42:11 used that approach before and did what i wanted Jul 21 12:42:25 but atm this strange behaviours takes place Jul 21 12:43:10 the onLoadFinished() of my fragment is called and the delivered cursor comes with 'old' data Jul 21 12:44:22 seems that the onLoadFinished() is triggered before the update finished correctly Jul 21 12:44:57 did not experience anything like that before Jul 21 12:46:13 sorry i have no idea for that behaviour Jul 21 12:47:37 for debugging i dump a cursor with the data the onLoadFinished() should receive and it's updated as it should Jul 21 12:48:03 but at that point the onLoadFinished already received the wrong data Jul 21 12:48:37 k. thanks anyway. Jul 21 12:49:48 SimonVT got some hint for me? Jul 21 12:50:26 Don't tell the loader to load before you're done updating Jul 21 12:51:12 :) that sounds simple Jul 21 12:52:07 but shouldn't that work out of the box with this getContentResolver().notifyChange(uri... ? Jul 21 12:52:35 If you're updated, yes Jul 21 12:52:38 It works out of the box Jul 21 12:52:49 (except for you) Jul 21 12:54:25 great. exactly what i hoped for... Jul 21 12:54:26 not Jul 21 12:54:34 but thanks anyway! Jul 21 13:13:09 how to access the the value of particular nameValuePair object using name when they are in array.. ? Jul 21 13:14:03 Use a hashmap Jul 21 13:19:31 SimonVT: its for httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); Jul 21 13:19:48 the reference says it needs nameValuePairs Jul 21 13:20:31 hi everyone Jul 21 13:20:40 Hi Newbie Jul 21 13:20:58 hi guys Jul 21 13:21:14 how can i implement p2p videochat between android and desktop? Is flex the best way for that? Would yo give some tips? Thank you. Jul 21 13:23:14 i am developing an googlemap type app and I want to do some research on how to save points of interests (POIs) in a centralized location where everyone who has the app can access the POIs. I just need to be pointed in the right direction on what to research on Jul 21 13:23:33 i would like to overlay the map with these points on interest depending on a userinput address or current location Jul 21 13:28:23 how can i implement p2p videochat between android and desktop? Jul 21 13:38:08 Im trying to implement p2p video chat between android and desktop, any tips, please? Jul 21 13:46:37 hi guys Jul 21 13:47:06 I wonder how whatsapp or twitter implemented that bottom drawer for smileys (whatsapp) and location fragment (twitter) Jul 21 13:47:20 I mean how do they know how much tall the fragment must be? Jul 21 13:47:58 there is no way to obtain that information but computing the size by e.g screen height - notification bar height - activity height Jul 21 13:56:08 daniele_athome, can you show me a screenshot? Jul 21 13:57:08 my phone is not good enough to run apps Jul 21 14:00:01 narekb, sure Jul 21 14:00:04 https://docs.google.com/file/d/0B376RRUrnzwiNHByU1NvdGVtVUk/edit?usp=sharing Jul 21 14:00:05 https://docs.google.com/file/d/0B376RRUrnzwiLWZ5QXM1azYzSUE/edit?usp=sharing Jul 21 14:01:02 how the hell does it know exactly how to make it tall? Jul 21 14:01:58 http://stackoverflow.com/questions/6009487/get-the-height-of-virtual-keyboard-in-android Jul 21 14:02:02 come on I don't believe it Jul 21 14:02:30 http://stackoverflow.com/questions/16788959/is-there-any-way-in-android-to-get-the-height-of-virtual-keyboard-of-device Jul 21 14:02:35 that's better... Jul 21 14:03:21 daniele_athome, I have no idea what kind of UI those apps have, a screenshot would be nice Jul 21 14:03:37 but more than likely you're doing it wrong if you need the height ;) Jul 21 14:03:40 Zharf, I posted two of them a few moments ago Jul 21 14:03:46 docs.google.com links Jul 21 14:03:48 Maybe it's a viewgroup that remembers the size of the keyboard Jul 21 14:04:04 daniele_athome, oh, weird urls :p Jul 21 14:04:22 "If difference is more then 150 consider this as a keyboard has been inflated." Jul 21 14:04:22 you don't need to know the height of the keyboard for those... Jul 21 14:04:23 what!?!? Jul 21 14:04:47 Zharf, what do you mean? Jul 21 14:05:19 ("what?!?!?" was referred to the quote :) Jul 21 14:08:30 is it possible to tether wifi-over-wifi? like connect with a paid hotspot with android and then broadcast it for my other devices? Jul 21 14:09:07 * broadcast = broadcast on another wifi connection using same wifi hardware module Jul 21 14:09:56 reenignEesreveR, AFAIK I don't think so... antenna and modulator is one, I don't think it can work in two ways like that Jul 21 14:11:56 daniel, from general perspective it is possible, a wifi module can connect to two wifi connections simulatenously Jul 21 14:12:03 not sure if that is possible on android Jul 21 14:13:31 people I got a question to you Jul 21 14:13:38 how the **** do people make FM apps Jul 21 14:13:39 reenignEesreveR, sure, but what about routing configuration? Interface is 1 Jul 21 14:13:44 w/o an API for FM? Jul 21 14:13:46 maybe with bridging? I don't know Jul 21 14:14:06 narekb, there are kernel modules for that Jul 21 14:14:13 probably direct /dev access or syscall? Jul 21 14:14:21 daniele_athome, oh Jul 21 14:14:23 interesting Jul 21 14:14:34 daniele_athome, thats what i meant … can i create multiple wifi interfaces simultaneously on android? Jul 21 14:15:26 i've done that on a linux based router Jul 21 14:15:40 not sure how to go about it on android Jul 21 14:16:07 I see Jul 21 14:16:23 well I guess if you find the same binaries to do that also in android Jul 21 14:16:29 you can come up with some automated scripts Jul 21 14:16:42 but nothing on the UI I'm afraid, as much as I know Jul 21 14:17:14 right Jul 21 14:17:49 except "find same binaries" is a difficult task Jul 21 14:17:54 eheh :) Jul 21 14:18:04 tell me about it Jul 21 14:18:21 had some problems with wpa_supplicant & co. once Jul 21 14:19:06 actually i did it on an openwrt router Jul 21 14:19:18 hello all Jul 21 14:19:21 and it has most of the stuff already configured for networking Jul 21 14:20:08 can someone point me to a documentation how to intercept outgoing and incomming calls, text and other events on android? Jul 21 14:20:23 i need to build a logger of all actions on the android Jul 21 14:21:16 are there Intents for that? Jul 21 14:21:29 narekb: i am new to andorid Jul 21 14:21:34 so i do not knwo Jul 21 14:21:36 hkais, so am I Jul 21 14:21:37 :D Jul 21 14:21:49 I guess there have to be broadcasts for thsoe events Jul 21 14:21:52 hkais, you will have to listen for broadcast intents Jul 21 14:22:06 you need to find appropriate ones and register a few BroadcastReceivers Jul 21 14:22:20 pretty much a few of developer.android.com pages :) Jul 21 14:22:47 yup Jul 21 14:23:19 daniele_athome: okay I will give it a try Jul 21 14:23:48 hkais, you need to find the broadcast names for calls and messages Jul 21 14:24:07 anyway hkais use google to search that, developer.android.com docs for that matter is a bit "sparse" Jul 21 14:25:26 I cannot get the return value from my class InternetRequests extends AsyncTask{ Jul 21 14:26:07 narekb, Zharf, SimonVT guess what Jul 21 14:26:11 Twitter uses this: http://stackoverflow.com/a/16789324/1045199 Jul 21 14:26:15 exactly the same method Jul 21 14:26:30 they add a global layout listener Jul 21 14:26:35 and check for the same difference Jul 21 14:26:35 const/16 v1, 0x96 Jul 21 14:26:38 0x96 = 150 Jul 21 14:26:47 unbelievable Jul 21 14:27:38 daniele_athome, how did you find out Jul 21 14:27:38 ? Jul 21 14:27:42 is the Twitter app opensource? Jul 21 14:28:08 narekb, no I baksmaled it with apktool Jul 21 14:28:17 haha Jul 21 14:28:21 oh my this verb is awful Jul 21 14:28:25 to baksmale Jul 21 14:28:29 lol Jul 21 14:28:32 :D Jul 21 14:28:34 thanks for the info Jul 21 14:35:34 Hey all! I'm having trouble changing a TextView after the initial onCreateView of my fragment Jul 21 14:35:52 wandernauta, would you be a little more specific? Jul 21 14:36:01 daniele_athome: Sure, hang on :) Jul 21 14:36:27 daniele_athome: I have a LocalService setup with a single activity that has multiple fragments. Jul 21 14:36:56 Communication from the activity to the service is easy (a simple binder). Jul 21 14:37:17 But I need the reverse as well (notifying the activity), so I have callbacks set up. Jul 21 14:37:28 The weird thing is that if I call the callback from onCreateView, the UI is updated. Jul 21 14:37:51 If I call the callback 'regularly', log messages are printed, the result from .getText changes, but the UI is not updated. Jul 21 14:38:23 In both cases, the callback runs on thread 1 (which I assume is the UI thread). Jul 21 14:39:07 wandernauta, if the thread is always the same that's weird Jul 21 14:39:07 UI thread is usually called "main" Jul 21 14:39:23 are you sure the activity instance is the same? Jul 21 14:39:24 Check if with Looper.myLooper() == Looper.getMainLooper() Jul 21 14:39:47 SimonVT: Hang on, I'll check the name Jul 21 14:40:09 daniele_athome: Hmm, I assume it is... how do I check? Jul 21 14:40:37 wandernauta, print it out Jul 21 14:40:42 activity.toString Jul 21 14:40:50 check if it prints the same results in the two cases Jul 21 14:41:35 wandernauta, please also triple check if you are indeed in the UI thread Jul 21 14:41:58 (also using a service and then doing tasks on the main thread would make the service worthless btw) Jul 21 14:42:08 is it a good idea to nest the AsyncTask(param, param, param) inside your Activity class because you want the return information from onPostExecute() Jul 21 14:43:09 why can't i access getApplicationContext() inside onPostExecute() (of AysncTask class) despite it is meant for UI Manipulation ? Jul 21 14:43:10 :( Jul 21 14:43:46 pranav, you can do it... be careful to references to the activity (remember AsyncTask is indeed another thread) Jul 21 14:43:54 otherwise make it static and use a weakreference Jul 21 14:44:12 but you will always have to use onRetainConfigurationChange (or whatever is called) to retain the asynctask I guess Jul 21 14:44:50 daniele_athome: Okay, I get the same thread ID in both cases, as well as the same activity address and the same looper Jul 21 14:45:37 wandernauta, good :) Jul 21 14:45:45 so I really don't know sorry Jul 21 14:45:49 daniele_athome: :/ Jul 21 14:46:14 daniele_athome: Is there a better way to do this kind of thing? Jul 21 14:46:26 daniele_athome: since getApplicationContext() is not static method. I can't scope it inside my new static method of activity class Jul 21 14:46:37 wandernauta, well, that is one way... it's not wrong Jul 21 14:46:44 pranav, I mean make the asynctask class static Jul 21 14:46:52 not the method :) Jul 21 14:47:13 hmm.. Jul 21 14:47:31 daniele_athome: Well, it's wrong in the sense that it doesn't work and I don't understand it well enough to fix it :) I've looked at Messengers, AIDL, IntentService and all that, but I don't know which one is right for my app (it's a music player thingy) Jul 21 14:48:15 wandernauta, usually Messengers and AIDL are for complex (exported services) stuff Jul 21 14:48:24 I've been using IntentService and deliver results through intent broadcasts Jul 21 14:48:29 but there are other ways too Jul 21 14:48:37 it depends and what do you need and how much do you want to code Jul 21 14:49:30 Huh, broadcasts? I only want to send the result to my own app, not someone else's Jul 21 14:51:20 wandernauta, broadcasts are used for that Jul 21 14:51:52 you luaunch an activity with an Intent broadcast Jul 21 14:52:34 narekb: But I want to launch the service from the activity, then update the activity from the service, not start new activities... Jul 21 14:53:55 wandernauta, launching the activities was just a demo of using an Intent to broadcast messages inside one app Jul 21 14:54:12 there are many more things Intents can do Jul 21 14:55:23 Is there other way to work beside AsyncTask class ? Its a mess, I suppose Jul 21 14:56:05 narekb: But would you use one just to say "I've played one second of music"? Jul 21 14:56:13 *in my scenario, I am expecting it to do loads of queries and return results.( which it is not meant for) Jul 21 14:56:43 wandernauta, one second? if I may ask, what app are you making? Jul 21 14:57:01 narekb: A music player app :) Jul 21 14:57:24 well, I am a bit new to Android, so do not entirely trust my advice Jul 21 14:57:37 but I think if you need to exchange info between Activities and Services Jul 21 14:57:41 Intents are your friends Jul 21 14:57:51 Heh, that rhymes, so it must be true Jul 21 14:58:01 :D Jul 21 14:59:59 wandernauta, maybe for that you can see the Android music player source code :) Jul 21 15:00:04 see how google did it Jul 21 15:00:33 daniele_athome: I've looked at the API example for the MediaPlayer class, which I do use Jul 21 15:01:10 daniele_athome: But that didn't really help. There is literally no UI in that example. Jul 21 15:07:53 wandernauta, I mean the actual Android music player app Jul 21 15:08:11 i don't remember the repository url Jul 21 15:08:12 daniele_athome: Won't that be way too compilcated? Jul 21 15:08:34 wandernauta, you can take some insights from that Jul 21 15:08:38 and see how google did that Jul 21 15:08:43 and then decide and implement your own solution Jul 21 15:09:00 I've found the repo Jul 21 15:09:03 They went with AIDL Jul 21 15:29:05 AIDL Jul 21 15:57:43 My screen orientation is refusing to go to landscape mode.. I have android:screenOrientation="sensor" for the activities and I created layout-land/activity.xml. Any ideas? Jul 21 16:00:26 The layouts have the same name, they're being previewed correctly in Android Studio. Jul 21 16:00:51 The main activity responds to rotation, but the other 2 activities I have aren't. I'm using ActionBarSherlock, too. Jul 21 16:03:06 * monsti ist also doing some rotations - but with his body Jul 21 16:20:59 hey Jul 21 16:21:06 is this the place to name bugs in the docs? Jul 21 16:22:00 that’s it i think: https://dl.dropboxusercontent.com/u/6559846/Screen%20Shot%202013-07-21%20at%206.20.37%20PM.png Jul 21 16:59:30 hi guys, can anyone help me understand mount points in android? Jul 21 17:00:04 if i mount something using my own app, only my app sees that mount point, it's not available anywhere else Jul 21 17:12:36 hi Jul 21 17:27:30 if i spawn a thread in one activity and then switch to a different activity do the previous threads die? (are threads activity-specific?) Jul 21 17:28:31 no Jul 21 17:30:07 does anyone here know how to universally mount / umount file systems that will be available for everyone? Jul 21 17:32:25 loin: You probably have to mount something in your own apps directory and then use a file provider to serve it out to someone else? Jul 21 17:32:58 hwrd|work, i want to mount something in /sdcard/folder Jul 21 17:33:14 if i am in the file manager and i mount that path using adb shell Jul 21 17:33:14 a loop f's? Jul 21 17:33:22 then the file manager sees it Jul 21 17:33:31 no go, unless you got root Jul 21 17:33:36 if i mount that something while the file manager is not opened, then when i open it, it's not there anymore Jul 21 17:33:53 it seems that each app has its own mount context Jul 21 17:34:08 which gets generated when you enter an app Jul 21 17:39:17 pfn, hwrd|work Jul 21 17:39:27 if i check adb shell after i close and open the file manager Jul 21 17:39:30 the mount is still there Jul 21 17:39:33 but no apps see it Jul 21 17:39:47 but if the apps are opened when i mount from terminal, the mount point gets added to them Jul 21 17:42:08 no idea what you're talking about or doing Jul 21 17:55:04 What ui element is used for the default texting app's messages? Jul 21 17:57:58 .. a textview? Jul 21 17:58:37 AndroidHttpClient.newInstance, "Create a new HttpClient with reasonable defaults (which you can update)." Jul 21 17:58:46 there doesn't seem to be any way to update them Jul 21 18:00:18 Abyx, in which part? Jul 21 18:00:24 writing or displaying? Jul 21 18:00:39 the displaying of messages Jul 21 18:00:49 is it really just a textview? Jul 21 18:01:20 no Jul 21 18:01:25 the displaying is done with a ListView Jul 21 18:01:40 ok, thanks Jul 21 18:01:41 TextView is for typing, when writing the messages Jul 21 18:02:22 pfn, mounting stuff :) Jul 21 18:03:51 haha Jul 21 18:04:18 havent seen saurik around here lately - but just saw his blog post :D Jul 21 18:05:00 http://www.saurik.com/id/17 Jul 21 18:05:48 hey StingRay_ you are a designer right? Jul 21 18:06:46 why .. sup? Jul 21 18:06:54 you on Dribble? Jul 21 18:07:09 na Jul 21 18:07:15 why not? Jul 21 18:07:57 dunno, never wanted to be Jul 21 18:08:19 StingRay_, Y U NO show your owrk? Jul 21 18:08:26 really, I think Dribble is the best platform for it Jul 21 18:08:38 ok, let me put it this way, where else can I see your work? Jul 21 18:08:40 not really Jul 21 18:08:48 3d graphics / vfx / 3d chars Jul 21 18:08:54 not really for that Jul 21 18:09:18 I see Jul 21 18:09:20 question Jul 21 18:09:27 are you into icon design? Jul 21 18:09:35 could someone here give me a hand getting the android to work in unity ...i've been trying the entire evening to get it working with no success :( Jul 21 18:09:55 narekb: sometimes Jul 21 18:10:26 hmmm Jul 21 18:10:39 whats with all the questions ? Jul 21 18:10:43 you stuck with something ? Jul 21 18:10:50 StingRay_, sorry, just curious Jul 21 18:11:02 idk why I am seriously into icon design Jul 21 18:11:10 I just wanted to see some of yours Jul 21 18:11:27 I have probably done 100's Jul 21 18:11:49 wow Jul 21 18:11:50 just a long time ago, and for console games Jul 21 18:11:56 ooooh Jul 21 18:11:58 early in my time Jul 21 18:11:59 you work in that area Jul 21 18:12:06 film / games Jul 21 18:12:11 awesome Jul 21 18:12:14 well, tv/films/games Jul 21 18:12:34 but most of the time was console games I think Jul 21 18:12:39 I see Jul 21 18:12:53 well, thanks for the answers StingRay_, sorry if I distracted you from something Jul 21 18:13:26 distaction from the pain that is my menu controller fragment mess at the moment is more than welcome :) Jul 21 18:13:45 haha Jul 21 18:19:42 Does anyone know why all GL-accelerated HTML5 canvases have "ghost" issues (i.e. "burned-in" shapes that cannot be removed)? It looks like even the emulator is suffering from the issue with GL acceleration enabled Jul 21 18:23:39 cincinnatus: you do web dev ? Jul 21 18:24:03 StingRay_: I'm working on a hybrid native / phonegap app... Jul 21 18:24:19 can I ask a serious question Jul 21 18:24:24 and this is not a piss take Jul 21 18:24:28 or anything of the kind Jul 21 18:24:52 sure, go ahead Jul 21 18:24:54 can you point me to a very good polished example of a quality web app Jul 21 18:25:13 oh and btw, this is android dev, phonegap do have a channel though Jul 21 18:25:15 :) Jul 21 18:25:52 StingRay_: When I use an app off Google Play, I don't bother checking what it's built with, to be honest... Jul 21 18:26:08 well I dont Jul 21 18:26:15 but I can usually tell Jul 21 18:26:19 StingRay_: I asked it in phonegap too... But the issue seems to be in the Android browser, not in phonegap. I'm not the only one who noticed it: https://github.com/mrdoob/three.js/issues/2938 Jul 21 18:26:57 cincinnatus: but I have found no webpage based thing that I would call an acceptable app, but I want to find one Jul 21 18:27:01 so thats why I ask Jul 21 18:27:17 I want to see an example of why people choose something like phonegap Jul 21 18:27:30 that isn't pure budget driven Jul 21 18:27:39 StingRay_: Unfortunately, I don't know of one... But it doesn't mean they don't exist. Maybe if it really is polished, you can't tell it from a native app... Jul 21 18:28:09 well if that were the case would phonegap and others not be using it as an example Jul 21 18:28:17 or there be marketing about it or something Jul 21 18:28:27 StingRay_: Essentially, it's just a question of not having to write a separate app for each platform. I don't see any other reason for it other than convenience and cross platform support. Jul 21 18:28:41 yeah I know the pros Jul 21 18:28:50 StingRay_: It's like... why anyone would write an app in Java if you could use the NDK and do it in C++? Same reason... Jul 21 18:28:55 but I dont find the compromises acceptable Jul 21 18:29:02 but I know some will Jul 21 18:29:27 cause most of the api access is java based Jul 21 18:29:32 and UI Jul 21 18:29:34 :) Jul 21 18:30:10 so you better learn native development Jul 21 18:30:14 oh well.. It's more like why would anyone write a Windows app in .NET (instead of C++/MFC) Jul 21 18:30:16 that's where the coolness's at Jul 21 18:30:31 StingRay_ many times, the choice to go mobile web app is a financial (ROI) one Jul 21 18:30:37 I know Jul 21 18:30:53 if it were quality, nobody would use phonegap Jul 21 18:31:07 I want to find a contradiction example to that statement Jul 21 18:31:10 :) Jul 21 18:31:26 StingRay_: The acceptability of the compromises depends on what you're coding. If it's essentially a mobile extension of your Web site with some extra functionality (camera, geolocation, local storage...), the compromises are acceptable. If you're writing a game, even Java might not be acceptable. Jul 21 18:31:50 cincinnatus, then what will be acceptable for a game? Jul 21 18:32:00 although, from an outsider, it seems very difficult to deal with the browser fragmentation Jul 21 18:32:32 almost negating the economics in some cases Jul 21 18:32:32 narekb: The NDK with C++, perhaps. But then again, it depends on how heavy the processing demands are. Jul 21 18:32:50 ahh well I wonder how many of the popular games are written with the NDK Jul 21 18:34:34 narekb: I think a lot of 3D games are written in the NDK. Jul 21 18:34:42 hmmm Jul 21 18:34:52 narekb: But Java is fine for something like Angry Birds Jul 21 18:36:42 omg this is quite funny http://www.youtube.com/watch?feature=player_embedded&v=fyh8C8I0j3o#at=70 Jul 21 18:38:11 sometimes I look at vids like this Jul 21 18:38:21 and think "how do they have that much money to buy those" Jul 21 18:38:32 wow Jul 21 18:38:33 WOW Jul 21 18:38:35 damnit! Jul 21 18:38:43 buy ? buy what ? Jul 21 18:38:49 StingRay_, phones Jul 21 18:39:17 not sure I follow Jul 21 19:13:57 pfn, hwrd|work i made a video of the mounting issue Jul 21 19:13:58 http://www.dailymotion.com/video/x1256yn_vid-20130721-215001_webcam Jul 21 19:15:50 loin: It probably disables all your mount points when your app closes! Jul 21 19:16:15 Mount points aren't forever, you know, don't they depend on the process that creates them ? Jul 21 19:16:40 hwrd|work, i mounted it from adb Jul 21 19:16:46 and i didn't dettach it Jul 21 19:16:50 it was still there Jul 21 19:17:49 if i mount it before entering the file manager, it's not there Jul 21 19:18:09 so there must be a file or a configuration somewhere that tells all the processes what mount points they should have Jul 21 19:19:06 can anyone point me to a basic example of fragments? I've googled around but I cant find an actual download of the minimum code necessary to run fragments Jul 21 19:19:43 how about the demos that come with the support library? Jul 21 19:20:39 freshprince: http://developer.android.com/guide/components/fragments.html <--- dont that cover it ? Jul 21 19:21:18 anyone know how to fix the fact that unity just doesn't find android SDK ...i even tried to download the old r21.1 but no luck :( Jul 21 19:21:26 Tuikku84: unity? Jul 21 19:21:29 loin: Probably, I'm unsure about mounting things normally. Maybe try #android-root Jul 21 19:21:45 zaltekk: its a game engine Jul 21 19:21:48 like open gl Jul 21 19:21:50 poor apple devs :| Jul 21 19:21:50 like marco said, either big security breech or unrecoverable data loss Jul 21 19:22:05 ah. that unity Jul 21 19:22:14 g00s: oh whaaaat? Really? Jul 21 19:22:25 Tuikku84: did you set the ANDROID_HOME environment variable? it may use that to search for it Jul 21 19:22:31 hwrd|work yeah, its been i think 3 days Jul 21 19:23:08 thanks hwrd|work. i'll check it out with those guys Jul 21 19:23:16 loin: np Jul 21 19:23:30 zaltekk no...so i just create new ANDROID_HOME enviroment variable and add the path to it ? Jul 21 19:23:42 g00s: I didn't find any demos of just fragments running in there... thru google & SO I found this: http://www.vogella.com/articles/AndroidFragments/article.html which looks helpful but he also ropes in some RSS processing library.. i just want code that runs & starts and finishes some fragments Jul 21 19:24:11 Tuikku84: well, that normally points to the android sdk installation root Jul 21 19:24:22 it could be how unity looks for it(i'm just blindly guessing) Jul 21 19:24:40 freshprince: thats all in the gettings started docs/tuts Jul 21 19:24:40 okay, thank you Jul 21 19:26:40 StingRay_: do you have a link to a complete listing of the code? I'm putting together the code snippets from the tutorials and i'm having trouble getting them running Jul 21 19:27:02 have you read it all, and gone through the training ? Jul 21 19:27:10 if so, what exactly dont you understand ? Jul 21 19:27:30 and I linked the page above btw Jul 21 19:29:04 StingRay_: well TBH I was trying this tutorial: http://developer.android.com/training/contacts-provider/retrieve-names.html and then trying to get their implementation of fragments to work.. I will read thru that link you sent, thanks Jul 21 19:38:32 StingRay_! :) Jul 21 19:38:57 hello Jul 21 19:40:01 * Bleeptech is still running in circles with JSON.. Jul 21 19:40:25 good for u Jul 21 19:40:27 :) Jul 21 19:47:29 Ok a simple question for everybody. Everything can be done programmtacally in android correct such as Views, Intents, Permissions ? Jul 21 19:48:02 StingRay_: I'm missing something obvious somewhere.. Still learning how this is supposed to look and work Jul 21 19:48:20 So if you have an activity helper class how come the Activities still need to be defined in the manifest, as the intent filters ? Jul 21 19:48:55 you can dynamically register receivers Jul 21 19:49:28 for broadcasts and such Jul 21 19:51:36 StingRay_: correct but cant you register Activities, Intent Filters, etc also Jul 21 19:52:11 no Jul 21 19:52:15 or rather Jul 21 19:52:23 not that I am awear of Jul 21 19:52:55 cause it's a system dispatch thing I would imagine Jul 21 19:53:16 on install/1st run it may need to be logged as to what it can accept Jul 21 19:53:26 goToActivity(Context currentActivity, Jul 21 19:53:26 Class newClass) { Jul 21 19:53:26 Intent newActivity = new Intent(currentActivity, newClass); Jul 21 19:53:35 So Sorry Jul 21 19:59:39 Freenode is edad Jul 21 20:04:59 guymann or guymann_ which compiler are you using? Jul 21 20:05:12 narekb narekb_: it needs help bad Jul 21 20:05:28 I should have donated when there was still a foundation to donate to :( Jul 21 20:05:57 think that would have helped? Jul 21 20:06:03 Freenode is under heavy DDoS Jul 21 20:06:11 ohhhhhh Jul 21 20:06:15 Who is ddosing us!? Jul 21 20:09:01 So Adreno doesn't expose a surfaceless context extension, but does it support it anyway? :/ Jul 21 20:09:24 does anyone know where to get google USB drivers for x64 system..i try to update my drivers but it says it's not x64 :( i downloaded the current usb drivers via SDK manager Jul 21 20:10:40 dansan: Take your pick? Could be the radical Christians because we're all heretics, Could be radical Islam because we're all infidels, Or it could be some kid with a botnet being a wanker.. Jul 21 20:11:20 Bleeptech, I think neither Jul 21 20:11:33 just other network members Jul 21 20:11:40 THEY JELLY Jul 21 20:11:41 :D Jul 21 20:13:59 narekb_ freenode under ddos again ? Jul 21 20:14:38 g00s, "After all this time?" Jul 21 20:14:39 "Always" Jul 21 20:41:56 I'm looking through the code for the ApiDemos, and I'm trying to find which of the 'small applications' is the first to run, or how to find which activity is the first one called Jul 21 20:42:23 first called of what ? Jul 21 20:42:41 out of the entire app Jul 21 20:42:50 look at manifest Jul 21 20:42:58 its the one with the launcher property? Jul 21 20:43:08 ya Jul 21 20:43:44 its activity android:name="ApiDemos" , but I can't find where the actual code for that is Jul 21 20:44:06 In a class called ApiDemos Jul 21 20:44:25 how do i find that class? Jul 21 20:44:40 In your sdk, where you find the apidemos sample Jul 21 20:45:42 does anyone know where to get google USB drivers for x64 system..i try to update my drivers but it says it's not x64 :( i downloaded the current usb drivers via SDK manager Jul 21 20:45:43 i think i found it, in ApiDemos.java which was inside com.example.android.apis Jul 21 20:45:58 i have galaxy tab 2 7.0 Jul 21 20:46:48 do you know how I would strip out all of the other small applications in there, and the menus to choose those, to get down to just a sample of using fragments? Jul 21 20:47:32 freshprince: erm, I rather think it would be quicker to learn the basics and then do a simple app yourself Jul 21 20:47:54 copy/paste is bad enough, but cut/cut/cut is not gonna be nice Jul 21 20:48:00 :) Jul 21 20:48:15 well thats what I've been searching for, but I learn best when i have a small workign example in front of me taht I can modify slightly and iterate on to change and learn Jul 21 20:48:47 the only app with a working 'easy' example of fragments is the ApiDemos app, which is a collection of apps that show off all the different functionality Jul 21 20:49:05 are you just starting out ? Jul 21 20:49:10 So look at it, figure out what it does, make your own sample Jul 21 20:49:10 yes Jul 21 20:49:20 have you gone through all the training/gettings started ? Jul 21 20:49:37 cause thats the 1st thing to do Jul 21 20:49:46 i'm working through them right now, i'm trying to get fragments working Jul 21 20:50:08 and what are you having a problem with ? Jul 21 20:50:13 as in whats not working ? Jul 21 20:50:30 getting a small basic fragments app to run, and then I can look at it and play with it and learn from it Jul 21 20:50:49 the link you gave me earlier, http://developer.android.com/guide/components/fragments.html#Example, is helpful, except that their sample code is buried in the ApiDemos app Jul 21 20:51:09 but if you read / learn and understand that page Jul 21 20:51:17 then you should be able to do a simple thing yourself Jul 21 20:51:36 if you dont quite understand something, what is it you dont understand ? Jul 21 20:52:04 I think my main issue is the differences between support.v4 fragment stuff and the newer iteration Jul 21 20:52:52 because I was trying to follow this page: http://developer.android.com/training/contacts-provider/retrieve-names.html , and they provided a fragment but not the surrounding code, and my code kept getting cuaght up in errors related to that Jul 21 20:53:31 so I wanted to learn what the differences are between FragmentActivity and just Fragments in the newer API, but I cant seem to find much Jul 21 20:53:49 FragmentActivity is an activity for hosting fragmentManager Jul 21 20:53:57 for devices < 3.0 Jul 21 20:54:03 it's from support lib Jul 21 20:54:13 a fragment is …well…. a fragment Jul 21 20:55:10 haha I understand the concept... its just that I'm trying to run the code from that last link, and they are using support.v4 .app.Fragment when all of the tutorials on fragments that I find are for newer devices Jul 21 20:55:30 so i'm trying to 'bridge the gap' and learn how to implement them on both newer and older devices Jul 21 20:55:35 just default to always using the support lib Jul 21 20:55:48 and you will be both consistent and fine :) Jul 21 20:56:01 implementation is no different Jul 21 20:56:18 Ok I'm fine with that, but do you know where I can find an example? the code in the ApiDemos (FragmentLayout.java file) contains no mention of teh support lib Jul 21 20:56:18 well other than where you call from Jul 21 20:56:45 freshprince: it really would be best to do your own Jul 21 20:56:52 and what you dont know how to do learn Jul 21 20:56:57 there isn't all that much Jul 21 20:57:09 I'm thick as sh*t and I get by Jul 21 20:57:33 well in this context I'm not that good :) Jul 21 20:57:49 well where do I go to learn to build my own app with fragments, that uses the support libraries? Jul 21 20:57:57 the link you provided me with doesn't mention or use them Jul 21 20:58:13 well rather than using Activity use FragmentActivity Jul 21 20:58:20 and always use support lib Jul 21 20:58:23 thats it really Jul 21 20:58:33 StingRay_: Yeah, But you're better than me which is why I pick your brain. :D Jul 21 20:58:48 Bleeptech: better is subjective Jul 21 20:59:14 those are the only changes I should make when following their tutorial? I'm going to go eat dinner and then try that out... i'll report back if any problems pop up. thanks Jul 21 20:59:16 example : I ! know many generics about programming or OOP techniques Jul 21 20:59:41 and I think that lack slows me down lots Jul 21 20:59:46 but I get by Jul 21 20:59:48 :) Jul 21 21:00:01 StingRay_: I thought it was objective.. The compiler always has a lot less objections to the code after you've hellped me.. LOL.. Jul 21 21:00:41 fk, I should help myself more then, cause atm, I've really fked my menu system :) Jul 21 21:00:54 Good guy StingRay_ Jul 21 21:01:41 SimonVT: was that sarcasm ? Jul 21 21:01:53 Nope Jul 21 21:02:02 oh cheers :) Jul 21 21:02:03 I used to be helpful as well :p Jul 21 21:02:11 can some one help? what I am supposed to do when I receive PACKAGE_REPLACED in a BroadcastReceiver !!! Jul 21 21:02:16 yeah thats why I never want to become a real programmer Jul 21 21:02:27 I would have to start hating too much stuff Jul 21 21:02:31 and too many people Jul 21 21:02:32 :) Jul 21 21:02:55 What menu system are you making? Jul 21 21:03:22 well not a menu, a view popup controller fragment that can also take menus Jul 21 21:03:44 oO Jul 21 21:04:26 popup views Jul 21 21:04:30 :) Jul 21 21:04:49 fact I'm gonna rename it poppy right now, see if that fixes it all Jul 21 21:05:44 Like a PopupWindow? :p Jul 21 21:09:32 that can appear and align in may different ways and constraints … yes :) Jul 21 21:10:48 it was fine, but when I looked over it recently, I found it not to be all that understandable :) Jul 21 22:07:12 how to know if user is using Screen lock in Security as "None" ? Jul 21 22:08:34 any one have any idea ? Jul 21 22:08:59 :-/ Jul 21 22:12:39 t2mkn: It's set somewhere.. Just need to figure out how to read it. Jul 21 22:15:32 Bleeptech: ya, digging inside Settings.Secure and others. no luck so far :-/ Jul 21 22:28:44 would be cool if protobufs were parcelable Jul 21 22:29:29 hm, maybe pass the byte array Jul 21 22:29:35 :O Jul 21 22:37:04 evanc there ? Jul 21 22:53:06 How can I display a language other than English in the Android UI? It shows up as if the string is empty Jul 21 22:53:41 I used: new String( "ForeignLanguage".getBytes(), "UTF-8" ) Jul 21 22:56:59 hello everyone... It looks like there was some mixup and I was paid by google 3 times (3 different and exact deposits) what I should have .. did this happen to anyone else? Jul 21 23:00:48 serp it has happened to lots of people Jul 21 23:00:58 your wallet account will be negative the amount you have overpaid Jul 21 23:01:16 its not clear yet what Google will do, they're trying to reverse transactions from what I've heard, but that will not be possible for most Jul 21 23:01:21 lol that really happens? Jul 21 23:01:34 probably you should consider it an advance on future month's payments Jul 21 23:01:34 hard to trust a system that cant get payments right Jul 21 23:01:54 to somebody else they emailed that they would email all affected devs soon with the what/how of it Jul 21 23:01:55 or being broke for 3 months Jul 21 23:02:08 QcMat> if you trust Google to do anything right, you're going to have a bad time Jul 21 23:02:14 true, indeed Jul 21 23:02:17 and apparently haven't been paying attention the past X years Jul 21 23:02:36 well, they did gmail right :) Jul 21 23:02:53 and… uh… ok, you're right :) Jul 21 23:03:34 I still havent implemented inapp purchases, managed to do amazon's in 2 hours, hopefully google will be the same, most probably not -_- Jul 21 23:03:51 amazon's were actually easier than iOS Jul 21 23:04:47 QcMat they do lots of free stuff "great", but if you consider the things you actually pay them for, their service is not quite up to par with the cost Jul 21 23:04:57 definitely not Jul 21 23:05:03 exept gmail again, worth every penny Jul 21 23:05:39 regardless, serp, I'd give it another few days, end of the week probably, before worrying about it again Jul 21 23:05:39 they're aware of the issue, and you're not alone Jul 21 23:05:40 I've paid for their service for a pretty big team, it was great and fast Jul 21 23:06:02 the accountants must have noticed something fishy Jul 21 23:07:16 QcMat I could hire an extra engineer or two fulltime for the profit share they take, and they won't even answer my emails or give me a damned phone number to call in case of issues ... Jul 21 23:07:31 oh, yeah, for sure Jul 21 23:07:54 same here, with iOS, I give them 100s of thousands a day, and have to wait or get ignored Jul 21 23:07:58 a YEAR Jul 21 23:08:00 I wish, a day :) Jul 21 23:08:04 lol Jul 21 23:08:22 it's hilarious that some people say Apple or MS aren't any better Jul 21 23:08:26 doesn't mean it isn't shitty ;) Jul 21 23:08:31 haha for sure Jul 21 23:08:39 MS is actually pretty good, I've dealt with them Jul 21 23:08:45 the platform sucks, but support wise, they're ok Jul 21 23:08:49 amen to that Jul 21 23:09:29 you get pretty quick answers to your problems Jul 21 23:09:29 xbox live department anyway Jul 21 23:09:30 on the other hand, back when I dealt with them, there were a ridiculous amount of technical issues Jul 21 23:09:30 but financially and support wise, no problems Jul 21 23:09:31 fortunately, havent had to contact google yet about development Jul 21 23:09:32 Chainfire: thanks.. yeah i assumed it had to be a widespread thing but I had not heard anything from google Jul 21 23:09:43 haha yeah, they got some deep pockets Jul 21 23:09:49 and a platform to fill Jul 21 23:12:14 serp> I just hope they figure something proper out, because this is actually a tax issue for me (and a bunch of others) Jul 21 23:12:35 serp> just calling it an advance on future payments doesn't necessarily fly ... but that's not their problem so fat chance they care Jul 21 23:13:25 i'm sure the irs will understand Jul 21 23:13:27 :) Jul 21 23:14:04 canadian IRS equivalent had fun with my stuff last year Jul 21 23:14:16 I was all clean, but they said it was one of the most confusing cases they'd never seen Jul 21 23:14:24 partnerships, partnerships everywhere Jul 21 23:14:36 haha Jul 21 23:15:03 same for when I bought a house, brought the bank all the papers, they just trusted me on my word because it was too confusing haha Jul 21 23:15:45 how much will you make next year? no idea Jul 21 23:15:46 hopefully alot Jul 21 23:16:04 what's your salery? 0 Jul 21 23:16:05 :D Jul 21 23:16:59 but those trips to your caymen island office were business expenses right? Jul 21 23:17:46 ah definitely Jul 21 23:17:55 rum was for my fever Jul 21 23:18:01 :) Jul 21 23:18:42 anyone here has done both inapp purchases on gplay and amazon? Jul 21 23:19:21 I've not used Amazon (they harass me daily about putting my apps on there... it's getting creepy), but basic inapp purchases in GPlay is pretty easy Jul 21 23:19:35 shouldn't take you more than an hour to do ... Jul 21 23:19:40 haha, we went to amazon because of the harasment :( Jul 21 23:19:47 ah nice Jul 21 23:19:51 that's good news Jul 21 23:19:55 just follow the instructions Jul 21 23:19:57 cool Jul 21 23:20:06 I'm gonna try integrating it in the classes I created for amazon Jul 21 23:20:11 so that I can use the same one just slapped in Jul 21 23:20:11 few months ago they released a new version of the billing API - v3, which has made it really really easy Jul 21 23:20:26 ahh nice Jul 21 23:20:26 I checked it 1 year ago and it was meh Jul 21 23:20:26 but we're ready now Jul 21 23:20:39 Chainfire: and have the docs and examples updated ? Jul 21 23:20:40 yeah it wasn't much fun with the earlier API Jul 21 23:20:42 :) Jul 21 23:20:58 cool, awesome news, happy hehe Jul 21 23:21:00 http://developer.android.com/google/play/billing/index.html Jul 21 23:21:18 seems pretty straight forward Jul 21 23:21:24 the big problem still is Jul 21 23:21:25 no BS receipts and such Jul 21 23:21:38 there is no way to transition from paid, or free+paid app, to free+IAB Jul 21 23:21:48 I talked to some Google guys at I/O about this Jul 21 23:21:50 yeah I noticed that, it's permanant Jul 21 23:22:04 they said "yeah thats true" and "somebody should really fix that" Jul 21 23:22:06 ... Jul 21 23:22:07 wait, I cant take my free apps and convert them free + inapp? Jul 21 23:22:09 I can right? Jul 21 23:22:19 yes you can go from free to free+IAB Jul 21 23:22:21 wow that was a ridiculously stupid answer :( Jul 21 23:22:26 ok cool, scared me for a sec Jul 21 23:22:31 but you cannot go from paid to free+IAB Jul 21 23:22:32 all the apps are out free now Jul 21 23:22:37 theres no way to transition the paid users Jul 21 23:22:38 yeah, I noticed that, when you go free it's permanant Jul 21 23:22:41 same for priced Jul 21 23:22:48 Chainfire huh, didn't know that. i was about to move in that direction - i guess not Jul 21 23:22:50 no way to do free sales, which is a bit stupid if you ask me Jul 21 23:22:56 on iOS, a few times a year, I dump all my games free Jul 21 23:23:07 a LOT of older apps are are a free version, with a paid key, or a pro version etc Jul 21 23:23:14 it doesnt really help with rank directly but it helps because of added fresh reviews Jul 21 23:23:14 they fixed that situation by introducing IAB Jul 21 23:23:20 but never made a transition path from one to the other Jul 21 23:23:24 yeah Jul 21 23:23:35 typical Google Jul 21 23:23:47 google boggles ... Jul 21 23:23:51 I've talked to *so*many* people at I/O who were pissed off about the same damned thing Jul 21 23:23:59 but since i figure they are so msart, i just imagine i'm missing something Jul 21 23:24:06 I even talked to a guy who worked on Play and he just snubbed me about it Jul 21 23:24:07 better than waiting 7 days to update a screenshot on iOS Jul 21 23:24:11 wtf Jul 21 23:24:16 we'd put special screenshots before, when we'd do a sale, not possible anymore Jul 21 23:24:33 you know levelup? they make beautiful widgets Jul 21 23:24:39 some of their devs were up in arms about this thing Jul 21 23:24:41 I've never heard about them Jul 21 23:24:46 but once again - Google just doesn't care Jul 21 23:24:59 Apple doesnt care either, they just do it a bit better right at first Jul 21 23:25:09 google just throws code out there and prays Jul 21 23:25:52 well I don't care much for their products, but they are one of the biggest money makes on Play, so their complaint should count for something Jul 21 23:26:03 thing is, with those huge numbers they make, even if you make them make 2 million a year, you're a drop in the ocean Jul 21 23:26:16 I guess big publishers must get better treatment a bit Jul 21 23:27:23 the idea of having a free version and a paid version is a bit awkward, mostly only a difference in ads Jul 21 23:27:31 imo Jul 21 23:27:56 g00s I also assumed I just wasn't getting it before I/O ... but there really is no transition path that anybody I talked to knew of Jul 21 23:28:57 i would like to seem them improve the beta channel thing; my customers don't want to use google+ or groups Jul 21 23:29:07 just want to give them a link Jul 21 23:29:50 do people actually +1 games? Jul 21 23:29:52 or apps Jul 21 23:29:53 g00s: needs to be backed by some account management and moderation though Jul 21 23:30:00 I'm still new to gplay, haven't seen it Jul 21 23:30:47 StingRay_ i would give betas away for free. pretty common practice Jul 21 23:31:00 I would want the option Jul 21 23:31:03 to control it Jul 21 23:31:16 so yeah, g+ is kinda a good way to do it Jul 21 23:31:39 Squarepy that wholly depends on the app ... there's lots of free/pro combos that are feature based, not ad based Jul 21 23:35:59 $45 android tablet http://www.walmart.com/ip/XELIO-7-Tablet-With-4GB-Memory/23709345 Jul 21 23:46:17 either my google-fu is getting worse O.o or google search results are getting worse Jul 22 00:05:32 Chainfire, some examples? I am not saying it doesn't exist. But when introducing a new feature, I think it is hard to decide when to put it only in the paid version, or whether to update the free one at all Jul 22 00:12:50 any one use andriod studio? Jul 22 00:14:41 codemannew: many do Jul 22 00:14:52 ah im getting more into Jul 22 00:15:13 that im very intereseted cuz in school im just doing visual basic and python etc but yah i want to do apps and stuff Jul 22 00:15:51 I didn't ask :) but good for you Jul 22 00:16:50 yah Jul 22 00:17:08 so im more of a visual learner i like using flow charts and pseudocode Jul 22 00:17:12 and stuff Jul 22 00:17:24 seem my way of learning much better Jul 22 00:18:03 if you think that maybe you should write a book Jul 22 00:18:05 :) Jul 22 00:18:16 hheh Jul 22 00:18:21 "the best way to learn" title jumps out at me Jul 22 00:18:29 haha Jul 22 00:18:38 why u say thag Jul 22 00:18:39 that? Jul 22 00:19:04 have you read many "cognitive learning theory" books ? Jul 22 00:19:58 no why Jul 22 00:20:23 odd that you would be so bold as to say "my way of learning much bette" :) Jul 22 00:21:11 well i usally learn more by looking Jul 22 00:21:21 and im a logic thinker and everything i have visions i see Jul 22 00:21:29 what i would like to make i think we all do Jul 22 00:21:45 its just easier for me to learn using flow charts and psuecode u know Jul 22 00:21:49 neways, back to working for me… Jul 22 00:22:04 okay buddy Jul 22 00:22:09 unless u have a specific question…I'll stick around for Jul 22 00:22:16 unless some1 else answers Jul 22 00:22:30 umm Jul 22 00:22:37 g00s, they're saying that $45 tablet does not have Google Play store etc. Jul 22 00:22:40 do you know where i would look for learning more on devleoping Jul 22 00:22:41 andriod apps Jul 22 00:23:01 http://developer.android.com/training/index.html Jul 22 00:23:03 It probably is ICS code base, but did not run through Google's test base etc. Jul 22 00:23:17 Ologn i still haven't gotten to the bottom of whether play services requires some sort of payment to google Jul 22 00:23:31 g00s, I do not believe it does Jul 22 00:23:39 oh, i'm not so sure Jul 22 00:23:50 g00s: it requires conformity only :) Jul 22 00:24:18 simply bend to google's conditions and take it like a girl, or no play :) Jul 22 00:24:43 thx Jul 22 00:25:15 g00s: there are docs and requirements somewhere that outline it all Jul 22 00:25:27 i have seen the CTS Jul 22 00:25:50 but i remember a while back, somebody complaining tha tgoogle wanted too much money for their services - for his budget tablet Jul 22 00:26:10 i think it was called the AndyPad Jul 22 00:26:48 oh wait, yeah you could be right :) Jul 22 00:27:03 there is a license to pay Jul 22 00:27:05 :) Jul 22 00:27:17 or membership of some sort Jul 22 00:28:25 hi Jul 22 00:28:31 i have a problem Jul 22 00:28:32 http://pastebin.com/PfnnB1Sz Jul 22 00:28:49 the app crash on new FTPClient(); Jul 22 00:28:54 the libs are seen Jul 22 00:29:00 no LogCat Error Jul 22 00:29:01 : Jul 22 00:29:02 | Jul 22 00:29:03 Yaa...reading this over, it looks like what is free is testing for device compatibility Jul 22 00:29:07 what to do? Jul 22 00:29:20 Once that is established, then you can talk to Google about licensing Play, Maps etc. Jul 22 00:33:45 and then you have to pay microsoft too :D Jul 22 00:34:07 i wonder what will happen with ubuntu phone in that regard Jul 22 00:34:25 or even ffos, isn't that just linux underneath too? Jul 22 00:43:22 is andriod dev when you creat apps it just regular java not java script right Jul 22 00:43:26 because im using andriod studio Jul 22 00:47:15 codemannew: maybe you should read about it :) Jul 22 00:47:58 They talk about this tablet http://www.walmart.com/ip/Ematic-7-Tablet-with-4GB-Memory-and-Google-Mobile-Services/23350692 Jul 22 00:48:00 yeah ur right Jul 22 00:48:04 and idk cala Jul 22 00:48:11 scala what the heck is that man Jul 22 00:48:27 That tablet is $59.99. Seven inches, has Google Play etc. Jul 22 00:48:31 codemannew: I really think google searches are best for those questions Jul 22 00:48:53 when you have some developement specific questions, or things that can be found in a 5 second search Jul 22 00:48:57 come ask here :) Jul 22 00:49:00 Hi Jul 22 00:49:11 can't* Jul 22 00:49:15 I have a problem Jul 22 00:49:33 I make changes on most all of a layout widgets, programmatically Jul 22 00:49:52 but changes are not shown until I go back and go to the activity again Jul 22 00:50:10 is there any refresh method? Jul 22 00:50:38 acuarium: http://developer.android.com/guide/topics/ui/how-android-draws.html Jul 22 00:51:48 StingRay_: Ah! Thanks! So, I should call .invalidate() for each widget? (there are imageview and textview) Jul 22 00:52:05 well i linked you that page cause it's generic Jul 22 00:52:13 you have not said what changes you wish to reflect Jul 22 00:52:19 layoutParams ? states ? Jul 22 00:52:34 I am changin imageview images and textview texts Jul 22 00:52:36 jasta by any chance, have any recommendations for all-java k/v store that works nice with android ? Jul 22 00:52:37 that's all Jul 22 00:52:52 acuarium: still not answered Jul 22 00:52:53 so sting Jul 22 00:52:58 state then Jul 22 00:52:59 ? Jul 22 00:52:59 how long long u been making a`ndriod apps Jul 22 00:53:00 buddy Jul 22 00:53:31 StingRay_: build a generic layout in XML, and programmatically I need to change its images and texts Jul 22 00:53:31 codemannew: 1.7 years been playing with android Jul 22 00:54:31 wow Jul 22 00:54:39 my man Jul 22 00:55:07 StingRay_: did I answer your question? Jul 22 00:55:27 acuarium: and what is not working ? Jul 22 00:56:15 In the code, I make all the changes I need, but I don't see the changes happening until I press back and go to the activity again Jul 22 00:56:29 when I get again into the activity the changes are shown Jul 22 00:56:43 where are you changing them ? Jul 22 00:56:44 and how ? Jul 22 00:57:25 imageview and textview Jul 22 00:57:36 windDirection.setImageResource(R.drawable.se); Jul 22 00:57:38 for example Jul 22 00:57:54 and waterTemperature.setText(String.valueOf(waterTempInt) + " ÂşC"); Jul 22 00:59:11 StingRay_: any clue? Jul 22 00:59:21 under normal circumstances that should be fine Jul 22 00:59:29 so you must be doing something else Jul 22 01:00:00 it is happening in an asynctask Jul 22 01:00:28 in onPostExecute ? Jul 22 01:00:53 no, doinbackground Jul 22 01:01:17 inside a try/catch ? Jul 22 01:01:29 cause you can touch the UI in doInBackground Jul 22 01:01:41 yes Jul 22 01:01:53 take it out of the try catch Jul 22 01:01:55 inside a try Jul 22 01:01:57 then look at the error Jul 22 01:02:00 :) Jul 22 01:02:14 doInBackgound is off the UI thread Jul 22 01:02:21 so it cant "touch" views Jul 22 01:02:41 but why when I leave and come back to the activity it changed? Jul 22 01:03:15 cause it probably can update either the references or states, but not reflect them…. maybe Jul 22 01:03:32 but neways, onPostExecute and onPreExecute are for UI touching Jul 22 01:04:07 ya i need to leanr Jul 22 01:04:07 java fast i know visual basic but i need java Jul 22 01:04:18 ok Jul 22 01:04:33 StingRay_: is there a method to just make all these changes efective? Jul 22 01:04:46 something I can use in onpostexecute without refactoring the code Jul 22 01:04:56 well you could invalidate() in onPostExecture Jul 22 01:05:01 execute* Jul 22 01:05:13 but you may as well just set the data in there instead Jul 22 01:05:59 ahm ... and how can I invalidate all the views? Jul 22 01:06:26 well… just set the data in onPostExecute Jul 22 01:06:29 it's easier Jul 22 01:06:36 and actually what you should be doing Jul 22 01:06:42 but... Jul 22 01:06:47 myView.invalidate(); Jul 22 01:06:47 u know alot Jul 22 01:06:49 sting dang Jul 22 01:07:19 codemannew: not really, to give you an indication, I know about 10% of what some of the others do in this channel Jul 22 01:07:30 does anyone have a link to a working example of fragments, that uses the support.v4 libraries? I don't want a tutorial, I'm looking for some code that will run and that I can play around with Jul 22 01:07:40 but I'm sure I'm the bestest at 3D graphics Film/Game CG Jul 22 01:07:43 :) Jul 22 01:08:30 freshprince: you could have learned and written the basics 30 times over by now :) Jul 22 01:09:01 also there are a few ways to use fragments in an app Jul 22 01:09:12 so, depends what you want to do, and how you plan to do it Jul 22 01:10:15 what Jul 22 01:10:17 stingiigigning Jul 22 01:10:17 wow Jul 22 01:10:19 I disagree... I tried following that tutorial link you gave me, and it started building off of the other earlier tutorials. I read them 3 weeks ago, and I'm looking for some code to play with, not to go and spend a few hours re-learning the intricacies of the earlier lessons Jul 22 01:10:23 3d grapix and flim, game cg Jul 22 01:10:45 freshprince: what exactly are you stuck with ? Jul 22 01:11:10 cause if your not at the part where you can actually define that, you need to re-learn Jul 22 01:11:20 in my humble opinion neways Jul 22 01:12:14 have you never started a project by playing around with some code? i dont understand why I should have to read through dozens of pages worth of information before I can get a small app to run Jul 22 01:12:44 you dont, you write like 20 lines Jul 22 01:12:47 all my games started that way freshprince Jul 22 01:12:53 and I finished most of them Jul 22 01:12:58 or plan to Jul 22 01:13:02 started what way? Jul 22 01:13:06 by just playing with an idea Jul 22 01:13:16 right into code, head first Jul 22 01:13:27 StingRay_: many thanks, I will take your advice Jul 22 01:13:50 StingRay_: is there a place I could find those 20 lines in one place, without having to read tons of stuff in between? is that too much to ask? I plan on getting the app to run, and then tinkering and getting it to do what i want Jul 22 01:14:21 freshprince: have you got any app to run yet ? Jul 22 01:14:25 that you have coded ? Jul 22 01:14:49 only the myfirstapp example, where you enter text and then hit a button and it shows up Jul 22 01:15:09 so why not use that ? Jul 22 01:15:30 hours and hours and days of learning is the base of programming Jul 22 01:15:31 it's what makes us valuable, to be able to learn that shit Jul 22 01:15:41 do you know what a fragment is ? and how it's used/best applied ? Jul 22 01:15:53 i understand it, I've played around and changed it up a bit, added different buttons and formatting and whatever. i understand the tutorials. I don't use that, because the tutorial that I'm really trying to get working, http://developer.android.com/training/contacts-provider/retrieve-names.html builds off of support.v4 ragment libraries Jul 22 01:16:07 which the documentation doesnt provide any tutorial for, let alone any example code to run Jul 22 01:16:51 freshprince: ok well that page you links is not a good place to JUMP to Jul 22 01:16:56 if you want to learn Jul 22 01:17:05 it introduces too many concepts and elements Jul 22 01:17:30 fragments, loaders, cursors, content providers etc Jul 22 01:17:36 QcMat i don't disagree with you, I'm a professional programmer. I just know that if I was trying a new php concept, I could find 100s of example pieces of code to run. I cant find any working examples of JUST some fragments Jul 22 01:17:43 it is probably the reason your in trouble'ish Jul 22 01:18:09 not some rss parsing library thrown in as well, not 8 different ApiDemo apps built in, JUST fragment usage, so that I can build in the other functionality I'm looking at Jul 22 01:18:09 oh yeah for sure, I assumed you were just new at programming altogether (dont take it bad, I didnt read up much, I dont know you) hehe Jul 22 01:18:19 i don't generally bother with example code unless the API is particularly obtuse Jul 22 01:18:40 (see: Volume Shadow Service) Jul 22 01:19:56 StingRay_: I understand most, if not all, of the concepts on that page. I've got a notebook here with pages of notes I've written down. I've created dozens of web apps in PHP that utilize a database, I understand the database concepts completely, its just getting that stuff into a fragment that is killing me Jul 22 01:20:34 freshprince: I think you maybe over thinking it then Jul 22 01:20:38 i suppose rather than learn how to utilize fragments, I will just go ahead and look at their code and run it in an activity Jul 22 01:20:42 cause if you read and understand that page I linked Jul 22 01:20:44 i was trying for best practices but fuck it Jul 22 01:20:56 should take a few mintues to implement a few fragments Jul 22 01:21:33 depends if you want dynamic fragments or just static Jul 22 01:21:47 code or xml etc Jul 22 01:22:09 although never even read on xml based fragment creation Jul 22 01:22:19 let alone wanted to use it Jul 22 01:22:21 dude I would pay you to write out some fragment code for me if you could. I'm guessing dynamic because it pulls from the contacts database Jul 22 01:22:27 if I* could Jul 22 01:22:53 dynamic creation Jul 22 01:22:56 not function Jul 22 01:23:07 i think i just need to shelve the idea of learning them until after I've got something working with activities and the contacts stuff, that i'm actually interested in Jul 22 01:23:08 a static xml created fragment can do what you want Jul 22 01:23:37 well if you can do it in an activity, then yes you do Jul 22 01:39:24 im here cause i have no where ele to go ;( Jul 22 01:40:54 I dont class this as a destination, so I'm not even… here :) Jul 22 01:42:22 I dont even know why i joined the chat :P im playing cod... just want to see if any interesting convos come up i guess Jul 22 02:24:58 huh, i was hoping there was a way to use sqlite3_create_function like on iOS Jul 22 02:25:08 everything on android is such a pita Jul 22 02:25:59 g00s, NDK Jul 22 02:26:06 I'm not sure you can use sqllite iwth it thoufgh Jul 22 02:26:19 QcMat i dont think its possible, based on what people have said Jul 22 02:26:24 that sucks Jul 22 02:26:39 I used NDK to port my games, it went well overall Jul 22 02:26:51 I like sqllite on ios though, that's a shame you cant use it Jul 22 02:27:13 yeah, i hear bad things about core data often Jul 22 02:27:29 i'm perfectly fine using dqlite from c Jul 22 02:27:34 *sqlite Jul 22 02:27:45 now, when sqite 4 comes out, we can easily use that on iOS too Jul 22 02:27:58 I dont use core data, because it's easier for me to just use sqllite in C Jul 22 02:28:00 with good old sql Jul 22 02:28:09 yeah Jul 22 02:28:21 on iphonedev, so much coredata questions that sound like its shit to use Jul 22 02:28:52 yeah, i see some of the regulars really disloike it Jul 22 02:30:04 QcMat you said above you have a few games for each platform ? Jul 22 02:30:29 each, you mean ios and gplay? Jul 22 02:30:34 yeah Jul 22 02:30:39 I have some on ios, gplay and android Jul 22 02:30:46 I use cocos2d-x, it makes all that pretty simple Jul 22 02:30:58 do you use lua in any of them by any chance (for scripting) ? Jul 22 02:31:08 no, but I do plan to check it out sometime Jul 22 02:31:30 I'm working on a platformer, and i'd love to add some scripting for enemy behaviors, etc Jul 22 02:31:37 to be able to patch the game really well externally Jul 22 02:32:34 sounds nice Jul 22 02:41:47 how does display timeout works? Jul 22 02:41:59 how does android determine that there is no activity Jul 22 02:44:46 nobody holding a wake lock and no screen touches Jul 22 02:46:04 when i do /sys/power/wake_lock ; i see so many process were holding wakelocks Jul 22 02:46:27 JakeWharton: this check is done in the user space? Jul 22 02:46:37 can you point me to the code Jul 22 02:47:32 i think it would be kernel, not user Jul 22 02:48:36 so who does android determine noone is doing work Jul 22 02:48:47 the display timeout is for the touch screen Jul 22 02:57:44 Has anyone here ever had trouble clearing hardware-accelerated canvases of any kind (whether native or HTML5)? Jul 22 02:58:41 dunno about HTML5 Jul 22 02:58:48 thats a web thing Jul 22 02:58:59 not had any probs with android though Jul 22 02:59:16 hey, anyone use the todo system in android studio? Jul 22 02:59:20 im trying to figure out how it works Jul 22 02:59:29 google is not being friendly though, probably not using the right search terms **** ENDING LOGGING AT Mon Jul 22 02:59:58 2013