**** BEGIN LOGGING AT Tue Jun 18 02:59:59 2013 Jun 18 03:07:27 Hi all Jun 18 03:08:29 If you set a button that will change the fragment on each click, clicking it too fast may cause the activity reference in that fragment to be null Jun 18 03:08:43 any suggestion over how to handle this Jun 18 03:15:50 depends what "change the fragment" means Jun 18 03:16:01 but why dont you check IF it's null ? Jun 18 03:16:38 change fragment means i close fragment a and open another fragment, let's say fragment b Jun 18 03:17:46 well I doubt if you dont do anything to the activity, that a reference to it would be null Jun 18 03:18:41 maybe the fragment doesn't finish the lifecycle start before calling destroy or something ? Jun 18 03:19:49 yeah Jun 18 03:19:51 most probably Jun 18 03:21:34 What is a good way to find and hire good android developers these days? Or do most people just want to build their own apps these days maybe? Jun 18 03:22:02 most people ? think that would be a bit strong Jun 18 03:22:06 so for this situation which the lifecycle doesn't finish and onDestory is called Jun 18 03:22:20 usually how you handle? Jun 18 03:22:24 do you* Jun 18 03:22:27 it* Jun 18 03:23:10 same with any click you would not want happening too fast (repeating) Jun 18 03:23:25 so put a check Jun 18 03:23:27 on the click Jun 18 03:23:35 to prevent from changing fragment to fast… ? Jun 18 03:23:45 well up to you where and how Jun 18 03:23:57 but yeah, check for a condition of something Jun 18 03:23:58 usually how most people do, how would you do Jun 18 03:23:59 :) Jun 18 03:24:14 i can think of something a long that lines but i wanna know what the pro think here Jun 18 03:24:21 ensure I'm on the right track Jun 18 03:24:31 then you asking the wrong person Jun 18 03:24:35 I aint a pro Jun 18 03:24:50 well at least experienced Jun 18 03:25:31 well I use an eventBus Jun 18 03:25:46 but if I were in your sit, I would just put in a check Jun 18 03:26:21 i see. I use even bus too thought Jun 18 03:26:27 but not for simple clicks Jun 18 03:26:49 does even bus prevents multiple clicks or you create a check for it as well Jun 18 03:27:22 depends how you design the implementation Jun 18 03:27:31 and use of it Jun 18 03:30:50 i see Jun 18 03:30:54 :D thanks Jun 18 03:41:50 anyone with a note 2 have a second to test an app? Jun 18 03:47:00 can you setup an emu to test Jun 18 03:47:09 or does it need crappy touchywizzy Jun 18 03:47:10 :) Jun 18 03:54:46 lint isn't included with AS is it? only eclipse Jun 18 03:55:33 checkout Analyze Jun 18 03:57:11 ahh sweet Jun 18 04:18:20 hey everyone, does anyone know how to clear the default after you "Register A New File Type Association" in Android Studio? I tried to open an executable by accident in a text editor, and now Android Studio is associating all that file type with the editor, which I don't like.. it also switches the exec icon on the left of the file to a document… anyone knows how to clear this and set it back to default? thanks Jun 18 04:19:50 Tried to "clear" it under preferences, File Encoding, with no success Jun 18 04:28:01 ok… sorry guys… found my solution… I'll promise to search better next time b4 I spam this channel… for those who care, it's under preferences -> IDE Settings -> File Types… Jun 18 04:29:37 well dont forget in AS preferences there is a search box Jun 18 04:29:48 just put in "file type" and your there Jun 18 04:36:38 any ideas why textures are not loading on Note 2's? Jun 18 04:36:52 --wit OpenGL ES 2.0 Jun 18 04:38:12 try checking the size Jun 18 04:38:18 ensure the size is power of 2 Jun 18 04:38:27 ? Jun 18 04:39:34 That's fine, it's literally working on just about everything except the Note 2 Jun 18 04:40:28 any error? Jun 18 04:40:59 Not from what I could tell, I'm using the remote test lab from samsung after a beta tester let me know of the issue Jun 18 04:41:27 At least nothing in logcat, I'd love to run an opengl tracer but I don't have the actual device Jun 18 04:42:22 when you say texture Jun 18 04:42:29 not loading, is it just the texture? Jun 18 04:42:36 the the whole OpenGL drawing? Jun 18 04:43:19 I have some .PNG's in the drawable-nodpi folder that I'm loading into OpenGL textures Jun 18 04:43:44 using BitmapFactory.decodeResource() Jun 18 04:44:13 Not a single one is showing up Jun 18 04:45:05 owh i see Jun 18 04:45:15 well odds are, dimensions, pixel format causing prob I would think Jun 18 04:45:29 i think Jun 18 04:45:33 that should have read dimension or pixel format Jun 18 04:45:58 and by pixel formant I indeed mean PNG pallet/Color formant Jun 18 04:46:08 and by formant, i mean format Jun 18 04:46:10 ffs Jun 18 04:46:11 :) Jun 18 04:46:15 is it possible Jun 18 04:46:52 when the texture is applied in note 2, the texture dimension become NPOT Jun 18 04:46:58 so it prevents from displaying. Jun 18 04:47:53 I have never seen a functional 3d rendering system do anything but the opposite Jun 18 04:48:48 as in give it a 2x3 and it will use internally a 2x4 Jun 18 04:49:04 i think for android case Jun 18 04:49:09 you need to calculate manually Jun 18 04:49:44 well I would have thought you just make sure they are correct to begin with, so there is no calc Jun 18 04:50:10 granted my experience on this is only as an artist, and only on x360/ps3 Jun 18 04:52:43 you probably need to apply this Jun 18 04:52:48 when calculating the dimension Jun 18 04:52:49 http://pastebin.com/LkPtTYxZ Jun 18 04:54:37 so when you get the bitmap, get the width and height, plug it in the method create new bitmap based on the new height and width Jun 18 04:55:08 Maziz, what does that function do? Jun 18 04:55:42 if you height or width is not power of 2, it will get the next highest po2 Jun 18 04:56:05 Maziz: thats seem …well dont mean to be condescending, but in any RT 3D graphics, if I had a programmer having to do that, I would shoot him, and kill the artists reponsable for the source graphics too Jun 18 04:56:09 I was under the assumption opengl es 2.0 and greater does not require POT textures? Jun 18 04:56:51 parco: binary and Math need POT Jun 18 04:56:54 Some of the textures are power of 2 and they are still not loading Jun 18 04:57:14 Nbd, i'll convert Jun 18 04:57:28 well probably different issue if thats the case Jun 18 04:57:36 It has to be... Jun 18 04:58:43 i gotten the code from https://github.com/harism/android_page_curl Jun 18 04:58:47 3d curl page Jun 18 04:59:20 if you see the CurlPage.java, where contains the method to attach texture to the drawing Jun 18 04:59:34 you will see it will calculate the dimensions and ensure it's POT Jun 18 04:59:55 this code works on all devices Jun 18 05:00:03 Do you think the NPOT textures could be having an effect on the POT textures? Jun 18 05:01:37 I do, depending on how android handles texture page/indexing etc Jun 18 05:20:16 JakeWharton: ping! Jun 18 05:20:21 ack Jun 18 05:20:35 what do you know about actionbar tab placement and the galaxy mega? Jun 18 05:20:59 with ABS, the tabs are placed inside the actionbar (not below), and they scroll Jun 18 05:21:33 what versions of Android is the Galaxy Mega running? Jun 18 05:21:38 4.2.2 Jun 18 05:21:56 that's the native action bar then Jun 18 05:22:01 oh of course Jun 18 05:22:01 ABS isn't doing anything but proxying Jun 18 05:22:02 sorry Jun 18 05:22:36 it's a crazy device Jun 18 05:22:47 but I said that when I bought the Note too :p Jun 18 05:23:45 it certainly sounds crazy Jun 18 05:33:37 Hmm I just converted all texture to POT, still the same issue on the Note 2 Jun 18 05:34:12 Should I place textures in res/raw, or is drawable-nodpi a safe place across devices? Jun 18 05:37:15 galaxy mega http://andreaworld.altervista.org/imageslittlebritain/LittleBritain_1a_6_07.jpg Jun 18 05:59:47 So my onresume method isn't being called Jun 18 05:59:49 any idea why Jun 18 06:06:30 not sure thats such a good question Jun 18 06:06:47 how would anyone know why "your" onResume isn't called Jun 18 06:06:56 dont even know what onResume your on about Jun 18 06:29:22 hello guys Jun 18 06:29:57 what is the maximum google will pay you per click on making money using adds? Jun 18 06:30:02 *ads Jun 18 06:36:41 Eltjo: Jun 18 06:36:53 hey shadej Jun 18 06:37:10 why is the room silent Jun 18 06:37:24 i dont know Jun 18 06:37:25 are you android developer? Jun 18 06:37:26 cause it's irc Jun 18 06:37:32 yes i am Jun 18 06:37:35 there is no sound by default Jun 18 06:37:44 lol StingRay_ Jun 18 06:37:50 StingRay_: no by default hah.. Jun 18 06:37:54 i asked a question Jun 18 06:37:59 you did Jun 18 06:38:10 but there is no real answer Jun 18 06:38:29 unless some1 wanted to explain all the metrics that cause the variances Jun 18 06:38:32 did you try to find the answer on your question on stackoverflow shadej Jun 18 06:38:37 and I presume no1 could be arsed Jun 18 06:39:03 Eltjo: no Jun 18 06:39:20 :) Jun 18 06:39:32 StingRay_: telling the question does not have a solution is also an answer btw Jun 18 06:39:50 well no, not really Jun 18 06:39:59 cause that answer you could get from a simple google search Jun 18 06:40:11 and I would have thought you would have tried that b4 here ;) Jun 18 06:40:17 hehe or stackoverflow ;) Jun 18 06:40:33 na, SO not relevant Jun 18 06:40:42 ad click turnover/revanue etc Jun 18 06:40:44 StingRay_: yeah i tried it but there are a lot blogs that talk out of the trugh Jun 18 06:40:49 *truth Jun 18 06:45:13 Eltjo: why not i can ask on stackoverflow Jun 18 06:46:00 ad click revanue is not really a SO topic I dont think Jun 18 06:46:02 you can ask Jun 18 06:46:04 :) Jun 18 07:00:14 JakeWhartong Jun 18 07:00:27 *oops JakeWharton Jun 18 07:00:37 wasn' tme Jun 18 07:01:57 Whardong? Jun 18 07:02:20 I kill me... Jun 18 07:03:55 Is there a way to see if I'm actually using OkHttp as my client? I'm using the Github Java API (https://github.com/eclipse/egit-github/tree/master/org.eclipse.egit.github.core) and did this http://pastebin.com/pUeYTZrs Jun 18 07:04:29 Saw that you worked on the project so figured you might have an idea Jun 18 07:06:38 I mean, that'll pretty much do it so long as you're setting the client Jun 18 07:07:02 other ways would be to set breakpoints and make sure the class that backs HttpUrlConnection is in com.squareup.okhttp.internal.* Jun 18 07:07:20 or look at the response headers to see if there's X-Android-* headers Jun 18 07:14:07 thanks, that confirmed it Jun 18 07:18:29 hey guys… anyone knows where to get a comprehensive list of strings to check against, in order to detect the tethering state? Guides to do so generally involve reflection. I was wondering if there's a comprehensive list somewhere… thanks Jun 18 07:22:56 how can I wait until my LocationClient connects and then return something? Of course I don't want to block my main thread... Jun 18 07:29:36 So anybody experienced Pattern.compile returning null in some API versions? Jun 18 07:29:52 fk really ? Jun 18 07:29:57 what api vers ? Jun 18 07:30:41 An alpha tester reported a crash on his S3. It's 4.1.2. Managed to recreate it on ARM emulator with 4.1.2. Really weird. Jun 18 07:31:18 At least that's what the debugger says... Jun 18 07:31:52 wait... Jun 18 07:33:25 Hi, anyone knows how to fix tab completion in adb when running on windows Jun 18 07:34:02 Never mind. My report was inaccurate. The string passed to the following matcher was the culprit. Yeah, of course it's never MY code that is wrong. Great assumption. Jun 18 07:34:36 how long you been doing this ? :) Jun 18 07:34:58 Only some 25 years. ;-) Jun 18 07:35:03 (not Android of course) Jun 18 07:35:20 sure the lesson are the same for almost all platforms though Jun 18 07:35:29 tis the tools fault, has to be :) Jun 18 07:35:51 Yeah, human instinct, blame somebody else first! Jun 18 07:44:27 kjeldahl, it's always the compiler. Jun 18 07:44:28 >P Jun 18 07:50:13 Trust me, there was a time where that was actually true at times. ;-) Jun 18 07:51:30 I guess that's where I picked up the habit of blaming it! :-) Jun 18 07:52:45 If I wrap a FileStream in a BufferedStream, is it sufficient to just close the BufferedStream? Or do I have to close both? Jun 18 07:53:09 freiform, closing the toplevel stream is enough Jun 18 07:53:28 Great, thank you. Jun 18 08:20:44 after a service is killed, what determines how long it takes until it's restarted? Jun 18 08:26:22 balls2thewall: does it matter? don't think you can control any of it anyways. Jun 18 08:26:37 sure. you can return sticky. It will get started asap. Jun 18 08:27:02 not quite as asap as id like :/ Jun 18 08:27:03 misterli: asap though can mean anything from within a couple of seconds to any time in the future ;) Jun 18 08:27:19 im leaving a persistent notification and i get rid of it after the action in the service completes Jun 18 08:27:52 i cant just leave it there for more than a minute waitng for the service to restart >_> Jun 18 08:27:56 use Wakelocks and START_STICKY. They (should) keep the service running aslong as you (relaly) need it Jun 18 08:28:57 balls2thewall. If you bind the Service then it should run aslong as the connection is established anyway. Jun 18 08:29:03 misterli: not really on any device with lots of apps installed since too many have services, start because of broadcasts and what not ;) Jun 18 08:29:54 well, it's not a good idea to let a service run all the time anyway. Bind it if needed, unbind if not required. Thats it Jun 18 08:30:03 or where the user is running memory intensive apps like chrome, flipboard or games Jun 18 08:31:17 misterli: except that doesn't work if you want the service to continue to run even when your actviity is not in the foreground.. Jun 18 08:32:02 well. My (current) app uses return_sticky and it keeps running all the time. If the ressources are needed for something else it stops for at least ~ 1-5seconds. (www.TheftSpy.com) Jun 18 08:32:14 balls2thewall: anyways, doesn't your ongoing notification for your foreground service go away automatically if the service gets killed? Jun 18 08:32:50 Anyway, if the service must run ALL THE TIME in IDLE then it's a Designproblem anyway Jun 18 08:32:59 misterli: +1 Jun 18 08:33:09 ;-) Jun 18 08:33:10 swiping it away from the recently used app list doesnt kill it. the service stops but the notification disappears only if i force stop it Jun 18 08:33:22 misterli: I would consider changing the main market graphic Jun 18 08:33:45 balls2thewall: so why don't you remove the notification when the service stops then? Jun 18 08:33:47 main market graphic? Jun 18 08:33:55 https://lh3.ggpht.com/i8seW_zE1j4ldgiOktr-20iMXmKGa34w7EOsHIkn2KNE2HtmADdq2cDQ32olUtco1A=w705 Jun 18 08:34:12 whops. Thank you ;) Jun 18 08:34:24 it be black on overlay too Jun 18 08:34:28 when you swipe the app away no events are called Jun 18 08:34:28 https://play.google.com/store/apps/details?id=de.seiboldsoft.theftspy Jun 18 08:34:32 and looks dirty Jun 18 08:34:45 i dont know when to remove the notification ;_; Jun 18 08:35:16 when there is no reason to have it there ? Jun 18 08:35:18 :) Jun 18 08:35:22 I see. Thank you Jun 18 08:37:29 I just had problems with the old "package". Google blocked the app because there was no Disclaimer. I had to set up a new "package". this is crazy. Jun 18 08:56:44 balls2thewall: if your service is not done with whatever it is doing then it isn't really wrong that the notification stays while the service is restarted so what is your issue? Jun 18 08:57:09 balls2thewall: and if the service has completed its task then you should've stopped it and removed the notification already so no problem in that case. Jun 18 09:09:29 Could any one help me out with the Google Play Store, opt-ing in for testing, and downloading the app? i can opt-in for testing, i see: 'you're a tester'.. but then i can't download it from the playstore: it says: you can't download your own apps.. Jun 18 09:13:24 huh ? Jun 18 09:13:30 thats not right Jun 18 09:13:31 :) Jun 18 09:16:15 must admit I have not needed to join the beta group Jun 18 09:16:24 cause …erm… I'm the dev Jun 18 09:16:26 :) Jun 18 09:17:05 Please see the screenshots in private msg Jun 18 09:17:14 msg me again Jun 18 09:17:16 I closed it Jun 18 09:17:48 but yeah, I would not have thought that to be true, but quite irrelevant really though ? Jun 18 09:18:54 well, if i put the signed apk from eclipse via dropbox on my phone... Jun 18 09:19:03 the lvl license says: don't allow Jun 18 09:19:13 cause it knows it didn't come through the play store? Jun 18 09:19:24 or my license is not correctly set up? :s Jun 18 09:19:31 so what does brightness pro do then ? Jun 18 09:19:40 you'll see eventually Jun 18 09:19:48 first i got the set this up right Jun 18 09:21:34 well must be pretty cool for 0.99 euros Jun 18 09:21:36 :) Jun 18 09:22:22 it is :P Jun 18 09:22:29 but some ppl won't need it Jun 18 09:22:53 but is it true that the LVL says: don't allow when your apk isn't coming via the play store? Jun 18 09:32:08 how much effort is it to update/recompile the webview/webkit utilized in Android? I'm guessing a lot Jun 18 09:34:06 hello, how can one detect whether tethering is enabled on the device? Jun 18 09:35:27 http://grepcode.com/search?query=TetherSettings&n= Jun 18 09:35:39 maybe of use Jun 18 09:37:24 line 505 maybe Jun 18 09:37:54 although seems a bit odd :) Jun 18 09:46:22 StringRay_ do you know why i get a 'dont allow' message from my LVL when i put the signed APK from eclipse onto my phone via dropbox? Jun 18 09:46:36 is it because i didn't download the app from the play store? Jun 18 09:46:57 dunno Jun 18 09:50:23 ok ty Jun 18 09:50:52 rved: no, that shouldn't matter Jun 18 09:51:07 check that you have the correct response set in your developer console Jun 18 09:51:15 ok ty, then there is something wrong in my code i guess Jun 18 09:51:18 and you have your developer account added on your phone Jun 18 09:51:25 yes i have Jun 18 09:51:30 and the test account too Jun 18 09:53:14 rops: even when i set the license response to: LICENSED in the dev concolse, I'm getting the "don't allow" Jun 18 09:53:17 ill check the code Jun 18 10:20:14 thanks StingRay… still looking at it.. Jun 18 10:21:08 huh? Jun 18 10:22:49 no sure what setUsbTethering is supposed to return... Jun 18 10:23:02 i have a question; to implement a function for my buttons, i use the onClick XML attribute. so create a method for them in the activity. but i need to put a methodName(View v) in my method definition. i wanna know what is the "v" ? i wrote my method for instance and it works just fine but my IDE says "v" never used! Jun 18 10:24:35 * omid8bimo what a long question! Jun 18 10:25:19 omid8bimo: v is the View that was clicked Jun 18 10:25:46 StingRay_: but i dont why it says this parameter never used Jun 18 10:25:54 eg, lets say you have a button that is R.id.cancel and one that is R.id.ok, you can have a switch/case inside the click method Jun 18 10:26:09 so you can say v.getId() == R.id.ok Jun 18 10:26:25 and do something in the same method based on what view was actually triggered Jun 18 10:26:42 oh! so its not needed to address/use the parameter, but only just when need it Jun 18 10:26:53 well it needs to be there Jun 18 10:27:02 cause the onClick will awlays pass the view Jun 18 10:27:11 if you use it or not is up to you Jun 18 10:27:29 can i use the the same "View v" for several button's methods in one activity? Jun 18 10:27:39 thats the point Jun 18 10:27:47 you have one onCLick for many buttons Jun 18 10:28:05 and you do what you want based of the id of the view Jun 18 10:30:59 got it. Jun 18 10:51:54 My license (LVL) is returning "Error contacting licensing server" all the time Jun 18 10:52:18 i already googled, but can't find a solution.. already tried deleting the play store data + play store service data Jun 18 10:52:22 but no luck Jun 18 10:54:00 Does any have any experience with this? Jun 18 11:04:46 any one please? Jun 18 11:21:39 how close are you to release ? Jun 18 11:23:49 this is the final step Jun 18 11:23:58 the free version is already online Jun 18 11:24:07 oh, link? Jun 18 11:24:13 but the paid version, i can't setup the lvl Jun 18 11:24:44 https://play.google.com/store/apps/details?id=com.rved.brightness Jun 18 11:24:52 if you encounter a bug, please let me know Jun 18 11:26:38 but i seriously need some help with this lvl part, i've set up everything correctly.. but i still get a error Jun 18 11:26:39 W/LicenseValidator(13863): Error contacting licensing server. Jun 18 11:26:41 erro code 291 Jun 18 11:26:51 D/291(13863): reason Jun 18 11:27:11 the paid app is in beta testing - published Jun 18 11:29:20 ah g/f uses something similar on her phone Jun 18 11:29:23 rved: You've made sure you've added all the keys to the api server etc (not only debug key)? Consider it a control question; looks like you've been through this at least once before.. Jun 18 11:29:42 goes all the way down to -100% brightness, but tis free too :) Jun 18 11:29:57 well, the free version goes from 0 to 100% Jun 18 11:30:03 ;) Jun 18 11:30:23 yeah, the one she uses has your pro feature for free is what I mean Jun 18 11:31:05 kjeldahl: debug key? i added the BASE64_PUBLIC_KEY and a random SALT Jun 18 11:31:09 i never seen a debug key Jun 18 11:31:29 the BASE64_PUBLIC_KEY comes from the dev console (specific for this APK file) Jun 18 11:31:39 (* or at least: for this APP) Jun 18 11:33:03 rved: I'm knees deep into the FB SDK thingy where the signing keys need to be authorized. The Google stuff probably uses other methods. My apologies, just an idea. Jun 18 11:33:22 ahh ok Jun 18 11:33:49 i've read it takes 'time' but the beta version is only for testing since yesterday Jun 18 11:34:05 so i can't understand why it can't connect to the server Jun 18 12:25:59 wow ubuntu touch doubled the amount of "tollerated on one of my devices" since last attempt a few months back, it's now up to 80 seconds Jun 18 12:41:30 when i use moveTaskToBack(false); my app goes to the background, i see my previous screen again, in this case the menu Jun 18 12:41:37 but when i try to click on an icon Jun 18 12:41:39 it won't open Jun 18 12:41:50 any ideas?\ Jun 18 12:41:59 if i use finish() in my app, it does work Jun 18 12:42:07 but actually need movetoback Jun 18 12:50:27 how do i put fragments into every row of a ListView? Jun 18 13:00:53 return them in getView Jun 18 13:01:12 whats this for clever ? Jun 18 13:01:27 cause it maybe not really a clever thing to do Jun 18 13:02:51 StingRay_: i tried putting the fragment right into the layout xml, that getView was inflating Jun 18 13:02:59 StingRay_: 06-18 12:44:28.256 956 969 D / com.nullwire.trace.ExceptionsHandler: Caused by: java.lang.IllegalArgumentException: Binary XML file line #14 Duplicate id 0x7f0a0029, tag null, or parent id 0x0 with another fragment for com.angeldsis.lou.fragments.ResourceBar2 Jun 18 13:03:04 then it threw this exception Jun 18 13:03:14 ya Jun 18 13:03:18 it will Jun 18 13:03:34 fragments defined and created from xml are….. limited Jun 18 13:03:53 and the fragment manager only allows you to replace by id Jun 18 13:04:05 and every row has the same id, which isnt yet attached to the view tree Jun 18 13:04:14 so i dont see how i can use it outside xml either Jun 18 13:04:25 same way a viewPager does Jun 18 13:04:27 an adapter Jun 18 13:04:45 or just dynamically create them in getItem Jun 18 13:04:49 i already have a custom adapter extending BaseAdapter Jun 18 13:04:56 and i can create the fragment inside getItem Jun 18 13:05:01 but how do i bind that fragment to the ui? Jun 18 13:05:11 any way you want to Jun 18 13:05:30 the only method i know is FragmentTransaction.replace, which needs the id of a view to insert it into Jun 18 13:05:41 and every row in the listview shares the same id on that view Jun 18 13:05:49 no Jun 18 13:05:52 see if you answer yes to these questions Jun 18 13:06:03 do you know how to create a fragment in code ? Jun 18 13:06:22 do you know how to add it to a part of the ui in code ? Jun 18 13:06:30 do you know how to reference it later on ? Jun 18 13:06:37 do you know how to give it data ? Jun 18 13:06:43 #1 getSupportFragmentManager().beginTransaction().replace(R.id.main_frame, new Loading()).commit(); Jun 18 13:06:56 and #2 Jun 18 13:06:56 if the answer is no to 1 or more of them, you should learn that and then you would have your answer Jun 18 13:07:47 what other methods are there to add the fragment to the ui? Jun 18 13:08:24 add Jun 18 13:08:26 :) Jun 18 13:08:53 and if every item in the list shares the same id, wont they all gather in the 1st row? Jun 18 13:09:07 if you want them to Jun 18 13:09:10 lol Jun 18 13:09:12 i dont want them to Jun 18 13:09:16 then dont do that Jun 18 13:09:28 what does a fragment return ? Jun 18 13:09:40 when you create it ? Jun 18 13:09:54 its displaying a somewhat complex collection of views Jun 18 13:10:00 no Jun 18 13:10:02 1 view Jun 18 13:10:11 yeah, all held in a linear layout Jun 18 13:10:18 no Jun 18 13:10:21 any layout Jun 18 13:10:27 but neways, 1 view Jun 18 13:10:30 what does getView in an adapter do ? Jun 18 13:11:03 return the view for that row, which in my case, is inflated from xml Jun 18 13:11:10 no Jun 18 13:11:17 it returns a view that you control Jun 18 13:11:21 yeah Jun 18 13:11:27 nothing to do with inflation or rows Jun 18 13:11:34 you do that however you want Jun 18 13:11:40 but i am choosing to use inflation for that task Jun 18 13:11:59 thats your choice Jun 18 13:12:08 dont use fragments then Jun 18 13:12:23 the UI element i want to display in the list is fragment based Jun 18 13:12:40 and i dont want to maintain 2 functionaly identical classes (extending fragment and view) Jun 18 13:13:16 well I've never used fragments in xml, I find the idea a bit pointless tbh Jun 18 13:13:26 well, maybe not totally pointless Jun 18 13:13:35 but restrictive and not really functional Jun 18 13:14:42 StingRay_: if i wanted to attach a fragment to the View in getView, how would i do so? Jun 18 13:15:00 you dont, you just return the view Jun 18 13:15:07 listView manages the attach Jun 18 13:15:30 i am returning a view, but i want a fragment to be a child of that view that i return Jun 18 13:15:49 each view in the list is a linearlayout, containing a textview and the fragment Jun 18 13:16:04 the problem is getting that fragment into the linearlayout Jun 18 13:16:14 oh, the fragment is not the view you want to return ? Jun 18 13:16:44 as in you would want a fragment + some other views in that item ? Jun 18 13:16:48 yes Jun 18 13:17:26 whats in this fragment ? Jun 18 13:17:57 a linear layout with another 8 textviews, 4 imageviews, and some code so it can manage itself and update things based on state Jun 18 13:18:23 and whats going to be next to this fragment in an item ? Jun 18 13:18:51 a textview telling the user the name of this item Jun 18 13:19:04 why would you not have that in the fragment ? Jun 18 13:19:18 because its not needed in other areas i use the fragment Jun 18 13:19:30 then hide/dont use it then Jun 18 13:19:44 that would make your life 100 times more simple Jun 18 13:19:45 then how would i return the fragment to the listview? Jun 18 13:19:59 by returning the view Jun 18 13:20:27 manualy calling onCreateView inside my fragment? Jun 18 13:22:34 or have a method that returns the view maybe Jun 18 13:22:50 then the fragment wont really be linked into the fragment manager properly Jun 18 13:22:51 you could extract common parts you need from the fragment to separate widget (view) and use it in the fragment and in the list Jun 18 13:22:55 and things like getActivity wont work Jun 18 13:23:21 karlo|w: it originaly was a View subclass, was trying to simplify it by just making it into a fragment Jun 18 13:23:27 http://developer.android.com/reference/android/support/v4/app/FragmentPagerAdapter.html Jun 18 13:24:18 the scrolling in that behaves in a different manner, and you must force the number of items on the screen Jun 18 13:24:18 imagine chaninging the word pager to item or taking it out completely Jun 18 13:26:05 oh and the parent view passed to the adapter cant be the same id cant it ? Jun 18 13:26:22 If i do http://paste2.org/GKFg1an2 the finish is called before the animation ends... Jun 18 13:26:25 the view system doesnt care about duplicate id's within the view tree Jun 18 13:26:30 how come? Jun 18 13:26:39 clever: I beg to differ Jun 18 13:26:41 but the fragment manager does get upset if you have fragments attached to duplicate id's Jun 18 13:26:47 I can do many things to prove it does Jun 18 13:26:52 and I know thats what the docs say Jun 18 13:26:58 StingRay_: i am using the same layout with duplicate id's in EVERY one of my list adapters Jun 18 13:26:59 but they are wrong Jun 18 13:27:10 indeed Jun 18 13:27:16 but never referenced from the tree Jun 18 13:27:22 it works right if you do row.findViewById( Jun 18 13:27:28 yeah Jun 18 13:27:32 only from an item in the tree where things are unique and managed Jun 18 13:27:41 yep Jun 18 13:27:51 the problem i have now, is that fragment manager wants the view id, and wont take an item to start at Jun 18 13:28:00 internally, it starts at the root, where they arent unique Jun 18 13:28:10 rved: animation gets cancelled? Jun 18 13:28:21 no, when i remove finish all works well Jun 18 13:28:35 so finish gets called before the animation ends Jun 18 13:28:43 really strange.. Jun 18 13:29:12 StingRay_: the only answer i can see is to give every item in the list a unique id, so the fragment manager can reference them Jun 18 13:29:17 onAnimationCancel forwards call to onAnimationEnd by default afair Jun 18 13:29:41 but then how will i avoid id collisions?, what section of the id space is reserved for such use? Jun 18 13:31:55 clever: not sure your idea here is gonna work Jun 18 13:31:58 thinking about it Jun 18 13:32:16 think about how the lifecycle can screw you Jun 18 13:32:23 and the listView view management Jun 18 13:32:29 doubt it will work Jun 18 13:32:53 listview reusing things, fragment and all, wont cause an issue, i can poke the fragment to tell it to update to the new data Jun 18 13:32:57 and tbh, probably not needed in your case anyways, there maybe much easier ways to acheive what you want Jun 18 13:32:59 if i can get a reference to the fragment out Jun 18 13:33:07 karlo|w: your right, when i add @Override Jun 18 13:33:08 public void onAnimationCancel(Animator animation){ Jun 18 13:33:09 Log.d("", "test"); Jun 18 13:33:10 } Jun 18 13:33:12 i see ;test; Jun 18 13:33:14 in the console Jun 18 13:33:18 so why is it getting called? Jun 18 13:33:51 rved: Log.d("","test",new Exception()); Jun 18 13:33:55 clever: you can do that to a adapter too Jun 18 13:34:22 StingRay_: i'm already using an adapter Jun 18 13:34:36 i know Jun 18 13:34:59 so whats the issue with updating ? Jun 18 13:35:24 right now, the issue is just getting the adapter to show fragments in the rows Jun 18 13:35:35 clever: http://paste2.org/Yxs6GEJx Jun 18 13:36:01 rved: you now have a backtrace showing exactly how onAnimationCancel was called Jun 18 13:36:21 clever: but how will you manage detach and re-attach on recycling ? Jun 18 13:36:22 rved: line 9 shows it was due to your .hide() method callint .alpha, i think Jun 18 13:36:50 StingRay_: if it gives me a convertView with a fragment already on it, i can just call an existing method on that fragment, to inform of it the new data Jun 18 13:37:03 erm no you miss my point Jun 18 13:37:12 the fragment is bound to a context and a view Jun 18 13:37:16 as a parent Jun 18 13:37:21 yeah Jun 18 13:37:33 the parent will require a new fragment, when recycled Jun 18 13:37:33 that parent would be the LinearLayout that the adapter returns Jun 18 13:37:45 and the old restored based on order of recycling Jun 18 13:37:48 AND Jun 18 13:37:49 the linearlayout is what gets shuffled arround and recycled Jun 18 13:38:00 clever: well, the hide function i created does the fade out. Another function, that registers the touch outside the dialog, calls hide().. i did find out that on 1 touch outside the dialog, hide() gets called 4 times, maybe this has to do with it? Jun 18 13:38:10 getView is not guarenteed to be called in order Jun 18 13:38:20 and is called for measuring view limits too Jun 18 13:38:23 not just for display Jun 18 13:38:44 rved: id add more debug to things that call hide and figure out why its taking the path in that backtrace Jun 18 13:38:46 clever yes, and your wanting to parent a fragment to that lin layout Jun 18 13:38:55 you still dont see the prob ? Jun 18 13:38:55 ok ty Jun 18 13:39:24 StingRay_: not exactly sure where the problem is Jun 18 13:39:29 ok imagine this Jun 18 13:39:42 i dont see how the order of the calls matters, every time getView is ran, i can tell the fragment which row it should be showing Jun 18 13:39:45 lin layout (item) C goes off the bottom of the scroll Jun 18 13:39:54 that had fragment C attached Jun 18 13:40:07 then the linear layout C will be detatched from the listview Jun 18 13:40:09 it comes back on as item index 8 Jun 18 13:40:15 and everything under it becomes hidden Jun 18 13:40:26 it's not hidden Jun 18 13:40:30 it's back on Jun 18 13:40:32 at the top Jun 18 13:40:38 as index 8 rather than 3 Jun 18 13:40:41 when it comes back as index 8, its passed as the convertView param of getView, and i can poke the fragment to tell it so Jun 18 13:41:07 i'm already doing that with the older View style code that i'm trying to remove Jun 18 13:41:15 ok Jun 18 13:41:19 now imagine this Jun 18 13:41:34 getVIew is called 4 times for none view related purposes Jun 18 13:41:39 or not display related Jun 18 13:41:45 what do you do then ? Jun 18 13:42:04 for measurement, it will create 4 rows, with 4 fragments, and return them back to listview Jun 18 13:42:10 some of those views are on screen, some may not be Jun 18 13:42:16 which will likely just chuck them in the garbage can after checking the size Jun 18 13:43:03 cool, setId on the parent section of the view then Jun 18 13:43:03 clever: solved, because hide was getting called 4 times it would cancel Jun 18 13:43:10 clever: solved with a once check Jun 18 13:43:42 if I were a betting sort, I would say, thats bad design, and not sure how it will ever work Jun 18 13:43:49 but interested to know ;) Jun 18 13:44:23 StingRay_: http://gallery.earthtools.ca/index.py/android/device-2013-02-16-193627.png Jun 18 13:44:43 StingRay_: each set of 4 icons and 8 numbers in this screenshot is an instance of my old View subclass Jun 18 13:45:01 and the name above that is just a TextView that the getView call put as a sibling Jun 18 13:45:15 yeah Jun 18 13:45:17 thats fine Jun 18 13:45:20 not the same thing though Jun 18 13:45:27 fragment != view Jun 18 13:45:30 i'm trying to replace that View subclass with a Fragment subclass Jun 18 13:46:07 like i said, try it Jun 18 13:46:17 I would be interested to know how you get on Jun 18 13:46:20 18 10:02:59 < clever> StingRay_: 06-18 12:44:28.256 956 969 D / com.nullwire.trace.ExceptionsHandler: Caused by: java.lang.IllegalArgumentException: Binary XML file line #14 Duplicate id 0x7f0a0029, tag null, or parent id 0x0 with another fragment for com.angeldsis.lou.fragments.ResourceBar2 Jun 18 13:46:30 personally I think it's bad design to need that Jun 18 13:46:36 for such a simple item Jun 18 13:46:53 why do you say the item is simple? Jun 18 13:47:22 cause I see 9 text views and 4 images Jun 18 13:47:34 and some stateLists Jun 18 13:48:01 i'm using the set of 8 textviews and 4 images in several other parts of the app, without a list Jun 18 13:48:17 and it saves a lot of code to put it all into a fragment and let it manage itself Jun 18 13:49:04 Hi there, what would be a good hgignore file for "Android Studio" Jun 18 13:49:06 like I said, alter the id then and try it Jun 18 13:49:13 i doubt it will work well at all Jun 18 13:49:54 18 10:29:12 < clever> StingRay_: the only answer i can see is to give every item in the list a unique id, so the fragment manager can reference them Jun 18 13:49:55 and I still say it's attempting to kill a spider with a, as of yet undiscovered explosive device Jun 18 13:49:57 18 10:29:35 < clever> but then how will i avoid id collisions?, what section of the id space is reserved for such use? Jun 18 13:50:13 for this test, you can just rand it Jun 18 13:50:20 cause I doubt you will get far neways Jun 18 13:50:43 you could check against R but like I said, bit pointless to start with Jun 18 13:50:56 * clever edits Jun 18 13:54:14 StingRay_: R.id doesnt contain every id in the namespace, there are many in android.R.id, and some that are hidden Jun 18 13:54:47 like i said, for a test, your not likely to hit anything in the same view segment Jun 18 13:55:06 its loading the code up now... Jun 18 13:55:06 or you would have to try really hard and many times to cause a meaningful collision Jun 18 13:55:19 obviously not for release Jun 18 13:55:21 :) Jun 18 13:55:22 So I have a project which builds perfectly on my friend's computer. It uses ActionBarSherlock. I've got that building and added as a library project just like it says on their website. my application builds fine (including ActionBarSherlock references) yet whenever I run it I get "Unable to instantiate activity ComponentInfo java.lang.ClassNotFound" for my activity. Bug goes away if I make my class not use ActionBarSh Jun 18 13:55:30 but I doubt you will get far with this Jun 18 13:55:36 is it currently possible to set a custom font on widgets? Jun 18 13:59:07 bar.setId((int) getItemId(position)); Jun 18 13:59:07 getFragmentManager().beginTransaction().replace((int) getItemId(position), holder.bar); Jun 18 13:59:18 StingRay_: i dont see any error, but i also dont see the view in the layout Jun 18 14:00:08 looks to be a side-effect of loading my fragment later in the life-cycle then it was tested under Jun 18 14:00:11 * clever tries to fix... Jun 18 14:01:11 well sleep time for me Jun 18 14:01:20 you will have to let me know how you get on clever Jun 18 14:01:44 testing the fix... Jun 18 14:01:50 should only take a second Jun 18 14:02:31 hmmm, now its just silently failing Jun 18 14:04:41 onStart isnt being called Jun 18 14:08:34 right, sleep time/ wind down Jun 18 14:08:40 good luck clever Jun 18 14:09:17 Hey Jun 18 14:09:36 if someone comes to you with an app they want developed how do you price it? Jun 18 14:10:09 so having decided to be early adopters of gradle we are noticing that nobody is uploading .aar to maven central (yet), though it looks like people are fairly commited to the idea Jun 18 14:11:09 Ankhwatcher: years of experience * number of apps published with over 10,000 downloads * number of suits currently owned Jun 18 14:11:21 rofl Jun 18 14:11:30 thats the day rate in local currency Jun 18 14:11:30 StingRay_: 2 euro an hour? Jun 18 14:11:35 Ankhwatcher, how much do you value your own time Jun 18 14:11:38 na, I'm 1.5 Jun 18 14:12:20 brx_: relatively low, I don't mind being paid intern wages for a month or two, provided it goes up after that Jun 18 14:12:28 night/evening/morning/laters Jun 18 14:12:36 ? Jun 18 14:12:39 you're leaving? Jun 18 14:13:46 Ankhwatcher, dont sell yourself short :P Jun 18 14:14:20 i'm thinking of making a local repo and deploy all the 3rd party libraries to it as aar ... is this a sane approach? Jun 18 14:14:25 brx_: I'm unemployed and under-experienced. I just want to work on a project that get finished Jun 18 14:14:48 Ankhwatcher: I'd charge $100/hr and go from there Jun 18 14:15:01 lov: I know you would Jun 18 14:15:12 Ankhwatcher: biggest risk is undercharging Jun 18 14:15:13 Ankhwatcher, if its an easy job then he doesnt know,there is a knowledge gap Jun 18 14:15:24 if you can deliver then he will pay the price Jun 18 14:15:26 Ankhwatcher: you could too. Jun 18 14:15:33 Lots of people will have a misconception of how difficult software developement is Jun 18 14:15:42 At a minimum, $50, if you really think that you're not going to be very good. Jun 18 14:16:12 or what it should cost, you could come back with $200 for a 2 month project and have them gawk because they know nothing... Jun 18 14:16:53 brx_: it's not going to be easy, it will involve a lot of learning and I'm not entirely confident that they have a capable backend dev Jun 18 14:17:09 Ankhwatcher: an excellent excuse to rack up hours. Jun 18 14:17:11 then find one, tell him you will handle that too Jun 18 14:17:16 ye lov Jun 18 14:17:20 exactly hah Jun 18 14:22:18 hi all. i'm trying to use https://github.com/ened/Android-Tiling-ScrollView to scroll a large bitmap image. however i get a runtime error, even when i try to compile the library author's example-usage source code, i get a crash. it's at http://pastebin.com/jG082Dy8. i've googled the error and no joy. can anyone give me a clue about how i can debug this? i find the error message really difficult to understand Jun 18 14:22:39 if anyone is really motivated, they could grab the code from git, build it, and see the error for themselves :D Jun 18 14:23:59 antgel: what's on line 10 of the layout? Jun 18 14:25:04 lov: i'll pastebin, one second Jun 18 14:26:37 lov: it's at http://pastebin.com/3SUNjaVm - the pastebin has line numbers Jun 18 14:26:55 I really don't get this... I added ActionBarSherlock as a library exactly as stated on the website yet it's as if it's not part of my APK? Not really sure how to debug Jun 18 14:27:32 be specific Jun 18 14:27:47 dexdump classes.dex | grep actionbarsherlock Jun 18 14:28:15 Thank you I will try running that Jun 18 14:28:19 Does anyone know if I can do a POST to a https server with self-signed certificates from my android app (am using phonegap) Jun 18 14:28:36 grep Class Jun 18 14:28:37 as well Jun 18 14:28:40 antgel: are you sure asia.ivity.android.tiledscrollview.TiledScrollView exists? Jun 18 14:28:48 blib: i believe you need to set the ssl socket factory on the HttpsUrlConnection Jun 18 14:29:00 blib: and that socket factory has to be setup to accept your certs Jun 18 14:29:01 also, consider using res-auto for your xmlns in the future. Jun 18 14:29:53 lov: i'm not sure how to answer that (whether it exists). i built the library as a .jar, put it in libs/ and updated the build path. the code that i'm showing you is directly from the author's example at https://github.com/ened/Android-Tiling-ScrollView Jun 18 14:30:22 lov: i tried using res-auto, and for some reason the xml didn't like it (there was an error with a red x) Jun 18 14:30:38 clever: thanks. But am not sure I've access to that class from phonegap, will look into it. Jun 18 14:31:12 lov: did i do something wrong? Jun 18 14:31:33 antgel: maybe. You updated the build path in eclipse. Is the jar set to be exported? I suspect that the class doesn't actually exist in your final apk. Jun 18 14:33:58 Hmm apparently DexDump doesn't work on Windows... That's what I get for using Windows I guess Jun 18 14:34:29 E/dalvikvm( 6948): sysMapFileSegmentInShmem not implemented. Jun 18 14:34:29 W/dalvikvm( 6948): Zip: cd map failed Jun 18 14:34:56 lov: ah. i'll check that. i don't know how to set a jar to be exported, but i'll check it out Jun 18 14:35:12 antgel: project properties -> java build path -> order and export Jun 18 14:35:33 actually, go to java build path -> libraries first, see where the jar is living (probably "Android Private Libraries"), then make sure that's exported. Jun 18 14:37:51 lov: i got very excited by your suggestion, but "unfortunately" there was a big fat tick there so it looks like it's being exported Jun 18 14:38:52 antgel: hmph, dunno what to suggest offhand. You could use baksmali to prove it's getting exported, or try manually instanciating it. Jun 18 14:38:58 good luck Jun 18 14:44:43 Hey all. Mind taking a look at this question please? Would appreciate any insight. http://stackoverflow.com/questions/17154934/what-development-environment-engine-for-creating-app-with-interactive-map Jun 18 14:44:55 dexdump works fine on windows Jun 18 14:45:05 if it's not working for you, you're doing it wrong Jun 18 14:45:21 or your computer is busted Jun 18 14:45:37 I'd say it's likely there's a bug in the Windows build given I run it against an APK and it gives me a stack trace. Although busted computer is also a possibility now that you mention it Jun 18 14:45:38 blib, you can't do it purely from phonegap Jun 18 14:45:48 you don't run it against an apk Jun 18 14:45:52 I just renamed my ".apk" to a zip, extracted the classes.dex and ran it against that Jun 18 14:45:55 And now it's working though Jun 18 14:45:58 dexdump classes.dex | grep actionbarsherlock Jun 18 14:46:01 does the Android system poll for your location if you have GPS turned on? Jun 18 14:46:25 There are about a million actionbarsherlock classes inside it so I guess that's getting included Jun 18 14:46:40 AVariedDeveloper, grep 'Class descriptor' as well Jun 18 14:47:36 pfn: Whole ton of those. A lot of actionbarsherlock class descriptors. Do you know if there's a way I can look for theme elements or would those not be in classes.dex? Jun 18 14:47:51 themes are in the res.apk Jun 18 14:50:02 lov: thanks. i'm new to android but not to development. very frustrating so far :/ Jun 18 14:51:44 hi :), i have a problem with map v2. I create a custom window,InfoWindowAdapter. If my custom layout have a button inside it doesn'rt work because winwow is clickable Jun 18 15:00:02 <_cory> morning all Jun 18 15:02:48 pfn: Perhaps there is a way to write native code for phonegap that I could call as a library from phonegap? Jun 18 15:03:06 hi all. i'm trying to use https://github.com/ened/Android-Tiling-ScrollView to scroll a large bitmap image. however i get a runtime error, even when i try to compile the library author's example-usage source code, i get a crash. it's at http://pastebin.com/jG082Dy8. i've googled the error and no joy. can anyone give me a clue about how i can debug this? i find the error message really difficult to understand Jun 18 15:03:06 blib, you can write java code that you could call from phonegap Jun 18 15:03:21 at least I assume phonegap allows this Jun 18 15:03:29 the .xml with the error is at http://pastebin.com/3SUNjaVm - the pastebin has line numbers Jun 18 15:04:10 hi :), i have a problem with map v2. I create a custom window,InfoWindowAdapter. If my custom layout have a button inside it doesn'rt work because winwow is clickable Jun 18 15:04:10 pfn: I've never done this, but I'll look into it Jun 18 15:07:51 Hey eclipse is telling me that addPreferencesFromResource(R.xml.prefs) is depreciated. I am using a book that was made when 2.2 was new so is there a handy page that anyone can point me to real quick that serves as some sort of changelog before I go hunting on google? Jun 18 15:08:07 d.android.com Jun 18 15:08:08 api reference Jun 18 15:11:01 here my logcat: http://pastebin.com/tPWd20u9 i followed: http://developer.android.com/training/basics/firstapp/starting-activity.html#DisplayMessage in the second activity i also have a text(static) and a image (but not displayed) see the design screen: http://picpaste.com/img1-co9JIqo7.png Jun 18 15:15:02 pfn: Is it easy to do using android? (AJAX+self-signed cert accepts) Jun 18 15:15:30 depends on your definition of easy, but it is relatively easy in the grand scheme of things Jun 18 15:16:14 pfn: any pointers on the web that help me do that? Jun 18 15:16:28 I don't have pointers for you Jun 18 15:16:33 that's google's job Jun 18 15:16:53 and as someone else mentioned before, you set an ssl socket factory on the url connection, or globally throughout the app Jun 18 15:17:57 thanks Jun 18 15:20:39 man, gradle project layout is ass Jun 18 15:20:47 pfn any advice? Jun 18 15:22:38 pfn are you using the gradle build standalone or with AS ? Jun 18 15:22:49 I'm not using gradle Jun 18 15:22:51 I use sbt Jun 18 15:23:11 I'm just looking at a dashclock, which moved to gradle Jun 18 15:24:17 Hey there. I'm using "android.support.v4.app" for a tab layout. How can i get the active tab fragment? Thank you in advance. Jun 18 15:26:33 hi is there any android app for programming with autocomplete Jun 18 15:28:06 ? Jun 18 15:29:19 some day, I need to write this proguard cacher thing... Jun 18 15:29:24 or rip off someone's Jun 18 15:32:55 i want to push again sorry: http://answers.opencv.org/question/15137/videocapture-device-on-android/ Jun 18 15:33:35 what exactly is the X coordinate returned by DragEvent.getX() Jun 18 15:33:45 it sure as hell isn't the position on the screen Jun 18 15:35:15 here my logcat: http://pastebin.com/tPWd20u9 i followed: http://developer.android.com/training/basics/firstapp/starting-activity.html#DisplayMessage in the second activity i also have a text(static) and a image (but not displayed) see the design screen: http://picpaste.com/img1-co9JIqo7.png Jun 18 15:43:46 hm, would be nice to embed a lua scripting engine in my app Jun 18 15:44:13 you can easily embed jython or rhino Jun 18 15:44:21 although, the jython runtime is quite large Jun 18 15:44:32 * g00s looks up rhino Jun 18 15:44:48 not lua, but it's scripting Jun 18 15:45:39 cool, thanks. maybe rhino will work for me Jun 18 15:45:52 yeah, rhino is reasonably small Jun 18 15:46:44 kakazza friend are you there? Jun 18 15:49:30 huh, how do I detect that the lockscreen dialogbox is dismissed in 4.2 when I'm launching an activity? Jun 18 15:49:41 I want to cancel my activity if the user dismisses the little unlock prompt that appears Jun 18 15:49:49 (cancel => finish) Jun 18 15:57:06 wow, Rhino is old - started in 1997 Jun 18 15:58:37 i guess Java 8 will have oracle's nashorn but that will use jsr292, so i dont see it usable on android Jun 18 16:00:09 how to display a activity with a image on design time? Jun 18 16:03:35 So after comparing all the classes.dex from my broken APK and my co-worker's working APK, mine is missing all the classes which are part of the source code for my own application... It has all the classes from its dependencies, but none for the actual Java files which are part of my project. Of course, if I edit one of those Java files and intentionally break it, I'll get a syntax error from the compiler so Jun 18 16:03:35 it's trying to build them, but not linking them? Jun 18 16:05:52 AVariedDeveloper try building with the command line tools Jun 18 16:08:12 if using eclipse make sure src/ is under Order/Export - not sure how that could get messed up though Jun 18 16:09:18 g00s any advice? Jun 18 16:10:07 g00s: I'm not sure when I messed it up, but I somehow removed JavaNature from part of the build file..... I am not very clever Jun 18 16:10:31 AVariedDeveloper where were you building from? Jun 18 16:10:48 that doesn't sound eclipse-y Jun 18 16:10:56 g00s: I was building from Eclipse. I think your "building from commandline" may have helped me too, but I just happened to stumble upon my mistake Jun 18 16:16:49 g00s design time visualization isnt good? Jun 18 16:23:06 hi everyone! I have a quick more general question I would like your opinion on...I am adding google play licencing to my (now) paied app, but I would not like to cut off older app versions that dont have licensing...is this possible? Jun 18 16:26:02 LeProf2013: wouldn't that just happen automatically since the already-installed copy of the app won't get the licensing code until they update? Jun 18 16:27:20 evanc: want the older app users be made to upadate? Jun 18 16:27:41 evanc: sorry fast tying Jun 18 16:28:07 evanc: will the update not be pushed out to everyone asking them to update? Jun 18 16:29:15 oh, you're looking to grandfather people in? Jun 18 16:31:29 at some point I will have to stop the old app version, when I see users are moving to the new version Jun 18 16:32:15 as otherwise it will be pointless in having a licenced verion and a free version for a long time Jun 18 16:32:31 but at first I would like to let the old users use the app... Jun 18 16:32:59 hi all. within my app, is it possibile to get an unique identificator that refers to the google account which downloaded my app? Jun 18 16:33:24 cause AccountManager.getAccounts() lists all the connected account Jun 18 16:35:34 and i gues that "taking the first one" it's not so reliable... Jun 18 16:41:59 any ideas on how to do this? Jun 18 16:42:56 If I want an alarm to run every day on my app do I need to just register it when the application starts and it will continue to run every day even if the phone is restarted? Jun 18 16:45:41 No, alarms are lost on reboot Jun 18 16:51:48 SimonVT: So I will need to create a broadcast reciever that will get the on boot complete and then have it create the alarm again? Jun 18 16:52:24 Yep Jun 18 17:08:55 JakeWharton: around? Jun 18 17:11:30 i've got the following drawable -- http://pastebin.com/Jh6w4knz. when i call the setLevel method along with the postInvalidate method of the view this drawable is attached to, it doesnt seem to be rotating along it's axis on gingerbread devices. Jun 18 17:11:38 Hey guys, I want to look into how to get apps to communicate with each other like a messaging system etc. Where do I start? Would something like this be hard? Jun 18 17:12:23 CocoStorm: if using broadcast intents is sufficient, it's relatively simple. Jun 18 17:12:31 otherwise, you might need to get into AIDL Jun 18 17:13:11 lov, I see, so look into broadcast intents for a social app for example whatsapp? Jun 18 17:13:39 CocoStorm: you may also be able to use the Messenger class, see http://developer.android.com/guide/components/bound-services.html Jun 18 17:13:56 CocoStorm: I really have no idea what your use case or reqs are so I don't know what to suggest. Jun 18 17:14:43 lov, ah I see, well I have a project in mind which is a bit ambitious so I wanted to get into the basics first so gonna try and do a simple messaging app for now Jun 18 17:14:58 Gonna look at the docs, thanks a lot Jun 18 17:15:30 np Jun 18 17:39:10 how come 'com.9frame.appname' is not a valid package name? Jun 18 17:39:17 but com._9frame.appname is fine? Jun 18 17:39:24 because a package name cannot start with a number Jun 18 17:39:29 just like classes, variables, etc. Jun 18 17:39:29 i see Jun 18 17:39:36 so what's the best work around? Jun 18 17:39:37 just use _? Jun 18 17:39:45 or spell it out Jun 18 17:39:47 nineframe Jun 18 17:39:56 ok, i was thinking about that Jun 18 17:40:02 thanks Jun 18 17:42:09 where can i find documentation on animated-rotate? Jun 18 17:42:51 nowhere, it's not a public API Jun 18 17:44:45 romainguy, gotcha. Jun 18 17:48:03 Does anyone here work on the AOSP? How do I use repo to sync master with my branch? (I'm too used to "git merge master") Jun 18 17:50:13 any reason why, on Gingerbread devices, the pivotX and pivotY seem to be ignored when using a RotateDrawable? Jun 18 17:56:05 SimonVT: TY Jun 18 18:03:20 hwrd|work, repo sync, repo rebase Jun 18 18:03:43 canadiancow: ++ Thank you so much Jun 18 18:08:18 funkbox: i am now Jun 18 18:08:55 JakeWharton: i have an outstanding PR on picasso for a setter for localCacheOnly. was wondering if that seems like a reasonable addition. if not, i need to make other plans Jun 18 18:10:25 Is anyone available to help me out? Jun 18 18:10:55 Silent0ne: ask, instead of asking for help ;) Jun 18 18:12:26 funkbox: we haven't had a chance to talk about it yet Jun 18 18:12:39 JakeWharton: ah okay. Jun 18 18:13:17 Thank you. I apologize I haven't been on irc for years. I'm having a problem with changing text color on a theme I'm building. Being relatively new to xml and java, I cannot seem to find the correct value to change. The secondary text on the keyboard (shift characters) and the title text on the power menu I can't seem to find. Jun 18 18:13:28 hi guys. I've been getting some bad comments on one of my apps in google play, apparently the app crashes on a phone called 'cdma_spyder' - I know it's a Droid Razr but I'm not 100% sure what model it is exactly. Of course I googled it but I'm still not 100% sure. Any ideas how to check this? Jun 18 18:15:33 I guess my question is, is there a standard or default title for the item? Jun 18 18:16:00 Techdeck: i'd suggest using something like crittercism or bugsense to get more details about the crash Jun 18 18:16:53 Or could I possibly send my apk to someone to analyze and let me know what I'm doing wrong? Jun 18 18:19:16 funkbox, it's a really weird kind of crash, not the normal type. It's not a force close - it's like the kernel is killing the process Jun 18 18:20:07 I think it has something to do with a motorola bug but I wasn't able to get reports about it - I tried using acra Jun 18 18:20:22 therefore I would like to buy the actual device and try to reproduce it myself Jun 18 18:20:42 I also tried using all sorts of online services like perfectomobile and deviceanywhere and was not able to reproduce it :( Jun 18 18:21:58 Techdeck: looks like it's the droid razr spyder. you can run into a verizon store and grab one. and then return it Jun 18 18:22:49 Techdeck, yep, it's the Droid RAZR from verizon Jun 18 18:23:24 Mavrik: is that you, from Slovenia? Jun 18 18:23:36 It's me Å am Jun 18 18:24:27 Techdeck, I have one of those units in office test stable, so if you won't be able to get more details till end of this week poke me here :) Jun 18 18:25:00 Mavrik, wow, that would be great! Thanks a lot man! Jun 18 18:25:01 Silent0ne: did you read: http://developer.android.com/guide/topics/ui/themes.html ? Jun 18 18:25:11 I've been already fighting with this for over a month now, and still no results Jun 18 18:25:36 Mavrik, can you tell what model it is exactly? Jun 18 18:26:39 Techdeck, I don't have it on hand right now, it's the funny Motorola with fat camera on top of it Jun 18 18:26:43 sometimes i am really envious of the ios people and their 3 device test matrix Jun 18 18:26:51 * Techdeck nods Jun 18 18:26:55 Fuckin matrices Jun 18 18:27:14 this one: http://www.gsmarena.com/motorola_droid_razr_xt912-4101.php Jun 18 18:27:27 just remembered it identifies itself as xt912 besides cdma_spyder Jun 18 18:27:37 it has a f'ed up PowerVR with broken drivers :P Jun 18 18:27:40 * bhundven grumbles something about standards, and how awesome they are Jun 18 18:27:52 ah, crap, I think I got the wrong one then Jun 18 18:27:55 I got the XT910 Jun 18 18:29:54 I wonder if I should cancel it or try to reproduce with that device as well Jun 18 18:29:56 Techdeck, or it's the XT910 Jun 18 18:30:06 I got this: http://www.amazon.com/gp/product/B006638OCG/ref=ox_ya_os_product Jun 18 18:30:06 Techdeck, don't take my word for granted, lemme check in our device logs Jun 18 18:30:15 that's the only one I found with 'spyder' in it Jun 18 18:32:29 does Galaxy Tab II 7.0 also use PowerVR? Jun 18 18:32:51 gah, sorry, just saw Jun 18 18:33:00 mine is umts_spyder, the GSM version Jun 18 18:33:01 yeah, looks like it Jun 18 18:33:23 I think the one I ordered is also the GSM version Jun 18 18:33:25 hence the small model number difference Jun 18 18:33:39 think there's a big difference between the two? Jun 18 18:33:50 is it only the CDMA/GSM thing or is there anything else? Jun 18 18:34:18 the biggest mistake I made is changing the target_sdk to like 17.. that totally screwed me Jun 18 18:34:24 now I can't even revert Jun 18 18:34:28 hmm, I don't think so Jun 18 18:34:32 about the difference Jun 18 18:35:20 ok, I'll order it anyway, we'll see if it helps, I will just return it if it won't reproduce on that device Jun 18 18:36:03 it's probably PowerVR but if it is I have no idea what to do Jun 18 18:36:16 I think I already sent you the error before, you told me its probably PowerVR Jun 18 18:37:42 bhundven: I did, and I have changed from blue to a yellow theme transition but cannot change the text to yellow. Although I have went from orange to blue with no issues. I've been searching code for 5 hours and am stumped. Jun 18 18:38:48 heh! iPhones use PowerVR too! Jun 18 18:42:35 hah woah evanc was banned? thought i remembered him being a good contributer here, what happened? Jun 18 18:42:59 * CocoStorm is curious also Jun 18 18:42:59 certainly not morrildl's work. Jun 18 18:43:37 He used to be alright, then it went downhill Jun 18 18:43:43 how to show 1 text and 1 image with setcontentView? Jun 18 18:43:50 in a activity Jun 18 18:44:03 SimonVT, what happened? Jun 18 18:44:26 jak2000: in the xml layout for the activity, add a text view and a an image view, then set that layout resource in setContentView Jun 18 18:44:52 jak2000, define a TextView and an ImageView in your XML and then just setContentView to the id of the XML resource Jun 18 18:45:02 jak2000: http://developer.android.com/training/basics/firstapp/building-ui.html Jun 18 18:45:09 CocoStorm: We don't like to talk about it Jun 18 18:45:16 ignore what I said and listen to speakingcode-wor :P Jun 18 18:45:29 SimonVT, sounds bad maynee Jun 18 18:45:36 yeah :/ Jun 18 18:45:45 CocoStorm: not much I could do about it. The NSA told me to, and I'm not allowed to say why Jun 18 18:45:54 lmao Jun 18 18:45:57 hah Jun 18 18:46:36 mode +PRISM evanc Jun 18 18:46:58 speakingcode-wor++ Jun 18 18:48:59 anyways I give up for now until I get a phone or someone with a PowerVR phone that is willing to help me test this. Thanks a lot Mavrik and funkbox. Mavrik - I will let you know soon if I had managed to find anything. Jun 18 18:49:29 If a service started from the alarm manager, does it still run on the UI thread or is it on a background thread? Jun 18 18:52:42 CocoStorm: don't worry, I'll always fight my way through oppression Jun 18 18:52:56 Don't trust him, clearly he struck a deal with the NSA Jun 18 18:52:59 he's totally an informant now Jun 18 18:53:29 I love the NSA, such good people Jun 18 18:53:31 evan too Jun 18 18:53:45 No Such Agency Jun 18 18:54:16 heh Jun 18 18:54:24 morrildl: just wait until you [REDACTED] Jun 18 18:54:40 speakingcode-wor, Techdeck i followed the firstapp tutorial: http://developer.android.com/training/basics/firstapp/starting-activity.html#ReceiveIntent all worked fine. but in the second activity i add in design time a textview1( and a image (in both cases, i setting up the textand the image) see: http://tinypic.com/r/2n6x6hs/5 text2 and image1 not show/display Jun 18 18:56:06 past... Jun 18 18:56:08 meh. Jun 18 19:03:03 sorry i am disconnected Jun 18 19:03:09 speakingcode-wor, Techdeck i followed the firstapp tutorial: http://developer.android.com/training/basics/firstapp/starting-activity.html#ReceiveIntent all worked fine. but in the second activity i add in design time a textview1( and a image (in both cases, i setting up the textand the image) see: http://tinypic.com/r/2n6x6hs/5 text2 and image1 not show/display Jun 18 19:03:35 :| Jun 18 19:09:41 how do I detect show/hide of the widget unlock keyguard? Jun 18 19:40:44 hey peeps. I have a REST API object that has tons of methods, all of them can potentially throw an exception. Is there any way I can wrap all of these functions to do a prespecified behavior if it throws an exception? I can't really edit the API object itself (using Androidannotations, it autogenerates) so I need to wrap it. Jun 18 19:41:57 doomrobo: http://stackoverflow.com/questions/3495926/can-i-catch-multiple-java-exceptions-in-the-same-catch-clause Jun 18 19:43:06 bhundven: that's not what the problem is. They all throw the same exception, HttpClientErrorException Jun 18 19:43:17 oh, ic Jun 18 19:43:41 guess you just need to try/catch each method Jun 18 19:44:14 compiling the android kernel requires a toolchain (or NDK), but compiling the entire android source (which includes the kernel) apparently DOESN'T need toolchain/NDK. why is that? Jun 18 19:44:32 well even if I had access to the API object I wouldn't be able to do that. I want it to be able to "toast" and that needs to run in the UI thread which means I have to call back to the...you get the point Jun 18 19:47:20 doomrobo: apparently, I don't use the RESTful stuff, and don't understand the problem. Jun 18 19:47:37 hopefully some one can help you. Jun 18 19:48:55 bhundven: it's not really a RESTful problem as much as it is a functionality problem. I just need to be able to wrap multiple things at once without changing the source. Can I pass references to functions? Jun 18 19:49:27 I'm getting this error when trying to play certain videos in my app: MediaPlayer(4380): error (1, -2147483648). Found nothing on google. What is this? Jun 18 19:49:46 seems to be a failed getMetaData call Jun 18 19:49:53 Clarification: I'm looking for function pointers, which apparently don't exist Jun 18 19:55:39 Is this a bug? There's holo__light and holo_color_dark for blue, green, orange, and red, but only a single colour for purple. Jun 18 19:56:25 i followed the firstapp tutorial: http://developer.android.com/training/basics/firstapp/starting-activity.html#ReceiveIntent all worked fine. but in the second activity i add in design time a textview1( and a image (in both cases, i setting up the textand the image) see: http://tinypic.com/r/2n6x6hs/5 text2 and image1 not show/display Jun 18 19:58:46 jak2000: pega su codigo asi alguien puede ayudarte Jun 18 20:02:42 is it possible to have a searchview with search suggestions without having a search activity to handle the search? Jun 18 20:02:55 yep Jun 18 20:03:16 i need to mimic the way google maps provides search suggestions for locations when doing a Directions search Jun 18 20:03:28 i.e. origin and destination prvoide suggestions as you type Jun 18 20:04:17 SimonVT: would using searchviews be the way to go for that? Jun 18 20:05:55 Would probably just use an AutoCompleteTextView Jun 18 20:06:22 With SearchView you have to type in 2 letters before suggestions show up Jun 18 20:06:43 With AutoCompleteTextView you can set how many yourself Jun 18 20:06:54 hmm, the suggestions need to be populated via a search over the network, tho Jun 18 20:07:11 using the geocoder Jun 18 20:07:17 Well, the approach is the same for both Jun 18 20:07:20 ah ok Jun 18 20:07:21 Set an adapter Jun 18 20:07:32 How you populate that adapter isn't important to the view Jun 18 20:08:45 is it even feasible for the suggestions to be based on geocoder results? i.e. w/ the network transfer Jun 18 20:08:51 seems to be what maps does, but it's really fast Jun 18 20:10:27 I don't see why not Jun 18 20:10:38 On a slow connection I'd imagine maps results are slow as well Jun 18 20:10:43 Unless they cache everything Jun 18 20:10:45 Which I doubt Jun 18 20:11:01 yeah no way they cache that many addresses Jun 18 20:11:26 Just make it appear faster, like caching previous search results and showing those first in the list Jun 18 20:11:38 That's just a database lookup, then the network results can come later Jun 18 20:12:46 Or, when a new letter is entered, filter the previously fetched results on the device Jun 18 20:12:54 yeah Jun 18 20:14:17 When a letter is deleted, keep showing the old results til new are fetched.. As long as it appears fast, the networking doesn't necessarily have to be Jun 18 20:18:54 is it possible to scroll listview content around the center? Jun 18 20:28:04 <|Agent> doomrobo, java.lang.reflect.Proxy might help. You define a class the implements InvocationHandler, and its invoke method does the wrapping. Then you pass that InvocationHandler as an argument to the Proxy factory method that generates a proxy instance around the REST class you want to wrap. Jun 18 20:28:14 <|Agent> as far as I can tell Jun 18 20:28:38 |Agent: thanks, I'll look into it Jun 18 20:30:23 |Agent: seems to be exactly what I need, thanks! Jun 18 20:30:26 <|Agent> np Jun 18 20:50:31 Hey Jun 18 20:50:55 can someone take a peak at http://pastie.org/8056932 and help me figure out why the grid view won't update? the top onCreateView doesn't work but the bottom does. shouldn't notifyDataSetChanged notify the adapter the array has changed? Jun 18 20:51:10 if I have a ViewGroup, and I use a LayoutInflater to inflate a View, how do I then go about adding it to the ViewGroup? Jun 18 20:51:22 *adding the inflated view Jun 18 20:53:33 nownot: what does "but the bottom does" mean? I only see the onCreateView() method Jun 18 20:53:54 kbs: sorry, edited it and thats the wrong link http://pastie.org/8056935# Jun 18 20:54:42 hey guys Jun 18 20:55:26 I'm trying to figure out how MainActivity.java is connected to activity_main.xml. Is it a setting somewhere or is it some kind of convention with the reversed name? Jun 18 20:55:37 I did something that isn't behaving the same time each time I run it and so I think I did it the wrong way Jun 18 20:55:59 I have the landing activity and fragment, which displays a list of options Jun 18 20:56:18 when you choose the login option it brings up a dialog fragment allowing you to log in Jun 18 20:57:07 the dialog fragment's onAttach grabs the activity passed into it and casts it to a listener interface so it can call an onLogin callback Jun 18 20:57:23 kbs: I'm not certain I'm creating getting the adapter/ model / activity working together corruptly, so any info there would help also Jun 18 20:57:38 so the landing activity overrides that onLogin and passes the login information back to the landing fragment Jun 18 20:57:41 but here is my problem Jun 18 20:58:00 nownot: so, without having all that code it's kinda hard to figure out. Are you saying that your notifyDataSetChanged() does work? (that's the code being called at the bottom of your second paste.) Jun 18 20:58:07 the activity's onCreate sets mLandingFragment = something Jun 18 20:58:16 but inside that onLogin it is sometimes null Jun 18 20:58:41 so I started investigating the onCreate Jun 18 20:59:00 kbs: notifyDataSetChanged does not work. reinitializing the adapter / setting it again for the grid view works Jun 18 20:59:15 let me paste that onCreate...one sec Jun 18 20:59:55 http://pastebin.com/UXmbnx2B Jun 18 20:59:57 nownot: then I'm quite confused with your initial message. You said "the top onCreateView doesn't work but the bottom does." The only change is that "the bottom" has "notifyDataSetChanged". What are you actually saying is working? Confused minds want to know :-) Jun 18 21:01:33 kbs: sorry for the confusion. looking http://pastie.org/8056935 , the top one has skeeMixtapeAdapter.notifyDataSetChanged(); in ublic void finishedGettingInfo which doesn't work, the progress bar goes away but the grid view does not update. the bottom increate i reinitialize the adapter / re-set the grid views adapter in finishedGettingInfo and that works. Jun 18 21:02:40 kbs: in my thinking once my model has all the data I should be able to call notifyDataSetChanged and it should update the table, I shouldn't have to reinitialize the adapter. Jun 18 21:03:11 nownot: gotcha. So, as I say, without the code for your adapter, it's anyone's guess. The typical issue for non-updating pageradapters is that it wants you to override getItemPosition() Jun 18 21:03:54 If you haven't done that (or something equivalent) the quickest "fix" is to override your adapter to return POSITION_NONE for the getItemPosition() method Jun 18 21:03:57 SimonVT: looking at autocomplete search view Jun 18 21:04:11 kbs: immmm i might be missing a shit ton of code in my adapter then, http://pastie.org/8056982 Jun 18 21:04:39 i'm a little uncertain about how the adapter maps to the suggestions Jun 18 21:04:46 Typically non-updating adapters is when you don't actually change the dataset the adapter has a reference to, but just point your local variable to a new dataset Jun 18 21:05:17 speakingcode-wor: The items the adapter returns are shown as suggestions Jun 18 21:05:39 nownot: oh, sorry -- my bad. I somehow parsed that as a ViewPager, rather than a GridView Jun 18 21:05:40 so would getView() return a suggestion, or a set of suggestions? Jun 18 21:05:47 A suggestion Jun 18 21:05:56 It works like any other adapter-backed view Jun 18 21:06:00 ok Jun 18 21:06:03 *points* to SimonVT's suggestions Jun 18 21:06:11 so i need to change the datasaet 'per characther types' roughly speaking Jun 18 21:06:20 Yeah Jun 18 21:06:39 is there an event listener to read changes on the autocomplete text view? Jun 18 21:07:06 <|Agent> ProgramMax, as I understand it, the fragment's lifetime is limited to that of its activity, unless you've got a non Jun 18 21:07:06 ah, don't mind me. let me read it's doc Jun 18 21:07:18 :) Jun 18 21:07:20 <|Agent> a non-UI fragment. Jun 18 21:07:31 kbs: SimonVT: well here's the complete package model->http://pastie.org/8056989 adapter->http://pastie.org/8056982 onCreate->http://pastie.org/8056935 Jun 18 21:07:33 Alternatively, look at SearchView for what listeners it attaches to the view Jun 18 21:07:34 I think the activity lives the entire time Jun 18 21:08:05 like...the current app design is to have the landing activity all the way through until it gets to a certain point Jun 18 21:08:15 but during that time it just swaps out fragments Jun 18 21:08:20 kbs: SimonVT edit, heres the model -> http://pastie.org/8056991 Jun 18 21:08:34 I almost want to say fragment parts...subfragments? Jun 18 21:08:40 hmm i see onKeyDown, but that isn't gauranteed to respond to soft keyboards IIRC Jun 18 21:08:48 It keeps the top bar in place Jun 18 21:09:17 nownot: Yep, you're pointing your local variable to a new list Jun 18 21:09:23 Instead of updating the one the adapter knows about Jun 18 21:09:28 SimonVT: yep just saw it and fixed it Jun 18 21:09:30 doh Jun 18 21:09:38 thanks for pointing me in the right direction Jun 18 21:10:21 speakingcode-wor: https://developer.android.com/reference/android/widget/TextView.html#addTextChangedListener(android.text.TextWatcher) Jun 18 21:10:26 SimonVT: if you don't mind I do have one more question. in my model, for each object, I'm fetching an image, how do I notify the grid view to update this view? would be another callback to the activity? Jun 18 21:10:44 SimonVT: thanks. are inherited methods not typically listed in a classes doc? Jun 18 21:11:00 <|Agent> ProgramMax, you could put a watch on mLandingFragment and see where it is getting changed back to null. Jun 18 21:11:01 cause i see AutoCompleteTextView inherits text view but it doesn't show that method in the doc Jun 18 21:11:12 oh, good idea Jun 18 21:11:17 nm i lie, it's right on the top Jun 18 21:11:23 DOH Jun 18 21:11:30 * speakingcode-wor just quits Jun 18 21:11:31 speakingcode-wor: It does, they're right below the one autocompletetextview defines Jun 18 21:11:36 Collapsed and all :) Jun 18 21:11:52 nownot: Generally you want to lazy load the images Jun 18 21:11:58 Unless your views are nothing but images Jun 18 21:12:13 hello, i'm creating a notification for sms but i can't find R.drawable.stat_notidy_sms , has been removed? Jun 18 21:12:19 But for lazy loading, try a library like https://github.com/square/picasso Jun 18 21:12:30 SimonVT: … pretty much are, the pics are the views a little text but pics drives the views Jun 18 21:13:00 so using autocompletetextview, can I leverage what SearchView uses for 'recent search' suggestions or will i need to roll something of my own? Jun 18 21:13:42 Well, you probably want to lazily load them anyway Jun 18 21:13:46 Faster results Jun 18 21:14:00 Hello! I'm using another, third-party android project as a library in my application. Right now, it's a separate folder in another directory, and just imported and linked in. Where should I put this folder, so that I can send it out easily with my project files? Is there a standard (like "ThirdParty" in IOS)? Jun 18 21:14:17 SimonVT: so do it in the adapter then? Jun 18 21:14:24 Yeah Jun 18 21:14:29 cool, thanks Jun 18 21:14:31 :) Jun 18 21:14:47 just to push it to git so others can work on it Jun 18 21:14:51 speakingcode-wor: It shows recent suggestions by default? Maybe it's part of the searchable stuff.. With an adapter, you have to roll your own Jun 18 21:15:17 Should be quite easy Jun 18 21:15:27 Just query a database or something Jun 18 21:15:31 SimonVT: cool. that's fine. shouldn't be hard to do that, jus keeping a list basically Jun 18 21:15:34 yup Jun 18 21:15:34 Have an adapter that can take two datasets Jun 18 21:15:41 nod Jun 18 21:15:54 this will turn into an interesting algorithm problem Jun 18 21:23:41 snollux, if you use maven, use maven dependencies, otherwise, just document the requirement Jun 18 21:23:55 is it possible to take a bitmap background set to tileMode="repeat" and actually make it fade like a gradient? what would one google to get started on something like that? Jun 18 21:25:13 wait, I think I found a stack overflow for it Jun 18 21:25:16 * tnzr backs off Jun 18 21:25:33 * pfn still tries to figure out how to dismiss his intent properly if the user cancels the keyguard Jun 18 21:27:28 I don't understand how the built-in widgets are able to do it automatically (calendar, clock, dashclock, etc.) Jun 18 21:28:08 pfn: isn't there an onOptionsChanged (or something like that) callback that happens when your widgets' bounds change? Jun 18 21:28:29 evanc, there is that, yes, but I don't believe it gets sent when the keyguard is cancelled or shown Jun 18 21:28:44 this is for a lockscreen widget, yet? Jun 18 21:28:45 yes* Jun 18 21:28:53 yes Jun 18 21:29:01 if so, then yeah, it should get sent (because, well, your widget's bounds changed) Jun 18 21:29:16 override it and stick a breakpoint in there Jun 18 21:30:40 but the bounds don't change, it just gets faded into the background Jun 18 21:30:56 this is when launching an intent from the widget that dismisses the keyguard (causing the pin prompt to appear) Jun 18 21:31:00 not pressing the lock button Jun 18 21:34:27 Hey Jun 18 21:34:40 I'm curious why I'm gettin ga StackOverflow in jumpDrawablesToCurrentState Jun 18 21:36:32 svm_invictvs: without source code, we don't know Jun 18 21:36:40 is it possible to SSH into android/SSHDroid when it is not on wifi, via mobile data connection? Jun 18 21:36:41 and/or a logcat Jun 18 21:41:31 is the watch window capable of triggering a breakpoint any time a watched variable changes? Jun 18 21:48:20 evanc, no suggestions for the keyguard dialog that's popped up? Jun 18 21:49:26 evanc, http://ezscreens.appspot.com/view/baed/lockscreen+widget+keyguard Jun 18 21:50:09 pfn: hmm, no idea Jun 18 21:50:34 what I don't understand is how all the "native" widgets do this without having the activity linger if cancelled Jun 18 21:50:47 I've looked through dashclock, calendar, deskclock, etc. sources Jun 18 21:50:57 and they don't even /use/ FLAG_DISMISS_KEYGUARD at all, and they behave normally Jun 18 21:51:10 if I take FLAG_DISMISS_KEYGUARD out, I never even get the keyguard prompt Jun 18 21:51:17 * pfn boggles Jun 18 22:04:41 <|Agent> Can I pass a Runnable via an Intent to act as a callback for a Service to call when it finishes doing whatever it is supposed to do? Jun 18 22:04:56 * |Agent guesses not. Jun 18 22:05:05 not really Jun 18 22:05:09 use a message bus :) Jun 18 22:05:46 <|Agent> Message bus is easier/better than a binding? Jun 18 22:07:06 yey, java security updates Jun 18 22:07:33 <|Agent> Mavrik, wait, don't I need to know a Handler in order to send a Message to it? Jun 18 22:14:04 Binders can post messages back and forth Jun 18 22:22:54 <|Agent> pfn, but if the activity only needs to pass data for an operation to a service, and the service only needs to work on it and send the result back, I know I can extend a Binder to do that (somehow), but could I use a message bus to pass the result back instead? I'm not sure what Mavrik meant by that. Jun 18 22:23:13 create Messenger from the Binder returned to you Jun 18 22:23:25 and then just handle the message from a handler in your service Jun 18 22:24:31 ServiceClass { Handler h = new Handler(); } ServiceClientClass { bindService(...); onBind(binder) { messenger = new Messenger(binder) } -> messenger.send(yourmessagehere) Jun 18 22:24:44 and handle the messages from h Jun 18 22:27:01 messenger isn't really a messagebus, though Jun 18 22:29:19 <|Agent> I am not sure how that helps. My activity (ServiceClientClass) could bind to the service, but creating a Messenger from that binding would only allow communication from the activity to the service, not the other way around, afaik. Jun 18 22:29:55 message has a replyTo messenger, use it Jun 18 22:30:50 and apparently, I had it the wrong way around Jun 18 22:30:58 you can use localbroadcastmanager to pass data back if you're in the same process Jun 18 22:31:05 return the messenger's binder from onBind Jun 18 22:32:14 omg, I'm an idiot...I think I know what my problem was Jun 18 22:32:28 |Agent, anyway, read Remote Messenger Service Example in the service apidocs Jun 18 22:32:35 wait, no :( Jun 18 22:32:37 maaaan Jun 18 22:33:16 and for local use, I would consider using 'otto' Jun 18 22:37:47 since messengers are a pain in the ass, and event buses are way cooler Jun 18 22:39:33 any recos for a websocket lib for android ? Jun 18 22:40:27 http://developer.android.com/reference/java/net/Socket.html Jun 18 22:41:16 oh, nevermind :) Jun 18 22:41:42 I thought WebSocket was some fancy name for a plain ol' socket. Jun 18 22:42:03 * JesusFreke doesn't keep up with these new-fangled web standards :p Jun 18 22:42:17 why do horses wear shoes? do horses wear sock[ets]? is anyone even listening to me? Jun 18 22:54:00 funkbox: https://github.com/c99koder/android-websockets Jun 18 22:54:11 that's what IRC Cloud uses for their app Jun 18 22:54:28 we're going to hopefully be adding web sockets to OkHttp in the next month or two Jun 18 22:55:18 man, square's doing so well in acquiring merchants it seems, a bunch of local shops have switched from traditional pos units to square dongles in nice looking docks Jun 18 22:56:18 * pfn notices that lots of the local, small mall/market merchants have nice looking square setups Jun 18 22:57:25 JakeWharton: that would be pretty awesome, we already use okhttp... and retrofit and like 5 other square libs Jun 18 22:59:51 JakeWharton: do you have any idea what APIs will look like? I'd like to consume okhttp when it's available Jun 18 23:01:25 funkbox: https://github.com/square/okhttp/issues/193 Jun 18 23:03:02 JakeWharton: thanks, will take a look. Jun 18 23:03:22 i've heard autobahn mentioned but it looks like it depends on jackson, which we don't use Jun 18 23:07:17 hmm does it? we use autobahn on a yet-unreleased project with Gson Jun 18 23:07:20 i'll have to look Jun 18 23:08:36 I mae a promise to someone here a week or so ago that I would read these docs http://developer.android.com/guide/components/activities.html Jun 18 23:08:40 finally getting around to reading it Jun 18 23:09:36 JakeWharton: ah, will check it out then. Jun 18 23:09:38 JakeWharton: unreleased :) Jun 18 23:16:33 doomrobo are you there? Jun 18 23:17:35 is the N7 being sold today the original, or has it gotten any refreshes ? Jun 18 23:19:18 g00s: no refreshes Jun 18 23:21:01 funkbox i was reading this http://androidandme.com/2013/06/opinions/one-year-later-the-nexus-7-has-gone-from-the-best-to-worst-tablet-ive-ever-owned/ Jun 18 23:22:02 from what i've read, seems to be related t the type of solid state storage asus is using Jun 18 23:27:11 jak2000: now I am Jun 18 23:31:40 Hi guys, could any of you help me with sending and receiving AT commands through adb? Jun 18 23:35:27 like a modem ? Jun 18 23:36:34 an android phone Jun 18 23:37:33 as far as I understand androids can receive AT commands, no? Jun 18 23:37:54 i followed the firstapp tutorial: http://developer.android.com/training/basics/firstapp/starting-activity.html#ReceiveIntent all worked fine. but in the second activity i add in design time a textview1( and a image (in both cases, i setting up the textand the image) see: http://tinypic.com/r/2n6x6hs/5 text2 and image1 not show/display Activity2(java) http://pastebin.com/GP89UzTk Jun 18 23:37:54 activity2 (XML) any advice? Jun 18 23:39:44 i think my problem is oncreate method in: setContentView(textView); Jun 18 23:41:37 jak2000: I don't think the problem is with the setContentView. It is probably in your XML Jun 18 23:42:25 a friend ( Techdeck ) say me: define a TextView and an ImageView in your XML and then just setContentView to the id of the XML resource Jun 18 23:42:30 you know how to? Jun 18 23:42:41 or what is the problem Jun 18 23:43:08 hmm, if I have a layout that I've inflated, and I want to replace a View within that layout, what's my best option? I want something similar to fragmenttransaction.replace Jun 18 23:43:42 (wanting to keep existing layout params, etc) Jun 18 23:54:05 the stacktrace the topic's image is about, is it the logcat output or something else? Jun 18 23:56:43 Anyone pastedanything for me? Jun 18 23:58:07 jak2000: listen to Techdeck. Write the XML and then set the contentview to that Jun 18 23:58:45 jak2000: http://developer.android.com/training/basics/firstapp/building-ui.html Jun 18 23:58:52 when you modify a layout XML file in eclipse, do you need to clean the project manually or something? (findViewById seems to give me nullpointexception for R.id.) Jun 19 00:00:29 <|0xD34D|> Bennit: eclipse can do some strange things sometimes so I usually resort to cleaning my project when something strange happens Jun 19 00:00:44 intellij Jun 19 00:02:07 is there a nice paste tool that allows you to bundle android dev code (like source files & output, together in one link) Jun 19 00:03:01 <|0xD34D|> I'm not aware of one Jun 19 00:03:52 when a view is hidden in a relativeview Jun 19 00:03:53 doomrobo i followed this url... Jun 19 00:03:59 well relativelayout Jun 19 00:04:00 aha gist has it I think Jun 19 00:04:04 and all worked fine, only display 1 text... Jun 19 00:04:18 do the other widgets readjust themselves Jun 19 00:04:33 or do you have to do the whole on draw and on measure implementations Jun 19 00:04:35 ? Jun 19 00:08:47 aha, apparently, you need to do setContentView, before you can do findView to find subcomponents in that view Jun 19 00:13:18 anyone know how to: define a TextView and an ImageView in the XML and then just setContentView to the id of the XML resource? Jun 19 00:17:25 jak2000, do you mean define those items and just change the text of the textview? Jun 19 00:18:04 i explain my problem Jun 19 00:18:36 i followed the firstapp tutorial: http://developer.android.com/training/basics/firstapp/starting-activity.html#ReceiveIntent all worked fine. but in the second activity i add in design time a textview1( and a image (in both cases, i setting up the textand the image) see: http://tinypic.com/r/2n6x6hs/5 text2 and image1 not show/display Activity2(java) http://pastebin.com/GP89UzTk Jun 19 00:18:36 activity2 (XML) any advice? a friend: say me: define a TextView and an ImageView in your XML and then just setContentView to the id of the XML resource know how to? Jun 19 00:23:15 you need a layout Jun 19 00:23:32 Tronflowers linear layoutor relative? Jun 19 00:23:39 you can do it in code or in xml Jun 19 00:24:09 have some sample? or any tutorial for learn/ Jun 19 00:24:30 you should really read the rest of the tutorials, or if you find it abit difficult try googling vogella tutorials Jun 19 00:24:51 ok thanks Jun 19 00:28:44 Hey! Jun 19 00:29:16 Having a little problem, when returning from an activity back to my mainactivity, another instance of the entire app is started instead Jun 19 00:29:22 so I have two running Jun 19 00:29:27 anyone else had this happen? Jun 19 00:29:31 specificly you need to attach a view to a layout Jun 19 00:33:20 jak2000, http://pastebin.com/8TVMmeah Jun 19 00:33:37 crude becuase i'm lazy and short for time Jun 19 00:34:10 but i commented it so you should understand Jun 19 00:34:28 also vogella is a good source Jun 19 00:34:32 ok Jun 19 00:34:44 i study your code Jun 19 00:49:20 I have a bit of a design-y question Jun 19 00:49:33 is there a way to do something like MVC that is common on Android? Jun 19 00:49:46 like...say I have one specific layout for phones, another for TVs, another for tablets Jun 19 00:49:55 maybe they are all fragments Jun 19 00:50:04 but they transition to different fragments at different times Jun 19 00:50:15 don't really want to put that transition logic in the fragment itself Jun 19 00:52:53 what I'm getting at is...right now, my project's logic is very mingled into the UI components like the fragments Jun 19 00:53:12 I want to separate it out and be able to swap in other UI components without a problem Jun 19 01:07:53 clever: any joy? Jun 19 02:01:54 evancharlton Jun 19 02:02:13 StingRay_! Jun 19 02:02:25 need this in the topic http://www.youtube.com/watch?v=E3418SeWZfQ Jun 19 02:11:01 i've been doing less java; it feels good Jun 19 02:13:09 the javatar Jun 19 02:18:18 anyone know how to: define a TextView and an ImageView in the XML and then just setContentView to the id of the XML resource? Jun 19 02:18:33 bah, I hate it when I leave this on overnight and it's flashing like someone mentioned me in the morning, but the scrollback's too short to see it Jun 19 02:18:34 :( Jun 19 02:18:46 alex_PP: Logs Jun 19 02:19:10 cause now every 12/24 hours gonna say your name with the word "log" Jun 19 02:19:12 :) Jun 19 02:19:33 alex_PP try Lr5 yet? think its worth it ? Jun 19 02:19:41 ha Jun 19 02:19:47 jak2000: what do you mean ? Jun 19 02:19:51 not yet, still been very very lazy Jun 19 02:20:04 well, not lazy, just photo lazy Jun 19 02:20:19 jak2000: I maybe missing something, but it sounds like you cant get much simpler than what you just "said" Jun 19 02:20:23 did take my camera to a mountian bike race i entered though Jun 19 02:20:32 that stuff's hard to photograpg Jun 19 02:20:36 *h Jun 19 02:21:11 no, bats are hard to photograph Jun 19 02:21:23 StingRay_: http://tinypic.com/r/2n6x6hs/5 Jun 19 02:21:49 and embarrasing when you have extensions running out into garden, and 5 studio lights and about 4 ex units all pointed upwards and synced Jun 19 02:21:59 alex_PP yeah, action photography … did you take pics of the racers, or to document your own ordeal ? Jun 19 02:22:07 too about 40+ shots, and not got one usable Jun 19 02:22:11 the A1 & 2s Jun 19 02:22:17 got a few nice ones Jun 19 02:22:37 check this image, i followed this tutorial (First App): ttp://developer.android.com/training/basics/firstapp/starting-activity.html#ReceiveIntent Jun 19 02:23:06 but text2 and image1 when i run the app not see the text2 and iamge1 (not displayed) Jun 19 02:23:21 ha, yes, i can imageine bats being tricky Jun 19 02:23:23 jak2000: still not sure what your asking Jun 19 02:24:04 haven't got legs turned on :( Jun 19 02:24:09 *logs Jun 19 02:24:11 hello guys Jun 19 02:24:13 StingRay_: Jun 19 02:24:17 i followed the firstapp tutorial: http://developer.android.com/training/basics/firstapp/starting-activity.html#ReceiveIntent all worked fine. but in the second activity i add in design time a textview1( and a image (in both cases, i setting up the textand the image) see: http://tinypic.com/r/2n6x6hs/5 text2 and image1 not show/display Activity2(java) http://pastebin.com/GP89UzTk Jun 19 02:24:17 activity2 (XML) any advice? a friend: say me: define a TextView and an ImageView in your XML and then just setContentView to the id of the XML resource know how to? Jun 19 02:24:25 are there any online for this chanbel? Jun 19 02:24:43 actually, never mind, life's too short Jun 19 02:24:53 I have a question: is it possible or is already software I can emulate keystrokes and "touch" clicks on android, on a 3rd party app? Jun 19 02:25:16 *is there already a software Jun 19 02:25:17 jak2000: you need to start from the begining Jun 19 02:25:25 your not understanding things Jun 19 02:25:42 http://developer.android.com/training/index.html Jun 19 02:25:58 deadevilboy, http://thecodeartist.blogspot.com/2011/03/simulating-keyevents-on-android-device.html Jun 19 02:26:21 StingRay_ i followed the : Building your First App. Jun 19 02:26:35 jak2000: well you not understanding what setContent does Jun 19 02:26:43 or what a view is compared to a layout etc Jun 19 02:26:44 i think my problem is: setContentView(textView); Jun 19 02:26:59 it a fundimental lack of understanding Jun 19 02:27:03 not an idle mistake Jun 19 02:27:16 hence I say you should start from the begining Jun 19 02:27:20 ok Jun 19 02:27:28 i am read again thanks Jun 19 02:27:34 learn what these are Jun 19 02:27:36 view Jun 19 02:27:37 layout Jun 19 02:27:42 inflate Jun 19 02:27:46 resource Jun 19 02:27:53 alex_PP: but how can I be sure it clicks the right button? Jun 19 02:28:03 StingRay_ and setContentView right? Jun 19 02:28:27 setContent = ( inflate resource || set view) Jun 19 02:28:35 you can't Jun 19 02:28:55 StingRay_ thanks Jun 19 02:29:02 I mean... I am asking if it is possible to control a 3rd party software like that.. only with the apk Jun 19 02:29:16 I know I can emulate it on windows Jun 19 02:29:34 and the use some mouse click software Jun 19 02:29:40 but it is not the same thing Jun 19 02:30:28 you wanting to hijack an app ? Jun 19 02:30:31 :) Jun 19 02:30:46 well.. I just want an automation software for android Jun 19 02:30:52 well the screen inputs Jun 19 02:30:54 but there is none Jun 19 02:30:58 not sure I would like that at all Jun 19 02:31:05 and poses lots of security risks Jun 19 02:31:13 that is what I thought Jun 19 02:31:20 so I would be very dissapointed if there was a way to do that Jun 19 02:31:30 and I would shout really loud at google Jun 19 02:31:45 well.. but I don't understand why Jun 19 02:31:56 cause you can do it the same way Jun 19 02:32:04 using an emulator on windows platform Jun 19 02:32:11 yes Jun 19 02:32:17 dont give a sh*t about an emu Jun 19 02:32:22 my personal device I doo Jun 19 02:32:23 :) Jun 19 02:32:46 I understand Jun 19 02:35:25 i love this: " This can be used to implement read or write interfaces which are cheaper than using a Cursor and/or do not fit into the traditional table model." Jun 19 02:35:31 call returns a Bundle :) Jun 19 02:35:45 the Bundle data model ! Jun 19 02:36:19 the amount of nasty bundles in android drives me up the wall Jun 19 02:37:09 may as well be writing PHP Jun 19 02:38:49 Android Studio, when I look at the run configurations for my app, has a big blank gray area where the run configuration settings should be. Anyone know how to fix? Jun 19 02:40:07 studio, schmoodio. just use the command-line like a proper programmer. Jun 19 02:45:31 damccull: make a run config? Jun 19 02:49:44 bankai_: I have one. When I click it, nothing shows on the right, and the blue selection you normally get on the tree view doesn't appear Jun 19 02:50:10 pragma-: No. Jun 19 02:53:44 question about listviews...it recycles the views, and iirc it tries to only recycle if the id matches? Jun 19 02:53:59 id ? Jun 19 02:54:04 the view id Jun 19 02:54:24 the code I inherited has something like this inside a fragment's getView Jun 19 02:54:34 well it will only do them of the same type, or create bins of types Jun 19 02:54:40 if you use getType etc Jun 19 02:54:42 if(convertView != null && convertView.getId() == R.id.landing_splitter) Jun 19 02:54:58 ah, well they should be using types in the list Jun 19 02:55:02 I think Jun 19 02:55:10 yeah, sounds like I should be Jun 19 02:55:12 not really doing that, suppose it's ok Jun 19 02:55:15 we have some items that are dividers Jun 19 02:55:20 but not what I think is intended Jun 19 02:55:28 that's kind of how it feels Jun 19 02:55:37 the code as a whole feels like "This isn't how it was intended to be" Jun 19 02:55:42 :) Jun 19 02:55:50 so I need to look at getType Jun 19 02:56:05 fk, you know something, a year ago I would not have known wtf you were talking about Jun 19 02:56:17 * StingRay_ is almost proud of himself Jun 19 02:56:54 you've helped me a lot, StingRay_. I appreciate it Jun 19 02:57:12 yeah but you know I'm an artist right ? Jun 19 02:57:14 lol Jun 19 02:57:29 Really? Well you sure know your shit then Jun 19 02:57:35 so I maybe talking sh*t in fairy land lots of the time Jun 19 02:57:57 reguardless of if i "appear" to know what I'm on about Jun 19 02:57:59 :) Jun 19 02:58:51 fk me, 1 more notch on why I dislike android more today, but it's ok, ubuntu touch got 20 notches of hate yesterday :) Jun 19 02:59:16 continuity is not really a strong point of this platform is it **** ENDING LOGGING AT Wed Jun 19 02:59:58 2013