**** BEGIN LOGGING AT Fri Nov 23 02:59:59 2012 Nov 23 03:20:08 5 internets for whoever doesn't give a **** about thxgiving Nov 23 03:24:01 fuck black friday, cyber monday too ;) Nov 23 03:24:24 although, it is good to be thankful for what you have :) Nov 23 03:32:21 hello, I have a problem in webview. The javascript scrollTo( 0,0 ) function scrolls to the wrong place. Any ideas or hints what might cause this? Nov 23 03:32:46 I have some fixed elements on the page Nov 23 03:36:58 That field id should reference a TextView in the larger layout resource. From --> http://developer.android.com/reference/android/widget/ArrayAdapter.html Nov 23 03:37:31 whats the "larger layout resource" ? The main.xml or the main.xml of the class ? Nov 23 03:38:13 oh sorry I get it now :) Nov 23 03:44:20 can i use jenkins to build my app, deploy it to several devices, and run the same tests on all these devices? Nov 23 03:46:57 g00s: i do that every day Nov 23 04:13:48 <`-`> does anyone happen to know how to use cryptsetup from an adb root shell to decrypt jelly bean user data while in recovery mode? Nov 23 04:20:59 sweet, adobe is having a 40% off sale on some things Nov 23 04:21:12 ends nov 28 Nov 23 05:02:57 sweet, I can finally buy that copy of Photoshop I've always pirated... Nov 23 05:22:51 as long as you buy it IN THE CLOUD Nov 23 05:23:30 piratebay discount? Nov 23 06:03:01 Hey Guys, Nov 23 06:03:18 Why does the memory size shown by TaskManager and MAT heap analyzer differ Nov 23 06:03:48 as per MAT I'm a really good boy and using just 4MB of memory, but task manager tells me I'm using something in excess of 50MB Nov 23 06:04:07 how do I account for the remaining 46 MB? Nov 23 06:04:08 photoshop is too mainstream Nov 23 06:05:40 pragma-: the hipster troll Nov 23 06:13:03 anyone? Nov 23 06:15:04 could be wrose, could be a javascript hipster: http://hipstergrammers.tumblr.com/ Nov 23 06:18:48 http://25.media.tumblr.com/tumblr_lwvn8xE2ye1r95ui7o1_500.jpg actually Nov 23 06:27:59 hi guys Nov 23 06:34:54 Hey klaudeclaw Nov 23 06:36:50 do I need to know something particular to implement tab navigation in my app? Nov 23 06:37:08 klaudeclaw: besides implementing it? Nov 23 06:37:10 I'm loading example from android sdk and it does not build, it has errors Nov 23 06:37:44 I'm not fluent yet, so maybe I'm missing something Nov 23 06:37:45 klaudeclaw: pastebin errors Nov 23 06:37:57 just starting the eclipse Nov 23 06:38:26 ? Nov 23 06:39:54 I'm creating project using -> new android project and in the wizard I select navigation type -> tabs + swipe Nov 23 06:39:57 and the errors: Nov 23 06:43:29 http://pastebin.com/nxnbEZXR Nov 23 06:43:55 I've tried to add super.[method name] Nov 23 06:44:28 so, you arent gonna post any errors? Nov 23 06:44:36 07:43 < klaudeclaw> http://pastebin.com/nxnbEZXR Nov 23 06:44:49 theres no errors in there.. Nov 23 06:44:53 the error is written on the bottom Nov 23 06:45:10 I'll try to copy paste it from the eclipse Nov 23 06:45:15 Thats not an error, thats just incomprehensible garbage that you wrote Nov 23 06:45:21 ok Nov 23 06:46:29 http://pastebin.com/T5tcBgr1 Nov 23 06:47:12 ok.. so that to me sounds like it doesnt like the @Override annotations, probably because the class they are being defined in isnt extending a class that implements them Nov 23 06:48:07 that is what I do understand Nov 23 06:48:53 pastebin your entire class file Nov 23 06:49:54 http://pastebin.com/1tvrhRAk it's generated/opened by eclipse itself Nov 23 06:50:37 so I wished that it will work out of the box, my target api level is API16, and minium API14 Nov 23 06:51:24 hey guys, ive been googling to no avail. How can I build a quick apk from src? I have a src directory, along with res and the manifest. The usual. Nov 23 06:51:25 uhh.. eclipse didnt generate that Nov 23 06:51:37 I know. Nov 23 06:51:50 Which is why I'm asking for build instructions. Nov 23 06:54:03 therealGent: do you have eclipse, android sdk and adt plugin installed? Nov 23 06:55:39 I would prefer not to use those. But I believe I found what I need. apkbuilder tool. Nov 23 06:55:49 klaudeclaw: I just created a dummy class that implements ActionBar.TabListener and it isnt complaining at me Nov 23 06:57:14 drpenguin: ok, I'll try to write it from scratch, thanks Nov 23 06:57:43 klaudeclaw: change the compiler level to 1.6 Nov 23 07:00:08 klaudeclaw: override annotation wasn't avaialble before java 1.6 Nov 23 07:00:45 yeah, but that does not seems to be a solution Nov 23 07:01:08 the project builds when I delete override annotations, hoewever tabs are not responding Nov 23 07:01:19 http://developer.android.com/intl/zh-TW/reference/android/app/ActionBar.TabListener.html I'll give it a read first Nov 23 07:02:38 apkbuilder doesnt seem to do it. Nov 23 07:02:47 what is the command line util that builds these things? Nov 23 07:03:36 you should have it in android sdk Nov 23 07:04:06 therealGent: ant, but it needs the android sdk Nov 23 07:04:20 f2prateek, I have the android sdk Nov 23 07:04:52 klaudeclaw: project builds but without the override the system doesnt know you have implement those methods Nov 23 07:05:05 klaudeclaw: probably why the tabs didnt respong Nov 23 07:05:09 f2prateek: yes, I know Nov 23 07:05:32 therealGent: then use ant Nov 23 07:08:51 It needs a build.xml f2prateek and when I try using android upate it says project either has no target set or target is invalid Nov 23 07:10:04 therealGent: seems like you're missing that specifc version of the sdk - run the sdk manager and download the target one. Or easier still, use eclipse Nov 23 07:11:07 ok, I've added Toast call in the onTabSelected() callback and it have displayed properly, so the actions seems to work just after removing the @override annotations Nov 23 07:11:25 sdk versions go by a simple number. I'm so confused. What android version is SDK version 10? Nov 23 07:11:37 it says uses sdk minSdkVersion 10 Nov 23 07:12:01 nvm answered my own question Nov 23 07:12:02 so the SectionsPageAdapter usage is wrong in my example Nov 23 07:12:21 klaudeclaw: thats surprising - the sample code generally runs out of the box Nov 23 07:12:33 therealGent: did you read the docs? Nov 23 07:13:40 therealGent: 10 = gingerbread Nov 23 07:14:56 f2prateek, I got it to work by manually specifying it in the command line. I know have an ant error to fix. I need to find the "target name" in the source Nov 23 07:15:36 target "this" does not exist in the project... Nov 23 07:16:34 therealGent: show the command you are executing Nov 23 07:16:41 ant test Nov 23 07:20:02 ant release did the trick... Nov 23 07:21:12 Hello Nov 23 07:22:13 I need some help with full screen video playback on html5 video player eg:- galaxy S3 Nov 23 07:23:34 it does not switch to full screen so i modified a mCustomView in onShowCustom view. This does the trick. But the media player does not stop when back is pressed and playing the video a second time crashes it. Nov 23 07:25:24 can someone please tell me how i can attach a onCompletionListener to the HTML5 VideoView? Nov 23 07:32:21 do all apks you install need to be signed? I'm trying to adb install this apk and its giving me a no certificates error Nov 23 07:34:04 ant debug will give you a apk with a debug certificate Nov 23 07:35:07 therealGent, "ant debug" and "adb install -r bin/Name-debug.apk" Nov 23 07:35:08 hah. and i did release... Nov 23 07:35:28 i think release needs to be signed manually, check the online docs Nov 23 07:36:15 did anyone release an APK today? Nov 23 07:36:23 was scared to release since it was thanksgiving Nov 23 07:38:41 what's scary about releasing on thanksgiving? Nov 23 07:39:00 a flock of turkeys downloading? Nov 23 07:40:59 what apps would turkey's be downloading? Nov 23 07:41:14 the wifi pretty rubbish in my oven Nov 23 07:41:22 *wifi's Nov 23 07:41:30 *turkeys Nov 23 07:42:54 can someone help me with html5 video playback? Nov 23 07:44:27 alex_PP: angry turkey, of course ;) Nov 23 07:44:47 *angry turkeys Nov 23 07:44:48 well.... the thing is Nov 23 07:44:55 there were reports on the best day for release Nov 23 07:45:03 and wednesday is the most popular and thursday was the least popular Nov 23 07:45:20 i figured since it was the holidays there might be a suplus of releases on thursday Nov 23 07:45:49 well yeah, if you apps will be popular and you want a soft launch, maybe this isn't the best time … but i would wager most apps wont be popular anyhow so …. :D Nov 23 07:50:31 i've < 75 installs on both of my personal apps :'( Nov 23 07:50:40 no idea about the comercial stuff Nov 23 07:50:47 me too :( Nov 23 07:51:00 alex_PP, g00s when did you launch? Nov 23 07:51:16 feb 2012 Nov 23 07:51:35 i forget Nov 23 07:51:45 me and time don't get on Nov 23 07:51:59 if you want i can have a look at your apps, maybe i can give some suggestions Nov 23 07:52:24 https://play.google.com/store/apps/developer?id=Alex+Richards Nov 23 07:53:36 they're not very exciting is i suspect the biggest hunderance Nov 23 07:55:14 i launched my first (and yet only) app september 22, ~1700 installs now, but <800 active Nov 23 07:55:33 what is it? Nov 23 07:57:12 https://play.google.com/store/apps/details?id=com.cygery.lichtwecker Nov 23 07:57:38 wide varying ratings :D Nov 23 07:59:22 interesting Nov 23 07:59:35 btw do you own alex.com? Nov 23 07:59:55 developing web applications for the android browser is basically the worst thing ever Nov 23 08:00:34 the emulator is slow, it doesn't have a web inspector like ios has via safari, I can't get thing to respect my hosts /etc/hosts file Nov 23 08:00:36 EPG: you know what would be cool? if you converted that app to a lightshow app :) Nov 23 08:01:46 KaiKai, yeah i already thought about implementing freely configurable sequences with brightness/color changing over time :D Nov 23 08:02:36 but that'd be in far future Nov 23 08:06:31 EPG, no Nov 23 08:07:09 ok, in your app's id you should only use domains you own as a prefix Nov 23 08:07:27 but i doubt a french producer of glass is going to be releasing android apps anytime soon Nov 23 08:07:35 Hello, I've added an onStart() function to my activity, which is causing my app to crash. i see in debug it gets to the onStart() and when function ends it crashes. eclipse throws me into the source not found windows.... Nov 23 08:07:36 i know, i know Nov 23 08:07:50 am i missing something about onStart() ? Nov 23 08:08:12 socket, paste some code Nov 23 08:08:25 wait, im not calling the super... is there a super? Nov 23 08:09:09 err, never mind Nov 23 08:09:28 super.onStart() was missing Nov 23 08:09:33 thanks anyway Nov 23 08:11:29 if you read the stack trace, it should have told your exactly that Nov 23 08:12:44 *you Nov 23 08:15:34 socket, did you read https://developer.android.com/reference/android/app/Activity.html ? Nov 23 08:16:34 EPG: some of it, i had the super.onStart() missing. i got disconnected not sure it got sent. Nov 23 08:17:10 it did Nov 23 08:17:43 alex_PP, concerning your apps, there're many competitors Nov 23 08:19:48 yeah, they're only hobby apps though. Nov 23 08:20:09 although, i couldn't find much like talkative, that's why i write it Nov 23 08:20:15 *wrote Nov 23 08:22:19 but there's a million and one stopwatches, though mine's almost the smallest i've found Nov 23 08:22:32 could be smaller if i dumped the custom font Nov 23 08:22:52 it's always good to practice, I didn't expect so many downloads for my app either Nov 23 08:22:57 but i lost the key for it in a HDD failure, so no more updates for that Nov 23 08:23:34 you're still on package names? Nov 23 08:23:42 hi again Nov 23 08:25:06 is it possible to do flexible layout design, that the activity and content will fill the width or height of the screen? Nov 23 08:25:18 alex_PP, nono, i dont even know what could happen if the owner of a domain would complain Nov 23 08:25:51 when I create layout in eclipse I could only choose from predefined ones or specify my own custom resolution so the layout isn't compatible through different resolution Nov 23 08:25:55 i think i read that it's tough luck for them Nov 23 08:27:00 klaudeclaw, all layouts in android are flexible Nov 23 08:27:22 the layout editor lets you preview at certain resolutions Nov 23 08:27:50 gtg, cu Nov 23 08:28:37 alex_PP: ok, I though that you specify the resolution, however I've installed sample app on my 10" tablet and it was thin, maybe I've misconfigured the layout and set wrong fills/wraps Nov 23 08:32:05 depending on the version support you specify, you may have triggered one of the support modes Nov 23 08:32:36 you mean google.support.v4.something.something ? Nov 23 08:34:38 ok, is it better to send an intent an object or let it do the db dip itself? Nov 23 08:34:52 s/intent/activity/ Nov 23 08:34:57 bo, sometimes tablets run applications differently if they think that they need to Nov 23 08:35:40 thinking that it would be better to send it the dbid, and let it do the dip, instead of implementing parcelable for the object representing the db item. Nov 23 08:36:05 klaudeclaw, https://developer.android.com/guide/practices/screen-compat-mode.html Nov 23 08:36:24 alex_PP: thanks Nov 23 08:37:08 I'll try this at home Nov 23 08:37:39 good morning. someone in here faced the problem to be unable to connect via usb to the phone? on windows it says unable to detect device, on linux device descriptor read/64, error -32 Nov 23 08:38:20 mengine: what device do you use? Nov 23 08:38:39 klaudeclaw, GT-I9100 Nov 23 08:38:58 do you have samsung usb drivers? Nov 23 08:39:15 klaudeclaw, yes. Nov 23 08:39:23 then dunno Nov 23 08:39:31 klaudeclaw, maybe i should mention that i flashed jb 4.1.2 yesterday Nov 23 08:39:38 would anyone happen to know why logcat doesn't show console statements from the browser Nov 23 08:39:53 it's obviously logging stuff when I do things via the browser Nov 23 08:39:57 console logs don't show up though Nov 23 08:40:05 worst internet connection ever.... Nov 23 08:41:00 you hate internets? Nov 23 08:41:15 http://pastebin.com/UPhr6kTX check_updates() does not get called, or it doesnt stop on its break point.... any idea why? Nov 23 08:41:45 socket: are you running in debug mode? Nov 23 08:42:34 yes dblosevn Nov 23 08:45:08 socket: weird your code looks good Nov 23 08:45:37 lol. Nov 23 08:45:52 socket: the only thing I wonder about is if check_update is in the context of run Nov 23 08:46:35 check_update is a public function of the activity Nov 23 08:46:54 im wondering if the runable has its own context though Nov 23 08:47:19 being it runs in another thread its doubtful that its in the context of the activity Nov 23 08:48:29 do you have a solution for that? Nov 23 08:48:38 anyone has tried to implement menu like in youtube app on android? I mean "spherical" or "cylinder" style grid? Nov 23 08:48:55 also does your activity implement runnable? Nov 23 08:49:03 it looks cool, however I think that they have built it themselves Nov 23 08:49:22 public class yourclass Extends Activity Implements Runnable Nov 23 08:50:58 @socket Nov 23 08:51:37 no, it doesnt Nov 23 08:52:13 socket, run is never called Nov 23 08:52:18 no new thread is even created Nov 23 08:52:28 you may as well have called new Object(); Nov 23 08:52:52 your activity must implement Runnable Nov 23 08:53:21 http://pastebin.com/uGNMhZV8 Nov 23 08:53:31 that should work Nov 23 08:53:56 and you should also call .start() lol Nov 23 08:54:21 oh he did call.start() Nov 23 08:54:36 so his code is right his activity just doesnt implement runnable Nov 23 08:54:44 how to turn off internet during avd run (simulation) Nov 23 08:55:10 dblosevn, the activity doesn't need to implemnt runnable Nov 23 08:55:14 unplug your internet? lmao its in the avd options Nov 23 08:55:46 socket, a better idea than a new Thread & Runnable is to use a Loader or AsyncTask Nov 23 08:55:56 http://developer.android.com/reference/java/lang/Runnable.html Nov 23 08:56:08 Starts executing the active part of the class' code. This method is called when a thread is started that has been created with a class which implements Runnable. Nov 23 08:56:42 the activity would need to implement runnable if he write new Thread(this).start() Nov 23 08:57:03 new Runnable(){} creates an annonamouse inner class of type Runnable Nov 23 08:58:59 http://www.cs.rit.edu/~tmh/courses/allJava/Anonymous.html Nov 23 09:04:57 * g00s went to rit :) Nov 23 09:05:29 did your learn about anon inner classes?? Nov 23 09:05:41 they didn't teach that in computer engineering :P Nov 23 09:06:15 it's pretty advanced stuff ;) Nov 23 09:07:55 wow, the MIT website is giving me an aneurysm Nov 23 09:09:58 Hello Nov 23 09:11:50 Hello Nov 23 09:12:29 I'm new to android development, and I'm stuck on something. I'm experimenting with creating new resource values. I created "colors.xml" and "dimens.xml" in my values folder, and created colors and dimens. In my layout, it does not resolve my color properly. My colors.xml file looks like this: http://pastebin.com/ciBgzfiS Nov 23 09:13:27 Here's my dimens.xml file: http://pastebin.com/7JuscJDZ For some reason, when I click on the "Text Size" properties, the Resource Chooser dialog box comes out and lists "big" and "bigger" as my values under "Project resources". but my xml file only lists "big" Nov 23 09:13:53 Artel: how does your reference in the layout file looks like Nov 23 09:13:59 I had a dimen value called "big" in my xml file but it's gone Nov 23 09:14:11 I deleted that line, but the resource manager still displays it as a choice Nov 23 09:14:30 Artel: when you say it doesn't resolve your colour properly... what does it do, how does it fail, is there an error, does everything come up in pink...what? Nov 23 09:14:33 timroes: itl ooks like this: android:textColor="@color/maroon" /> Nov 23 09:15:04 It does not fail, but just doesn't show the color. I also have this message: " '@color\maroon' must start with #" Nov 23 09:15:05 how to turn off internet during avd run (simulation) Nov 23 09:15:14 and "Couldn't resolve resource @color/maroon" Nov 23 09:15:31 sounds like a job for project-> clean Nov 23 09:15:46 eclipse gets it's nickers in a twist easily Nov 23 09:16:01 squ: you can use F8 to turn of networking, but there was a bug, that your emulator sjhows no network, but apps still can send data very fine, i am not sure, if they fixed it already Nov 23 09:17:11 squ: http://code.google.com/p/android/issues/detail?id=3838 it seems not to be fixed Nov 23 09:17:43 alex_PP: thanks. cleaning did the trick. I thought I was just being wrong since I'm new to android dev. this isn't the first time eclipse made me second guess myself Nov 23 09:18:12 cleaning essentially every time you do anything is a good habit... Nov 23 09:19:25 timroes, seems its working fine Nov 23 09:19:31 thank you! Nov 23 09:19:42 okay you went to the browser and tried to load a page? Nov 23 09:20:05 because it actually says you has no connection inside the emulator, but you can still network Nov 23 09:21:25 my app cant POST data Nov 23 09:21:39 its exactly what I wanted Nov 23 09:21:43 okay than they seemed to fix it (at least parts of it, since the bug is still open) Nov 23 09:31:52 guys, you pass objects around to activity as parcelables or just pass dbid and let the activities work it out? Nov 23 09:32:09 dbid? Nov 23 09:32:21 database id Nov 23 09:32:32 oh, well id its in the db, yeah just a url Nov 23 09:32:45 url? Nov 23 09:33:01 dbid ;) Nov 23 09:33:11 if its a content provider, url Nov 23 09:33:31 oh, I ask 'coz there was mention of URL in the intents documentation. Nov 23 09:34:28 cool, yeah then I think the app is almost done. :) activities launching fine. intent it working. startactivityforresult is working. Nov 23 09:38:18 Hey, I'm going to be working on an app which takes key data from wikipedia, i was wondering whether it would be better to have the device connect to wikipedia then do all the parsing itself, or to have the phone connect to my own webserver which would run a shell/perl script and send back the raw data for the phone to use... any thoughts? Nov 23 09:39:05 sp1ral: if you connect to your server, you can prepare the data on your server Nov 23 09:39:17 meaning: you could compress it, strip unnecessary data off Nov 23 09:39:52 but you add an extra failure point. and maintenance point. Nov 23 09:40:08 on the other hand downloading the entire thing to device and parsing might be noticeably slow. Nov 23 09:40:10 will make the data you need to transfer, way smaller. Main disadvantages, I would see: you need to program a server component; and i guess wikipedia has a better and more reliable infrastructure, than you have (if not, grats to yoru infrastructure) Nov 23 09:40:18 shouldn't be tho, if you have 2G ram. Nov 23 09:41:50 also you have to handle on mobile devices unsteady connections, and connection aborts, if you have an own server, you have more freedoms, to make your app stable working, even though to unstable connection Nov 23 09:42:09 i suppose if i make it on a webserver i also have the option of having the same exact tool for pc use Nov 23 09:42:14 so in general if you have the resources to code and maintain the server part, I would recommend to use your own server Nov 23 09:42:18 the wikipedia app is open source; maybe you could just adapt it :| Nov 23 09:42:26 also, if anything on WP changes, if you're preproccessing on your server you can keep up with out a rerelease Nov 23 09:43:14 if they have APIs, that would be best. parsing docs always sucks. Nov 23 09:57:32 hi, when I debug an app does this action wipe the database of the app? Nov 23 09:57:41 I mean, I debug, I make some changes and then debug again Nov 23 09:58:00 is wipped out the db in the second debugging Nov 23 09:58:01 ? Nov 23 09:58:04 if you restart the emulator the sqlite db is gone. Nov 23 09:58:33 it would be in a real device Nov 23 09:59:08 on the real device on mine it stays fine between app updates. Nov 23 10:09:37 Sup folks Nov 23 10:10:28 I've been hanging around this channel for a month now or so, getting help with my various issues... today I have no issues whatsoever, the application works better than expected, with no memory leaks, no weird bugs, no nothing, so just came in to say hi :D Nov 23 10:10:40 hi Tee_Pee :) Nov 23 10:11:05 if the application work better than expected, you have to make harder stress tests :D Nov 23 10:12:51 after avd relaunch, eclipse does not show any avd in the ddms list, how to refresh it? Nov 23 10:12:52 Tee_Pee: if it works that well, you;ve missed something :p Nov 23 10:12:54 thanks for the info johny-b-goode :) Nov 23 10:13:12 Anoia - I know, there ARE bugs, just not critical ones :p Nov 23 10:13:33 when taking a photo, the scroll position in the current album still resets, which is annoying. Nov 23 10:14:09 but the critical bugs, related to downloading and displaying of the images, syncing up with new / deleted albums and images from the server Nov 23 10:14:14 those are gone (I think) Nov 23 10:30:18 Tee_Pee, what's your app? Nov 23 10:35:12 I'm using joda-time in my project and it's very slow to initialize. Topic on stackowerflow didn't help to speed it up. I need in my app only local time, is there any way to disable time zones at all? Nov 23 10:37:16 can you go back to default Date and Calendar? Nov 23 10:38:29 Udmurt: I'm missing the link between slowness -> disable time zones Nov 23 10:38:56 joda slow because it initializes the time zone database Nov 23 10:39:20 it takes up to 7 seconds, it's too much Nov 23 10:39:39 alex_PP - mobile version of www.pycsell.com Nov 23 10:40:20 http://stackoverflow.com/questions/5059663/android-java-joda-date-is-slow <-- there are a few related threads, and each one with posts providing a different solution Nov 23 10:40:22 in my app I use only LocalDate* so I don't need timezones, I think Nov 23 10:40:44 fuck, so many typos on that slideshow Nov 23 10:41:42 "Joda-Time is designed for long running enterprise systems where a one-off up front load time is irrelevant compared to the faster performance during the rest of the application." <-- not meant for mobile? Nov 23 10:42:30 SuD, I read it and tested some solutions, but none works for me Nov 23 10:43:56 Even tried to load only one current time-zone, but joda fails to load Nov 23 10:44:12 adq: yeah, actually. I have 9 voices (3 slightly detuned sets of 3 harmonics) and it sounds just like and electric organ Nov 23 10:44:19 *an Nov 23 10:44:28 also, http://www.date4j.net/ (someone suggested) Nov 23 10:45:02 I have the keys set up to play and light up the closest key when you play on the keys, but there is also a slider pad and still an option to enable the magnometer to play it like a theremin Nov 23 10:45:29 now I am looking at using the ndk to hopefully get slightly less latency Nov 23 10:45:41 since AudioTrack seems to buffer a little Nov 23 10:45:43 Date4j don't support partial dates, and I need it date without year, so I choose joda Nov 23 10:48:34 I think there way to load only minimal time zones plus one current, but what a "minimal Nov 23 10:52:28 some people even suggest to dig into the code and make a custom build of the library Nov 23 10:53:54 Hello guys, my mainactivity must run in portrait mode, I set that in the Manifest file. However, when I launch a camera app and return to my main activity, it creates my main activity first as horizontal mode and than recreates it in portrait mode. Is this a bug on Samsung devices? Nov 23 10:55:34 it does look like a bug, i don't know on what phones it may happen Nov 23 10:56:14 probably all you can do is idle when launched in portrait mode, waiting for the landscape Nov 23 10:57:07 What happens is, I show a dialog in onActivityResult(), but short after that, the main activity recreates the main activity on the right mode (portrait) and my dialog window leaks (that's the error I see according to the logging). Nov 23 10:58:13 Number5, can you post your manifest? Nov 23 10:59:00 SuD, thnx, but that's an ugly workaround, so what I have to do is check whether it's protrait or landscape and cache the data, when rebuild check if there is some cache data and than fire the dialog :( Nov 23 10:59:09 EPG, one moment Nov 23 11:02:58 EPG: http://pastebin.com/R04M8Bxu Nov 23 11:04:32 By the way, I don't have this issue on HTC Sensation Nov 23 11:05:17 on which device does it occur? Nov 23 11:05:45 Samsung S+ if I'm correct, I'll check its code Nov 23 11:05:47 Number5: i have to fix the dialog thing myself now, leaking. I haven't found a cute way to destroy my progressdialogs. For one thing the previous guy who built this, had to show the dialogs from a thread or in some alternative method, else android complains - guessing it either keeps up the UI or main thread. In any case, trying to kill it onStop or so, it still leaks. Nov 23 11:06:03 Number5: I'm also on sensation, but have an array of devices here. Nov 23 11:06:06 Samsung GT-I9001 Nov 23 11:07:10 Number5: what I'm gonna do is style a dialogfragment or something to look like progresdialg. The API documentation actually advises against the user of progressdialog. As for alerts, maybe try and see of just onStop(){ mDialog.dismiss(); ... } doesn't sollve it. Nov 23 11:07:12 can anyone point me in the right direction for dual fragments using the support library? Nov 23 11:07:38 DysonReturns, I guess Android implementation on Samsung devices are not properly built. I often thought the problems were on my side, but those big companies make mistakes too :S Nov 23 11:07:45 Number5, did you try android:configChanges="orientation|keyboardHidden" ? Nov 23 11:08:40 EPG, what does this by the way, I've seen this setting before, but I forgot Nov 23 11:09:02 it tells the system that you handle these changes yourself Nov 23 11:09:11 monkyfoniks, I think that's basic, just look for docs and tutorials on the net Nov 23 11:09:28 Number5: samsung has quite the few issues. I know :/ Nov 23 11:10:57 EPG, well that's exactly I don't want to do, cause my code is kind of out of control, to handle orientation changes properly I have to start all over again. Handling orientation means you have to cache all necessary data... Nov 23 11:11:55 DysonReturns, yes, like passing a filepath to the camera app instead of the other way around. Nov 23 11:12:01 timroes, any ideas how to simulate slow answer from http? Nov 23 11:12:31 squ: if you have your own server, create a delay in the server, before it sends the response Nov 23 11:12:48 EPG, thank you for your help, guys thank you all. I guess I have to do another ugly workaround specific for Samung again. Nov 23 11:13:22 also with ddms you can set a speed and latency, but the last time i tried it, the emulator just ignores that. (but that time also it ignored switching of the network completly what seems to be fixed now) Nov 23 11:13:31 Number5, with this configChanges options i drive well on samsung s5360 Nov 23 11:16:02 I'm a little confused about OpenGL in Android. How can I get a square to stretch across the whole screen given the screen is essentially a rectangle? Nov 23 11:17:00 timroes, ddms> emulator control has options for Telephony Nov 23 11:17:33 yeah so isn't that essentially what you want to test? how your app behave under slow network conditions? Nov 23 11:17:45 or do you really expect the server to send slow responses? Nov 23 11:20:10 gprs, edte, umts - which is slowest? Nov 23 11:20:18 edge Nov 23 11:20:29 gprs iirc Nov 23 11:20:31 gprs Nov 23 11:21:18 squ: gprs < edge < UMTS < HSDPA Nov 23 11:28:35 I'm building this application that fetches scoring data from an URL. Multiple Activities may ask (eg. button click) for scoring updates. I've placed the updateScoring() method inside my own Application instance. Every Activity that wants to receive scoring update (eg. after clicking a refresh button) have an Observer class defined that receive the Application.updateScoring() response when it's ready. Is this good practice? Nov 23 11:29:16 Bacta: you just set your viewport to 0,0,width, height Nov 23 11:29:18 wanted to generate time-out exception for HttpURLConnection Nov 23 11:29:28 updateScoring() makes use of ASyncTask. Task's onPostExecute notifies all the observers. Nov 23 11:30:02 you just have a rectangular view of a scene Nov 23 11:30:56 hydra__, seems ok Nov 23 11:30:59 timroes, that switching to gprs do not generate time-outs :) Nov 23 11:31:23 squ: yeah as i said, last time i used it, it didn't had any effect on the actual speed of the network Nov 23 11:31:29 (not sure if it is meant to have that) Nov 23 11:31:34 also, gluLookAt uses a width/height ratio Nov 23 11:32:36 squ: if you want to simulate a timeout just open a local server `nc -l ` and connect to that (if you run inside emulator your host system is 10.0.2.2) Nov 23 11:33:13 Remember what I said about there not being any more critical bugs? Nov 23 11:33:16 Well, I was wrong :( Nov 23 11:33:35 you must have rolled too many 1's Nov 23 11:33:52 :| Nov 23 11:34:07 Tee_Pee: come on, fess up :p Nov 23 11:34:34 belgianguy: Thanks, what gl call would I be making? Nov 23 11:35:11 Bacta: gl is quite a big subject and depends a lot on what you want to do Nov 23 11:35:27 if you could be more specific Nov 23 11:35:32 is it gluPerspective? Nov 23 11:35:40 is you want 3D yes Nov 23 11:35:48 if* Nov 23 11:35:49 No, 2D Nov 23 11:35:53 timroes, does this always ends with timeout? Nov 23 11:35:53 glOrthof Nov 23 11:36:04 that ignores the z axis Nov 23 11:36:36 there is a response message for a browser from server? Nov 23 11:37:50 squ: `nc -l port` just opens a socket ont hat port, so you can send data to it, and if you don't tell nc it doesnt return anything Nov 23 11:38:12 with gps coordinates android allows to telnet to emulator, and put geo locations. Is there option to put manual network parameters like with gps? Nov 23 11:38:20 but i am not for lunch :) Nov 23 11:38:41 eat as fast as you can please Nov 23 11:38:44 :) Nov 23 11:58:27 belgianguy - turns out messing around with code makes things that worked before not work anymore :D Nov 23 11:58:53 Tee_Pee: ouch, yeah, been there done that Nov 23 11:59:11 in short, if you upload an image without a destination album, it goes to "Mobile Uploads" by default... well, issues arise if that album does not exist, i.e. it has to be created. Nov 23 11:59:33 ouch, yeah Nov 23 11:59:40 Which is all fine and dandy, the server handles server-end album creation easily, but there are 2 problems Nov 23 11:59:42 that might not be pretty Nov 23 11:59:43 is anyone here familiar with using the NDK? Nov 23 12:00:09 I have never used it, and I am not sure exactly how to, especially considering I use IntelliJ IDEA Nov 23 12:00:17 am I going to have to suck it up and get eclipse? Nov 23 12:00:34 1 - when the user snaps a picture, they shouldn't have to wait for it to be uploaded and processed, then re-download it to view it, that's stupid, the images are there. So I have to locally create the album in the DB, put all info in it, and display it to the user as if it were cached Nov 23 12:01:01 Upload it in the background, and update ID values when they come back from the server, renaming the cache folder in the process. Nov 23 12:01:05 Tee_Pee: ah nice Nov 23 12:01:25 so they never have to wait, and have a cached copy before a server sync Nov 23 12:01:26 2 - This has to work in offline mode, with the upload being queued for when the user next time connects to the internet Nov 23 12:01:41 aye, for the user, it has to be seamless. Nov 23 12:02:10 It's just a huge mess to determine what needs to be synced, what needs to be uploaded, downloaded Nov 23 12:02:27 I can imagine Nov 23 12:02:42 root66: what language is your NDK lib in? Nov 23 12:03:11 Tee_Pee: I missed your entire conversation, but I did something along these lines and used md5's of the images to quickly determine which ones needed syncing Nov 23 12:04:21 belgianguy: I literally just downloaded android-ndk-r8c and extracted it next to android-sdk-windows Nov 23 12:04:27 I don't need anything that complex... I just have an "queuedForUpload" flag in my SQLite DB Nov 23 12:04:38 I am on step 0 Nov 23 12:04:40 root66: I've used the CLI tools to build NDK projects (ndk and ant) hang on Nov 23 12:04:42 Another OpenGL question - onDrawFrame is called by some other thread I don't think I have any control over.. How can I synchronise calls to onDrawFrame through my main game loop? Nov 23 12:05:22 Hi how would one test whether the android.intent.action.BOOT_COMPLETED broadcast is received by out code? Would one need to reboot the device or restart the emulator to get this broadcast? Nov 23 12:06:48 Tee_Pee: a 32k chunk of data holds the md5 of 1000 images, for example, so you could generate a huge list of md5's and dump them and the other end knows every image you have without relying on a db Nov 23 12:06:53 just food for thought Nov 23 12:07:07 uniquesupri, you can send such broadcasts via adb Nov 23 12:07:13 root66: what OS do you use? Nov 23 12:07:17 windows Nov 23 12:07:58 root66 - I don't need the other end to know what images I got... this is roughly the process by which it goes Nov 23 12:08:28 I open an album, request to server, get JSON back, build everything from the JSON, downloading the images in the process Nov 23 12:08:29 yeah this may not apply to what you are doing at all, I just figured I would share since it was relevant Nov 23 12:09:01 I open the album again, show the cached stuff, send sync request to server, get JSON back, compare it to cache (via IDs), see what's new, what's deleted, update cache accordingly Nov 23 12:09:35 every now and then I check my DB for images that are flagged for upload, and upload them to the server accordingly Nov 23 12:09:39 root66: on second thought, that forum post of mine I wanted to refer to is pretty messy Nov 23 12:09:42 the server handles it from there Nov 23 12:09:54 EPG: thanks, is this right? adb shell am broadcast -a ? Nov 23 12:09:56 my db would probably only consist of image-md5 and albumID pairs Nov 23 12:10:19 possibly Nov 23 12:10:20 actually I guess I would go ahead and store a filename Nov 23 12:10:21 or id Nov 23 12:10:42 uniquesupri, guess not, but adb help should help you there Nov 23 12:10:47 I keep files cached locally, so I have IDs, thumb uri's, full view uri's, updated_at, created_at, a few other things as well Nov 23 12:10:58 iirc at least the 'shell' is superflucious Nov 23 12:10:59 belgianguy: thanks anyway Nov 23 12:11:13 *superfluous Nov 23 12:11:23 EPG: thanks Nov 23 12:11:32 man I wish I wasn't like the only guy on earth using intelliJ idea Nov 23 12:11:36 root66: in short, I did the Java in Eclipse, but fiddled with the C++ in gedit, then ran ndk-build (make sure you set up the CPU architectures to build for) and then ran "ant debug" Nov 23 12:11:36 maybe I should try eclipse again Nov 23 12:11:42 it sucked compared to idea when I used to use it Nov 23 12:11:42 tell me which command works, quite some time since i used it Nov 23 12:11:46 ant is a standalone program Nov 23 12:12:08 root66: it still sucks :) Nov 23 12:12:11 yeah we used to do all our builds with ant Nov 23 12:12:18 I never learned the process though Nov 23 12:12:24 except just running the rebuild batch Nov 23 12:12:58 how can one achieve that common horizontal transition effect between views(?) Nov 23 12:13:01 ? Nov 23 12:14:54 hydra__: ViewFlipper? Nov 23 12:15:32 quick question Nov 23 12:15:44 root66: this is the gist of it Nov 23 12:15:46 root66: suggestive name Nov 23 12:15:52 in each project dir I ran: "rm build.xml && ndk-build && android update project --target 8 --path . && ant debug" Nov 23 12:15:58 I have a fragment which is used to display the user's friend list... it inflates a layout with a listview, and a loader message Nov 23 12:16:14 targets are dependant on which sdks you have installed Nov 23 12:16:22 however, if there's no connection, I want that layout to change to a "no connection, click here to retry" layout Nov 23 12:16:38 the command "android list targets" will show you those Nov 23 12:16:38 is there a simple way to inflate a different layout into a fragment? Nov 23 12:16:39 man this is going to take serious handholding Nov 23 12:17:07 the path point to the current dir Nov 23 12:17:12 basically I just want to feed chunks of PCM data to a c++ module that plays the audio Nov 23 12:17:24 whatever that entails Nov 23 12:17:51 because youy can get lower latency than AudioTrack Nov 23 12:18:07 I remove build.xml because ant choked on it, build the ndk/jni parts, after which I regenerate build.xml for my target platform after which I generate a debug APK Nov 23 12:18:34 god this sounds difficult Nov 23 12:18:36 yeah, I've seen discussions here about that subject Nov 23 12:18:44 root66: this was the hardest way possible Nov 23 12:18:53 probabluy it's 3 or 4 clicks in Google Nov 23 12:19:23 and Eclipse can integrate it into its build path (never attempted that) Nov 23 12:19:51 I don't get why there is no native audio exposed through the android apis Nov 23 12:20:04 why should I have to do all this just to play sound without lag? Nov 23 12:20:32 and why hasn't a 3rd party made this easier for me? Nov 23 12:20:36 :P Nov 23 12:21:06 opensl|es is overkill Nov 23 12:21:40 I think writing my own would be as easy as implementing it Nov 23 12:21:58 which is to say not very Nov 23 12:22:23 there were 2 music app developers some days ago here Nov 23 12:22:35 can't remember their apps, one was VirtualDJ or something Nov 23 12:22:36 I'm afraid one of them was me Nov 23 12:22:40 oh Nov 23 12:22:53 missed that Nov 23 12:23:02 as they also said MediaPlayer was too slow Nov 23 12:23:11 and then proceeded to tell what they did use Nov 23 12:23:15 but I forgot :/ Nov 23 12:23:19 oh it's o,possible... you have to at least use AudioTrack and write to it directly Nov 23 12:23:24 impossible* Nov 23 12:23:51 I gave up on syncing any sound using timers or media players Nov 23 12:23:54 is this a logged IRC? Nov 23 12:23:57 root66: with ViewFlipper, can i use touch to slide views? Nov 23 12:24:15 hydra__: you basically flip to the next page, like in the photo gallery Nov 23 12:29:25 root66: http://audioprograming.wordpress.com/2012/03/03/android-audio-streaming-with-opensl-es-and-the-ndk/ Nov 23 12:37:00 hello Nov 23 12:37:24 hi-diddely-ho Nov 23 12:41:11 this may be a stupid question but here it goes anyway :) is it normal for etc1 compression to yield bigger file sizes than the original png image? Nov 23 12:42:50 then it's not really compression, is it ;) Nov 23 12:43:01 i'm reading about it, is etc1 always 24 bit? was original image <24 bit? Nov 23 12:43:57 original image is 24 bit Nov 23 12:45:11 does anyone know if getWindowManager() and getSystemService(Context.WINDOW_SERVICE) are interchangeable? Nov 23 12:46:04 i see. It looks that etc1's objective is to provide a little compression and fast performance Nov 23 12:46:57 while the goal of PNG is to provide good lossless compression at standard speed Nov 23 12:47:30 So from the point of view who didn't know what "etc1" was 5 minutes ago, it looks normal Nov 23 12:49:56 thanks SuD Nov 23 12:50:33 I needed thisconfirmation because it was always on my mind that I'm doing something wrong with the textures Nov 23 12:51:09 as a 50KB png file comes out as a 512KB pkm file Nov 23 12:51:36 according to wikipedia you can get up to 6x compression over (raw imho) 24bit data Nov 23 12:53:17 so what is the resolution of the image in pixels? Nov 23 12:53:55 1024 x 1024 texture atlas Nov 23 12:55:16 well... the file size is correct Nov 23 12:55:21 that'd be 3MB raw. So the compress ratio until 0.5MB is approx 6x. Nov 23 12:55:46 you're right Nov 23 12:56:10 what i don't know is whether there is a recommended workflow with those images Nov 23 12:56:27 like distribute them in etc1 format, or do the confersion after installing the app or even in runtime Nov 23 12:57:13 i guess that if you zip them you're still gaining a lot Nov 23 12:57:37 5KB zipped Nov 23 13:05:40 Can someone help me ? what does this mean ? My app crashes from yesterday without changing anything 11-23 12:11:38.073: E/AndroidRuntime(772): java.lang.IllegalStateException: Could not find a method readWebpage(View) in the activity class com.example.JSONParser.MainActivity for onClick handler on view class android.widget.Button with id 'button1' Nov 23 13:07:21 you probably have an onClick handler defined in one of your layout xmls Nov 23 13:07:29 that points to a nonexistent method Nov 23 13:09:22 I don't know about the not changing anything bit Nov 23 13:09:35 but this doesn't just randomly happen :) Nov 23 13:18:46 hi,I am new to java and android development.I want to fetch image from url for listView,I am using android-async-http library. I am getting image as bytes but I cant covert bytes to image.How can I convert bytes to image? Nov 23 13:20:30 Bitmap bmp = BitmapFactory.decodeByteArray(data, 0, data.length); Nov 23 13:21:39 or, I guess it depends on what format your byte array is in Nov 23 13:26:51 So I wanted to use Zxing, it's website says it's under Apache licence, and to avoid complication one should use intents. They even provide code to use it as intent! And the code is under Apache licence :? Does anyone know a barcode library with normal licence? Nov 23 13:27:14 plushy: Apache is both free and commerical Nov 23 13:27:28 eg, "whatever you want to do" Nov 23 13:28:06 how can I writeToParcel() and in.read.. a generic specific SparseArray ? Nov 23 13:34:21 belgianguy: okay, but I'm not really sure how to use it in my android project to be compatible with the licence Nov 23 13:35:01 plushy: what would you consider a normal license? :D Nov 23 13:35:40 apache is, imho, one of the most open and permitting licensings out there, so what else can you wish? Nov 23 13:36:05 plushy: there is nothing more handy than Apache, you don't have to give back anything Nov 23 13:36:09 and you can use what you want Nov 23 13:36:34 and (in contrast to MIT and BSD) you can hardly break patents with it Nov 23 13:36:52 belgianguy: but doesn't Apache require me to add a copy of the licence? Nov 23 13:37:12 only if you redistribute the library afaik Nov 23 13:37:30 plushy: in source code Nov 23 13:37:39 just leave the apache header in the source code and you will be fine Nov 23 13:39:19 but still in the app I have to mention I used it, don't I? Nov 23 13:39:26 no Nov 23 13:39:28 you don't Nov 23 13:39:45 do you know MIT or BSD license? Nov 23 13:42:09 I really helps to just read them sometimes :) Nov 23 13:42:25 but it's indeed quite lawyerly written Nov 23 13:42:45 yeah, the wiki page has a clearer explanation, of what you are allowed to do with it Nov 23 13:46:47 but using the library in the android app is clearly redistribution since android doesn't allow shared libraries, right? Nov 23 13:53:11 plushy: so you mention them in the credits, as a token of appreciation Nov 23 13:53:18 which IIRC isn't even mandatory Nov 23 13:53:24 but "nice" Nov 23 13:54:36 plushy: you'd already have to be a criminal mastermind to violate the Apache license Nov 23 13:59:13 oh, don't tell me now it's illegal to use it for criminal purpouses Nov 23 13:59:18 hi Nov 23 13:59:26 I want me doomsday machine to be fully legal Nov 23 13:59:33 I'm running an app that runs out of memory: outofmemoryexception Nov 23 13:59:48 how can I debug it to figure out which class/function tries to allocate so much memory ? Nov 23 13:59:59 what are the default sizes the android system lets the application use ? Nov 23 14:05:49 evelyette_: http://stackoverflow.com/questions/5350465/android-heap-size-on-different-phones-and-os-versions (2nd answer for heap sizes) and for debugging use this: http://developer.android.com/tools/debugging/debugging-tracing.html or http://www.youtube.com/watch?v=_CruQY55HOk Nov 23 14:08:14 evelyette_: especially the google I/O talk (youtube link) is really helpful, for learning how to look into your apps memory Nov 23 14:08:36 I have a textview that should have width=wrap_content, but I want it to place the content evenly on 2 rows. How do I do that? :S Nov 23 14:08:47 timroes, thank you, I'll take a look Nov 23 14:29:09 hello Nov 23 14:30:00 is there any way to create a custom circular DETERMINATE progress bar using XML? like you would with an horizontal one Nov 23 14:34:49 hi, I've just enabled the android:minSdkVersion="11" but I still get this error when setting largeheap in android manifest: AndroidManifest.xml:22: error: No resource identifier found for attribute 'largeheap' in package 'android' Nov 23 14:34:52 any ideas why? Nov 23 14:35:02 the largeheap should be enabled in API 11 Nov 23 14:35:52 It is largeHeap ? Nov 23 14:35:56 Capital H Nov 23 14:36:06 why am i so bad at parsing json, anyone know how i get the first thing here [{"type": 0, "itemtype": 1}], I have the json object and i can getString for identifier etc, but how do I get that first bit.. [[{"rules": [{"type": 0, "itemtype": 1}], "identifier": "allrides", "display": "Rides", "name": "All Rides"},{"rules": [{"type": 1, "categories": ["ride.rollercoaster"]}], "identifier": Nov 23 14:36:06 "rollercoasters", "name": "Roller Coasters"},.. Nov 23 14:36:49 Oof Nov 23 14:37:07 Jackson or gson + class structure + firefox jsonview plugin = winning team Nov 23 14:37:18 yeh i can view it nicely Nov 23 14:37:22 but its weird as hell json Nov 23 14:38:06 getJSONArray Nov 23 14:38:07 ? Nov 23 14:38:16 needs a name tho Nov 23 14:39:45 i find none of these meta lang thingies acceptably easy Nov 23 14:39:53 unless u make the data format yourself, which is silly Nov 23 14:40:09 Data format? All I usually make is a class graph. Nov 23 14:40:22 i have parsed like 20 files in this proj but this one is odd, i had to convert plist from ios to json Nov 23 14:40:25 Depending on the sanity of the json, that's pretty straightforward. Nov 23 14:40:45 yeh Nov 23 14:41:10 well id just like to keep it simple instea dof all these unneccessary nested things ppl make Nov 23 14:41:33 Seriously, manual parsing isn't simple or readable at all. Nov 23 14:41:47 Classes with fields and lists of other classes is a much better semantic match. Nov 23 14:41:49 i dont mean that i mean keeping the Json simple Nov 23 14:41:59 instea dof pointless arrays like this that i cant even get Nov 23 14:42:01 Ah yes, agreed Nov 23 14:42:25 Usually it ends up being List> or something in the class graph :) Nov 23 14:43:06 But List is still better than getJsonArray(..).getJsonArray(...).getJsonObject(...).getString() Nov 23 14:44:11 HDroid, it's the same with largeHeap Nov 23 14:44:21 tried calling getJSONArray("rules") Nov 23 14:44:22 ? Nov 23 14:44:45 HDroid, AndroidManifest.xml:22: error: No resource identifier found for attribute 'largeHeap' in package 'android' Nov 23 14:44:56 evelyette_: is it in the application tag? Nov 23 14:45:12 evelyette_ are you declaring the attribute in the right place? Nov 23 14:46:17 HDroid, of course: http://dpaste.com/835387/ Nov 23 14:46:54 Maybe the build system is still stuck thinking it's on a different API level? Nov 23 14:47:33 HDroid, how can I check Nov 23 14:47:35 ant clean ? Nov 23 14:47:48 Not sure, all I know is eclipse. Nov 23 14:47:57 you have to declare in the activity tag Nov 23 14:47:57 not application Nov 23 14:48:15 schizomera, ? Nov 23 14:48:36 That doesn't correspond with what I'm reading in the docs. Nov 23 14:49:08 schizomera yes i get "error no value for" Nov 23 14:49:28 sorry, nevermind Nov 23 14:49:37 ok I cleaned the project, but the same error, any more ideas ? Nov 23 14:49:38 yeh its weird Nov 23 14:50:52 Gaz` what you have to parse is a json array with nested json arrays, each one with a json array + 3 string objects Nov 23 14:51:02 right? Nov 23 14:51:07 yes Nov 23 14:51:46 http://pastebin.com/1bsHKNJS Nov 23 14:51:47 json Nov 23 14:52:15 bugger, i got to go out in a sec Nov 23 14:53:08 so you have to iterate through the arrays, and in each one call getJSONArray("rules"), getString("identifier") etc. Nov 23 14:53:53 yeh strings work Nov 23 14:54:00 getting the array doesnt for some reaosn Nov 23 14:54:32 hmm Nov 23 14:55:38 yeh it should just be getJsonAray("rules") as u said Nov 23 14:58:11 i`ll get back on it tomorrow i guess cya guys, thanks Nov 23 14:58:14 are you parsing the original json string as a JSONOBject or JSONarray? Nov 23 14:58:31 initial one is array Nov 23 14:58:36 then another array Nov 23 14:58:40 then objects within that array Nov 23 15:01:45 oh got it Nov 23 15:02:02 not sure how lol.. Nov 23 15:02:07 thx gotta run! Nov 23 15:02:22 what's a common method for adding a "spacer" between views? Nov 23 15:02:35 without using margins Nov 23 15:03:07 padding? Nov 23 15:07:20 a blank view? Nov 23 15:09:28 When specifiying splash images, Nexus 4 phone is picking up from xhdpi which was a tablet splash image used by Nexux 7. How to solve this problem Nov 23 15:09:46 I want Nexus phone to pick up from hdpi folder only Nov 23 15:10:03 use screen sizes, not densities, if you care about screen sizes not densities... Nov 23 15:10:52 HDroid, any more ideas on largeheap ? Nov 23 15:11:28 Leeds any tip on how to do that? Nov 23 15:11:40 Not really, I'm a bit in the dark without my trusty GUI tools. Nov 23 15:14:16 Manavan: http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources Nov 23 15:14:50 Thanks Leeds! Nov 23 15:15:03 I was being semi-sarcastic... Nov 23 15:15:57 So SQLiteDatabaseLockedException is Api 11, what do ancient Sqlite DB throws when they get locked up? Nov 23 15:16:35 Hello guys, how can I prevent my app to not recreate a new instance of my activity, but rather open last activity? A link or a hint is enough. Nov 23 15:19:01 i don't think you can do that, i think you can only save the activity variables/state so it can be recreated when you re-open it Nov 23 15:20:14 http://developer.android.com/training/basics/activity-lifecycle/index.html Nov 23 15:20:31 schizomera, the thing is, the activities get stacked up, but there was a way to reorder the stack and open the last activity. but that was a long time ago. Nov 23 15:21:54 Especially when starting activity from the notofication bar, I want to get back to the app and not having another instance of it... There must be a way to fix that. Nov 23 15:23:08 http://stackoverflow.com/questions/5613817/showing-existing-activity-via-notification Nov 23 15:23:42 schizomera, this might help me... Nov 23 15:23:45 thnx Nov 23 15:28:12 is it possible to send message from an async task back to the caller before the execution finishes? Nov 23 15:28:22 So before the onPostExecute? Nov 23 15:28:45 wait, nevermind... Nov 23 15:31:00 onProgressUpdate can send things Nov 23 15:31:36 what did you use Tee_Pee ? Nov 23 15:33:51 I @*&#%^-ing hate doing calendars Nov 23 15:35:12 urtgh, my Note 10.1 wont start anymore Nov 23 15:35:21 didn't do anything to it Nov 23 15:35:31 and it didn't fall Nov 23 15:35:42 it's not even rooted, just vanilla Nov 23 15:36:10 belgianguy, maybe that's the cause :P Nov 23 15:36:32 Number5: any idea on activating Recovery Mode? Nov 23 15:37:11 I'm sorry bro, could be the poweradapter be broken? Nov 23 15:37:40 Number5: I've hooked it to the pc over USB, and it's also not doing anything there Nov 23 15:38:03 it looks like it has no power at all Nov 23 15:38:13 yeah Nov 23 15:38:16 belgianguy - added an additional method to my responsehandler interface, onCache Nov 23 15:38:22 and I just call that when I need to Nov 23 15:38:33 (That's the idea, about to try it out) Nov 23 15:38:44 ah Tee_Pee: nice, thanks for sharing Nov 23 15:39:21 maybe battery problem. You could let your Note get charging for some hours, hopefully it gets fixed. This was often the cause on old mobiles (I used to repair them very often) Nov 23 15:41:01 thanks Number5 :) I found how to go to recovery mode Nov 23 15:41:06 and rebooted the machine from there Nov 23 15:41:14 and it seems to be very much alive again Nov 23 15:41:18 belgianguy, great, congratualtions man. Nov 23 15:41:37 yeah, that would have been a bummer Friday night otherwise Nov 23 15:41:43 starting at -600 € :p Nov 23 15:42:04 I understand ;-) Nov 23 15:42:19 Especially in this economic crisis. Nov 23 15:44:57 well, I hope Android can provide me with an income soon Nov 23 15:47:25 hmmm.... this is annoying Nov 23 15:47:52 I have an activity, in it I got an adapter Nov 23 15:48:10 I pass that adapter to another class, who calls an asynctask (doesn't pass the adapter) Nov 23 15:48:50 in that asynctask, while I'm in doInBackground, I call responseHandler.onProgress(), which is implemented in the "another class" that called the asynctask, and it refreshes that adapter Nov 23 15:49:13 Upon doing that I get an exception saying that I operated on the adapter from the wrong thread Nov 23 15:50:00 nevermind, found the reason Nov 23 15:50:45 Tee_Pee: now now Nov 23 15:50:54 you can't start off a story like that Nov 23 15:51:03 and then end with a nevermind :p Nov 23 15:51:14 doInBackground does exactly that, doInBackground... on a different thread Nov 23 15:51:27 you were right before, gotta use onProgressUpdate Nov 23 15:51:47 Tee_Pee: ah, good to know Nov 23 15:53:00 hi Nov 23 15:53:05 hi Nov 23 15:54:31 hello Nov 23 15:54:40 hi Nov 23 16:00:30 hi. i have a custom view which has a magnetic compass. now if i want to set a different activity title every 1/2 a second, of course, i will need a thread. but in the activity i cannot run another thread to set the title Nov 23 16:01:01 you can create a Handler with which you can post UI updates Nov 23 16:01:16 schizomera, show me a link Nov 23 16:01:41 use the magic word Nov 23 16:01:49 abracadabra Nov 23 16:01:52 "please" Nov 23 16:01:54 oh yes! Nov 23 16:01:59 "please"!!! Nov 23 16:02:01 heheh Nov 23 16:02:06 sorry Nov 23 16:02:11 lol Nov 23 16:02:22 i didn't mean it Nov 23 16:02:55 what do you call the telescope used by medics? Nov 23 16:03:21 you know, to scout the digestive system.. Nov 23 16:03:35 can't find any decent link besides the docs Nov 23 16:03:36 http://developer.android.com/reference/android/os/Handler.html Nov 23 16:03:41 ok Nov 23 16:03:45 i'll see Nov 23 16:03:50 but the thing is.. you create the Handler Nov 23 16:03:55 is it a good pattern to split up view components into separate xml files that belong to a single activity, initialize/find them, pass them up into dedicated classes like a ViewComponentClass and do stuff with it there? Nov 23 16:04:42 when I load a page into a webview is there a flag I can set to make sure the page always displays from the top, one of my pages when it loads is set at the bottom of the page Nov 23 16:04:42 aha ok schizomera Nov 23 16:04:43 then call postDelayed(,