**** BEGIN LOGGING AT Mon Sep 09 02:59:58 2013 Sep 09 03:39:06 how can I format a shared preference return string? Sep 09 03:39:26 what? Sep 09 03:39:26 lol Sep 09 03:39:27 http://ideone.com/HgB37y Sep 09 03:39:35 First is update operation that fails. Sep 09 03:39:41 second method is for delete operation.. which is almost exactly similar... but works. Sep 09 03:39:44 I've been trying this but it's throwing an illegal argument exception Sep 09 03:39:44 Using Sqlite btw. Sep 09 03:39:45 additional_federal.setSummary(df.format(PreferenceManager.getDefaultSharedPreferences( Sep 09 03:39:45 getActivity()).getString(ADDITIONAL_FEDERAL, "0"))); Sep 09 03:40:00 Napalm, Hi! you helped me last time as well, Few weeks ago. Sep 09 03:40:05 I hope you might this time too! Sep 09 03:42:13 Anyone have any idea about this error message when querying the inventory for a google play purchase? http://pastebin.com/98wLp0C9 Sep 09 03:42:27 Using libgdx; that's why you see GL errors Sep 09 03:43:01 in a fragment, I am using getActivity().findViewbyID, however, I get a warning "may produce NullPointerException". Is there a better way to do this so I don't have any problems? Sep 09 03:44:56 epsilonorion: why don't you create a view and use view.findViewByID Sep 09 03:45:09 view = getActivity().getLayoutInflater().inflate(R.layout.dialog_deduction_editor, null); Sep 09 03:46:09 Rescue9: break up your line into multiple lines, run again, look at at stack-trace, it will tell you what line your error is on.. but i suspect its your df.format() what is it? Sep 09 03:46:26 trying that now Napalm. Sep 09 03:48:25 epsilonorion: that code is correct, so to speak. it's a lint warning that getActivity() can return null if the fragment is not attached. Simply do Activity activity = getActivity(); if(activity != null){ blah = activity.findViewById(123); }; Sep 09 03:50:48 Yomic: you cant call consumePremium() on the GL Thread.. that would be silly anyway. post your code back to the UI Thread. Sep 09 03:52:59 Josh-: well the obvious is that your remove is converting the int id to a String using Integer.toString() your other is using String.valueOf(); perhaps its a large int and one formats with a minus sign or similar Sep 09 03:53:32 Josh-: You should use Integer.toString(id); Sep 09 03:54:14 Napalm, I'm not sure I know how to do that. Libgdx set up the threads for me I believe Sep 09 03:54:45 Josh-: wait a moment, your updateReminder is using ri.getId(); and your removeReminder() i using the id parameter. Sep 09 03:54:54 And I guess that makes sense, though most libgdx logic is done in the render() of the GL thread Sep 09 03:54:55 Josh-: so, its probably related to that Sep 09 03:55:15 Napalm, Nope, I switched all that same as Remove reminder, didn't helped. Sep 09 03:55:38 Napalm: thanks... sometimes it's just in knowing how to troubleshoot. I was trying to format a string instead of a number. Sep 09 03:56:06 Yomic: create a Handler() as a private member of your view and the call handler.post(new Runnable(){ ... }); with your code Sep 09 03:56:25 Napalm, Sep 09 03:56:36 yus Sep 09 03:56:37 Napalm, alright; That should get me going :) Sep 09 03:56:40 Thanks Sep 09 03:58:22 Josh-: did you verify the id you pass in and the id from ri.getId() are the same.. use Log.d("Reminder", id + " : " + ri.getId()); in your updateReminder function at the top.. see what you get Sep 09 03:59:44 Napalm, But if I feed the same id to remove method, it happens to actually delete the right thing. Sep 09 04:00:36 Josh-: it is possible that your database does not have the DBCreateOrOpen.REMNAME field. Sep 09 04:01:08 Hmm... shouldn't be possible as insert operation succeeds. Sep 09 04:01:35 Josh-: then is your getMessage1() returning null? Sep 09 04:03:36 support agent on duty tonight: Napalm Sep 09 04:03:39 thanks again! Work beckons Sep 09 04:03:50 pfn: google should pay me :D Sep 09 04:04:05 ikr?! Sep 09 04:04:13 infact, google should have paid people in here to promote good app code Sep 09 04:04:23 pfn: waa? Sep 09 04:04:45 btw, i mean google employees, not random people Sep 09 04:04:50 I know right?! Sep 09 04:04:58 ah Sep 09 04:05:02 pfn: you too :D Sep 09 04:10:41 I asked a bit before my computer froze: in a fragment, I am using getActivity().findViewbyID, however, I get a warning "may produce NullPointerException". Is there a better way to do this so I don't have any problems?...... Rescue9 asked me why I dont create a view and use view.findViewByID....I have this code in the onStart function and not the onCreateView function. Would it be better to store the view from that function in a Sep 09 04:10:41 global??? Sep 09 04:12:10 it's a member, not a global Sep 09 04:22:39 any ideas on how to quickly load app changes to multiple devices? Sep 09 04:23:15 currently I have to click debug and reconnect the target device each time i want to test a change Sep 09 04:24:11 script it up with adb Sep 09 04:24:20 I think android studio will let you launch on all too Sep 09 04:24:30 really? Sep 09 04:24:41 I'll have to look for that (too tired now) Sep 09 04:25:18 I usually have to reattach the usb cord to fix adb from hanging Sep 09 04:26:22 The app tries to make a bluetooth mesh network with 4 or 5 devices Sep 09 04:30:34 Napalm: Hey, I just saw your response to my question. I have used this code before and it worked perfectly fine for me. I was just curious if there was a cleaner way to do it. I hate seeing so many warnings. Sep 09 04:39:16 just disable nullability warninga Sep 09 04:39:40 otherwise, null check everything Sep 09 04:40:37 and yes, storing the view as a member is fine, as long as your life cycles are in sync Sep 09 04:42:59 thanks Sep 09 04:50:19 Napalm: What you suggested up there worked like a charm, thanks again! Sep 09 04:58:21 Napalm, http://ideone.com/BPsjEu Sep 09 04:58:34 checked almost everything for null... Sep 09 04:58:39 Everything is not null Sep 09 04:58:43 Still I get NPE Sep 09 04:59:14 loool Sep 09 04:59:23 :D Sep 09 04:59:31 Josh-: the stack-trace in LogCat tells you what line your NPE is on Sep 09 05:00:11 Josh-: remove your try-catch and then run and let the app crash Sep 09 05:00:18 oh ok Sep 09 05:00:19 you will then see the line number in logcat Sep 09 05:03:36 Hmm, wonder how I can filter out the exact thing. I mean Would the log contain "NPE" "Null pointer" or something such. Sep 09 05:05:30 omg Sep 09 05:05:44 Napalm, http://ideone.com/X5rGhC Sep 09 05:06:06 com.example.Reminder.DBIO.updateReminder(DBIO.java:73) Sep 09 05:06:10 tada Sep 09 05:06:26 Well, I know its in that function @_@ Sep 09 05:06:32 I even know its on the call of update. Sep 09 05:06:36 But I don't know why! Sep 09 05:07:44 I do have primary key on ID btw. Sep 09 05:07:52 looks like its because the database is locked perhaps Sep 09 05:09:21 nope Sep 09 05:09:23 Napalm, Well, The delete operation works, Does that mean, it can delete even if db is locked? Sep 09 05:09:24 :P Sep 09 05:09:27 Josh-: your database is closed Sep 09 05:10:51 Josh-: dco is a SQLiteOpenHelper? Sep 09 05:10:59 Yep. Sep 09 05:12:27 looks like your not accessing the database correctly Sep 09 05:12:46 hmm Sep 09 05:13:16 remove your close statements for a moment.. look what happens Sep 09 05:13:24 What is the toolbar at the bottom of the Gmail app called? http://www.abstractpath.com/wp-content/uploads/2013/01/Screenshot_2013-01-01-02-06-27.png Sep 09 05:13:30 Is that a split Action Bar or something else? Sep 09 05:13:44 Napalm, As in, sd.close() right? Sep 09 05:13:57 yes Sep 09 05:14:04 comment them out Sep 09 05:14:05 all of them Sep 09 05:14:22 BHSPiMonkey: split actionbar Sep 09 05:14:47 BHSPiMonkey: but, I believe gmail has just created its own view Sep 09 05:15:12 Napalm, Aye sir, but give me a word of advice, when you close sd.. does it close your DB as well? Sep 09 05:15:23 yes Sep 09 05:15:33 I thought it is just to close the link between, SQLiteDatabase sd = dco.getReadableDatabase(); Sep 09 05:16:29 Well, then when you do SQLiteDatabase sd = dco.getReadableDatabase(); or SQLiteDatabase sd = dco.getWritableDatabase(); Sep 09 05:16:37 Shouldn't it get automagically opened again? Sep 09 05:16:57 since the database is cached, you close it, if another thread is using the object, you will get a npe Sep 09 05:17:24 Gotcha. Sep 09 05:17:26 just call close(); when your dco object is out of scope Sep 09 05:17:28 I commented all. Sep 09 05:17:32 okies Sep 09 05:17:37 if you really want to use close like that Sep 09 05:17:37 Let's see. Sep 09 05:17:38 you can Sep 09 05:17:45 but you need to add a reference to the database Sep 09 05:18:07 sd.acquireReference(); Sep 09 05:18:07 Napalm, You were right. Sep 09 05:18:10 Thank you very much. Sep 09 05:18:14 Seriously very much. Sep 09 05:18:14 and then use sd.releaseReference(); Sep 09 05:18:17 Ah Sep 09 05:18:32 once no more references are around the database is closed Sep 09 05:18:38 Gotcha. Sep 09 05:18:57 I thought, opening it whenever needed and closing it at the end of that method would be a good idea. Sep 09 05:19:12 nope definatly not Sep 09 05:19:13 Considering its a reminder application and you don't constatnly add / remove/ edit reminders daily. Sep 09 05:19:24 Or even constantly. Sep 09 05:19:39 Josh-: imagine the amount of time it takes to load the database and close it and sync the file. Sep 09 05:19:40 hows it going Napalm Sep 09 05:19:45 hey g00s Sep 09 05:19:56 not too bad, just playing with the nexus wireless display stuff Sep 09 05:19:58 Napalm, I imagined the amount of RAM it takes when db is open Sep 09 05:20:09 Maybe I was/am still wrong :) Sep 09 05:20:15 But really thank you very much. Sep 09 05:21:20 Josh-: programming is always about the memory/processing-time trade-off Sep 09 05:21:40 Aye. Sep 09 05:21:54 But I was aiming at lowering the ram as it is reminder app Sep 09 05:21:54 Josh-: think about this, if you open the database while your Activity is in a resumed state, and close it when its paused.. it only lives in memory while it needs to be used. Sep 09 05:22:06 Aye sir. Sep 09 05:36:15 Napalm, Although, surprisingly, delete still works if I uncomment all close statements. Sep 09 05:36:21 how delete works in a closed database? Sep 09 05:36:44 Ah Sep 09 05:37:17 Maybe it does because, I am not calling, getReminder method in the method that removes reminders... Sep 09 05:37:33 as getReminder closes db Sep 09 06:29:36 is it possible to download your old apk's from the developer console on google play? Sep 09 06:52:30 morning all Sep 09 06:52:37 how goes this fine morning Sep 09 07:43:32 is it possible, if i'm going to put out a disruptive update, to disable 'auto update' for people that may have that enabled in Play settings ? Sep 09 07:46:40 If the permissions changed, it's disabled. Sep 09 07:48:38 yeah, but what if no permissions change :P Sep 09 09:05:43 i'm trying to learn android dev, but i'm stuck at one project. i want to create a basic remote desktop app to access certain features of my PC from my phone. Sep 09 09:06:04 what technology can i use to exchange data between the two? Sep 09 09:06:17 i'm sort of lost here Sep 09 09:10:33 remdes111: You should consider if you want to write a program on your PC too, or if you want to use existing programs. You could use a web server or a network file system, etc. Sep 09 09:11:32 remdes111: If you write your own program on the PC too, then you will use IP (TCP or UDP) to communicate between both your android and your PC program. Sep 09 09:11:54 hi all, i'm trying to learn how to use intent receiver but i've some problem with this Sep 09 09:12:11 http://pastebin.com/mW75Rh4C Sep 09 09:12:26 remdes111: you will have to design a protocol. Knowing about some internet protocols will help design yours. Read rfc2821 and rfc2616. Sep 09 09:12:50 the fact is that i want that the program show a toast in the screen when the power is disconnected also if the application is close Sep 09 09:14:37 remdes111: on the PC you would use the socket API on unix (linux, macosx). I don't know about MS-Windows. on Android, you can use http://developer.android.com/reference/java/net/Socket.html Sep 09 09:41:08 Hi. Is it true that Dashboard-design is not anymore up2date and should not be used/replaced with a sidebar design like facebook uses? Sep 09 09:46:27 yes Sep 09 09:49:01 Okay. Is there an easy way to integrate such design with fragments with compatibility to 2.1>? Sep 09 09:49:16 yes Sep 09 09:52:53 Okay Sep 09 09:57:56 hi, i'd like to launch my app from my device, however it is not shown up in the devices list.. the api is compatible and i turned on all developer settings in the devices settings... what could be wrong? Sep 09 09:58:31 Is it plugged in? Sep 09 09:58:49 It does not need to be plugged in if you use adb over wifi Sep 09 09:59:07 Anyway, go to sdk/platform-tools/extras and run adb devices to see if it's listed Sep 09 09:59:23 lol 8-)) its plugged in of course... i replugged it and now its there... Oo Sep 09 10:00:01 In some cases adb/connection just crashes. You can restart the Server by using adb kill-server or restart-server. Better use Android Studio which does this without any dos-prompt Sep 09 10:00:33 is it stable enough already? Sep 09 10:01:18 I think so. I use it in a very big project since weeks and i'm happy. There is just some stuff missing like Manifest-Editor but it has some very cool stuff. And with the newest lint its absolutly powerfull Sep 09 10:01:56 And i like the "generate Signed apk" which has a password-store and can do all within 1 click. It's great for nightly builds Sep 09 10:20:13 Hi, I'm trying to have a custom listView which returns a list of profile pics and names when searched in an edittext field. It only works when I type in odd names with few results but any common names would just take forever, the screen stays blank. Also the picture thing doesn't work for some reason http://pastebin.com/gKtSQ6xH Sep 09 10:21:40 On a Filter (for a ListView) how can I get the ArrayList on the Adapter? Sep 09 10:29:16 anyone? Sep 09 10:38:23 where is everyone Sep 09 10:39:33 Away programming. Sep 09 10:42:00 CocoStorm, I don't know if fecesbook crap apis support it but try to load only a few responses at a time Sep 09 10:43:32 Zharf, how do you mean Sep 09 10:54:58 Zharf, I've limited it to 5 and it worked for the first two names i inserted then everything stopped working Sep 09 10:55:04 plus the image thing doesn't work at all Sep 09 10:55:49 in my logcat I get lots of WAIT_FOR_CONCURRENT_GC blocked Xms Sep 09 10:55:49 can't be a good thing right? Sep 09 10:56:30 Blocking 'cause of the GC is usually a bad thing. Sep 09 10:57:00 yeah :P Sep 09 11:00:24 I can't figure out what the problem is though Sep 09 11:00:29 where to start hm Sep 09 11:02:22 Tried the allocation tracker? Sep 09 11:04:25 hi! is it possible to register an application's service with ServiceManager, using ServiceManager.addService(..)? Sep 09 11:04:45 or it is possible only for system services? Sep 09 11:05:20 Nilium, I've never tried it before, guess now is the time. I'll youtube it :) Sep 09 11:05:53 Nilium, but other than that there's nothing else obvious that could be causing it? Sep 09 11:07:26 Allocating a ton of stuff or stuff that uses a lot of memory does it. Sep 09 11:07:39 Which is kind of the general and bad explanation 'cause it's 4am. Sep 09 11:08:05 But anyway, I assume you know where you're allocating stuff already, so that's where you'd look. Sep 09 11:08:50 Yeah for sure, thanks Nilium will have a look Sep 09 11:22:22 hi Sep 09 11:22:46 anyone know anything about writing your manifest file Sep 09 11:22:50 im abit confused Sep 09 11:26:32 yes. Whats up with your manifest file? Sep 09 11:26:48 oles, do oyu mean registereing while runtime without putting it in the manifest? Sep 09 11:27:31 i think (s)he is trying to run code not declared in manifest, which is a no go Sep 09 11:28:07 indeed. Well, it's possible. I made such "dynamic modules" in my app a few days ago. Sep 09 11:28:23 you managed to start an activity/service not in your manifest? Sep 09 11:28:50 My guess would be it was essentially another app that did have the rights Sep 09 11:29:01 Just build a dynamic service which can process several stuff. My service prelaods some dummycode and grab the "real code" form a json or contentprovider Sep 09 11:29:15 the service is declared in the manifest, yea Sep 09 11:29:51 misterli, i mean it could be accessed through ServiceManager.getService(name) and be visible in "adb shell service list" Sep 09 11:29:56 ah, creating your own runtime seems eh Sep 09 11:30:18 Oh. Now i got it. You want to access a Server created by another app which is not shared Sep 09 11:30:22 "Service Sep 09 11:32:19 how does the dashclock thingy work? Isn't that code that doesn't ship with the original app? Sep 09 11:37:57 misterli, any ideas? Sep 09 11:52:33 is there a good way to detect when everything has been rendered and the UI is fully ready for user interaction? Sep 09 11:54:10 good morning all. Sep 09 11:54:48 i need help with initial setup of the android repo tool. went to #android and they suggested i come over here Sep 09 12:01:12 i cannot download android source code. need help with initial setup of android repo tool Sep 09 12:03:01 LambdaFox, what platform do you use? Sep 09 12:05:52 running a VM with Ubuntu. Python 2.6 is installed, cause i am trying to get Froyo Sep 09 12:07:12 supposedly when i issue the repo init -u https://android.googlesource.com/platform/manifest -b android-2.1_r2.1p2 Sep 09 12:07:27 it is supposed to ask me for a user name and email Sep 09 12:07:42 it does not it just goes back to the sysprompt w/o any error Sep 09 12:10:28 LambdaFox, does VM have a direct connection to the internet> Sep 09 12:11:05 ? Sep 09 12:11:26 I am able to install software etc. I installed and use Firefox within the machine for instance. does that answer your question? Sep 09 12:13:04 hello Sep 09 12:13:17 hi jagruti Sep 09 12:13:33 LambdaFox: is it a direct connection though Sep 09 12:13:37 or is there a proxy Sep 09 12:13:45 means? Sep 09 12:13:49 no proxy, but i do use a VPN Sep 09 12:17:02 for y'all using google analytics, etc: any perf hit based on how extensively you report/log things? Sep 09 12:17:49 jagruti_:yes Sep 09 12:24:42 Hello everyone. Hope you dont mind me too much for bumping in for a short question. Sep 09 12:26:22 I'm currently writing an AppWidget using a ViewFlipper (since the app i'm writing and it's widget are supposed to support from API level 8, so cant use an AdapterViewFlipper.) but i'm having trouble finding any reference to how to acces/capture vertical-gesture events. Does anyone happen to know where i could find some leads? Sep 09 12:27:19 widgets only accept clicks, not gestures Sep 09 12:28:02 ypo Sep 09 12:28:43 api11+ accepts scrolling, and that's it Sep 09 12:29:35 Thanks PFN, that confirms my suspicion :) Sep 09 12:30:12 The AdapterViewFlipper would support this though? then ill just make different api-level versions of the widget. Sep 09 12:30:56 I suppose, yes Sep 09 12:34:57 Hi everybody! Is there a way to access resources via R when I am not in an Activity? Finding a lot on google and SO, but nothing that really helps, since R seems to be a commen source of error... I would like to do something like this in a class: "MeshFactory sphereFactory = new MeshFactory(mActivity.getResources(), R.raw.sphere);" Sep 09 12:36:13 evident: you need a Context or the Resources object Sep 09 12:36:52 if you elect to give a Context, I would recommend picking ApplicationContext, since this is constant as long as the process is alive and can safely be cached wherever Sep 09 12:36:57 alankila: but the thing is that it doesn't know the R.raw.sphere, because R is not resolved in that class... but I cannot import R Sep 09 12:37:10 what? of course you can import R. Why can't you import it? Sep 09 12:37:38 or is this some external jar by chance? In that case you must pass resource integers in Sep 09 12:38:21 well everywhere I have read is that I cant import my package's R into a class since this will crash make then... is this wrong? Sep 09 12:38:46 is whatever file youre trying to access for 100% sure in the same apk's res/raw folder? else the reference is wrong. Sep 09 12:38:48 make? Are you compiling android application by make? Sep 09 12:39:17 well not the "make", but the build^^ Sep 09 12:39:27 sorry, coming from C... Sep 09 12:39:38 well I don't think that is accurate. R is just a simple autogenerated class full of subclasses that have constants which are all integers Sep 09 12:39:48 there is nothing special to it. Sep 09 12:39:57 just a bunch of static ints Sep 09 12:40:01 other than that it's very weird class and that the android build system prepares it from the resources the first thing it does. Sep 09 12:40:44 hmm ok thank you... I'll try around and look for my error :) Sep 09 12:41:22 hint: the error message generally tells you what the error is ;-) Sep 09 12:42:00 good afternoon! Sep 09 12:51:43 good morning Sep 09 12:52:01 good night Sep 09 12:53:34 sorry, i forget the nick of who was helping me... Sep 09 12:54:21 i disconnected the VPN and was able to determine that I have git 1.7.0.2 installed, and i need 1.7.2 Sep 09 12:54:34 thank you for your help! Sep 09 12:59:42 hello, whats the best / most battery-efficient way to schedule multiple background-tasks ? at the moment i have ~ 5 diffrent threads running to handle the diffrent intervals. i assume thats not the best way ? Sep 09 13:01:55 if the threads are sleeping while not doing anything, then their impact to battery should be minimal. Sep 09 13:03:00 lmbd, AlarmManager Sep 09 13:03:09 lmbd, everything else will cause you wierd problems Sep 09 13:03:27 lmbd, do you have to do background stuff also when phone is locked? Sep 09 13:04:45 yep, at the moment im invoking my "hacky" threads from a service and holding them all the time alive Sep 09 13:07:06 lmbd, well the OS will shutdown the CPU and everything will stop ;) Sep 09 13:07:39 lmbd: CachedThreadPoolExecutor Sep 09 13:08:07 so your idea would be setting up an alarmmanager from my service ? can one alarmmanger handle multiple alarms to start recurring tasks with diffrent intervals? Sep 09 13:08:18 HI all, how can I create a calendar week layout like this? http://www.e-sites.nl/files/thumb/w/e/Nieuws_auto_auto_c734_c551_q_weekcal-slider-1.png Sep 09 13:08:29 Using a gridview of what shoud be the best option? Sep 09 13:08:36 lmbd, anyway, what you do is you schedule an AlarmManager with times, after your service is started you grab a wakelock, do your work, release wakelock and stop the service Sep 09 13:08:46 alarm manager can schedule any number of alarms :) Sep 09 13:08:55 it's a system-wide service made for just this use-case Sep 09 13:09:00 FrancescoV: fixed quantity of items, use a GridLayout Sep 09 13:09:06 so you can schedule timed execution without killing people's battery :) Sep 09 13:09:17 nseidm1: tnx :) Sep 09 13:14:58 Mavrik, thanks, will look into it Sep 09 13:21:56 hi, what's the reason for this output of adb (i'm using oppo find 5 and i added usb id to adb_usb.ini) Sep 09 13:21:56 $ adb devices Sep 09 13:21:56 List of devices attached Sep 09 13:21:56 ???????????? no permissions Sep 09 13:23:50 deanrock0, missing udev permissions for adb server Sep 09 13:24:22 deanrock0, decribed here: http://developer.android.com/tools/device.html#setting-up Sep 09 13:26:03 thanks, i forgot to do "chmod a+r" Sep 09 13:39:23 hi Sep 09 13:39:30 hows evryone Sep 09 13:39:39 got a couple of questions about the manifest file Sep 09 13:40:03 if i use a feature nut it is not required to run should i still claim it in the manifest Sep 09 13:40:05 for instance Sep 09 13:40:27 if i use GL_OES_compressed_ETC1_RGB8_texture compression Sep 09 13:40:37 but for devices with opengl1 Sep 09 13:40:43 i have a fallback to Sep 09 13:41:04 RGB565 on the fly Sep 09 13:41:28 do i still have to write i use feature GL_OES_compressed_ETC1_RGB8_texture Sep 09 13:41:45 or will me app still be allown in store without that decleration Sep 09 13:41:53 javaDon, it will be allowed Sep 09 13:42:06 so i should leave it blank your saying Sep 09 13:42:13 not write tha bit Sep 09 13:42:16 ? Sep 09 13:42:17 javaDon, but I suggest you just mark it as required=false Sep 09 13:42:26 or play store will filter it on devices without that feature Sep 09 13:42:55 so i have to write that i use it though? Sep 09 13:43:02 it's a good idea Sep 09 13:43:09 javaDon, for GL textures you should actually list all supported Sep 09 13:43:18 so multiple supposrts-gl-texture entries Sep 09 13:43:25 not required, that's for other features, sorry :) Sep 09 13:45:11 this one GL_OES_compressed_ETC1_RGB8_texture Sep 09 13:45:31 supports all on opengl2 but i have a fall back for when its opengl1 Sep 09 13:45:49 available in all Android-powered devices that support OpenGL ES 2.0. Sep 09 13:46:06 but i also have a fallback so ill just write it like this thenn? Sep 09 13:46:14 Sep 09 13:46:33 ? Sep 09 13:46:54 sorry im nervious its my first app im about to release on thrsday Sep 09 13:47:05 javaDon, no, not required here Sep 09 13:47:06 just dealling with the manifest files at the moment Sep 09 13:47:09 javaDon, check this: http://developer.android.com/guide/topics/manifest/supports-gl-texture-element.html Sep 09 13:47:16 list all texture formats you support Sep 09 13:47:17 How can I get the ArrayList of an ArrayAdapter on the Filter? Sep 09 13:47:23 if you have a fallback, list the fallback format. Sep 09 13:47:54 RGB565 Sep 09 13:48:20 i think i can just leave that out then its not necessary Sep 09 13:48:30 of course it is Sep 09 13:48:36 aren't you listening? Sep 09 13:48:56 if you don't list it, Play Store will not show your app on devices that don't support ECT1_RGB8 Sep 09 13:49:29 are those RGB565 textures compressed? Sep 09 13:50:27 no there normal images Sep 09 13:51:48 Mavrik i meant if i leave the tag out the play store wont filter it does that mean it wont show up at all or does that mean it wont be allowed to be published? Sep 09 14:04:51 is the _id column a must? Sep 09 14:06:19 Why when I press an ActionBar button it opens two Dialogs instead of one? Sep 09 14:08:18 Good afternoon! Does anyone have experience working with the settings app? I'd like to add a new header and store some custom settings. Is there any documentation on how I should approach this? Sep 09 14:09:12 Sorry. That was intended for #android-root Sep 09 14:10:21 if i say Sep 09 14:10:23 android:targetSdkVersion="17" Sep 09 14:10:31 does that mean anything above it wont work? Sep 09 14:10:45 hi.. we set our minSDKVersion to api 8, but I'd like to use Uris getQueryParameterNames() which is only available from api11 and above.. is it somehow possible to include the Uri in the version I need it as external dependency? Sep 09 14:11:13 or is that just a target that anything under android:minSdkVersion="8" wont work Sep 09 14:11:33 that's not clear to me either Sep 09 14:11:55 android:targetSdkVersion necessary? Sep 09 14:12:02 javaDon, target just tells play store and android for which Android did you compile your stuff Sep 09 14:12:10 and how to apply compatibility stuff Sep 09 14:12:16 ok Sep 09 14:12:20 I suggest you set target to something like 17 if that's what you were using Sep 09 14:12:26 so itr will still show it for above theose? Sep 09 14:12:37 or you might get compatibiltiy options applied on newer androids Sep 09 14:12:38 yes. Sep 09 14:13:07 what do you might might get compatibility options applied? Sep 09 14:14:07 Why when I press an ActionBar button it opens two Dialogs instead of one? Sep 09 14:15:32 erm Sep 09 14:15:44 what about opengles Sep 09 14:15:55 im using 2 but it uses 1 if 2 is not available Sep 09 14:15:59 is a filter necessary? Sep 09 14:16:27 im guessing not Sep 09 14:17:44 zyngawow: maybe something doesn't work well Sep 09 14:19:42 hi all, i have a question about adb and its file pulling/pushing Sep 09 14:21:16 is it possible to access /data/data with a rooted device using adb pull/push, and if so, how would i go about doing it Sep 09 14:23:15 nb-ben, yeah, I guessed that Sep 09 14:38:13 Hi all, how shoud you make this layout? http://tinypic.com/view.php?pic=x3x2qp&s=5 Sep 09 14:41:07 Currently, the grid is a RelativeLayout with Views. I need to have a fixed height between the hours to add custom views later. Can I make a background that is made with lines like the screenshot? Sep 09 14:58:11 manufacturers aren't allowed to mess with the Theme.Holo styles are they? Sep 09 14:58:24 nop Sep 09 15:02:50 Is there a way to make my app never be stopped, unless you restart the device. And when you start the app again after restart you cant quit again. Sep 09 15:03:38 follow up question, does samsung release the source of their android modifications? Sep 09 15:04:52 Snoxie, I sure hope not :D Sep 09 15:04:58 funkbox, no. Sep 09 15:05:53 Mavrik really? :( Sep 09 15:06:36 Snoxie, you can probably register the app as launcher, set it as default Sep 09 15:06:47 Snoxie, also check device administrator options Sep 09 15:06:59 But what happens when you restart the device then? Sep 09 15:07:18 it starts the default launcher. Sep 09 15:07:42 that works only if you control the device btw Sep 09 15:22:23 samsung definitely fucked with at least Widget.Holo.ProgressBar Sep 09 15:24:35 hello, i'm looking for something to choose between hardware or software decode for the VideoView, actually i use hardware but i want to force software. is there a param or something like ? i have read a lot of class into the reference and looking into global settings but nothing :/ Sep 09 15:30:16 Mavrik you still here Sep 09 15:38:54 I'mma let you finish, but I've got to say that #android-dev is by far the best irc channel I've been on. Nicest community I've met so far. Sep 09 15:43:48 nicest? Sep 09 15:43:50 * pfn headscratches Sep 09 15:45:34 android:hardwareAccelerated found it ! Sep 09 15:47:22 does anyone know how to check what the keysize an apk is signed with or check the keysize in a keystore? i cannot remember if i used the default 1024 or if i specified 2048 when i created it and i dont know how to check Sep 09 15:47:51 i was a total beginner at the time so i likely followed the docs, but i do not know if the docs said to use 2048 when i did it Sep 09 15:56:43 Why when I press an ActionBar button it opens two Dialogs instead of one? Sep 09 15:56:47 I'm using Fragments Sep 09 15:58:49 pastebin the code dude Sep 09 16:07:27 fdans, full code? Sep 09 16:08:05 yeah, but put it on pastebin Sep 09 16:08:58 fdans, is github fine? I already have all of it there Sep 09 16:09:16 hah yeah, as long as you don't paste the whole thing here Sep 09 16:13:36 fdans, https://github.com/zyngawow/ShoppingList/blob/master/Shopping%20List/src/main/java/com/darkraven/shoppinglist/ShoppingList.java that's my main Activity Sep 09 16:13:57 fdans, btw, if you find anything else I do wrong, please tell Sep 09 16:14:23 lms Sep 09 16:16:27 can you elaborate when you say that it opens two dialogs instead of one? Sep 09 16:16:53 fdans, when I press the actionbar buttons, they call openNewCategory/ProductDialog Sep 09 16:16:59 On GenericListFragment Sep 09 16:19:06 hmmm Sep 09 16:19:18 can you create a field Sep 09 16:19:29 ActionBar actionBar Sep 09 16:19:56 init it after setContentView Sep 09 16:20:09 actionbar = getActionBar(); Sep 09 16:20:31 and then apply the methods to that field? Sep 09 16:20:42 @zyngawow Sep 09 16:20:55 lemme see Sep 09 16:21:20 fdans, on the Fragment? Sep 09 16:21:47 on your SHoppingList class Sep 09 16:22:04 in onCreate(), you have three calls to getActionBar() Sep 09 16:22:49 I'd do it once and then apply the methods to the variable Sep 09 16:24:43 fdans, nah, doesnt work Sep 09 16:28:49 onCreateOptionsMenu gets called twice Sep 09 16:29:28 Where I could find the range of "bit buckets ? Sep 09 16:29:37 Regarding to the density of the screen Sep 09 16:31:38 I know it is 120 160 240 320 and 480 dpi. But Sep 09 16:31:45 what are the ranges ? Sep 09 16:31:55 There are no fixed ranges Sep 09 16:32:52 SimonVT: So If some company make "140 dpi" phone it could assign it to 120 dpi or 160 dpi ? Sep 09 16:33:04 SimonVT: Depending on the mood of engineer ? Sep 09 16:33:42 inside my getView() I do convertView.setMinimumHeight(parent.getMeasuredHeight() / 5); in order to make sure only 4 rows display on the screen Sep 09 16:34:12 This is as close as you're going to get: http://developer.android.com/images/screens_support/screens-ranges.png Sep 09 16:34:24 the row contains an image..which scale type should I use on the image so that it respects the height of the row? if the image is not square then it will stretch the height of the row which is not what i want Sep 09 16:34:36 5 rows* Sep 09 16:34:45 But yeah, other than that it's up to the manufacturer Sep 09 16:36:29 The device itself reports as ldpi, mdpi etc? Sep 09 16:36:38 SimonVT: So in Android is probably some variable that could be changed by the manufacturer to assign device screen to particular density bucket ? Sep 09 16:36:54 SimonVT: "This is as close as you're going to get:" What do you mean > Sep 09 16:36:55 ? Sep 09 16:37:35 bluesm_, the phone tells the app Sep 09 16:37:50 bluesm_, for example, with ParanoidAndroid, you can have a Nexus 4 on xxhdpi Sep 09 16:38:41 The images has ranges, but they're not exact Sep 09 16:38:44 zyngawow: And everything becomes pretty small , because nexus 7 doesn't really have xxhdpi ? Sep 09 16:39:49 SimonVT: You said yesterday that "density buckets have sense in regards to drawable presentation" why ? To not scale them to often ? Sep 09 16:39:53 bluesm_, on the Nexus 4, not 7 Sep 09 16:40:15 zyngawow: Right, on nexus 4 then everything becomes smaller :) Sep 09 16:40:24 bluesm_, yes Sep 09 16:40:26 SimonVT: It makes sense, to not scele images... Sep 09 16:40:33 My next few sentences explained why Sep 09 16:40:47 Ok. Sep 09 16:44:03 SimonVT any clue for my question mate? Sep 09 16:46:30 My development lifecycle: find out a way to do something - Yay it works! - Find out a better/newer way to do something - break everything - get headache Sep 09 16:46:43 SimonVT: ? Sep 09 16:49:34 bluesm_: I understand where you're coming from, and there's some strong opinions on this here. If you want physically accurate dimensions, pts does the trick, so that's an option if it makes sense for your design. dp/sp basically results in slight variations across the board, because of the "bucketing" Sep 09 16:50:48 kbs: pt mm or in units. Sep 09 16:51:09 bluesm_: yes ;-) Sep 09 16:51:49 kbs: I actually want to make small app that show this concept :) Sep 09 16:52:44 kbs: I don't have to much problem with it, but I got inspired when I got high resolution Nexus 7 :) Sep 09 16:53:17 bluesm_: sure, why not. I vaguely remember someone showing some screenshots on stackoverflow with different physical sizes on various devices, for a button with the same dp width. Sep 09 16:54:36 Hello. Does anyone know ActionBarSherlock ECCN (Export Control Classification Number) ? Sep 09 16:56:20 kbs: http://stackoverflow.com/questions/6656651/difference-between-android-dimension-pt-and-dp Sep 09 16:56:36 kbs: I will do the same but short description :) Sep 09 16:56:55 5 Sep 09 16:56:57 bluesm_: yep - that's is the one I seem to remember as well Sep 09 16:57:02 Why when I press an ActionBar button it opens two Dialogs instead of one? Code is on https://github.com/zyngawow/ShoppingList/tree/master/Shopping%20List/src/main/java/com/darkraven/shoppinglist Sep 09 16:57:09 SimonVT: ? Sep 09 16:57:25 zyngawow: stop pressing it twice? Sep 09 16:57:53 mikedg_, let me try that. Oh no, it makes no sense. Sep 09 16:58:22 point someone in the right direction then Sep 09 16:58:34 where's you onoption item selected shit Sep 09 16:58:54 mikedg_, mind your language Sep 09 16:59:04 And it's on GenericListFragment Sep 09 17:00:13 did you try putting a breakpoint in onoptionsitemselected? Sep 09 17:02:38 mikedg_, yes Sep 09 17:02:44 mikedg_, it gets called twice Sep 09 17:05:13 maybe cause you are calling the super? i dont think thats it, but i guess its possible Sep 09 17:06:34 Hello. Does anyone know ActionBarSherlock ECCN (Export Control Classification Number) ? Sep 09 17:10:42 :) Sep 09 17:10:53 mikedg_, no.. it happened when I switched to Fragments. I was calling the super before Sep 09 17:13:16 bluesm_: don't bait the bear :) fwiw, I've had a rather similar discussion with SimonVT some time back. My belief is that he starts from the premise that the slight inconsistencies are not worth getting upset over; and more importantly it's the least worth of all the tradeoffs involved. Sep 09 17:13:29 s/worth/worst Sep 09 17:13:30 anybody a freelancer developer? Sep 09 17:15:09 kbs: least worth of all the tradeoffs involved ? What do you mean > Sep 09 17:15:10 ? Sep 09 17:15:30 bluesm_: typo - "least worst" not "least worth". Sep 09 17:15:59 hey, when i set a views translationY, is the whole view just shifted down (i.e. if it filled the screen before, parts will now be cut off), or does it only affect the upper edge, the lower edge stays the same (i.e. the view is resized)? Sep 09 17:16:21 bluesm_: So one of the tricky bits is that the device manufacturer exercises control over what "dp" really means. Eg: a tv device might set 160 dp to be 5 inches, rather than close to 1 inch [regardless of its intrinsic ppi.] Sep 09 17:17:17 bluesm_: my preferred solution would have been to use something like a css pixel [which is an angular dimension] - but at any rate - if you start using pts (or in or mm) this screws up this hack that a device manufacturer might employ -- ie, based on expected viewing distance Sep 09 17:18:40 kbs: You mean "least worth of all the tradeoffs involved." that you do have to make a lot more of other more painful tradeoffs ? Sep 09 17:19:09 bluesm_: yes - as in the TV example above Sep 09 17:19:49 hi, i plan on adding profiles into my application, is there an documentation somewhere on howto accomplish this with sharedpreferences? Sep 09 17:22:37 kbs: Thank you :) For extensive explanation :). I'm not try tp "bait the bear" but SimonVT said : " My next few sentences explained why" :) Sep 09 17:23:21 Question: I want to store objects between activities (forwards and backwards) and don't want to use sqlite … any suggestions? Sep 09 17:24:16 * I want to store objects and share them between activities […] Sep 09 17:26:07 serialization, protobuf, etc... Sep 09 17:26:17 without persistence you can share using intents Sep 09 17:26:24 and they can be serializable or parcelable Sep 09 17:28:59 nseidm1, I thought about serialization too but If you have Object X in Activity A and pass it to B .. then change it in B .. how could you get it back (except start Activity for result) Sep 09 17:29:14 serialize it to disk Sep 09 17:29:34 bluesm_: Yep - I'm coming from the same place as you :-) http://code.google.com/p/android/issues/detail?id=39282 - even filed a suggestion/bug report just for kicks, but it's unlikely to get any traction. Sep 09 17:30:23 nseidm1, thats a good idea but isn't there a better way? In Objective C you could only pass the reference … Sep 09 17:31:07 use a singleton style transport structure, be careful with long held references though Sep 09 17:31:13 is there a clean way of tying a ListView item's View to its position? Sep 09 17:31:30 kbs: It's probably unsolvable problem, if all power is given manufacturers :) Sep 09 17:31:30 sure, use the view's tag Sep 09 17:31:56 nseidm1: would you just put the position in the tag? Sep 09 17:32:23 nseidm1, I thought about that too and googled alot and everybody is like "DONT USE SINGLETON" on android Sep 09 17:32:27 sure, the tag is an object. You can make it a more complex object if you'd like which is the expected pattern of a view holder Sep 09 17:32:37 jan1337z: singletons are fine Sep 09 17:32:39 just be careful Sep 09 17:32:48 how do I only do something on the first launch of my app? Sep 09 17:33:00 rymate1234: SharefPreferences and keep a boolea Sep 09 17:33:05 k Sep 09 17:33:05 *boolean Sep 09 17:33:29 But I want my Data stored in the Singleton to be existing as long as the activity lives Sep 09 17:33:34 bluesm_: I myself think CSS pixel-type dimensions (angular, rather than linear dimensions) might be a good step forward - but as you imply - gotto work with whatever is given to us schmucks :-) Sep 09 17:33:55 jan1337z : so use onPause and onResume responsibly :-) Sep 09 17:34:21 nseidm1, what should be in there in your opinion? Sep 09 17:34:31 or any article about that? Sep 09 17:36:39 http://www.javaworld.com/javaworld/jw-04-2003/jw-0425-designpatterns.html?page=5 Sep 09 17:36:46 example 7 is how a singleton should be done Sep 09 17:42:37 nseidm1, thanks :) But I read about concerns about persistence … Any hints for me? Sep 09 17:44:28 there's a million concerns about persistence Sep 09 17:44:29 nseidm1: its also advisable to override clone() and throw an exception Sep 09 17:44:43 don't keep long references to large data Sep 09 17:44:53 Hi, I'm trying to have a custom listView which returns a list of profile pics and names when searched in an edittext field. It only works when I type in odd names with few results but any common names would just take forever, the screen stays blank. Also the picture thing doesn't work for some reason http://pastebin.com/cV8r8VjR Sep 09 17:45:04 Napalm: :-P Sep 09 17:45:58 gotta love how do I make this app questions Sep 09 17:46:07 lol Sep 09 17:46:28 CocoStorm: for a start your calling loadData in onCreate AND onResume Sep 09 17:46:44 remove the loadData from onCreate() Sep 09 17:47:11 CocoStorm: and your reliant on how fast the server responds.. if your search facebook for common names.. it might take awhile Sep 09 17:47:57 why not Log the System.currentTimeMillis() before you make the request and after it completes to see if its taking longer Sep 09 17:48:02 if you search facebook it may also never respond, code for network comm failure and extreme delays Sep 09 17:49:00 Napalm, I've set a limit to 5 so shouldn't that make it faster? Sep 09 17:49:19 sure, but.... Sep 09 17:49:34 what if it's not faster Sep 09 17:49:36 CocoStorm: verify it! Sep 09 17:50:18 "what ifs" are the difference between a good and bad app Sep 09 17:50:30 rather, how best "what ifs" are handled Sep 09 17:50:54 nseidm1 what did you mean by pointing out "use onPause and onResume responsibly"? Sep 09 17:50:58 like when the project manager says "what if I get a new dev" Sep 09 17:51:07 Okay so this happened yesterday, I search a name, it works, search for it the second time it works again but anything after just gives a blank screen Sep 09 17:51:34 jan1337z: onPause is gonna get called Sep 09 17:51:43 CocoStorm: sounds like your leaking Sep 09 17:52:09 quite reliably in the natural lifecycle, only if stuff becomes unnatural, like the app is killed, will onPause not get called Sep 09 17:52:33 nseidm1, when? Sep 09 17:52:41 CocoStorm: calling notifyDataSetChanged not from the UI threads causes all sorts of awesome shit Sep 09 17:52:45 nseidm1, sorry I don't get what you mean :D Sep 09 17:53:31 jan1337z: you want to avoid holding references to large amounts of data in a singleton Sep 09 17:53:49 you can keep references temporarily, but you need to be really careful Sep 09 17:54:18 Napalm, sometimes WAIT_FOR_CONCURRENT_GC blocked 11ms Sep 09 17:54:22 *i get Sep 09 17:54:31 CocoStorm: gc is ur friend :-) Sep 09 17:54:34 nseidm1, I'm guessing I shouldn't do that? :P Sep 09 17:54:47 nseidm1, so I should clear on onPause ? Sep 09 17:54:48 nseidm1, I don't know where to start when finding the leaks Sep 09 17:55:32 nseidm1: he's all yours :P Sep 09 17:55:53 Napalm, where do I start :D Sep 09 17:55:53 lol Sep 09 17:56:16 Why when I press an ActionBar button it opens two Dialogs instead of one? Code is on https://github.com/zyngawow/ShoppingList/tree/master/Shopping%20List/src/main/java/com/darkraven/shoppinglist Sep 09 17:56:21 na ah, your nseidm1's catch Sep 09 17:56:24 :P Sep 09 17:56:34 jan1337z: onPause will reliably be called, you need to be extremely careful keeping long lived references after onPause of an activity Sep 09 17:56:47 lol =p Sep 09 17:57:01 Napalm: ahhhhhhhhhhhhh Sep 09 17:57:19 I'm not a plumber Sep 09 17:57:37 Napalm, what about the fact that I can't see my images is that due to a memory leak too? Sep 09 17:57:41 zyngawow: how about returning true Sep 09 17:57:47 nseidm1, haha Sep 09 17:57:52 zyngawow: line 64 https://github.com/zyngawow/ShoppingList/blob/master/Shopping%20List/src/main/java/com/darkraven/shoppinglist/GenericListFragment.java Sep 09 17:58:04 zyngawow: well infact Sep 09 17:58:11 change line 74 to return true Sep 09 17:58:59 Napalm, yay! Sep 09 17:59:13 working? Sep 09 17:59:14 Napalm, have you seen anything else I do wrong there? Sep 09 17:59:16 Yes :) Sep 09 17:59:27 You temporarily stopped my headache :P Sep 09 17:59:30 nseidm1, any ideas? Sep 09 18:00:05 zyngawow: probably, but o closed my eyes :P Sep 09 18:00:08 I Sep 09 18:00:32 Now to filtering! Sep 09 18:02:55 does anyone know where the leak is :? http://pastebin.com/cV8r8VjR Sep 09 18:03:05 CocoStorm: I wouldn't jump t a leak, my bet is where you're calling notifyDataSetChanged Sep 09 18:03:13 is it called form the correct thread Sep 09 18:03:13 ? Sep 09 18:03:52 nseidm1, I'm not calling it I don't think? Sep 09 18:05:48 nseidm1, I click a button on a different activity which starts the listViewActivity Sep 09 18:07:41 CocoStorm: [among other possible issues] it seems to me that you're holding on to the activity, and all the bitmaps from your threads Sep 09 18:08:21 CocoStorm: so - in principle - if you rotate or otherwise cause android to finish() your activity before the threads finish, they will hold on to the bitmaps (and the activity) Sep 09 18:09:49 kbs: sounds scary Sep 09 18:10:13 kbs, what do you mean I'm holding on to the activity? I'm sorry I'm quite new to Android Sep 09 18:10:15 any handy tools to auto size/convert some svgs into various density pngs? Sep 09 18:10:27 or wait png are vector too Sep 09 18:10:29 nevermind =/ Sep 09 18:10:51 supercell: png are not vector Sep 09 18:11:29 i thought they could be if they wanted to Sep 09 18:11:37 CocoStorm: oh well :/ - too tired to make the effort over IRC; hopefully you'll figure it out soon enough, if it's an issue... Sep 09 18:11:56 aw man, that's alright kbs Sep 09 18:12:31 oh nope png is indeed raster hm wtf Sep 09 18:12:33 * CocoStorm should give up Android while he can Sep 09 18:12:44 well then, how about some tools =p Sep 09 18:13:14 hi, i tried to fire up an intent to write an email: http://pastebin.com/EeuD8Vb3 (debugging on a 2.3.1 android device with gmail installed). i get an ActivityNotFoundException. Why? Sep 09 18:13:59 anyone know how to fix the "gradle version 1.6 is required" Current version is 1.8-93219342934932 error after updating android studio? Sep 09 18:14:02 its android 2.3.7 Sep 09 18:14:38 Klatuferatanektu: is that the right action? I thought it was ACTION_SEND, rather than ACTION_VIEW. not sure - but I'd check that first Sep 09 18:15:12 kbs: ill check that, thx for the hint Sep 09 18:16:25 Sep 09 18:17:42 kbs: same error, here the stack trace: http://s14.postimg.org/ty69y114h/Clipboard01.jpg Sep 09 18:21:21 oh look memoryleak has joined maybe he can help Sep 09 18:22:03 :) Sep 09 18:22:10 Here's some code I used to send an email once upon a time: http://pastebin.com/NUv96cPc Sep 09 18:22:25 does anyone know where the leak is :? http://pastebin.com/cV8r8VjR Sep 09 18:22:27 damn, i quitted with no intent Sep 09 18:22:40 Hey Sep 09 18:22:45 Could I use "mm" units ? Sep 09 18:22:46 i probably missed some answers :( Sep 09 18:22:58 thx SimonVT Sep 09 18:23:00 CocoStorm: *wave* here i am Sep 09 18:23:06 hey memoryleak Sep 09 18:23:07 It seems to mess up Sep 09 18:23:11 I found you! Sep 09 18:23:21 bluesm_: Noone uses mm units Sep 09 18:23:24 lol Sep 09 18:23:38 Damn, thanks a lot again Napalm Sep 09 18:23:40 SimonVT: But they are as official units... Sep 09 18:23:49 But noone uses them Sep 09 18:24:11 Josh-: what did i do this time? Sep 09 18:24:15 dp and sp is used in 99% of the cases Sep 09 18:24:25 Napalm, You helped me in "morning" Sep 09 18:24:33 ah Sep 09 18:24:34 ok Sep 09 18:24:40 SimonVT: It seems to be buggy. Sep 09 18:24:43 There should be a blog where someone dissects popular/stock apps and explains how the UIs are built Sep 09 18:25:24 * kbs whispers - apktool Sep 09 18:25:35 that too Sep 09 18:25:46 SimonVT: After testing your emailintent a dialog tells me (german): "This action cannot be performed by any application" Sep 09 18:25:53 Is it possible to not have to create new threads each time Sep 09 18:25:56 This code : https://gist.github.com/bluesm/6499509 produces : http://i.imgur.com/jBp6YX8.png Sep 09 18:26:15 SimonVT: but i have Google Mail installed for sure Sep 09 18:26:22 Klatuferatanektu: It lets me select gmail here Sep 09 18:26:24 Soo.. Sep 09 18:26:27 Sorry. Sep 09 18:26:31 It is my fault Sep 09 18:26:35 Nvm Sep 09 18:27:30 SimonVT: What is the api level you wrote this snippet for? Sep 09 18:27:41 SimonVT: My one is 7. Sep 09 18:28:40 Heh Sep 09 18:28:47 Works on 2.3+ at least Sep 09 18:29:06 7 doesn't exist anymore Sep 09 18:32:02 SimonVT: ah... i found the reason for my code to fail Sep 09 18:32:39 SimonVT: I moved Google Mail to SD card, and everything on SD card cannot be used when in debugging mode Sep 09 18:32:49 -.- Sep 09 18:32:59 SimonVT: yes -.- sry Sep 09 18:33:28 moved to sd card, android 2.3 glory days Sep 09 18:34:15 Crappy solution to crappy devices Sep 09 18:34:59 Why could my filter not be filtering? https://github.com/zyngawow/ShoppingList/blob/master/Shopping%20List/src/main/java/com/darkraven/shoppinglist/ItemAdapter.java Sep 09 18:35:17 I didn't think move to sd was introduced until 2.2 Sep 09 18:37:09 SimonVT: no i use an app for that Sep 09 18:38:33 Hi, I'm trying to have a custom listView which returns a list of profile pics and names when searched in an edittext field. It only works when I type in odd names with few results but any common names would just take forever, the screen stays blank. Also the picture thing doesn't work for some reason http://pastebin.com/6vm72j7r Sep 09 18:38:45 i have a couple of helper classes, the thing is that one of them use database sqlite, and needs application context. How do i get application context in one util class completely separated from the rest of the application code ? Sep 09 18:38:55 where should local.properties go as far as Android Studio is concerned? Sep 09 18:40:24 Use gradle.. It isn't concerned Sep 09 18:40:37 well.. Sep 09 18:40:40 with retrofit, is there an easy way to cancel requests? Sep 09 18:40:53 the problem was that gradle wanted to use 1.6 but I had 1.8+20392394234200(something) Sep 09 18:41:04 so basically I had to add a local.properties file to my project so gradle could find the sdk Sep 09 18:41:52 Set ANDROID_HOME or whatever it is Sep 09 18:41:57 I don't have a local.properties Sep 09 18:42:16 I use gradlew and 1.7 tho Sep 09 18:44:10 SimonVT: hmm Sep 09 18:44:22 my coworker didnt have a problem either when updating android studio today Sep 09 18:47:54 anyone? Sep 09 18:48:52 tomasso: short story - you'll need to pass it in on the first use [or something similar, like on each use.] Any entry point into android [activity/receiver/service] will always have access to a context, so it's not too onerous Sep 09 18:49:33 Why could my filter not be filtering? https://github.com/zyngawow/ShoppingList/blob/master/Shopping%20List/src/main/java/com/darkraven/shoppinglist/ItemAdapter.java Sep 09 18:49:55 kbs: thank you..just using parameter Sep 09 18:50:28 I'm struggling to understand how to attach the source code of a library project so that when I debug in my app, it opens the source code rather than the .class file. Forum posts suggest I should right click the project name in Debug view and click "Edit Source Lookup," but that option does not exist. I'm baffled as to why this basic obvious developer task is so complicated now... Sep 09 18:54:30 ptochen? Sep 09 18:54:44 Hey there! What are your favorite ways of working with data/persistency on Android? Sep 09 18:55:12 My favorite is GreenDAO, http://greendao-orm.com/ Sep 09 18:55:35 databases, serialization, and protobuf Sep 09 18:55:35 I want to create an app that manages sets of images with some meta data on the images. I used ORMLite before, but whenever you change something significant about your data you have to run a sql database migration :| Sep 09 18:55:58 Found it: have to right click on the stack trace, not the Project explorer panel. Totally obvious -_- Sep 09 18:56:33 RedNifre: data migrations are pretty much a part of any relational database. Sep 09 18:56:35 nseidm1 which databases? And doesn't serialization break when you change an object? (Will google protobuf now...) Sep 09 18:56:54 Right, that's why I wonder if Couchlite-Android might make me happy, it's a document based database. Sep 09 18:57:20 sqlite, GreenDAO is cool, and yes serialization/protobuf will present long term data storage issues (best suited for caching etc...) Sep 09 18:59:35 There wouldn't happen to be a way to set the padding of a RelativeLayout, and then have one View inside the RelativeLayout ignore that padding would there? Sep 09 18:59:36 GreenDao looks interesting. Does it provide a way to deal with changes in the JavaObjects, or will I have to write SQL conversion code like in ORMLite? Sep 09 19:00:26 Custom conversion code... It's sad. Sep 09 19:02:39 Oh, so GreenDao can restructure the database for me when I add/rename variables in the objects? Sep 09 19:03:22 ORMLite had the nasty surprise of not supporting inheritance. Do I get inheritance with GreenDao? Sep 09 19:03:25 right, it's a code generator Sep 09 19:03:31 but the database migrations need to be done by hand Sep 09 19:03:44 you do get inheritance, and you can use interfaces as well Sep 09 19:06:20 Why could my filter not be filtering? https://github.com/zyngawow/ShoppingList/blob/master/Shopping%20List/src/main/java/com/darkraven/shoppinglist/ItemAdapter.java Sep 09 19:06:25 ORMLite can support POJO inheritance… Sep 09 19:06:48 Hi, I'm trying to have a custom listView which returns a list of profile pics and names when searched in an edittext field. It only works when I type in odd names with few results but any common names would just take forever, the screen stays blank. Also the picture thing doesn't work for some reason http://pastebin.com/6vm72j7r Sep 09 19:11:22 Anyone? :) Sep 09 19:12:45 what do i doo Sep 09 19:13:25 [peanut gallery comment] i wonder if storing image metadata is really that complex? i've always feel that the more layers between code and the underlying data, the more likely it gets into "pushing on a wet noodle" territory Sep 09 19:14:39 kbs, was that for me? Sep 09 19:15:04 CocoStorm: no - for RedNifre Sep 09 19:15:09 oh :( Sep 09 19:16:23 Well, it's not just passive metadata but also functionality and the images are interlinked in an arbitrary way that can change any time. Sep 09 19:16:39 So I have lots of weird data that I need to persist somehow. Sep 09 19:17:10 I'm currently reading up on Protocol Buffers and wonder how it works if I put those into GreenDao Sep 09 19:17:39 (It's not strictly "get it done" for me, I always like learning a new thing on the way, especially if it's just a hobby app) Sep 09 19:18:02 RedNifre: ah. then - by all means :-) Sep 09 19:18:32 But I'd really like it to work without that horrible sql conversion code that I need to write in the commerial app whenever I modify the objects I put into ORMLite X( Sep 09 19:18:37 can anyone help? Sep 09 19:18:39 :| Sep 09 19:19:29 what do you guys think of the omate watch Sep 09 19:19:41 RedNifre: the programming equivalent of "doctor, it hurts when I bang my head against the wall. How do I stop the pain" ;-) but, I'll stop trolling now ... Sep 09 19:20:24 kbs, what's your answer to make the persistent data conform to the changes in the data model? Sep 09 19:21:14 I mean, the way I see it there's either the "run a db conversion on app update" way or using a document oriented db and converting the data on the fly when you load it again... lazy conversion basically. Sep 09 19:21:36 Hey guys, I'm trying to have a custom listView which returns a list of profile pics and names when searched in an edittext field. It only works when I type in odd names with few results but any common names would just take forever, the screen stays blank. Also the picture thing doesn't work for some reason http://pastebin.com/6vm72j7r Sep 09 19:21:37 or throwing all user data away and telling him that his old data was not supported any more ;) Sep 09 19:22:49 RedNifre: no magic answer here - but if you have constant changes to the data model, the "simplest" solution might be to use a simpler data representation, move more logic up into the code, and avoid expectations of a magic library that can handle all your data conversion needs :) Sep 09 19:24:00 Well, maybe I'm a bit too paranoid about datamodel changes. Hmmm... Sep 09 19:25:13 there was an interesting post about japanese knives, and european knives. Essentially, making the case that a simple tool is far more "adaptable" than a feature-filled tool. Sep 09 19:25:33 The funny way to do it would be to model the data in protobufs that have a version number in them and put those into GreenDao. Then, when I load something from GreenDao that has an old version number I pipe it through some conversion steps and write that back to GreenDao... no SQL table updates required (I hope) Sep 09 19:26:13 Yeah, but if I use, say, a Kyoto Cabinet then I have to write all the database stuff myself... Sep 09 19:26:22 that's not going to work in greendao. Sep 09 19:26:39 you need to write data conversion or you will lose all your data, or your schema won't get updated. Sep 09 19:26:53 How does greendao + protobuf work? Sep 09 19:27:25 I have never used protobuf, couldn't tell you Sep 09 19:28:51 Well, what's the real world experience with greenDao? Did you ever have to do a data conversion in a real world app? Sep 09 19:29:08 yes Sep 09 19:29:30 So how did that work? Running hand-written sql? Sep 09 19:29:36 yes Sep 09 19:32:59 I neither that knowledgable about ORM nor relational databases. If I were paranoid about forward compatibility and wrote my objects in an extensible way, say featuring a Map or something funny like that so that if I need some new metadata I could just put it there instead of creating a new variable that would require a database conversion... how bad would that be? Would that be much slower? Other downsides? Sep 09 19:34:11 I would either consider getting familiar with relational databases, or using a document store Sep 09 19:34:41 Why could my filter not be filtering? https://github.com/zyngawow/ShoppingList/blob/master/Shopping%20List/src/main/java/com/darkraven/shoppinglist/ItemAdapter.java Sep 09 19:35:23 Yeah, that's what I'm thinking as well. Either not being scared of sql database conversions or looking into couchbase lite. Sep 09 19:36:25 But thank you for your help! I'll dive deeper into ProtoBuf, GreenDao and Couchbase lite in the coming days and make my decision then :) Sep 09 19:37:48 RedNifre: every change I make I run through and use the android onupgrade crap Sep 09 19:38:06 it's moderately inefficient but for a one shot deal it works fine Sep 09 19:39:27 it's does what it needs to do Sep 09 19:39:33 and it's built in Sep 09 19:39:44 RedNifre: np, let me know what you decide Sep 09 19:41:58 Will do! Sep 09 19:43:04 But now for something completely different: How to make flashy activity transitions? Say in activity A there's a grid of images and when I tap an image, it zooms in and then I'm in an activity that has this image zoomed in. Sep 09 19:43:41 Starting an activity takes time so if I launch the second activity when the image is fully zoomed in the first activity there's a delay before the user can do something with the image. Sep 09 19:43:58 If I launch the activity earlier it might start too early, cutting off the zoom animation. Sep 09 19:44:39 mh, just noticed that google keep has a weird way to zoom in but a smooth way to zoom out. Sep 09 19:44:41 Hey guys, I'm trying to have a custom listView which returns a list of profile pics and names when searched in an edittext field. It only works when I type in odd names with few results but any common names would just take forever, the screen stays blank. Also the picture thing doesn't work for some reason http://pastebin.com/GDrDxcw4 Sep 09 19:44:44 like seriously can someone help Sep 09 19:44:50 it can't be that hard? Sep 09 19:45:17 it can be extremely hard Sep 09 19:45:23 $125/hour hard Sep 09 19:46:11 Does google keep really start an activity by zooming in from the previous activity, or is this all fake and just one activity with a changing actionbar? Sep 09 19:46:18 nseidm1, no but Sep 09 19:46:56 nseidm1, Someone offering money? :D Sep 09 19:47:09 CocoStorm you always write the same text, that's not really helpful. Sep 09 19:47:25 just what is quickly becoming the salary for top tier devs Sep 09 19:47:45 I'll do it for $124/h! Sep 09 19:47:54 RedNifre, I'm getting any feedback so I'm not sure which part isn't helpful Sep 09 19:47:57 *not Sep 09 19:48:21 I'm not asking someone to write my app, I'm asking advice to point in the right direction because right now I'm clueless Sep 09 19:48:40 if your listview is empty getCount is 0 Sep 09 19:48:41 <|0xD34D|> CocoStorm: have you tried stepping through the code to see what's going on step by step? Sep 09 19:48:44 easy peasy :-) Sep 09 19:49:16 Is it possible for an Android app to take screenshots of parts of itself? Sep 09 19:49:19 but my listview is not empty Sep 09 19:49:36 |0xD34D|, yes Sep 09 19:50:12 Is there an icon for "widget"? Sep 09 19:50:30 CocoStorm: getCount is 0 Sep 09 19:50:55 if you don't see anything in a listView, getCount is 0 Sep 09 19:51:16 ...or the adapter is broken and simply returns null every time? Sep 09 19:51:31 nseidm1, sometimes I do , fails on the third attempt and also depends on what name I enter for some reason Sep 09 19:51:51 so improve how you handle the search result data Sep 09 19:51:59 <|0xD34D|> CocoStorm: so focus on why the data is fubared Sep 09 19:52:44 I can't say I haven't been trying Sep 09 19:53:11 true, ultimately there's only one person that going to get it working :-) Sep 09 19:54:07 I've tried entering the for loop within the thread so only one is created Sep 09 19:54:10 but that didn't work either Sep 09 19:54:32 <|0xD34D|> what about the fact you call RowItem item = new RowItem(mIcon1, name, descriptions[0]); right after you start the thread that retrieves the image Sep 09 19:55:41 I see you're still loading many images into a single member variable Sep 09 19:55:51 And now you're recycling it right after as well Sep 09 19:56:39 What's the point of the bitmaps list? Sep 09 19:57:00 Looks like you'd just end up with a bunch of bitmaps in random order Sep 09 19:57:51 RedNifre: you can save a bitmap that's the contents of a view to get a screenshot of that view. View.*DrawingCache*() and a bit of googl'ing Sep 09 19:58:13 SimonVT, in random order? why? Sep 09 19:58:43 Because you're starting a lot of threads that all loads bitmaps at the same time Sep 09 19:58:46 <|0xD34D|> CocoStorm: might need to freshen up on mutlithreading programming Sep 09 19:58:56 Who says they finish in the order they're started? Sep 09 19:59:20 Oh yeah true Sep 09 19:59:26 CocoStorm: http://developer.android.com/reference/java/util/concurrent/Executors.html Sep 09 19:59:28 is your friend Sep 09 19:59:39 Also, you probably shouldn't load that many images at the same time Sep 09 20:01:16 And yeah, the thing |0xD34D| pointed out is the exact same issue you like a week ago Sep 09 20:01:23 Seems you didn't remember what you learned then Sep 09 20:02:03 SimonVT, so I shuold call Rotw item = new RowItem within the thread Sep 09 20:02:06 Is there something like a list view that shows multiple views in the same row? Or do I have to do it myself by using a regular list view where the adapter simply returns a view containing a whole row of views? Sep 09 20:02:34 Well, if you expect the bitmap to be in RowItem, yeah Sep 09 20:02:41 Alternatively, put the image url in RowItem Sep 09 20:02:57 Use a library from someone smarter to load the bitmap when you bind the data in your adapter Sep 09 20:03:21 <|0xD34D|> maybe not smarter but more experienced :P Sep 09 20:03:26 ouch Sep 09 20:03:33 Well.. :p Sep 09 20:04:00 there's always someone smarter, it's not an insult Coco Sep 09 20:04:11 I've only been into android development since march Sep 09 20:04:17 but yeah thanks Sep 09 20:05:03 (that is how people usually do it btw, lazy load the bitmaps) Sep 09 20:05:18 Waiting until all bitmaps are loaded to show the result is just too slow Sep 09 20:06:07 gotta be careful updating the ui while decoding images, and decoding images needs to be throttled to only a couple at a time Sep 09 20:06:10 Suppose I need to develop an ARM-6, ARM-7, iPod/iPhon/iPad, Windows/Mac/Linux simplistic program/app. What's the best software for doing this? Sep 09 20:06:30 A firm clench and a prayer Sep 09 20:06:36 lulz Sep 09 20:06:53 Well, Unity3D is more directed toward game development, and has no arm-6 support. Sep 09 20:06:56 Probably an editor/sdk/suite/compiler/interpreter Sep 09 20:07:10 I can deal without the PC programs, so long as i hit up a good majority of mobile devices Sep 09 20:08:15 If it's very simplistic you could do it in html/javascript and run it in an app that is just a webview (not sure if that's allowed on iOS though). Sep 09 20:08:37 ug, lets not go there Sep 09 20:23:49 is there a channel to report malware on Google Play? Sep 09 20:29:51 i working on android app which needs to be bilingual i have with previous running activites before change language Sep 09 20:29:55 how to stop or restarting all activities in an Android app to reflect new language choice Sep 09 20:31:19 Alsum: is the user just changing the language in the settings? Sep 09 20:31:24 Alsum: i mean phone settings Sep 09 20:32:01 no from application Sep 09 20:32:28 then thats what your doing wrong Sep 09 20:32:29 lol Sep 09 20:32:29 FLAG_ACTIVITY_CLEAR_TASK and start the same activity you're in Sep 09 20:32:52 although it's wrong as Napalm says though Sep 09 20:38:08 hello Sep 09 20:42:45 I'm having great difficulty starting a basic Android emulator. Downloaded the SDK, created an AVD, started it... the emulator just sits at 100% CPU, 1% mem, no window is shown. I got this from -verbose: http://paste.debian.net/37600/ Sep 09 20:43:48 (On x86_64 Debian unstable host.) Sep 09 20:51:54 anyone used dnsjava in an Android app? Sep 09 21:02:04 Would this be a good place to get help with android testing frameworks? Specifically Robolectric. Sep 09 21:06:18 I have trouble starting development with android studio. I created an empty project that won't compile, because gradle can't find the AndroidManifest.xml which of course is were it should be Sep 09 21:06:26 running on Archlinux Sep 09 21:06:39 Chais, if it's not in src/main it's not where it should be Sep 09 21:06:53 but it's exactly there Sep 09 21:07:02 and if your build.gradle defines that it's elsewhere, it's also not where it should be Sep 09 21:07:30 build.gradle doesn't define it. I just had android studio create that project Sep 09 21:07:48 then you're not running gradle from the correct place Sep 09 21:08:04 it's a complete virgin project created by studio. running gradle from ~/.gradle Sep 09 21:08:14 I quickly quitted Android Studio when I found out how awkward it is to put a jar in your project Sep 09 21:08:27 Chais, as in cwd/pwd is there? that's not the right place Sep 09 21:08:47 pfn: sec Sep 09 21:08:54 Denommus, going forward, maven dependencies are much easier and less awkward Sep 09 21:09:37 Denommus, and for that matter, specifying a jar dependency in gradle isn't awkward Sep 09 21:10:15 pfn: gradle service dir is ~/.gradle Sep 09 21:10:30 Chais, you need to run from your project dir... Sep 09 21:10:31 pfn: well, I couldn't figure it out, so I quitted Sep 09 21:10:43 Hi, I have problem, I can't figure out how I can share my Hashmap across my fragments in a "good" way. The thing is, when I first start my application you go through a "splash screen" in this moment my application starts to load a languagepack from an API (Json, and using gson to extract it to hashmap). So this languagepack contains name of buttons/textviews/etc. So my question is, what is the best way t Sep 09 21:10:49 anyway, anyone used dnsjava? I can't make DNS SRV lookup for some reason Sep 09 21:11:52 Can I just run Android in QEMU myself? Since the emulator in the SDK is completely broken. Sep 09 21:12:29 pfn: I'd assume that's where make runs it from. I don't do CLI work there and haven't fiddled around with the config of studio Sep 09 21:13:04 run gradle from the commandline first Sep 09 21:16:41 does android comes with ldns? Sep 09 21:17:32 *android ndk Sep 09 21:17:39 Fresh install of Eclipse Juno with ADT and whenever the pop up for an auto-complete pops up (e.g. Gdx.audio. ) Eclipse freezes and crashes. Any fix? Sep 09 21:17:42 Fedora 19 i686 + Gnome 3 Sep 09 21:18:41 conor_f: I guess you should try #eclipse Sep 09 21:19:19 Denommus: I have, it's quiet quiet there :P Sep 09 21:19:33 *quite quiet (I knew that didn't make sense) Sep 09 21:21:15 conor_f weird, that was a very very old bug we saw with eclipse / ADT in 2010 ish. it was caused by a bug in eclipse and sources that didn't actually exist (for autocompletion) Sep 09 21:23:18 pfn: ran gradlew from the project dir. still the same message when I try to run the project: package de.chaospod.tutorial; Sep 09 21:23:29 gnaah Sep 09 21:23:44 that's the error msg: [TutorialProject] AndroidManifest.xml file not found. Please, check Android facet settings. Sep 09 21:24:05 Chais, find . Sep 09 21:24:07 pastebin Sep 09 21:24:21 g00s: hmm Sep 09 21:24:25 interesting Sep 09 21:24:39 so it could be that I don't have the relevant stuff installed from Gdx? Sep 09 21:24:43 pfn: http://sprunge.us/dUCB Sep 09 21:25:07 Chais, you should be running from Tutorial Sep 09 21:25:23 unless your build.gradle says something different Sep 09 21:25:23 * pfn shrugs Sep 09 21:25:52 my build.gradle says nothing, because that's what android studio created it like Sep 09 21:26:02 you mean it's completely empty? Sep 09 21:26:12 I run it from the project dir. TutorialProject in that case Sep 09 21:26:16 yup, that exactly Sep 09 21:26:17 conor_f might want to check stuff in 'referenced libraries?" (i think, haven't used eclipse in a few months). select jar and see what 'java source attachment' says Sep 09 21:26:41 except for a comment line Sep 09 21:27:16 * pfn shrugs Sep 09 21:29:06 any idea? Sep 09 21:30:18 g00s: How will I know if something is amiss? Sep 09 21:30:34 Chais: hmmm that is weird, normally when you create a project with Android studio you should have two build.gradle. One in root, and one in the project Sep 09 21:31:01 zalzice: you mean in the project root? or / Sep 09 21:31:56 for you it will be "project root" and Tutorial/build.gradle Sep 09 21:33:12 Chais: http://i.stack.imgur.com/ONc1l.png Sep 09 21:33:23 something like that Sep 09 21:34:10 huh... so I guess something is misconfigured... where to look? Sep 09 21:34:12 the "project root" build.gradle is default empty on Android studio Sep 09 21:34:36 you could either define your own build.gradle or find the problem Sep 09 21:34:42 I dont know where to look though Sep 09 21:42:00 making the update to 0.2.7 now Sep 09 21:51:47 Chais: you dont need to have two build.gradle file. If cant figure out whats wrong with your Android Studio you can just configure your build.gradle yourself (the one in "project root") Sep 09 21:52:13 just look for a default build.gradle file Sep 09 21:52:26 zalzice: I'd still prefer to have it done automatically ;) Sep 09 21:53:39 Chais: the build.gradle should look something similar to this. http://pastebin.com/DRBRkSnA Sep 09 21:54:36 and you may want to add "sourceSets" Sep 09 21:58:48 Why could my filter not be filtering? https://github.com/zyngawow/ShoppingList/blob/master/Shopping%20List/src/main/java/com/darkraven/shoppinglist/ItemAdapter.java Sep 09 22:02:11 zyngawow, you are updating your adapters data by reference... Sep 09 22:02:25 instead of by value Sep 09 22:03:13 zalzice: got it. turns out android support repository and build tools were missing. the packet maintainer seems to have forgotten to mark them as deps Sep 09 22:04:10 and 0.2.6 didn't give a hint that deps were missing. 0.2.7 does Sep 09 22:07:23 Is there a more compact way (no XML) to make ListViews that have just one TextView ? Sep 09 22:08:06 Chais: great:) Sep 09 22:09:08 hi guys Sep 09 22:09:24 btw is there a way to change the default min/target/compile API version? Sep 09 22:09:30 bel3atar, you can use pre-made layouts Sep 09 22:10:01 currently I don't plan on creating apps that still are compatible to eclair, so I have to change it Sep 09 22:10:13 alexfu: do you have a link to a doc or something I can read? Sep 09 22:10:41 bel3atar: http://stackoverflow.com/questions/3718523/create-listview-programmatically Sep 09 22:10:54 zalzice: cheers Sep 09 22:12:50 Chais: If you create a new project (in that wizard), i think Android studio remembers the last "settings" you did Sep 09 22:13:00 im currently trying to configure multiple apks for different screen sizes Sep 09 22:13:41 zalzice: the last few times it didn't created 4 project in 0.2.7 until I got all deps Sep 09 22:14:22 but im stumped as to what d to use in each one Sep 09 22:14:32 Sep 09 22:14:44 this tag has beeen killing me for hours Sep 09 22:14:46 there should be a fullstop after "didn't" Sep 09 22:15:17 what would be the correct settings to put there for Sep 09 22:15:19 xhdpi Sep 09 22:15:20 hdpi Sep 09 22:15:22 mdpi Sep 09 22:15:24 ldpi Sep 09 22:15:25 ? Sep 09 22:15:45 alexfu, what? Sep 09 22:15:57 i have seperate assets for each and combined gos over 100 meg so i have no choice other to make seperate apk for seperate screen sizes Sep 09 22:15:58 Ah, he's gone to sleep Sep 09 22:16:21 I seem to update my Adapter's data by reference instead of by value. Can anyone explain? Sep 09 22:16:31 size and density are independent. you can have a mdpi xlarge screen or an xxhdpi small screen Sep 09 22:17:10 so what would be the right tags to put in im really confused Sep 09 22:17:22 the target pixels were drawn out in Sep 09 22:17:26 1280 by 800 Sep 09 22:17:31 800 by 480 Sep 09 22:17:55 480 by 320 Sep 09 22:18:00 Chais: sorry cant help you out, never needed to set default APIs :/ Sep 09 22:18:16 320 by 240 Sep 09 22:18:24 zalzice: k. thx Sep 09 22:18:50 what would be the correct settings for that? Sep 09 22:19:28 https://dl.dropboxusercontent.com/u/96964806/Screen%20Shot%202013-09-10%20at%201.08.03%20AM.png Sep 09 22:19:36 thats the settings i have at the moment Sep 09 22:20:03 The Galaxy Nexus, Nexus 7 '12, and the Motorola Xoom all have roughly 1280 by 800 pixels. They are drastically different screen sizes as they are different densities. if you wish to segment based on densities you can use compatible-screens with screenDensity as documented at http://developer.android.com/guide/topics/manifest/compatible-screens-element.html and http://developer.android.com/google/play/publishing/multiple-apks.html#HowItWorks Sep 09 22:20:33 if you are just starting android development i recommend just building one APK as it will be easier Sep 09 22:26:56 kevinb i appretiate the links going to look it over right now thank you Sep 09 22:27:06 i dont like doing things easy i like doing them right Sep 09 22:32:14 any other advice? Sep 09 22:32:14 damnit, I hate confusing ctrl-w with ctrl-2 Sep 09 22:32:20 kevinb Sep 09 22:32:27 ive been reading about this all day Sep 09 22:33:04 hey all Sep 09 22:33:16 I got a question about graphics Sep 09 22:33:17 anyone else got any advice on multyple apk support due to multyple screen sizes? Sep 09 22:33:27 how do I do a texture paint? Sep 09 22:33:50 tileable that is - if I paint shape larger (or overlaps edge) of texture Sep 09 22:33:57 https://dl.dropboxusercontent.com/u/96964806/Screen%20Shot%202013-09-10%20at%201.08.03%20AM.png Sep 09 22:34:06 thats is my current configuration Sep 09 22:34:12 Hey guys, I tried to figure it out but I can't. It worked for once or twice but then no profiles would appear. I even tried commenting out everything related to bitmaps and i was still getting the same results. http://pastebin.com/bhDK66QQ Sep 09 22:34:18 for targeted screen sizes of Sep 09 22:34:21 1280, 80 Sep 09 22:35:14 can someone help Sep 09 22:35:18 * 1280, 800 /////// 800, 480 ////////// 480 , 320 ///////// 320,240 Sep 09 22:35:31 I've tried pretty much everything I can think of Sep 09 22:35:34 it's so annoying Sep 09 22:35:44 https://dl.dropboxusercontent.com/u/96964806/Screen%20Shot%202013-09-10%20at%201.08.03%20AM.png Sep 09 22:35:57 and that is the configuration ive set it to Sep 09 22:36:19 My original question was Sep 09 22:36:21 Hi, I'm trying to have a custom listView which returns a list of profile pics and names when searched in an edittext field. It only works when I type in odd names with few results but any common names would just take forever, the screen stays blank. Also the picture thing doesn't work for some reason Sep 09 22:37:09 javaDon: The Galaxy Nexus has a 4.65" screen with a resolution of 1280x800 at xhdpi. The Motorola Xoom is 10" at 1280x800 at mdpi. The Nexus 7 '12 is 7" also 1280x800 at tvdpi. Do you actually want to use the same apk on all of these devices? Sep 09 22:37:23 Why could my filter not be filtering? https://github.com/zyngawow/ShoppingList/blob/master/Shopping%20List/src/main/java/com/darkraven/shoppinglist/ItemAdapter.java Someone told me I was updating my data by reference instead of by value. Sep 09 22:37:39 wtf, why is my overflow menu not appearing on phones when I have a searchview Sep 09 22:37:57 action bar gets confused measuring? Sep 09 22:38:03 yeas Sep 09 22:38:32 and this is native 4.2 actionbar even... Sep 09 22:38:34 wait no Sep 09 22:38:37 i dunno Sep 09 22:38:51 Okay trying better context - For example I have 10x10 texture image. I want to draw 100x100 circle with it tiled as texture. how do I do that? Sep 09 22:39:10 i had those problems when doing split action bar so i ended up just making adjunct search "sub action" bar Sep 09 22:39:59 kevinb this is why im asking for help Sep 09 22:40:40 anyone Sep 09 22:40:42 xxcoder you using canvas? Sep 09 22:41:07 yeah Sep 09 22:41:13 cocostorm is it backed by sqlite? Sep 09 22:41:19 javaDon: what is your goal behind using multiple apks? are you trying to build a separate app for tablets versus phones, or trying to reduce the apk size by only including one copy of each drawable rather than one per density? Sep 09 22:41:35 lasserix, no? Sep 09 22:41:52 I guess I need to iconify it by default on phones Sep 09 22:42:09 Cocostorm if your query is generated too large a result then you need to limit the results and do "lazy loading" i think its called Sep 09 22:42:10 XXCoder: Paint.setShader with a BitmapShader where you set the tile mode Sep 09 22:42:44 researching now. thanks Sep 09 22:43:05 XXCoder: then you can draw a circle using the paint and it will nicely fill in the tile. If you want to try to center the tile or something you can set a transform matrix on the shader object Sep 09 22:43:09 lasserix, oh really, I tried adding a limit in the url to 5, is that the same thing? Sep 09 22:43:21 i think so but not sure Sep 09 22:43:27 kevin can I specify circle orgin on texture too? Sep 09 22:43:43 lasserix, it only returns 5 profiles basically Sep 09 22:43:54 does it work if you cap it? Sep 09 22:44:43 lasserix, at 5 profiles? only works once or twice and then it doesn't work anymore Sep 09 22:44:44 is there a way to mark a new apk as 'don't allow auto update, even if user has it enabled?' Sep 09 22:44:48 ahh "If you want to try to center the tile or something you can set a transform matrix on the shader object" Sep 09 22:44:55 lasserix, and only with some names Sep 09 22:46:07 Cocostorm could be edit text text watcher problem a la : http://stackoverflow.com/questions/13416423/search-in-a-listview-dosent-work-properly Sep 09 22:46:35 part of the problem is the textwatcher can throttle the requests which might cause your url host to stop responding too Sep 09 22:47:04 ie: typing John type J returns a ton Jo returns a ton more, now host is overloaded and doesn't respond in time Sep 09 22:47:06 (could be) Sep 09 22:50:00 kevinb i am trying to reduce the apk size Sep 09 22:50:04 lasserix, hmm that's interesting will give it a read and see how it goes Sep 09 22:50:08 hey guys Sep 09 22:52:08 Why could my filter not be filtering? https://github.com/zyngawow/ShoppingList/blob/master/Shopping%20List/src/main/java/com/darkraven/shoppinglist/ItemAdapter.java Someone told me I was updating my data by reference instead of by value. Sep 09 22:55:10 javaDon: so you want to build an APK that says it only supports XHDPI devices and then only include XHDPI resources (and so on for every density). Use the compatible-screens and set the screenDensity. Forget about absolute resolutions Sep 09 22:56:51 are your drawables (mostly) monocolor? There's a great trick to handle those Sep 09 22:57:09 how can i make a view in an arrayadapter completely disappear from the list of options? Sep 09 22:57:24 im setting the visibility to gone, but theres just a hole in the list where the item should be Sep 09 22:57:36 i also tried to set the layout params to 0,0 but that did nothing Sep 09 22:57:50 Pyuruku: Remove the item it represents from the ArrayAdapter? Sep 09 22:57:57 lasserix, i'm not sure if that issue applies to me though since i'm using an edittext to apply the search rather than filter/ Sep 09 22:58:01 the data it reads from is immutable Sep 09 22:58:51 cocostorm did you check the string from the textwatcher is accurate input for search? Sep 09 22:59:03 kevinb im not sure if its the differend densitys i need to support Sep 09 22:59:11 or the screen resolutions Sep 09 22:59:32 it's the densities Sep 09 23:00:03 lasserix, sorry if this is a silly question but what's a textwatcher? Sep 09 23:00:22 i feel you Sep 09 23:00:46 but i built the game with lib gdx and delt with pixels most of the time Sep 09 23:00:58 CocoStorm oh textwatcher is a call back for a edit text, so that as the user types John J o h n it'll trigger the call back per character or however Sep 09 23:01:04 like how intellisense works Sep 09 23:01:11 in android absolute resolution rarely matters. Either you care about the physical size so you care about how many "dp" the screen is (like a 7" tablet has a smallest size of at least 600dp, and 10" smallest width is at least 720dp) or you care about what resolution graphics to use, so you care about the density as you want a 1" image to be the same size, just with as much detail as possible, on different devices Sep 09 23:02:00 if you built the game around pixels rather than dp it will likely look and work awkward on some devices. like buttons will be too small to touch, or way too big Sep 09 23:02:02 if i have something that fits perfectly on nexus 7 1280,800at xhdpi wouldn it fit perfectly on the xoom aswell? Sep 09 23:02:03 lasserix, this is the code that starts the listActivity that I showed you. It listens for a click, grabs the text in the edittext and passes it to the activity http://pastebin.com/8KVELHFQ Sep 09 23:02:52 * kbs continues to realize ui design on android should be done like for the web ;-) Sep 09 23:03:07 kbs is corect Sep 09 23:03:20 whats the url fetching code, cause that looks okay Sep 09 23:04:12 imageURL = new URL("http://graph.facebook.com/"+ element.get("id") +"/picture?type=large"); Sep 09 23:04:28 oh it could just be fb screwing you up Sep 09 23:04:50 javaDon: the nexus 7 from 2012 is tvdpi (213) not xhdpi. the nexus 7 from 2013 is 1920x1200 and xhdpi. assuming you meant the 1280x800 nexus 7, then on the xoom your controls are going to be kind of large and on the galaxy nexus your controls might be too small Sep 09 23:06:53 kevinb i worked it around pixels but with relative positioning to the size of the screen and the size of the images Sep 09 23:08:01 i have no scaleing set and the images are all cut to fit perfectly roughly that pixel ratio Sep 09 23:08:14 kevinb^ Sep 09 23:11:10 not all devices have that pixel ratio, and our finger sizes are fixed regardless of what device we are using Sep 09 23:12:13 uh, i need to find a new vector graphics editor that works on the mac; the project still has no eta for an up to date mac version Sep 09 23:12:20 that why i need to make sure the right apk gets downloaded to the right device Sep 09 23:13:06 g00s: inkscape too crude? [I also use fontforge - works well for android vector icons, as ttf...] Sep 09 23:13:24 kbs no i love it, except the project is managed terribly Sep 09 23:13:56 even for supported platforms forums topics like "why is development so slow" exist Sep 09 23:14:24 g00s: oh, I see. (I probably missed an earlier comment from you that referred to inkscape :) Sep 09 23:14:26 on the mac, they haven't had an update since 2010 with a bunch of bugs. they basically have nobody working on getting it running on os x Sep 09 23:15:02 Why could my filter not be filtering? https://github.com/zyngawow/ShoppingList/blob/master/Shopping%20List/src/main/java/com/darkraven/shoppinglist/ItemAdapter.java Someone told me I was updating my data by reference instead of by value. Sep 09 23:15:43 g00s: at any rate - i've been happy with the fontforge approach myself... perfect for monochrome vector icons Sep 09 23:16:23 kbs thanks, i'll have to check that out Sep 09 23:18:05 yes Sep 09 23:18:07 it works! Sep 09 23:18:16 thanks everyone who helped Sep 09 23:18:44 kevinb do yo have skype it would be allot easyer im getting really confud=sed in here Sep 09 23:18:46 bit buggy but worked Sep 09 23:19:24 Dear UI Automator view dumper, Sep 09 23:19:31 I don't know what I'd do without you. Sep 09 23:19:33 Love, Ryan Sep 09 23:21:16 are there tools to generate the uiautomater code from actual actions on the device? Sep 09 23:22:48 javaDon: sorry no. I'm not sure how to explain the issue more clearly. Maybe you should try testing on more devices or setting up some emulator configurations (with the option to scale it to the correct physical size) so you can better get a feel for how resolution is independent of physical size Sep 09 23:23:13 zyngawow: I've never used a Filter in my life, but this line looks totally wrong: this.getFilter().filter(mTag); Sep 09 23:23:38 RyanM, It does doesn't it? But for some reason everyone does that Sep 09 23:23:58 that seems unlikely Sep 09 23:25:27 wee, keepass share is done Sep 09 23:25:31 * pfn sticks a fork in it Sep 09 23:30:03 RyanM, what would you do? Sep 09 23:30:08 * zyngawow cooks some popcorn up Sep 09 23:34:46 Dunno. Not that. Sep 09 23:34:57 As I said, I've never used Filters. Sep 09 23:36:11 I also don't know exactly what you're doing and don't really have time to look into it, sorry. Sep 09 23:36:26 My guess could also be off the mark, so keep that in mind. Sep 09 23:41:54 huh, why is my upload to google play failing? Sep 09 23:41:59 it just gives me an upload error without saying anything Sep 09 23:43:32 hmm, I guess chrome was being stupid Sep 09 23:47:10 got question though Sep 09 23:47:32 I have list setting Sep 09 23:47:37 1-5 and 6th is custom Sep 09 23:47:47 can I make it show dialog if custom is selected>? Sep 09 23:49:36 pfn a while back i think you added a dark / light theme option to qicr: do you remember the function call for that ? was it just Context.setTheme() ? Sep 09 23:49:50 g00s, just setTheme Sep 09 23:50:49 pfn ok; and for graphics assets, is there any way i could easily take a monochromatic .png and apply some filter to it, like convert black (in its dark theme form) to red (for night theme?) Sep 09 23:51:01 I just do it by hand Sep 09 23:51:06 ok Sep 09 23:51:08 how do i get a list of all classes on http://developer.android.com/reference/java/lang/package-summary.html Sep 09 23:51:34 or how can i find a class on the api docs if i don't know which package it's under? Sep 09 23:52:54 BullShark`: for the latter question, use the search bozx Sep 09 23:52:55 *box Sep 10 00:00:25 Why could my filter not be filtering? https://github.com/zyngawow/ShoppingList/blob/master/Shopping%20List/src/main/java/com/darkraven/shoppinglist/ItemAdapter.java Someone told me I was updating my data by reference instead of by value. Sep 10 00:16:54 screw it, I'm publishing Sep 10 00:17:44 Good morning all. I have a LinearLayout nested within another Linearlayout with a 9-patch background. If I add a margin to the inner linear layout, I get a grey margin - i.e. the background colour from the application's background is leaking through the 9-patch Sep 10 00:18:14 and if I make the inner view fill_parent width wise, it sort of juts over the side of the parents 9-patch background Sep 10 00:18:24 halp Sep 10 00:27:22 https://github.com/pfn/keepshare Sep 10 00:27:28 now I get to wait for google to publish my app... wee Sep 10 00:46:01 pfn, that usually doesn't take too long.. Sep 10 00:46:17 Zharf, I know Sep 10 00:46:25 I just want people to starting buying :) Sep 10 00:46:28 start Sep 10 00:46:30 pfn, can you help? Sep 10 00:46:36 not now, no Sep 10 00:48:35 pfn new app for sale ? Sep 10 00:49:18 g00s, yes Sep 10 00:49:23 for sale and open source Sep 10 00:51:26 Hello, I have just installed android SDK and eclipse plugins. In eclipse when I create a new android application project, the sample code in it doesn't compile :| http://ix.io/7VQ/java it gives error for "R" in lines 12 and 18. I installed android 4.1.2 (API 16). Can anybody help? Sep 10 00:52:22 that's okay Sep 10 00:54:36 what;s your app pfn Sep 10 00:54:47 CocoStorm, keepass share Sep 10 00:54:55 nice Sep 10 00:55:00 i'll check it out Sep 10 00:56:10 anyone know how to publish an apk that will not be auto-updated by users regardless of their Play store settings, if i don't change permissions ? Sep 10 00:56:14 It sounded intriguing when I thought it was called keep ass share Sep 10 00:56:34 masoudd, can you show your stack trace? Sep 10 00:57:30 fdans: how can I produce this stack trace? Sep 10 00:58:02 are you getting a lint error, or is it after trying to build the project? Sep 10 00:58:10 in short, we need the error Sep 10 01:00:55 fdans: it used to say "variable R not found" I tried every thing for hours. but now that I ran eclipse again to confirm the error it compiled! Sep 10 01:01:29 masoudd: bloody eclipse, always with its bullshit Sep 10 01:01:35 fdans: sorry Sep 10 01:01:41 oh not at all Sep 10 01:02:26 you'll probably see that half the inexplicable problems with Android dev in eclipse are solved by reopening the project Sep 10 01:02:34 fdans: I'm honestly lost here. I've been installing things all morning. (it's 5 am of the next day now) Sep 10 01:02:44 using support v4, ABSherlock, ViewPager, ViewPagerIndicator, child fragments in the ViewPager aren't getting onCreateOptionsMenu() called when they become visible -- the fragment that hosts the ViewPager gets the call (odd). Is this a known issue? /cc JakeWharton Sep 10 01:03:08 masoudd, tbh I use Android Studio/IntelliJ IDEA Sep 10 01:03:40 did my first few android projects in eclipse some time ago, but it's slow, unstable and unreliable Sep 10 01:03:55 I found JetBrains' stuff to be much more robust Sep 10 01:04:24 fdans: Do you think it's better to begin learning android programming with it? ditch the whole eclipse mess for it? Sep 10 01:04:44 hmm Sep 10 01:04:58 the thing is that learning with eclipse doesn't give you much Sep 10 01:05:06 if you are a beginner, there are still better instructions for eclipse. for example, dropbox apis just show how to set up with eclipse Sep 10 01:06:03 g00s is right, most of Android related docs is written for eclipse Sep 10 01:06:20 if you are using AS, you pretty much agree to learn gradle Sep 10 01:06:20 (to some extent) Sep 10 01:06:20 or you can just use plain intellij Sep 10 01:07:27 I use intelliJ, but AS looks good because it has LogCat's app focus Sep 10 01:07:37 which IntelliJ doesn't Sep 10 01:07:54 it's one of the few things i actually miss from eclipse Sep 10 01:08:19 but man, the autocomplete in IntelliJ is almost orgasmic Sep 10 01:09:42 it's surprising the logcat filters are so lacking Sep 10 01:09:52 yeah Sep 10 01:10:12 but apparently AS has them, for some reason Sep 10 01:10:20 intellij 13 will as well Sep 10 01:10:34 hmm nice Sep 10 01:10:50 AS is nothing but a pared down intellij Sep 10 01:11:02 yeah that was my impression Sep 10 01:11:02 okay, so I guess it's better to learn with eclipse first then move to AS. thank you fdans g00s for your help Sep 10 01:11:14 masoudd: no just go straight to AS Sep 10 01:11:19 pfn: it's not pared down Sep 10 01:11:22 it IS intellij Sep 10 01:11:35 funkbox, it's pared down Sep 10 01:11:42 funkbox, it includes core intellij and nothing but Sep 10 01:11:51 it's intellij CE Sep 10 01:11:55 no, it's not Sep 10 01:11:58 the argument here is that since most of docs aim at eclipse, it makes sense to learn Android dev in eclipse Sep 10 01:12:02 it is an android-focused intellij ce Sep 10 01:12:05 yeah Sep 10 01:12:07 there is a very distinct difference Sep 10 01:12:11 i.e. pared down Sep 10 01:12:11 graphics? :) Sep 10 01:12:20 intellij ce includes all features of android studio, but not vice versa Sep 10 01:12:24 that by definition is pared down Sep 10 01:12:45 pfn: i will accept that explanation Sep 10 01:12:47 i guess it does twerk Sep 10 01:13:28 like miley cyrus Sep 10 01:21:25 i'm trying to create several drawables from resources at runtime. I have a linearlayout created, but I can't seem to track it down in R.java Sep 10 01:22:57 i see the drawable has a create from resource, but how do I then place it in my listview Sep 10 01:23:06 er horizontalscrollview Sep 10 01:31:00 supercell: throw a linear layout in dat there horizontal list view Sep 10 01:31:47 hi, if I have defined the buttons xml in activity_main.xml is it correct to say something like this in onCreate of MainActivity.java "start = (Button) findViewById(R.id.btstart);" ? Because I am receiving this error: "btstart cannot be resolved or is not a field" Thanks a ton Sep 10 01:34:25 yeah, that won't twerk unless the button has the id set to btstart Sep 10 01:35:46 funkbox: can you please look at my post in stackoverflow and tell me what am I missing> http://stackoverflow.com/questions/18709145/item-cannot-be-resolved-or-is-not-a-field-android-phone-app-developing Sep 10 01:40:29 elisa871, are you using gradle by any chance? Sep 10 01:40:55 i have two tableViews in a viewController on storyboard. They don't overlap on SB but when I run it on the simulator or phone they cover each other up Sep 10 01:42:10 <|0xD34D|> lol Sep 10 01:42:21 mawhtin, uhm iOS? Sep 10 01:42:28 whoops wrong channel haha Sep 10 01:42:29 :) Sep 10 01:42:42 <|0xD34D|> ya think :D Sep 10 01:43:38 Any idea why this exception appears only on the second execution of my app (after closing with back button then re-opening)? Sep 10 01:43:39 http://pastebin.com/AF2GKFhM Sep 10 01:44:32 hasPremium() starts a new Runnable through a handler.post(new Runnable() {}) Sep 10 01:49:08 alexfu: what is gradle? no I don't think so Sep 10 01:49:34 alexfu: do you know why am I am having this error however? Sep 10 01:50:17 check all of your resource files. Layouts, strings, etc. make sure nothing is broken Sep 10 01:51:28 just do a clean rebuild Sep 10 01:52:01 funkbox: I did a clean but rebuild button is inactive after I clean the project! Sep 10 01:52:12 alexfu: how can I check that? I am novice! Sep 10 01:59:38 so I'm not seeing like an "insert" method for the LinerLayout, *goes looking for examples* Sep 10 02:00:46 hello Sep 10 02:00:55 i am reading about the formatter Sep 10 02:01:12 and i have a doubt about float formating Sep 10 02:01:29 format("%10f", 123.456f) Sep 10 02:01:35 format("%6.0f", 123.456f); Sep 10 02:02:03 ok, the thing is, i understand that what comes before the " . " is the precision Sep 10 02:02:32 so in the first format i dont limit the precision and in the second is zero Sep 10 02:03:02 but, what the 10 in the first format and 6 in the second one changes the formating Sep 10 02:03:26 in other words, what the integer that comes before the " . " changes the formating Sep 10 02:03:38 oh addview Sep 10 02:03:51 because the result, in both cases is : 123.456001 Sep 10 02:04:14 i have read it here: http://developer.android.com/reference/java/util/Formatter.html Sep 10 02:06:53 so, to me looks like whatever what you put before the " . ", you can put 200.2 or 3.2 and the result would be the same Sep 10 02:10:55 I figured out the bitmap thing on my own Sep 10 02:10:56 yeah suck it Sep 10 02:24:17 https://play.google.com/store/apps/details?id=com.hanhuy.android.keepshare Sep 10 02:24:24 won't, it's live Sep 10 02:24:28 woot Sep 10 02:24:35 stupid autocorrect Sep 10 02:25:00 Grats Sep 10 02:25:47 someone know about String.format? Sep 10 02:31:43 I can't seem to find the proper way to refrence a LinearLayout in code.... I tried things like R.layout.mylinearlayout, but its not in there Sep 10 02:32:01 supercell, R.layout references your layout.xml Sep 10 02:32:09 R.id.foo references @+id/foo Sep 10 02:32:20 oic, thanks Sep 10 02:32:46 akruz, number before . is width of field Sep 10 02:33:07 * supercell begins to notice the @+id/ prefixes everywhere Sep 10 02:33:33 so String.format("%10.2f", 1.0) = " 1.00" Sep 10 02:34:24 ah, now i understand :) Sep 10 02:34:28 ty pfn **** ENDING LOGGING AT Tue Sep 10 03:00:00 2013