**** BEGIN LOGGING AT Thu Jan 31 02:59:58 2013 Jan 31 03:09:44 hmm, where is ron_frown Jan 31 03:09:50 intellij, intellij, intellij Jan 31 03:11:39 Ah, here's the dev channel Jan 31 03:11:40 Is it common to not include the build.xml file in repositories for Android projects? Jan 31 03:27:31 frewsxcv: personal choice Jan 31 03:47:44 bah ... nexus 4 is on google play (AU), but the shopping cart is erroring out >_< Jan 31 04:01:45 bankai_: a great way to start your nexus experience ! Jan 31 04:03:01 bankai_: I think it worked for a bit this morning :p Jan 31 04:03:12 but yeah that's happening to everyone now Jan 31 04:09:19 'ello all Jan 31 04:09:35 ok done and done - wonder how long it'll take to deliver Jan 31 04:10:27 this may well be part of a greater problem on my system, but does anyone have any pointers towards finding out why the "structure" panel disappears in my graphical layout editor in eclipse? Jan 31 04:10:36 pallet is still there, for whatever that's worth Jan 31 04:11:29 comes back after a restart of eclipse Jan 31 04:29:21 Is there any way to tell an action bar (via ABS) to retain its state between device rotation? I've got a custom control that's re-created each time the device is rotated. Jan 31 04:45:43 frack! why does it keep disappearing?? i hope someone comes by who knows :/ Jan 31 05:02:35 Chronax: save it in the non-configuration object passing mechanism in Activity? Jan 31 05:13:12 Any chance there's someone around who has worked with a SearchWidget/View? Jan 31 05:38:21 http://www.androidpolice.com/2013/01/30/new-app-annie-index-shows-google-play-taking-off-led-by-strong-sales-in-japan-us-and-south-korea/ Jan 31 05:38:44 the top dev, NHN, has 182 apps on the store :O Jan 31 05:39:36 #9 has 1 app … i'm guessing they have different strategies :| Jan 31 05:45:43 hey all, I have been googling this, but I can't find anything to help me. I'm keen to make a full screen gridview with a full screen image in the background for the "icons" to sit on. However, I can't find any guides for the resolutions that I need to design for in photoshop Jan 31 05:47:47 w32stuxnet, there isn't really any specific resolutions. Typically you would design for different density buckets Jan 31 05:48:39 Give this a good read : http://developer.android.com/guide/practices/screens_support.html Jan 31 05:49:21 You won't be able to get an exact fit, so just center your background image- you will probably have edges clipped Jan 31 05:49:22 thanks a lot danada, I'm going to give that a good read Jan 31 05:49:53 or use a nine-patch or a repeatable pattern for the background Jan 31 05:50:05 I'm using Charles with -http-proxy but charles changes my web service domain to an IP and my web service doesn't permit access by IP – any ideas how to have it retain the domain? is that a virtual device' hosts thing or charles you think? (http://www.charlesproxy) Jan 31 05:50:20 .com Jan 31 06:15:40 g00s, hi Jan 31 06:15:48 hey canadiancow Jan 31 06:15:54 :D Jan 31 06:15:56 im tired Jan 31 06:16:07 i went over to facebook for a couple android tech sessions tonight Jan 31 06:16:10 so im not even home yet :( Jan 31 06:16:30 fb knows more about android than google :P ???? Jan 31 06:16:38 hehe Jan 31 06:17:39 well, i'm going to file a new doc bug here, can i personally assign it to canadiancow :D Jan 31 06:17:46 no Jan 31 06:17:47 actually Jan 31 06:17:50 damn Jan 31 06:17:50 there were three speakers Jan 31 06:17:53 2 FB employees Jan 31 06:17:54 1 other Jan 31 06:17:57 the FB made me lol Jan 31 06:17:59 the other was good Jan 31 06:18:10 as for the bug, if you really want, fine Jan 31 06:18:15 i'll likely fix it in the morning Jan 31 06:18:24 but it has to be "easily" fixable Jan 31 06:18:30 not like "write all the documentation for this strange class Jan 31 06:19:05 canadiancow: actually, i guess its really an android bug Jan 31 06:19:38 well, no worries anyhow. have to have good stuff explanation Jan 31 06:21:46 no where near having to do it yet, but how easy is it to rename a project/appname/path in eclipse ? Jan 31 06:22:05 renaming a package is not trivial Jan 31 06:22:10 great Jan 31 06:22:11 project is easy, i think Jan 31 06:22:25 path should be easy too Jan 31 06:22:35 hmmm, what am I going to run into ? Jan 31 06:22:47 didnt want to try it, just in case Jan 31 06:22:53 but will need to do it Jan 31 06:22:58 renaming a package? well, when ADT did it, it totally destroyed files Jan 31 06:23:09 i had to revert from version control :P Jan 31 06:25:42 puzzles me how it's such a big thing Jan 31 06:26:34 remember , there are 2 packages : the physical one under src, and the one in the manifest Jan 31 06:26:42 which Play uses Jan 31 06:27:14 they are usually the same. thats when you can use the "." abbreviation Jan 31 06:28:15 canadiancow, you wouldn't happen to know anything about SeachView/Widgets would you? Jan 31 06:29:36 danada: just ask your question Jan 31 06:30:29 g00s, i've renamed packages fine Jan 31 06:30:36 one is a "mv" command Jan 31 06:30:39 the other is the manifest Jan 31 06:30:45 JakeWharton++ Jan 31 06:30:47 want a beer? Jan 31 06:30:49 i have... stella Jan 31 06:31:20 Is it possible to pass a bundle of extras on a search invoked by a searchwidget? Jan 31 06:35:52 canadiancow: ha. i can't tonight Jan 31 06:35:57 let's do this weekend Jan 31 06:36:04 where have i heard that before :P Jan 31 06:36:25 but sure Jan 31 06:37:07 g00s what's your bug? Jan 31 06:38:19 canadiancow: related to this, i could be wrong. still experimenting. i was getting the same binder with different intents, even though the actions were different http://commonsware.com/blog/2011/07/02/about-binder-caching.html Jan 31 06:38:53 but it could be PEBCAK, so i need to be absolutely sure Jan 31 06:39:14 yeah no idea Jan 31 06:39:17 ask ctate Jan 31 06:39:26 where is ctate these days :P Jan 31 06:39:31 he's around Jan 31 06:39:41 remind me to poke him tomorrow Jan 31 06:39:49 k, thx Jan 31 06:40:13 or call 1-800-ctate-now Jan 31 06:41:43 canadiancow: i was reading today that FB & Google are not on talking terms, does it feel weird to be in there ? Jan 31 06:41:52 i was unaware Jan 31 06:41:56 lol Jan 31 06:42:01 XD Jan 31 06:42:10 its not like iwas there for business Jan 31 06:42:17 i went for a public session and to see a friend Jan 31 06:42:25 ok, cool. http://www.slate.com/blogs/future_tense/2013/01/30/mark_zuckerberg_facebook_google_aren_t_on_speaking_terms.html Jan 31 06:44:34 more proof g00s is an SEO bot Jan 31 06:45:15 too bad i can't use my SEO powers to get people to discover my own app Jan 31 06:45:52 i'm cutting my tech news consumption down to almost 0, actually i'm sick of all news. Jan 31 06:47:03 g00s whats your app? Jan 31 06:47:17 its rather obscure Jan 31 06:47:26 I am too Jan 31 06:47:28 :) Jan 31 06:47:29 it will probably stay that way x.x Jan 31 06:47:35 I will too Jan 31 06:49:15 on play ? Jan 31 06:49:30 i hope :P Jan 31 06:49:36 lol Jan 31 06:49:38 name ? Jan 31 06:49:42 or search term ? Jan 31 06:51:44 geat if I clean my projects and include both the main app and the library, it turns out thats the fastest way to close eclipse, "poof" gone! Jan 31 06:51:49 great* Jan 31 06:52:08 is there a way to open the galerie app with a stream from a content provider? Jan 31 06:55:54 StingRay_: do anything with M2M or IoT ? Jan 31 06:56:16 i know not either of those terms, so at a guess.... nope Jan 31 06:56:28 thats is what my app is about ;) Jan 31 06:56:36 I'm trying to understand/find information on why it's not recommended to not allow rotation in an app. (Dealing with a "View not attached to window manager" (dialog dismissal in async task) issue) Jan 31 06:56:42 whats m2m ? Jan 31 06:56:49 or IoT then ? Jan 31 06:56:54 internet of things Jan 31 06:56:59 Or what is the "correct" thing to do if my if is Portrait only? Jan 31 06:57:48 Why should onDestroy be called on the activity if the device rotates (and I've marked in the Manifest that orientation is portrait)? Jan 31 06:59:47 canadiancow: i think you're going to have to kick romainguy since he's polluting the logs with joins Jan 31 07:00:02 uh? Jan 31 07:00:07 hehe Jan 31 07:00:09 Or his ISP Jan 31 07:00:30 I recently switched IRC client so let me know if there's a problem Jan 31 07:00:42 romainguy: which one are you using now ? Jan 31 07:00:49 Textual Jan 31 07:00:52 k Jan 31 07:01:12 do you like it better than colloquy ? Jan 31 07:01:22 It's a little simpler Jan 31 07:01:30 And development is still active Jan 31 07:01:33 unlike Colloquy Jan 31 07:01:39 oh yeah :/ Jan 31 07:01:53 And it has good keyboard support to switch between servers and channels Jan 31 07:02:52 romainguy: do you use any GTD kind of app on mac like Things/wunderlist, etc ? Jan 31 07:02:58 I was using Things Jan 31 07:02:59 which I love Jan 31 07:03:09 but I got tired of it being iOS/MacOS only Jan 31 07:03:13 so I switched to Wunderlist Jan 31 07:03:18 now that they have repeating tasks Jan 31 07:03:25 the Android client is annoying because it doesn't sync in the background Jan 31 07:03:29 which makes the widget pretty useless Jan 31 07:03:39 but it's better than nothing Jan 31 07:03:44 yeah Jan 31 07:04:08 do you use anything like evernote? or just store notes in wunderlist? Jan 31 07:04:18 I use Evernote and Pocket Jan 31 07:04:22 Wunderlist is purely todos Jan 31 07:08:01 romainguy: my canon s95 /and/g9 are now busted, and i am camera-less :( i have to find something decent around $400 Jan 31 07:09:48 i'm surprised the g15 still has such a small sensor. oh well, maybe i'll wait for the g16 or something :| Jan 31 07:13:31 my company is going to order a bunch of different android devices for testing. is there any guidlines of what phones that is a good idé buy for testing the most common version and resulutions? Jan 31 07:14:49 g00s: get something on the used market Jan 31 07:15:25 Warting: http://www.appbrain.com/stats/top-android-phones Jan 31 07:15:43 get a subset of those Jan 31 07:15:54 JakeWharton: thanks, thats a good start :) Jan 31 07:15:56 N4, N7, One X Jan 31 07:16:08 Droid Razr Maxx HD Jan 31 07:16:48 then get some piece of crap like the Wildfire S to test the worst case Jan 31 07:17:07 the LG Intuition is also fun to test on Jan 31 07:17:27 JakeWharton is that practical given the cycle of contacts/phones ? the wildfire I mean Jan 31 07:17:40 hehe, yea, wildfire comes very often with trouble :) Jan 31 07:17:54 yes, it's underpowered, runs a stupid custom OEM ROM, and is on Android 2.2 or 2.3 Jan 31 07:17:54 my device list of phone, lowest is galaxy s Jan 31 07:17:59 it's a perfect worst-case device Jan 31 07:18:23 wildfire had broken bluetooth, i think i just excluded it from Play Jan 31 07:18:31 unless they fixed it by now Jan 31 07:19:05 everyone should exclude it from play to force user to change phone :) Jan 31 07:19:11 JakeWharton, no, Cliq XT, which I used to have, is worst-case device. "Android 1.5 with Motoblur: for best customer experience" - Motorolla Jan 31 07:20:16 true Jan 31 07:20:23 but not a single thing works on Android 1.5 Jan 31 07:20:29 geat, eclipse wont laungh app, "problems" but none listed :( Jan 31 07:20:34 and even if it did, your face just melts off when you look at it Jan 31 07:20:48 i dont have any customers that what us to develop for 1.5 so thats not a problem Jan 31 07:21:07 i don't know... that 0.4% of the market is ripe for the taking... Jan 31 07:21:33 Warting, when Facebook stopped working on 1.5, and I had to grab an old APK to keep it working, I knew I had the wrong phone. ;-) Jan 31 07:23:19 uh, why did the S2 start to trend upward in that chart Jan 31 07:23:22 also the fact that it wouldn't answer the phone when under load due to lag helped me reach that conclusion also. Jan 31 07:23:46 g00s, S2 is being sold by some prepaid carriers in the US? Jan 31 07:23:55 ah, ok Jan 31 07:26:02 night all Jan 31 07:26:47 Hi all, I have been making an app that has multiple layouts, I want to grab the id of a field within one of those layouts, with R.id.myID but eclipse says it cannot be found. How do I find it then? Jan 31 07:27:31 i wonder why that chart has the N7 down 19% over the past 30 days, did something else that size come out that took its share ? Jan 31 07:28:01 b0nn perhaps eclipse is importing the wrong R file Jan 31 07:29:18 hm, apart from this issue the applicastion runs as desired, that is the buttons on the new layout work appropriately Jan 31 07:29:30 maybe it's the way I am addressing the id? Jan 31 07:29:53 this is the id android:id="@+id/gpsLatitude" Jan 31 07:30:22 this is fail: TextView userText = (TextView) findViewById(R.id.gpsLongitude); Jan 31 07:30:30 er, Latitude Jan 31 07:30:54 android:id="@+id/gpsLongitude" Jan 31 07:31:21 is it the @+id/ ? Jan 31 07:31:25 b0nn does R.id.gpsLongitude exist in the current loaded layout ? Jan 31 07:31:32 yeah Jan 31 07:31:41 wondering the same question Jan 31 07:31:49 setContentView(R.layout.new_flag); Jan 31 07:31:51 perhaps some type miss Jan 31 07:32:12 R.layout.new_flag <--- that contain R.id. gpsLongitude ? Jan 31 07:32:18 yes Jan 31 07:32:21 [22:59:48] canadiancow: i think you're going to have to kick romainguy since he's polluting the logs with joins Jan 31 07:32:27 i think he has a little more power than me Jan 31 07:32:39 of course, i was joking :P Jan 31 07:32:54 :P Jan 31 07:33:23 :D Jan 31 07:33:37 b0nn what is setContentView doing ? whats it for? what element ? Jan 31 07:34:09 hm, I thought it put the new layout to the fore Jan 31 07:34:36 and the new layout is new_flag.xml Jan 31 07:35:38 b0nn and you findViewById "after" that is done ? Jan 31 07:36:25 yes, although I should mention that the setContentView is in the oncreate method of my class Jan 31 07:36:46 I can post code if you think it will be helpful? Jan 31 07:37:10 b0nn: and the result is that userText produces nullpointer > Jan 31 07:37:44 it's an eclipse error at the moment, and I cannot compile till it's cleared Jan 31 07:38:21 but the error is "gpsLongitude cannot be located or is not a field" Jan 31 07:38:41 er s/located/resolved Jan 31 07:39:31 pastebin the layout Jan 31 07:40:01 code: http://pastebin.com/ntsvaz5Y Jan 31 07:40:48 xml: http://pastebin.com/mBHrPK3F Jan 31 07:41:31 the error is on line 53 of the code Jan 31 07:42:39 not sure you need all the xmlns: in all the child layouts Jan 31 07:42:41 also, FTR, line 55 errors, something about bundle not being found Jan 31 07:42:43 just the root Jan 31 07:42:49 ok Jan 31 07:44:06 cause that may declare an new namespace every time it's there Jan 31 07:44:12 not sure though cause never done that Jan 31 07:44:14 :) Jan 31 07:44:22 and not sure of the results either Jan 31 07:44:26 hm, is it the find view is only looking for R? Jan 31 07:44:26 so could be it Jan 31 07:44:39 ie. just the view, not the id? Jan 31 07:45:16 TextView userText = (TextView) findViewById(R.id.gpsLongitude); you are looking at R.*.* Jan 31 07:46:45 if you hover cursor over R part it shows **yourapppackage*.R ? Jan 31 07:49:09 yes Jan 31 07:50:00 if I remove all but R it complains that R cannot be resolved or is not a variable Jan 31 07:51:45 why don't try to clean up the project and restart eclipse :D Jan 31 07:52:31 clean didn't work Jan 31 07:52:48 Also, R is referenced in the oncreate method and eclipse is happy Jan 31 07:53:26 um Jan 31 07:53:39 open gen/R and have a look, see if gpsLongitude is there Jan 31 07:53:40 how about delete the everything under gen folder? Jan 31 07:54:28 hm, gpsLongitude isn't there, but the layouts are Jan 31 07:55:09 oh, wait, under ids Jan 31 07:55:15 it's there Jan 31 07:55:35 so what is the exact error in eclipse Jan 31 07:55:42 ? Jan 31 07:55:54 rofl Jan 31 07:56:04 I commented out the line Jan 31 07:56:07 cleaned Jan 31 07:56:18 tried a ytest line Jan 31 07:56:29 uncommented the original line Jan 31 07:56:36 and voila, fixed Jan 31 07:56:42 must have been the clean :D Jan 31 07:58:29 now.. why isn't 'bundle' playing nice... Jan 31 07:58:32 :) Jan 31 07:58:53 How i insert in table having only primary key using db.insert and contentValues?? Jan 31 07:59:42 thanks guys Jan 31 07:59:45 all fixed Jan 31 08:04:40 if i buy a phone that got 2.2 installed and then upgrading to 2.3 is it possible to downgrade it again without rooting or other hacks? Jan 31 08:06:48 Warting I would suspect depends on phone flash method, but rooting has 99% nothing to do with it Jan 31 08:06:59 and odds are 99% you could Jan 31 08:07:45 i could be totally WRONG if it falls in the 1% mark! best thing to do is pick a phone model and check out xda-devs forum Jan 31 08:09:35 I have table with only one column i.e., PK. how i insert into it ?? Jan 31 08:10:53 i initialize Content values and hav'nt set any values in its put function, than usey db.insert Jan 31 08:11:26 but it is saying can't insert null into PK, i also set autoincrement in PK Jan 31 08:12:41 m0hsin: no idea, 1 column is a bit odd, whats the purpose ? Jan 31 08:12:58 specially if you have it as key,auto Jan 31 08:13:04 why would you set it? Jan 31 08:13:30 lamesauce, evernote for mac wouldn't even start w/o a network connection. early registration is a UX fail Jan 31 08:13:54 How i insert in it? means 1st row 1, 2nd row 2, ... Jan 31 08:14:12 how i populate that table Jan 31 08:14:17 m0hsin: did you try googling, like, any android sqlite tutorial ? Jan 31 08:14:25 yup Jan 31 08:14:25 m0hsin so your just wanting a list of incrementing numbers ? Jan 31 08:14:35 but cant finnd this single coulmn issue Jan 31 08:15:13 yup StingRay and requirement is mandatory as a single column table :S Jan 31 08:16:28 g00s i cant insert it using rawSql,but i want to know can i inser it using Content Values + db.insert Jan 31 08:16:47 is there any possibility by using it? Jan 31 08:20:56 I've been trying to compile this, it says that gles isn't found. http://www.fpsece.net/peopsgpuopenglforfpsesrc.zip Jan 31 08:37:24 guys any example of how to open the "Galerie" with images from a content provider? Jan 31 09:13:26 Eh? The debugger stepped into an if(obj!=null) branch and obj.foo() threw a NullPointerException Jan 31 09:14:25 public foo() { throw new NullPointerException(); } Jan 31 09:14:57 shit, vert.x requires java 7 :X Jan 31 09:15:03 there goes that idea Jan 31 09:16:48 Hi, I have problem with ProgressDialog. In testing release it is working ok, I can see progressdialog, but when I release my app, progressdialog isn't c ccreated Jan 31 09:17:13 I see only Toast with error android.wiget error null,null Jan 31 09:17:27 here is my proguard cfg http://paste.jabbim.cz/5876 Jan 31 09:18:45 and here is my code > http://paste.jabbim.cz/5877 Jan 31 09:19:24 after this mProgressDialog.show(); I see only Toast message , and nthis in logcat Jan 31 09:19:45 ResourceType(1380): Style contains key with bad entry: 0x010102dd Jan 31 09:19:45 Jan 31 09:22:47 Is there a way to make the emulator take keyboard input? (For typing in text fields etc) Jan 31 09:23:38 Fixing bugs in a somewhat "text-heavy" app. I have to type full sentences with the mouse. Jan 31 09:23:41 progzer: when you create the avd, there is a flag Jan 31 09:24:03 just look for something along the lines of keyboard support :) Jan 31 09:24:20 Got it, thanks g00s! Jan 31 09:24:57 Wait, "Keyboard support" boolean "Whether the device has a QWERTY keyboard." That doesn't sound like it. Jan 31 09:26:17 yeah, i think thats it Jan 31 09:26:42 it does sound like it exactly Jan 31 09:26:56 you emulated device is going to have your keyboard attached Jan 31 09:26:59 :) Jan 31 09:27:00 Trying it now Jan 31 09:27:09 Cool, thanks :) Jan 31 09:27:14 :) Jan 31 09:30:32 deebo: Thanks for the possible solution. But foo() itself just sets a variable to null in it. Jan 31 09:36:41 JakeWharton: did you switch to textual also ? Jan 31 09:49:08 hmmm, I explicitly initialized the member variables to null and didn't get a NullPointerException Jan 31 10:00:45 hey, so i read somewhere that android were going to stop the support of onOffsetsChanged() for live wallpapers Jan 31 10:00:52 ...anyone who knows more about this? Jan 31 10:04:28 i doubt android itself would. However the USA SGS2s don't support wallpaper scrolling at the system level so even third party launchers can't scroll livewallpapers. the international SGS2 does and all SGS3s systems do, however the TouchWiz launcher doesn't so it only works with a third party launcher. Jan 31 10:05:28 alright Jan 31 10:05:54 that's still a big part of the market though Jan 31 10:11:37 alright, so would it be necessary to make a special version of the live wallpaper for the devices where onOffsetChanged can't be called? Jan 31 10:12:32 or should i just pretend that this case is so rare that there's no need to take them into account? Jan 31 10:20:34 hey Jan 31 10:29:31 I set a countdown with AlarmManager and update a notification every second with time remaining. However, I'm having issues when I start more than one countdown. The notification text gets overwritten by the new alarm. http://pastebin.com/PCQeNF2X Jan 31 10:43:49 Hello! I trying to extend surface view but i want to know mesured size of surface view before receive surfaceChanged callback. How can i get my view width and heigt? Jan 31 10:47:15 Quacked i believe you can set 1 alarm in the future Jan 31 10:49:12 Quacked: is it the notification or alarm that gets replaced for you? Jan 31 10:52:33 hi. the [hg] command in [ hg clone https://code.google.com/p/android-scripting/ ] refers to whicb debian linux pkg? Jan 31 10:57:57 superlinux: hg is mercurial Jan 31 10:58:03 ok Jan 31 10:58:07 A distributed version control system Jan 31 10:58:10 thanks Jan 31 10:58:38 http://hginit.com/ Jan 31 10:58:47 Hello! I trying to extend surface view but i want to know mesured size of surface view before receive surfaceChanged callback. How can i get my view width and heigt? Jan 31 11:02:59 xgear does anything happen b4 surfaceChanged ? like layout or draw ? Jan 31 11:03:58 appel1: only the notification Jan 31 11:04:05 the multiple alarms work fine Jan 31 11:04:16 I have a random ID for every alarm Jan 31 11:05:36 Quacked: you sure you get a unique id? Jan 31 11:06:59 Quacked: I tested something similar to your code like this http://pastebin.com/B3gfqu4Z and got multiple notifications in the status bar Jan 31 11:08:51 appel1: i love multiple stuff! Jan 31 11:08:55 e.g. multiple screens Jan 31 11:08:57 I get multiple notifications, but the text itself gets identical when I update them every second Jan 31 11:09:27 If I dont run the timer I get different notifications like I should Jan 31 11:10:23 it's just when I update the notifications the text of both of them becomes the same Jan 31 11:11:01 it's probably because the timer updates the variables as well, but I'm not sure how to fix it Jan 31 11:12:02 appel1: how do you update that notification in order for the progress bar to work? Jan 31 11:13:03 appel1: oh, I see you tested my code :) Jan 31 11:15:22 Quacked: not sure if reusing the same builder like that is a good idea since you get the wrong intent for all but the last notification created Jan 31 11:15:32 Can a service generate touch events that are listened by the current active application? Jan 31 11:15:54 valgrind as servjc Jan 31 11:15:57 ooops Jan 31 11:16:02 a service has no UI Jan 31 11:16:07 valgrind: no Jan 31 11:16:35 appel1: yeah, I guess that's the problem. what do you suggest? Jan 31 11:16:36 yea that was my point... since it doesnt have a ui... the events it generates... should be catched by the active app :\ Jan 31 11:16:58 ah damn :D Jan 31 11:17:25 Quacked: to verify you could try to recreate the pending intent and builder from scratch each time you want to update the notification instead Jan 31 11:18:45 hadn't thought of that Jan 31 11:19:19 should work simply by adding mBuilder = new NotificationCompat.Builder(this); into the timer, right? Jan 31 11:20:14 Quacked: and set the intents and so on Jan 31 11:20:18 yah Jan 31 11:20:38 nevertheless doesnt Monkey allow input injection? Jan 31 11:21:46 valgrind out of interest what are you attempting to do ? Jan 31 11:22:16 can't I access SharedPreferences inside a receiver? Jan 31 11:22:41 i would simply like to know if an app can inject touch events into another :) Jan 31 11:22:59 inside the receiver, there is a value that I need and that value is assigned elsewhere in a previous action Jan 31 11:23:02 valgrind: monkeyrunner is a special case since that is a system service Jan 31 11:24:34 appel1: notifications kinda went mental now. When I added the second alarm it kept clearing and adding over and over Jan 31 11:26:59 Ah I see that on a rooted system, input can be injected directly to /dev/input/eventX and it can be done in java through jni Jan 31 11:27:28 valgrind: of course, if you give an app root access there's no security Jan 31 11:27:36 eheh :D Jan 31 11:28:57 is it ok to put loadAnimations and setAnimationListeners in an external class, or must they be defined within each activity? Jan 31 11:31:57 hip2p depending on use it's fine Jan 31 11:32:03 ok thanks Jan 31 11:38:38 hi all Jan 31 11:38:39 Quacked: the problem might be that the last updated notification is on top, which is why things jumps around for you Jan 31 11:42:05 could be, but time remaining becomes the identical for both of them. Jan 31 11:48:22 maybe I need to go back to updating instead of creating new Jan 31 11:48:52 I can't seem to be able to implement this when inside my Receiver, NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); Jan 31 11:50:44 nevermind, you call it from context Jan 31 11:50:59 oh wait, no. that's wrong too Jan 31 11:54:22 appel1: think I have to put the variables I need into an ArrayList or something? Jan 31 11:54:29 so every variable is unique I mean Jan 31 11:59:45 i have a android app in eclipse with a TabLayoutActivity now i want to add a login form before my tab layout, i have to add new layout o new activity ? Jan 31 12:00:34 pii3 up to you and how you handle it Jan 31 12:01:46 StingRay_, no really important for me and im very new to android development i just need something before my tablayout to ask for user/pass ? Jan 31 12:02:25 well how you handle it and how it would be implemented is based of requirements and design Jan 31 12:02:46 I have a large string chunk, that I need to lay on multiple textviews across multiple fragments in a viewpager Jan 31 12:02:55 what's a good way of going about it? Jan 31 12:03:05 breaking it up ? Jan 31 12:03:07 :) Jan 31 12:03:25 yes, I'm already doing that, I need a good model Jan 31 12:12:26 say I pass Activity A to an external class function getA(Activity A). In getA(), I then want to run a function that's in Activity A. How do I call one of A's functions? Jan 31 12:13:48 is it supported to run the opengl es trace program using Nexus 4 ? it works on other phones, but with nexus 4 I get an error saying it couldn't launch the application Jan 31 12:23:02 hip2p: A.functionName() Jan 31 12:23:36 Hello :) Jan 31 12:24:07 Is there any application for android that will act as a client and will connect to a server on linux os where i could define different events. Jan 31 12:24:22 I know there is a lot of dedicated software but i looking something general and fully configurable Jan 31 12:25:29 The point is to have a multiple servers in network and on android side application that will see all of them and allow control all stuff that are exposed by the servers. Jan 31 12:26:19 If there is no such application i could start such project and write server side, if someone want to start it with me and play with android side then just wrote me :) Jan 31 12:26:52 one condition, application need to be free/opensource and without advertising. Jan 31 12:30:55 "control all stuff"? Jan 31 12:31:03 a web client does that pretty well Jan 31 12:31:21 with the advantage of being an open protocol Jan 31 12:34:33 which android device got Normal resulution with ldpi ?? :) Jan 31 12:35:52 Warting guessing but "samsung ace" Jan 31 12:35:54 ? Jan 31 12:36:21 will check... Jan 31 12:37:29 it got 164.83 PPI Jan 31 12:38:47 and ldpi ~120dpi… Jan 31 12:39:08 mdpi ~160dpi Jan 31 12:40:01 I set a countdown with AlarmManager and update a notification every second with time remaining. However, I'm having issues when I start more than one countdown. I get several notifications, but the text become identical for all of them. All the alarms work though. http://pastebin.com/PCQeNF2X Jan 31 12:40:32 I suppose it is because I refresh the variables in runNextTask(), but how should I do it? Jan 31 12:41:06 Anoia: general i`m not sure if its better to have it as a standalone application or web based Jan 31 12:41:54 it sounds liek exactly what you want Jan 31 12:42:02 When I create a webview and the user holds to select, what function is being called. I want to override it so that I can get the text that the user is touching. Jan 31 12:42:17 multiple server, flexible, can do anything the server can do Jan 31 12:42:26 with no client side changes needed Jan 31 12:42:45 you can use a custom front end if needs be Jan 31 12:43:57 Quacked: if you have multipel alarms, then you need multipel sets of all the values Jan 31 12:44:13 Anoia: exactly. How? :) Jan 31 12:45:01 a disctionary/list of classes keyed ont he alarm id? Jan 31 12:45:45 Sounds nice, can you show an example? Jan 31 12:50:49 I have an ExpandableListView, but I have found the following problem. If I add an item with a height of say 60dp, then the group indicator is vertically aligned at the bottom, but I'll prefer to have it either the center or the top. How do I do that? Jan 31 12:53:45 why on earth is it so awkward to use booleans in parcelable? Oo Jan 31 12:53:55 http://stackoverflow.com/questions/6201311/how-to-read-write-a-boolean-when-implementing-the-parcelable-interface Jan 31 12:54:29 Anoia: or what dictionary/list do you recommend? Jan 31 13:00:33 Quacked: think I know why your notifications jump around if you create new builders each time you update, the sort order in the notification bar is based on the when property so if you don't reuse the same builder instance you need to set when to the same value as when you first created the notificaiton. or just keep the builders around and reuse them. Jan 31 13:01:06 Quacked: I can;t without writing it for you Jan 31 13:01:18 I don;t know the class names off by hand Jan 31 13:01:33 is there an alternative for ExpandableListView that actually works somewhat like I'd expect? Jan 31 13:01:35 (oh, and waht I said, wasn;t Java specific, it's general programming practice) Jan 31 13:02:28 couldn't find how to open an SMS message when notification is pressed, till now I only know how to open inbox Jan 31 13:02:52 appel1: yeah, I figured that :) But I don't want to mess with the when Jan 31 13:03:32 In WebView how do I get the text that a user touches? Jan 31 13:03:35 Earlier this morning, I asked which android devices are goot to use as test units for different ansdroid versions when developing. I got no clear answer and I found no updated guide online. I have tried to summarize the different devices I think should be used when testing. Some have probably misinformation regarding screen resolution and dpi, so I would appreciate a comment on what is right and wrong. what should be added? And what should be removed? Wh Jan 31 13:05:08 so basically ExpandableListView if you want it just a little bit customized, since there's lacking configurations and there's no alternative either :/ great Jan 31 13:05:28 Quacked: btw, your approach isn't incredibly battery friendly, but if you need to update the notification that frequently perhaps a service is a good idea in case the user leaves your activity (or do you plan to stop the count downs in that case?) Jan 31 13:07:01 appel1: they are still updated if I leave the activity Jan 31 13:07:22 Quacked: until you do something else with the device and your cached process is killed to free memory Jan 31 13:07:28 Yes Jan 31 13:07:58 That's why I went from CountDownTimer() to AlarmManager() Jan 31 13:08:20 Ok, what can i use if i want to build in fast wey simple web application for android? Jan 31 13:08:41 with js framework is a good one for it ? Jan 31 13:08:46 Quacked: but your handler loop that updates the seconds and progress bar will stop after some indeterminate time after the user has left your activity Jan 31 13:09:02 no one? to much text to read? :) Jan 31 13:09:21 appel1: yes, you're right. I might move it to a service later. Jan 31 13:09:29 What are you asking warting? Jan 31 13:09:30 Warting: or no one knows Jan 31 13:09:52 Warting : no correct answer Jan 31 13:10:04 as in answer would be opinion driven and subjective Jan 31 13:10:09 so no point Jan 31 13:10:11 :) Jan 31 13:10:37 In WebView how do I get the text that a user touches? Jan 31 13:10:43 find handset dist figures like you were linked to and make your own decisions Jan 31 13:11:28 Yea, I know, I'm just asking for feedback. Nothing is right or wrong. but i might have written wrong information on some resulutions. is some devices unessiserry? can I remove some and still test all scenarios? :) Jan 31 13:11:35 Warting, I have no precise answer for you but if it were to be thorough I would probably go for some of the most popular devices such as Galaxy S II and S III, also I'd go for a device from each of the common vendors due their customizations, and then I'd try to get some screen diversities to account for the different resolutions. But that's a rather lot of devices Jan 31 13:12:09 Warting, otherwise I'd try to find some statistics on the most common devices and go for those Jan 31 13:12:40 Warting I have for most testing galaxy s, s2, galaxy nexus, galaxy tab 7, 7 plus, 8.9 Jan 31 13:12:55 You can always use AVD when you are not doing multi touch stuff Jan 31 13:13:46 Warting, an do statistics on what devices your users use, in the end that's what you have to match Jan 31 13:15:01 appel1: but do you have a suggestion how I can put the variables into a set? Should I use some kinda Map? Jan 31 13:15:44 Hello. I checked SEVERAL sites and stuff but i couldnt figure out an answer.. How's it possible to make a Screenshot of the Whole Screen (not the current View in the Activity) with or without root? Jan 31 13:15:46 rohdef, thats right. but I work on an agancy with customers that often do not have any app from the begining Jan 31 13:16:10 appel1: on the battery use note, if I find out that it's using a lot of battery I'll slow down the update interval Jan 31 13:16:15 mabli: with ddms Jan 31 13:16:47 Quacked: it's just that you do more than necessary since the user is unlikely to sit around watching the notification area very much :) Jan 31 13:17:28 i need a screenshot within the code (on the App), not with a Computer :S Jan 31 13:18:16 Then I'd try to do stats as soon as possible, such as initial release, user tests etc., to get whatever knowledge is possible. Also consider gaining stats after the final release, I guess it will have to be updated sooner or later. Also there might be a difference to what phones people use depending on the type of app perhaps some useful info can be gathered here on the longer terms Jan 31 13:18:19 figured out some solutions wich didnt work or required root, but it must be without ( https://play.google.com/store/apps/details?id=com.ScreenCapture22&feature=search_result#?t=W251bGwsMSwyLDEsImNvbS5TY3JlZW5DYXB0dXJlMjIiXQ.. ) for example Jan 31 13:18:36 Quacked: but yes, some kind of Map should work Jan 31 13:19:12 appel1: it's something like a pizza timer Jan 31 13:19:30 appel1: and the timer is cancelled only from notification :p Jan 31 13:20:03 Quacked: ok Jan 31 13:20:58 the built-in countdown in 4.2 is at least updated every minute Jan 31 13:22:28 Quacked: true Jan 31 13:26:52 any idea what Map I should use? Jan 31 13:27:11 Quacked: you could look at their code to see how they do it :) Jan 31 13:27:43 yeah, I'll check that later Jan 31 13:28:46 I guess I want something like list.getVariable(uniqueID, "variablenumber1") Jan 31 13:29:17 Quacked: if you just need a int to builder map a hashtable should be fine Jan 31 13:30:05 thanks, looking it up Jan 31 13:36:56 where/how can I browse the source code for the built in ui components, such as ?android:attr/expandableListPreferredItemIndicatorRight and @android:drawable/expander_group Jan 31 13:37:34 rohdef: I like this Chrome extension https://chrome.google.com/webstore/detail/android-sdk-reference-sea/hgcbffeicehlpmgmnhnkjbjoldkfhoin Jan 31 13:37:48 robtow: it adds a view source link in the docs on d.android.com Jan 31 13:38:25 appel1, ... ok didn't expect a chrome extension :p but it looks interesting Jan 31 13:38:42 I expect that the second was for me and not robtow Jan 31 13:39:07 yes Jan 31 13:39:33 rohdef: you can navigate around in https://android.googlesource.com/?format=HTML directly but the extension makes it easier to find stuff Jan 31 13:40:05 appel1, I'll give it a shot, sounds like I'll come to like it Jan 31 13:42:21 is there any indoor navigation library out for android? Jan 31 13:43:09 i have a listview with 'incoming messages'. for every message i want to have a few buttons with 'quick replies'. This list is dynamic per incoming message (ie 'open door' has reply 'coming' but 'yes' has reply 'no') In my adapter i can't just add the buttons for the replies because getView() gets called randomly (and more than once per item). what would be a decent way to create this list Jan 31 13:43:09 of replies Jan 31 13:44:47 getView is called more than once per item ? and it's random ? Jan 31 13:45:01 it's out of my control Jan 31 13:45:16 if i add an item to the listview, getView is called on the existing items (if visible) Jan 31 13:45:35 thats hardly random Jan 31 13:45:45 Hi, guys can I say to a textview to display certain number of chars I mean I have a big text and I want for example to display 150 chars of it max Jan 31 13:46:22 tagrudev addTextChangedListener Jan 31 13:46:47 tagrudev: http://developer.android.com/reference/java/lang/String.html#subSequence(int, int) Jan 31 13:47:20 StingRay_, I know about that I was wondering if there is something build in for the textview Jan 31 13:47:22 already Jan 31 13:54:35 tagrudev: why do you want to limit the length of the textview in number of characters? Jan 31 13:55:57 nvm I did it with subSequence Jan 31 13:56:38 tagrudev: http://developer.android.com/reference/android/widget/TextView.html#attr_android:maxLength Jan 31 13:56:45 my point was TextView.setText(text) i was wondering if I can set in my layout xml (to the TextView) something like max Jan 31 13:56:47 timroes, Jan 31 13:56:48 ty Jan 31 13:56:55 i'd like to send images to the android gallerie app via content provider (PipeDataWriter) Jan 31 13:57:00 any examples for this? Jan 31 13:57:23 i got the provider working via public ParcelFileDescriptor openFile(Uri uri, String mode) Jan 31 13:57:33 but this hurts with the gallerie app Jan 31 13:57:50 tagrudev: or use maxLines, what I guess, makes in most cases more sense Jan 31 13:58:00 (at least in the cases where you have more then one line :D) Jan 31 13:58:22 http://pastebin.com/KaTQZTj2 Jan 31 13:58:38 timroes, maxSize is better I think + now I need to figure out how to add ... at the end :) Jan 31 13:58:39 I seem to have a NullPointerException on an object which I just checked for being null, any ideas? Jan 31 13:59:24 tagrudev: http://developer.android.com/reference/android/widget/TextView.html#attr_android:ellipsize Jan 31 13:59:30 progzer: something else is null or it's a threading issue perhaps? Jan 31 13:59:52 might work for you, not 100% sure though Jan 31 14:00:48 appel1: Does that mean the reported call stack at the time of the crash would be invalid? Jan 31 14:00:56 timroes, got it working with subSequence(0, 100) + "..." Jan 31 14:01:13 ;) Jan 31 14:01:16 tagrudev: that ofc will also ellipsise the text, if its shorter than 100 chars Jan 31 14:01:23 progzer: no, but perhaps there are multiple things on that line in your code that can be null? Jan 31 14:01:29 or shorter then your view (whatever rule you now applied on your view) Jan 31 14:01:36 progzer: I'm just speculating since I don't have your code in front of me Jan 31 14:01:59 Ah, I've mentioned the line of code and the code of the function called from that line of code at the pastebin Jan 31 14:02:35 progzer: oh, missed that =) Jan 31 14:04:44 progzer: you have a ; between the if statement and the {..} block so the code in {..} will always be executed Jan 31 14:04:54 Also, from the call stack it looks like it goes into onStop multiple times? Position 14 and 20 in the call stack are the same - onStop. (With position 18 skipping stuff with "... 11 more") Jan 31 14:05:08 Oh My!!! Jan 31 14:05:14 Thank you, appel1! Jan 31 14:05:19 progzer: that is the {..} isn't part of the if statement Jan 31 14:06:11 You just saved me hours of "research on suspicions of something being completely broken" :P Jan 31 14:07:10 :) Jan 31 14:10:13 Hello! I use DecelerateInterpolator for animation. According docs animation starts even faster and ends evens slower. How i can force interpolator don't start faster and just decelerate? Jan 31 14:10:49 is there any way to see why an app is not compatible on a Device? I built an app which is not compatible on my Tablet (but i dont know why)? SDK matches and the required Permissions are useable on the Tablet.. Jan 31 14:10:58 yeah Jan 31 14:11:59 misterli: sorry, that "yeah" was not intended for you, accidentally typed that in the wrong window. Jan 31 14:20:39 any reason getCount() returns the same number everytime? Does it not keep a "running" total of the items in the entire listview, instead only stores what was the Last Amount Added to the adapter? Jan 31 14:21:33 Line 42 Goes into a loop since it is always returning 15(the number of items ADDED to the adapter) and 12 (the position) Jan 31 14:22:29 Hello! I use DecelerateInterpolator for animation. According docs animation starts even faster and ends evens slower. How i can force interpolator don't start faster and just decelerate? Jan 31 14:22:47 oh, might need my paste to refer to the line numbers... http://privatepaste.com/aaf97ed755 Jan 31 14:30:13 Regex experts, start your engines! Convert "1.4.3" to "1.43" (Bonus "1.4.5.1.2" to "1.4512") Jan 31 14:31:02 progzer: why don't you just split the string? Jan 31 14:31:10 would it be too heavy? Jan 31 14:32:32 No, that's my second option, I'm trying to go through the doc for Pattern to see if I can do it with a regex :) Jan 31 14:33:00 dunno, but in python there's a "substitute" (sub) command in the regexp package Jan 31 14:33:05 How do I disable animations when changing layoutparameters on a view added to the WindowManager? (WindowManager.updateViewLayout(view, params)) Jan 31 14:33:05 there may be one for java as well Jan 31 14:34:04 yeah, replaceAll Jan 31 14:34:15 you give the [0-9]\. as a regexp Jan 31 14:35:25 I'd need a capturing group on the latter part (after the first period) of the string, but a capturing group which is "selective" such that it ignores other periods. Jan 31 14:35:40 sorry, something like (?P[0-9]*)\. and replace it with x Jan 31 14:35:59 you just tell the group that there should be a number before the dot Jan 31 14:36:05 ah no wait Jan 31 14:36:08 Don't think there's a regex for that Jan 31 14:36:28 ah, it's getting complicated Jan 31 14:36:30 wait Jan 31 14:37:05 Simplistic regex ([0-9]+)\.([0-9\.]+) - but the second capture group will also end up capturing the periods. Jan 31 14:37:46 you know what Jan 31 14:37:53 you'd better off with a for cycle :D Jan 31 14:38:13 Yeah, get there characters and start skipping periods after the first one :P Jan 31 14:38:24 yep Jan 31 14:38:58 maybe there's a better way to do that, but in C I would do it without giving it a second thought Jan 31 14:40:16 progzer is StringBuilder too heavy for you to use in this case ? Jan 31 14:41:01 like lastOf etc Jan 31 14:41:15 or rather lastIndexOf Jan 31 14:49:48 progzer: may i ask what is your string? i mean, what does these numbers separated by dots represent? and why do you want to strip out its dots except for the first? Jan 31 14:51:13 Nothing too heavy Jan 31 14:51:25 It's just a version 'number string' Jan 31 14:52:00 Was just going to parse it as a double Jan 31 14:54:02 Just wrote it with char buffers and iteration, but I think it'll just be cleaner if I split, replace periods in the second part of the split and then concatenate again. Jan 31 14:55:51 StringBuilder builder = new StringBuilder(stringVersion); builder.replace(stringVersion.lastIndexOf("."), stringVersion.lastIndexOf(".") + 1, ""); stringVersion = builder.toString(); Jan 31 14:55:57 thats was my idea Jan 31 14:58:28 i'm writing raw audio data to a file using AudiRecorder. This happens for a defined buffer size for as long as a boolean variable is set. Occasionally, the last block seems to dubplicated, i.e. it is stored twice. any ideas why this might happen? Jan 31 14:58:39 progzer: anyway, I would never parse a version number as a double Jan 31 14:58:56 progzer: I mean, I don't see the reason why you would want to do something like that Jan 31 14:59:34 Thanks StingRay_. I guess I'll use indexOf instead of lastIndexOf in that. Jan 31 14:59:49 fatline. It's to compare against a version which a server reports. Jan 31 15:02:51 progzer: I see two reasons why you would not want to do that Jan 31 15:03:19 first, although is not going to happen unless the version number is veeeery long Jan 31 15:03:30 the conversion to double may change the value Jan 31 15:03:52 second. how would you compare 1.12 to 1.1.2? Jan 31 15:04:14 they would be both translated to 1.12 Jan 31 15:04:31 and you would lose the information necessary to know which one is newver Jan 31 15:04:45 you'd better off with a single for cycle that compares the numbers one by one Jan 31 15:05:00 just split the two numbers Jan 31 15:05:18 so you have [1, 12] against [1,1,12] Jan 31 15:05:24 guys, I need someone who is native englishman, to write one descriptive sentence for phone-flashlight-permission :) Jan 31 15:06:08 which makes the problem trivial Jan 31 15:06:36 hi all, i need help with my gps listener...code is correctly, enable, disable will shown but not the geo data: http://pastebin.com/0XvSkVBD Jan 31 15:07:01 That issue didn't occur to me, thanks fatline. The whole reason I started writing this was to handle a case where someone in future decides on returning version numbers from the server with multiple periods. Jan 31 15:08:00 sure Jan 31 15:08:28 just be careful to handle properly cases like [1, 12, 3] against [1, 12, 3, 4] Jan 31 15:12:30 don't understand why onProviderEnabled/Disable will be dispatched when i turn the gps on/off but not the geo data is shown Jan 31 15:15:56 i try to receive the battery level and shoot out some intents but my receiver dont catch them (is the reason because its pluggied into USB and 100%?) Intent.ACTION_BATTERY_CHANGED, android.intent.action.BATTERY_OKAY, android.intent.action.BATTERY_LOW, android.intent.action.ACTION_POWER_DISCONNECTED, android.intent.action.ACTION_POWER_CONNECTED .. my receiver didnt catch any of them? Jan 31 15:20:25 misterli: you'll get events when the battery changes, but to get the initial status you have to query it Jan 31 15:20:50 misterli: and correct - when plugged in you may get a charging state, but that's about it Jan 31 15:21:54 Okay. Thought that but the Event ACTION_POWER_CONNECTED should shot out when i plugin the USB cable. But it does not Jan 31 15:22:21 Hi all, bit of a tangentially related question for you guys. Is anyone aware of any resources for porting your OpenGL code to Direct3D? I am looking for api comparisons or tutorials aimed at experienced 3D developers moving from OpenGL to Direct3D Jan 31 15:22:38 To be clear: I am comfortable with GL and want to apply that knowledge to Direct3D Jan 31 15:27:09 DX 11 is more like GL InanTop as long as you stick to a certain sub set a lot of your code is mostly the same.. .. in the past theres been open source wrapper libs for GL to D3D or D3D to GL Jan 31 15:29:51 Sorry I stupidly refreshed... DirectX 11 you were saying? Jan 31 15:30:24 dragorn, how do i query it to get the initial batterylevel? Jan 31 15:30:27 рщц ещ Jan 31 15:30:51 how to test in app billing without publishing apk to the store? Jan 31 15:31:08 misterli: I don't recall offhand, it's in the docs along side the other battery API tho Jan 31 15:31:12 misterli: it was something trivial Jan 31 15:31:35 or I just need a signed apk to make a purchase? Jan 31 15:31:49 because with the debug version I can't test anything Jan 31 15:32:51 okay dragorn. It's annoying because there's no Intent to do that and almost all Tutorials show the Solution with BATTERY_CHANGED -_- Jan 31 15:32:57 Yup, that case occurred to me and I added a check outside the loop to see if the common largest index of the two versions matched. Jan 31 15:34:49 DX 11 is more like GL InanTop as long as you stick to a certain sub set a lot of your code is mostly the same.. .. in the past theres been open source wrapper libs for GL to D3D or D3D to GL Jan 31 15:34:55 there Jan 31 15:36:40 TheBunnyZOS: thanks! I will check it out. Specifically I'm trying to write a cross-API rendering engine for mobile, does that change your answeR? Jan 31 15:36:43 Hello guys, I tried out a simple WebView and I have a question. When I open Word-generated html page with some pictures in it, the picture is shown blury when I zoom in. Any idea? Jan 31 15:37:31 InanTop: no not really Jan 31 15:37:41 Im porting ESO to mac Jan 31 15:37:56 and that MMO supports GL, DX9-11 Jan 31 15:38:14 When I look at the DX11 apis they feel a lot more like GL, Jan 31 15:38:27 TheBunnyZOS: great stuff, thanks for that Jan 31 15:38:30 well, in an emulator i dont get any receive (even when i change the batterystate by telnet) http://pastebin.com/6YqEjycL Jan 31 15:38:30 mostly you need VBOs, VAOs etc and roughly the same on botgh Jan 31 15:38:39 Now for shaders Im not sure what is best Jan 31 15:38:47 are you using shaders? Jan 31 15:39:03 GLSL-ES shaders yeah, so equivalent to GLSL v 120 or somethjing Jan 31 15:39:06 ESO has like 4000 shader combos. Jan 31 15:39:25 do you have a lot of shaders? Jan 31 15:39:27 for shaders we'll probably write specialized shaders for each thing we want to do, and write them in GLSL for ES2, GLSL for ES3, and HLSL Jan 31 15:39:31 not really Jan 31 15:39:41 It's not quite a game engine Jan 31 15:39:47 ok if you only have like 20 or what ever thats a good approach Jan 31 15:39:54 just code them all up over again Jan 31 15:39:57 thanks for the advice, I really appreciate it Jan 31 15:40:01 Hi, I just updated adb from an older version to 1.0.31, and it doesn't recognise my tablet anymore. It worked before I updated today, but I don't recall what version I was coming from Jan 31 15:40:05 The tablet is a Polaroid White Line 7" tablet: http://www.polaroidtablet.com/polaroid-tablets/white-line/ Jan 31 15:40:20 everything beyond that is a LOT more work and is more about AAA level PC, MAC,COnsole targets Jan 31 15:40:39 Number5: zooming wont automatically load a higher res version of your image Jan 31 15:40:44 Theres a nice page comparing GL to DX11 features Im trying to find Jan 31 15:40:56 TheBunnyZOS: that's exactly what I was looking for, if you can dig it up that'd be amazing Jan 31 15:41:20 I am running adb on a laptop with Linux Mint 12 Jan 31 15:41:30 does someone know why adb won't detect my tablet? Jan 31 15:41:58 http://rastergrid.com/blog/2011/10/opengl-vs-directx-the-war-is-far-from-over/ Jan 31 15:42:01 InanTop: Jan 31 15:42:14 appel1, the image is high resolution, but wbeview is kind of down sizing the image. When zooming to read some details, the image gets (relatively) very blury. Jan 31 15:42:40 TheBunnyZOS: you are a hero Jan 31 15:42:50 Number5: so you show it full size? you don't set any height or width to make it "smaller"? Jan 31 15:43:02 nope Jan 31 15:43:20 InanTop: probably the hard part is when you don't know enough about the APIs and hyuo code to much to the DX special feature or GL only features vs understanding the 90% thats shared and easy to abstract. Jan 31 15:43:30 I'm talking about Android 4 on a HTC sensation Jan 31 15:43:54 Number5: perhaps it just isn't high res enough, or webview scales it Jan 31 15:44:10 TheBunnyZOS: Yeah I want to understand the overlap and then understand the divergence, and design the engine around it Jan 31 15:44:19 I'm going to print that out and look at it now, thanks for all your help Jan 31 15:44:26 appel1, I think webview scales it too, but can I change webview's behaviour? Jan 31 15:56:24 okay, it appears that ~/.android/adb_usb.inf got overwritten. Restored it and it's working again Jan 31 15:59:20 someone here know if new Galaxy phones come with Samsung store? Jan 31 15:59:27 or they come with google play? Jan 31 15:59:59 I can't imaging them coming without Play, but they might have both Jan 31 16:00:18 Disclaimer: I don't have any Samsung phone Jan 31 16:12:38 speeder both Jan 31 16:12:47 unless you mean the galaxy nec Jan 31 16:12:50 oops Jan 31 16:12:53 nexus Jan 31 16:13:08 then it's just unbranded, so only playstore Jan 31 16:15:30 hi Jan 31 16:15:34 interesting Jan 31 16:15:46 I wonder if it is worthy to submit apps to samsung Jan 31 16:15:54 the libs /system/framework/lib.odex and .jar Jan 31 16:16:02 the .jar is used? Jan 31 16:16:07 * speeder is getting more freaked out of store fragmentation than screen and CPU fragmentation Jan 31 16:16:09 why both formats? Jan 31 16:17:20 the jar only has the manifest Jan 31 16:44:11 can I set up an onClickListener for an image? or does it have to be a button Jan 31 16:44:28 easier to use ImageButton Jan 31 16:44:32 um Jan 31 16:44:36 you can set it on any View Jan 31 16:44:37 hello Jan 31 16:44:43 it's not "easier" if it's an ImageButton Jan 31 16:45:33 how is it not easier to use a "button" for ui touch interaction ? Jan 31 16:45:54 how is it easier Jan 31 16:46:16 findViewById(R.id.whatever).setOnClickListener(...); Jan 31 16:46:25 replace AnyViewType with anything and the result is the same Jan 31 16:46:46 essentially what I want to do, is allow moving and resizing of a graphic object on the main view, but I wanted to take a shortcut and detect which graphic was pressed with an onClicklistener, as opposed to how I was going to handle it through coordinate calculations Jan 31 16:46:53 does that make sense, or am I going about it wrong Jan 31 16:47:22 i probably wouldn't use views for graphic manipulation Jan 31 16:49:27 A constructor that is clearly defined within a package is being categoried as undefined when I reference it elsewhere in the package. WHy would this be occuring? Jan 31 16:49:33 THe declaration of the contructor has no errors.... Jan 31 16:50:53 well, I was hoping to keep it more object oriented since I really only need the coordinates in the end to render the desired image as output. This is basically just an interface for placing and resizing "stencils". I considered using a canvas, but Im not sure there's any benefit to additionally having to clear and redraw it when things change Jan 31 16:54:12 hey, can someone explain to me what android.R.layout.simple_list_item_1 is in the example here: http://developer.android.com/guide/topics/ui/layout/listview.html Jan 31 16:54:26 where does it come from? i didn't define it Jan 31 16:54:34 it comes with Android Jan 31 16:54:40 its a standard listview item Jan 31 16:54:54 (you can define your own layout if you wish, that is a default one you can use) Jan 31 16:55:01 can i see them somewhere in the docs? Jan 31 16:55:19 Chainfire: thanks. yeah, i know. i was just confused Jan 31 16:56:13 as far as I know, those kind of things are pretty much in the examples only Jan 31 16:56:46 hmmk Jan 31 16:57:22 here's a list of them, but they hardly explain what they are: http://developer.android.com/reference/android/R.layout.html Jan 31 17:02:11 gah wtf, the emulator won't start now, cpu churns but no window .. running verbose doesn't seem to indicate anything Jan 31 17:04:59 ah, -noaudio .. found the right thing to google :P Jan 31 17:06:49 Why can't I store a boolean in a Parcelable? Oo Jan 31 17:07:08 doing it with a workaround now, but I don't understand why I can't just put a bool in there... Jan 31 17:10:51 when recording raw audio using AudioRecord, I get sort of an 'interleaved' output: 2^11 samples signal alternating with 2^11 samples silence. Any ideas what might be causingthis? Jan 31 17:38:27 on the framework/lib.odex is not all the code :( Jan 31 17:40:48 any1 had the Problem "Retry Receiver class not set yet" from GCMRegistrar before? Jan 31 17:42:55 maybe this link, misterli? http://stackoverflow.com/questions/13952577/internal-error-retry-receiver-class-not-set-yet Jan 31 17:44:25 nope, didnt help. just made all the steps in the tutorial and added the receiver. the library is the latest GCM.jar Jan 31 17:45:34 https://code.google.com/p/gcm/source/browse/gcm-client/src/com/google/android/gcm/GCMRegistrar.java?spec=svn87275a7eaab265c60b17f178b0c5cdd2983dc686&r=87275a7eaab265c60b17f178b0c5cdd2983dc686 line 282 Jan 31 17:45:41 Hello again! Is it possible to pass a bundle of extras on a search invoked by a searchwidget? Jan 31 17:45:43 that's the why behind the error Jan 31 17:46:25 yeah found that already :-/ i dont even receive any pushs right now Jan 31 17:46:27 when recording raw audio using AudioRecord, I get sort of an 'interleaved' output: 2^11 samples signal alternating with 2^11 samples silence. Any ideas what might be causing this? Jan 31 17:46:28 oh Jan 31 17:46:33 well..I don't know :o Jan 31 17:46:38 but i got a GCM-DeviceID Jan 31 17:48:16 is it possible to open a ":memory:" sqlite3 database using SQLiteOpenHelper? Jan 31 17:53:20 can i change .odex files for .dex ones? Jan 31 18:00:48 I have a custom class that im instanciating in my main activity. I made a custom view where I need access to that instance of the class object. How can I reference its methods from the custom view class? Jan 31 18:01:16 if i make the methods static, I dont see how it would find the specific object, since the code is specific in the method to that particular object Jan 31 18:07:23 shinkamui if you findViewById you get the object Jan 31 18:25:18 Any reason post.clear() doesn't clear my listview on line 71? http://privatepaste.com/1fc1de469f Jan 31 18:26:30 str8uplinux: still going with the scroll listener, eh? Jan 31 18:27:20 in regards to clearing the list: no, I don't know why your listview isn't being cleared. Got the source for your adapter? Jan 31 18:27:42 evanc: yeah, I honestly tried but couldn't quite get tehe outcome i was looking for. Jan 31 18:28:21 evanc: here is my adapter: http://privatepaste.com/7a247e33df Jan 31 18:29:28 Are all of Google's apps open source? If so, where can I get my hands on the code? Jan 31 18:29:37 jdawes: android.googlesource.com Jan 31 18:29:41 not all of them are OSS Jan 31 18:29:54 evanc: Thanks. Jan 31 18:30:35 str8uplinux: nit: this line is useless - HashMap post = new HashMap(); Jan 31 18:30:45 str8uplinux: just do post = data.get(position); Jan 31 18:31:33 evanc: Are these repos for Android source code? I was looking for app source code…perhaps I'm just blind. Jan 31 18:32:01 evanc: and then obviously i will need to define String post; before that right? Jan 31 18:32:02 jdawes: + "packages" Jan 31 18:32:14 evanc: You're the bst. Jan 31 18:32:15 str8uplinux: well post isn't a string, but no Jan 31 18:32:29 str8uplinux: HashMap post = data.get(position); Jan 31 18:32:45 evanc: oh, right i see what you're saying Jan 31 18:32:59 Hey all Jan 31 18:33:14 str8uplinux: I don't see any reason that would cause posts.clear() to not empty the listview, though. Let me take another look-see Jan 31 18:33:52 evanc: yeah, I know I have used it in previous versions of this project, and it worked just fine. Jan 31 18:34:39 I have a ListView, and I fill it with custom xml list items using my own MyBaseAdapter. The items are simply a textview and a checkbox. How can I execute a method when I flick a checkbox in the list? Jan 31 18:34:50 i still cannot receive any messages from my gcm server while being in the emulator.. and i still have the message GCMRegistrar internal error: Retry receiver clas not set yet. Any idea? Jan 31 18:35:33 I need to be able to retrieve the item´s position in the list when executing the checkbox method Jan 31 18:37:40 Good Evening :) Jan 31 18:38:32 Woops, my battery is a fruithead Jan 31 18:38:43 I have a Question.. i want to open a picture in an image viewer like the normal gallery if someone clicks a link to a picture in a webview Jan 31 18:38:57 does somebody knwo how to do that or what i could google for that? Jan 31 18:39:12 intent-filter Jan 31 18:39:25 ACTION_VIEW Jan 31 18:39:28 yeah but... Jan 31 18:39:28 etc Jan 31 18:39:30 evanc: ok, i just found that if i hit the refresh button twice, it clears the view the second time. Jan 31 18:39:45 first i have to know if the user clicked an imagelink in the webview... how to do that? Jan 31 18:45:24 does the listview get invalidated when making changes from the options menu, I wonder. Jan 31 18:45:57 nobody an idea? Jan 31 18:46:33 Styler2go never wanted to do it, so I dont :) whats you attempting to do that for anyhow ? Jan 31 18:47:13 ah.. shouldOverrideUrlLoading is what i am searchign for :) Jan 31 18:47:21 kbs, yeah i'm not sure why it is acting as such... Jan 31 18:47:36 Styler2go: look at webviewclient, and shouldOverrideUrlLoading(), and onLoadResource() Jan 31 18:48:08 kbs, is there a good way to test this? should i try to redefine the within the option selection? Jan 31 18:48:50 how can i make a physical keyboard's enter button behave the same as the IME's Done/Next? Jan 31 18:49:11 str8uplinux: well in principle the listview isn't actually being viewed when your menu is up. To test: two things. (a) add a log in your adapter's getCount(), so you know when it's being called. (b) add a postInvalidate() on the ListView or something, along with the dataset change notification. Jan 31 18:50:25 [it's the invalidate() call on the listview that actually triggers the eventual call to your adapter.] Jan 31 18:54:22 str8uplinux: not related, but it seems [to me anyway :-)] a possibly confusing to have the array be modified outside the adapter - it's sort of a backdoor handle to data that's theoretically owned by your adapter; and you might find it less stressful to simply delegate all the data manipulation to the adapter, rather than do it to the array directly. Jan 31 18:54:47 [of course, that's not connected to your current issue either.] Jan 31 18:55:46 Hey, I added the support lib v4 to my build path, and now I want to create a activity with swipe views + tile strip navigation. It says that I need sdk version 11 while I'd like to support at least version 10. Jan 31 18:55:58 Is using the support lib the right solution? How do I proceed? Jan 31 18:56:09 (btw, this is my first android app) Jan 31 18:56:54 kbs, so you're saying where i use post.add(map) within my asyncTask? Jan 31 18:57:13 yes Peetz0r Jan 31 18:57:27 you want to use android.support.v4.app.FragmentActivity Jan 31 18:57:38 and android.support.v4.whatever.ViewPager Jan 31 18:57:38 etc Jan 31 18:57:48 So I cannot use the presets which eclipse is giving me? Jan 31 18:58:13 str8uplinux: yes -- my 0.02 is -- don't keep any reference to the posts object within your Activity. Just have a reference to the adapter object alone, and make changes via the adapter. Jan 31 18:58:17 but I can get the same result by doing it manually using those classes? Jan 31 18:59:25 or just change the minimum to 11, use the presets, add ".support.v4" somewhere, change the minimum back to 8, test it (right?) Jan 31 18:59:46 str8uplinux: ie - let the adapter actually be an adapter to the data :-) again, this is just a programming idiom thought; and is unrelated to your current problem. Jan 31 18:59:49 (now I feel the urge to dualboot CM7 and CM9 on my phone :p Jan 31 19:00:16 I don't like testing on emulators (slow hardware), and I have only android 4.0 devices here Jan 31 19:00:40 kbs, I am always willing to do things the right way. I am extremely new to android/java, so I am unsure a lot of the times. Do you have an example on how to accomplish this? Jan 31 19:00:43 and I should test at least one 2.3 device (sinde 2.3 is still the most widely used version out there) Jan 31 19:01:26 hmm, my mom has an 2.3 device... Bad idea :D Jan 31 19:02:10 str8uplinux: um, just... remove the posts object from the Activity. Wherever you are currently making changes to the posts object (posts.add() posts.clear() etc) provide methods in your customadapter instead, which does that thing. Call methods in the customadapter in place of posts.foo() Jan 31 19:02:20 Don't invalidate the ListView.. Jan 31 19:02:31 same on my tablet. GCM Retry receiver class not set yet and i dont get any messages .. its annoying. same code works on my Galaxy S3. Jan 31 19:02:46 Invalidate doesn't even make it re-layout its child views Jan 31 19:02:48 kbs, thanks. That makes sense. Jan 31 19:03:37 Can I pass a bundle of extras on a search invoked by a searchwidget? Jan 31 19:05:21 hmmz, maybe I can even use a MasterDetailFlow now. Lemme try it :) Jan 31 19:05:37 I'll do the support stuff somewhere in the future then Jan 31 19:05:54 * Peetz0r bu,ps up the minimum version to 12 Jan 31 19:06:00 bumps* Jan 31 19:11:44 xorgate: its a custom class, not a an inherited android object, its created in code, and instanciated in code. How can I use findviewbyid on that? Jan 31 19:11:57 oh Jan 31 19:11:58 i get it Jan 31 19:11:59 shinkamui: pass in the view Jan 31 19:12:42 ._. Jan 31 19:13:01 findviewbyid(resource).ObjectNameOfClassInstance.Method? Jan 31 19:13:28 naah, that wont work, nevermind Jan 31 19:13:33 shinkamui: you can't be serious Jan 31 19:13:39 heh Jan 31 19:14:15 i don't even Jan 31 19:14:22 shinkamui: does it extend view? yes/no Jan 31 19:14:25 if yes, you are done. Jan 31 19:14:27 no Jan 31 19:14:36 if no, you cannot have it in your layout. Jan 31 19:14:37 its a class that doesn't inherit from anything Jan 31 19:14:38 GOTO 10 Jan 31 19:15:40 its a class I made to represent an object that Im drawing manually. It has a few private vars for location coordinates, and some other metadata I need Jan 31 19:15:49 cool story Jan 31 19:15:53 I dont know how I'd sent it into my custom ViewClass Jan 31 19:15:59 you still can't use it in your layout if it doesn't extend View Jan 31 19:16:00 thats what Im trying to get access to Jan 31 19:16:33 I don't understand what the problem is. Have your class extend view. The end. Jan 31 19:16:37 evanc: still no ideas on why post.clear(); doesn't get called until the second time i click it? Jan 31 19:16:42 Either do that or put it in a class that extends view and have that class reference and use it. Jan 31 19:16:56 but the point is, you can't have anything that doesn't exend View in your layout. Jan 31 19:16:59 period. Jan 31 19:17:03 there's no clever way to hack around this Jan 31 19:17:24 got it, i should just define the objects and initialize them in the custom view class instead of the activity Jan 31 19:17:26 str8uplinux: no, but you really need to fix how you handle menu clicks Jan 31 19:17:31 ill do that, thanks lov Jan 31 19:17:31 possibly Jan 31 19:18:04 evanc: i actually tried to do it with item.getId(), but both id's return 0 Jan 31 19:18:26 i am using ActionBarSherlock Jan 31 19:18:42 str8uplinux: are you setting IDs on the menu items? Jan 31 19:18:55 in XML or wherever you're building the menu Jan 31 19:19:24 shinkamui: Frankly, you should look at http://developer.android.com/training/custom-views/index.html before you do anything else Jan 31 19:19:52 str8uplinux: oh you're building the menu items with menu.add("Refresh"). Don't do that :P At a minimum, set an ID Jan 31 19:20:41 yeah, how do i set an id when using menu.add? Jan 31 19:21:21 Find an add method that takes an id Jan 31 19:22:21 str8uplinux: add(int,int,int,CharSequence) Jan 31 19:24:13 I run eclipse on my laptop. My phone and tablet are connected to that laptop. Next to the laptop is a desktop. I want to run one (maybe more) AVD on my desktop, and run my projects from eclipse there as well. Is this possible? Jan 31 19:24:34 In other words, controlling avd's over the network Jan 31 19:26:11 Peetz0r: I THINK that adb works over IP with some sort of magic voodoo but I don't know how Jan 31 19:27:29 adb connect ip:socket but the avd has to be listening Jan 31 19:28:01 socket/port* Jan 31 19:28:30 appel1: you still here? Jan 31 19:29:21 i know google offers an API for several of their services. For example, Google Tasks Jan 31 19:29:38 appel1: instead of putting the variables into hashtable, I started by putting the notification into an IntentService instead, and that actually fixed everything and I didn't need to use hashtable :) Jan 31 19:29:42 do they have one available for Music? Jan 31 19:30:27 RustyShackleford: afaik, no Jan 31 19:30:28 lov: thanks, once I changed the way I was looking at it, everything fell into place Jan 31 19:30:35 I'd like to access a Google Music account with a different player Jan 31 19:30:43 I just created a reference class to the view, and I can use the public methods from there Jan 31 19:31:04 moved all the inits and such into the view class, since thats where the meat of that data is needed anyway Jan 31 19:31:35 reference object, pardon that Jan 31 19:31:36 shinkamui: \o/ Jan 31 19:31:47 Unless you have a reason to keep it, I'd just move everything into your view subclass Jan 31 19:32:46 well as you can tell im very new to android coding, but I thought that listners could only be implemented by an activity Jan 31 19:32:54 onclicklisteners anyway Jan 31 19:33:04 no, they're just interfaces. Jan 31 19:33:15 That said, don't forget to unregister your listener when you're done with that view. Jan 31 19:33:28 hmm, I have a lot of reading to do Jan 31 19:34:02 If you're new to Java too, try heading over to ##java and asking for some help getting set up with learning Java. Jan 31 19:34:13 Just don't mention that your problems have to do with Android (unless they actually do) Jan 31 19:34:22 lol Jan 31 19:34:51 well, my java is really rusty, haven't looked at it since 2003 Jan 31 19:35:40 im getting back in teh swing, just need to get some more code samples and a few more explanations, to put it all together Jan 31 19:35:43 yeah, you're gonna need to fix that. Jan 31 19:35:48 this makes a hell of a lot more sense than it did 2 hours ago Jan 31 19:35:49 :) Jan 31 19:36:25 hooray Jan 31 19:36:54 thanks for your help, Ill keep working at it and reading Jan 31 19:37:10 Anyone use the Eclipse bundled with ADT? I got a weird problem with the code formatter, wondered if someone knows the rule that's causing this -> Hi, having trouble with Eclipse code formatter. Anyone know what setting is causing this? http://i50.tinypic.com/2lnh9iq.png Jan 31 19:43:36 wow, creating a AVD is enough to freeze up music playback here :p Jan 31 19:44:32 time for a new machine? probably yes, but lemme write that killer app first, then sell it to google for $2 billion, then buy a new pc :D Jan 31 19:47:11 evanc: better? http://privatepaste.com/e418c3b1c8 :P Jan 31 19:47:18 :D Jan 31 19:47:29 Peetz0r nice :D Jan 31 19:50:24 Hey, I need something to dream about, right :p Jan 31 19:51:43 hahahaha Jan 31 19:51:48 Peetz0r, I get music freezes while switching between tabs in eclipse. Be happy Jan 31 19:51:51 http://www.findmebyip.com/litmus The IE :D Jan 31 19:52:08 I don't run eclipse and music on the same machine :D Jan 31 19:52:36 u guys need new pcs :D Jan 31 19:52:57 meh, my laptop is fairly new Jan 31 19:53:11 My music lags when I compile ;/ Jan 31 19:53:13 and my desktop has had its share of upgrades Jan 31 19:53:55 but the main reason I run music on another machine is because my desktop has an awesome amp+speakers hooked up to it :) Jan 31 19:54:11 I'd run music on my laptop whenever I am somewhere else Jan 31 19:54:35 (my laptop is also the backup for my music collection) Jan 31 19:54:53 same on my tablet. GCM Retry receiver class not set yet and i dont get any messages .. its annoying. same code works on my Galaxy S3. Any idea? I get a registrationID but dont receive data Jan 31 19:59:23 hey folks, was looking to make a layout where there was a full-screen view with a small dialog box floating over it, does anyone have any suggestions? Jan 31 19:59:45 My emulator doesn't want to boot. Blank screen. No terminal output. It's a gingerbread AVD on a linux host Jan 31 20:00:17 mkjackson, can't you use a dialog fragment http://developer.android.com/reference/android/app/DialogFragment.html Jan 31 20:00:42 Peetz0r, where are you starting it from? Jan 31 20:01:37 peter@kijkdoos ~/android-sdk-linux/tools $ ./emulator -avd Ginger Jan 31 20:01:55 danada: ty Jan 31 20:02:30 Is that emulator running? Perhaps a lost process somewhere? Jan 31 20:02:51 I just tried it 3 times, it never boots at all Jan 31 20:02:55 how can I from my BroadcastReceiver MyReceiver cancel the timer here? http://pastebin.com/SVFhhtct Jan 31 20:03:13 but the process is listening on ports 5554 and 5555 anyway Jan 31 20:03:34 and also stop the notification Jan 31 20:03:40 hmmz, adb shell gives me a working shell Jan 31 20:04:03 lemme try and disable 'use host gpu'... Jan 31 20:04:56 ah, I see something now :) Jan 31 20:05:47 so I found a bug, using host gpu is broken. My gpu is an onboard Intel G31 Jan 31 20:07:45 I don't think it's a bug Peetz0r Jan 31 20:07:59 You need to use api level 17 iirc Jan 31 20:08:22 15* Jan 31 20:08:36 ah. Then it could have informed me, and then that's the bug. Much more minor, but still a bug Jan 31 20:10:25 I´m using setTag( position ) and getTag() to carry an item´s position in a ListView over to its onClick() method... does that sound too dirty? Jan 31 20:11:17 I need to know the item´s position in order to change the matching data in the arraylist that I added to the adapter class Jan 31 20:11:47 (of type BaseAdapter) Jan 31 20:13:28 Joozey_, use an OnItemClickListener Jan 31 20:13:40 You can get the position of the clicked list item Jan 31 20:14:46 Oh badass, why wasn´t this covered by the bunch of tutorials I searched through Jan 31 20:15:07 I think it's handled in the ListView guide on the Android docs Jan 31 20:15:53 (http://developer.android.com/guide/topics/ui/layout/listview.html) Jan 31 20:18:23 * speeder shakes fist at his mac that shut downs internet when power save kicks in Jan 31 20:18:24 it´s not covered there right? Jan 31 20:18:59 It´s in AdapterView though Jan 31 20:24:47 Joozey_, at the bottom of that page it has onListItemClick Jan 31 20:26:21 Ooh okay, I was searching for set/onItemClickListener Jan 31 20:26:43 Keep in mind, that activity is a ListActivity and must implement some of those methods. If you just have a ListView, then you set an OnItemClickListener and implement those methods inside of the new onItemClickListener Jan 31 20:27:47 Yeah I let the BaseAdapter implement the OnItemClickListener, since this class maintains the model Jan 31 20:28:37 Can someone bounty my SO question? <3 ;_; Jan 31 20:30:17 can someone help me to understand the HeadlinesFragment.java file? Jan 31 20:31:02 Okay, I have setup some ssh tunnels, and now adb devices on the eclipse laptop shows my two physical devices and my avd on the other machine Jan 31 20:31:25 also, I can control the avd from the ddms-thing in eclipse Jan 31 20:31:33 but I cannot run my project on the avd Jan 31 20:31:48 it's not listen in the run configuration thing Jan 31 20:31:51 listed* Jan 31 20:33:35 same on my tablet. GCM Retry receiver class not set yet and i dont get any messages .. its annoying. same code works on my Galaxy S3. Any idea? I get a registrationID but dont receive data Jan 31 20:37:48 Hi, I am trying to get a custom ArrayList to work with my BaseExpandableListAdapter, but I can get my head around a good solution. I described the issue in more detail over at stackoverflow (http://stackoverflow.com/q/14630966/1304308). Any pointers would be much appreciated :) Jan 31 20:45:48 I'm not an android developer YET, but was wondering if there is a way to develop with ruby? Maybe jRuby? And is this an inferior option, or an equally good option as Java? Jan 31 20:46:21 java is the first choice Jan 31 20:46:52 g00s: I figured. Could you tell me the major reasons? Jan 31 20:47:46 i'm not sure why they chose java at the time Jan 31 20:49:19 Swiftwork, you'll need to extend an adapter Jan 31 20:51:39 benlieb: I believe it's possible Jan 31 20:51:50 since ruby compiles to java bytecode Jan 31 20:51:58 Did anyone extracted the ViewPager code from the v4 support library to replace all compat classes (mostly android.support.v4.app.Fragment*) with their real counterpart in android.app (on API 14+) ? In short, when compat is not needed, can ViewPager be made to work with android.app.Fragment ? Jan 31 20:52:29 pff, ofcourse onItemClickListener doesn´t listen to childs of a custom view listitem Jan 31 20:52:40 that would be all too easy Jan 31 20:53:11 Joozey_, I think all you have to do is make those children not clickable Jan 31 20:53:28 uh... but then will the checkbutton still respond? Jan 31 20:53:32 checkbox Jan 31 20:53:49 all the children except that one :P Jan 31 20:54:06 what is the point of the OnHeadlineSelectedListener interface? http://pastebin.com/5vZ4bx64 Jan 31 20:54:33 I got the feeling this is not going to work Jan 31 20:55:50 nope, clickable or not, doesn´t respond, but it does when I load a textview in the list Jan 31 20:56:06 my custom view is a linearlayout with a textview and a checkbox Jan 31 20:59:24 how can I from my BroadcastReceiver MyReceiver cancel the timer here, and also stop the notification? http://pastebin.com/SVFhhtct Jan 31 21:09:04 Quacked: Handler#removeCallbacks(Runnable) and NotificationManager#cancel(int) Jan 31 21:13:08 just a note: on winxp 32bit dualcore+3GBram AVD takes about 3mins to start and on win8x64 quadcore+8GBram AVD takes almost 11mins.\ Jan 31 21:13:08 something with jquery: maybe somebody know this: i want to add in item after the tenth item of p, any idea how to do that? Jan 31 21:13:42 my avd needs about 1 - 2 minutes so wtf are u doing... Jan 31 21:14:18 Styler2go, get the 10th element then use .after() to insert an element after Jan 31 21:14:30 yes. but how can i get the tenth Jan 31 21:14:39 i tried lt(10).after but that failed... Jan 31 21:14:57 var info = $("#info"); $("#info").remove(); $("p:lt(10)").after(info) was my code Jan 31 21:15:17 first i save the info, then i remove it and want to readd it at the tenth position of p Jan 31 21:15:59 use the :eq(n) selector Jan 31 21:16:21 oh damn Jan 31 21:16:29 i forgot about that... Jan 31 21:16:52 semms to work.. thanks :) Jan 31 21:17:23 styler system specs? for AVD Jan 31 21:18:07 win8 i7 8gb, working on a ssd... Jan 31 21:19:24 win8 amdx4@1.7, 8gbRam 750gb. Jan 31 21:19:55 maybe because of processor, or maybe because of ssd Jan 31 21:20:04 Are you using snapshots, jerry_l? Jan 31 21:20:09 Both, probably. Jan 31 21:20:21 Wish I could Jan 31 21:20:29 i cjust used a stopwatch, exactly 1 min and 4 sec :D Jan 31 21:20:29 Wish I could use snapshots, but I use GPU acceleration Jan 31 21:20:53 proc runs at 1-5% while the mem usage increases 10-30kbs per sec. Jan 31 21:21:07 but... do oyu guys know bluestacks? why is this shit so fast and the emulator sooo slow? :( Jan 31 21:21:20 snapshot option is grayed out.. :( Jan 31 21:21:24 Styler2go: because the emulator is an emulator Jan 31 21:21:35 (gasp!) Jan 31 21:21:37 and bluestacks should be an emulator too Jan 31 21:21:42 what else? Jan 31 21:21:47 it's not emulating anything, afaik Jan 31 21:21:48 danada, seems to be a bug, the non-responsive custom xml items on clicking in a listview: http://code.google.com/p/android/issues/detail?id=3414 Jan 31 21:22:04 I thought bluestacks was an x86 environment Jan 31 21:22:18 and it was focusable that needed to be false for all children in the listview Jan 31 21:22:21 i am emulating a 32bit program to emulate another OS.. :-) Jan 31 21:22:28 so.. it does not emulate andorid but uses android? :-/ Jan 31 21:22:33 if they are unclickable in the first place... Jan 31 21:22:55 Joozey_, did you try the blocksDescendants solution? Jan 31 21:23:08 no Jan 31 21:23:19 Styler2go: the emulator is emulating an ARM architecture on an x86 architecture. Of course it's going to be slower. Android is just a runtime Jan 31 21:24:00 oh it´s proposed in that link too Jan 31 21:24:11 does bluestacks support bluetooth ? Jan 31 21:24:26 and... bluestacks uses x86? Jan 31 21:24:58 open a terminal emulator app, type 'uname -a', and you'll find out Jan 31 21:25:16 lets try it Jan 31 21:25:24 w8 a sec... Jan 31 21:26:30 hmm, oracle stopping jse 6 security updates next month … can we use jdk 7 yet ? Jan 31 21:26:43 i only use java for android Jan 31 21:28:10 (with java 6 compat) Jan 31 21:28:17 I want jkd7 to use strings in switch statement slol Jan 31 21:28:46 well, we can forget about that for now .. i just want to know if i can replace my jdk 6 w jdk 7 Jan 31 21:29:08 using java 6 features compatible with android, but a supported jdk Jan 31 21:29:46 Is there a consistent icon to point to google maps? Jan 31 21:29:50 strings in a switch statement just get translated to a bunch of if/else so it should work Jan 31 21:29:51 which I can use in my apps? Jan 31 21:30:06 good evening.Does somone know tegra3 realy good?Question is how to OC the goup from this sources? Jan 31 21:30:10 Yup Jake, I was just being a little cynical Jan 31 21:30:31 danada: i want java 8 and closures :) Jan 31 21:30:45 https://github.com/CyanogenMod/android_kernel_acer_t30/blob/cm-10.1/arch/arm/mach-tegra/tegra3_dvfs.c Jan 31 21:30:46 nio.2 , new date time libraries, fork/join, etc Jan 31 21:30:52 See you next decade, g00s Jan 31 21:30:58 hehe Jan 31 21:31:00 more like never Jan 31 21:31:06 Can someone explain this? http://i.imgur.com/ZBKzrR5.png Jan 31 21:31:08 Could somone help me to OC the gpu ? Jan 31 21:31:27 danada: maybe they will switch us to dart or go before then :P Jan 31 21:32:24 On the left: Eclipse => Window => Android Virtual Device Manager; on the right: Eclipse => Window => Android SDK Manager => Tools => Manage AVD's Jan 31 21:32:36 Make it like BB, program in java, c++, html5, sign language, potatoes Jan 31 21:32:55 you can use potatoes ? Jan 31 21:33:29 Yeah, and they'll pay you to port other vegetables too Jan 31 21:33:38 Kale FTW ! Jan 31 21:33:44 I cannot select API Level 10 when creating a new AVD using Eclipse => Window => Android Virtual Device Manager Jan 31 21:33:50 but I have it installed Jan 31 21:34:48 Peetz0r: does the ADT have the right path ? Jan 31 21:35:12 path to the SDK, that is Jan 31 21:35:35 I suppose, I downloaded the whole bundle from google's site, and it mostly works fine Jan 31 21:36:02 nuke you ~/.android dir, recreate the avds Jan 31 21:36:13 restarting eclipse worked ;) Jan 31 21:36:19 lol Jan 31 21:36:40 yeah, reminds me of 'have you tried turning it off and on again' Jan 31 21:36:50 which is kinda sad actually Jan 31 21:37:05 Hello! I am trying to draw in surface view. i use drawARGB. and if i set to layots background this color - on screen they looking different. Jan 31 21:38:39 danada, same problem as manually putting all children to focusable false Jan 31 21:39:06 clickable childs will steal the click event from the listener of the listvieww Jan 31 21:39:30 Ah, my AVD works beatifully now Jan 31 21:39:42 (e.g. my app crashes as expected :D) Jan 31 21:39:42 as is natural; children are natural thieves and will take anything that isn't nailed down Jan 31 21:39:59 I've imported a large project into Eclipse with pretty great success, but I'm still getting a warning saying "Failed to run com.android.ide.eclipse.adt.internal.build.AidlProcessor." ~ Google doesn't seem to have anything good for this; ideas? Jan 31 21:40:14 s/warning/error/ Jan 31 21:40:39 Try restarting eclipse and cleaning the project Jan 31 21:40:39 switchgott: #android-root Jan 31 21:40:51 In that order? Jan 31 21:41:32 lov: children are pretty brutal too :P Jan 31 21:41:38 Jeaye, not sure it matters, just fixes weird issues some times Jan 31 21:41:40 lol Jan 31 21:42:07 I'll point out that I'm not actually using whatever Eclipse's build system it; I'm just calling out to our own build script, since we've a very non-trivial build setup. Jan 31 21:43:02 Going to link to my problem on SO before I head out. If anyone has any ideas, I will <3 you forever : http://stackoverflow.com/questions/14597229/how-do-i-pass-extra-variables-during-a-search-invoked-by-a-searchview-widget Jan 31 21:46:48 huh, oracle's auto-update completely replaces java 6 with 7? Jan 31 21:48:36 danada: Restarted Eclipse. Takes about 10min to rebuild clean though. -_- Jan 31 21:49:39 dang, this last comment by Dean Schulze is scathing … i love it :| http://www.infoq.com/news/2013/01/jdk6-retirement Jan 31 21:50:09 so i'm betting a lot of people will start having problems with their android toolchain doing weird stuff Jan 31 21:51:16 danada: Still shows up after a clean and restart. -_- Jan 31 21:54:09 developer.android.com is timing out Jan 31 21:54:13 herp Jan 31 21:54:33 use your locally installed docs :) Jan 31 21:54:38 without search :( Jan 31 21:56:01 Jeaye, sorry man- not sure what would be causing warning. SO is showing some hits on AidlProcessor though. Stuff about stray folders and strict referencing Jan 31 21:56:31 pragma-: maybe googe's web server just got auto updated from java 7 to 7 :D Jan 31 21:56:35 6 -> 7 Jan 31 21:57:52 Styler2go: does snapshot work on your win8? Jan 31 21:59:57 g00s: google web server written in java? i thought C or C++ Jan 31 22:01:09 Does anyone know of a way to, similar to that of the Google+ and Facebook apps, to have multiple levels of slide of menus? In my case I just want to show some content, however. Jan 31 22:01:27 slide out menus* Jan 31 22:01:32 evanc: yes, removeCallbacks and cancel, but how do I get to them from the receiver? Jan 31 22:01:54 multiple levels of slide out menus? i one level even good :P Jan 31 22:02:10 is this like putting spinners in your spinners ? Jan 31 22:02:11 Basically I would like to bring in a page from the side, and overlay it on top of the current page by about 90%, but be able to do this twice. Jan 31 22:02:53 Yo dawg Jan 31 22:03:02 g00s: Yes, it's a bit excessive but they wont be menus, just more content. Jan 31 22:03:11 jdawes - you can do that with slidingdrawer-inception library Jan 31 22:03:18 I heard you want slide menus in your slide menus Jan 31 22:03:51 pragma- d.android.com is back Jan 31 22:05:32 g00s: Thanks, I'll look into sliding drawers. Does Google have an official method to create the effect of the Google+ app menu? Or is that just a variation of the SlidingDrawer? Jan 31 22:06:16 jdawes: i was not serious; please don't do what you are thinking unless you do some usability testing Jan 31 22:06:52 discoverability will be the first issue, i'm not sure anyone will be looking for the affordance to begin the second level of menu Jan 31 22:07:27 and losing context is the next, since mobile = reduced working memory, increased cognitive load … now there are parts of 3 things on the screen, wtf am i doing kinda thing Jan 31 22:07:45 jdawes, if you just want to page through content, you can use fragments Jan 31 22:09:54 nice, "Error: Server Error -- The server encountered an error and could not complete your request" for developer.android.com Jan 31 22:10:10 not even a google error page, an actual server error Jan 31 22:10:51 hmm, my onTouchEvent override only seems to get called the first time a touch event is registered in my view, im literally just taking the event.getX and getY and assigning them to a square's coordinates to draw on the screen, but its not moving as I drag my finger, only drawing where I let go (I call invalidate on the view after the coordinates change) Jan 31 22:11:15 what am I missing Jan 31 22:11:42 is e.getX and Y only returning the original touch coordinate? Jan 31 22:12:27 I think you need to use onDragEvent Jan 31 22:12:31 or whatever it is called Jan 31 22:18:03 Hi, I'm a bit confused here (looking at some code i cannot find the of again). On a tablet, inside a FragmentActivity (FragmentActivity A), using setContentView() for one Fragment-layout (Fragment A) within onCreate(), how is the other Fragment (Fragment B) "displayed/set" by the OS? Jan 31 22:19:10 Is it something to do with the "values-sw600dp" etc. I am trying to look at http://developer.android.com/training/multiscreen/screensizes.html but it's not available. Jan 31 22:19:32 hello. what is the easiest way to create formatted documents in android ? i have found iText library to create pdf but its not gpl. another option would be to create html files. any other option ? Jan 31 22:21:44 g00s: I know what I'm getting myself into, it's proof of concept for our designer. We're going to see what they think. Jan 31 22:22:04 i hope your designer is a usability guy Jan 31 22:22:14 who cares what he thinks, its what your users think Jan 31 22:22:23 g00s: I'm on a coop for app dev, I don't have much say. Jan 31 22:22:33 data > opinion Jan 31 22:26:59 the Android development tool require java 6 rather than java 7, which one the best version of java 6 for developing Android*? #right now java6 update 38 version from oracle AFAIK the size of the release version trimmed per version by version CMIIW Jan 31 22:27:24 anyone know why as root a binary can find the shard libraries from /system/lib - but running them same program as shell gives: could not load needed library needed ... Jan 31 22:27:54 how can I from my BroadcastReceiver MyReceiver cancel the timer here, and also stop the notification? I don't understand how I can do removeCallbacks on the taskHandler and cancel on the notification. http://pastebin.com/SVFhhtct Jan 31 22:29:12 fishcooker: wut? Jan 31 22:31:18 btw, for anyone that thinks they can use a good pub+sub mechanism across devices, MQTT FTW Jan 31 22:31:31 I sorted out my question on my own. Jan 31 22:31:31 MQTT + protobufs = great win Jan 31 22:31:58 danada, the descendandblock doesn't work, but I decided to go with the ViewHolder pattern where I also store the position of a listitem, and also add it to the tag of the checkbox, then give the checkbox its own checkChanged listener Jan 31 22:31:58 is jdk 6 update 38 is ok for Android Development on eclipse, g00s Jan 31 22:32:03 ? Jan 31 22:32:06 hi g00s o/ Jan 31 22:32:12 fishcooker: yeah, thats fine Jan 31 22:32:18 hi hackkitten :D Jan 31 22:32:36 danada, that seems to work quite ok. I also looked into your problem, no solutions shot through my head though Jan 31 22:32:40 thank g00s, on progress Jan 31 22:32:44 :) Jan 31 22:33:37 Thanks Joozey_ Jan 31 22:34:48 fishcooker: this is the last java 6 update you'll ever see from oracle, enjoy it ! Jan 31 22:35:17 :o Jan 31 22:35:29 * hackkitten mourns the loss of Java for 0.01 ms Jan 31 22:35:31 :D Jan 31 22:36:12 hehe Jan 31 22:36:20 that long hackkitten :) Jan 31 22:37:00 ;) Jan 31 22:38:37 you know me~ Jan 31 22:40:57 evernote won't let me use the app w/o "early registration" … unacceptable Jan 31 22:40:59 nexus 4 out of stock again - that didn't take long Jan 31 22:41:02 how can I execute "taskHandler.removeCallbacks(t);" in IntentService from BroadcastReceiver? Jan 31 22:41:51 nice info g00s: how to switch from java7 to java 6.. ie: how to make sure the eclipse will use java 6 .. because NetB* on my pc using java 7 Jan 31 22:42:59 bankai_ still in stock here in canada Jan 31 22:46:22 anyone? :| **** ENDING LOGGING AT Thu Jan 31 22:46:41 2013 **** BEGIN LOGGING AT Thu Jan 31 22:48:23 2013 Jan 31 22:49:47 jesus I think I may have solved my problem. I'm going to do like everyone else and horde this information to myself if it's correct danada: bah ... stupid google AU Jan 31 22:50:56 danada, well, I put effort in thinking of an alternative creative debug approach for you :( Jan 31 22:51:18 I'm just playing Joozey (; Jan 31 22:51:32 bankai_ I think it became available last in AU, and went out of stock first Jan 31 22:51:37 me too :P Jan 31 22:51:46 thanks loads though for your help, I learned a bunch of new Jan 31 22:51:51 I guess google figured since half your country is under water, the other on fire, that not many people would be thinking about getting a new phone Jan 31 22:52:00 Another question on my learning escapade. I'm launching a set of Fragment's within a FragmentActivity. I want to specifically, based on logic in the Activity, "tell" each Fragment to fetch data from a specific URL/or file. I imagine the fragments being "empty" on starting the application. I observer that example-code generally populate the Fragment ListAdapter inside onCreate(). Should I from the Fragment onCreate() method ask the Activity from where the Jan 31 22:52:00 Fragment should fetch data (e.g. a String with an URI and maybe launch an IntentService inside the Fragment onCreate())? Jan 31 22:52:05 Hey guys, please, can anyone help me? Im taking photos with my app, and I want to overlay them with .png layer (so there is .png picture added to the final photo) before its saved. Jan 31 22:52:15 here´s the code http://pastebin.com/H4kQUTb2 Jan 31 22:52:33 Joozey, I'm a new dev too (: learning never ends Jan 31 22:52:39 danada: yeah ok good point hehehe Jan 31 22:52:40 Or should I send a message to each Fragment from the Activity? Jan 31 22:52:59 I really dont know how to do that Jan 31 22:53:06 have you seen any tutorial for that or something? Jan 31 22:53:17 If so, when in the activity lifecycle can i be sure that each fragment is finished? Jan 31 22:53:21 thanx in advance. Jan 31 22:53:34 joru, have your fragment parse the data Jan 31 22:54:37 Please could someone help me? Jan 31 22:54:49 danada: yes that is my aim and the goal. My question is related to how the communacion between the activiy and the fragments should be .. hmm. . "timed". Jan 31 22:55:07 danada: if you understand what I mean. Jan 31 22:56:39 MetalGuru, I think you'll have to draw both images on a canvas Jan 31 22:56:44 And from there you can save them Jan 31 22:56:56 oh Jan 31 22:57:00 thank you Jan 31 22:57:08 have you seen any sample code for that somewhere? Jan 31 22:57:53 When you create the fragment, you can pass a URI using the constructor Jan 31 22:58:01 danada: I guess the parsing should be done inside the fragments onCreate method. I want to determine and tell, from the Activity, the actual data each fragment should be setup with. Jan 31 22:58:12 MetalGuru http://stackoverflow.com/questions/2174875/android-canvas-to-jpg Jan 31 22:58:34 Yeah joru, do it in the onCreate method. Jan 31 22:58:49 danada: reading the docs it states the constructor should be empty Jan 31 22:59:04 pass it using a bundle, not constructor, sorry my mind is somewhere else Jan 31 22:59:10 yea, im lookin at this right now http://stackoverflow.com/questions/3674441/combining-2-images-overlayed Jan 31 22:59:15 looks like something i have to do Jan 31 22:59:57 but i dont really know how to make it work in my code Jan 31 23:00:19 jesus, i hate this when im lost on the last steps of finalizing the app :D Jan 31 23:01:17 danada: ok, a bundle through the FragmentManager? Jan 31 23:01:17 how do you detect when a bluetooth keyboard's enter key is pressed while an EditText is focused Jan 31 23:02:28 danada: such as fragment.setArguements(new Bundle...) Jan 31 23:02:32 MetalGuru, it will feel that much better once you get it Jan 31 23:02:44 yea but Jan 31 23:02:45 damn Jan 31 23:02:45 :D Jan 31 23:02:47 joru, I haven't worked much with fragments, but I think you're right Jan 31 23:02:57 danada: this is my first attempt at fragments so i'm thinking out aloud Jan 31 23:03:00 im stucked right here for ... well for hours Jan 31 23:03:12 danada: dito :) well i'll see what I can produce from this. Jan 31 23:03:20 danada: thanks for the pointer, i think it'll work. Jan 31 23:03:30 i just dont know how to take my taken picture, then take .png picture from drawable and join it together Jan 31 23:03:32 and save it Jan 31 23:03:40 it must be so simple Jan 31 23:03:43 but still... damn Jan 31 23:10:06 this should be a simple one, why is it that when I'm putting in a picture that is very large and I want it to be scaled to fit on screen that the height of the imageview extends past the height of the scaled image? Jan 31 23:10:07 it seems to have scaled properly in both width and height (the picture was too wide for a Galaxy Nexus screen so it was scaled) but the ImageView leaves two equal sized black bars on the top and bottom of the picture, making the image view large Jan 31 23:10:07 do I have to make taskHandler and t static in order to cancel it from my broadcastreceiver? http://pastebin.com/SVFhhtct Jan 31 23:10:08 i have a textview and a imageview in my relativelayout. the textview is set to alignParentLeft="true" and the imageview is set to alignParentRight="true. but when the text in the textview becomes too long, it writes its text into the partially transparent imageview. is there any way i can tell the textview to only expand till it reaches the imageview, and not further ? Jan 31 23:10:10 hi all.. i have an intent filter like so why do it react to https://www.transifex.com/projects/ also after it reacts to this?? can anyone explain this to me ? Jan 31 23:11:51 MrMaffen, are you bound to a relativelayout? Otherwise I´d use a linearlayout and put a weight of 0.5 on both Jan 31 23:11:56 Jesus Jan 31 23:11:59 so Jan 31 23:12:01 stucked Jan 31 23:12:02 :D Jan 31 23:13:19 danada? are you still here? Jan 31 23:14:27 has anyone played around with RTSP publishing? Jan 31 23:14:37 i'm trying to find a library, if there is one Jan 31 23:17:01 Joozey: but that would cause the textview and the imageview to have the same width. i want the imageview to keep its current size. and if i play with the weights until i find the right amount to make them juts as wide as they are now... it's just dunno. it feels dirty :D Jan 31 23:17:43 Yes, ok Jan 31 23:17:58 MrMaffen: you can put a layout_weight of 0 on the image view, but set it's width to wrap content, then a layout_weight of 1 on the textview but set it's width to 0dp. this will cause the textview to use any space not used by the imageview Jan 31 23:18:35 kevinb: that sounds awesome. i'm gonna try that. ty ! Jan 31 23:19:28 I need to do removeCallbacks on a Handler running in intentservice. Any ideas? Jan 31 23:19:48 kevinb: awesome! that's just what i needed Jan 31 23:20:03 this channel keeps getting better and better :) thanks again Jan 31 23:20:39 Guys please... i would aprecciate this so much Jan 31 23:20:49 if someone coded that part of code for me Jan 31 23:20:58 to join one .png file from drawables Jan 31 23:21:02 with taken photo Jan 31 23:21:16 i have everything else figured out Jan 31 23:21:22 http://pastebin.com/H4kQUTb2 Jan 31 23:21:24 this is the code Jan 31 23:21:51 photo is being saved at about 120th line Jan 31 23:22:07 i think thats where i need to put some code to overlay this photo with my png image Jan 31 23:25:28 I have no experience with camera fiddling, but my guess is that you will need to overlay the image every time the surface changes Jan 31 23:26:28 so after the camera image is drawn upon the surfaceview, grab the canvas and draw the image Jan 31 23:27:15 getHolder().lockCanvas() gives you the canvas from the surface Jan 31 23:28:52 danada: for info, this answers my question quite nicely http://developer.android.com/training/basics/fragments/fragment-ui.html Jan 31 23:29:24 danada: thanks again. bye. Jan 31 23:29:37 thanks joozey Jan 31 23:29:53 i will try to do something with it, but i have no experience with this either Jan 31 23:30:01 so i dont really know what to do Jan 31 23:31:08 try a tutorial with the SurfaceView object, should cover the basics of drawing (shapes and images) to a canvas Jan 31 23:32:03 im still trying to find some sample code on stackoverflow Jan 31 23:32:12 and when it looks like i have just the thing i need Jan 31 23:32:19 i get lost again :D Jan 31 23:32:47 by the way Jan 31 23:33:01 is there any way of placing button in top right corner in linear layout? Jan 31 23:33:23 i guess only in relative hm? Jan 31 23:33:43 yes Jan 31 23:34:31 well at least not so easy in linearlayout Jan 31 23:34:35 gravity="bottom|right" Jan 31 23:34:39 or top|right Jan 31 23:35:55 I think linearlayout doesn´t respond on gravity settings of its children Jan 31 23:37:19 Only vertical linearlayout Jan 31 23:38:50 Is there any way to get an Android device's actual screen size pre API-17? Jan 31 23:38:50 More accurately, I'd like to be able to get a N7's screen size in portrait, even when the device itself is oriented in landscape. Jan 31 23:38:50 Any way to do that? Jan 31 23:39:42 how can I from my BroadcastReceiver MyReceiver cancel the timer here, and also stop the notification? I don't understand how I can do removeCallbacks on the taskHandler and cancel on the notification. http://pastebin.com/SVFhhtct Jan 31 23:40:01 FWJ: doesn't displaymetrics provide enough information? Jan 31 23:40:26 No, because the N7 reports different sizes in landscape / portrait. Jan 31 23:40:28 With it. Jan 31 23:40:45 yeah gravity doesnt work Jan 31 23:41:09 but thanks anyways :) Jan 31 23:41:12 FWJ: really? huh. what numbers are you reading, and what are their values? curious Jan 31 23:41:16 MetalGuru: you broke gravity? I'm sure physicists would love to know how. Jan 31 23:41:29 :) Jan 31 23:41:33 800x1280 in portrait, as you would expect. Jan 31 23:41:43 736x1500 (something) in landscape Jan 31 23:41:57 I ALWAYS need that 800x1280 value, regardless of the device's orientation. Jan 31 23:42:01 hm Jan 31 23:42:05 i cant use relative layout Jan 31 23:42:12 and i need button in top right corner Jan 31 23:42:15 in landscape mode Jan 31 23:42:19 hmmm Jan 31 23:42:19 :D Jan 31 23:42:57 FWJ: interesting, didn't realize that. Just to be clear, what specific fields are you reading from displaymetrics? Jan 31 23:43:24 .widthPixels and .heightPixels Jan 31 23:43:36 This is a known issue, I just wish there was a way (pre API-17) to get the real screen size. Jan 31 23:43:47 Without Display.getRealScreenSize Jan 31 23:43:52 Which… requires API 17. Jan 31 23:44:04 FWJ: I see, thanks for the info Jan 31 23:46:29 My ecplipse project is using its own build script, so Eclipse doesn't know about its apk. How can I get Eclipse to run it in the emulator and on a device? Jan 31 23:46:30 MetalGuru, one solution could be to put a relativelayout in the last field of the linearlayout and go from there Jan 31 23:48:34 I would not go too wild with layouts in layouts in layouts though Jan 31 23:50:47 omg, nothing´s working for me with the image overlaying Jan 31 23:50:47 damnit Jan 31 23:50:48 and all the sample codes are only overlaying preview from camera Jan 31 23:50:48 not the final taken picture Jan 31 23:50:48 I should have done this a long time ago: https://github.com/pragma-/networklog/commit/6b91c7855839d209ceeb03abcd99e536d4b92d7a Jan 31 23:51:26 yep, i will play with it later, but to be honest, that button thing is the least important problem for me right now Jan 31 23:51:31 its button for taking photo Jan 31 23:51:37 and now it is in bottom left corner Jan 31 23:51:42 i want it in top right Jan 31 23:51:46 but thats not important Jan 31 23:52:12 more important is that my app is not working properly because i cant put those 2 images together, god damnit :D Jan 31 23:52:40 i would really appreciate someone who could code it for me, maybe someone like that will be here tomorrow :D fingers crossed Jan 31 23:52:50 because i´ve never coded something like that before Jan 31 23:52:59 and im lost at mergin those images Jan 31 23:53:25 i can take photo, save it, do basically everything i need except for mergin it with one png image from drawables Jan 31 23:54:36 this is probably something i should use Jan 31 23:54:38 http://stackoverflow.com/questions/2738834/combining-two-png-files-in-android Jan 31 23:54:40 but i dont know how Jan 31 23:55:48 all you need to do is grab the canvas of the surfaceholder Jan 31 23:56:20 and then draw the bitmap as shown in the link you posted :P Jan 31 23:56:42 dude could you please code it? Im really lame... I barely did this code by the tutorials http://pastebin.com/H4kQUTb2 Jan 31 23:56:55 I´m afraid you´ll have to bite through this sour apple yourself Jan 31 23:56:56 i dont know how to grab that photo and the .png image Jan 31 23:57:15 hm :) Jan 31 23:57:30 well at least its challenging :D Jan 31 23:58:13 (bit too much challenging though) Jan 31 23:58:46 sleep and a fresh day sometimes helps :) Jan 31 23:59:00 or a refreshing walk Jan 31 23:59:14 or food Feb 01 00:00:04 or headsmash, facepalm and crying Feb 01 00:00:04 :D Feb 01 00:00:33 yea, I don't get testing. Feb 01 00:00:51 is the app supposed to be running so I could do Run As Junit Android Test on my test project? Feb 01 00:01:09 well, either way it's not passing, it's just an assertion for the fields' existence on screen Feb 01 00:01:17 i just cant figure out the one part of having photo as bottomImage and .png image from drawable as topImage Feb 01 00:01:25 I get the rest of the samplecode and everything Feb 01 00:02:57 you don´t need the top image, only the canvas and the bottom. Use BitmapFactory like he does to grab your image from the res/drawable folder. Feb 01 00:03:27 get the canvas NOT by creating a new one, but from surfaceHolder.lockCanvas() Feb 01 00:03:31 nice, logcat gives me pass and JUnit view gives me failed, lol Feb 01 00:03:42 wait, wait Feb 01 00:03:46 i dont need the top image? Feb 01 00:03:55 i thought .png file will be the top image Feb 01 00:04:09 which code snippet are you talking about? Feb 01 00:04:20 photo will be in the back with some .png things drawn on top of it as the result Feb 01 00:04:29 http://stackoverflow.com/questions/2738834/combining-two-png-files-in-android Feb 01 00:05:00 Sicp: When you begin running the unit tests you always first the get "passed" logcat output. Not sure what exactly it does, it seems to initialize them first or something, not actually run them Feb 01 00:05:10 yes, so you only have one .png, topimage and bottomimage are two .png images Feb 01 00:05:16 And your testcases usually depend on your application, thus starting it themselves. Feb 01 00:05:32 I see Feb 01 00:06:03 oh ok Feb 01 00:06:09 ok I see why they failed Feb 01 00:06:18 well i get this Feb 01 00:06:25 strip your code of all redundant and non-essential code, so you have only a pure test project left with one image loaded, and the camera drawn on the surfaceview Feb 01 00:06:39 i didnt refer to bottomimage as to this Bitmap bottomImage = new BitmapFactory.decodeFile("myFirstPNG.png"); Feb 01 00:06:55 ah, okay Feb 01 00:08:18 well that thing posted on pastebin is basically it, there is just autofocus feature added. What it does is it starts with camera preview, one button for taking picture and .png image over the preview Feb 01 00:08:38 and what it does now is Feb 01 00:08:42 on buttonclick, it takes picture Feb 01 00:08:47 ok, I get assertion failed over the activity instantiation Feb 01 00:08:52 on normal touch anywhere else, it autofocuses Feb 01 00:09:22 what i need it to do is, take picture and merge the .png shown over the preview with the photo Feb 01 00:09:28 don't you do "Yourclass activity1 = getActivity()" and then "assertNotNull(activity1)"? Feb 01 00:10:06 so you actually get the photo with that .png image merged to it like you see it in camera preview inside the app. Feb 01 00:11:22 Sorry for being an idiot, im just starting with android so this is how it looks like :D Feb 01 00:11:38 the code is probably all messy and bad, but it works so... :D Feb 01 00:11:39 how did you display the image in preview inside the app then? Feb 01 00:12:03 I´m also missing the xml Feb 01 00:12:25 wait a second Feb 01 00:13:10 I will post the xml here, second please :) Feb 01 00:13:11 or... Feb 01 00:13:26 well i would post the whole project Feb 01 00:13:33 but i dont know how to do it privately Feb 01 00:14:01 well anyways, gonna post the xml Feb 01 00:14:05 I don´t want the whole project, only the relevant code Feb 01 00:14:30 preview is basicaly done by the surfaceChanged, Created and Destroyed methods Feb 01 00:15:29 xml is not really very important, just one surfaceview inside linearlayout with drawable (that .png) set as background Feb 01 00:15:47 surfaceview id is camerapreview Feb 01 00:16:10 aha Feb 01 00:16:25 so,try to load the bitmap as in the example Feb 01 00:16:25 Btw thanks for helping me out man Feb 01 00:17:03 at the position where you are about to save the photo Feb 01 00:17:24 then, grab the surfaceholder from the surfaceview, like in your constructor Feb 01 00:17:54 call surfaceholder.lockCanvas().drawbitmap(...) and pass the bitmap along that you loaded Feb 01 00:17:59 Sicp: pastebin your testclass mayb Feb 01 00:19:13 is this code Bitmap topImage = new BitmapFactory.decodeFile("picture.png"); really good? Feb 01 00:19:17 because its throwing errors Feb 01 00:19:35 new is nont good Feb 01 00:19:38 not* Feb 01 00:20:05 decodeFile is a static method Feb 01 00:20:17 folks..I have a strange problem from logcat Feb 01 00:20:20 I am repeatedly seeing this Feb 01 00:20:21 02-01 00:17:55.296: D/dalvikvm(5255): GC_CONCURRENT freed 710K, 48% free 3897K/7367K, external 1973K/2108K, paused 4ms+2ms Feb 01 00:20:30 and it cause the app to freeze Feb 01 00:20:36 what does this mean? Feb 01 00:20:43 oh ok Feb 01 00:21:02 but BitmapFactory.decodeFile is still throwing error Feb 01 00:21:08 That would be the garbage collection I assume Feb 01 00:21:17 are you sure that's what's freezing your app? Feb 01 00:21:22 can someone explain what this means ^ Feb 01 00:21:25 oh Feb 01 00:21:26 sorry Feb 01 00:21:27 it works Feb 01 00:21:32 i just didnt save that :D sry Feb 01 00:21:43 ;) Feb 01 00:21:54 ok so bitmap loaded Feb 01 00:21:57 deanclkclk, read what i said Feb 01 00:23:32 this is the code to get surfaceholder or am I lost again? surfaceHolder = surfaceView.getHolder(); Feb 01 00:23:51 yes Feb 01 00:23:58 ok Feb 01 00:24:01 you are not lost ;) Feb 01 00:24:10 well... :D Feb 01 00:24:19 I will describe you the situation Feb 01 00:24:48 your boss demands that you finish this application before tomorrow? Feb 01 00:25:22 sonOfRa: ..why did it say paused 4ms+2ms Feb 01 00:25:29 in the garbage collection? Feb 01 00:25:45 nah Feb 01 00:25:52 Im only 18 years old man :) Feb 01 00:25:59 no boss around yet :D Feb 01 00:26:01 wait Feb 01 00:26:05 1:25AM Feb 01 00:26:09 19 years old then :D Feb 01 00:26:17 it´s your birthday? Feb 01 00:26:18 kakazza, I just saw (after I extended the correct class (ActivityInstrumentationTestCase2)) that the thread of my app gives "No test class found in your target project" Feb 01 00:26:21 yes :D Feb 01 00:26:23 seems like I didn't read enough before I began this Feb 01 00:26:26 Congratulations :) Feb 01 00:26:30 thanks :) Feb 01 00:26:42 and i have finished my college exams Feb 01 00:26:46 and have some free time Feb 01 00:26:54 because new term starts on 18th of february Feb 01 00:26:55 Shouldn´t you spend time with friends and family instead of coding ´till morning light? Feb 01 00:27:08 well Feb 01 00:27:12 deanclkclk because it took a while to collect the garbage. Feb 01 00:27:19 girlfriend is in other city Feb 01 00:27:24 did it repeatedly free 700k? or more? or less? Feb 01 00:27:24 she will come over tomorrow Feb 01 00:27:33 and i will spend whole day with her Feb 01 00:27:36 and then with my family Feb 01 00:27:45 thats why i want to finish this app before i go to sleep :D Feb 01 00:27:49 and this is the last thing Feb 01 00:27:50 more Feb 01 00:27:55 @ sonOfRa Feb 01 00:28:13 *tomorrow actually refers to today, but after sleeping :D Feb 01 00:28:45 garbage collection can take a while Feb 01 00:28:52 btw Feb 01 00:28:54 does your app literally freeze when garbage collection occurs? Feb 01 00:29:16 .drawbitmap() is undefined for the type canvas Feb 01 00:29:42 try camelcase Feb 01 00:29:48 o.O Feb 01 00:29:51 oh Feb 01 00:29:52 :D Feb 01 00:30:27 oh ok Feb 01 00:30:30 everything looks ok Feb 01 00:30:51 now i will just try to save it to internal memory Feb 01 00:30:54 and hope for the best Feb 01 00:31:34 I help you hope Feb 01 00:31:52 forceclose >< Feb 01 00:31:58 wait Feb 01 00:32:31 debug says Feb 01 00:32:42 My ecplipse project is using its own build script, so Eclipse doesn't know about its apk. How can I get Eclipse to run it in the emulator and on a device? Feb 01 00:32:43 Surface type is SURFACE_TYPE_PUSH_BUFFERS Feb 01 00:33:08 wait wait Feb 01 00:33:10 im retarded Feb 01 00:33:12 dismiss this Feb 01 00:33:47 ok Feb 01 00:33:49 fingers crossed Feb 01 00:34:10 ok, same problem Feb 01 00:34:12 hm Feb 01 00:34:50 gonna take out this Feb 01 00:34:55 surfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); Feb 01 00:35:01 ok, forceclose on startup Feb 01 00:35:02 damn Feb 01 00:35:49 but by taking surfaceholder Feb 01 00:36:00 im not actually taking the photo that i take Feb 01 00:36:10 but only the preview image, or am i wrong? Feb 01 00:36:42 im sorry if you´re facepalming and crying right now :D Feb 01 00:38:21 no, I don´t know the ins and outs of the camera either Feb 01 00:38:32 I just know how to draw images on a canvas Feb 01 00:38:33 :P Feb 01 00:38:53 because basically what I think its trying to do right now Feb 01 00:39:03 is take the image from surfaceview Feb 01 00:39:07 which basically is the preview Feb 01 00:39:11 but not the taken image Feb 01 00:43:12 are you still here? :D Feb 01 00:43:17 I think i figured it out Feb 01 00:43:23 BUT Feb 01 00:43:27 theres some error Feb 01 00:43:29 aha! Feb 01 00:43:31 debug throws Feb 01 00:43:37 use Enter, MetalGuru. Feb 01 00:43:38 Immutable bitmap passed to canvas constructor Feb 01 00:49:18 omg thats not normal how hard it is to convert it to mutable Feb 01 00:49:19 damn Feb 01 00:50:41 if it is that hard, question if it´s right to do Feb 01 00:51:19 well but Feb 01 00:51:26 there´s no other way probably Feb 01 00:51:36 there is .isMutable() Feb 01 00:51:41 but only API11 and higher Feb 01 00:51:42 ... Feb 01 00:53:38 wait Feb 01 00:53:39 no Feb 01 00:53:43 its from API1 Feb 01 00:54:00 wait Feb 01 00:54:01 no Feb 01 00:54:03 :D Feb 01 01:03:32 MetalGuru: you have to write your own for older api's Feb 01 01:03:39 there's an example on stack overflow Feb 01 01:04:09 yes, i tried to get around it with doing .copy() but now it throws bitmap size exceeds VM budget... Feb 01 01:04:23 wow, my tablet just rebooted while eclipse was tryong to launch something Feb 01 01:04:33 could you please share link to that? Feb 01 01:05:47 hmmz, it didn't actually reboot, but the process system_server crashed (I think) and it looked like it rebooted Feb 01 01:05:55 awkward Feb 01 01:06:16 ls Feb 01 01:06:19 oops :p Feb 01 01:11:52 MetalGuru, it´s a bit more tricky than I thought, because the camera first needs to be stopped previewing, then you wait until the canvas can be accessed, and then you can write an image to it Feb 01 01:12:15 :) Feb 01 01:12:28 meanwhile I figured something out, im gonna try it just now Feb 01 01:13:27 hm Feb 01 01:13:29 but it doesnt work Feb 01 01:13:30 damn Feb 01 01:14:27 what i basically did was that i placed .png file in one bitmap, camera picture into other one, the camera one was immuvable, so i converted it into movable with this method https://gist.github.com/2004295 Feb 01 01:14:51 but now its throwing nullpointerexception at Canvas Feb 01 01:16:49 Is there a way to create a notification, where the action icons are centered (no text), just using Notification.Builder? Or do I must create my own template and go with RemoteViews? Feb 01 01:17:27 MetalGuru, yeah, I had that too, you need to wait until the canvas is not null Feb 01 01:17:51 how to do that? Feb 01 01:17:58 because the camera occupies the canvas, after stopping the preview it doesn´t guarantee to release the canvas immediately Feb 01 01:18:13 oh, ok Feb 01 01:18:23 is android maven trouble free yet? Last I checked it didnt work at all, but that was few yrs ago. Feb 01 01:19:41 how to wait for canvas? normally set wait() in front of that? Feb 01 01:20:59 hector_salamanca: I don't use it myself, but apparently so. Check out popular projects on github, they all use maven. Github Android App, Actionbarsherlock (or anything by JakeWharton or square for that matter) etc Feb 01 01:21:21 I had no problem importing them into IntelliJ, dependencies were resolved just fine Feb 01 01:21:29 no, I don´t know, surfaceChanged doesn´t seem to respond to it Feb 01 01:21:40 kakazza, cheers Feb 01 01:21:58 You're welcome Feb 01 01:22:11 you could try an asynctask, but I´m not sure if that is correct Feb 01 01:24:36 hm Feb 01 01:24:40 it looks so damn complicated Feb 01 01:24:45 while its so simple operation Feb 01 01:26:30 i have a bad feeling that my immutable to mutable converting method is throwing null Feb 01 01:26:35 is there a way to test it out? Feb 01 01:27:23 Throw an exception before returning null? Will get your attention for sure. Feb 01 01:28:35 if( thing is null ) Log.d( ¨debug¨, ¨yep, it´s null¨ ); Feb 01 01:30:51 time for bed, good luck and don´t forget to sleep! Feb 01 01:34:47 hey guys Feb 01 01:34:52 can I have 2 notifications at once? Feb 01 01:35:57 Sure, just give them different IDs Feb 01 01:39:28 got it Feb 01 01:39:31 thanks Feb 01 02:06:07 hello, I have a question. Which os does google develop their androind applications with? Windows / Linux / Mac ? Feb 01 02:06:34 Anyone having knowledge of OpenCV + Android here..? Feb 01 02:07:05 I won't take more than 2-3 minutes…please revert if anyone here Feb 01 02:11:26 FlyingWookie linux/mac Feb 01 02:11:39 maybe some windows Feb 01 02:11:45 for application level dev Feb 01 02:17:05 I am running freebsd myself, I just needed to know which os I need to buy :) Feb 01 02:17:44 well I guess I do not need to buy linux Feb 01 02:28:45 Yeah, what jug6ernaut said. If you watch the Google I/O videos you see all three major OSs. Feb 01 02:29:53 FlyingWookie: you can use linux in vbox with free quite happily -- that's what i do Feb 01 02:30:07 good to know... just curious where it all started :) Feb 01 02:31:00 bankai_ thank you Feb 01 02:31:10 bankai_: thank you Feb 01 02:54:37 ron_frown: there ? Feb 01 02:55:01 si Feb 01 02:55:40 ron_frown: why are you there? Feb 01 02:55:50 ? Feb 01 02:55:53 why aren't you here? Feb 01 02:55:53 ron_frown: hey, quick q. since i know you guys use ZigBee - are you guys using anything like MQTT ? Feb 01 02:56:17 no Feb 01 02:56:43 I was considering looking at zigbee stuff for a personal project... we use them at ork Feb 01 02:56:51 but we basically abuse the shit out of the tech Feb 01 02:57:48 we got a line on actually building factory robot controllers Feb 01 02:58:40 what are you using for the application layer over ZigBee ? Feb 01 02:58:45 (protocol) Feb 01 02:59:02 I dont know... its not really my project Feb 01 02:59:11 k, thx Feb 01 02:59:13 I wanna say they were just using 802.11 something **** ENDING LOGGING AT Fri Feb 01 02:59:58 2013