**** BEGIN LOGGING AT Wed Oct 31 02:59:58 2012 Oct 31 03:30:02 hey im trying out this codes here. can someone tell me what should i put in "thefooter" part? Oct 31 03:30:04 http://stackoverflow.com/questions/5408336/a-common-footer-for-an-entire-application-android Oct 31 03:30:32 it is the codes for footer in application Oct 31 03:41:49 hi Oct 31 03:42:48 anyone alive here? ;) Oct 31 03:42:59 nope, hurricane Oct 31 03:43:07 ;) Oct 31 03:43:41 how are things down there? Oct 31 03:44:11 HoneyH: what do you mean by "thefooter" part? that name is nowhere in the page you linked Oct 31 03:44:26 im actually on the west coast, hah Oct 31 03:45:40 sampullman : its in the solution part, below Oct 31 03:45:56 MySingleFooter footerStore = MySingleFooter.getInstance(); Oct 31 03:45:58 View myview = footerStore.getFooter(thefooter); -->thefooter right here Oct 31 03:47:32 it's the view acting as the footer (in the currentactivity) Oct 31 03:47:36 *current activity Oct 31 03:53:56 oh okay. thank you so much for the explanation. Oct 31 04:24:34 6 Oct 31 04:39:28 hey i posted this question. can someone tell me if there is anyway i could do that? Oct 31 04:39:29 http://stackoverflow.com/questions/13137058/how-to-maintain-custom-tab-on-screen-and-change-class-without-redrawing-the-tab/13137667#13137667 Oct 31 05:04:09 I'm looking for the activity that controls the phone when there's an incoming call and specifically the code that sends the call_id to a Bluetooth headset with LCD. Any ideas? Oct 31 05:08:44 HoneyH: i mean you could just hide the tab widget … Oct 31 05:08:59 but if your goal is to clone an iOS UI… you should probably rethink the design Oct 31 05:09:53 oh my project requires me to clone an iOS UI. I don't get to change the design. which is why i am struggling with it Oct 31 05:10:07 * g00s sighs Oct 31 05:10:33 HoneyH: then you need to push back hard on whoever is telling you to make a bad app Oct 31 05:10:42 anyone use sprint? Oct 31 05:10:57 HoneyH: I've been there Oct 31 05:11:03 clients are stupid sometimes. Oct 31 05:11:20 HoneyH: who did the visual design ? Oct 31 05:11:45 Quagmire3 no Oct 31 05:13:07 Leeds : im just following orders from my boss. Oct 31 05:13:18 HoneyH: then tell your boss she is wrong Oct 31 05:13:33 tnzr : yeah clients comments on interface all the time. Oct 31 05:14:24 Leeds++ Oct 31 05:14:47 ID/UX dont get much respect unfortunately; everybody thinks their opinions on UIs are .. whatever. its easy to get out of this if your boss is open minded … perform UX research and find out what the android users want Oct 31 05:14:50 top 10 reasons i left my last company definitely include "cloning ios ui" Oct 31 05:15:06 canadiancow: I can think of maybe 1 or 2 of the others ;) Oct 31 05:15:14 i bet you cant actually Oct 31 05:15:17 zynga was awesome Oct 31 05:15:22 canadiancow: oh, i thought anonymous may have forced you out :P Oct 31 05:15:24 amazing work environment Oct 31 05:15:32 g00s : designers. they are in charge of the app design, but they get orders from the same boss, so no choice for me. Oct 31 05:15:39 i just wanted to do much more android stuff Oct 31 05:15:46 oh, ok Oct 31 05:15:49 also, to some degree, users are wrong, Oct 31 05:15:51 anyone much familiar with Input Methods? Is there any way to use an input method without an actual input field. for example, just to capture voice input and process its text results myself Oct 31 05:16:06 what's that quote,,, Oct 31 05:16:12 i am trying to give t-mobile money. i got a rep who didn't know shit about their own products. he finally said he'd transfer me to a supervisor. then i got disconnected. fuck. Oct 31 05:16:29 you can give me the money instead :) Oct 31 05:16:39 HoneyH: if you're not in a situation where you can honestly tell your boss that their design choices are wrong... you should be looking for new work anyway Oct 31 05:17:11 Leeds: they are called "boss"es for a reason Oct 31 05:17:21 boss != right Oct 31 05:17:25 regedit: and they are not called "owners" for a reason Oct 31 05:17:29 especialy if they have pointy heair Oct 31 05:18:17 HoneyH: do your designers even know that android has UI design guidelines ? Oct 31 05:18:18 is anyone's xml editor in eclipse buggy? Oct 31 05:18:39 design guidelines are for lames Oct 31 05:18:46 i leave that to the hipsters. Oct 31 05:18:55 nicks are for lames too Oct 31 05:19:51 i hope thats not directed at me, because clearly i have a nick Oct 31 05:20:38 i'm so hip Oct 31 05:20:39 My nick , probably among other things, happens to be longer than yours regedit AKA asdfkiytjfhgdfhg Oct 31 05:20:52 yeah but youre still bad in the sack ha Oct 31 05:21:03 quite obviously same length Oct 31 05:21:04 hey, kiddies? play nice please Oct 31 05:21:05 something like 'just because you've been banging nails in with your forehead for years doesn't mean that if you're given a hammer, you should strap it to your head for the reassuring jolt' Oct 31 05:21:25 I can't find the original though Oct 31 05:21:59 Leeds : you got a point there Oct 31 05:22:58 HoneyH: I'm not saying you should threaten to go out on strike because you're being asked to make a bad app :) But make sure your opinion is on record for when the 2* "looks like an iPhone app!" reviews come in... Oct 31 05:23:31 g00s : yeah my boss knows about it, but he told the designer to change the design to ios design. Oct 31 05:23:44 heh Oct 31 05:24:03 well, tell him it will cost more money because you're going out of your way to make life more difficult Oct 31 05:24:38 http://www.quickmeme.com/meme/35jxos/ Oct 31 05:25:04 Leeds : :) I get what you mean. I won't go out on strike. I will lose my job for that Oct 31 05:27:25 that's the most annoying part Oct 31 05:27:32 when you hav eto spend 5 hours on something to make it look like ios Oct 31 05:27:39 rather than 2 minutes to do it the native android way Oct 31 05:27:46 and as a result, it looks worse Oct 31 05:28:06 g00s & canadiancow : going out for lunch. be right back to reply you guys. Oct 31 05:28:33 HoneyH: where are you? Oct 31 05:28:38 HoneyH: i leave you with this http://developer.android.com/design/patterns/pure-android.html … good luck Oct 31 05:28:59 ah, Singapore Oct 31 05:42:31 Hey Guys Oct 31 05:43:07 I'm designing a lock screen for user where he'll have to enter a pin to get in Oct 31 05:43:30 I don't like showing alertDialog everytime, basicallly I want the keypad to be a part of the layout Oct 31 05:51:01 Hey guys, is anyone here familiar with using a xmpp client on android like ASmack? Oct 31 05:59:08 as in a client library? this is a dev channel. if so, yes. Oct 31 05:59:45 but not asmack. I used a library by nsoftware that probably wraps smack. wasn't my call. Oct 31 06:01:37 I'm looking to build an android p2p chat (with one central server that stores a peer list and ip's) , and have been successful so far in making a simple chat from phone to server, but since ip's are signed via NAT, i'm in a NAT Traversal probelm to connect phone to phone Oct 31 06:01:49 Would you know of any solutions? Oct 31 06:01:54 tdignan: thanks Oct 31 06:05:18 afaik the phone must initiate communication with the server, if that's what you're asking Oct 31 06:05:32 all that means is that the user has to be logged in or something, though Oct 31 06:06:32 I wanted to make a listview where each item has a different color scheme Oct 31 06:07:01 a simple solution would be to ping the server on the client every second or so Oct 31 06:07:03 so I sublclassed ArrayAdapter, and now the items don't get highlighted on a click Oct 31 06:07:07 http://pastebin.com/sdSGyKC5 Oct 31 06:07:19 sampullman: it's the or something bit that i'm trying to figure out :) I want all messages to run via p2p. Oct 31 06:07:47 you're trying to do phone -> phone over the network? Oct 31 06:07:54 sampullman: yes Oct 31 06:08:15 yikes Oct 31 06:08:40 any particular reason you can't have the traffic going through a server? Oct 31 06:09:04 yes for security reasons Oct 31 06:09:26 It's fine I was looking for a existing solution Oct 31 06:09:47 If there is none I will implement my own NAT Traversal using UDP hole punching and hopefully I can get the ball rolling Oct 31 06:09:53 your potential clients may not trust you? or do you not trust SSL? Oct 31 06:10:12 a bit of both Oct 31 06:10:39 the first one would be an issue, the second is silly Oct 31 06:11:10 Don't trust everything you read :) Oct 31 06:12:08 hey Leeds, just got back from lunch Oct 31 06:12:15 thanks. i will take a look at it Oct 31 06:12:22 i don't, Oct 31 06:12:51 but if you think PKA+AES is less secure than phone -> phone, you're wrong Oct 31 06:13:03 could someone look at my pastebin and see if there is anything obviously wrong? Oct 31 06:13:19 sampullman: traffic analysis on the server Oct 31 06:13:43 RustyShackleford: the list selector is drawn behind your row view Oct 31 06:13:45 canadiancow : i did the native. but gotta change it to custom now. yeap. spending a lot of time on it for sure. Oct 31 06:13:47 the only thing a server adds is the possibility of a man in the middle, no? Oct 31 06:13:48 RustyShackleford: so your background color covers it up Oct 31 06:14:15 and you can get around that pretty easily Oct 31 06:14:39 g00s : i could use the meme when i'm the boss. lol Oct 31 06:16:27 codebutler: workarounds? I tried android:drawSelectorOnTop="true" in the layout file Oct 31 06:16:44 RustyShackleford: use a state list drawable and specify a "pressed" color for each row Oct 31 06:16:54 a different color for each would probably look better anyway Oct 31 06:17:05 (darker version of the unpressed color) Oct 31 06:18:32 codebutler: so this will be all in xml? Oct 31 06:18:41 yeah you can do it that way Oct 31 06:18:43 can I do this in my existing layout? Oct 31 06:20:36 you could do it in java… but i'd probably create xml drawables myself Oct 31 06:26:36 codebutler: is there a way to draw the selector on top? Atleast for now, I don't care about the colors being perfect Oct 31 06:40:57 lol Oct 31 06:41:08 anybody here develop for android pad? Oct 31 06:41:36 android pad? iDroid? Oct 31 06:46:24 bigmeow: tablets? Oct 31 07:13:48 brickhead: what is the difference between pad and tablet? Oct 31 07:14:12 Leeds: Sumsung pad Oct 31 07:14:26 Samsung P5100 Oct 31 07:16:25 I have an NTT Docomo Galaxy Nexus running a standard stock 4.2.1 ROM. Is it possible to compile AOSP for this device, or is the warning about the "magoro" target being only for devices that are google-supported out of the box applicable? Oct 31 07:16:46 it's carrier-unlocked, incidentally. Oct 31 07:17:19 I mean 4.1.2 ROM Oct 31 07:20:30 EdLin: might be a better question for #android-root Oct 31 07:20:41 codebutler, I asked there too. Oct 31 07:22:36 ca Oct 31 07:31:41 http://tech.slashdot.org/story/12/10/31/0148226/nexus-7-and-android-convertibles-drive-massive-asus-profit Oct 31 07:36:18 hm, so asus is making 1m n7s / mo Oct 31 07:36:29 not shabby Oct 31 07:50:19 I've seen a lot of articles about 4.2 for users, but what will be new for developers? I would appriciate better telephony API. Oct 31 07:52:37 Is there any work around for this issue? http://stackoverflow.com/questions/6599341/honeycomb-3-1-adjustresize-no-longer-working Oct 31 07:53:04 The associated bug on b.android.com is not fixed yet. I'm on 4.1.1 Oct 31 08:06:01 Pitel_IPEX: they haven't released that info yet - but I wouldn't necessarily expect to see much change apart from support for new features Oct 31 08:12:17 i was hoping some new tooling or whatever would have been released Oct 31 08:12:20 * g00s yawns Oct 31 08:12:20 * Jdbye slaps g00s around a bit with a large trout Oct 31 08:13:02 bring on the trout ! Oct 31 08:14:41 ready with the trout! :D Oct 31 08:15:02 * ArmyMan007 slaps Jdbye upside da head with a hairy goldfish Oct 31 08:15:31 * ArmyMan007 slaps g00s with a large smelly trout Oct 31 08:15:56 i think we have some bots Oct 31 08:16:44 g00s, who? Oct 31 08:43:47 Is there a way to remove downloaded files from my application in the sdcard after uninstalling it ? Oct 31 08:44:38 tagrudev: if you put your files in your application's directory, they'll get removed automatically Oct 31 08:45:10 sdcard Oct 31 08:45:20 files are bigger than 5mb Oct 31 08:45:21 you are following this, right? http://developer.android.com/guide/topics/data/data-storage.html#filesExternal Oct 31 08:45:50 aa sorry no Oct 31 08:45:59 why not? Oct 31 08:46:26 so if I put them in /Android/data//files/ Oct 31 08:46:33 dunno havent read it Oct 31 08:46:44 then read it now Oct 31 08:46:50 and *don't* hardcode paths Oct 31 08:47:00 point taken Oct 31 08:56:51 I've got an activity where I switch layouts to show a little "cutscene". I swap through some images by setting the full-screen ImageView's image in the layout, then return to the other layout. For some reason, I cannot see my cut scene images in the layout -- not even the one that I've set in the editor Oct 31 08:56:56 Any thoughts on why that'd be? D: Oct 31 08:58:31 http://pastebin.com/yiTgrwGF Oct 31 08:58:58 The first image is visible in the editor Oct 31 09:22:00 heh, just saw this. http://android-developers.blogspot.com/2012/10/new-google-play-developer-console.html -> check bottom of page "Links to this post": Calvert School Officials Warn About 'Sexting' | Faster, better... Oct 31 09:42:53 is there any reason to not always have a + when writing stuff like android:layout_below="@+id/status_text" Oct 31 09:54:18 So, aaany ideas why I might be getting a black screen when I switch to a different layout in my activity? Oct 31 10:00:28 When starting selection text in EditText with virtual keyboard showing Excess symbols. Hot to fix that? Oct 31 10:00:46 doppio: 1.) http://bit.ly/PGAxtL 2.) http://bit.ly/PGABJX 3.) http://bit.ly/Q3RPAK Oct 31 10:04:10 i guess wrong in EditText attributes Oct 31 10:07:48 fecub, I love you Oct 31 10:10:17 doppio: :) a thx is enough !! :D Oct 31 10:30:59 anyone has any idea how to stop a javascript running in webview thread? Oct 31 10:33:24 you mean stop js which has already started? or disable it entirely before loading. Oct 31 10:39:22 anyone using adb with android device ( debug mode) on ubuntu 12.10? - asking because my setup was working in 12.04 but then ive upgraded... and its not anymore - also yes i have correct set udev rules (from what i can see in syslog it is being atached and disconnected automatically in a loop - dont know why...) so in adb devices i can see ?????? offline Oct 31 10:41:20 does antone know how to change the username that appears on app comments in Google Play? Oct 31 10:42:10 meomic - i'm on 12.10 without any problems Oct 31 10:43:18 DysonReturns: so its only me... ok thx alot for the info - my device works only correctly in a massive memory / mtp state but not in debug Oct 31 10:43:34 meomic: maybe try starting the server as root Oct 31 10:43:42 memcpy: sudo /home/user/android-sdks/platform-tools/adb kill-server Oct 31 10:44:11 meomic: sudo /home/user/android-sdks/platform-tools/adb start-server Oct 31 10:45:58 i believe i've seen mtp prevent debug mode from working. or atleast that's what I thought it was: the device coming up for mtp, but not debug. in which case I don't know how to help. generally its 50/50 for me with tablets on whether they wanna connect that day or not. xda devices, no problem, ever. Oct 31 10:47:05 DysonReturns: yes ive tried that but does not help - even with adb server killed i can see in syslog that it is automatically connected and disconnected also that line is annoying me : (syslog) List of devices attached Oct 31 10:47:05 ???????????? offline Oct 31 10:47:36 usb 3-4: usbfs: USBDEVFS_CONTROL failed cmd adb rqt 128 rq 6 len 256 ret -110 --- sorry it did clicked enter automatically when i pasted.. Oct 31 10:48:00 hmmm. and you're sure you've restarted udev too Oct 31 10:48:13 (if all fails i just reboot, not being too linux savvy) Oct 31 10:48:41 sudo service udev restart //I think Oct 31 10:48:42 i am looking in google but found nothing that helps... - yea ive restarted udev manually also rebotted machine Oct 31 10:49:15 meomic: tried other devices? maybe go back to the udev rules again - copy another example. Oct 31 11:02:05 Hi everyone!! Oct 31 11:02:26 take a look at the current scenario on this link: http://img51.imageshack.us/img51/4630/networkscenario1.jpg Oct 31 11:03:23 I need to discover other android devices(running my application) on my private network. Oct 31 11:03:45 How should I go about it.? Oct 31 11:08:18 FireAndIce: first, you need to give the frog a packet sniffer or psychic packet sniffing powers. then you need a square container and some water. the next part is tricky, you have to make the container cooled below sub-zero temperatures. once the frog is frozen, you need to get rid of the container and turn the frozen block in an upright position. Oct 31 11:09:54 DysonReturns, thanks but not helpful.. Oct 31 11:10:11 FireAndIce: which part are you still unclear on? Oct 31 11:10:26 DysonReturns, everything you said. Oct 31 11:11:05 well, based on your screenshit, which redirects here, I can't help you if you can't help me. http://imageshack.us/images/blocked_login.jpg Oct 31 11:11:39 FireAndIce: discovery protocols are normally based on broadcasts and listeners on those broadcasts. Not sure if this is available to userspace programs, though. Oct 31 11:11:54 DysonReturns, should I send you the file directly? Oct 31 11:11:59 Err, sorry, it's definitely available to userspace. I meant, not-root programs Oct 31 11:12:23 FireAndIce: I would rather upload it somewhere people can access it and ask the question again. Oct 31 11:14:46 Can a listView technically take clicks in different areas? Like defining a + on a listview to expand that certain element, and a rating bar to rate the element? Oct 31 11:15:04 or do listviews only support click/longclick? Oct 31 11:15:08 DysonReturns: ive just borrowed a phone from my friend and checked - his phone works under my laptop - so its not my notebook's fault not usb cable - something with my galaxy s - not sure what tho - i didnt touched it (its rom) - got some 2.3.4 from samsung Oct 31 11:17:27 meomic: thought as much. what is the udev file called? /etc/udev/rules.d/51-android.rules ? Oct 31 11:18:11 meomic: as far as I know the lower the number, the higher precedance it gets. almost certain the mtp stuff is overriding the debug stuff. some sites say the rule should be 99-*. Confirm its 51-* Oct 31 11:19:49 yes its 51-android.rules with SUBSYSTEM=="usb", ENV{idVendor}=="04e8", MODE="0666" inside - other device is working so its prolly something with my sgs - you thing that a reset to factory state would help? Oct 31 11:22:43 meomic: ok, well lets try things. move that 51 to 90-* and if that fails, move it to 99-*. do this with RESTART's inbetween. i don't mean to f up your day, but this is all I've got for you right now. Oct 31 11:22:53 http://forum.xda-developers.com/showthread.php?t=640158 Oct 31 11:23:31 this guy changed the priority - maybe I got it wrong and higher is better. Oct 31 11:23:49 also, kill the server and start it as root before you assume adb devices doesn't work. Oct 31 11:23:56 meomic: restarts are never needed with udev rules Oct 31 11:24:04 meomic: just unplug and replug the usb device after saving the file Oct 31 11:24:18 clever: should you not at the least restart the udev service? Oct 31 11:24:31 DysonReturns: nope, it uses inotify to check for changed config files Oct 31 11:24:42 the only time a reboot is needed, is for non-removable things, like PCI cards Oct 31 11:24:48 you cant yank those out and re-plug them Oct 31 11:24:53 meomic: as previously stated - I'm not a ubuntu fanatic, so you can trust clever on this one. Oct 31 11:24:55 or kernel upgrades without kexec! :P Oct 31 11:25:13 angelos: there are tools to upgrade the kernel without kexec Oct 31 11:26:29 angelos: i forget the name, but it does binary diff's of each and every function, along with some complex code to scan for modified structs, and upgrade the format at run-time Oct 31 11:27:00 angelos: ah!, ksplice.com ! Oct 31 11:27:54 Have a listview. Clicking on it loads new activity. In new activity, user can delete record. Ive tried onsaveinstancestate, onpause, and onresume, but they dont seem to be getting called, pointers? Oct 31 11:28:16 When the new activity quits... Oct 31 11:30:28 I need to be notified somehow that the new activity has quit so i can update the listview if need be... Oct 31 11:43:51 'ello Oct 31 11:44:00 DysonReturns, check whether this link can be viewed, http://i.imgur.com/nyVm8.jpg Oct 31 11:44:32 FireAndIce: now ask the question again and hope you get lucky. Oct 31 11:44:47 I seriously doubt anyone here has had experience with this, but I need to upload an image to Amazon's S3 service but I cannot use their API, so I need to "simulate" a HTTP form submit. Oct 31 11:45:13 If anyone had that misfortune to be in the same predicament, advice would be greatly appreciated :p Oct 31 11:45:14 multipart mine isnt it Oct 31 11:45:39 DysonReturns, I want to create an application which will be able to discover other android devices, running the same application and are on the network. Oct 31 11:45:49 Tee_Pee http://stackoverflow.com/questions/3360957/how-use-multipart-form-data-upload-picture-image-on-android Oct 31 11:47:03 that's exactly what I needed... I was trying with http://reecon.wordpress.com/2010/04/25/uploading-files-to-http-server-using-post-android-sdk/ Oct 31 11:47:05 FireAndIce: I would let the applications register with a service hosted on a server somewhere and let the laptop poll from the server whatever information you need. Oct 31 11:47:07 and hadn't had much luck Oct 31 11:47:10 thanks Oct 31 11:47:15 np :) Oct 31 11:49:04 hi, does anybody know whatever happen to GVSIG? I need some good library to display offline map. Oct 31 11:49:22 DysonReturns, ok. thanks... Oct 31 11:49:29 FireAndIce: I've never played with Google Cloud Messaging, but its Free and seems like a nice opportunity if you want to send information from and to devices on a subscription basis. Oct 31 11:49:32 FireAndIce: http://developer.android.com/guide/google/gcm/index.html Oct 31 11:49:41 rayglide theres this thing called osmdroid, not sure if it will help but google it Oct 31 11:50:12 Hi guys, I've got a Kindle Fire HD 7", do you know which is his recognized res layout? Because it's not recognizing it as a sw600dp Oct 31 11:50:20 Gaz, I'm digging it currently but not sure where to start Oct 31 11:50:33 DysonReturns, I'll check it out.. Oct 31 11:50:49 yeh, i didnt get great performance, i moved onto qozix.map which im having some issues with too but its not bad Oct 31 11:51:14 FireAndIce: there are nice videos on youtube from Google IO. Oct 31 11:51:25 if you want a basic overview. Oct 31 11:51:34 anyone aware of a solution that let's a listview accept input on multiple regions? Like a "+" to expand an item, like a sublist, or maybe a rating bar to rate an item? Oct 31 11:52:00 DysonReturns, ok.. Oct 31 11:52:42 Gaz, I'll check this qozix.map Oct 31 11:52:54 Ok, how do you send a message or whatever from activity b to activity a, to tell it, for instance, that it should refresh a listview or not. Onsaveinstancestate and 0npause dont get called, as activity a is still in memory... Oct 31 11:53:02 rayglide its nice, altho im having problems with the geolocation stuff right now Oct 31 11:55:27 qkzoo1978 -u can use intent.setData Oct 31 11:55:32 then startActivity(intent); Oct 31 11:56:03 ...but the activity is already running? Oct 31 11:56:21 will prob just call its onResume then Oct 31 11:56:25 Hi guys, I've got a Kindle Fire HD 7", do you know which is his recognized res layout? Because it's not recognizing it as a sw600dp Oct 31 11:56:50 qkzoo1978 so same apart from onresume gets called and not oncreate Oct 31 11:56:53 Onresume not called beecause was never paused.. Oct 31 11:57:08 will be if u launch a new one tho Oct 31 11:57:37 as soon as an activity isnt on screen it gets paused Oct 31 11:58:05 Ahh, if i tell it to load actovity A, it will stop activity A and reload it? Oct 31 11:58:15 yes Oct 31 11:58:17 i think so Oct 31 11:58:35 u can just put system outs in all the life cycle methods Oct 31 11:58:38 then its clear to see Oct 31 11:59:06 i found that if i have activity A open a browser Oct 31 11:59:18 and then the browser trys to run activity A again, it spawns a second instance of it Oct 31 11:59:31 which has different local variables Oct 31 11:59:41 yeh Oct 31 11:59:53 thats how it should work i think Oct 31 12:00:03 Ok, thank you. According to this, onpause, resume not always called, hence the confusion: http://stackoverflow.com/questions/4096169/onsaveinstancestate-and-onrestoreinstancestate Oct 31 12:00:08 you need to store the state of the variables when it pauses Oct 31 12:00:20 in my case, it messes up the login process some, and if you hit back twice, you can actualy get to the first instance Oct 31 12:00:24 dont think ive ever seen onresume not get called Oct 31 12:00:29 which is still waiting for you to login Oct 31 12:00:39 i found some flags to override it Oct 31 12:01:02 Hows that clever? Oct 31 12:01:57 qkzoo1978: android:launchMode on the Oct 31 12:02:44 Cool, i will check it out, thanks! Oct 31 12:03:08 you can set similar flags at run-time, in the intent Oct 31 12:03:13 to make it more controlled Oct 31 12:03:33 ...cuz something goofy is going on like you menti0ned. Ive seen up to 3 seperate instances running recently Oct 31 12:03:55 i tracked it down by putting Log.v calls in onCreate Oct 31 12:04:04 and could clearly see it making new ones, rather then resuming old Oct 31 12:04:20 and by pokign the back button, i got to the old ones Oct 31 12:04:33 i'm thinking i should just redo it with fragments and 1 activity Oct 31 12:04:35 more controled Oct 31 12:05:07 Probably how i should uave, but i hate to start from scratch again. Oct 31 12:05:34 i used a second project to try that method out, and it came out much easyer Oct 31 12:06:45 bbl Oct 31 12:09:04 Singleinstance l0oks promisimg, that what u used? Oct 31 12:13:43 Hi all Oct 31 12:14:03 I have installed android-sdk and android-sdk-platform-tools in 64bit archlinux Oct 31 12:14:22 And ADT is installed on Eclipse 4.2 (Juno) Oct 31 12:14:39 But when I want to create a new AVD, I get the error: Oct 31 12:14:40 32 bits compatibility lib Oct 31 12:15:05 'A target must be selected in order to create an AVD' Oct 31 12:15:13 Ivru: All installed Oct 31 12:15:28 have you configure adt to point to your sdk Chatterbox ? Oct 31 12:15:49 Ivru: Yes, it's located in /opt/android-sdk Oct 31 12:16:10 you must then download the API lvl you want Oct 31 12:16:22 Ivru: I have located that when first opening eclipse with ADT, with the option use existing sdk Oct 31 12:16:25 then when creating the avd you can chose which target to use Oct 31 12:17:08 Ivru: The option is off, just like the picture here:http://developer.android.com/tools/devices/managing-avds.html Oct 31 12:17:54 Ivru: And I can't create a new app following this tut: http://docs.phonegap.com/en/2.1.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android Oct 31 12:17:54 Chatterbox: have you download the API before ? Oct 31 12:18:05 Ivru: No Oct 31 12:18:24 that's why you cannot choose it... Oct 31 12:18:44 Ivru: I go to Android SDK Manager, but it says it cant install anything Oct 31 12:19:02 Ivru: What ever I choose, I get an error saying it can't install it Oct 31 12:30:53 Is there a reliable website to look at high ranking search terms on Google Play? Oct 31 13:05:01 hello, how to enable function hints, when You type for example toast. it shows you the rest ? Oct 31 13:05:13 in eclipse* Oct 31 13:05:41 aww i got it Oct 31 13:05:44 ctrl+space Oct 31 13:05:54 :) Oct 31 13:14:50 Hello, I am wondering if someone could help me set up my dev environment. Oct 31 13:15:07 hi, I'm implementing a dialog (by extending DialogFragment) and my dialog doesn't have any 'Done' & 'Cancel' buttons - am I supposed to add those myself by putting buttons into the fragment layout and then handle them, or is there some other way I'm supposed to get them? Oct 31 13:15:11 are you having a specific problem boxer? Oct 31 13:15:33 Yes, my version of Java is 1.7 but i need 1.6. I'm using Ubuntu 12.10 Oct 31 13:16:01 i'm trying to build the source Oct 31 13:16:38 i havnt built the source but cant help you there Oct 31 13:16:48 my friends Oct 31 13:16:50 Oct 31 13:16:50 Oct 31 13:16:51 if you have the wrong java version ask in #java Oct 31 13:17:08 ok, thanks, i'll check there Oct 31 13:17:16 have you ever built kernel? Oct 31 13:17:19 goes to android.manifest ? Oct 31 13:17:23 no i havnt Oct 31 13:19:37 anybody ? Oct 31 13:20:05 does it go between in android.manifest ? Oct 31 13:20:51 zax55: it goes in the manifest, yet Oct 31 13:20:53 zax55: it goes in the manifest, yes Oct 31 13:21:13 between in android.manifest ? Oct 31 13:21:15 zax55: at the top level though Oct 31 13:21:19 ok, ok Oct 31 13:21:22 not inside Oct 31 13:21:23 thank You very much! Oct 31 13:21:27 ok, thanks DR01D-Engineer Oct 31 13:21:27 :) Oct 31 13:22:44 i'm just getting started, but this is great Oct 31 13:26:50 marsilainen: just wanted to ask, what should i do, to "free roam" the buttons ? they always stick to the choosen layout Oct 31 13:27:19 to position them with a mouse, for example Oct 31 13:28:58 someone used Accessiblity on android? Oct 31 13:34:53 Hi guys, I've got a Kindle Fire HD 7", do you know which is his recognized res layout? Because it's not recognizing it as a sw600dp Oct 31 13:37:38 hmmm, why this piece is not working ? Oct 31 13:37:39 public void kameragora (View v) throws MalformedURLException { Oct 31 13:37:39 Toast.makeText(getApplicationContext(), "wiadomosc test", Toast.LENGTH_SHORT).show(); Oct 31 13:37:39 URL connectURL = new URL("http://192.168.1.15/cgi-bin/camctrl.cgi?move=right"); Oct 31 13:37:39 } Oct 31 13:38:32 pastebin pls, dont paste here Oct 31 13:39:37 ok Oct 31 13:40:17 What conceivable reason could there be that this function http://pastebin.com/kimZPJDh seems to work perfectly, throws no exceptions, but the file is never created? Oct 31 13:40:30 and i think toast need activity context, application one not enough, but now im not sure about it Oct 31 13:41:02 oh application is enough, sorry Oct 31 13:41:21 http://pastebin.com/X9DMDxUw Oct 31 13:42:03 where you call kameragora function? Oct 31 13:42:09 on buttonclick Oct 31 13:42:20 i have only 1 button in this app Oct 31 13:42:28 and you get ioexception or whats the problem? Oct 31 13:42:36 when i;m clicking the button, the toast message shows up Oct 31 13:42:57 it doesn't sent the http url Oct 31 13:43:01 send* Oct 31 13:43:49 i just need to send "http://192.168.1.15/cgi-bin/camctrl.cgi?move=right" to a camera, after clicking a button, but i can;t figure it out Oct 31 13:44:04 what about httpurlconnection.connect? Oct 31 13:44:36 how to implement that ? i;m very sorry, i;m just getting started :( Oct 31 13:44:54 just read the manual about httpurlconnection Oct 31 13:45:19 it wont be opened by a browser ? Oct 31 13:45:31 ? Oct 31 13:45:54 normally when You click on a url it opens in a browser Oct 31 13:46:16 i don't need to open it in any aplication, i just need to send the request Oct 31 13:46:22 i dont think so if you setup a urlconnection it will send the request Oct 31 13:46:24 can it be done with this function ? Oct 31 13:46:34 If i want to create a music player that works outside even when the application is in the foreground, do i have to use an IPC? Oct 31 13:46:35 ok Oct 31 13:46:40 you will need connect or read input stream for send the request Oct 31 13:47:04 oops, forget outside Oct 31 13:47:53 ok i'll rewrite it Oct 31 13:48:06 If i want to create a music player that works even when the application is in the background, do i have to use an IPC? Oct 31 13:49:23 What do you guys think: Half a year from now, the majority of Android users will use: 2.x, 3.x, 4.x? Oct 31 13:49:42 2.3:( Oct 31 13:49:50 supposed to develop an application for 2.3, but release is not until february Oct 31 13:50:15 and i honestly think by then, more users will have upgraded to a newer phone, or upgraded their phones/teblets Oct 31 13:50:25 users are stucked to 2.x manufacturers didnt make new firmwares Oct 31 13:51:03 oi oi oi Oct 31 13:51:15 if I run a background task on THREAD_POOL_EXECUTOR, and that task uses mkdirs(), it means obviously that several mkdirs() will run at the same time... I imagine some of them randomly and haphazardly fail because there is some sort of "flood limit" Oct 31 13:51:21 would that be correct? Oct 31 13:52:10 I doubt people conciously added a limit of simutaneous mkdirs Oct 31 13:52:37 I mean, standing of October 1st, there was already 25% of users using 4.0.3 Oct 31 13:53:06 Strangebrew: most of music player use service for play music, and manage it via ipc (but basicly the sdk ship the methods for work with ipc) Oct 31 13:55:20 ok, thanks ixc Oct 31 13:56:11 is there a way to extend the text selection functionality? Oct 31 13:56:17 or to get the text selection globally Oct 31 13:57:30 http://pastebin.com/Qe8TbBZC Oct 31 13:57:45 still not sending the request Oct 31 13:59:43 blez I don't think selecting text is part of the input method, meaning probably not Oct 31 14:03:47 aha Oct 31 14:08:57 Gday all, trying to compile android 2.3.4 for SGS2. I have an error /usr/bin/ld: connot find -lz Does that mean it can't find library zlib? Oct 31 14:09:45 it does, though that's not really a question for here - #android-root might be better, this channel is app dev Oct 31 14:10:24 dragorn, Cool, thanks :) Oct 31 14:12:11 Mechdave: it cant find libz.so Oct 31 14:12:52 clever, thanks. That should be found in Ubuntu repository I hope :) Oct 31 14:13:18 it likely wants an android version, which it should be providing/building itself Oct 31 14:15:07 Hi, can i call a system service from a broadcast receiver ? Oct 31 14:15:55 Is it normal for an image gallery type app to take up 12-19MB of memory at runtime? Oct 31 14:17:12 clever, is zlib a compression library? Oct 31 14:18:46 Mechdave: yeah Oct 31 14:19:08 it says, insert "finally" to end "try", i;m adding "finally" it says styntax error, delete "finally" Oct 31 14:19:57 clever, Thanks, have now installed it and got around the problem :) Oct 31 14:21:26 Clever, used your earlier suggestion and onresultreturned (both new to me) problems solved, thanks! Oct 31 14:26:53 hi Oct 31 14:27:11 hi Oct 31 14:28:25 Can one make free Land-LINE calls using SIP? without skype Oct 31 14:28:47 hey folks! Oct 31 14:29:19 convivial: Well, you need an endpoint. Oct 31 14:29:31 convivial: you would need a station connected to the land lines Oct 31 14:29:38 ah damn, i was too slow :D Oct 31 14:30:10 endpoints and/or station can be found for free? is there a keyword I can use to google for one? Oct 31 14:30:18 I have an alarm clock that bring a popup in front of all apps, I need to do the same but It doesn't look like notification or dialog, is there another component that I may use? Oct 31 14:30:21 convivial: No. If you need to make phone calls using a phone, may I suggest the phone? Oct 31 14:30:52 freeone3000: phone calls cost money Oct 31 14:31:06 convivial: So does network traffic. So does leasing a SIP endpoint connected to a telephone line. Oct 31 14:31:25 Can you make calls with sip? Yes. Free? Probably not - ain't nothing free. Someone, somewhere, is paying. If it isn't you, it means they're getting their moneys worth from you some other way - like ads or data mining. Oct 31 14:31:53 I think I can Oct 31 14:31:56 You can get sip endpoints for pennies if you're willing to expend the effort to also pay for a system to be running 24/7, on a big internet pipe, etc. Oct 31 14:32:09 convivial: Why? What evidence do you base this on? Oct 31 14:32:17 voipjet is one if I recall, if they're still in business. Oct 31 14:32:35 I thought I read it somewhere but I lost article Oct 31 14:32:40 That particular one closed Dec. 2011. Oct 31 14:33:00 freeone3000: shows how long i've been out of voip space Oct 31 14:33:49 by the time you factor in the cost of powering a home server, or leasing a datacenter server/virtual box, plus learning asterix and getting it configured assuming you value your time at all... ain't nothing free, and it might not even be that cheap. Oct 31 14:36:53 can anyone share 1 minute to help me ? Oct 31 14:38:40 sure what do you need? It's better to ask the question then ask for help Oct 31 14:38:42 zax55: just ask your question. If someone is around and available, they'll help. Oct 31 14:39:55 it says, insert "finally" to end "try", i;m adding "finally" it says styntax error, delete "finally" Oct 31 14:41:34 zax55: try { } finally { } is always structured as such. Oct 31 14:43:08 Is it possible to load a background activity into a view that isn't "showing" and then when my sliding menu toggles that view the activity would be ready to go? If that makes sense? Oct 31 14:43:59 docmur: no, that doesn't make sense Oct 31 14:44:00 I have the toggling showing the sliding in view correctly, I just need the activit that should be attached to it running Oct 31 14:44:04 activities do not work that way Oct 31 14:44:17 Fragments work similar to that. Oct 31 14:44:54 is there a method for getting the default android camera DCIM folder, or can I ALWAYS assume that it'll be in DCIM/Camera? Oct 31 14:45:21 yes Oct 31 14:45:32 Tee_Pee: do not make that assumption Oct 31 14:48:54 for my alarm stuff, can I launch a dialog from the AlarmManager and it will bring the dialog to the front? Oct 31 14:50:24 this code hangs the application Oct 31 14:50:25 http://pastebin.com/G9QuydCj Oct 31 14:50:33 please anyone help ? Oct 31 14:51:44 dont do your IO traffic on ui/main thread Oct 31 14:52:31 i deleted throws IOException, InterruptedException Oct 31 14:52:54 and dont block with wait ur ui/main thread Oct 31 14:55:01 now with urlConnection, eclipse shows "unhandled exception type IOException" Oct 31 14:55:48 should i make another activity, and do that things there ? Oct 31 14:57:01 start a new thread or use an AsyncTask Oct 31 14:57:33 http://developer.android.com/training/basics/network-ops/index.html Oct 31 15:04:36 I'm trying to format a date using SimpleDateFormat ("E, MMM dd, yyyy - HH:mm aa"), but it defaults to midnight of the day inputted without getting the time of day. The string I'm using is "Tuesday, October 30, 2012 - 10:30 am", so it gives Tuesday, October 2012 at 12:00 AM in my time zone. Any idea why? Oct 31 15:07:28 baptistem: http://androiduiux.com/2012/08/09/true-multitasking-in-android/ Oct 31 15:08:59 There is a function that I've overloaded, that has a View passed in as the first parameter... Is there any way to see what is currently in view that was passed in? Oct 31 15:09:18 Is there some sort of logging function that will list the elements in the view? Oct 31 15:09:58 I'm assuming that there is a framelayout, and some other things, but it would be great if I could see it somehow. Oct 31 15:10:17 Jonathan_Eyre: See... what? Its class? Oct 31 15:12:02 Where is the best place to go find beta testers? Oct 31 15:12:03 Urgh... I'm not certain. It's just sort of black magic at this point. Somehow I get the 'onShowCustomView', and magically the video plays. I don't know how to analyze the input to see what options the function gets. Oct 31 15:13:11 dragorn: this look awesome thanks! Oct 31 15:14:35 Somehow, the WebChromeClient knows to launch the video when this function gets called. I would desperately like to run the video player with my own options at that point. Oct 31 15:15:40 Jonathan_Eyre: Okay. Sounds like you just want to set a breakpoint and attach a debugger there. Oct 31 15:15:44 Beta testers.... best place to find some? Oct 31 15:15:59 for what? Oct 31 15:16:15 qkzoo1978: Your immediate family? College friends? Next door neighbors? Oct 31 15:16:18 New app. Oct 31 15:16:39 Random subjects. Oct 31 15:16:49 people on IRC you offer $5 to. Oct 31 15:16:51 facebook Oct 31 15:16:55 You could rig up a test suite and do Mechanical Turk. Oct 31 15:17:08 bug bounties Oct 31 15:24:17 freeone3000: Best advice ever. No matter where you go, no matter how long you run, I will hunt you down and give you a manly hug, followed by a hearty high five. Oct 31 15:26:27 Haha, unfort7natly i dont have many nerdy fb friends or budget Oct 31 15:27:50 hello.. I'm wondering when I launch my app i get a message that it has stopped... Is there a place where I can see the an output of errors that caused this to happen? Oct 31 15:27:53 There a good forum for rounding up testers? Oct 31 15:28:10 i think there are companies you can pay for it Oct 31 15:28:16 helbom logcat Oct 31 15:28:27 qkzoo1978, nothing appears in logcat :/ Oct 31 15:28:33 Canadiancow, its freeware Oct 31 15:28:46 if nothing appears in logcat it isnt detecting your device Oct 31 15:28:54 helbom, stacktrace Oct 31 15:29:40 DR01D-Engineer, I do get stuff in logcat, but nothing related to this Oct 31 15:30:17 qkzoo1978, I'll check it out... it's my first app, so it's all fairly new to me :P Oct 31 15:30:18 there should be some hint in logcat Oct 31 15:30:35 sometimes it is hard to see among the enourmous amount of messages Oct 31 15:30:54 i'm not getting an enormous amount :P Oct 31 15:31:08 helbom, if not, start adding debug lines to find where it breaks Oct 31 15:32:09 this is what i get when I start the emulator http://bildr.no/image/1306056.jpeg Oct 31 15:32:28 Log.d(packageName, "************* Does this show up ***********"); Oct 31 15:33:10 i use System.out.println("message"); Oct 31 15:33:58 dont use that Oct 31 15:34:02 use Log.whatever Oct 31 15:34:30 why is Log.d better? Oct 31 15:34:31 If you leave that 9n yo8r code, won't it comp8le with it? I was under impression debug statements 8gnored for releases (non debug) Oct 31 15:36:28 Am I incorrect, if so, I have a lot of code to clean up! Oct 31 15:37:23 I see. Log. offers more options Oct 31 15:37:26 trying to work it out now.. I'll get back with any outcome :) Oct 31 15:38:51 I love the whole logcat thing. ive not done much development, but man, is it useful Oct 31 15:39:05 added Log.d(TAG, "***** IS IT WORKING? ******"); as the first line in onCreate() in MainActivity, and nothing appears in logcat Oct 31 15:39:30 TAG is a constant with the same name as the class Oct 31 15:39:44 like sugested http://developer.android.com/reference/android/util/Log.html Oct 31 15:40:34 Halbom, start working backwards. Oct 31 15:41:36 What does your logcat say? Oct 31 15:43:25 You may need to filter the logcat to see everything. I usually have my tag set to the packagename, so i see all relevent details. Oct 31 15:44:43 qkzoo1978, nothing else than in the screenshot i linked to Oct 31 15:45:40 from where can i get images for control layout, like orbs in gta iii or in counter strike for android ? Oct 31 15:46:33 I'm doing a long HttpClient GET in a AsyncTask. If I cancel the async task, will the GET be interrupted? Oct 31 15:46:41 Helbom, its probably crashimg before it can post to logcat maybe? Im fairly new to this myself Oct 31 15:48:22 ok, so I reverted it back to something I knew was working yesterday Oct 31 15:48:40 and it appears to be something to do with the ListView Oct 31 15:49:04 when extending Activity it works, but not ListActivity Oct 31 15:56:29 hi, if anyone can help, I'd be grateful http://stackoverflow.com/questions/13161657/is-there-any-available-library-for-displaying-offline-raster-map-in-android Oct 31 15:56:49 I'll offer bounty if I have to Oct 31 15:57:29 but right now I have to go offline Oct 31 15:57:34 so any help is appreciated Oct 31 16:19:00 I'm looking at the variables in debug at a breakpoint. It shows that my View has many 'objects' in it (this$0), such as a MediaPlayer, a Uri with the video I should be playing, and variables like mAutostart that I can see is set to true. Oct 31 16:20:04 How do I get a handle on the objects? Do I typecast like "MediaPlayer mp = (MediaPlayer) view;" Oct 31 16:20:24 yes Oct 31 16:20:38 Or is there a function like getMediaPlayer or getObject(mPlayer)? Oct 31 16:20:48 same as if you're fetching something from the layout, ie. TextView t = (TextView)findViewById(R.id.mytextview); Oct 31 16:21:46 So MediaPlayer mp = (MediaPlayer) view; and Uri myUri = (Uri) view; would both work? Both lines pulling objects out of view? Oct 31 16:22:02 oh Oct 31 16:22:14 no, type casting is for when the view IS what you're casting it to Oct 31 16:22:37 if you want to extract data from the views you have to first cast it to what it is, then use the supplied functions in that class to get/set the info you want Oct 31 16:23:59 How would I read out a variable like mAutostart, then? I can see the value in debug, but I don't know how to view the value in code. Oct 31 16:24:18 huys I am just curious, since I see many applications ported to both Android and iOS, Android SDK for eclipse does it support cross-compiling to run on iOS as well? or you have to write the project entirely again on Obj-C and that stuff? Oct 31 16:24:30 using either functions that can get/set it or by making the variable public Oct 31 16:24:36 i have no idea how this MediaPlayer works Oct 31 16:24:54 Okay, thanks. Oct 31 16:25:42 EtherNet: you have to rewrite it. Or you have to use a cross-platform toolkit. Generally they're not nearly as nice as doing a native UI. Oct 31 16:25:50 EtherNet: Apple doesn't let anything but xcode build ios apps Oct 31 16:26:21 dragorn, that's exactly what I thought.. but as I can see apps that looks pretty similar, I was thinking that maybe there's something there that I didn't know to compile different targets at once Oct 31 16:26:23 EtherNet: you have more flexibility on the android side of things (you could, I suppose, use the gnu obj compiler and link it into native code), but you still have to write the android UI on top. Oct 31 16:26:43 dragorn: I believe you can build them outside of the IDE...but it's been a while since I've done iOS development Oct 31 16:26:46 nope. Either it's a good port job, or a toolkit that runs on both platforms w/ native backend code, or no backend code Oct 31 16:27:09 lethjakman_work: maybe. you can't built them on a windows or linux box tho Oct 31 16:27:13 hey guys, my app's not showing up in the launcher...what could cause that? it's compiled and built Oct 31 16:27:16 and installed Oct 31 16:27:32 you don't have a launcher intent filter Oct 31 16:27:36 lethjakman_work: you probably didn't put the proper intents on your activity in your manifest Oct 31 16:27:45 dragorn: true, and I would definitely say that's ridiculous. after they went over the deep end with their patents, I won't support them. Oct 31 16:27:48 create a new app and copy paste the intent filter that is put by default in the main activity Oct 31 16:28:14 EtherNet: generally you're better off making a proper port w/ a native UI on each platform. It's more work but it's a better user experience Oct 31 16:28:43 EtherNet: the stuff that really benefits from toolkits and such are mostly things like games, where it's drawing opengl into a view and doesn't much care what the device native UI is like Oct 31 16:30:01 (even then, spend the time to port the platform stuff properly, and handle android lifecycle stuff like being put in the background, etc. a lot of shitty ports don't, and keep playing music, or crash, or restart) Oct 31 16:32:20 with sqlite, does onUpdate() exist? it seems that in the official docs and most other websites, onUpgrade() is used... but strangely a site here and there will have onUpdate() instead, with the same parameters Oct 31 16:33:23 dragorn, yeah thanks a lot for your answer Oct 31 16:33:25 thanks guys I'm testing that out Oct 31 16:34:14 https://gist.github.com/9eda52ce22675c7aaba1 Oct 31 16:34:19 is that what you guys meant? Oct 31 16:36:46 lethjakman_work: yes Oct 31 16:38:35 haha! I got it! Thanks for the help! Oct 31 16:38:46 I was also wondering if there's a good simple launcher that allows for app hiding? Oct 31 16:38:58 one that I could just load on a phone Oct 31 16:39:25 manifests are weird...I think I'm finally starting to understand them though. Oct 31 16:42:55 I'm launching an intent from background but nothing happend (as magikarp doing splash), I add the flag "from background" but I may miss something, any clue for me? Oct 31 16:44:31 lethjakman_work: there's a lot of launchers out there. With android 4, however, you can disable built-in apps you don't want as part of the OS. Oct 31 16:45:46 Hello. How do I clean BufferedReader? Oct 31 16:46:09 clean it? Oct 31 16:46:23 dragorn: This is a weird situation, but that's not what we want. My employer is using android for a custom use scenario. Oct 31 16:46:57 noob question alert: I have a XMLParser class (part from a tutorial) and its in the same package as my activity class.. do I still have to import that XMLParser class? Oct 31 16:47:38 Helbom: are you importing that package already? Oct 31 16:47:39 if so then no Oct 31 16:48:05 hmm Oct 31 16:48:12 joered: clean. The reset method doesn't work. Oct 31 16:48:47 kosc: i have no idea what "clean" means to a BufferedReader. you will have to explain conceptually what you want. Oct 31 16:49:01 i don't have a import on the package no.. but both the activity and the xml class has the same package line on top of the file Oct 31 16:51:48 Helbom: I'm pretty certain you're fine. if it throws you errors you'll know why. Oct 31 16:51:58 when I call onSearchRequest() a search bar gets thrown at the top of screen, is it possible to move the location of the search bar so I still get access to the action bar that it sits over Oct 31 16:52:31 not seeing any errors.. just a forced close Oct 31 16:53:36 Helbom: look at logcat for the stack trace and debug from there. Oct 31 16:53:46 nothing in logcat :( Oct 31 16:53:58 if it force closed, then yes, there is Oct 31 16:54:14 dragorn, nope :( Oct 31 16:54:27 the logcat hasnt change from the screenshot i linked here earlier Oct 31 16:54:35 * dragorn shrugs Oct 31 16:54:50 Never, ever, ever, on any android platform, seen a force close not result in data in logcat Oct 31 16:55:00 so you have a magic device that can't be debugged Oct 31 16:55:03 Helbom: adb's on? Oct 31 16:55:23 dragorn: neither have i, but i have (lots of times in fact) seen folks claim the error wasn't there because they can't read. Oct 31 16:55:26 I've turned that off on accident and had to spend time figuring out why... Oct 31 16:55:50 also if you're using the eclipse log view, make sure you're not filtering Oct 31 16:55:54 jasta, or something is not working as it should? i do know enough to see an empty console window Oct 31 16:56:07 Helbom: are you on linux or mac? Oct 31 16:56:09 terminal, 'adb logcat'. Oct 31 16:56:14 i'm using Sublime Text 2 with android plugin.. windows Oct 31 16:56:23 7 Oct 31 16:56:26 can you go to a command line and type in "adb shell"? Oct 31 16:56:28 well who the fuck knows what st2 is doing. Run logcat from a terminal and read. Oct 31 16:56:47 hehe, he won't know how to do that. i'd bet $20 :) Oct 31 16:56:54 I've seen a force close with no mention in logcat.. That was annoying Oct 31 16:57:22 Something with textview's autolink and hw accel.. Rather strange Oct 31 16:57:24 SimonVT: i doubt that very much. i've been developing on android since pre 1.0 and i have never once seen that save for legitimate human error (that is, i missed it) Oct 31 16:57:28 SimonVT: was it continuous or a one time thing? Oct 31 16:57:31 SimonVT: Any close I've seen has SOMETHING in logcat. It may not be a full stack trace Oct 31 16:57:50 jasta: The most confusing was a teammate in native code doing exit(1) Oct 31 16:57:57 even if the process dies from a bus error, you'll get a mention of it. Oct 31 16:58:02 jasta: that leaves a very fragmented/terse entry in the logs. It's still there tho. Oct 31 16:58:14 yes you will :) Oct 31 16:58:25 i wonder why people get so hostile when people working on their first app comes to ask questions.. Oct 31 16:58:33 jasta: All I got was 1 line of something something has closed.. If you want to call that a mention, sure :p Oct 31 16:58:50 Helbom: if you really want to know, it's because so many people appear to not be trying. Oct 31 16:59:00 Helbom: Lol don't worry about it. IRC people tend to be angry. there are lots of nice ones too. did you try running "adb shell"? Oct 31 16:59:13 and it's hard to know whether that's you or not when we're communicating only through text chat. Oct 31 16:59:34 lethjakman_work, yeah.. i just have to add it to my path and i'll try again Oct 31 16:59:50 SimonVT: i do call that a mention, because it mentioned it. :) Oct 31 16:59:51 alright, just lemme know if that pops you into an android shell or not Oct 31 17:00:21 lethjakman_work: the problem is whatever weird plugin he's using is either not getting the log or filtering it. he can solve it just by running logcat in a terminal, he doesn't need to go into the device shell Oct 31 17:00:44 dragorn: well, it's one in the same really. adb logcat just runs adb shell logcat Oct 31 17:00:48 dragorn: I was just guessing that he had debugging off Oct 31 17:00:50 likewise, adb shell, then typing logcat does the same Oct 31 17:00:58 SimonVT: it at least gives you the signal that killed it, and maybe the return code Oct 31 17:01:12 jasta: yeah, but no reason to dump him into a shell when his issue is that he's not looking at the logs Oct 31 17:01:16 it helps with errors and stuff, where I go to debug why my logging isn't working. Oct 31 17:01:36 btw, proclogcat for life: http://devtcg.blogspot.com/2010/04/logcat-improved.html Oct 31 17:01:56 lethjakman_work, i'm in adb shell now Oct 31 17:02:09 only thing there is a # Oct 31 17:02:20 huh...root? Oct 31 17:02:56 try running logcat now Oct 31 17:03:30 oh crap... now there we have something... when running adb logcat from st2 nothing appeared Oct 31 17:03:33 eclipse and intellij have so many shortcomings that I think I'm just going to start developing android apps in windows notepad Oct 31 17:03:53 jasta: your script there will come in handy. but, can you make it a windows notepad plugin? Oct 31 17:03:54 Helbom: with android having a # means you have root. usually you have to type su to access it though Oct 31 17:04:13 oh maybe because I'm the admin account for the computer Oct 31 17:04:16 dunno Oct 31 17:04:18 Helbom: they were right there's something wrong with your plugin. Oct 31 17:04:25 it shouldn't be that, it's something to do with the phone Oct 31 17:04:25 lethjakman_work, indeed Oct 31 17:04:27 haev you rooted it? Oct 31 17:04:35 lethjakman_work: probably the emulator Oct 31 17:04:37 I need help with intent/pendingintent, I put my intent in a pending intent, and it's look like that all intent's flag are ignored Oct 31 17:04:38 it's an emulator Oct 31 17:04:56 Either the phone is rooted, it's an emulator, or it's some sketchy china device that ships rooted (mk802, etc) Oct 31 17:05:03 baptistem: PendingIntent's are tricky because they're serialized and stored (uniquely keyed, too) in a system process. Oct 31 17:05:07 jasta: ive noticed when running the logcat part of the eclipse plugin Oct 31 17:05:09 baptistem: so you have to think with that restriction in mind Oct 31 17:05:16 jasta: its capable of showing many things logcat doesnt, like the package name Oct 31 17:05:17 jasta: emulators have root? that's good to know Oct 31 17:05:34 clever: hi clever! Oct 31 17:05:34 jasta: i'm wondering, is that a secondary format (more verbose), or is it just parsing for the pid like that plugin? Oct 31 17:05:47 baptistem: for example, you need to pay attention to the flags that are available. if you do things like change the extras but don't provide the right flag, the new extras will be dropped because extras don't contribute to uniqueness Oct 31 17:06:09 clever: proclogcat does that in a different way. Oct 31 17:06:18 or rather, the visual output is different, but the effect is the same. Oct 31 17:06:44 clever: and yes, it does it the same way that proclogcat does. it's just tracking pid. Oct 31 17:06:52 jasta: ah Oct 31 17:06:54 the eclipse logcat always gets stuck. it seems to break whenever you use more than one device or a device and an emulator. Oct 31 17:07:04 and yeah, I know what scroll lock is. Oct 31 17:07:06 it's not that. Oct 31 17:07:13 tdignan: ive noticed that it clears itself when the app exits due to an exception Oct 31 17:07:16 jasta: I'm trying to bring back to front an app, I have a FLAG_ACTIVITY_REORDER_TO_FRONT to my intent and a CANCEL_CURRENT on my pendingintent where is my mistake? or is there a better solution? Oct 31 17:07:23 clever: how convenient... :) Oct 31 17:07:25 clever: someone added a cool patch to proclogcat i've been meaning to apply that lets you use regexp too Oct 31 17:07:29 tdignan: yep! Oct 31 17:07:31 so you can do plogcat com.yourcompany.* Oct 31 17:07:43 Hello. I'm looking for the activity that controls the phone when there's an incoming call and specifically the code that sends the call_id to a Bluetooth headset with LCD. Any ideas? Oct 31 17:07:46 Has anyone ever gotten a web view to consistently, correctly report the height of the content inside of it? I'm nearly at the point where I want to say that this just isn't possible. Oct 31 17:07:57 in the newest ADT there is an option to pop up logcat on exceptions Oct 31 17:08:01 jasta: myself, i just prepend a simple string to TAG in every class Oct 31 17:08:09 clever: unnecessary. Oct 31 17:08:10 :) Oct 31 17:08:10 I haven't used the newest ADT for that long yet, though. Oct 31 17:08:10 jasta: uniqueid.classname for example Oct 31 17:08:16 then i can just grep --color on logcat Oct 31 17:08:32 clever: the benefit of plogcat is that actually you will still get system messages from that pid as well Oct 31 17:08:39 so you'll see GC events and other goings on Oct 31 17:08:54 and you dont have to do any specialized coding. you can also of course get System.out messages too Oct 31 17:08:56 jasta: i mostly get those with -C5, but its not perfect Oct 31 17:10:47 jasta: it looks ok for now, thx for help :) Oct 31 17:11:17 baptistem: sorry i missed your earlier comment. looks like you figured it out though. Oct 31 17:12:56 http://pastie.org/private/putulqxwk15uwg3r1vy2q that's the logcat output Oct 31 17:13:08 Helbom: i can read plainly, as english, the error. Oct 31 17:13:10 can't you? Oct 31 17:13:52 Most obvious exception name.. Still people can't figure it out ;d Oct 31 17:14:35 let me guess.. NetworkOnMainThread? Oct 31 17:14:39 yeah Oct 31 17:14:50 y u network on main thread bro? Oct 31 17:15:35 i'm trying to learn.. Oct 31 17:15:50 * jasta grumbles Oct 31 17:15:51 well, what did you do that required the network? Oct 31 17:16:02 why doesn't the Loaders tutorial mention anywhere _why_ Loaders are superior to traditional APIs? Oct 31 17:16:17 it just uses words like "best" and "improved", but no explanation as to why Oct 31 17:16:23 i can guess, but jeez. Oct 31 17:16:27 tdignan, trying to recieve a xml document from a url Oct 31 17:16:34 the tutorial is shit to be honest Oct 31 17:16:40 ok, do you understand what the main thread is? Oct 31 17:16:43 i;m doing everything like on tutorial Oct 31 17:16:59 aka, ui thread Oct 31 17:17:00 tdignan, not really.. it's my first time doing this :/ Oct 31 17:17:32 Helbom: well, unless you explicitly create a thread, or use an IntentService to get one implicitly, everything you do will be on the main thread, which means it blocks UI events Oct 31 17:17:57 try throwing a Thread.sleep(100000); in your activity's onCreate Oct 31 17:18:09 you should probably use an AsyncTask. Oct 31 17:18:10 Hey guys. Does anyone have an idea on how can I implement a horizontal slider like the datepicker here? http://misha.beshkin.lv/custom-datepicker-for-android/ I want to load the contents of an arraylist in the slider and show them to the user. I have been searching for hours but can't find anything so specific Oct 31 17:18:49 tdignan, thanks.. i'll try Oct 31 17:20:25 Helborn: http://developer.android.com/training/basics/network-ops/index.html Oct 31 17:22:20 doogan, thanks! Oct 31 17:22:45 np Oct 31 17:23:16 tdignan, that Thread.sleep() resulted in a "... is not responding. would you like to close" Oct 31 17:23:32 Can someone help me ? somehow i managed to lose my project in project explorer and project explorer. Now, when i try to import project into project explorer , it imports the project but every folder is empty or generated by eclipse, and my project is compiled into .jar file. How can i open it normal way ? Oct 31 17:23:52 project explorer and package explorer * Oct 31 17:25:33 Helbom: exactly -- how long does a typical call to the network take? a second or two? Oct 31 17:26:07 the same thing will happen with that, if you did it in place of the Thread.sleep... Except the Android team saved you from it by implementing an Exception to warn you. Oct 31 17:28:17 Does anyone have an opinion on what is the best lightweight QR/Bar code lib Oct 31 17:29:34 plase can anyone help me ? when i try to import project into project explorer it gets imported instead everythhing sorted into -src- folder and -res- e.t.c. it is in .apk file Oct 31 17:29:43 theTerry: ZXing Barcode Scanner has intents Oct 31 17:29:58 theTerry: and a ton of people have it installed already :/ Oct 31 17:30:45 theTerry: http://code.google.com/p/zxing/wiki/ScanningViaIntent Oct 31 17:30:45 I was going to choose ZXing, just wanted to ask before I got started Oct 31 17:31:16 theTerry: https://play.google.com/store/apps/details?id=com.google.zxing.client.android&hl=en Oct 31 17:31:20 theTerry: it's a good choice Oct 31 17:31:27 theTerry: note that it has 50-100m installs, too. Oct 31 17:31:39 (that's million) Oct 31 17:32:05 reason being, it's open source, free, and pretty decent ;) Oct 31 17:34:01 DOSP: you need to import it as an android project Oct 31 17:34:35 clever, thanks for response, i tried it everything, but i solved it by jamming around with workspaces Oct 31 17:34:51 but i tried android project, java project, everything..nothing.. Oct 31 17:35:18 DOSP: id nuke the workspace and start a new one then Oct 31 17:35:36 i needed to change workspace and import as JAVA project Oct 31 17:35:41 DOSP: sounds eclipse specific, i've never had that problem. new workspace, or look in the elcipse docs/wiki/something Oct 31 17:35:58 dragorn i fixed it, just posted how :) thanks all for reply :) Oct 31 17:36:00 it's definitely possible to confuse eclipse beyond repair Oct 31 17:36:07 ah Oct 31 17:36:24 admob doesn't show ads anymore since a few days Oct 31 17:36:29 does anyone have the same problem? Oct 31 17:36:37 sandy crushed in o.o Oct 31 17:38:29 dragorn, eclipse is shippied broken. you can't break a broken thing Oct 31 17:40:38 you can unbreak it Oct 31 17:47:45 spobat: admob will stop serving ads if there hasn't been activity in the app for a while Oct 31 18:05:56 I am using MediaPlayer to stream mp3 audio and LogCat spamms "message received msg=3, ext1=0, ext2=0" in evil red all over the place, what is this and how do I turn it off? Oct 31 18:06:51 Is there a place to actually see what the ic_ icons look like Oct 31 18:07:07 Waynes: some other process Oct 31 18:07:15 docmur: you should copy resources you want to use into your own project Oct 31 18:07:18 just label your logs and filter by that label Oct 31 18:07:19 (resources = icons) Oct 31 18:08:18 sampullman: okay Oct 31 18:08:30 okay so back to my initial question where I can I actually look at them Oct 31 18:09:49 Hello. I'm looking for the activity that controls the phone when there's an incoming call and specifically the code that sends the call_id to a Bluetooth headset with LCD. Any ideas? Oct 31 18:10:35 hm, i have a webview with a javascript interface that triggers a function which is supposed to enable/disable a button in the main view, but i get the exception "android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.", so i'm guessing the webview does things from another thread? what would be a good way to solve this? Oct 31 18:10:38 docmur: in your SDK folder Oct 31 18:10:49 kk thanks Oct 31 18:11:12 docmur: platforms/*platform*/data/res/drawable-[ldpi/mdpi/hdpi] Oct 31 18:11:19 you'll find them there :) Oct 31 18:11:42 got them :-) Oct 31 18:11:43 awesome! Oct 31 18:13:25 ah, runOnUiThread(new Runnable() { ... Oct 31 18:13:29 good stuff Oct 31 18:21:25 For the NDK, what actual device can be used to test out MIPS libraries? Are some of the cheap Chinese/Indian tables available in the US? Oct 31 18:21:43 deal extreme.com Oct 31 18:21:56 DX.com even Oct 31 18:22:15 actually, I don't recall seeing a MIPS there Oct 31 18:22:37 fmertz: ainol paladin Oct 31 18:23:17 ah Oct 31 18:23:21 http://dx.com/p/7-lcd-capacitive-touch-screen-android-4-0-tablet-pc-w-wifi-micro-sd-mini-usb-512mb-8gb-flash-117175 Oct 31 18:23:40 search for ainol on amazon and you'll see a bunch of $100 ones too Oct 31 18:23:42 i'd try on eof them Oct 31 18:24:07 oh, soldot Oct 31 18:27:46 Getting this error: java.lang.ClassCastException: android.webkit.HTML5VideoFullScreen$VideoSurfaceView cannot be cast to browser.acellus.com.HTML5WebView$MyWebChromeClient$VideoSurfaceView Oct 31 18:28:05 Any idea how I can import android.webkit.HTML5VideoFullScreen??? Oct 31 18:28:20 Jonathan_Eyre: that's because you can't cast UP Oct 31 18:28:20 It apparently did not come in my SDK... Oct 31 18:29:27 tdignan: What? Oct 31 18:29:29 Jonathan_Eyre: copy paste the inheritance heirarchies of each class into the channel Oct 31 18:30:02 Jonathan_Eyre: Lets say some Widgets are Wozzles. That doesn't mean I can just cast any old widget to a Wozzle. Oct 31 18:30:58 Right, so should I try to get android.webkit.HTML5VideoFullScreen imported in my project? Oct 31 18:31:12 It seems like that's the most straight forward way to do it. Oct 31 18:31:17 from what it sounds like, it already is in your project. Oct 31 18:31:27 the problem ist hat you're trying to cast it to the wrong VideoSurfaceView Oct 31 18:31:44 maybe you have your imports messed up Oct 31 18:31:45 No, I created my own VideoSurfaceView from scratch. Apparently it's not compatible. Oct 31 18:32:01 you imported the wrong one and inherited from it Oct 31 18:32:30 you need to understand what the cast actually does Oct 31 18:32:54 So... has anyone even heard of android.webkit.HTML5VideoFullScreen? My Eclipse IDE won't let me declare that sort of object. And importing it does not work beacuase apparently it does not exist in my SDK. Oct 31 18:33:09 I think that is the real problem. Oct 31 18:33:27 Jonathan_Eyre: the fact that you are getting that error is proof that you have an instance of it Oct 31 18:33:40 Yes, the one I coded by hand. Oct 31 18:33:47 So, that's junk. Oct 31 18:34:11 so is yours the browser.accelus.com one? Oct 31 18:34:21 (wtf at the package name) Oct 31 18:34:26 What line of code is throwing this? Oct 31 18:34:30 so.. I'm giving the HttpExample a go, and my code is identical to the one on the site, and it keeps throwing errors at me when building :/ so strange Oct 31 18:36:15 when extending AsyncTask it complains about the class not beeing abstract and not overriding a method... i do have the override for the method and if I make the class abstract it's obviously not possible to call it as the example wants me to Oct 31 18:37:15 You're probably doing it wrong Oct 31 18:37:46 dragorn: Thanks, I'll look that up. These came up on search, but it is hard to know if this has achieved any kind of sales. I realize MIPS is a blip at the most as compared to ARM, but I was trying to identify a tablet with at least some popularity within MIPS. Oct 31 18:38:29 let me try copy paste and see if that's the case Oct 31 18:41:08 SimonVT, I copied the code of the android site now and the same errors appeard Oct 31 18:41:46 Fix the code so it works Oct 31 18:46:28 Helbom: if you use code completion with ctrl + space, you can pull the method stubs in automatically Oct 31 18:46:47 then you won't make typos when you override methods. Also, you should be using @Override annotations. Oct 31 18:50:12 How do I auto-scroll content in my TextView to bottom? Oct 31 18:51:30 making an irc client? or a logger Oct 31 18:52:17 Sculptor: IRC client, yeap. Oct 31 18:53:09 You're putting everything in a single textview? oO Oct 31 18:53:11 kosc have you seen my IRC client? Oct 31 18:53:20 kosc: http://tapchatapp.com/ Oct 31 18:53:47 there are several ways to position a TextView Oct 31 18:54:17 scrollTo(...), requestRectangleOnScreen(...) Oct 31 18:54:27 depending on what works for you Oct 31 18:55:32 you also need to remove the topmost text, eventually. or not? Oct 31 18:55:50 SimonVT: for alpha-version it's enough. Oct 31 18:56:05 ctate: Thanks =) Oct 31 18:56:47 It'll take you 5 minutes to just use a listview ;O Oct 31 18:57:19 for irc content? i challenge the "5 minutes" assertion there :) Oct 31 18:57:29 LOL Oct 31 18:58:34 I'm assuming he already has a list of messages of some kind Oct 31 18:58:46 If he can add them to a textview, he can make a listview do it in 5 minutes :p Oct 31 19:00:16 SimonVT: I have a listView for servers. Oct 31 19:08:47 is there any way for me to change the drawing order of objects in the middle of an animation? Oct 31 19:09:03 or do I have to break it up into two separate animations which encompass the halves and flip the order manually? Oct 31 19:12:02 JakeWharton: ViewGroup.getChildDrawingOrder() Oct 31 19:13:07 API 1, nice. Thanks! Oct 31 19:13:34 ...and API 7 to enable. Tolerable. Oct 31 19:15:31 Alright, so I can get HTML5VideoFullScreen if I include layoutlib.jar in eclipse as an external library. Oct 31 19:15:55 Hi are there rules limiting usage of open source libraries for commercial applications? Oct 31 19:16:15 Pass that along to the next guy that has to anything with HTML5 video. Oct 31 19:17:00 luyang: Apache, yes. GPL, kinda. LGPL, yes. MIT, no. Oct 31 19:17:08 luyang: only the license each open source project is released under and your company's policy Oct 31 19:17:10 If it's not in the sdk, you probably shouldn't be messing with it Oct 31 19:17:17 Unless you like things to randomly break Oct 31 19:17:31 how would you do to do 10th sec gamestate updates ? Oct 31 19:18:58 i currently spawn a worker thread, but i have trouble syncing. Oct 31 19:19:15 hi, apologies for this newbie question - but what is the difference between a 'canvas' (like that I draw to as part of a view) and a 'drawable' ? Oct 31 19:19:26 i feel that getcurrentmillis + thread.sleep isnt the way to go Oct 31 19:19:30 SimonVT: : I have a better idea. How about we have Android support HTML5 video? Oct 31 19:20:14 marsilainen: A drawable is a thing which draws onto a Canvas Oct 31 19:20:19 Sure, go ahead Oct 31 19:20:54 Don't tell me that the problem with the solution I found is that it sometimes does not work, when the only alternative is to have it NEVER work. Oct 31 19:21:37 JakeWharton: hmmm, ok, so when I call canvas.drawRect() in my view, where does the drawable fit in with that? Oct 31 19:21:49 nowhere. you are drawing directly on the canvas Oct 31 19:22:05 Stop doing it wrong then Oct 31 19:22:14 if you want a Drawable to draw on it you would call myDrawable.draw(canvas); Oct 31 19:22:15 a Drawable is kind of like a lightweight non-interactive View Oct 31 19:22:37 Adding jars used internally by the sdk to get access to private classes is not a solution that should be recommended Oct 31 19:22:54 ok, I'm slowly getting it... and I just found this page: http://developer.android.com/guide/topics/graphics/2d-graphics.html Oct 31 19:22:59 so I'll read that Oct 31 19:23:02 thanks guys Oct 31 19:23:12 Android webviews and the native browser do not respect