**** BEGIN LOGGING AT Mon Dec 09 02:59:58 2013 Dec 09 03:08:49 alex_PP: YAHOOO! it works now! thx sooo much, bro! Dec 09 03:09:02 Hello I am trying to use a handler with threads to do intensive work off the main thread and then notify the handler with a message to update, however when I declare the handler it says it can cause a memory leak due to the messages not handled when the activity closes. I don't want to use a static handler because I have several data sets that will use the handle message function, and want scalability in the future (without having to Dec 09 03:09:02 add the type of data set to the handler messaging behavior). Can I just be sure to removemessages and set the handler to null in onDestory? Dec 09 03:09:17 *when i declare the handler as an inner class Dec 09 03:12:28 no worries Dec 09 03:13:10 lasserix, how is your handler defined? Dec 09 03:13:34 just Handler handler = new Handler { @Override handleMessage(msg) } as of now, Dec 09 03:13:39 as an innner class Dec 09 03:14:01 that inner class holds an invisible reference to your activity Dec 09 03:14:09 right Dec 09 03:14:30 is there a way I can just dereference it by removingMessages / setting the handler to null in onDestroy? Dec 09 03:14:35 anything background that holds a freference to your handelr also holds a ref to your whole activuty & all the views Dec 09 03:14:37 etc. Dec 09 03:15:01 declare the handler as its own class or a static inner class Dec 09 03:15:11 it's easier to see what's going on then Dec 09 03:15:28 then be sure to clean up any refs that you don't need Dec 09 03:15:40 i need my android copy my email to sd card. so i tried aqua mail but it doesn't do this. do you know any mail program copying emails to sd card for android with signature support ? Dec 09 03:15:54 ahh so I can just define it as its own class, then pass in the object that the handle message will use to do the operations i need? Dec 09 03:16:04 i like weakreernce for this Dec 09 03:16:26 kansai: this channel is for app development, not finding new apps. Dec 09 03:16:26 kansai, see #android Dec 09 03:16:49 lasserix, that would be a good way, yeah Dec 09 03:16:52 lol #android says go to see #android-dev Dec 09 03:17:08 they're wrong Dec 09 03:17:15 alex_PP does that mean if i have a inner sqlitelite helper class, in addition to calling close methods, i should also derefrence it in on destory? Dec 09 03:17:18 lasserix you can use .removeCallbacksAndMessages(null) Dec 09 03:17:21 we could help you write your own app to copy email if you'd like Dec 09 03:17:36 but if your producer thread is still putting stuff on the handler ... Dec 09 03:17:56 sure alex_PP Dec 09 03:18:07 g00s: I have a check to do interreuptRequest to cancel the thread, in which case it won't post anymore Dec 09 03:18:08 hmm Dec 09 03:18:15 help me if possible Dec 09 03:18:41 ok, ever written an android app of any kind before? Dec 09 03:18:54 unfortunately no Dec 09 03:19:25 if u direct me to any source ..welcome Dec 09 03:19:47 ok, your best bet is to find an app that does what you want then, i was just trying to describe what this channel was fro better Dec 09 03:20:07 you could sstart by going through the tutorials on d.android.com Dec 09 03:20:42 https://developer.android.com/training/index.html Dec 09 03:21:27 If an inner class can hold a reference to its outerclass, does this mean I need to dereference, say an inner class extending SqliteOpenHelper, in the activity's onDestory as well? (in addition to closing out the databases) Dec 09 03:21:38 alex_PP: its gonna be a tough bet .P Dec 09 03:21:54 lasserix: What do you mean by "dereference?" Dec 09 03:22:08 set it to null? Dec 09 03:22:17 if nothing else holds a reference to the open helper, then it's not an issue Dec 09 03:22:26 I'm pretty sure the GC handles circular references. Dec 09 03:22:39 ahh i see its just the pending messages that hold the holder thats beholden to the mainlooper Dec 09 03:22:41 thanks! Dec 09 03:23:13 just make sure that nothing static or in its own thread has a reference to anything that has a reference to anything short lived, like activity Dec 09 03:23:40 inline calsses are best used for click handlers and the like Dec 09 03:23:43 simple stuff Dec 09 03:23:52 right Dec 09 03:23:53 cool Dec 09 03:24:15 *classes Dec 09 03:27:08 alex_PP: does sedo parking pay for xxx domain ? if they pay how much for how many hit for ?? Dec 09 03:27:36 que? Dec 09 03:28:14 what is que Dec 09 03:29:23 ha ha Dec 09 03:29:35 que is what (in spanish) Dec 09 03:29:54 Anyone know if setting activity instance to singleTop will void callbacks on the physical search button if i am registering the same activity for the intent filter of ONLONGPRESSEARCH? Dec 09 03:29:58 i thought everyone in the world would know that haha Dec 09 03:30:58 bankai that @ me? Dec 09 03:31:05 no lol Dec 09 03:31:09 :) Dec 09 03:43:48 hey guys anyone up to help me out? Dec 09 03:44:11 trying to get my opengl es activity to respond to touch Dec 09 03:44:20 can't seem to get it to do what i want Dec 09 03:49:22 TacticalMind are you using dev guide ? Dec 09 03:49:37 you listen for touch on main UI then have to post response on glthread Dec 09 03:49:49 ye, i tried overriding the onTouchEvent like they suggested but still nothing Dec 09 03:50:04 set an onTouchListener on your glview Dec 09 03:50:13 hmmm interesting Dec 09 03:50:18 yeah that's how you do it Dec 09 03:50:44 also I recomend, if you are making a game or something, to use something like this http://www.rbgrn.net/content/342-using-input-pipelines-your-android-game?page=1 Dec 09 03:50:58 alright thanks a bunch i'll give it a shot Dec 09 03:51:17 Anyone know why http://pastebin.com/iQVEm78h this would not trigger the activity to show up in the event of the user long pressing the physical search button? Dec 09 03:52:11 How can I get showcaseView on android versions lower than 4.0? Dec 09 04:14:05 if I have a database with different tables, where CRUD operations on any one table are always called independently (one table will never change another table) of eachother (from different threads), can I safely just use local getWritableDatabase? Dec 09 04:14:17 (i know this should be a private content provider but got enough to do already :) Dec 09 04:20:08 sure Dec 09 04:20:44 just make the openhelper a singleton Dec 09 04:21:08 its typically best tho to perform all writes on the same thread Dec 09 04:21:38 according to the sqlite guys ;) Dec 09 04:22:28 make the openhelper a singleton and then do an interface for CRUD operations per table? Dec 09 04:23:54 sure. each time you call getWriteableDatabase, it will dish out the same one anyhow Dec 09 04:24:13 * g00s is just reading http://slashdot.org/topic/bi/why-reactive-programming-for-databases-is-awesome/ Dec 09 04:25:46 Ahh cool, thanks. I can appear a little more competent to my coworkers tomorow ;p Dec 09 04:31:20 okay i still can't seem to get this to work Dec 09 04:31:37 i know i'm probably making a stupid mistake but could any of you help me out? Dec 09 04:32:36 in my on touch event, i increment a variable known as state by 1 and then in the renderer class in the ondrawframe method i use the state variable to translate my drawing Dec 09 04:32:44 however it doesn't move the drawing at all Dec 09 04:43:11 hello Dec 09 04:45:20 TacticalMind are you reseting your mvp matrix? Dec 09 04:45:37 are you sure that the integer is on your glthread is reflecting the incremented value on the main thread? Dec 09 04:47:56 im sure Dec 09 04:48:15 umm.. how would i write to /system/app in an avd? Dec 09 04:48:43 i have remounted /system as rw, but when i try to adb push to /system/app, it says Out of memory Dec 09 04:52:42 did you granted root permission? Dec 09 04:53:59 try this, Dec 09 04:55:00 1. write on your avd's sd card Dec 09 04:55:21 JackYoun, ok. i can push to /data Dec 09 04:56:04 2. cat /sdcard/A .apk > /system/app/A.apk Dec 09 04:57:16 interesting.. lemme try this.. cos mount certainly says /system is mounted rw Dec 09 04:57:35 rw remount before step 2 Dec 09 04:57:49 yeah Dec 09 04:57:50 and ro remount after step 2 Dec 09 05:23:27 Hi, I try to use opengl-es in my android application, so I wonder if I have to learn opengl first? If so, how to learn opengl? It seems that the opengl have lots of language bindings, but I am just familar with java. Any suggestion? Dec 09 05:31:09 how can you test native code on android? Dec 09 05:31:58 say you have some test cases written in C++. How can I run them to make sure the different platform didn't create any bugs? Dec 09 05:43:51 i just discovered voice search for chrome on the PC Dec 09 05:44:07 it's blazingly fast compared to the phone Dec 09 05:44:26 i f'ing hate voice searches/functionality Dec 09 05:44:27 i don't think i'll take my microphone off Dec 09 05:47:26 Hello? Dec 09 05:47:36 hello can you hear me Dec 09 05:47:39 yes Dec 09 05:47:46 great i can hear you too Dec 09 05:48:01 awesome. Im looking for help for a possible bricked GS4 Dec 09 05:48:51 zackgoofed: you may want #android-root Dec 09 05:49:06 ill check there, thanks seand Dec 09 05:51:36 it'd be cool if we had say ... a topic for the channel that would give users information about this channel and channels like it Dec 09 05:53:13 that would be cool ... Dec 09 05:53:33 you what would be cool is if youtube had voice search too Dec 09 05:53:55 what would be cool would be if google search showed relevant results Dec 09 05:54:03 does it not? Dec 09 05:54:33 try looking for articles about 'sound in a library' Dec 09 05:54:41 i keep getting stuff like itunes Dec 09 05:54:52 although i mean public institution : library Dec 09 05:55:02 and the top 80% of the page is ads Dec 09 05:55:16 yeah, google search hasn't really progressed in like 10 years, imho Dec 09 05:55:30 thats why i usually use duckduckgo, just as ineffective Dec 09 05:58:58 Hi, last week I set up egit and used eclipse to push the android app i'm developing to github... no issues there Dec 09 05:59:28 i've since rebooted the computer though, and under the Team Synchronisation tab in eclipse I can't see the list of files which have changed since I last pushed to github Dec 09 05:59:40 does anyone know what I need to do to get that list back? Dec 09 06:01:22 How to use Madiastore.EXTRA_SIZE_LIMIT? Dec 09 06:01:22 ir7466 maybe under Views -> Windows -> Other or something like that ? Dec 09 06:01:30 Why does Android docs sucks so much? :( Dec 09 06:01:35 http://developer.android.com/reference/android/provider/MediaStore.html#EXTRA_SIZE_LIMIT Dec 09 06:01:41 there is nothing informative Dec 09 06:02:21 thanks g00s - I can see the Team Synchronisation perspective okay... but it says "Tasks -> Local", not the list of files that has changed Dec 09 06:02:50 I'm just wondering what I need to do in order to see that list again Dec 09 06:04:00 napster most of the documentation is pretty good Dec 09 06:04:09 What happens in I do "Team -> Synchronise Workspace" to the project? (I'm just asking in case it pulls and overwrites or something crazy, I don't want to overwrite my changes!!) Dec 09 06:04:28 seand: hmm, while some are not. Dec 09 06:04:43 napster: that's what stackoverflow is for Dec 09 06:04:55 seand: LOL :D Dec 09 06:05:27 napster: i'm serious. documentation isn't going to be perfect, and that's exactly why stackoverflow was created Dec 09 06:06:15 seand: ok, I used to depend largely on the inline documentation. Anyway, no problem, thanks mate. Dec 09 06:08:09 one other question, is it possible to assign the same ID to multiple controls? Dec 09 06:09:00 Anyone know if I can from a cursor select some columns and do batch insertion into an sqlite table? Dec 09 06:09:23 here is the situation, I have a linear layout control that has two buttons side by side in portrait mode Dec 09 06:09:26 ir7466, they have to be unique within a layout file Dec 09 06:09:29 afaik Dec 09 06:10:01 in landscape, it contains a third button Dec 09 06:10:16 that third button is part of a different linear layout in portrait mode Dec 09 06:10:48 essentially, it always needs to be there. so if I hide the linear layout in portrait it will still be there, but in landscape it will be hidden with the other buttons. does that make sense? Dec 09 06:13:52 ok.... a different approach then. is it possible to hide a parent linear layout, but have a child linear layout still be visible? Dec 09 06:15:04 ir7466, why don't you just give them different ids but the same functionality in code Dec 09 06:15:26 how do you mean? Dec 09 06:16:02 if I give them different ids between the landscape/portrait res files, then when I change the orientation of the mobile the app will crash because an id is not present Dec 09 06:16:09 ir7466, as i understand it you have 2 buttons which are essentially the same button, just in different places in the layout which is used to display it differently in portrait and landscape Dec 09 06:16:50 how is the id not present, i thought one layout was hidden when in portrait and the other hidden in landscape? Dec 09 06:17:16 I have three buttons... Previous, Next and Edit.... Edit always needs to be there Dec 09 06:17:41 Previous and Next don't have to be, it's dependent on how many things were selected at an early stage in the program Dec 09 06:17:59 In portrait mode, Previous/Next are both in the same linear layout (say id "test1") Dec 09 06:18:08 Edit is elsewhere Dec 09 06:18:29 However, in landscape, all three of them are in the same linear layout (in a row, horizontally) in order to save space Dec 09 06:19:09 So if I hide the linear layout, then the Edit button is potentially hidden as well if the user goes into landscape Dec 09 06:19:54 I'm not sure how I go about keeping the layout the same, but allow the Edit button to remain in landscape if the linear layout it is in is hidden Dec 09 06:20:26 i can't visualize that without seeing some xml Dec 09 06:20:35 or a drawing or something Dec 09 06:20:51 ok, no problem, i'll paste it to pastebin Dec 09 06:20:54 one minute Dec 09 06:22:25 Portrait: http://pastebin.ca/2494906 Dec 09 06:24:07 landscape: http://pastebin.ca/2494912 Dec 09 06:24:35 it's the style="@style/Button_Edit" button that needs to be ever-present Dec 09 06:25:53 so these are separate files, one of which gets inflated in the activity/fragment? Dec 09 06:26:14 i've got the landscape one in the the layout-land directory Dec 09 06:26:24 so when you tilt the screen it just automatically loads Dec 09 06:26:36 yeah, so you can definitely use the same id for the button Dec 09 06:26:56 the layouts aren't inflated at the same time so there's no collision Dec 09 06:27:23 the problem I have though, is that the edit button is hidden as well when you are in landscape Dec 09 06:27:32 (potentially) Dec 09 06:28:00 Anyone know if there is a handy way to remove app data on deploy so i dont have to navigate settings>apps>myapp>cleardata everytime? Dec 09 06:28:11 ir7466: why is it hidden? Dec 09 06:28:58 lasserix: delete the app? Dec 09 06:29:07 actually that won't do it Dec 09 06:29:08 in the java code, if a certain condition is met then the previous/next buttons dont need to be shown Dec 09 06:29:15 oh crap this is android, sorry Dec 09 06:29:16 so it hides the linear layout Dec 09 06:29:29 which is okay for portrait, because the Edit button is in another linear layout Dec 09 06:29:31 but that's the same thing since i have to navigate to the app settings details creen anyways Dec 09 06:29:54 but for landscape, it's in the same one as the next/previous buttons... so it gets hidden too. this is my issue. Dec 09 06:30:50 ir7466: so put it in its own linearlayout, or just hide the next/prev buttons? Dec 09 06:31:28 how should I open ext4 formatted SD card in my Samsung tab2 tablet .. when I am inserting sd card it is showing "SD card is blank or has an unsupported file system" Dec 09 06:32:41 seand, if I hide just the next/prev buttons will the Edit button take up full space? Dec 09 06:33:14 ir7466: if you set the visibility to hidden the buttons will still take up space. if you set it to gone then they are removed from the layout Dec 09 06:33:33 ir7466: think visibility: hidden vs display: none in CSS, same concept Dec 09 06:33:53 ok. so you think the smartest move is to make both of the buttons hidden Dec 09 06:33:57 rather than the linear layout? Dec 09 06:34:21 ir7466: yeah, or maybe you could disable them? Dec 09 06:34:30 okay, i'll give that a crack Dec 09 06:34:34 thanks for your help Dec 09 06:34:37 I appreciate it Dec 09 06:34:38 sure Dec 09 06:43:20 lasserix: I uninstall the app as with adb through the deploy script. Eclipse used to have an option to uninstall the app before deploying as well, not sure if Android Studio has it as well Dec 09 06:43:37 ahhthanks Dec 09 06:44:53 there's also 'adb shell pm clea ' if you don't want to fully uninstall Dec 09 06:45:08 i thought it was pm -r or something Dec 09 06:45:28 could be, never actually used it Dec 09 07:13:08 how should I open ext4 formatted SD card in my Samsung tab2 tablet .. when I am inserting sd card it is showing "SD card is blank or has an unsupported file system Dec 09 07:13:21 singh_abhinav see topic, thanks ;) Dec 09 07:17:18 Hi, quick question... what is the flow of events when android orientation changes. at what point does onResume get loaded? Dec 09 07:18:54 before or after onConfigurationChanged? Dec 09 07:27:27 it doesn't Dec 09 07:27:34 i recomend you Dec 09 07:27:38 make a dummy android project Dec 09 07:27:49 override all the lifecycle callbacks you think you care about Dec 09 07:27:53 then develop a sheet Dec 09 07:27:59 of what happens when you press each thing Dec 09 07:28:14 ie, what happens when you install it and start it, what happens when you swipe it off the recents Dec 09 07:28:20 etc etc Dec 09 07:29:48 here's what i made yesterday: http://pastebin.com/sPupijdi Dec 09 07:29:53 i'm assuming it'll work for you Dec 09 07:30:00 but there are no garuntees :) Dec 09 07:30:20 oh note that i have configuratestate retained for most all the options Dec 09 07:30:34 if i rem correctly rotating in config change ONLY calls onConfig changed Dec 09 07:30:58 since the whole point is it is not supposed to do a lifecycle transition for the given config flag Dec 09 07:50:20 So... if according to AOSP Code Style guidelines you may do "if (x) y;" (if short) but absolutely not "if (x)\n\ty;", why does the AOSP code formatter turn the former into the latter ? Dec 09 07:51:50 Hi.... a question. When I push to github using egit, how do I get all of the git information to persit. It's asking me to put in the git repo, my username and password, etc all over again even though I pushed it before Dec 09 07:52:20 surely i don't have to enter all that info each time. does "Store in Secure Store" solve this problem? Dec 09 07:52:31 this is #android-dev ... Dec 09 07:53:15 this is sparta ! Dec 09 07:53:32 bankai_: have you ever been in #eclipse before!?! Dec 09 07:53:44 oh gawd.... don't swear please ... Dec 09 07:54:30 eclipse is a bad word around here? Dec 09 07:54:38 what do you guys use for development Dec 09 07:54:55 most people use dd and cat Dec 09 07:55:27 what is dd? Dec 09 07:55:31 ir7466 I don't know why it isn't persisting for you, but it works for me, and I'm pretty sure I didn't have to do anythign weird to keep it working Dec 09 07:55:42 ir7466 save youself a headache and just use console Dec 09 07:55:54 for development? are you kidding? Dec 09 07:55:57 the egit gave me nothing but problems Dec 09 07:55:59 yeah Dec 09 07:56:10 just use git from the command line ;) Dec 09 07:56:14 oh sorry, I thought you meant for actual development Dec 09 07:56:20 must be user error. have been using it for ages without any issues whatsoever :P Dec 09 07:56:21 i edit in eclipse but then do git in cmd line Dec 09 07:56:21 (lies) Dec 09 07:56:42 doesn't eclipse do git? Dec 09 07:56:43 Chainfire: maybe, but i had to work with a repo on bitbucket and egit was having all kinds of problems Dec 09 07:56:53 bankai-> egit Dec 09 07:57:27 * bankai_ goes back to intellij ... much easier Dec 09 07:57:46 i think the best is probably just vim tbh Dec 09 07:57:47 Chainfire: I tried clicking the Store in Secure Store option, hopefully that's all it was Dec 09 07:57:52 we'll see next time :) Dec 09 07:58:09 bankai_: do you know what the status of android studio is? Dec 09 07:58:18 its pretty good Dec 09 07:58:20 i don't give a crap, IJ works :) Dec 09 07:58:43 I tried to get AS up and running a while ago, had all sorts of problems. i guess to be expected from pre beta software Dec 09 07:58:46 bankai: yeah i think that is the golden rule: go with what works, if you have time figure out what might work better ;p Dec 09 07:58:53 it's come a long way since the first few releases Dec 09 07:58:57 yeah same here Dec 09 07:59:03 and I didn't much like AS' project management Dec 09 07:59:21 yeah i like eclipse workspace Dec 09 07:59:29 I like 20 projects in a single workspace. lets me quickly reference how I solved issues in different projects Dec 09 07:59:30 multiple projects Dec 09 07:59:55 has there been any indication when an official release will be? Dec 09 08:00:06 I decided I'd use eclipse until AS is stable Dec 09 08:00:23 IJ 13 is more or less AS now, just with a bit more fun attached Dec 09 08:00:24 no … but now that 13 CE is out, i bet once they merge in that build it will be pretty good Dec 09 08:00:43 or you could use 13 CE but have some older android plugin code (ugh) Dec 09 08:00:48 there was some thing that kept causing me grief Dec 09 08:00:50 gridle? Dec 09 08:00:53 or something like that Dec 09 08:00:58 yes, the fridle :D Dec 09 08:01:13 is that fixed now? Dec 09 08:01:14 haha Dec 09 08:01:22 gradle Dec 09 08:01:25 i think it was Dec 09 08:01:28 AS doesn't really cause much trouble; but if gradle craps out and you can't build, you are screwed Dec 09 08:01:49 anyone know of a reason why .gitattributes shouldn't be used to prevent EOL issues between Linux and Windows users by forcing .c*/.h/.java/.xml files to LF EOL ? Seems like a good solution to me but it doesn't seem to be used anywhere by anyone Dec 09 08:02:33 i thought .gitattributes was the new way of specifying that Dec 09 08:02:48 people are still using the old way i guess ;) Dec 09 08:02:57 git 2 will be out soon Dec 09 08:02:57 Chainfire, I have one more question which you might know the answer to Dec 09 08:03:05 I have /bin in the .gitignore file Dec 09 08:03:13 but /bin still got pushed to github Dec 09 08:03:29 ir7466 use bin/ instead of /bin in .gitignore Dec 09 08:03:36 g00s oh this is a new feature? Dec 09 08:03:48 ah Dec 09 08:03:53 hi, anyone here use RxJava ? .gitattributes replaced the older system Dec 09 08:03:57 oops, ugh Dec 09 08:04:03 out of interest, what will happen on my repo once I change it? Dec 09 08:04:07 because it's already there now Dec 09 08:04:15 presumably it won't automatically delete? Dec 09 08:04:21 damn, wish this irc client would not share input box contents between channels Dec 09 08:04:23 we ran into an issue re: EOL in the past few days and found .gitattributes as a possible solution on StackOverflow, wondered why it was relatively unknown Dec 09 08:04:35 its newish Dec 09 08:04:40 yeah now we all know you're an RxJava n00b ;) Dec 09 08:04:53 we will tell the internet. Dec 09 08:05:10 i'm using RxJava, lots of fun … but groubBy is making my head explode Dec 09 08:05:34 https://github.com/Netflix/RxJava/wiki/Transforming-Observables#groupby-and-groupbyuntil Dec 09 08:05:47 i was about to ask that in #java but it went here by mistake Dec 09 08:07:40 looks interesting Dec 09 08:08:12 its a nice library and idea Dec 09 08:08:49 idea came from MS; Eric Meijer Dec 09 08:25:40 Eric Meijer is no longer at MS though Dec 09 08:25:57 huh Dec 09 08:26:09 he left to teach or something Dec 09 08:26:23 probably the Rx course at Coursera Dec 09 08:26:27 withe scala guy Dec 09 08:27:18 https://www.coursera.org/course/reactive Dec 09 08:27:49 at this company now http://www.applied-duality.com/ Dec 09 09:01:30 If I want to use wifi direct api to setup an http server. would it be possible for more than one client to connect this server simultaniously? Dec 09 09:03:31 or is it like when the first client is connected to my wifi direct spot the whole interface is hooked and no one can discover the ssid now? Dec 09 09:07:02 This is a noob question, but if I call the constructor of the superclass in the superclass constructor will this refer to the subclass? Dec 09 09:08:24 lasserix, pardon? Dec 09 09:08:45 they chain up all the way to Object Dec 09 09:09:39 MyActivity() calls android.app.Activity() calls Object() Dec 09 09:09:59 Umm let me rephrase, so in some subclass constructor i call super(somearguement) in that superclass constructor i do initializeSomeOtherObject(this) Dec 09 09:10:06 the this will refer to the subclass? Dec 09 09:10:17 yes Dec 09 09:10:27 thought so just tired thanks :) Dec 09 09:10:43 Hey guys! Any ideas on why could SQLiteDatabase#execSQL will only create the first table of the script? I ran the script on my dev machine and works as intended Dec 09 09:11:10 pastebin! Dec 09 09:11:59 lasserix, i just noticed one line on the execSQL docs - Multiple statements separated by semicolons are not supported. Dec 09 09:12:08 Dumb me didn't read the manual before coming here Dec 09 09:12:09 If I have a View in a LinearLayout then the LayoutParams of the View are type of it's parent aka LinearLayout. The question is : the LayoutParams of the View/ViewGroup that acts like a parent what type are when there isn't a parent, just like the example here with the RelativeLayout http://developer.android.com/guide/topics/ui/layout/relative.html#Example ? Dec 09 09:13:16 Or which is the parent ? ( window ? ) Dec 09 09:15:09 ViewGroup.LayoutParams is the parent of all the others Dec 09 09:15:37 "A RecyclerListener is used to receive a notification whenever a View is placed inside the RecycleBin's scrap heap." .. ok, when does that happen though :| Dec 09 09:16:40 g00s, i beleive it's between when a view scrolls off the screen and it's recycled again as convertView Dec 09 09:17:11 i have a strange scenario Dec 09 09:17:29 basically, in my ListView items, one text field is an RxJava observer Dec 09 09:17:44 now, that has to be unsubscribed if the activity goes to the bg Dec 09 09:18:05 i wonder if i should use ListView reclaimViews instead Dec 09 09:18:26 iterate through the view (visible & recycled) and unsubscribe the observers Dec 09 09:18:30 onAttached/DetachedFromWindow is recomended for things like that, i think Dec 09 09:18:57 hm, thx i'll look at that too Dec 09 09:19:02 i suck at the gui stuff Dec 09 09:21:30 what's the proper way to fire up google maps with a particular location and title? I use the ACTION_VIEW intent with a "geo:" uri but the first time i start it, no location+popup. Second time, it's there Dec 09 09:21:52 or is this just maps bugging out on me on 4.4 Dec 09 09:29:19 osxorgate, does it have to be google maps or could you do your own activity with maps v2 api? Dec 09 09:29:40 i want to start google maps so it can just take care of directions for me Dec 09 09:29:49 fire and forget Dec 09 09:32:14 seems i can try to just start maps.google.com and have the browser fire it up for me Dec 09 09:34:02 guys, how to attack TouchListener to all views on my activity? I want to swipe left/right, but it work only on empty activity (without elements) Dec 09 09:34:16 attach* Dec 09 09:36:24 if i assign a thread to a field member, and then start that thread, will the field member reference go null when the thread finishes run()? Dec 09 09:39:31 huh, can't use <> with anonymous inner classes :| Dec 09 09:43:05 lasserix no ? Dec 09 09:43:33 Future is your friend Dec 09 09:43:45 yeah Dec 09 09:43:59 was hoping i could ovveride something to automatically handle it Dec 09 09:44:07 inside the thread class Dec 09 09:44:16 and android has async tasks Dec 09 09:44:37 tbh i dont really like using async tasks :) Dec 09 09:45:06 at least not for the current project im coding Dec 09 09:45:09 you have something the exactly fits their usecase but would rather use straight up threads Dec 09 09:45:19 oh no Dec 09 09:45:26 the previous developer used async taks all over Dec 09 09:45:45 it is a nightmare, kind of, to go through the code and fix all the various things like synchronization of cancelling Dec 09 09:46:25 plus i hope by using thread/handler i can encapsulte and abstract a dozen of the classes Dec 09 09:46:41 so the next developer doesn't have to feel my pain :) Dec 09 09:56:20 guys, where to find implementation of swiping image like in Gallery Dec 09 09:56:26 swipe to next Dec 09 09:58:26 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.1_r2/android/widget/Gallery.java ? Dec 09 10:01:56 does anyone has an example for the usage of an adapter? I have a textview and I have a string and I want the textview to automatically show the current content of the string, whenever the string changes Dec 09 10:01:58 Kegsay: oh... thank you! Dec 09 10:02:14 Anyone uses ActivityUnitTestCase? I get IllegalStateException when calling startActivity(...) without understanding why. Dec 09 10:03:01 I have no problem with ActivityInstrumentationTestCase2. Dec 09 10:04:17 procton, you sure it is startActivity ? The documentation seems very clear that "The following methods may be called but will not do anything." one of which is startActivity Dec 09 10:04:23 what is the actual exception message? Dec 09 10:05:21 Kegsay: The exception is hidden in an assert. Let me get to the breakpoint. Dec 09 10:06:46 ohcibi adapters are used in lists Dec 09 10:07:11 is your textview in a list? Dec 09 10:07:12 Kegsay: regarding startActivity. I am calling ActivityUnitTestCase.startActivity(intent, bundle, object), not Activity.startActivity(intent). Dec 09 10:07:52 lemonxah: well, lets say I actually have list, but I only want to create a string from it, separated by commas.... Dec 09 10:08:19 Kegsay: This is the IllegalStateException message found in the debugger "System services not available to Activities before onCreate()". Dec 09 10:08:33 what i mean with list ohcibi is, The item that you are displaying is that a ListView or a TextView only Dec 09 10:08:40 oh, you're calling startActivity immediately? Dec 09 10:08:41 if its only a text view you cant use an adapter for it Dec 09 10:08:45 and not say on a button click? Dec 09 10:09:40 Kegsay: Right. It is a unit test of the specific activity. Am I misunderstanding something? Dec 09 10:09:51 ah, I think you are Dec 09 10:10:02 you don't need to call startActivity to start the activity Dec 09 10:10:06 it is set up for you Dec 09 10:10:29 you should only use startActivity if the activity you are testing is launching an intent to another activity Dec 09 10:10:31 Kegsay: Hmm... But the activity requires an intent with extra arguments. Dec 09 10:10:34 and you want to check it is doing the right thing Dec 09 10:10:37 lemonxah: I know what you mean.. there is no listview, thats why I want to just create a string from it... i'm just curious how the observer-mechanism works here... how is the view notified from an adapter? but I guess it works with those registerDatasetObserver methods Dec 09 10:11:06 ohcibi, is your data in the contentprovider? Dec 09 10:11:29 so I guess I'd subclass TextView and implement DataSetObserver in this subclass and then add addAdapter methods... Dec 09 10:11:51 oh, sorry, I'm getting confused Dec 09 10:11:52 Kegsay: javadoc for startActivity: "Start the activity under test, in the same way as if it was started by Context.startActivity(), providing the arguments it supplied." Dec 09 10:11:58 when are you calling it? Dec 09 10:12:01 in a test? Dec 09 10:12:04 yup. Dec 09 10:12:22 lemonxah: i guess not.... its just list whichs items are added or removed by two buttons Dec 09 10:12:46 hmm :/ that's actually really annoying then, since it really seems to make out as if it should "just work" Dec 09 10:12:48 then on the button clicks you will have to .setText on your textview Dec 09 10:12:56 the observers are for contentproviders Dec 09 10:13:03 from my experience it usually does, though there can be interesting race conditions Dec 09 10:13:20 since the test itself is run on a different thread to the ui thread which is used to call onCreate etc Dec 09 10:13:23 Kegsay: Hmm. Ok. Dec 09 10:13:42 so I would initially try to put a sleep to see if there is a race going on Dec 09 10:13:47 lemonxah: i know that I have to set text on button clicks Dec 09 10:13:48 and if so, then try to work around it Dec 09 10:13:56 lemonxah: thats what I want to avoid with this observation.. Dec 09 10:14:25 lemonxah: on iOS i'd just use key-value-coding to add an observer to an arbitrary object that stores data.. i'm looking for something similar Dec 09 10:14:35 Kegsay: On a related note, the debugger gets confused which android source to show, i.e. it looks as it is out of synch. Dec 09 10:15:12 lemonxah: maybe there will be other buttons or methods that change the data.. I dont want to call setText all the time, i just want to change the data Dec 09 10:15:41 as always, I would clean and build (and refresh / close open if you're running Eclipse) Dec 09 10:16:17 though if you're compiling for a different version than you're running on the device, I don't know how the debugger would cope with that Dec 09 10:16:24 probably fine Dec 09 10:16:54 Kegsay: Ah. Could be missing source for the version on the device? Dec 09 10:17:03 it's possible Dec 09 10:19:14 procton, let me know how this goes please, if it turns out to be a race / you fix it via some other means Dec 09 10:19:37 Kegsay: Will try to remember to do that. :) Dec 09 10:21:22 Hi. I can't install apk or push files to the device if I use adb over network. It transmit a few bytes (seen with export ADB_TRACE=1) and then a timeout occurs. Has anyone faced this? Dec 09 10:22:28 abiogenesis: I can debug and run tests over network, but have not used it more than that though. Dec 09 10:24:01 ochibi do you always want the data to show in the textView when its changed? Dec 09 10:24:06 then you always have to call set text Dec 09 10:24:14 procton, I did this too and it worked until today. I don't know what has changed, but now it does not transmit files. I can use adb shell, I have rebooted the board multiple times, no luck. Dec 09 10:24:15 there is no propper data binding in android Dec 09 10:24:52 the closest thing to it is the content provider and with that you use a cursor adapter and with that you use a bindview and in that .. you still call .setText Dec 09 10:24:56 there is no way around it Dec 09 10:30:33 That feeling after you've been editing code for hours and you finally can hit the run button and it works on the first go. Ahhh Dec 09 10:31:26 its a great feeling Dec 09 10:31:56 fantastic Dec 09 10:33:00 guys I want make a start tutorial with preusge settings, which control you use for it? Dec 09 10:33:45 I thought about swiping tabs Dec 09 10:34:34 well the real test will see when i add the other data source and see if the multithreading holds up Dec 09 10:35:25 something like this http://www.androidhive.info/2013/10/android-tab-layout-with-swipeable-views-1/ Dec 09 10:46:12 Dudi, preusge settings? Dec 09 10:46:13 O.o Dec 09 10:47:21 Mavrikmaybe not the best word for that... info/settings you have to set before you start use app ? Dec 09 10:47:32 Mavrik maybe not the best word for that... info/settings you have to set before you start use app ? Dec 09 10:49:12 why would Camera.parameters.setJpegQuality fail ? Dec 09 10:49:37 no camera permission? Dec 09 10:54:22 Mavrik is there a better word for that kind of settings? Dec 09 10:56:09 what are preusge settings? Dec 09 10:58:00 in a relativelayout, how can i align a component to another that is not in the same inner layout? the relativelayout has 1 linearlayout, and 2 textviews. the linearlayout contains 2 textviews. i want the 4 textviews to align (they have different fonts, which makes this a problem) Dec 09 10:58:23 Dudi, not really but... what you're asking is purely design decision Dec 09 10:59:20 ok, so design question are not allowed here? Dec 09 11:00:05 It doesn't have a definitive answer Dec 09 11:00:08 fuck yeah. Dec 09 11:00:21 This weekend wasn't in vain! Dec 09 11:06:14 My dev phone doesn't have a physical search button to press, but I want to enable overriding the long press on it. Is there a way I can simulate its press to see if the activity's intent filter is catching? Dec 09 11:06:51 Dudi design questions are part of development, so probably. just make sure you clearly state what you are asking Dec 09 11:07:25 In this case, what is an example of a "preusage setting"? Dec 09 11:07:57 lasserix I just ask. "What the best view for introduction in app" Dec 09 11:08:29 Sorry, can you rephrase that? what do you mean by introduction, like a wizard that shows you how to use all the features of the app? Dec 09 11:08:42 if you're doing tips, use the card style Dec 09 11:08:49 don't block the user from using the app Dec 09 11:09:41 you might check http://stackoverflow.com/questions/12148381/overlay-image-to-make-tutotial-in-android-app Dec 09 11:09:42 lasserix preusage settings when you set your account, some info etc. show some basics functionality. One shot screen at start Dec 09 11:09:43 https://developers.google.com/live/shows/6727337534029824 Dec 09 11:09:49 watch this, very useful Dec 09 11:10:27 Callum nice thanks Dec 09 11:12:41 Does anyone know if MediaStore.Images will trigger a content changed if the user transfers images from their pc? Dec 09 11:24:30 Any recommendations for any of those logcat utils to run on the phone, to either view crashes on the phone or send logcat to an email adress, or both? I've got a prototype that crash every week or so for unknown reasons... Dec 09 11:29:26 hi all! Please advice, I have a horizontalscrollview of a certain height, how do i make it's items (wich are imageview with textview under it) fit the parent's (horizontalscrollview) height? Dec 09 11:37:13 Kegsay: I did not think this applied to my problem, but it seems to solve the issue I had: http://stackoverflow.com/questions/4675441/how-does-android-activityunittestcase-incorporate-the-target-apps-androidmanife Dec 09 11:38:13 I see, thanks :D Dec 09 11:38:31 Kegsay: np. :) Dec 09 12:01:12 anyone got any tips on promoting an android game? Dec 09 12:08:37 memify Dec 09 12:25:30 Hmm I am using a handler/thread the handler is set on main ui looper, but when i send a message from the thread's run method the thread name in the handler on handling that message is the thread, not the main thread. Why is that? Dec 09 12:27:37 is possible to -somehow- discover which libraries Nexus 5 needs for HDR+ to work (google camera)? Dec 09 12:34:52 phew was using dispatch message not send message Dec 09 12:57:28 I'm writing an app that will add/update events from a roster (xml) to a chosen calendar in the phone. At the moment my only way of solving updates is to delete all events in the period and then (re-)add events. There must be a better way. I'm looking at SyncAdapter and also ContentResolver.requestSync but it's not very well documented and I'm unable to figure out if any of these would solve... Dec 09 12:57:29 ...my problem. I basically need a one-way sync, but I'd like not having to delete all events prior to updating/syncing. Dec 09 13:09:41 jimisola, query the CalendarProvider for the date range and then add/update as required surely? Dec 09 13:12:57 Kegsay, "as required"? Dec 09 13:13:21 as in, if it already exists and doesn't need updating, then don't update it Dec 09 13:16:54 Kegsay, of course. My question is if there is an API for this. Or are SyncAdapters and ContentResolver.requestSync indeeded for remote sync? Dec 09 13:17:34 I don't think you need to use SyncAdapters for what you want to do Dec 09 13:18:05 The API on http://developer.android.com/guide/topics/providers/calendar-provider.html should be sufficient Dec 09 13:19:25 I just imported https://android.googlesource.com/platform/packages/wallpapers/PhaseBeam/ into my Eclipse and I'm seeing: "The import android.renderscript.RSSurfaceView cannot be resolved" Why? Dec 09 13:19:55 I'm using Eclipse from ADT so I assumed it would have all the essential Android packages. Dec 09 13:21:06 I'm using Build: v22.3.0-887826 Dec 09 13:21:50 jimisola, so I would basically say 'add/update events to the events table for the given calendar you want to modify' Dec 09 13:22:12 which use context.getContentResolver().query/update/insert/delete Dec 09 13:22:37 with all the data contained in a Uri + ContentValues (if updating/inserting) Dec 09 13:23:04 if you're unfamiliar with Content Providers, I would look into those first, since it can be really confusing otherwise Dec 09 13:32:20 Kegsay, alright. That's what I'm using now. Just wanted to make sure that there was not a better solution using a more proper syncing functionality. Dec 09 13:32:22 Thanks Dec 09 13:34:54 np Dec 09 13:48:19 Does anyone know if there is a way to append some text to the stack trace of a method? Dec 09 13:48:40 hi, i'd like to benchmark some of my code when running an android device with the frequency set to the max for all processors Dec 09 13:48:46 what I am doing at the moment is that I change the frequency scaler to performance with /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor. However I cannot do that for cpu2 and cpu3 which are idle Dec 09 13:48:56 is there a way to force all cpus to be turned on? Dec 09 13:49:53 I just compiled the ondemand governer out Dec 09 13:49:57 job's a good'un Dec 09 14:12:32 lupine: i'd rather not change the kernel Dec 09 14:20:21 well, maybe there's another way Dec 09 14:20:52 apparently the extra cpus are set to performance whenever they get turned on automatically Dec 09 14:21:04 but i'd still like to be able to set them on Dec 09 14:22:29 ah, I see the distinction you're making Dec 09 14:22:34 sorry, I don't know what does that bit of magic Dec 09 14:34:31 Does calling interrupt() on a thread that is already finished run() cause an exception? Dec 09 14:36:07 lasserix: sounds like a standard java question Dec 09 14:37:56 that is as helpful as tias but thanks Dec 09 14:56:27 guys I want send json in param in post, serwer read param json from request, so that approach don't work (I get 500 because json param is undefined) http://pastebin.com/7eLUc7cx but when I use http://mysite.com?json={myJson} it work (code 200 is return). How send that json properly in request body or something? Dec 09 14:56:39 I start a service in my login activity, the other activities bind to it, it keeps complaining about leak service connection, wherever I change activity, it always complains about service. I did getApplicationContext().unbindService(ShoppingCartActivity.usc); (usc is a static UpdatesServiceConnector) and fails saying service not binded, its a mess... am I doing something conceptually wrong? Dec 09 15:01:33 no one or just stupid question? Dec 09 15:12:18 hi Dec 09 15:12:24 i have image.setImageResource(imageResourceId); Dec 09 15:12:35 Log.i("dd", getString(imageResourceId)); i have: res/drawable-xhdpi/slide_3_image.9.png Dec 09 15:13:58 why my image is not showed? Dec 09 15:26:55 t0th_-: what type is the image object? an imageView? Dec 09 15:27:02 ImageView Dec 09 15:28:05 are you getting an error in your logs? a stack trace? Dec 09 15:28:21 no Dec 09 15:28:24 nothind Dec 09 15:28:57 layout_height and layout_with? Dec 09 15:30:09 t0th_- depending on where you are setting the image, you may have to call invalidate()…. but that's probably not it Dec 09 15:30:19 what about layout_height and _layout_width? Dec 09 15:30:28 nothing, sorry Dec 09 15:30:40 where are you setting the image source? in onCreate? Dec 09 15:31:07 i am making here fix Dec 09 15:31:10 1 minute Dec 09 15:31:12 fixe Dec 09 15:32:24 i have this http://pastebin.com/0LmnTDEP layout Dec 09 15:32:32 @string/slide_1_text works fine Dec 09 15:32:38 the image is not work Dec 09 15:32:50 i have @drawable/slide_1_image Dec 09 15:33:31 step one, assign a static image to it and make sure it's rendering in the layout at all Dec 09 15:33:38 and that you're not being pushed off by some other item Dec 09 15:34:09 android:orientation="vertical" take that out of your imageView Dec 09 15:36:13 t0th_-: since your textview has a height of match_parent, its taking up the whole screen. SO that pushes your image off the bottom Dec 09 15:36:28 change your textview height to wrap_content Dec 09 15:36:31 is there a way i can hide all of these messages saying that "so-and-so has joined..." or "so-and-so has quit..." Dec 09 15:36:43 Tacticalmind: depends on your irc client. probably, but that's client side Dec 09 15:37:23 is freenode the client? Dec 09 15:37:42 no, freenode is the server. The client is whatever you used to connect to it. Dec 09 15:37:53 like google chrome? lol Dec 09 15:38:04 lol Dec 09 15:38:05 works Dec 09 15:38:29 Tacticalmind: I'm going to assume you mean you're using the web ajax client, in which case, the answer is probably no, you can't turn that off. Dec 09 15:38:33 t0th_-: :D glad I could help Dec 09 15:38:42 damn Dec 09 15:38:46 wrap_content Dec 09 15:38:47 error Dec 09 15:38:51 thanks, men Dec 09 15:39:20 Hello Dec 09 15:39:51 I have written a Encoder using the MediaCodec API Dec 09 15:40:13 It works flawlessly on every device except Snapdragon 800 ones Dec 09 15:40:35 Has anyone encountered this before or is this the wrong place to ask? Dec 09 15:41:22 Tacticalmind: the web client is a very minimal thing. If it really bothers you, install an irc client for whatever operating system you're running. If linux, xchat. Dec 09 15:41:43 hm, I cant find the settings for the AdId on my test device 8-)... where are they? latest google play is installed Dec 09 15:41:44 lowtraxx: I wouldn't say it's the wrong place to ask but I also have no idea Dec 09 15:41:46 windows, thanks Dec 09 15:42:12 Tacticalmind: I don't know what's a popular modern client for windows, but they definitely exist. There's probably an xchat port if nothing else Dec 09 15:42:32 alright cool deal thanks Dec 09 15:43:38 lowtraxx: it's weird that the 800 would be the failure device Dec 09 15:44:03 Anybody got a suggestion for offlining a website? I'm working on a hybrid app and it needs to be able to offline a page with it's CSS and images etc. Dec 09 15:45:24 dragorn: I tested on Nexus 5 as well as Xperia Z1 and the Note 3 Dec 09 15:45:52 this seems the best so far http://developer.android.com/reference/android/webkit/WebView.html#saveWebArchive(java.lang.String) Dec 09 15:45:53 lowtraxx: what's the failure condition? I don't pretend to be any expert on such things of course Dec 09 15:46:36 snowpong: arbitrarily any page? Probably quite difficult ;/ I'd say you coudl try to use the html5 offline stuff but I don't think the chrome webview came in until 4.3 or 4.4 Dec 09 15:47:22 dragorn: what is the html5 offline stuff? I'm at API14 so I can use pretty new stuff Dec 09 15:47:52 snowpong: html5 has an ability for a webapp to support some offline operations Dec 09 15:48:02 snowpong: so if you control both ends, you could investigate that Dec 09 15:48:08 dragorn: ah, I see Dec 09 15:48:15 snowpong: but if you're targetting web pages you don't control, you can't Dec 09 15:48:35 dragorn: I get SPS and PPS and the first Keyframe. After that there is no more data in the output buffer to use, it just bails out with MediaCodec.INFO_TRY_AGAIN_LATER Dec 09 15:49:17 dragorn: well - I can control them (through someone else), but it's more likely the task gets done if I do the actual offlining in the app :) Dec 09 15:49:40 lowtraxx: sure it's not an API change? ie tested 4.4 and 4.3 on the 800? Dec 09 15:50:00 dragorn: the existing has a solution that base64 inlines anything included in the .html (like css pngs etc) into one file - but it's very fragile Dec 09 15:50:12 Yes, Z1 only has Android 4.2.2 available, Note 4.3 and Nexus 5 4.4 Dec 09 15:50:47 lowtraxx: that's pretty funky. Dec 09 15:51:30 dragorn: yepp, and I am fully out of ideas... Dec 09 15:52:06 Another question, I'm styling an app for Holo with some custom accent colors - it seems http://android-holo-colors.com/index.php for the views and http://jgilfelt.github.io/android-actionbarstylegenerator/ for the ActionBar is the best solutions for this? Anyone used them both? Dec 09 15:58:06 lowtraxx: I've got no brilliant ideas unfortunately. I assume if you try again a bunch of times there's no new data? Dec 09 15:58:34 dragorn: nope, once it is in that state, it never recovers Dec 09 16:02:18 hello, I'm trying to make my custom list items on a listview to appear to be equally sized selectors, but they only seem to select up to where the text and images inside the items seem to end (ie, for differently sized text views i get a differently sized 'onclick' color rectangle. I'd like this rectangle to grab the whole width of the item). does this make sense? Dec 09 16:07:27 bfig: your textview is probably wrap_content in both directions, and the statelistdrawable is probably only set for the text, not the whole item Dec 09 16:08:23 every item built on the adapter is a RelativeLayout element with some text and icons inside Dec 09 16:08:37 the RL is set to wrap content in height and match parent in width Dec 09 16:10:01 bfig: and the problem is when you press an item the bg color doesn't change for the whole view? Dec 09 16:10:38 yeah Dec 09 16:10:47 it is like the smallest rectangle that wraps the text Dec 09 16:12:26 Hi all, I'm using Picasso library for my images. But now the url has a redirection, this isn't working. Does somebody now how I can make this work? Or it volley easy to implement (and does volley support redirection) ? Dec 09 16:12:42 redirection should take place in the HTTP client Dec 09 16:13:17 JakeWarton: and how can I do this? Dec 09 16:14:01 bfig: set a statelistdrawable on th RL of your item http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList Dec 09 16:14:28 bfig: as the background of the item, on selected state set whatever color you want it to be Dec 09 16:23:02 Starting a new project and I'm looking to improve on my Android design practices. Is there a good website for figuring out which best practices are being used lately? i.e. should I use dagger, which drawer library, etc? Dec 09 16:23:36 ColinTheShots: amazing name Dec 09 16:23:39 well done Dec 09 16:23:47 Thanks, Jake Dec 09 16:24:32 ColinTheShots: I'd say in general look at the official support libraries; they have a nav drawer now that's official, for instance Dec 09 16:24:40 Amazing work on your libraries, BTW Dec 09 16:25:31 ColinTheShots: then look for libraries which replicate the current look and feel as close as possible; i'm using the BetterPickers library for example since it's a very close duplication of the numberpad-style time picker in newer android Dec 09 16:30:16 dragorn: okay, I'll see what I can find. Thanks for the tip! Dec 09 16:30:19 anyone know why i have a nameless app using 32BK of storage? Dec 09 16:30:29 32 Burger Kings, ofc Dec 09 16:32:17 ColinTheShots: two nice resources are http://android-holo-colors.com/index.php and http://jgilfelt.github.io/android-actionbarstylegenerator/ for styling accent colors Dec 09 16:32:58 snowpong: Thanks, bookmarked! Dec 09 16:33:18 ColinTheShots: also if you're adding a drawer then this is an OK start http://developer.android.com/training/implementing-navigation/nav-drawer.html Dec 09 16:33:40 ColinTheShots: there were also some good talks at droidconuk not that long ago about android design Dec 09 16:33:45 there are videos I believe Dec 09 16:37:37 ColinTheShots: http://skillsmatter.com/podcast/os-mobile-server/teaching-your-client-android-design-or-ridding-the-world-of-iphoneys one of the design talks - and more talks here http://skillsmatter.com/event/os-mobile-server/droidcon-london-2013 (search for design or something :) Dec 09 16:38:25 snowpong: excellent, yeah I just started watching one of the talks Dec 09 16:41:45 JakeWarton: I tried with OkHttpDownload but I got this error: NoClassDefFoundError: com.squareup.okhttp.OkHttpClient. Do you know what the problem can be? Dec 09 16:42:59 I'm saving log files (.csv) on my tablet. I can browse to them and open them on my device. However, when connecting it to the computer, the file browser shows the folder as empty. (and I have invisible/hidden files on). Dec 09 16:43:26 JakeWharton: Saw that they "force" the overflow menu now? Dec 09 16:43:52 https://android.googlesource.com/platform/frameworks/base.git/+/ea04f3cfc6e245fb415fd352ed0048cd940a46fe Dec 09 16:46:36 Hi guys Dec 09 16:46:53 any idea how to compile my android app with play services for Froyo with gradle ? Dec 09 16:46:58 hi Dec 09 16:46:59 i have this Dec 09 16:47:01 http://pastebin.com/AcMqxYZY Dec 09 16:47:17 how i can use classes, functions from level 8 without change my AndroidManifest? Dec 09 16:57:47 any/ Dec 09 16:58:19 t0th_-: you just ... use them Dec 09 16:58:25 no Dec 09 16:58:35 make sure someone running API 7 doesn't go through that flow, though Dec 09 16:58:35 in my androidmanifest i have 7 Dec 09 16:58:39 that doesn't matter Dec 09 16:59:08 Hi All, i want to learn about android dev. can anyone tell me where i start from Dec 09 17:00:55 qakhan: http://d.android.com/ Dec 09 17:03:08 thanks evanc Dec 09 17:04:38 snowpong, trying that now, thanks for the answer, went afk for a while Dec 09 17:05:10 bfig: no problem Dec 09 17:06:45 would you people think that I am creating SQLite table starting with Dec 09 17:06:47 tablefavouritesfavouritesCREATE TABLE favourites (id TEXT PRIMARY KEY, name TEXT, url TEXT, image TEXT) Dec 09 17:07:17 I mean, favourites is there two time which seems a bit of overkill to me Dec 09 17:11:31 Hey guys, so I have a messaging application I'm working on. In my listview, I'm using TWO different layouts for inbound messages and outbound messages. The problem is that when I begin to scroll, the messages don't have the correct layout applied to them anymore. I can have an outbound message with an inbound layout. Any ideas? Dec 09 17:15:09 hello Dec 09 17:15:12 anyone using retrofit ? Dec 09 17:15:18 i am Dec 09 17:15:47 is async with callbacks safe to use ? Dec 09 17:15:59 safe in what manner? Dec 09 17:18:48 eghdk, that'd be a bug then. You should be using the View Holder pattern, and you'll end up with 2 pools of recyclable views for each layout type Dec 09 17:21:43 You should be overriding getItemViewType and return different IDs for out/incoming messages, and then you'll be given the right view to recycle (or a null view to create) which will fix your bug Dec 09 17:22:18 alternatively you can bundle all of them into the same layout type, and just programatically flip the layout if the diffs are simple enough (e.g. gravity and background image) Dec 09 17:22:58 you get less views hanging around if you do it like that, at the cost of having some UI-creep in your adapter, which isn't great Dec 09 17:23:22 it also required a measurement/layout pass whereas view types does not Dec 09 17:23:30 *requires Dec 09 17:24:12 true Dec 09 17:28:34 Is there a limit to theme redirects? Like how many parents and grandparent a theme can have? Dec 09 17:29:17 no Dec 09 17:29:26 well, yes. but it's probably unreachable Dec 09 17:31:04 JakeWharton: hm, I'm trying to make one generated theme (from the actionbar designer) be the parent of another generated one (the holo color theme generator) but it doesn't seem to work... maybe my hierarchy is wrong Dec 09 17:31:08 * snowpong doublechecks Dec 09 17:33:05 hello Dec 09 17:33:25 I have a quick question in regards to rom dumps and how to perform them Dec 09 17:33:36 DaemeonZane_: #android-root Dec 09 17:33:47 Seriously Dec 09 17:33:54 they sent me here Dec 09 17:34:08 er, okay. Is your question related to application development? Dec 09 17:34:48 anyway, just ask the question and then we'll know where it belongs for sure :) Dec 09 17:35:33 hey guys, I was wondering how do dialog fragments work... Dec 09 17:35:37 http://stackoverflow.com/questions/20405070/how-to-use-dialog-fragment-showdialog-depreciated-android Dec 09 17:35:42 this is my code and question on SO Dec 09 17:36:12 JakeWharton: ah, turns out there were a values-v11 that had a duplicate of the theme which I didn't update the inheritance hierarchy :P Dec 09 17:37:10 I was tring to dump /system and /recovery on my new ZTE Source (n9511) and I was using rkdump... it outputs nothing I can use; the img file is corrupted or is not accessible Dec 09 17:38:05 I used romdump (http://forum.xda-developers.com/showthread.php?t=1771347) and it seems to only like mtd Dec 09 17:38:14 and I, of course, don't have /proc/mtd Dec 09 17:38:24 or /proc/emmc Dec 09 17:38:34 Though the partition is labeled mmcblk Dec 09 17:38:54 anyone know how to work dialog frag, I am watching a tutorial that uses showDialog which is depreciated Dec 09 17:39:51 <|0xD34D|> DaemeonZane_: I'm in #android-root and I don't see you in there or anyone telling you to go here from there Dec 09 17:40:05 that was at about 4am this morning Dec 09 17:40:23 I've been at work most of the day Dec 09 17:40:29 was using _AndroidN00b Dec 09 17:40:32 as my name Dec 09 17:41:18 if they sent you here then they're idiots Dec 09 17:41:19 <|0xD34D|> hmm my log ain't showing that was the case, either way #android-root is the correct channel for what you want Dec 09 17:41:27 got it Dec 09 17:41:32 DaemeonZane_: that's definitely #android-root; sorry Dec 09 17:43:16 http://stackoverflow.com/questions/20405070/how-to-use-dialog-fragment-showdialog-depreciated-android Dec 09 17:43:19 anyone know how to use that Dec 09 18:06:19 I have an MainActivity where I set a local variable, but it seems to be reset every time I rotate the phone, is there anything in the specs for the activity I should know? Could seem to me that it's reconstructed every time Dec 09 18:07:24 how can i trigger event to show/trigger marker title? Dec 09 18:07:37 on gmap? Dec 09 18:10:30 why are my strings inside OnLongClickListener enclosed in braces Dec 09 18:10:39 I have seen this via logcat Dec 09 18:18:08 found the blunder, it was an arraylist so applied the get Dec 09 18:32:41 hi Dec 09 18:34:29 hi Dec 09 18:34:33 I'm using Google Mobile Ads, when my app starts I don't see any ads (testing ads) but when I press the homescreen button and back to my app then the adview appears (when I press the homescreen button the ads suddenly appears for a moment). Why this behaviour is happening? There is something wrong on my code/manifest? -> http://pastebin.com/FN238BLw Dec 09 18:35:23 snowpong, Hey, just got back and have been browsing the link you gave me, you want me to use as a background a drawable resource right? Dec 09 18:35:32 took a while to understand, if that's what it is supposed to be Dec 09 18:43:59 the fields in this class seems to reset them selves: https://github.com/rohdef/CAMC-learning-app/blob/master/CAMC%20Learner/src/main/java/dk/au/cs/listr/camclearner/MainActivity.java can anyone explain what I'm doing wrong? Dec 09 18:44:53 rohdef: er, when? Dec 09 18:44:59 what causes them to reset themselves? Dec 09 18:45:09 hello guys. In retrofit if i make 5 async calls at the same time is it a problem ? Dec 09 18:45:22 no Dec 09 18:45:26 I'm trying to move an application I've been developing over to tabbed layout, and I'm struggling with startactivityforresult and the result beiung captured by the main activity of the site Dec 09 18:45:30 I mean app Dec 09 18:45:37 seems to be a bit inconsistent, but rotating the phone seems to reproduce it every time Dec 09 18:46:10 my maina activity loads (depeneidng on the tab) one of 2 fragmenents, that fragment will load a listview, each item has an onclick that loads an action and a view Dec 09 18:46:51 when the user exists this view, and the actvitiy closes, the main activity captures the results not the fragment.... Dec 09 18:47:23 rohdef: your activity is recreated on rotations (and other configuration changes) Dec 09 18:47:33 evanc: I did a log on the isIdle variable, and it seems to reset to the default value on rotate where I can trigger it. But also the timer event seems to do NullPointerException, fairly sure it's the buttons it can't find Dec 09 18:47:52 rohdef: yes, you're not stopping the timer Dec 09 18:47:59 so basically my activity is a bad place for the code? Dec 09 18:48:06 so it continues to run and reference obsolete objects Dec 09 18:48:21 rohdef: also, Timers are silly. Don't use them. If anything, use a Handler Dec 09 18:48:57 but the timer is a schedule, it's a run once timer, and it's on the first run it give null pointer Dec 09 18:50:46 where can I find style guides to style my application? Dec 09 18:50:47 isn't handler a bit overkill when I just want to do a very simple task after x seconds? Dec 09 18:51:22 (ie, somewhere that explains how to do simple styling? brb) Dec 09 18:51:59 rohdef: no. Dec 09 18:52:46 how can i get list of marker on gmap? Dec 09 18:53:49 lol JakeWharton I just saw your DiskLruCache Dec 09 18:54:30 i want to store some objects in memory but I dont want to be erased Dec 09 18:54:42 randomly. Is there any easy solution for this ? Dec 09 18:55:07 evanc, but isn't handlers for cases where you want to send signals to the thread and similar things, or have I misunderstood? Dec 09 18:56:38 rohdef: It doesn't have to be. Hander#postDelayed Dec 09 18:59:33 evanc, so basically: new Handler().postDelayed(runnable, delay) would do the trick? But then what's the difference from Timer? :S I don't see why handler should be better? Dec 09 19:01:10 bfig: typically you want a color statelistdrawable and a background statelist drawable for a custom listadapter of some sort Dec 09 19:01:39 sorry, they can both be color - but one is typically set for the textcolor and the other for the background Dec 09 19:02:07 bfig: a statelistdrawable is simply just a layered drawable that select one of the layers depending on the state of whatever it is set on Dec 09 19:02:10 aha. btw, what i did to finally solve the previous problem was instead of having my textviews to wrap content, i had them to fill parent. Probably not the best way to go around it, but works Dec 09 19:02:19 bfig: so it can be used for checked, pressed, selected etc states Dec 09 19:02:30 bfig: you can even extend with your own states Dec 09 19:02:59 i don't understand how drawables fit into this because to me a drawable is a renderable component, and this is a problem of layouts Dec 09 19:03:09 bfig: that works too, there is nothing wrong with just letting that textview expand as long as you just align the text to wherever you want it Dec 09 19:03:19 anyone able to tell me how to show a dialog fragment when clicking a button, noob here Dec 09 19:03:19 ie, a layout that doesn't occupy all the space it is given Dec 09 19:03:21 http://stackoverflow.com/questions/20405070/how-to-use-dialog-fragment-showdialog-depreciated-android Dec 09 19:03:29 that is my code attempt Dec 09 19:04:18 bfig: ok, so a textview has textColor and background - these are both drawables, OK? Dec 09 19:04:26 evanc, it seems to solve the one exception, so you were right. But I don't get why it does a difference? Threading, or? Dec 09 19:04:38 ok, so far so good Dec 09 19:05:11 bfig: when you press on a listadapter it sets the textview in the selected state, then the textColor and background can change their colors if they have a statelistdrawable on them - ok? Dec 09 19:05:26 aha Dec 09 19:05:38 bfig: since your textview didn't expand all the RL - it didn't paint all of the background Dec 09 19:05:52 ok... Dec 09 19:06:31 bfig: so, either set the statelistdrawable as the RL background (and leave the textview one empty/null/transparent) - or, as you did - make the textview match_parent Dec 09 19:06:48 wait, it was on match parent, but i had to do fill parent Dec 09 19:06:57 they are the same Dec 09 19:07:04 wait no, that's not how it was Dec 09 19:07:17 let me show you the component so you understand Dec 09 19:07:24 (both how it is and how i 'solved' this) Dec 09 19:07:29 bfig: OK Dec 09 19:07:30 because I think it is 'ideologically wrong' Dec 09 19:07:33 :p Dec 09 19:07:40 bfig: post it on pastebin or something Dec 09 19:07:50 http://hastebin.com/xidukupaka.xml Dec 09 19:08:20 http://hastebin.com/vihofalusu.xml (typo when copying) Dec 09 19:08:22 layout_width="fill_parent1`" <- syntax error Dec 09 19:08:58 ok, so that line used to be "wrap_content" instead of "fill_parent" Dec 09 19:09:21 bfig: ok so - line 4: there is no orientation in RL Dec 09 19:09:36 yeah now that i see it, it actually makes sense, because you can't force a component to 'grow' if you're wrapping things Dec 09 19:10:08 orientation:vertical, what do you mean? Dec 09 19:10:54 bfig: you specify orientation for the relativelayout, it doesn't have that property Dec 09 19:11:03 it's not a LinearLayout Dec 09 19:12:05 bfig: and line 14, you set the layout_width to "fill_parent1'" - the last '1 seems like garbage Dec 09 19:12:11 ahh Dec 09 19:12:23 i corrected that on the second paste Dec 09 19:12:50 oh Dec 09 19:13:12 it actually works as intended now, just wanted to know if that was the right way to do it Dec 09 19:13:33 i'll remove the orientation too Dec 09 19:13:37 thanks for clarifying this Dec 09 19:16:30 bfig: I'm guessing the image is to the left and the texts are stacked on top of each other and to the right Dec 09 19:16:44 yeah Dec 09 19:17:26 bfig: who decides the actualtotatl height, the image or the two textviews? (like who is boss - if any) :) Dec 09 19:17:49 well, that's why I don't like this way of doing the things. I don't know what is the better way :p Dec 09 19:18:06 i suppose all this can change with style decisions, that's why I recently asked for a styling guide Dec 09 19:19:28 bfig: there is a lot of ways to do this, depending on what actual design you want to achieve Dec 09 19:20:08 well, as far as I understand (most code is copypasted), you can do a sort of 'microlayout' with the relative position tags Dec 09 19:20:15 bfig: yes Dec 09 19:20:56 the way it is done i would think this is the equivalent of adding a horizontal layout element Dec 09 19:21:37 so the height will be determined by the tallest element Dec 09 19:22:01 bfig: well, the height of the textviews content here will make the adapter vary in height Dec 09 19:22:20 there might be a slight visual artifact when the textviews are shorter than the image, isn't that right? Dec 09 19:22:34 since i'm vertically wrapping around the text Dec 09 19:23:03 bfig: btw - use sp for textSize not dp Dec 09 19:26:01 bfig: if you want a uniform height adapter, this one is not that Dec 09 19:26:31 no no, not my objective. As I said, this is just testing Dec 09 19:26:50 it works for what i tried, but probably some edge cases will look wrong, but I don't know enough yet to predict them Dec 09 19:30:43 do you have a style guide I could check? like a css styling guide, but for android Dec 09 19:33:14 I cannot putExtra null in my intent ? ? Dec 09 19:35:42 Looney: er, why would you do that? Dec 09 19:35:59 messing with stuff Dec 09 19:37:11 Looney: I don't see why you couldn't, but do you perhaps want removeExtra ? Dec 09 19:37:22 hmm Dec 09 19:38:33 Looney you could use hasExtra Dec 09 19:38:43 if yes, make sure it has a value, no = null Dec 09 19:38:44 bfig: this is more fundamental layouts stuff - I didn't find a good guide for this except trial and error - but there is a good talk by Romain G. at http://www.youtube.com/watch?v=wDBM6wVEO70 (it's old, but still good) Dec 09 19:38:59 snowpong, thanks! :) Dec 09 19:39:33 bfig: basically you'll end up using RelativeLayout a lot, and when that doesn't work - use a LinearLayout with weights Dec 09 19:39:36 Is there any better way (more efficient) to update list view ? That just notifyDataSetChanged method for adapter? Dec 09 19:39:41 those two takes you a long way Dec 09 19:39:58 alright Dec 09 19:40:16 Because then as I can see, it calls every needed getView again... Dec 09 19:40:19 I wish there was an ObservableList blue, that way when things are added you can have it automatically notify about a dataset change Dec 09 19:40:33 bluesm well .. you can its tricky though :) Dec 09 19:41:12 last night i used RxJava observers in my listview's ViewHolder; but you have to make sure you unsubscribe when the observable goes away Dec 09 19:41:24 you can do that with reclaimViews Dec 09 19:41:51 i think this makes sense if you think the views will be getting updates quickly Dec 09 19:42:03 g00s: not worth bothering ? ... Dec 09 19:42:04 otherwise, notifydatasetchanged might be cheaper Dec 09 19:42:15 g00s: that is a nice idea to test Dec 09 19:42:39 but I implemented not much sophisticated solution Dec 09 19:42:57 checking whether received extra is null or ... Dec 09 19:43:03 jonc: to me ? Dec 09 19:43:18 bluesm its hard to say; in your adapter you have to unsubscribe old listeners as the view gets recycled too Dec 09 19:43:32 if thats an o(n) lookup in a list, it can be expensive also Dec 09 19:43:53 We're talking about having our new app able to go into a terminal mode for dedicated customer tablets. Would it make sense to have a one-way configuration setting to switch into a home screen app? Or would it make more sense to have a separate app for terminal mode? Thoughts? Dec 09 19:43:54 of course you could disab;e hooking up listeners when flinging Dec 09 19:44:21 i thought 4.4 or 4.3 had a kiosk mode Dec 09 19:44:33 maybe somebody else knows Dec 09 19:45:30 Objc is killing me Dec 09 19:45:39 does ObjectOutputStream protects from circular references? Dec 09 19:47:00 bluesm so in summary, if things don't get updated quickly it may be cheaper to poll and use notifydatasetchanged Dec 09 19:59:07 does the drawerlists in DrawerLayout have to be listviews, or can they be any ViewContainer? Dec 09 20:00:49 So I am writing stuff to a file, the functions are being called with no exceptions (logging those, used break points etc.) and after a little while I force close my app. Nothing in the files Dec 09 20:01:23 they have been create, but are empty, and to try and make sure something gets to the file I flush the writer after any write Dec 09 20:01:26 any ideas? Dec 09 20:02:16 Anyone here doing Gear dev? I badly want to develope for it but I since an albatross. Dec 09 20:05:38 g00s: thank you veery much. Could you link to the code snippet of what you told about? Dec 09 20:11:23 bluesm one sec Dec 09 20:19:18 bluesm here you go; http://pastebin.com/a8jUYp2g Dec 09 20:19:29 i hope its 'correct'. seems to be Dec 09 20:19:55 it uses RxJava stuff so that may seem weird but this is basic and should be easy to follow Dec 09 20:21:10 for those interested - drawers can be any viewgroup :) so custom drawers are no problem Dec 09 20:21:47 thanks snowpong i wondered about that but didnt have the time to check it out Dec 09 20:22:59 g00s: :) Dec 09 20:38:02 bluesm i considered also using AbsListView.RecycleListener; but could't really figure out if that would be called for all views (eventuall) (and when) not just the recycled ones Dec 09 20:38:39 anyone got opinions on using DeviceDefault vs Holo in styles? I lean toward Holo - as I don't know what stupid s%t Samsung might pull in their next "update" Dec 09 20:40:04 so I have a URI for a ringtone: content://media/internal/audio/media/118 how would I go about copying that file to external storage? or even getting more information on that file? Dec 09 20:40:58 ContentResolve is good palce to start Dec 09 20:41:07 *ContentResolver Dec 09 20:43:30 ok, thanks i'll go take a look Dec 09 20:47:38 CallumTaylor there by any chance ? Dec 09 20:47:43 hello Dec 09 20:48:02 i came across you your blog last night , the only example i could find that showed listview reclaimViews Dec 09 20:48:12 it was in the context of font resizing, i think Dec 09 20:48:15 ok Dec 09 20:48:41 now, if i had to perform some cleanup operation on each view in a listview at some point of time, is that the right method to use ? Dec 09 20:49:02 i just thought i'd ask; situation is slightly different Dec 09 20:49:55 potentially, reclaimViews does actually remove the views from the list, but calling notifyDataSetChanged will re-inflate them. It may be better to loop through the children of the ListView calling getChildAt() Dec 09 20:50:28 CallumTaylor ok; reclaimViews also processed the recycled views Dec 09 20:50:40 i haven't tried it, but I'm fairly sure that would work in place of calling reclaimViews Dec 09 20:50:46 in my case calling reclaimViews worked best for me Dec 09 20:50:53 ya , ok thx Dec 09 20:51:10 i grepped the aosp apps and could not find a single call to reclaimViews :| Dec 09 20:51:23 i wish they would bring back google search Dec 09 20:51:28 code search Dec 09 20:52:31 ah yeah that's it, it also includes views in the recycler which helps if you have multiple view types in your list because calling just getChildAt may not include a view of the other types meaning if it hasn't been re-inflated, it won't have the changes you want in it Dec 09 20:55:17 g00s: opengrok it Dec 09 20:56:23 bankai_ thx Dec 09 20:57:06 http://grepcode.com/ is pretty useful also Dec 09 20:57:27 anyone explain to me what the difference to textAppearance and style is for a TextView? Both seem to be style really - 1) which one overrides the other and 2) are there properties that can be set in one but not the other? Dec 09 20:59:05 yeah, tried grepcode - never seems to be that useful for mw Dec 09 20:59:55 http://stackoverflow.com/questions/20405070/how-to-use-dialog-fragment-showdialog-depreciated-android anyone able to help me with this : / Dec 09 21:01:08 f2prateek: found it, thanks for the point in the right direction. Dec 09 21:06:34 is there a way to change Android Bar Sherlock's background color if targetting less than API level 11 Dec 09 21:14:44 theblang: http://jgilfelt.github.io/android-actionbarstylegenerator/ Dec 09 21:15:14 theblang: has sherlock compatibility it seems Dec 09 21:15:18 snowpong I have the xml I want to customize it with, just can't seem to get it to apply Dec 09 21:17:08 theblang: http://actionbarsherlock.com/theming.html and you followed this ? Dec 09 21:19:01 JakeWharton https://plus.google.com/+AlexRuiz/posts/5TSJ3vUJPrx :) Dec 09 21:19:43 g00s: Yep. I saw the CL come in. Dec 09 21:20:07 Of course, now I'm back in the US with speedy internet. Dec 09 21:21:01 snowpong yup, here is my XML http://pastebin.com/UcrM6WZU Dec 09 21:21:14 I believe I am doing it correctly, I must be missing something though. Dec 09 21:40:52 theblang: and it's not reading a generated theme in a values-v11 or some other versioin that you haven't updated? are you setting it on the application, or per activity or? maybe you need to refer to it as @style/Theme.... instead of just Theme ? Dec 09 21:45:03 hello @ all - I have two Qs, one /very/ newbie, the other maybe less so. Dec 09 21:45:17 #1: why does my app crash if I switch the order inside my layout.xml? Dec 09 21:45:31 hi, I've updated my Xperia Go from 4.0 to 4.1 and I hate the new lockscreen... so I've dumped the original from 4.0 I tried to install it to my rooted 4.1 but it doesn't work... I can remove the Sony 4.1 lockscreen and get the Android default one but the 4.0 seems to be not compatible... how hard is to port the lockscreen from ICS to JB? Dec 09 21:45:53 #2: is there any knowledge on devices (lenove/lifetab) giving problems with AudioRecord.read() returning pure 0-s? Dec 09 21:46:33 anyone know how I can make a shapedrawable simply use the width of it's parent? (I want to underline a textview) Dec 09 21:46:50 KOPRajs: topic sez you'll have more luck in #android-root! Dec 09 21:47:07 s/lenove/lenovo/ Dec 09 21:50:15 snowpong: android:layout_width="match_parent" isn't working? Dec 09 21:50:26 nortwolf: not in drawable no Dec 09 21:50:40 oh, or "fill_parent"? Dec 09 21:50:47 nortwolf: neither is % (which very seldom works anyways) Dec 09 21:51:10 nortwolf: I believe match_parent is the same as fill_parent, just new name Dec 09 21:51:58 which is the newer one - I'm just starting out, no sense in using soon-to-be-deprecated stuff! Dec 09 21:53:01 ah. match_parent is API-Level >= 8 Dec 09 21:53:34 when using the genymotion vm; after a while adb disconnects (adb devices shows nothing) … is there a way around this yet? without restarting the vm? Dec 09 22:00:17 adb connect brings it back in 'adb devices' list but AS seems oblivious even after toggling (Enable ADB integration) Dec 09 22:00:50 helllo Dec 09 22:00:56 at classes should i impleent Dec 09 22:01:01 equals ? Dec 09 22:02:02 such java Dec 09 22:04:19 wow Dec 09 22:04:22 re #2: http://pastebin.com/JJnhJL0J .. can paste full code if required, it's a minimalistic test only - this is the AudioRecord.read() bit .. Dec 09 22:05:02 g00s: is there a setting to make it keep networking alive? i used to have problems with my tablet disconnecting wireless until i configured it not to Dec 09 22:05:25 hm Dec 09 22:06:25 Does every rotation. Make the new instance of activity ? Dec 09 22:06:37 So I need to store user data outside? Dec 09 22:07:12 bluesm: as crazy as it sounds... yes Dec 09 22:08:15 bluesm: http://developer.android.com/guide/components/activities.html and especially http://developer.android.com/guide/components/activities.html#actstate Dec 09 22:08:24 ohcibi: And they don't want to do anything about it ? I mean in the future of Android API ? They don't consider it "wrong" ? Dec 09 22:08:40 bluesm: I believe the excuse is that the activity may load another layout.. its bs of course, but theres a lot of it in androids source 8-) Dec 09 22:08:55 bluesm: no in fact they consider it "right" Dec 09 22:09:28 bluesm: they also consider it "right" that you never know why a lifecycle-state-change happened.. you always have to hack around to know Dec 09 22:10:19 ohcibi: You don't know if lifecycle calls refer to the rotation or exiting from the app ? Dec 09 22:10:28 bluesm: of course not 8-)) Dec 09 22:10:43 ohcibi: And it is wrong in your opinion ? Dec 09 22:11:56 bluesm: first i think its wrong that the activity restarts at all.. then i'd like to have an explicit callback which says that the rotation change happened.. if the system decided that a rotation change should restart the activity, the restart-callback must of course know why it was restartet.. Dec 09 22:13:26 bluesm: the bottom line is.. you _never_ know for sure if a rotation change happened...and thats of course wrong... Dec 09 22:13:34 ohcibi: but you can keep flags for "lastTimeOrientationWas" and run a Timer to measure delta-T since lastTimeDrawn - so if that's "large" it was from a quit :-P LOL Dec 09 22:14:02 nortwolf: you could do many things 8-)) Dec 09 22:14:09 ;) Dec 09 22:17:22 ohcibi: Ok. I got that. You would like to lifecycle be more specified... :) And I see, it would be helpful :] Dec 09 22:18:20 has any1 got a hint for my MediaRecorder works, AudioRecord doesn't but the code used to work on another device .. what gives? I get only 0-s :( Dec 09 22:19:06 bluesm: plus I don't buy the excuses for the activity-restart on rotation.. i know about programming for another successful mobile device platform which's name I won't mention right now and there is no problem at all with rotation.. no restarts + proper notification.. Dec 09 22:20:19 ohcibi: Firefox OS ? :P Dec 09 22:20:31 bluesm: ........ maybe 8-) Dec 09 22:21:30 ohcibi: I'm not experience enough to evaluate sb's design : Dec 09 22:21:32 :_) Dec 09 22:24:32 ohcibi: Thank you very very much for your time and effort to teach me something :) Thanks :] Dec 09 22:28:13 okay, then for the easy one: http://pastebin.com/HwZJafgM - the layout.xml, if I move the TextView above the ToggleButton the app crashes - why? Dec 09 22:28:37 If I inflate view... I anyway need to find the views I need to update (say with string data) with "findViewById" ? Dec 09 22:30:04 Hello :) Dec 09 22:30:21 nortwolf: delete bin/ and gen/ Dec 09 22:31:07 I am trying to connect to my server using SSH in my Android application. I am using jsch library. I get an UnknownHostException when I try to run my app. Do you have any idea from where it might come please ? (Permissions are ok) Dec 09 22:31:14 bluesm: findViewById works on any view.. it'll find the subviews Dec 09 22:31:45 hi , what is the best way to make infinite map of a racing game like hill climb ? Dec 09 22:32:01 is there a formula i have to make or manual level development Dec 09 22:32:04 Arkky: this exception is thrown when the host could not be resolved... so your device is either not connected to the internet or you have a typo in the host Dec 09 22:33:07 Thank you all very much have nice day :) Especially ohcibi :] Dec 09 22:33:21 ohcibi: thank you! Dec 09 22:33:25 hi can some one please give me a hint Dec 09 22:33:39 nortwolf : ? Dec 09 22:33:48 nortwolf: next step: drop eclipse, install android studio 8-) Dec 09 22:33:48 hi , what is the best way to make infinite map of a racing game like hill climb ? [04:01] is there a formula i have to make or manual level development Dec 09 22:34:13 is it possible to access the picasso image cache (memory) directly? Dec 09 22:34:24 not out of the box Dec 09 22:34:32 you can give it your own memory cache and keep a reference to it for direct access later Dec 09 22:34:39 chinu: don't repost! people currently online obviously don't know.. I believe this question is more targeted to people who know about game development Dec 09 22:35:11 ohcibi : i just need a clue , if any one can provide ? Dec 09 22:35:13 JakeWharton: damn, any reason you don't do it out of the box? Dec 09 22:35:23 ohcibi: oh, the name threw me for a sec, but there /is/ a linux version .. the old windoze box is: OLD! gotta move the dev-env anyway. A.S. site bookmarked! Dec 09 22:35:28 because most of the time it's an anti-pattern Dec 09 22:35:31 what are you trying to do? Dec 09 22:35:40 chinu: google side-scrolling android... thats what I would do... i dont know anything about game dev Dec 09 22:36:11 trying to run an animation, with one image (lower res) then load the full res image in the background as it's animating Dec 09 22:36:25 is "[ ]" wellformed JSON? doesn't it always need a be surrounded by "{}" at least? Dec 09 22:36:34 well, not full res, but higher res Dec 09 22:36:41 snowpong: no Dec 09 22:36:47 ohcibi: Okay thanks but I got the same exception while entering IP adress Dec 09 22:37:10 snowpong: {} is an object, [] is an array... both valid json Dec 09 22:37:25 ohcibi: OK thanks Dec 09 22:37:27 where can i get the 6u45 bin from WITHOUT first signing up for oracle spam? Dec 09 22:37:28 snowpong: in fact {} is invalid if i recall correctly.. Dec 09 22:37:30 snowpong: http://www.json.org/ .. 2nd example .. but ohcibi is sniping fast today!! Dec 09 22:37:35 seems you need an accout to download java now Dec 09 22:38:03 nortwolf: I somehow cannot let it got right now 8-)) Dec 09 22:38:06 I440r wut Dec 09 22:38:14 need to go to sleep actually 8-)) Dec 09 22:38:25 so I just do it: bye folks Dec 09 22:38:31 ohcibi: heh, I know that feeling! Dec 09 22:38:37 thanks dude - sleep tight! Dec 09 22:38:41 g00s go try download a "previous version" of the SDK. checl the 6u45 linux bin after accepting the licence... you get directed to a login page Dec 09 22:38:53 I440r: whaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaat Dec 09 22:38:58 yup Dec 09 22:39:06 oracle is sticking it to android devs Dec 09 22:39:14 wháaaaaaaaaāt Dec 09 22:39:21 that is SO dumb; Dec 09 22:39:37 I440r i don't get a login Dec 09 22:39:50 I440r: is installing it from malware Dec 09 22:39:53 g00s what are you trying to download? Dec 09 22:40:06 jdk-7u45-macosx-x64 Dec 09 22:40:21 dood thats NOT a "previous version" Dec 09 22:40:26 he sez "previous version" br0 Dec 09 22:40:30 yea Dec 09 22:40:36 try download a version thats useful for android dev lik the 6u45 i specified Dec 09 22:40:36 oh Dec 09 22:40:44 ohcibi: nortwolf: thanks for the pointers - I'd say an endpoint that swaps between the root element being an array or an object (it's a search endpoint) is still kinda bad Dec 09 22:40:46 it's because Oracle wants to install more paid spyware http://www.computerworld.com/s/article/9236273/Oracle_will_continue_to_bundle_crapware_with_Java Dec 09 22:40:46 7u45 is what i use for android Dec 09 22:41:08 im not going to hax0r android to work with java v7 Dec 09 22:41:16 google does not support java 7 Dec 09 22:41:16 it's part of Oracle's mission to "do more evil" Dec 09 22:41:21 java 6 was EOLd thats why they are asking you to log in Dec 09 22:41:25 :) Dec 09 22:41:40 well it buggers up the android devs Dec 09 22:41:53 of course android tooling supports java 7 Dec 09 22:41:58 the the smarties are using it Dec 09 22:42:06 im not a smartie Dec 09 22:42:06 *all the Dec 09 22:42:14 well then. use forth instead :) Dec 09 22:42:41 i already have an arm v6/v7 forth that WILL be turned into a android NDK lib Dec 09 22:43:02 I am trying to connect to my server using SSH in my Android application. I am using jsch library. I get an UnknownHostException when I try to run my app. Do you have any idea from where it might come please ? (Permissions are ok) I've tried using IP and hostname, it's the same Dec 09 22:43:03 but need to write the arm assembler and metacompiler before i do the android version Dec 09 22:43:06 i'm not a smartie either btw Dec 09 22:43:13 but i'm still using java 7 ;) Dec 09 22:43:20 runs fine on my beagle board xm Dec 09 22:43:42 if you have any arm v6/v7 targets you can check it out if you like :) Dec 09 22:43:53 im not sure if it runs on the PI, i b0rked my PI Dec 09 22:45:02 so where can i get the 64 bit linux 6u45.bin from other than oracle Dec 09 22:47:37 Is there a more elegant solution to get gallery (and/or other apps) to remove deleted images from their display, other than broadcasting Intent.ACTION_MEDIA_MOUNTED ? I've tried various combinations of adding/deleting from MediaStore, but this just leaves blank gray areas from the gallery app. Dec 09 22:49:06 g00s any tricks to using java 7 for android? or is it simply install java 7 and your up and running? Dec 09 22:49:25 im not intereted in a HOWTO, if it doesnt "just work (tm)" im not interested Dec 09 22:50:10 well, install java 7, use build-tools 19, set ide compiler level to 7 Dec 09 22:50:25 if you are using gradle you'll have to add a few lines Dec 09 22:51:36 no idea what gradle is and i dont use evilips, i use intelij idea Dec 09 22:51:45 guess i can give it a try Dec 09 22:51:45 but beware if you have a mac Dec 09 22:51:50 ick no lol Dec 09 22:52:00 can't avoid gradle forever! Dec 09 22:52:08 wtf is gradle? Dec 09 22:52:35 gradle is a build system like ant or maven Dec 09 22:52:43 aha Dec 09 22:52:44 meh Dec 09 22:52:56 soon as i get my forth system working i wont be using java :P~ Dec 09 22:52:58 If you're using Android Studio, you're almost certainly already using Gradle Dec 09 22:53:00 ok thats a pipe dream Dec 09 22:53:07 and would only work for rooted devices lol Dec 09 22:53:24 what is android studio? is that a repackaging of eclipse? Dec 09 22:53:39 http://developer.android.com/sdk/installing/studio.html Dec 09 22:53:40 no, it's like a repackaging of open source IDEA, but it's in beta Dec 09 22:53:53 i dont use eclipse EVER. not if bill gates and george soros both offered me their entire personal fortunes Dec 09 22:54:08 oooooh google has adopted IDEA as their suggested IDE now? Dec 09 22:54:14 amg wonders never... .. . Dec 09 22:54:27 umm, it's in beta… it works decently, but they don't promise no bugs yet Dec 09 22:54:58 have they dumped eclipse as the "use this" ide? Dec 09 22:55:17 probably not until beta becomes release(-candidate) Dec 09 22:55:38 cool - its in the todo list then lol. Dec 09 22:55:43 I440r: no, but they're nudging us to try the new IDE Dec 09 22:55:44 i hate eclipse with a passion Dec 09 22:56:12 most people do Dec 09 22:56:43 not TI. TI now uses it as their development system Dec 09 22:56:45 ugh Dec 09 23:00:00 I've got a test where I load a 300x50 image into a web view and use setInitialScale() to scale the image up to fill the WebView. Even if the image is not scaled up all the way, sometimes the WebView thinks it needs to scroll (and just shows blank space), and other times it doesn't. Why is this happening? Dec 09 23:04:32 I440r: Anyway, one of the nice advantages of Gradle is that you can access MavenCentral to automatically grab most libraries through one line of script. For example, this line adds the Picasso JAR "compile 'com.squareup.picasso:picasso:2.1.+'" Dec 09 23:07:36 what's TI ? Dec 09 23:07:47 TexasInstruments is my guess Dec 09 23:09:58 my AudioRecord.read() is returning only 0-s - same code worked on a Samsung Galaxy Tablet, but seems useless on this Lenovo/Lifetab .. any ideas? Dec 09 23:10:51 Can using preferences a lot in an application be a problem for the flash memory? Dec 09 23:10:57 I'm trying to make an app that runs as a background service and triggers a remote view to display some information when the user arrives at a location. Do I have to monitor the location on an interval or is it possible to monitor an existing service that reports a location change? Dec 09 23:12:59 http://developer.android.com/training/location/geofencing.html Dec 09 23:14:51 sjmkem: thanks I'm reading now Dec 09 23:16:30 eclipse is a mess. Dec 09 23:16:56 suffers from being too generic I think Dec 09 23:17:32 I'll take an IDE customized to a specific language, project/solution/debugging pattern over a generic IDE any day Dec 09 23:20:27 yes TI is texas instruments, they use eclipse for their devel on their DSP's etc Dec 09 23:20:30 sux lol Dec 09 23:21:18 If I had visual studio project/solution/debugging for everything I work with, I'd be a real happy programmer Dec 09 23:26:50 Phlow, Have you tried Android Studio? Dec 09 23:26:57 yes Dec 09 23:28:08 Phlow, Do you prefer it over Eclipse? Dec 09 23:28:25 yes Dec 09 23:29:12 should I drop gingerbread support from my app? Dec 09 23:30:47 though, honestly, even android studio's got too much stuff going on. A brand new default project has so much crap floating around. Dec 09 23:34:49 I like things to be very clean and simple. the default android project has a sprawling tree of crap. 1 single source file, but dozens of folders and files everywhere Dec 09 23:35:22 some build related, some ide related, some packaging related Dec 09 23:35:36 some source control related Dec 09 23:54:34 Sorry if this is dumb but I'm trying to import the sample from here: http://developer.android.com/training/location/geofencing.html (GeofenceDetection.zip) and I'm getting a bunch of errors: The import com.google.android.gms cannot be resolved Dec 09 23:55:07 you'll need to dl play services Dec 09 23:59:04 hi guys, what is the best way to connect to SQL Server? Web service or JODBC? Dec 09 23:59:13 WS Dec 09 23:59:42 ok Dec 09 23:59:47 any sample code how to use it? Dec 09 23:59:54 i have a webservice, not sure how to use in android Dec 09 23:59:54 heaps Dec 10 00:00:10 example codes? Dec 10 00:02:02 hello Dec 10 00:22:39 So if I am making a form in my app, which gets submitted on my website, how do I make sure some bad person dosen't get ahold of the url and submit the form over and over with spam and the like? Dec 10 00:23:17 A captcha would be silly, but I'm drawing a blank Dec 10 00:23:59 limited times limit per ip? Dec 10 00:24:16 mmmmmm, yeah Dec 10 00:24:20 *limited sumission # per ip per period of time that is Dec 10 00:24:31 theres ways around but thats ok for noob cracker Dec 10 00:25:21 Should be fine, I'm not expecting anything out of the ordinary, and this dosen't have to be secure either Dec 10 00:26:04 ok Dec 10 00:27:48 What method do certain apps (like SMS apps) create small popup windows that appear over everything else on the system? Dec 10 00:28:19 it's called 'toast' Dec 10 00:29:09 oh, so they capture the toast and move it and paint a new UI inside it? Dec 10 00:29:30 http://developer.android.com/images/toast.png Dec 10 00:29:38 That is a toast? are you thinking of something else/ Dec 10 00:30:39 Eviltechie: http://1.bp.blogspot.com/-CkVJbY1wvSE/T4m7eXNlpZI/AAAAAAACZMw/onzhnAYbUa8/s480/screenshot3.png Dec 10 00:30:56 That is a dialog Dec 10 00:51:33 I finally found a method of replicating the YouTube app style playback without handling configuration changes manually. If anyone is interested: http://stackoverflow.com/questions/4434027/android-videoview-orientation-change-with-buffered-video#answer-20483942 Dec 10 01:16:11 hi, does anyone here have a few minutes to help me with a game i'm working on? Dec 10 01:19:41 hi all.. Dec 10 01:23:52 I have 3 activities: Main, Login and Signup. Main is defined as the MAIN activity in the Manifest. Within OnCreate of Main, I check if user is logged in, if not, I start Login and finish() current (Main)activity. Within Login if user logs in successfully, I start Main and finish(). If user presses signup button, I launch Signup and finish() Dec 10 01:24:33 the problem is this, if the user accidentally pressed signup button and wants to go back to Login so he can log in, the back button jumps out of app and to the android screen Dec 10 01:29:14 why are you finishing? Dec 10 01:35:02 can someone help me override (if possible) public void onTouchEvent (MotionEvent event) form https://github.com/libgdx/libgdx/blob/master/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/AndroidLiveWallpaperService.java ? (libGDX channel is sleeping right now :)) Dec 10 01:35:05 I extend AndroidLiveWallpaperService Dec 10 01:35:19 I have a game that involves a moving ball (bitmap), for testing purposes i've turned off the background to watch all the redraws, and it looks as if all of the redraws are traveling from their previous position to the new one, and each redraw produces another instance that is travelling from its previous position to the next one. Why is this happening? I thought all the images are suppose Dec 10 01:35:19 to be static Dec 10 01:39:07 Leeds, whatever the current activity is Dec 10 01:39:41 dodobrain: on Tuesdays in summer Dec 10 01:40:51 i.e. Main -> Login (Main gets finish()ed), Login -> Signup (Login gets finish()ed), Signup -> Main (if successful signup Signup gets finish()ed) Dec 10 01:41:16 dodobrain: about 12 Dec 10 01:41:44 "why are you finishing?" Dec 10 01:41:52 so the problem is then: if the user accidentally clicked on signup button to lead to the Signup activity, user is unable to press the back button to go back to Login so the user can complete login Dec 10 01:42:18 Leeds, good question. i thought activities should be finished otherwise they linger around in the stack.. Dec 10 01:42:52 for example, if i didn;t finish the Main activity in the start, the stack could be: Main -> Login -> Signup -> Main Dec 10 01:43:10 and now the user can press the back button to go back to the signup activity from the main screen! Dec 10 01:43:19 and isn't your problem that the stack isn't working? Dec 10 01:43:26 yes Dec 10 01:43:41 actually it works.. just not exactly how i want it to Dec 10 01:44:00 so what you're saying is that you're trying to manually remove all old activities from the stack, then when the user tries to walk back along the stack there's nothing there? Dec 10 01:44:16 meh Dec 10 01:47:31 for example, i could comment out finish() when i move from the Login activity -> Signup Activity, but then after user has successfully signed up and I jump to Main (Signup gets finish()ed) but user can still press back button to go back to Login from the Main activity! Dec 10 01:49:43 rather than starting main from signup, why not just finish signup and let it go back to the first main? Dec 10 01:53:12 alex_PP, Main -> Login -> Signup (f)-> Main is this what you are suggesting? Dec 10 01:53:12 (f) indicates finish() being called while switching with intent Dec 10 01:54:33 Main -> Login -> Signup Dec 10 01:54:42 finish login and signup Dec 10 01:54:52 you're back at main with no junk on the stack Dec 10 01:54:59 precisely ! Dec 10 01:55:18 i want to know how i can finish() Login when i am switching from Signup to Main Dec 10 01:55:32 i.e. i need the parent activity in the stack Dec 10 01:57:24 use startActivityForResult and onActivityResult in login so you know when sugnup is done Dec 10 01:57:30 *signup Dec 10 02:00:57 interesting.. i didn;t know about this.. i'll try it now Dec 10 02:10:18 anyone know why every redraw of my ball bitmap looks like it's moving? Dec 10 02:10:38 hello Dec 10 02:10:48 can tabs be customised at their size and font ? Dec 10 02:11:24 <_Auron_> ml417: because it's position each frame is different? Dec 10 02:11:56 anyone know any good tutorials for android testing? Dec 10 02:12:08 wouldn't that result in a bunch of stationary balls though? Dec 10 02:12:26 it looks as if each redraw is moving Dec 10 02:12:26 ml417, what Dec 10 02:12:29 oh Dec 10 02:12:44 <_Auron_> ml417: how are you drawing it? any code you can paste (use pastebin or similar) Dec 10 02:13:04 <_Auron_> if you're drawing based off a transform matrix you probably aren't resetting the matrix each frame Dec 10 02:13:50 i'm using canvas.drawBitmap(bitmap, float, float, null) Dec 10 02:14:59 only time i have a transform matrix is when i resize the bitmaps, which the ball isn't even being resized Dec 10 02:16:02 <_Auron_> we'd need to see code then Dec 10 02:16:30 it's a group project for one of my classes, so it's probably terrible code Dec 10 02:16:40 <_Auron_> most code is terrible Dec 10 02:17:06 especially if written by 5 guys without any android coding experience Dec 10 02:20:08 ml417, you're working on an android app with 4 other people? Dec 10 02:20:29 yup, class project Dec 10 02:20:53 we have 2 people with c++ experience, and 3 with java Dec 10 02:21:13 ml417: that's still cool though, if everyone pulls their weight Dec 10 02:21:31 i'd like to work on a side project with other people, but mine have always been solo Dec 10 02:21:45 http://pastebin.com/rRTXB9gF Dec 10 02:21:48 yeah, it's been crazy Dec 10 02:22:02 i just spent the entire weekend from friday to sunday in the library Dec 10 02:22:15 iii, nice variable name Dec 10 02:22:27 learned from a c++ tutorial i read online Dec 10 02:22:42 i is terrible when trying to use ctrl+f Dec 10 02:23:27 why would you identify a loop by the iterating variable? maybe try the function it's in Dec 10 02:24:31 most for loops just call int i=0 that is kept in scope Dec 10 02:24:42 at least from the code i've seen Dec 10 02:25:05 yes, i know. i'm saying you could search for the enclosing function's name instead Dec 10 02:25:46 it's just easier for out of bounds exceptions personally Dec 10 02:26:04 i can just ctrl + f each place the iteration is calledj Dec 10 02:26:28 Anyone know a free app that has long press physical search to bring up their app? Dec 10 02:26:53 Anyone know how to deal with dexopt failures related to small buffer size? Dec 10 02:27:37 <_Auron_> ml417: line 40, mGameBoard.rePosition(); Dec 10 02:27:42 <_Auron_> what's that do? Dec 10 02:28:28 that's what sets the new position for the ball as well as calls the collision detection Dec 10 02:28:44 also, reposition is actually a word :P Dec 10 02:28:44 basically changes the mXCenter and mYCenter Dec 10 02:28:53 i didnt write that one Dec 10 02:29:33 that's the only thing i don't like about working with multiple people on the same project... style differences Dec 10 02:29:36 <_Auron_> well I'm thinking something in that method is causing your ball to 'move' incorrectly Dec 10 02:30:32 it doesn't have any draw methods in it though Dec 10 02:30:37 it just controls the movement speed Dec 10 02:31:05 oh and seand, you should of seen my teammate's collision detection code, he was using 3 arrays to keep track of the position of the ball Dec 10 02:31:41 i literally had kept part of his code open as a reference to what i was trying to rewrite into something that has variable names Dec 10 02:32:33 hmm 3 arrays, sounds like he wanted to be really sure he had the correct position lol Dec 10 02:33:23 the collision detection is still a mess, but i'm trying to rewrite the way the velocity is calculated first to better control it Dec 10 02:38:44 is SL4A still being improved Dec 10 02:41:27 my game has so many issues left, and we're presenting tomorrow XD Dec 10 02:42:11 software has bugs Dec 10 02:42:21 demo around them Dec 10 02:42:30 whelp, i just broke the collision detection again Dec 10 02:42:36 ones that prevent demo around them, fix first Dec 10 02:43:12 problem is that my biggest issue is way beyond anyone in my team's understanding Dec 10 02:43:46 that is a problem Dec 10 02:44:19 yeah, luckly it's a class, so there is only about 5% of our grade depending on it Dec 10 02:46:15 i need to figure out a good method to test if the collision is happening in the x direction or y direction Dec 10 02:49:43 output to logcat Dec 10 02:50:17 no, i mean for the collision detection Dec 10 02:50:33 need to change the x or y velocity based on direction of collision Dec 10 02:51:08 don't you already know the angle? Dec 10 02:51:57 the way i have it work is that it takes my current position, adds the velocity, then checks the new coordinates if there is a collision Dec 10 02:52:18 collisions are done by a grid system Dec 10 02:58:37 is there a method to get the width of a bitmap? i only saw a .getHeight() Dec 10 02:59:26 let me guess Dec 10 02:59:32 umm. .getWidth()? Dec 10 02:59:49 i didn't see it going through the android SDK **** ENDING LOGGING AT Tue Dec 10 02:59:58 2013