**** BEGIN LOGGING AT Sun Oct 07 02:59:58 2012 Oct 07 03:46:21 what's the C# room? Oct 07 03:55:39 Komak57: alis will tell you that Oct 07 04:10:15 Anyone has experience with Orientation Sensors and using it with OpenGL Rotation? I find the result very inaccurate Oct 07 04:56:17 ActivityService.this.stopSelf(); seems to kill my service just fine, but the persistant little b******* won't stay dead XD Keeps coming back to life >_> Am I supposed to be doing something more here? Oct 07 04:57:27 Komak57: you have to remove the head or destroy the brain (aka I don't know( Oct 07 04:58:13 hey there Oct 07 04:58:17 D: My phone's software has turned into a zombie?? Oct 07 05:01:11 So what exactly is causing the resurrection? Oct 07 05:02:00 not a clue. Oct 07 05:04:01 >_> Oct 07 05:04:13 I can't have this service starting up again after I kill it XD Oct 07 05:04:45 though, the kill process DOES seem to error if my server doesn't disconnect (threaded)... could that have anything to do with it? Oct 07 05:07:05 you need to make sure nothing else is binding to it, no callbacks are still running, no timers, etc Oct 07 05:08:06 the only thing that should be binding, is the thread... which the kill() function is supposed to wait until the thread.isActive() returns false before stopSelf() ing Oct 07 05:08:52 maybe my method is unclean? check it: http://codepad.org/Ub6NwLbG Oct 07 05:10:57 any way to Toast what's starting the Service? Oct 07 05:20:21 Komak57: do you unbind the service from your activities? Oct 07 05:30:25 meh thinking about a licensing for this app reminding me how messy it can get Oct 07 05:35:06 ehh, half the time, my activity is post-destroyed? Not even sure how I would go about killing the service in my Main activity class from my service activity >_> Oct 07 05:35:28 it's a rather simple startService(service); Oct 07 05:36:46 Komak57: Oct 07 05:36:55 what are you returning from onStartCommand? Oct 07 05:37:37 return mStartMode; Oct 07 05:37:49 and start mode is? Oct 07 05:38:27 null to my knowledge... was reading a guide... finally got it to stay after killing the activity form, and i didn't bother much with it. Oct 07 05:39:16 i'm drawing an animation on another view. what's the best way to clear area where i'll be drawing the next frame without drawing over parts of the view that i won't actually be animating? Oct 07 05:39:22 it's declared as an int, but never set.. Oct 07 05:40:34 whomp, the term in other languages is bitblt(), I have yet to get to animations in android yet Oct 07 05:41:02 that might be why it's restarted a lot, check the START_ constants in android.app.Service Oct 07 05:41:48 whomp: look at the various clip methods Oct 07 05:41:59 alex_PP, like what, for instance? Oct 07 05:42:27 canvas.clipRect Oct 07 05:42:36 they all start with clip, if i recall correctly Oct 07 05:43:07 they allow you to set an area that you can draw in, with anything outside it being ignored Oct 07 05:44:04 ok, but my issue is that the animation from the previous frame is still sitting there, and it's overwritten the data of the view underneath it. i need to get this area back Oct 07 05:45:48 how are you implementing this? Oct 07 05:46:52 i'm using a subclass of surfaceview and a subclass of thread. the surfaceview subclass runs the thread subclass every 50ms, which calls a drawing function in the surfaceview subclass that does that actual wori Oct 07 05:47:56 i'm wondering if i could call the onDraw function in the underlying view right before i draw the next animation frame, although i'm worried that things will get weird because it also could be drawn in the main thread Oct 07 05:49:25 not sure about surface view stuff really, can't you just not draw the stuff on top in the next frame? Oct 07 05:49:47 no, because like i said, i've overwritten image data from the underlying view Oct 07 05:49:49 what about double buffering whomp Oct 07 05:50:07 how would that solve this? Oct 07 05:50:10 just draw to picture, and mark it ready when drawing is done, copy over to current frame Oct 07 05:50:25 that way you wont get "middle of drawing" not ready stuff Oct 07 05:50:31 the issue is that the data from the underlying view is being overwritten Oct 07 05:50:37 ah Oct 07 05:50:47 there we have it ^.^ seems I wasn't really exiting the thread safely. The new code works clean, and stays dead >_> Oct 07 05:51:03 where would i find out about double buffering in android? Oct 07 05:51:11 not sure actually Oct 07 05:51:16 hmm Oct 07 05:51:20 or as leslie put it, I didn't quite sever the head >_> Oct 07 05:51:54 thx for the help, i'll keep thinking about it Oct 07 05:51:55 * whomp ventures into the rabbit hole Oct 07 05:52:10 whomp Oct 07 05:52:24 double bufferring you could simply create a ImageView to hold the data, no? Oct 07 05:52:24 not sure if this is best way, whomp, but maybe draw method just paints the current image, and you have some other fnction that updates the image and replaces "current image" as ready? Oct 07 05:52:54 Komak57: yeah I think so. disclaimer: I suck on programming Oct 07 05:53:22 truth: everyone does? Oct 07 05:54:23 hmm i'll try some things out Oct 07 05:54:56 thanks a bunch for the help alex_PP! Now that it's cleaned up, I'll catch some Z's and work on installing the client socket protocols to my android app, and the server socket protocols to my C# server ^.^ Oct 07 05:56:42 Figure I might try something completely different with my socket coding and use the android to 'ping' my server, which then hand shakes, and connect to the android app (repeat until told not to?). Should be fun >_> Oct 07 05:57:03 ^ really terrible explanation Oct 07 05:57:09 Komak57: good luck man :) I really need to finish my across realities wallpaper :( Oct 07 05:57:21 I'm just deadlocked on programming Oct 07 05:58:08 lol, i've been busting ass all day. I still have to find a way to implement the custom dialog box through the service (to appear ontop of other activities). Oct 07 05:58:30 HMM I did something like that Oct 07 05:58:42 dont you just extend that class and add stuff you wanna it to have? Oct 07 05:58:52 forgot class name. Oct 07 05:59:40 I have the code... but executing from the service has proven rather difficult? Oct 07 05:59:53 contexts are a bit more difficult to find XD Oct 07 06:00:07 heh Im still very much a beginner on android Oct 07 06:02:23 Am I going to regret it somehow if I publish my app under my real name Oct 07 06:02:50 maybe if its malware, bad adware, or just plain bad soft lol Oct 07 06:03:23 Komak57: don't take focus from a service, it'll annoy your users, use a notification so the user can start the activity when they're ready Oct 07 06:04:00 heh I remember when I tried to start activity from non-activity Oct 07 06:04:05 luckly I found a way around Oct 07 06:04:44 XXCoder: no ... well its not great but I'm not worried about that. just spam I guess Oct 07 06:05:09 doc_savage, not an option with the planning of the app... Need it to pop up on top of current work. Oct 07 06:05:10 true I'd get annoyed unless its rare and critical Oct 07 06:05:23 like "Your fly is down" ;) Oct 07 06:05:57 and my only problem atm is "token null is not for an application" or some such nonsense XD Oct 07 06:06:10 read up on it for a while before i gave in Oct 07 06:06:13 Komak57: if it's within the current app, that's fine, just avoid doing it if the user has switched to another app, if someone is for e.g. on a call or something and your dialog pops up Oct 07 06:06:46 That's the point... this app is designed to play along with other games (user can pick which ones to follow). Oct 07 06:07:08 or so I hope.. Oct 07 06:08:35 <- exhausted... I'll tell you more details tomorrow if you're interested... I needs mah sleep Oct 07 06:08:52 Komak57: yeah, I'll be about, you've got me curious :) Oct 07 06:09:15 * Komak57 yawns and heads off to bed Oct 07 06:09:15 * Jdbye slaps Komak57 around a bit with a large trout Oct 07 06:09:34 good night :) Oct 07 06:09:39 enjoy your trout Oct 07 06:29:22 anyone make a serious video app that fullscreens properly ? Oct 07 06:31:21 anyone make a serious video app that fullscreens properly ? Oct 07 06:31:27 oops sorry Oct 07 06:31:42 I'm having trouble fullscreening some rtsp youtube links, because the VideoView is in LinearLayout, I wrap the VideoView with RelativeLayout or FrameLayout I get better results, but I need to hide and show the layout with the VideoView object, otherwise it shows a black area because I fail to hide the layout even though I hide the VideoView Oct 07 06:37:52 damn i misunderstood this api. didn'ty provide what i thought Oct 07 06:38:20 what I have already is a list of items displaying the channels/clips, when the user holds the device in portrait mode and clicks an item, the video pops up at the bottom of the screen, when I turn the device sideways to change to landscape mode it fullscreens Oct 07 06:38:48 in portrait mode the user can change channels while watching Oct 07 07:01:20 is there a layout height that allows percentage? Oct 07 07:02:09 linearlayout Oct 07 07:02:18 using relative layout Oct 07 07:02:28 then no Oct 07 07:02:38 =/ Oct 07 07:02:41 damn Oct 07 07:02:47 use a linearlayout Oct 07 07:02:49 cause the app looks fugly in my emulator.. Oct 07 07:03:03 however on the actual phone it looks alright Oct 07 07:04:44 hmm too bad I can't close the relative layout just before the setting where I want it then insert linear and go back to relative Oct 07 07:09:40 Streusel: write a custom layout Oct 07 07:09:49 there's tutorials somewhere in d.android.com Oct 07 07:09:52 oh that's possible? Oct 07 07:09:54 that's nice.. Oct 07 07:10:26 http://developer.android.com/guide/topics/ui/custom-components.html Oct 07 07:10:27 looking if I can do it with match_parent right now and set it so that it'll align above objects Oct 07 07:11:19 yeah always possible :) Oct 07 07:11:33 or using margin top/bottom Oct 07 07:12:01 if I remember right, you can use layouts in layouts, sometimes useful to use different layouts Oct 07 07:12:03 although I don't like using that as it'll apply different to different sized phones Oct 07 07:12:57 k Oct 07 07:13:28 XXCoder yes you can nest layouts Oct 07 07:13:58 theres probably limit to that though. "layouts all way down!" ;) Oct 07 07:15:24 not really Oct 07 07:15:32 performance degrades the deeper the nesting is Oct 07 07:16:19 now my checkbox disappeared >< & my name field ._. D: Oct 07 07:16:23 don't think there's a set limit tho, i could be wrong Oct 07 07:16:38 Does AOKP has all CM10 features? Oct 07 07:17:10 on a unrelated line, anyone know why line drawing in ICS and JB sucks hard below width 1? Oct 07 07:26:23 does anyone know why an alpha animation used to fade in a view would work in 4.1 but not 2.3? Oct 07 07:30:12 just setting the visibility to View.VISIBLE (from INVISIBLE) works, but the alpha animation won't show anything.. Oct 07 07:31:26 I thought publishing to play only took a few minutes. Thats what I remember anyways. Oct 07 07:32:29 It looks like it is published in the dev consule but not showing up in play search nor by the url details=my.app.package Oct 07 07:32:52 can take hours to roll out live Oct 07 07:33:49 yeah all 3 of my live wallpaper took hours to show publicily Oct 07 07:33:58 speakingcode: ok so its changed from before. it was over a year ago I think Oct 07 07:34:11 if curious, look for windyflower, node battle live wallpaper Oct 07 07:35:21 at 11pm i was going to publish, announce and have a drink Oct 07 07:35:58 its 3:30 now, im hungry, and you cant buy booze here after 2am Oct 07 07:38:17 XXCoder: did you get an email or anything? Oct 07 07:38:22 nope Oct 07 07:38:32 =[ Oct 07 07:38:37 this is going to drive me nuts Oct 07 07:38:44 I think one email saying they got submission something, but nothing on it being public Oct 07 07:39:04 Hello There. I have a question about ListViews. More specifically ExpandableListviews. Oct 07 07:39:13 * derekv wears the keycap off f5 Oct 07 07:39:38 * XXCoder replaces that key with hard wearing chromed steel key Oct 07 07:39:41 I've done some research and it looks like there is an issue if you use a custon view that has a clickable element in it for the elements in the list view. Oct 07 07:39:50 * XXCoder gasps as its worn already. ;) Oct 07 07:40:18 Very long story short: My ListView elements don't recieve their appropriate OnClick() events. Oct 07 07:40:56 rynojvr: yea I saw that when I was looking at an issue I thought was related Oct 07 07:41:17 Anyone know how to make my spinner when clicked open a listitem window? Oct 07 07:42:06 Streusel: Like go to a different Activity? Oct 07 07:42:15 kind of yeah Oct 07 07:42:22 like if I put a spinner in the middle of my screen Oct 07 07:42:29 even if I put some items into it already Oct 07 07:42:48 I want to click the spinner and then have a window open as if I put a button that uses listitem Oct 07 07:42:59 or listitemclick Oct 07 07:43:52 and any idea how I remove the warning on 'class' ? Oct 07 07:43:55 Streusel: like Spinner.setOnItemClickListener()? Oct 07 07:44:14 like.. Oct 07 07:44:15 Streusel: What's the specific warning say? Oct 07 07:44:26 class is a raw type Oct 07 07:44:35 hi all Oct 07 07:44:42 reference to generic type class Oct 07 07:44:54 uhm and the spinner I got is.. Oct 07 07:44:56 rynojvr: iirc the issue was resovled for some by setting some sort of clickable (false) or interactive property on the cells Oct 07 07:45:07 Spinner time; Oct 07 07:45:08 time = (Spinner) findViewById(R.id.time); Oct 07 07:45:11 how does one include the header files from /usr/include/openssl in the ndk-build process Oct 07 07:45:18 some path variable ? ? Oct 07 07:47:59 Streusel: Seems like the issue with the class is that you're extending or inheriting from a generic class/interface, and are not specifying values for the generics in your implementation. I.E., there is some class "GenericClass" that is defined as "public class GenericClass" and you have written "public class MyClass extends GenericClass" Oct 07 07:48:55 derekv: I'm pretty sure I've tried stuff like that. To be compeletely honest, I'm really god-damn tired. Does anyone know what the actual cause of the damn issue is? Oct 07 07:48:59 Cause I got it from a tutorial however he never expanded on it in his next video, he started something completely different Oct 07 07:49:00 >< Oct 07 07:49:25 What didn't he explain? Oct 07 07:49:25 http://upaste.me/d67c127171f147c3 that's where my class turns yellow Oct 07 07:49:33 one sec. Oct 07 07:49:45 he mentioned that he would go and explain and make it go away in the next vid or smth Oct 07 07:49:47 but he never did Oct 07 07:49:47 >< Oct 07 07:50:51 Hang on. Oct 07 07:50:56 Do you have a class named class? Oct 07 07:51:09 Class* Oct 07 07:51:13 Streusel: i know how you feel, in my case it was resolved when I changed the order of how I was doing things in the oncreate, and I never looked into it further once it was fixed. on account of being tired. Oct 07 07:51:46 no ndk people around here Oct 07 07:53:08 Looney: LOCAL_C_INCLUDES Oct 07 07:53:18 Looney: Does that make sense? :/ Oct 07 07:53:27 Looney: Just did a quick Google Oct 07 07:53:39 Looney: http://androidarp.blogspot.com/2012/05/ndk-using-system-libraries.html Oct 07 07:53:44 thanks Oct 07 07:53:46 Looney: Did that help? Oct 07 07:53:57 will look into the link for sure Oct 07 07:55:30 Streusel: Could you paste the Class class definition somewhere please? Oct 07 07:55:45 k Oct 07 07:55:46 1 sec Oct 07 07:55:48 jees I put the apk in an envolope and took it io the post office, it has been months and there has been no replay, but the winter has been harsh and the letters may have been delayed in the mountains (wtf Oct 07 07:56:01 actually Oct 07 07:56:05 that's the only defined class anywhere Oct 07 07:56:09 I got classes somewhere Oct 07 07:56:14 but that's a string Oct 07 07:57:17 Streusel: Ah. I see. Silly me. Oct 07 07:57:35 I tried to define it above.. as in Class ourClass; but that didn't change it Oct 07 07:57:42 just made that class also yellow Oct 07 07:58:07 Is there a way to make a compound cursor? Oct 07 07:58:12 wonder if its taking longer because i just registered the developer account also Oct 07 07:59:41 woot Oct 07 07:59:51 its in search but not in details hah Oct 07 08:00:49 probably my incesent refreshing is causing a negative caching on whatever node i'm hitting Oct 07 08:02:53 they just run some batch process every n hours that updates everything Oct 07 08:03:00 Streusel: Well you're definitely doing some interesting stuff. Oct 07 08:03:01 *script Oct 07 08:03:14 i r? xD Oct 07 08:03:17 not really Oct 07 08:03:17 But if you say Class ourClass = Class.forName(......) Oct 07 08:03:19 :| Oct 07 08:03:23 Where should I close a database and cursor in a fragment? Oct 07 08:03:25 sometimes "interesting" is bad word to hear from expert ;) Oct 07 08:03:32 sampullman: yea makes sense. its running now. i'm seeing more parts work as i hit refresh heh Oct 07 08:03:47 not saying that your code is bad, didn't read it Oct 07 08:03:53 adding removes error Oct 07 08:03:56 or warning Oct 07 08:04:00 Yeah. Oct 07 08:04:02 Should Oct 07 08:04:04 that's nice, if only I knew what just happened Oct 07 08:04:29 And I think it's just a bit weird that you are using the Class.forName() method. Oct 07 08:04:45 It looks like you are loading a class that is in your Build Path, Oct 07 08:04:54 So then you should already have access to it, Oct 07 08:05:06 and then just call the SpecificClass.class Oct 07 08:05:24 This way actually looks through all of the Classes that are loaded at the current time Oct 07 08:05:26 I just copied a tutorial :x from thenewboston Oct 07 08:05:38 for array itemlisting instead of using spinner Oct 07 08:05:42 Haha. Stop me if I loose you Oct 07 08:05:54 lost me Oct 07 08:05:55 :x Oct 07 08:06:33 Well, When you run your project, you have this thing called the Build Path, and it basically consists of all the classes that are to be loaded into memory Oct 07 08:06:44 k Oct 07 08:07:26 you guys seem like you know your stuff Oct 07 08:07:43 can i bounce a rooting question off of you all? Oct 07 08:07:53 Since your project is aware of the build path while you are working on it, You should normally just be able to directly reference the class's class by saying ClassName.class Oct 07 08:07:58 asked in android-root but i think they're asleep :) Oct 07 08:08:12 don't ask to ask a question, ask it~ Oct 07 08:08:25 k Oct 07 08:08:57 i rooted/unlocked/flashed clockwork mod on my vzw s3 earlier Oct 07 08:08:57 [03:59] used Method 2 on http://forums.androidcentral.com/verizon-galaxy-s-iii-rooting-roms-hacks/191050-guide-root-recovery-unlock-bootloader-verizon-galaxy-s3-sch-i535.html Oct 07 08:08:58 [04:00] seemed to go great, but when I tried to boot into clockwork mod I only got the stock Android recovery Oct 07 08:08:58 [04:00] well, i didn't much of it, and went ahead and wiped cache/system Oct 07 08:08:58 [04:00] tried to access the SD card to load the custom ROM Oct 07 08:09:02 [04:00] but got error that it cannot load Oct 07 08:09:04 [04:00] phone rebooted to stock ROM it seems... Oct 07 08:09:06 [04:00] no superuser that I can see Oct 07 08:09:08 [04:01] kind of confused as to what state the phone is in now, what direction I should go Oct 07 08:09:34 Streusel: You can also load extra classes at runtime. Oct 07 08:09:56 how would I do that? Oct 07 08:10:27 coldvodka go #android-root Oct 07 08:10:55 Haha. that's pretty intense stuff. Oct 07 08:11:01 http://stackoverflow.com/questions/1010919/adding-files-to-java-classpath-at-runtime Oct 07 08:11:06 I believe that will work Oct 07 08:11:09 ty Oct 07 08:11:30 going to head off soon Oct 07 08:11:39 Byut the point is, since those were loaded at run-time, you don't neccissarily know about them when you are coding, Oct 07 08:11:44 can I add you to my list of contacts rynojvr? Oct 07 08:11:57 So you would load then, then get a reference to them with that Oct 07 08:11:59 and sure. Oct 07 08:12:02 very helpful, thank you Oct 07 08:12:02 ty Oct 07 08:12:15 lol, devastator, he came from root Oct 07 08:12:17 Can't promise I'll be on Oct 07 08:12:36 the people there apparently don't seem active Oct 07 08:13:06 oh, sorry Oct 07 08:13:12 still sleepy Oct 07 08:13:15 same, and I might forget the name even but I'll add to pm list so it'll appear, just have to hope that I don't have to close my irc window Oct 07 08:13:17 plenty of night owls in here Oct 07 08:13:24 1am Oct 07 08:13:24 >< Oct 07 08:13:40 5am Oct 07 08:13:45 uw Oct 07 08:13:53 east coast? Oct 07 08:14:04 4am Oct 07 08:14:15 south america Oct 07 08:14:22 6pm here :) Oct 07 08:14:24 waiting to see app install from play Oct 07 08:14:32 >< Oct 07 08:15:26 I see in in the search now with details (on device), but fails to install "could not be found" Oct 07 08:15:48 i jus need to see that go away Oct 07 08:16:02 then i can stand up Oct 07 08:16:15 waiting for google to actually patch the new android update Oct 07 08:16:27 to protect ourselves from the nfc issue of the wipe.. Oct 07 08:16:42 god damnit this shit won't work for nothin Oct 07 08:16:45 after that announcement of the software update I've not seen a bit of info come in here.. Oct 07 08:16:46 so when you wipe data/cache/davlik/system data, do you essentially wipe root access too? Oct 07 08:16:49 coldvodka: Did all of the other steps go correctly? Oct 07 08:16:53 trying to get embeded videos to show in webview Oct 07 08:17:05 coldvodka: No, you shouldn't Oct 07 08:17:21 coldvodka: I do everytime I flash a new ROM, and I retain root. Oct 07 08:17:53 rynojvr, yup, it's just when i pressed, volume down, home, and power, it booted me into android system recovery 3e Oct 07 08:17:59 instead of clockwork mod Oct 07 08:18:01 speakingcode: what kinda video and which android version? Oct 07 08:18:11 well, i'll be afk Oct 07 08:18:14 cya and thanks Oct 07 08:18:22 and when i tried access the SD card to select the Custom ROM, it said it couldn't be mounted Oct 07 08:18:24 2.3 and youtube Oct 07 08:18:26 Streusel: Night Oct 07 08:19:12 i had to enable hardware acceleration in order to get that working, but that was for ICS ( it's not supported in 2.3 ) Oct 07 08:19:20 now i've rebooted, and it's in stock, but everything is wiped and gone? everything on SD is still intact obviously... Oct 07 08:19:45 bankai_ yeah i saw that in stackoverflow Oct 07 08:21:00 kinda lame. this is pretty basic stuff. it works in browser, i dunno why they made the webview so weak Oct 07 08:21:15 i've enabled plugins and javascript Oct 07 08:21:34 did you set flash enabled on your webview ? Oct 07 08:21:43 oh sorry hehe ;) Oct 07 08:23:36 coldvodka: have you tried Volume Up, Home, and Power? Oct 07 08:23:48 coldvodka: http://wiki.cyanogenmod.com/wiki/Howto:_Using_the_Recovery#ClockworkMod_Recovery Oct 07 08:24:24 wowwowowdownloading =] Oct 07 08:24:44 rynojvr, yup, maybe it didn't get flashed on there... Oct 07 08:25:09 still kinda weird, should I try to root/unlock/flash clockwork again? Oct 07 08:25:17 #android-root Oct 07 08:25:52 hehe second one Oct 07 08:26:10 coldvodka: You had USB Debugging AND Unknown Sources checked? Oct 07 08:26:16 yar Oct 07 08:26:57 also couldn't get casual to detect the phone on my mac Oct 07 08:27:02 aha Oct 07 08:27:07 loading ubuntu now... Oct 07 08:27:16 maybe it'll work on there Oct 07 08:27:43 announcing "bookie for android" Oct 07 08:28:25 hey, can i tell an setOnCLickListener() to go to a function that's not called onClick? (im implementing OnClickListener) Oct 07 08:29:20 speakingcode: everything i read hints that it's not actually possible Oct 07 08:30:54 bankai_ yeah, getting the same indications Oct 07 08:31:05 speakingcode: actually ... what are you using to test it ? Oct 07 08:31:11 don't quite understand. i assumed the browser uses webview, guess not Oct 07 08:31:25 motorolla droid 3 Oct 07 08:31:33 what android version does it run ? Oct 07 08:31:50 2.3.4 Oct 07 08:32:12 i'm gonna grab my xoom with ICS and see what happens Oct 07 08:32:14 oh, can that then. I was thinking if you were testing it on ICS(+) then flash won't exist, so you'll need the hardware accel... ignore me... Oct 07 08:33:47 np Oct 07 08:34:00 i appreciate the help, heh Oct 07 08:34:07 might just have to say screw it Oct 07 08:36:33 that's what i ended up doing :\ ( it was an app just for me anyway ) Oct 07 08:38:22 works in browser, i don't see why webview wouldn't like Oct 07 08:45:10 hey guys, I think I'm integrating flurry wrong in my app. Oct 07 08:45:16 everytime I try to put it in my app, it crashes. Oct 07 08:45:22 Can someone help me see if I'm missing anything? Oct 07 08:45:47 I added the external jar in eclipse, and then I copied 3 lines: http://pastie.org/private/fs15qnzp3szij3bqgs6lw Oct 07 08:46:10 speakingcode: it's not dumping out, is it ? Oct 07 08:46:56 dumpiong out? Oct 07 08:47:49 throwing exceptions Oct 07 08:49:01 nah Oct 07 08:50:52 I'm SURE it's either the 2nd or 3rd line that's messing it iup Oct 07 08:50:55 everything else works fine Oct 07 08:51:03 maybe I'm putting it in the wrong places? Oct 07 08:51:29 hi Oct 07 08:51:39 how can i call python script located on server on internet from android app Oct 07 08:52:17 maybe you need a real api key Snuupy Oct 07 08:52:25 oh, I put that in Oct 07 08:52:38 FlurryAgent.onStartSession(this, "TOTOLE SEKRITZ"); Oct 07 08:52:42 whats the crash ur getting? Oct 07 08:53:03 that's the strangest api key i've ever seen Oct 07 08:53:15 http://i.imgur.com/DSMDV.png Oct 07 08:53:16 =\ Oct 07 08:53:39 the logcat error Oct 07 08:53:45 oh Oct 07 08:53:50 where do I find that? Oct 07 08:54:01 in eclipse in logcat Oct 07 08:54:28 Abhijit: you need to set up CGI or some other access to the script Oct 07 08:54:40 window->show view -> other... android/logcat Oct 07 08:54:54 Leeds, ok Oct 07 08:55:07 how's this look, speakingcode? http://i.imgur.com/FdaTr.png Oct 07 08:55:32 10-07 08:52:47.454: I/dalvikvm(1071): Could not find method com.flurry.android.FlurryAgent.onEndSession, referenced from method com.awinnerisyou.Main.onStop Oct 07 08:55:37 10-07 08:52:47.454: I/dalvikvm(1071): Could not find method com.flurry.android.FlurryAgent.onEndSession, referenced from method com.awinnerisyou.Main.onStop Oct 07 08:55:40 oh Oct 07 08:55:50 10-07 08:52:47.413: I/dalvikvm(1071): Could not find method com.flurry.android.FlurryAgent.onStartSession, referenced from method com.awinnerisyou.Main.onStart Oct 07 08:55:58 bloody hell, you damn windows users - select the text and pastebin it ... Oct 07 08:55:59 weird Oct 07 08:56:11 bankai_: I thought the rule was >4 lines Oct 07 08:56:33 pastebin.com Oct 07 08:57:23 heh Oct 07 08:57:53 speakingcode: what's that supposed to mean? =\ Oct 07 08:58:04 ? Oct 07 08:58:10 those errors. Oct 07 08:58:47 i dunno it might be an issue with your build path Oct 07 08:58:54 hmm, okay. Oct 07 08:59:15 right click on the folder for your project Oct 07 08:59:19 and go to properties Oct 07 08:59:33 then go to the Java Build Path option on the left menu Oct 07 08:59:41 http://i.imgur.com/7YxS6.png Oct 07 08:59:57 ok go to order & export Oct 07 09:00:21 http://i.imgur.com/XvF0X.png Oct 07 09:01:22 someone likes screenshots too much, i think Oct 07 09:01:54 bankai_: screenshots are nice. Oct 07 09:02:08 no they aren't, they are lazy and slow Oct 07 09:02:15 slow? Oct 07 09:02:21 PicPick makes it really easy >_> Oct 07 09:02:30 whatever that is Oct 07 09:02:40 actually they are probably better in this case cause i can see the options Oct 07 09:02:44 but yeah, i dunno, all looks fine Oct 07 09:02:56 bankai_: it takes me 5 clicks and one button to upload a screenshot, in ~10 seconds. Oct 07 09:02:59 dunno why it would be there in build and then not find the mehtods in runtime Oct 07 09:03:13 speakingcode: would pasting the source code help? Oct 07 09:03:22 seems like it wouldn't compile Oct 07 09:03:25 though everything's working, just not when I paste in that code Oct 07 09:03:30 oh Oct 07 09:03:37 paste the code that isn't working, yeah Oct 07 09:04:21 http://pastebin.com/5GPX7CjM Oct 07 09:04:31 there's code between the start and the stop. Oct 07 09:05:11 is that jar actually being bundled into your APK ? Oct 07 09:05:35 ummm Oct 07 09:05:53 class SomeActivity extends Activity Oct 07 09:05:56 bankai_: I can't tell - how do I know? Oct 07 09:05:58 you need that Oct 07 09:06:13 tar -tf, jar -tf, unzip ... i don't know what you do on windows Oct 07 09:06:20 speakingcode: I'm confused. what do you mean? Oct 07 09:06:30 this is an Activity right? Oct 07 09:06:32 bankai_: should it be, or should it not be? Oct 07 09:06:35 speakingcode: yep Oct 07 09:06:36 you need to declare your class Oct 07 09:07:03 I did, at public class Main extends Activity { Oct 07 09:07:08 oh ok Oct 07 09:07:14 it's not in the paste Oct 07 09:07:25 oh Oct 07 09:07:32 I'll just paste the whole file Oct 07 09:07:52 your main error, from what i remember from your millions of screenshots is you're getting a class def not found on that flurry thing Oct 07 09:08:08 yeah, bankai_ Oct 07 09:08:23 haha Oct 07 09:08:41 http://pastie.org/private/knkoreilwel9okpojibaq Oct 07 09:08:50 oh Oct 07 09:08:51 snuppy Oct 07 09:09:00 go back to buildpath - Order & Explort Oct 07 09:09:11 try to move the FlurryAgent.jar up to the top Oct 07 09:09:19 okay Oct 07 09:09:25 moved to the top now Oct 07 09:09:43 i dunno if that will help or not Oct 07 09:09:53 run it now n see what happens Oct 07 09:09:58 hi. how can I update the R.id if it's not updated? how can I force update? Oct 07 09:10:10 what do you mean superlinux Oct 07 09:10:12 sure, speakingcode Oct 07 09:10:15 superlinux: clean your project Oct 07 09:10:21 or the whole R? the resources Oct 07 09:10:25 speakingcode: nope, still broken :( Oct 07 09:10:30 like you change it in xml and it's not updating in R.java? clean project Oct 07 09:10:38 aha ok Oct 07 09:10:54 speakingcode, yes like what you said Oct 07 09:10:55 Snuupy o Oct 07 09:11:00 i dunno Oct 07 09:11:11 10-07 09:10:41.734: I/dalvikvm(1146): Could not find method com.flurry.android.FlurryAgent.onStartSession, referenced from method com.awinnerisyou.Main.onStart Oct 07 09:11:28 yeah Oct 07 09:11:29 now it works. thanks Oct 07 09:11:41 but it compiles? Oct 07 09:11:47 so it must be smoething in the build, i think. shrug Oct 07 09:11:58 well no errors are listed in eclipse Oct 07 09:12:51 not sure Oct 07 09:13:06 seems like somethnig with build/export Oct 07 09:13:11 lemmie try 2.3.3 Oct 07 09:13:49 I'll come back in 5, since it'll take that much time to start up anyway Oct 07 09:18:20 try rebooting your machine Oct 07 09:18:44 speakingcode: http://pastie.org/private/pbkvuma02c7b5o8qx1fhfg Oct 07 09:18:54 bankai_: my virtual machine (android) or windows? Oct 07 09:19:20 i'm being facetious Oct 07 09:19:39 ah, k Oct 07 09:27:50 Hi..I want to know is it possible to read email via BroadcastReceiver class in android? I need to read it from outlook (before - using BroadcastReceiver or after it is stored) . Any suggestion? Oct 07 09:31:01 pras: what do you think broadcastreceiver does? Oct 07 09:33:48 speakingcode, its still not making any change. i had to restart eclipse Oct 07 09:33:58 now it works fine Oct 07 09:34:12 rubbish! really rubbish Oct 07 09:34:22 lol Oct 07 09:34:34 superlinux: I feel ya, bro Oct 07 09:34:57 now now, none of that, this is a g-rated channel Oct 07 09:35:08 ಠ_ಠ Oct 07 09:35:23 welp, can't get this flurry crap fixed, going to bed. Oct 07 09:35:25 Night guys. Oct 07 09:36:10 i wish they'd change android programming into TCL/Tk Oct 07 09:36:22 it will be heaps easier Oct 07 09:36:27 haha Oct 07 09:36:30 I actually prefer Java o_o Oct 07 09:36:40 maybe it was because it was the first language I learned Oct 07 09:36:51 Snuupy, cos TCL/Tk is fast Oct 07 09:37:04 Isn't that some scripting language? Oct 07 09:37:14 makes more money for both of you , boss and employee Oct 07 09:37:18 Maybe he means fast to write Oct 07 09:37:22 oh Oct 07 09:37:22 yes.. it's Oct 07 09:37:23 okay Oct 07 09:37:33 alright, it's bed time. Oct 07 09:37:45 good night then Oct 07 09:37:54 here it's midday exactly Oct 07 09:38:06 it's 6am O_O Oct 07 09:38:17 O..O Oct 07 09:38:26 lol Oct 07 09:38:34 you deserve it then! Oct 07 09:38:49 I was doing homework earlier Oct 07 09:38:49 :P Oct 07 09:38:54 ah ok Oct 07 09:38:58 I'll cya tomorrow. Oct 07 09:39:02 cya Oct 07 09:49:27 this looks interesting: https://github.com/jgilfelt/android-adt-templates Oct 07 09:56:50 yes Oct 07 10:32:51 I just broke my Eclipse installation :/ Oct 07 10:54:19 hi I am trying to creat a xml file, file gets created but it's emptey, there is no errors or anything, but I can't find out why file is emptey, here is the code: http://pastebin.com/nFSDZ489 Oct 07 11:04:32 Jur: you didnt flush the XmlSerializer Oct 07 11:07:53 nevermind now sudenly all works without me chaning anything, it looks that virtual simulator works weird Oct 07 11:09:37 I think if you say 'xmlwriter.endDocument' and that doesn't automatically make it serialize -- if indeed it buffers at all -- then it's a broken library Oct 07 11:10:20 it looks like it might buffer a bit because you can apparently say startTag and then attribute separately, so clearly it must hold on from writing the closing > at least Oct 07 11:45:38 hi Oct 07 11:46:16 I am collecting gps coridinates and speed for 2 hours and I need to save them to xml file so that I can seend them to some server Oct 07 11:46:22 what is the best way to create that xml file? Oct 07 11:46:40 is there anyway to create it before I collect all the data? Oct 07 11:47:07 because it woulr probably take quite some time to create it if I make it in the end Oct 07 11:47:47 but I am not really sure how to create that file while colecting the data and that it's structure is still as it shouldbe Oct 07 11:48:31 is it going to be an array, Jur? Oct 07 11:49:16 If i could I would make it with serializer so that I just append new xml data to allready created xml file, but I don't know if that is posible Oct 07 11:49:29 so that I would not need to store all the data Oct 07 11:49:39 but yes, if I can't do that i would make an array Oct 07 11:50:14 if you're complaining about writing the xml file, I agree with you, and this small script that I wrote generates it from a multi-line file Oct 07 11:50:17 https://gist.github.com/3848081 Oct 07 11:53:29 foo303 but is there a way that I would make that xml while still collecting data? Oct 07 11:54:22 so you want to modify the resource during runtime? Oct 07 11:54:37 because if I amke an array there will be around 10.000 items in it Oct 07 11:54:54 every 2 seconds I will colect 3 variables Oct 07 11:54:57 for 2 hours Oct 07 11:55:45 hmm, I'd think you don't want to use the phone to store this data, just cache a bit on the phone but store everything else on some server. Oct 07 11:57:08 I guess I need to know a bit about whether or not you're collecting data only or if you're using it for something else within the app Oct 07 11:57:46 I need to colect the data and then seend it on some server Oct 07 11:57:56 but I need to seend xml file to the server Oct 07 11:59:54 and where are you struggling? Oct 07 12:00:10 the data-to-xml part or the data collection part? Oct 07 12:00:35 I would like to make xml data while I am colecting Oct 07 12:00:44 with xmlserializer Oct 07 12:00:45 thing is, with XML, you'd want to send the complete file, unless you "collate" xml files on the server I guess Oct 07 12:01:28 I'd send lines as I get them, to the server, and it would be generating the xml file needed. when it's done, it ships it off to your original server Oct 07 12:02:23 hmm Oct 07 12:02:53 problems is that I am making this for someone else and he wants that I seend xml file every 2 hours to the server, so allready made xml file Oct 07 12:03:48 I don't know how big your data is, but it looks like it's a lot on the ram Oct 07 12:04:12 but yeah, just do it locally if you can get away with being a resource hog :p Oct 07 12:05:25 so do you thinkt if I put all the data in array and then create xml, creating xml woulden't take to long time? Oct 07 12:05:36 if this would work I will make it this way Oct 07 12:06:08 but I am trying to find a way to create xml while I am still collecting data, so that I would be just appending new lines to xml file, but I am not sure if structure of xml file would still be ok Oct 07 12:06:18 sry for my bad english Oct 07 12:08:28 well, it's not suppposed to be too hard Oct 07 12:08:33 have a stringbuffer out there Oct 07 12:08:45 and append to it the items surrounded by the xml tags Oct 07 12:09:04 and initially when you start, you would put your xml header in the stringbuffer Oct 07 12:09:15 and when you're done, just add the footer and start sending Oct 07 12:10:15 I will try Oct 07 12:10:20 tnx Oct 07 12:25:16 is there a recommended way of displaying data on a table? Oct 07 12:59:40 Hi, this is surely something very silly, but i am working under ubuntu 12 LTS, using opend JDK 7, eclipse , android sdk, ndk, i am able to export an old android project into a signed apk thru eclipse, however i cant seem to find jarsigner on my system....how come ??? Oct 07 13:18:33 -yawns- Good morning! Oct 07 13:20:08 hi, i was reading http://developer.android.com/reference/android/hardware/SensorEvent.html - is the value of the y axis supposed to change if you move the phone vertically in a flat surface, or when you move it upwards/downwards in the air? Oct 07 13:26:01 Anyone used orientation change along with opengl rotation matrix Oct 07 13:26:08 I cant get it right Oct 07 13:31:34 can someone tell me if there's an app i can install that would then chk other apps for if they have the dumb ad things that will popup small on apps and browsers ? almost something like no script for firefox, but instead of chking sites for vulns/spliots/and injections, it would be on an andriod device and chk w/e app u dl from the play store and see if it has any of that anying shit in Oct 07 13:31:34 it Oct 07 13:38:31 How do I know what kind of information is there inside an intent received from a broadcast? Oct 07 13:39:32 can someone plz tell me why the code for MotionEvent.ACTION_DOWN is never run? http://pastebin.com/G7kQPSge Oct 07 13:41:50 how can we define build variable like CRYPTO=OPENSSL in ndk makefile Oct 07 13:50:20 perhaps wrong time to ask question here Oct 07 13:50:53 I'm receiving an SMS_RECEIVED intent. What kind of information can I get from it? Is this documented anywhere? Oct 07 13:53:19 hi all! German dev here? Need help but cant explain my problem in english :-( Oct 07 13:56:47 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.snakefreak.hansaradio/com.snakefreak.hansaradio.Main}: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.snakefreak.hansaradio/com.snakefreak.hansaradio.streamHD1}; have you declared this activity in your AndroidManifest.xml? When i put it in the manifest then i have 2 app icons (its a tabbed app) Oct 07 13:56:55 (my first) Oct 07 13:59:50 ich glaube, es gibt eine Deutsches chattenzimmer fuer Android dennistlg Oct 07 14:01:55 looney yeah i know but thats not development related. so nobody can help or would help. ;-) Oct 07 14:03:14 ok, wait till someone show up Oct 07 14:04:08 hi all, I have an issue, well its not an issue its an "I dont know how to do this but I know what to do" problem >> I want to have an image of a person which i can draw on. I want to be able to record the grid location of where I have drawn. I finally want to when the user releases his finger from drawing, convert the drawn path into an object which can be assigned a value. any Oct 07 14:04:08 tips (especially on the last point) would warrent my eternal grattitude¬ Oct 07 14:05:20 virutal android gave me this error, how can i know what does it mean?: 10-07 14:03:15.514: W/System.err(26865): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) Oct 07 14:05:26 10-07 14:03:15.524: W/System.err(26865): at dalvik.system.NativeStart.main(Native Method) Oct 07 14:08:07 guess no ones around to andser questions :) Oct 07 14:18:16 i have a class i'm making extending relative layout.. i'm intercepting/overriding all the touch events… how can i still implement onLongClickListener for the class? Oct 07 14:18:21 it just doesn't register when i add the listener Oct 07 14:26:37 I am trying to create XML: http://pastebin.com/sm48Yruy Oct 07 14:26:45 but when I make it there is error that it's badly shaped Oct 07 14:26:52 row: 1 column: 5 Oct 07 14:27:02 does anyone see what am I doing wrong? Oct 07 14:27:49 what does row 1, column 5 mean? Oct 07 14:28:38 I don't know that is in xml file Oct 07 14:28:49 it might be useful to damnit read what's wrong in the xml file you know Oct 07 14:29:05 are you saying there's an error parsing the XML? in which case showing us the code doing the parsing ain't gonna help much Oct 07 14:29:07 it's says that is badly shaped Oct 07 14:29:17 try putting it on a diet Oct 07 14:29:27 Razčlenitvena napaka v XML: slabo oblikovan Mesto: file:///C:/Users/Jure/Desktop/GPS_TEST.gpx.xml Številka vrstice: 1, stolpec: 5:nullVstavi ime aplikacije ----^ Oct 07 14:29:46 that is inside the xml, but since it isn't englush it's probably hard for you to uderstand Oct 07 14:29:48 don't do that Oct 07 14:29:53 sry Oct 07 14:31:00 so how could I find out what am i doing wrong?đ Oct 07 14:31:11 maybe pass it out to xmllint? Oct 07 14:31:22 and see what it says Oct 07 14:31:46 i don't know if it's helpful without a xsd file Oct 07 14:31:57 I'm still not sure exactly what the issue is Oct 07 14:32:45 I am trying to create xml file with xmlSerializer, but when I open the file it says that is badly shaped and that there is error in row : 1 column: 5 Oct 07 14:33:02 open the file how? Oct 07 14:33:14 on my computer Oct 07 14:33:15 in a text editor? Oct 07 14:33:22 browser Oct 07 14:33:36 other xml files work fine Oct 07 14:33:37 paste the file contents into pastebin Oct 07 14:33:43 and paste the link Oct 07 14:33:46 what Oct 07 14:33:47 are Oct 07 14:33:48 you Oct 07 14:33:48 using Oct 07 14:33:49 to Oct 07 14:33:50 open Oct 07 14:33:51 the Oct 07 14:33:53 XML Oct 07 14:33:54 file? Oct 07 14:34:17 I said broser (fire fox) Oct 07 14:34:19 http://pastebin.com/x38FMYi5 Oct 07 14:34:28 yay! an answer Oct 07 14:34:36 I allready said that :) Oct 07 14:34:41 no, you said 'browser' Oct 07 14:35:01 sry, i thought that, that is a good answer Oct 07 14:35:21 now, paste the actual XML file, not something mashed up with some random windows error message Oct 07 14:35:36 yeah, if that is the file Oct 07 14:35:41 it's clearly wrong Oct 07 14:36:41 hi, im geting an error in thread pool executor, how do i find the error? logcat gives me nothing Oct 07 14:36:56 Leeds here is the file Oct 07 14:36:57 http://www.mediafire.com/view/?k8yorajc4agu66m Oct 07 14:37:19 you could have just pastebinned it Oct 07 14:37:25 I did Oct 07 14:37:32 http://pastebin.com/x38FMYi5 Oct 07 14:37:36 if the first 4 characters of the file are actually 'null', you've fucked up Oct 07 14:37:57 no, that's not the bloody file - as I said, that's the file mashed up with some random error message Oct 07 14:38:06 but that is inside the file Oct 07 14:38:07 take the contents of the XML file, and put it on pastebin Oct 07 14:38:08 that i uopen Oct 07 14:38:17 that is in it Oct 07 14:38:37 the error message is inside the file generated by xmlSerializer? Oct 07 14:38:58 a file generated on your Android device contains a reference to "file:///C:/Users/Jure/Desktop/GPS_TEST.gpx.xml" Oct 07 14:39:05 I don't think so because I chedked the string that I get, and there is no error in it Oct 07 14:39:11 I use virutal android Oct 07 14:39:15 you're doing something extremely wrong Oct 07 14:39:17 and transfered file from there Oct 07 14:39:33 and I'm not going to spend more time trying to work out what it is you're doing wrong Oct 07 14:39:41 the xml file should start with Oct 07 14:40:00 not with some random error Oct 07 14:40:06 Leeds I am using virutal android in eclipse, and i trasfered file from there on my computer Oct 07 14:40:29 you have to figure out why that's getting there Oct 07 14:40:29 Jur: I think you mean you're using the emulator, and that's irrelevant... I'm done, anyway Oct 07 14:40:43 Leeds well thanks anyway :) Oct 07 14:40:52 b33_ ok Oct 07 14:42:30 I have this GridLayout ( http://pastebin.com/hFaNXN4n). I want that the TextView's width will be exactly the width that's left after putting the other spaces. but what happens is that the TextView's width is determined by the length of the text:\ really don't know what to do Oct 07 14:43:40 in eclipse, thread pool executor class pops up, but no error in logcat is shown. how do i get to kno, where my error occurs? related class is here: http://pastebin.com/zdM3djzc Oct 07 14:44:05 pls tell me how to FIND the error or further error details Oct 07 14:44:43 i have absolutly no clue what he error is about and where to get additional infos about it Oct 07 14:45:11 it happens after hitting retry but not always Oct 07 14:45:27 b33_ thnaks for help I managed to fix it, it was stupid error, when I called function with xmlSerializer it was like this: someString= someString + makeXML(); Oct 07 14:45:30 network situation stays the same... website cannot be reached Oct 07 14:45:40 but because there wqas nothing in someString variable before it added null infront Oct 07 14:46:38 Jur: ah, ID10T error Oct 07 14:49:04 * alankila idly wonders if Stirng s = null + null will work Oct 07 14:49:45 sometimes it even occurs on first run of the class Oct 07 14:49:58 because apparently null + "" will work, as does "" + null, and "" + "". From compiler point of view it might be valid to write it as (String) null + null for instance. Oct 07 14:50:24 got to test that crap Oct 07 14:51:22 Leeds why are you such a happy person? :) Oct 07 14:51:23 this worked, ladies and gentlemen: System.out.println("Testing: " + ((String) null + null)); Oct 07 14:51:36 Jur: it's Sunday night Oct 07 14:51:51 and my N7 is dying again Oct 07 14:51:52 did not work without the String cast of null, though. Oct 07 14:52:01 n7? Oct 07 14:52:08 nexus 7 Oct 07 14:52:25 glSurfaceView cannot be used in live wallpapers? Oct 07 14:52:34 i dont even know, when the error occurs Oct 07 14:52:41 abhoriel: not directly, but there's open source project that allows it Oct 07 14:52:56 shame,my phone is so bad that doesn't even have somthign that you could call OS :) Oct 07 14:53:03 look for GLWallpaperService Oct 07 14:53:11 alankila, thanks a lot. I'll check it out :) Oct 07 14:53:53 would anyone be kind enough to post the contents of a sample lint.xml that ignores everything in a project? I dont have eclipse so can't generate one... Oct 07 14:53:57 I reckon theres still some holes in the android SDK/APIs.. Oct 07 14:54:14 bourke i have eclipse but i don't know that you are talking about Oct 07 14:54:38 abhoriel: what is wrong with android is that people try to provide too specific APIs for narrow circumstances rather than focus on making few simple generic designs that work anywhere Oct 07 14:54:57 so for instance GLWallpaperService is required because you can't make live wallpaper out of GLSurfaceView for no reason that I can understand Oct 07 14:55:20 yeah exactly Oct 07 14:55:45 thanks for your help :) Oct 07 14:56:23 I've had to use various libraries for what I'd consider to be a very simple project really. its just kind of annoying lol Oct 07 14:56:45 hey, is there a way using ndk / gcc , to detect in the code if this is a debug version or a non debug one ? using something like : #ifdef NDK_DEBUG... does not work if NDK_DEBUG is defined in application.mk Oct 07 14:57:30 it's just that android is being designed with the wrong mentality. Any idiot can make complicated design that solves some specific purpose. Platforms need simple legos to build with, not complicated pieces that are only good if what you use them for fits exactly what you happen to need Oct 07 14:57:54 indeed Oct 07 14:59:02 occasionally I hear about something nice like renderscript which sounds like it's good alternative to NDK and could utilize DSP but it seems too early to say if this design too will just fall by the wayside as the solution to wrong problem Oct 07 15:00:23 Make more problems.... one of them's bound to stick. Oct 07 15:00:44 the last time I checked it out it was just an API, all actual execution will be done by the CPU, so it will not be better than NDK from performance point of view for now. Oct 07 15:02:07 its all done on the CPU? as opposed to it using the GPU for operations that can be vectorised? Oct 07 15:02:33 it's kind of worrisome if it's practically useless. The key thing is that if renderscript could be done by GPU, it might accelerate something by factor of 10, creating demand for a way to run programs on the GPU because people would start to rely on it Oct 07 15:02:47 yeah Oct 07 15:02:54 as long as it's hypothetical, in sense that maybe one day it will run on GPU, it's kinda useless Oct 07 15:03:43 I dont really see how its better than using the NDK tbh Oct 07 15:04:14 abhoriel: I believe it's documented as having GPU targets in the future. Oct 07 15:04:23 well it would integrate to the SDK building process better. Oct 07 15:04:23 Gumboot, ah Oct 07 15:04:39 and yes, GPUs are in the future, but I really want to see even one RS-on-GPU before I believe that :-p Oct 07 15:05:20 I've seen it before where neither the interface nor the application can actually get any traction because they both depend on each other for their own development. Oct 07 15:05:25 NDK's minor annoyance right now is that I have to drop to terminal and do ndk-build there, and then it spits out libraries, and I press F5 in eclipse to refresh the project, then I can redeploy the application Oct 07 15:05:46 Like NEON intrinsics in GCC were never well developed because there was no code that used them, and no code used them because they were so poorly developed Oct 07 15:06:16 not to mention that by my experience simple vectorization attempts with GCC result in code that runs slower than VFP does Oct 07 15:06:35 so GCC is also bad at emitting NEON. Maybe if you wrote assembly, and if you are lucky, intrinsics would work already Oct 07 15:07:32 although even pure VFP code seems to have some quad operations there. I think. I wonder, I thought those are all strictly restricted to NEON. Oct 07 15:07:41 hehe I was about to optimise some code with NEON instrinsics Oct 07 15:07:54 anybody here runs functional tests on your builds? Oct 07 15:07:59 yeah but gcc doesn't always make optimal code with intrinsics, I hear Oct 07 15:08:06 oh I see Oct 07 15:08:12 it might spend time moving the data in and out of the quad registers and that eats the benefit Oct 07 15:08:19 yeah Oct 07 15:08:19 so the gcc intrinsics don't work? Oct 07 15:08:33 probably an issue with older versions of GCC. There's work going in ARM right now, for sure. Oct 07 15:08:37 oh well, learn some arm asm lol Oct 07 15:09:18 basically to test application ui before every release Oct 07 15:09:19 alankila: well, looking at the info docs for arm intrinsics for Neon I was rather impressed... with NEON, that is ;) Oct 07 15:09:26 NDK is trailing behind with versions, and I am not sure if it does, for instance, the link-time code generation at all right now Oct 07 15:09:56 alankila: GCC 4.6 and 4.7 should be alright. Oct 07 15:10:01 4.7 moreso. Oct 07 15:10:07 Linaro 4.7 in particular. Oct 07 15:10:14 I am getting out of memory error and crash on Samsung S3. whereas in Samsung Geo I dont. it's about a gridview of ImageViews . so what should be done? Oct 07 15:10:29 on Geo it works fine Oct 07 15:10:34 Gumboot: yep. Anyway I tried to enable NEON in Android.mk as a test and that resulted in slower-running code (no neon intrinsics or assembly in code, it was just gcc with neon features enabled), using the latest NDK Oct 07 15:10:46 so I'm not convinced that NEON stuff is anywhere near production quality ready right now Oct 07 15:11:01 What version compiler was that, then? Oct 07 15:11:05 well, the NDK installed on my machine uses gcc 4.6. whereas arch is currently using gcc 4.7.1, so I guess its not trailing too badly Oct 07 15:11:15 something like this http://corner.squareup.com/2011/07/ios-integration-testing.html Oct 07 15:11:15 You mean that the NEON code the compiler inserted for itself was bad? Oct 07 15:11:25 arch = the archlinux install I'm using Oct 07 15:11:45 gcc 4.6, I think Oct 07 15:11:50 Gumboot: yes Oct 07 15:12:06 4.6 is where I picked up the problem and protested loudly until I started seeing patches. Oct 07 15:13:08 The patches were, I believe, against 4.7 and up, and I was only watching the Linaro version. Mainline could be further behind. Oct 07 15:13:30 is there android ndk from linaro that is compatible enough that I might substitute the official one with it? Oct 07 15:13:38 If you write the code and point the developers at it they will fix it. The limiting factor for them right now is testcase availability. Oct 07 15:13:56 well the first thing they will tell me (probably) is to use the latest gcc possible Oct 07 15:14:03 Too right! Oct 07 15:14:58 Oh, the other thing is that you'll want to annotate all your internal functions with __attribute__((pcs("aapcs-vfp"))). Oct 07 15:15:11 That allows them to use hardware registers for function arguments. Oct 07 15:15:52 I see. I guess I kinda hope something like LTCG could automatically insert improved calling conventions or directly inline the code where possible Oct 07 15:16:02 I'm not even sure linaro are still packaging softfloat toolchains. Oct 07 15:16:10 part of the reason why I'm interested about it, but I haven't heard anybody working on making it happen on android, or even what the status of the feature is Oct 07 15:16:20 "LTCG"? Oct 07 15:16:27 link-time code generation Oct 07 15:16:31 Oh, right. Oct 07 15:16:49 Yeah, even with statics in one file (which I assume to be equivalent) it won't change the PCS on any calls. Oct 07 15:16:54 I asked for it, but they thought I was being silly. Oct 07 15:17:05 Well... they didn't see the potential returns as being worth the effort. Oct 07 15:18:36 I don't really understand how to use LTCG in a project. I hear that where you might once have called ld, you now have to call lt.gold or gold or ld --in-gold-mode-plzktnx, but I don't actually know where the optimisation switches go, and things like that. Oct 07 15:18:50 And does that implie that gold integrates the whole gcc optimiser thing? Oct 07 15:19:04 All the examples just call gcc again. Oct 07 15:19:42 I am not sure of the practical steps required either. Oct 07 15:20:21 Since the object files contain machine code as well as pre-compiled stuff, doing it wrong still results in a legitimate output. Oct 07 15:20:47 But I don't know if the pre-compilation stage needs any optimisation flags if you don't intend to use that machine code. Oct 07 15:21:11 yes, I guess the final gcc invocation that does the linking is the key. Before that you just need some switch to emit the gcc's IR datastructures also to the objects Oct 07 15:21:48 the optimization occurs partially at least in one of the multiple intermediate forms that GCC has Oct 07 15:21:52 Would be nice if it embedded optimisation flags, though. If not that then you have to change your whole make system to pass pieces of CFLAGS to LD. Oct 07 15:21:57 so optimization flags should still be useful Oct 07 15:22:25 Of course, then there's a question over what to do if two files don't have matching flags. Oct 07 15:23:30 I think it's weird that they decided to emit both the IR and the machine code into the object files though Oct 07 15:23:39 If the machine code will be useless, why waste time calculating it Oct 07 15:24:09 Maybe just to stop people complaining that the whole build was falling apart on them when they used the wrong linker. Oct 07 15:24:13 Silently do the wrong thing. Oct 07 15:24:19 To keep the IRC channel quiet. Oct 07 15:38:04 any german dev here? Oct 07 15:38:22 german's in my blood, but not in my head ;) Oct 07 15:39:06 ;-) ok need a german speaking dev my english is not good enought to explain my problem :-( Oct 07 15:41:05 I am getting out of memory error and crash on Samsung S3. whereas in Samsung Geo I dont. it's about a gridview of ImageViews . so what should be done? Oct 07 15:41:06 on Geo it works fine Oct 07 15:41:14 dennistlg, you can pm me, though my android skills aren't too good Oct 07 15:41:27 I have to repeat the question. I got no answer yet Oct 07 15:43:11 but i can try it. i have a app which contains tabactivity when i compile install and run them they will closed. logcat tell me: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.snakefreak.hansaradio/com.snakefreak.hansaradio.Main}: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.snakefreak.hansaradio/com.snakefreak.hansaradio.stream1 have you declared this activity in Oct 07 15:43:11 your AndroidManifest.xml? when i add it to the manifest i have after uninstall recompile and install 2 app icons one is the tabed actvity stream1 dont know how to solve this Oct 07 15:43:54 remove the launcher/main lines in intent-filter in manifest Oct 07 15:45:45 dennistlg: the problem is two icons? Oct 07 15:46:42 Leeds yes Oct 07 15:47:23 dennistlg: then yes, EPG is right :) Oct 07 15:51:50 now i have only one icon and that start the tab activtiy but not the main. Oct 07 15:52:10 now iam confused complete ;-) Oct 07 15:55:08 dennistlg: put your manifest on pastebin.com Oct 07 15:57:20 Yay... having some difficulty finding a socket client source for my app >_> I find it a little odd that it never asks the socket to connect()... Oct 07 16:00:18 http://pastebin.com/CyCSrEJn Oct 07 16:03:59 guys i am playing a bit with idea of creating simple online radio app and i am courious how can i get name of the song which is now playing? Oct 07 16:04:37 dennistlg: you want it to launch Main? Oct 07 16:05:05 yeah EPG told me the solution Oct 07 16:05:13 trying it at the moment Oct 07 16:05:14 hello, Help me to build layout: http://picpaste.com/layout.png Oct 07 16:06:35 generally I don't understand how to make Button wrap_content and EditText fill the rest available width Oct 07 16:09:20 I have application which makes xml file, if I debug it on phone where can I find that file? Oct 07 16:09:37 I know where to find it if i use emulator, but I don't know here is it on the phone Oct 07 16:10:15 wherever you put it? Oct 07 16:10:26 i need some best practice advice. i have an app which uses setKeepScreenOn(true). when the view is visible and i lock the phone then press the power button the lockscreen is shown but although the view isn't visible anymore the backlight keeps running. can/should i disable keepscreenon onResume and reenable it after the lockscreen is closed? Oct 07 16:10:31 Jur: 1) SD Card or 2) /data/data/ Oct 07 16:10:46 ok,tnx Oct 07 16:15:07 repeating my question again anybody here doing functional/integration testing for their apps? Oct 07 16:15:11 if yes what are you using? Oct 07 16:21:49 repeat my question: I want to make layout as http://picpaste.com/layout.png. How to make EditText fill of width-width of Button (which is wrap_content) Oct 07 16:25:20 who wants to write my socket client handshake >:3 http://codepad.org/gll9CMfK Oct 07 16:28:51 X-Raimo, have you tried playing with Eclipse's WYSIWYG layout editor? This often helps me figure out how the attributes affect the rendering.. Oct 07 16:29:20 gutano: For sure, Oct 07 16:29:39 X-Raimo, I assume you will want to use a RelativeLayout, or LinearLayout (layout_gravity right on the button, layout_width="fill_parent" on the TextEdit) Oct 07 16:29:47 gutano: It seems like I found solution, using nested weight Oct 07 16:30:02 =D Oct 07 16:30:24 but eclipse said: "it is bad in performance" Oct 07 16:30:52 [x-post #android] Gentlemen, I am trying to do register a sensor event listener for the accelerometer when to my dismay the compilation fails with this error: http://pb.lericson.se/p/gSQqFN/ Oct 07 16:31:38 I use android-15 Oct 07 16:32:46 hello Oct 07 16:33:11 is there a place where there is *working* examples on how to use android controls, for example a spinner? Oct 07 16:33:25 the code at developer.android.com just generates errors :( Oct 07 16:34:20 I use SensorManager TYPE_ACCELEROMETER and TYPE_MAGNETIC_FIELD but the pitch angle I am getting is only ranging between -90 to 0 and then back to -90 Oct 07 16:34:51 spinners are pretty simple stuffs Oct 07 16:35:05 google "android spinner example" Oct 07 16:35:41 the setRequestMethod under the HttpURLConnection class...i cant find the different parameters that work with it in the documentation: http://developer.android.com/reference/java/net/HttpURLConnection.html#setRequestMethod(java.lang.String) Oct 07 16:36:25 do we write our own function? for GET POST, etc? Oct 07 16:36:38 Komak57: i get errors Oct 07 16:37:11 "array can not be resolved or is not a field" Oct 07 16:37:35 using code from the example you mentioned Oct 07 16:37:43 Nobody knows why my Android build won't find just one silly symbol? android.hardware.SensorManager.registerEventListener(android.hardware.SensorEventListener,android.hardware.Sensor,int) Oct 07 16:37:44 doesn't work Oct 07 16:38:22 the setRequestMethod under the HttpURLConnection class...i cant find the different parameters that work with it in the documentation: http://developer.android.com/reference/java/net/HttpURLConnection.html#setRequestMethod(java.lang.String) Oct 07 16:38:27 ANY in strings.xml Oct 07 16:38:32 do we write our own function? for GET POST, etc? Oct 07 16:38:52 where is there documentation? Oct 07 16:39:42 =.= http://developer.android.com/guide/topics/ui/controls/spinner.html Oct 07 16:40:09 Komak57: but doing what that page suggest DOES NOT WORK Oct 07 16:40:26 it does, as I have it in my project? Oct 07 16:40:50 did you put the entries in the Spinner View in your layout? Oct 07 16:41:04 I added a string list to my strings xml file, and copied the code from that page, changed name and it complains that "array is not a field or can not be resolved" Oct 07 16:41:04 android:entries="@array/makes" Oct 07 16:41:16 the setRequestMethod under the HttpURLConnection class...i cant find the different parameters that work with it in the documentation: http://developer.android.com/reference/java/net/HttpURLConnection.html#setRequestMethod(java.lang.String) Oct 07 16:41:21 do we write our own function? for GET POST, etc? Oct 07 16:41:28 Komak57, Do you have any pointers in getting accurate azimuth, pitch, roll using Sensors. I followed the documentation but pitch is not right Oct 07 16:41:49 Komak57: it does not say to do so Oct 07 16:42:27 panegyric: something I designed to make all that coding a lot easer: http://codepad.org/G15YPUBR Oct 07 16:43:08 Manavan: last I heard, you needed to do a calibration? I haven't fiddled with any of that yet. Oct 07 16:44:11 Komak57, I tested some apps from app store, it works fine. So calibiration should be ok. Its just I think I am missing something Oct 07 16:45:49 Manavan: research is all I can say. I'm only on my 2nd app. Working with sockets, servers, and clients all in a background service & thread Oct 07 16:46:26 Komak, thanks I will. This is my first app. Oct 07 16:58:30 I'm confused about the difference between the NETWORK_STATE_CHANGED_ACTION, SUPPLICANT_STATE_CHANGED_ACTION, and WIFI_STATE_CHANGED_ACTION broadcast intents published by the WifiManager. What I'd like to do [in all cases] is to be notified when a wifi connection is ready to the point where I can make http calls to arbitrary sites. What's the best broadcast intent to listen for in this situation? Oct 07 17:21:06 can someone tell me why RTC_WAKE does not activate the screen? Oct 07 17:21:12 I send a notification during an alarm Oct 07 17:21:17 and it is sent Oct 07 17:21:21 but screen remains black Oct 07 17:29:20 hi Oct 07 17:31:20 Komak57: that works, but the java code in android.com guide is still broken Oct 07 17:32:50 so windows 95ish with double-clicks, attemts to compile xml with java bytecompiler etc :$ Oct 07 17:32:52 mi6_x3m, it wakes up the device. turning the screen on is something totally different Oct 07 17:33:08 EPG: yeah I thought so Oct 07 17:33:15 I'd have to get a wake lock I fear Oct 07 17:33:17 mi6_x3m: I'm not sure, but is it possible that all RTC_WAKE does is to just wake up the cpu, but not necessarily the screen? In other words, I wonder if you additionally need to acquire a powermanager.wakelock with the screen_*wake_lock settings Oct 07 17:33:19 and blend it myself Oct 07 17:33:31 lagged :-) Oct 07 17:33:36 kbs: it seems to be device dependent Oct 07 17:33:43 it turns on my phones screen Oct 07 17:33:47 but not on my tablets Oct 07 17:33:50 mi6_x3m: ah, interesting -- good to know, thanks Oct 07 17:33:54 mi6_x3m, avoid wake locks Oct 07 17:33:56 i would like to add an event handler to my spinner, so i can do something with changes Oct 07 17:34:00 how do i do that? Oct 07 17:34:17 alund: it is the probably second line in the spinner tutorial Oct 07 17:34:28 EPG: yes, I would, I would just leave it like that Oct 07 17:34:57 it that is trustworthy... Oct 07 17:36:53 EPG: what's the guidance on wake locks? I have a situation where I'd like to do some scheduled network calls during the night [to download content updates] and I can't seem to find a way to do it without acquiring a powermanager.wakelock Oct 07 17:37:58 mi6_x3m: do i have to create a class to listen to a click? Oct 07 17:38:07 alund: yeah Oct 07 17:38:11 you can create an anonymous one Oct 07 17:38:17 in what file, create a new one? Oct 07 17:38:36 and how do i know which spinner was clicked, if i have more? Oct 07 17:38:55 alund: are you new to java? Oct 07 17:39:02 yes Oct 07 17:39:36 to some extent, i have written a little bit of java, but i mostly did not like it very much Oct 07 17:40:17 but i would likt to try and create an android app... Oct 07 17:40:30 i tried appinventor, but that is too silly Oct 07 17:41:01 this does not feel a lot like java, more like xml, though Oct 07 17:42:04 kbs, afaik for your problem a wake lock is the only choice Oct 07 17:42:18 alund, every view should be created with an id="@+id/thishere" and then called with code using findViewById(R.id.thishere) Oct 07 17:43:04 Komak57: that worked well, it was the string array that caused problems Oct 07 17:43:19 probably how you had it set up in your layout.xml Oct 07 17:43:56 android:entries="@array/makes" is the tag you should use to use string-array in strings.xml Oct 07 17:44:15 EPG: cool. was wondering if I missed something obvious (as is usual for me :-) Oct 07 17:44:20 rather than @string/makes Oct 07 17:44:46 Anybody developing on one of those el-cheapo HDMI-stick Android devices? Oct 07 17:45:15 I'm developing on one of those el-cheapo Samsung Admires Oct 07 17:45:47 how cheap? Oct 07 17:46:37 oh nice -- I hadn't heard of these devices. very neat. Oct 07 17:46:59 kbs: the Samsung Admire, or the HDMI-stick ones? Oct 07 17:48:06 Hodapp: I think you mean Komak57? -- I hadn't heard of hdmi-sticks running android until you mentioned it. Just google'ing for it; and it looks pretty interesting. What's your take on them, as I assume you are developing on them? Oct 07 17:48:12 how can i get rid of the titlebar in the top of the app, showing the icon and activity title? Oct 07 17:48:40 alund, fullscreen flag Oct 07 17:48:43 kbs: I'm not developing on one; I was curious what it was like, from anyone who had one. Oct 07 17:48:52 Hodapp: :-) gotcha Oct 07 17:49:53 alund, requestWindowFeature(Window.FEATURE_NO_TITLE) Oct 07 17:54:39 Hodapp: they're pretty much android Oct 07 17:54:41 EPG: i don't want to get rid of the device statusbar Oct 07 17:54:51 Hodapp: there's nothing too weird about them, other than the super-china firmware they usually ship with Oct 07 17:55:11 alund, yes, therefore my second message Oct 07 17:55:21 Hodapp: most (the mk802, certainly) have an OTG port which lets you plug into a PC and push over adb Oct 07 17:55:52 Hodapp: usually adb runs as root on them, there's little or no security. The HDMI output is hte only screen so there's no detection - it's just a tablet as far as android is concerned. Oct 07 17:56:42 kbs: they're about $40 on amazon, w/ prime shipping, if you're looking to mess w/ one Oct 07 17:56:49 dragorn: would you have a suggested device that's inexpensive, and suitable for development? Oct 07 17:57:08 EPG: where? and what class defines Window? Oct 07 17:57:12 kbs: for the hdmi thing? search on amazon for 'mk802' Oct 07 17:57:45 kbs: While I don't really use one as my targeted device I've run a fair range of things on it. The only thing that definitely does not work out of the box is the usb host API. It can DO usb host, but the android side is broken Oct 07 17:58:17 I hear there'an abandoned CM9 port to them which has it working, maybe someone will fix other things with it. They're fairly neat little devices. Oct 07 17:58:27 dragorn: terrific. Thank you for the tips and pointers :) I indeed would like to mess around with one, and $40-ish is a good price to just that Oct 07 17:58:41 I pulled one apart, there's almost nothing in there but the allwinner processor, some sdram, and a usb ralink nic Oct 07 18:00:48 Can I get the spinner to display something else than the selected string? Oct 07 18:01:09 dragorn: to ask a naive question -- is there any way to use the remote control or something as a pointing device for it, or does one simply attach a mouse (or some other device) to the usb port? Oct 07 18:01:17 dragorn: OTG? Oct 07 18:01:57 kbs: you need to attach a mouse as they stand right now. You could plug in a wireless mouse receiver tho. There's no BT in them. There may be a hack to enable USB BT, I'm not sure - I messed w/ mine and then stopped, tho I've got another project involving them coming up Oct 07 18:02:20 Hodapp: usb host/client toggle-able mode. One port is host, one is OTG - defaults to client, so it can plug into a laptop Oct 07 18:02:34 kbs: you can slap a hub, a mouse, and a keyboard on it tho Oct 07 18:03:22 dragorn: ah, I see -- right. great tips, much appreciated Oct 07 18:03:47 kbs: it has enough grunt to run netflix, in theory something like xbmc could run some day. It's a weirdish little box. Oct 07 18:03:56 kbs: my $0.02? don't put your real google creds into it Oct 07 18:04:10 kbs: maybe I'm just prejudiced but I don't trust the stock firmware one bit not to be backdoored. Oct 07 18:04:26 That said I haven't seen anything saying it is, either, and ppl probably would have figured it out by now Oct 07 18:04:58 dragorn: understood. You mentioned a cm9 port -- but abandonded you say? Is there a device that you would suggest, for which there is an active cm port? Oct 07 18:05:06 can you even get your real Google creds into it? does it have Play Store? Oct 07 18:05:46 eclipse (or the android plugin for it) just creates error after error Oct 07 18:05:52 it is not a help Oct 07 18:06:11 Hodapp: it has play Oct 07 18:06:16 is is possible to so use a text editor, and loose eclipse? Oct 07 18:06:32 alund: yes, you can use ant and build yourself Oct 07 18:07:29 google 'android' and 'ant' and i'm sure you'll find tutorials Oct 07 18:08:23 maybe i should just go and do something that has good, functional documentation and working tools instead :\ Oct 07 18:09:01 alund... the most important part of programming an app, is having a clear image of what you want to do. Oct 07 18:09:08 this is a nightmare, the ide is an enemy and the docs are suggesting non-working code Oct 07 18:09:17 Komak57: give up Oct 07 18:09:22 Komak57: i do have a clear idea, and a design Oct 07 18:10:23 -chuckles- anyways. My socket client in my app doesn't want to connect to my socket server on my desktop >_> but the socket client on my pc connects just fine to my socket server in my app? Oct 07 18:10:26 but eclipse tries to prevent me from achieving that, rather than helping Oct 07 18:10:47 and i did not find any good examples Oct 07 18:13:32 alund... what exactly IS your overall project? Oct 07 18:13:59 anyone have experience with the 'Intellij IDEA' IDE? I'm not really much of a fan of Eclipse so I was thinking about giving it a try... Oct 07 18:14:12 marsilainen: i swear by IntelliJ IDEA Oct 07 18:15:26 JakeWharton: it looks good from the info & screenshots Oct 07 18:15:33 at least I can give it a try for free Oct 07 18:15:44 yeah I find it far superior to Eclipse Oct 07 18:15:46 Komak57: i try to make my first android app. the project is a starting timer for sailing, which is very simple: choose a start sequence from a menu (the spinner), and have a label showing the remaining time, and a start button to start the countdown - that is enough for a start Oct 07 18:16:08 Komak57: i thought that would be resonably simple for a hello world project. Oct 07 18:16:59 how can I tell ADB to reinstall a program? Oct 07 18:17:01 alund, are you aware that 1) when you close your app, the timers will be killed, 2) if the program goes into the background, or the screen is off, the android os may close and restart the app without you noticing (killing the timers) Oct 07 18:17:37 mi6_x3m: adb install -r file.apk Oct 07 18:17:53 JakeWharton: tnx Oct 07 18:18:00 Komak57: that can surely be worked around Oct 07 18:18:12 indeed there are, but they get very complex. Oct 07 18:18:26 how long are these timers (supposedly) Oct 07 18:18:28 Komak57: for now, i just try to build a very simple user interface, and implement some very simple logic Oct 07 18:18:40 the most common start time is 5 minutes Oct 07 18:18:53 but that is NOT the problem right now Oct 07 18:19:46 Alright, so where are you currently stuck at? Oct 07 18:21:07 Komak57: lack of reasonable documentation that i can trust i think Oct 07 18:21:22 insufficient reply Oct 07 18:21:49 trust us, the documentation is fine Oct 07 18:21:59 there is plenty of "reasonable documentation" you're just looking for the wrong terms. Now try again, what are you trying to do. Oct 07 18:22:13 Komak57: and lack of knowledge of the platform... for example i can not make a controls in a horizontal linelayout (or the layout itself) align to the right, because i can not figure out how to do that Oct 07 18:24:00 horizontal layout means each item you add to it is placed next to each other. the width attribute of each sub-view will adjust how much space it takes up. If you put a vertical layout after a horrizontal layout, you can have columns of items, and then rows after. Oct 07 18:24:01 probably, looking at some examples could help. i installed some using the android sdk thingy, but how can i see them? Oct 07 18:24:26 create a new project > Android sample project > pick a sample Oct 07 18:25:42 with eclipse, you can either write the code in XML, or use the graphical layout in a Visual Basic style design. Oct 07 18:27:19 Keep in mind, there are always 2 methods to create any view. XML template coding, or dynamic coding: TextView t = new TextView(this); layout.addView(t); Oct 07 18:28:35 that is not difficult. the problem is finding documentation and knowing proper values. in my world (c++) an ide helps with that, not so here. Oct 07 18:28:54 all sorts of odd errors pops up constantly so far :$ Oct 07 18:30:53 guys i am playing a bit with idea of creating simple online radio app and i am courious how can i get name of the song which is now playing? Oct 07 18:33:36 trying to create a android example project made eclipse experience an error, very typical Oct 07 18:35:33 alund: errors are fairly common. Finding out which part a particular error is referring to can get rather complicated. That being said, none of us can do ANY help if you dont provide source or error logs. Oct 07 18:39:50 alund: I think you're just experiencing coming from one platform/environment (c++) to something new (android/java)... you can't expect everything to be obvious to you straight away, there is a lot to learn & it's going to take some time Oct 07 18:40:39 alund: as you start to learn things then it will become easier and the errors will become easier to understand, the documentation easier to search (because you know better what you're looking for) and so on Oct 07 18:40:50 alund: I think you need a little more patience with it Oct 07 18:48:13 marsilainen: you are very much right i think :) Oct 07 18:48:39 so best way for calculator app (design wise) would be LinearLayout with an EditText and then grid layout for buttons? Oct 07 18:48:42 right now i feel like climbing a vertical ground with no help Oct 07 18:50:13 DarkGhost`: do you mean that you would use the EditText for where the numbers appear? Oct 07 18:50:41 DarkGhost`: I'm not very experienced in Android yet - but I would assume that most calculators would create a custom view for that Oct 07 18:51:10 DarkGhost`: but I guess in the intial getting-up-and-running sort of way then an EditText would be ok Oct 07 18:52:09 yeah, I mean I'm new too Oct 07 18:52:12 so I figured it'd be easiest Oct 07 18:52:14 but what about gridlayout? Oct 07 18:52:20 can I have a grid layout within an linear? Oct 07 18:52:38 calculators don't have to follow the old design of a pocket calculator though Oct 07 18:52:47 this is just a test app! LOL Oct 07 18:52:49 it might make more sense to allow people to write expressions as normal and evaluate them Oct 07 18:53:37 why listView.getScrollX() and listView.getScrollY() always return 0? how to get ListView's current scroll position? Oct 07 18:53:44 DarkGhost`: I've not used grid layout yet so I can't really comment on that Oct 07 18:54:34 bingels: because list view uses a virtual scroll system Oct 07 18:54:44 bingels: use getFirstVisiblePosition instead Oct 07 18:54:53 note that it won't (and can't) return a scroll position in pixels Oct 07 18:56:36 android:text="@+1", how would I make it so I don't have to create something in strings.xml I can just put the text directly in to android:text ? Oct 07 18:57:08 android:text="foo" Oct 07 18:57:10 unsurprisingly. Oct 07 18:57:14 yeah, figured it out Oct 07 18:57:14 lol Oct 07 18:57:19 View requires API level 14 (current min is 8): I get that when I try to use gridlayout Oct 07 18:57:20 :( Oct 07 18:57:38 romainguy after how to set this "FirstVisiblePosition"? Oct 07 18:58:04 DarkGhost`: use GridLayout from the support library Oct 07 18:58:45 romainguy how to apply this value? Oct 07 18:58:46 I'm not exactly sure what that means romainguy, but I googled and do you mean this: android.support.v7.widget.GridLayout ? Oct 07 18:58:57 DarkGhost`: yep Oct 07 18:59:02 thank you Oct 07 19:00:14 could I change the v7 to v8 ? Oct 07 19:00:19 romainguy on new version of support library exists like some Flow Layout (ViewGroup), when added View be carried if no more place on current? Oct 07 19:00:52 DarkGhost`: there's no need to Oct 07 19:01:13 romainguy please answer to my previous question Oct 07 19:01:13 bingels: no, FlowLayouts are rarely useful to create UIs so we don't provide one Oct 07 19:01:16 it's easy to write Oct 07 19:01:54 app crashes when I start it a long exception error about inflating android.support.v7.widget.GridLayout Oct 07 19:02:06 romainguy on Google Play application i saw "layout" like this Oct 07 19:02:23 tiles Oct 07 19:02:39 what's name of this? Oct 07 19:03:32 that like the MS's Metro style Oct 07 19:04:19 is there an API or policy to prevent user from installing apps on android ? Oct 07 19:08:44 sorry for bugging everyone, ( romainguy ) http://privatepaste.com/be8004a300 is there something that is cauasing android to crash? Oct 07 19:08:55 look at the logs Oct 07 19:09:25 I did, It says cant inflate android.support.v7.widget.GridLayout Oct 07 19:09:35 what do with value from getFirstVisiblePosition? not need select ListView's item, only Scroll to last position in ListView Oct 07 19:09:55 restore last scroll position of ListView Oct 07 19:10:25 *no need setSelection(..) Oct 07 19:12:02 hi Oct 07 19:12:11 * bingels watching google searching results Oct 07 19:12:19 anyway thanks romainguy Oct 07 19:13:04 is it possible to mix layout resources specs, i.e., res/layout-swdp with traditional method of handling densities? Oct 07 19:15:48 what need i import to get Window object? Oct 07 19:20:11 convivial: yes Oct 07 19:20:42 romainguy: thanks, this is good because apk can be used Oct 07 19:20:42 . Oct 07 19:21:00 *a single ape across various densities Oct 07 19:21:08 *ape = apk Oct 07 19:35:52 how can i make eclipse editor work normal? i can't even move the cursor in normal speed :( Oct 07 19:38:46 alund: Eclipse is quite a dog at times Oct 07 19:39:07 alund: I find it to be quite bloated, so it requires quite a lot of CPU/memory Oct 07 19:39:20 and even then it's slow Oct 07 19:39:32 maybe you can disable some plugins that you don't need or something Oct 07 19:40:25 anyone knows if MediaPlayer.setNextMediaPlayer() is supposed to provide gapless playback with MP3 and AAC ? According to my own test it is not gapless for these codecs. Oct 07 19:40:46 So I have an input field (edit text), and there are certain restrictions on what is valid input. In my case, space is not allowed. What is the common UI pattern to deal with this? Oct 07 19:41:56 can I use VideoView to play audio only files like mp3? or do I have to go back to MediaPlayer ?? Oct 07 19:42:07 derekv: look at InputFilter and the setFilters method of an edittext Oct 07 19:42:21 eclipse PREVENTS writing code instead of helping Oct 07 19:42:28 derekv, you can set up a listener on the edittext so that spaces are ignored, or just take spaces out after they edit it Oct 07 19:42:30 then don't use it Oct 07 19:42:42 jeppy: InputFilter is the correct way to do it Oct 07 19:42:50 ^ Oct 07 19:42:50 i will switch to a real editor as soon as i can figure out how to run things Oct 07 19:43:10 sampullman: looking (thanks) Oct 07 19:43:20 alund people are saying IntelliJ is better, haven't tried it myself yet Oct 07 19:43:34 derekv: a quick google search turns up a nice example http://stackoverflow.com/questions/3349121/how-do-i-use-inputfilter-to-limit-characters-in-an-edittext-in-android Oct 07 19:43:45 jeppy: i feel like just ignoring a keypress is going to make it feel like the keyboard is broken... but i want to see what other people do Oct 07 19:44:17 if you don't want the space key visible you'd need to write a custom keyboard Oct 07 19:44:40 with the InputFilter i guess you could show a toast that says "Spaces not allowed" or something Oct 07 19:45:42 i'd probably rather use a shell and a text editor Oct 07 19:46:05 ides == stiff shoulders Oct 07 19:46:35 sampullman: yea input filter is a start at least. I was thinking the dialog can say what is legal in the message, and maybe hitting space makes this part of the message flash or blink Oct 07 19:46:57 that makes sense Oct 07 19:47:01 that way the user isn't sitting there hitting the space repeatedly Oct 07 19:47:32 i wish custom keyboards were simpler to implement Oct 07 19:48:02 i always think it would be the ideal solution, but never want to take the time to do it Oct 07 19:54:35 well I have to implement a custom media controller Oct 07 19:55:11 the default rewind and fast forward is useless, better to replace those with fullscreen options Oct 07 19:55:57 original size unchanged, fit to screen, clip to fit, stretch to fit Oct 07 19:56:31 fit to screen would not lose aspect ratio and have black bars on the sides that is shorter Oct 07 20:00:49 is there something like enum in java? Oct 07 20:00:55 yes Oct 07 20:01:08 it's called... Oct 07 20:01:12 ...wait for it... Oct 07 20:01:16 enum! Oct 07 20:02:54 lol :) Oct 07 20:28:33 Who knows the C# dev chan? Need to tweak my server for non-blocking socket server (app isn't closing) Oct 07 20:29:21 Socket handler = listener.Accept(); is locking up my listen thread and I can't kill it >_> Oct 07 20:35:25 sounds a bit like needing to learn about BSD sockets in general Oct 07 20:41:44 Komak57: ##csharp Oct 07 20:49:29 i have a TextView textView1, and i want to use some code to update it, but java can't resolve TextView. So what do i need to import? There is no android.view.textview, and android.view.* does not help :$ Oct 07 20:50:59 the doc on developer.android.com says android.widget.textview, but that can not be imported either. Oct 07 20:51:02 import android.widget.TextView; Oct 07 20:51:11 i tried that Oct 07 20:51:13 hmmm Oct 07 20:51:28 your post was faster... Oct 07 20:51:34 are you in a normal activity? Oct 07 20:51:52 it appears to work now, restarted eclipse before Oct 07 20:52:05 did you TextView textView1 = (TextView) findViewById(R.id.textViewID); ? Oct 07 20:52:12 there seems to be no consequent use of upper/lowercase naming? Oct 07 20:52:38 ahh, alund... if there are any odd issues, try the toolbar Project > Clean Oct 07 20:53:09 or manually delete gen/pkg.pkg.pkg/R.java and let it auto-rebuild Oct 07 20:53:31 ok, thanks :) Oct 07 20:53:34 sometimes things like ID's get mixed up. Oct 07 20:59:06 alright... I've tried this several ways and I'm still not getting a ping from the server. mIRC connects (and of course dies after) so I seriously believe this is a client issue. Someone care to take a look? Would be MUCH appreciated: http://codepad.org/rtfHTLTI Oct 07 21:01:55 firewall 'should' be fine, even tried running through my external ip with port forwarding. my method just isn't connecting to the server socket... Oct 07 21:04:45 sourcing from: http://thinkandroid.wordpress.com/2010/03/27/incorporating-socket-programming-into-your-applications/ Oct 07 21:04:58 hello Oct 07 21:06:22 i am currently using gentoo as my OS to build android (on a server) as it is highly optimized. does anyone have suggestions on whether there is better options out there? this one is working fine, i am exploring options though... Oct 07 21:06:48 if it's working fine, stick with it! Oct 07 21:07:25 argh. that's what i was afraid of :p Oct 07 21:07:55 lol, I use win server 08R2 Oct 07 21:08:02 I have all sorts of bugs running it =.= Oct 07 21:08:15 but its sooooo clean Oct 07 21:08:17 arch linux has been recommended. i read into it, but it is not as customized. it seems all packages and drivers are generic, making the system bloated... Oct 07 21:09:51 Every OS has its pros and cons... like i said, if gentoo is working for you without problems, stick with it. Oct 07 21:10:17 Now! Why don't you help me with my Socket Client app ^.^ Oct 07 21:10:23 it's working great actually... Oct 07 21:10:35 lmao. i shouldn't be helping anyone lol Oct 07 21:11:09 i am more or less a glorified server maintainer. :p Oct 07 21:12:06 I've created a socket server in C# with the handshake and some commands. The idea is for my app to client connect to the server, exchange nicknames, then the server creates a client that connects to my app's server. The server connecting to my client works great. My app just refuses to create a client socket that connects to my server =.= Oct 07 21:12:59 App(Client)->Serv(Server); Serv(Client)->App(Server); Kill App(Client); Oct 07 21:13:31 what are you testing on ? Oct 07 21:13:42 actual device (Samsung Admire) Oct 07 21:13:44 can i do math calculations in java like other languages, "int foo = 10*10" or so? Oct 07 21:14:11 sure you can alund. Oct 07 21:14:16 you checked connectivity and permissions ? Oct 07 21:14:45 yush. Like I said, Serv(Client)->App(Server); was the foundation and it works great. Oct 07 21:15:22 are there any programming languages which cant perform math ops? Oct 07 21:15:49 There are no errors to my knowledge, besides SocketTimeoutException Oct 07 21:20:21 does new Socket(serv,port); do all the connectivity for me? I'm rather suspicious of it... Oct 07 21:23:10 i'm writing ftp library for fun … I hope devs will use it too Oct 07 21:23:32 Komak57: well it is an object that can establish a tcp connection Oct 07 21:23:45 it will be android's Oct 07 21:25:34 android'ish Oct 07 21:28:06 and my server listens for tcp connections. But for whatever reason, even though it's on the local network (wifi), it just won't connect. Oct 07 21:29:15 Good afternoon all. I'm in the process of converting my REST client calls from using apache httpClient to java.net.urlConnection and it appears POST file data is being uploaded properly, but my server is complaining about how the client connection is being terminated. Is there some step other than outputStream.flush(); outputStream.disconnect; urlConnection.disconnect(); that I should be performing? Oct 07 21:29:16 what does the server logs say? Oct 07 21:30:04 the only report I get at all, is http://codepad.org/XyvdOYjU Oct 07 21:32:26 try setSoTimeout(int timeout) Oct 07 21:32:34 hillct, Try using my HTTPObj class? http://codepad.org/5nXQZyYP Oct 07 21:33:46 convivial, how long do you suppose? infinite? Oct 07 21:34:02 initially yeah Oct 07 21:34:10 convivial: I'd set a long timeout (10 minutes) just to be sure connections dropped in case of error, but I would hope I wouldn't have to depend upon that for proper connection closure Oct 07 21:34:35 Komak57: checking out the class now. ty Oct 07 21:34:52 you gotta setup yer socket parameters too Oct 07 21:35:03 hillct: I believe you should close the outputstream when you are done Oct 07 21:35:34 public void connect (SocketAddress remoteAddr, int timeout) Oct 07 21:35:48 but you can also use fixedlengthinputstreamingmode or whatever it was to indicate to URLConnection how long your post data (or whatever) is Oct 07 21:36:20 InetSocketAddress(InetAddress address, int port) Oct 07 21:36:25 convivial, tried that (it's still there in commented areas). Even with an infinite loop, or a really long timer, it still just times out? Oct 07 21:36:32 make sure the port is open Oct 07 21:36:47 iirc I had to do HTTPURLConnection conn = (HTTPUrlConnection) new URL(foo).openConnection() to actually use these java.net shits Oct 07 21:36:54 hmmm, you know... that might be a good idea. How would I go about doing that? Oct 07 21:37:39 I don't like the cast, but unfortunately URL is a generic interface and there's not much you can do about it in statically typed OO sense. Oct 07 21:37:48 alankila, the link I sent him is an Object class that seriously shrinks a lot of the hassle with browsing :P Oct 07 21:38:20 looks useless to me Oct 07 21:38:27 so, is looks from Komak57's example that I need to set the keep alive header for lower api versions, and use fixedLengthInputStream to resolve this Oct 07 21:38:42 it's based on defaulthttpclient which is deprecated on android and has useless method like inputStreamToString which is poor copy of the EntityUtils.toString() or some such Oct 07 21:39:01 it also fucks up http response encoding. Totally hopeless. Oct 07 21:40:06 not that the defaulthttpclient itself does a stellar job with encodings, I'm afraid, but at least if the request says charset on Content-Type line, it will listen to it. Oct 07 21:40:11 One way or another, that class works for my projects for logging in to secure websites ^.^ Oct 07 21:40:14 err, response Oct 07 21:40:40 A tad buggy (locks up when executed from a menuoption), but effective Oct 07 21:41:37 yeah. looks like it'll get the job done. Thanks. Oct 07 21:43:59 I use this ugly-as-sin code to send XML documents via POST: http://pastebin.com/YmNPUCha Oct 07 21:44:26 convivial, the port is not available... Oct 07 21:44:35 I should do a bit more thorough job with the resource cleaning side, like make sure huc.disconnect() actually gets called sometime Oct 07 21:44:57 but other than that it's sorta-kinda-workable. IMHO beats the pants of DefaultHttpClient at least. Oct 07 21:45:19 convivial, at least on the android... Oct 07 21:45:32 unfortunately manually encoding POST request parameters is no fun, and I do that in another place when I have to send ordinary HTTP requests with the application/x-www-form-urlencoded type Oct 07 21:46:06 Well, I would LOVE for a new HTTPObj class ^.^ You should work on it and send me the results! Oct 07 21:46:39 ah, my docs say it is … are the docs broken?: Oct 07 21:47:11 but vhey that postXmlToUrl is enough for me to support SOAP. ;-) Oct 07 21:47:27 o.O "..." is my reply before looping (or in this case, exiting the thread) for debugger purposes. Oct 07 21:49:37 convivial, to my understanding, the only time a port should be open, is when I'm dealing with a socket server. My desktop server program has it's ports open. The android just isn't getting out? Oct 07 21:50:13 it is getting out. Oct 07 21:50:29 is it possible isp closed ports Oct 07 21:50:42 i mean provider Oct 07 21:50:53 i have no problem with it Oct 07 21:51:05 port 8080? I could try swapping to a higher port I suppose Oct 07 21:51:59 use a nice big number for sanity check Oct 07 21:52:10 but < 65535 ;-) Oct 07 21:52:18 Yep, over 9000 for sure ;) Oct 07 21:55:23 damn, almost out of caffeine just as I'm getting on a roll... Oct 07 21:56:01 I've got a question about the one x.. I'm wondering how I can tell if a rom is for the evita version or the other type of one x Oct 07 21:56:29 convivial, no change. Checking up on how to open a port on my firewall (server 08R2) Oct 07 21:56:30 ----> #android-root Oct 07 21:59:22 there we go! Oct 07 21:59:25 that fixed the issue ^.^ Oct 07 22:01:44 what was the problem Oct 07 22:02:27 Windows Server 2008 R2 didn't allow the port, even if the program was in the firewall. Semi-complicated method to allow it, but everything's peachy now ^.^ Oct 07 22:08:34 thought so, it does work fine Oct 07 22:09:34 anyone ever seen something like this before? http://stackoverflow.com/questions/12773282/android-app-homescreen-widget-icon-is-not-updating Oct 07 22:30:12 Komak57, convivial: Thanks again for the pointers. Using FixedLengthStreaming and a properly assembled entity (i'd failed to include a final boundary) I have thinks working at this point. Oct 07 22:56:11 I have a hard time getting the pitch working with Sensors. even after remapCordinates function Oct 07 22:59:33 sorry for bugging everyone, http://privatepaste.com/be8004a300 is there something that is cauasing android to crash? Oct 07 23:00:00 DarkGhost`, nonsense, the channel is here to help Oct 07 23:00:19 :) Your too nice mrenouf! but for some reason it says it can't inflate the gridlayout Oct 07 23:00:45 with what message? Oct 07 23:00:47 that requires the android-support-v7 (android-support-v7-gridlayout.jar) Oct 07 23:01:10 You can tell eclipse to add it to your project automatically if it's not there Oct 07 23:01:21 actually you have to use it as a library project, not a .jar Oct 07 23:01:36 yeah, pretend I said that ;-) Oct 07 23:01:58 sooo. how do I do this? Oct 07 23:02:22 in my android-dependcies i see a android-support-v4 Oct 07 23:02:24 file > new project, existing sources, SDK/extras/android/support/v7 Oct 07 23:02:38 then in your project go to project properties, android, add library project Oct 07 23:02:52 DarkGhost`: look at the logs Oct 07 23:02:55 hmm, "add support library" doesn't have an option for v7 Oct 07 23:03:13 yeah, gotta do it manually I suppose Oct 07 23:05:25 it worked Oct 07 23:05:27 THank you guys Oct 07 23:05:35 romainguy: the logs did not tell me to do that! Oct 07 23:06:06 well what did the logs say? Oct 07 23:06:17 he meant to find the problem with inflating. We just assumed it was ClassNotFoundException (that's 95% the case) Oct 07 23:06:23 I have array list gpsData and I will it with this: http://pastebin.com/im9Cb9X5 Oct 07 23:06:29 if the error is ClassNotFoundException it means you don't have the proper library Oct 07 23:06:36 why are in the end all elements inside it same as the last one that i entered? Oct 07 23:07:09 i'm also 99% certain that you have to use the res-auto namespace with that library Oct 07 23:07:14 so you need to change your XML Oct 07 23:08:37 what does that mean exactly jake? Oct 07 23:12:14 of course there aren't any docs for this... Oct 07 23:12:38 http://stackoverflow.com/a/10235108/132047 Oct 07 23:12:41 see step #5 Oct 07 23:14:37 yeah, that came out of nowhere. Oct 07 23:14:41 not even a blog post Oct 07 23:15:23 same with "app" namespace, which I think is automatically resolved to whatever your app package is? Oct 07 23:15:36 yeah Oct 07 23:15:49 they call it 'grid' on that StackOverflow but the convention is to use 'app' Oct 07 23:18:33 awesome. i forgot the res-auto too and didn't know wtf was going on Oct 07 23:19:07 xmlns:grid="http://schemas.android.com/apk/res-auto Oct 07 23:19:25 do I need both :grid and :xmls? Oct 07 23:19:31 i mean Oct 07 23:19:32 grid and android Oct 07 23:19:35 yes Oct 07 23:19:40 they are two different XML namespaces Oct 07 23:19:42 what exactly does that apk/res-auto do? Oct 07 23:20:01 how do I define what button is in what row/column ? Oct 07 23:20:10 it's basically a giant hack to fix shortcomings in the original design of Android's resource system Oct 07 23:20:55 use xmlns:app and then define app:row, app:column, etc. Oct 07 23:21:24 okay, I'm going to google this because I feel bad for asking what that means Oct 07 23:21:26 lol thank you jake, tons of help Oct 07 23:22:14 why can't I just do android:layout_rowSpan? Oct 07 23:22:28 because that's only available on API 14+ Oct 07 23:22:41 im using that. Oct 07 23:22:50 but the library isn't looking for it Oct 07 23:23:22 and Google didn't think it was a reasonable requirement to force people to use the latest SDK Oct 07 23:23:32 I installed "perl_for_android_r1.apk" but its only installer that needs internet connection to download complete perl for sl4a, I allready have perl_r9.zip, how do I install it offline ? Oct 07 23:23:51 xmlns:app="http://schemas.android.com/apk/res/com.commonsware.android.gridlayout" <-- do I need to change this or cna I use com.commonsware? Oct 07 23:24:06 change it to my app? Oct 07 23:24:13 use the res-auto version Oct 07 23:24:18 don't hardcode the package name anywhere Oct 07 23:25:10 http://schemas.android.com/apk/res-auto Oct 07 23:26:10 - error: No resource identifier found for attribute Oct 07 23:26:10 'layout_rowSpan' in package 'com.example.conversionapp' Oct 07 23:26:23 when i do xmlns:app=" http://schemas.android.com/apk/res-auto" Oct 07 23:27:32 Trying to get a dialog to appear in my Service activity. Erroring. Results: http://codepad.org/JeRkQrcs Oct 07 23:28:12 error: 10-07 19:12:08.599: E/AndroidRuntime(13010): android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application Oct 07 23:30:11 developer.android.com makes me want to throw coffeecups into the wall :( Oct 07 23:30:27 Hey guys Oct 07 23:30:34 alund, stackoverflow is usually your friend Oct 07 23:31:08 Komak57: does it contain a valid reference? Oct 07 23:31:17 alund: i think the redesign organized stuff much better, but i hate the visual design and typography Oct 07 23:31:48 Guys have you used Holo theme in any of your android apps ? Oct 07 23:32:37 Im trying to create one with Holo Dark theme but I cant find any resource for Holo theme online Oct 07 23:33:26 what, specifically? Oct 07 23:34:07 I am not even able to set the android:themes attribute in the android manifest file Oct 07 23:34:19 I am getting a resource not found error Oct 07 23:34:32 @android:style/Theme.Holo Oct 07 23:34:39 its API 11+ Oct 07 23:34:41 exactly Oct 07 23:35:02 yeah Im creating for API 14+ Oct 07 23:35:05 then use ABS, and set it to @style/Theme.Sherlock Oct 07 23:35:12 oh, then nevermind Oct 07 23:35:17 mahesmohan: you may want to see the i/o 2012 video on multiversion UIs or something like that Oct 07 23:35:29 14+ is cake Oct 07 23:35:40 g00s: you got a link ? Oct 07 23:35:44 yeah, i wish i could do 14+ :) Oct 07 23:35:57 should i be calling close() on the SQLiteDatabse i get from SQLOpenHelper in my service whenever i stop using it? i.e. essentially for every "operation" ? I'd rather hang on to it a bit longer so I can re-use prepared statement handles for example... Oct 07 23:36:18 http://privatepaste.com/63209eb87d sitll crashing . Oct 07 23:36:27 mahesmohan: https://developers.google.com/events/io/sessions/gooio2012/106/ Oct 07 23:36:34 ohh Oct 07 23:36:35 I figured otu why Oct 07 23:36:36 nvm Oct 07 23:36:41 what i am developing is a prototype Oct 07 23:36:54 mahesmohan: listening a little further, i'm not sure if thats what you need though Oct 07 23:38:46 g00s: all i want is my app to run in Holo theme so that it seems visually appealing Oct 07 23:39:08 didn't what mrenouf mention work ? Oct 07 23:39:15 http://privatepaste.com/eeb2640cc2 Why is it not laying first 3 buttons in row 1, and next 3 buttons on row2? Oct 07 23:39:23 even though I'm using app:layout_rowSpan Oct 07 23:39:26 im creating a prototype app for a company so that I could present it before some investors Oct 07 23:39:51 Anyone ever get a dialog to appear from a service on top of any existing activity? (like GO SMS and most IM's) Oct 07 23:41:07 I have my custom Toast working fine, but I keep getting a null token for my custom dialog =.= Oct 07 23:42:01 <[deXter]> Komak57, You can use the standout library Oct 07 23:42:50 <[deXter]> http://forum.xda-developers.com/showthread.php?t=1688531 Oct 07 23:44:44 DarkGhost: I don't think rowSpan and columnSpan do what you think they do Oct 07 23:45:47 [deXter] looks plausable :P though I might rather a still window, I'll see what I can do. Oct 07 23:45:54 DarkGhost: give this a read http://developer.android.com/reference/android/widget/GridLayout.LayoutParams.html Oct 07 23:45:58 thanks. Oct 07 23:46:31 okay, there not what I tihnk Oct 07 23:46:36 how would I set what rows / columns the buttons are in? Oct 07 23:47:22 ooh Oct 07 23:47:25 just row Oct 07 23:47:26 and column Oct 07 23:47:28 seemed to work better Oct 07 23:47:32 but it's all the way at bottom of screen now Oct 07 23:47:49 should I use gravity top? Oct 07 23:48:02 the support package for GridLayout isn't perfect Oct 07 23:55:29 [deXter] Trouble finding source guides. Got anything on that? Oct 07 23:56:16 <[deXter]> nope :/ Oct 07 23:56:40 <[deXter]> I haven't actually used this myself, just remembered reading about it Oct 07 23:58:30 It seems fairly simplistic, but it looks like a stand-alone project application, not really a library? I don't know. I'll keep looking, but the most direct path is the dialog box >_> Oct 07 23:59:42 android:text="<-" if I want to hardcode this in Oct 07 23:59:56 it gives me errors, I tried \<\- Oct 07 23:59:57 it didnt work Oct 08 00:00:38 try < Oct 08 00:00:43 ty Oct 08 00:00:57 and > for > Oct 08 00:02:30 g00s: I went through the video you shared Oct 08 00:02:46 I dont think thats what i want Oct 08 00:03:20 I am developing a 14 app Oct 08 00:03:44 I need it to work in Holo theme. Oct 08 00:04:20 I had set android:theme="@style/Holo.Theme" Oct 08 00:04:39 Hi guys, I'm looking for a way to prevent my app to restart automatically after a crash. I googled a little bit any help? Oct 08 00:04:43 but style doesn't have a resource named Holo.Theme Oct 08 00:05:15 where can I get the Holo theme ? Oct 08 00:05:44 I dont wanna go into the HoloEverywhere project and complicate things as API 14 should already support Holo Oct 08 00:06:40 please do not use HoloEverywhere Oct 08 00:06:43 ever Oct 08 00:07:06 mahesmohan: you need android:theme="android:style/Theme.Holo" Oct 08 00:07:22 DarkGhost`, or you can be fancy and use: ← and → ( \u2190 abd \u2192) Oct 08 00:08:50 hey JakeWharton you ddingebview? Oct 08 00:08:53 err Oct 08 00:08:57 wat Oct 08 00:09:02 yknow much about embedding video in webview Oct 08 00:09:11 omg what is happening Oct 08 00:09:20 I know almost nothing about WebViews Oct 08 00:09:22 keyboard malfunction Oct 08 00:09:23 ah ok Oct 08 00:09:48 JakeWharton: String types not allowed Oct 08 00:10:14 mahesmohan: try "android:Theme.Holo" Oct 08 00:10:25 the first one should have worked though Oct 08 00:12:08 JakeWharton: android:theme="@android:style/Theme.Holo" Oct 08 00:12:25 whoops, yeah my fault Oct 08 00:12:29 JakeWharton: thanks a lot :) Oct 08 00:14:28 http://privatepaste.com/2e1eb77fa7 The enter button, height is way to long Oct 08 00:14:32 how do I make it so it doesn't go all the way down? Oct 08 00:15:24 first you press ctrl+shift+f so your xml is readable Oct 08 00:15:31 lol Oct 08 00:16:20 I hate the wrapped and indented "/>" style Oct 08 00:16:29 its xml, not C Oct 08 00:17:52 woot nasa is about to launch a craft Oct 08 00:18:11 17 minutes to launch Oct 08 00:18:19 unmanned? will it blow up again? Oct 08 00:18:37 saw that experimental lander thing a few months back Oct 08 00:18:56 not sure if ti's manned or not. it's a cargo ship going up to the ISS w/ stuff adn wil be able to bring stuff back as well Oct 08 00:19:11 http://privatepaste.com/1ca765d88d h ow about now? Oct 08 00:19:15 ahh. those are usually unmanned Oct 08 00:19:41 no DNS entry for "nasa.gov". Srsly? get with the times ppl... Oct 08 00:20:13 oh, it's SpaceX Oct 08 00:20:16 cool Oct 08 00:20:38 they are late with the program, though Oct 08 00:20:45 yeah what is spacex? Oct 08 00:20:54 commercial spaceflight contractor Oct 08 00:20:56 I mean, they are third in deployment of automatic resupply ships ;) Oct 08 00:20:58 ohhh ok Oct 08 00:21:17 (Soviet/Russian Progress, then ESA's ATV) Oct 08 00:21:43 anyone? Oct 08 00:21:54 DarkGhost` i'm not sure, but why the gravity fill on it? Oct 08 00:22:46 i got it Oct 08 00:22:50 gravity="fill_horizontal" Oct 08 00:22:50 works Oct 08 00:23:14 cool Oct 08 00:27:18 Is there anyone in here familiar with building from source? I got an error while building cm from source: Pastebin.com/bb5225Le Oct 08 00:27:24 Any ideas? Oct 08 00:27:34 try #cyanogenmod Oct 08 00:28:42 i think Ron_frown does a lot of that but he is not in here right now Oct 08 00:40:58 Ladies and Gentlement, i would like to bug you with a question if you don't mind. I am beginner developer android, and have encountered a following problem. I am trying to dev a puzzle game, and it has a lot of bitmaps. Worst case scenario i have 1 bitmap that repeats 216 times, and another 36 that repeat 6 times each.. I am drawing everything on a SurfaceView with thread, but as you have guessed performance issues are pretty bad. Could Oct 08 00:42:26 Thanks @jakewharton. I've been trying to find more irc channels. Oct 08 00:43:03 And @speakingcode, thank u. I will watch for his name to pop up. Oct 08 00:44:31 pelmen: you got cutoff at "bad. Could" Oct 08 00:44:52 p_1 Oct 08 00:44:54 damn Oct 08 00:44:55 ok Oct 08 00:45:03 SO i have a puzzle game Oct 08 00:45:05 ...also, get a better font Oct 08 00:45:22 hmm here it looks just regular term font Oct 08 00:45:42 pelmen: the fact that it doesn't make you recognize 1 from l is a bad sign Oct 08 00:45:56 so puzzle game has 1 bitmap repeated 216 times and another 36 bitmaps each repeated 6 times Oct 08 00:46:04 i draw everything to surfaceview Oct 08 00:46:12 of course performance problems Oct 08 00:46:28 ANy suggestions from bitmap handling or onDraw logic ? Oct 08 00:47:01 hmm, my app works well on Nexus 7 and android 4.1 - but on samsung S3 (4.0.3), one of the activities is a blank white screen - I'm having trouble finding what the error is Oct 08 00:47:19 not sure how to go about what to test/do to find more info on the cause Oct 08 00:48:05 pelmen: have you tried using OpenGL? Oct 08 00:49:55 Anyone know of any other channels that might b good to try for source building discussion/help? Oct 08 00:50:03 Hello folks, I am using a cursorloader in a fragment. The cursorloader has three distinct loaders, which pass their cursor on to a custom cursor adapter. I was hoping I could use a switch inside the newView/bindview of the adapter to load different listview row layouts for each of the different loaders, but how do I invalidate/reset the listview/adapter between swapping loaders? Oct 08 00:50:54 p_l: nope as i said i am begginner, it would ba a little hard. Oct 08 00:51:34 p_l: what is the most effective way to handle bitmaps ? should i load them into static variables at app start or is it as fast to pull them from assets ? Oct 08 00:53:00 pull them from assets, but implement a cache Oct 08 00:53:27 I tried #teamhacksung (they weren't particularly nice, got the impression that they had better things to do, which is understandable), tried #android (too vague), and now #cyanogenmod. I wish there was some sort of irc channel list that had ALL the available channels. So if anyone knows of any that might b more geared toward the source part of things, I would appreciate the hookup! Oct 08 00:54:01 ugh.. popup dialog isn't being very nice >_> Oct 08 00:54:14 triptosyll: /list Oct 08 00:54:31 p_l: can you elaborate on cache ? maybe a link ? Oct 08 00:57:37 http://irc.netsplit.de/channels/?net=freenode Oct 08 00:57:51 Bankai: I tried that, but saw none that had a description about source building, and was just wondering if people knew which ones might b Oct 08 00:59:21 pelmen: basically, have a class that will cache in memory the bitmaps you have loaded Oct 08 00:59:22 triptosyll: what kind of source is that ? Oct 08 00:59:29 bankai_: Oops spelt your name wrong lol Oct 08 00:59:30 is it clean android ? Oct 08 00:59:35 also, please consider profiling first to see what is source of the slowness Oct 08 00:59:36 or cm Oct 08 01:00:04 gorudonu: its cm. Oct 08 01:00:42 I haven't done anything but sync the source and device, vendor, aries-common, and kernel trees. Oct 08 01:01:14 I assume that you were here; Oct 08 01:01:16 http://wiki.cyanogenmod.com/wiki/Building_Kernel_from_source Oct 08 01:01:44 p_l: thank you. How would i profile ? Oct 08 01:01:50 and here Oct 08 01:01:51 http://wiki.cyanogenmod.com/wiki/Template:Build_from_source_(CM9) Oct 08 01:02:45 eh... I don't remember the details for android, as I haven't checked the java environment on this recently Oct 08 01:04:44 p_l: thank you for your help Oct 08 01:04:51 pelmen: DDMS Oct 08 01:05:52 Why wouldn't getView get called? Oct 08 01:06:03 gorudonu: the second one, yes. The first one I've visited before. I already knew how to sync source and device trees so I didn't use a guide to download cm and the trees, or to initiate the build. And as soon as I 'brunch', it throws that error. Oct 08 01:06:48 triptosyll: I've never build it myself cuz I dont need to Oct 08 01:07:11 Is there a better way of reseting a cursoradapter when I am switching cursor loaders (than require different layouts to be ini/wrote to in newview/bindview) than setting the listview's adapter to be null, the adapter to be null, instancing a new adapter and setting the new adapter to the listview each time I need to load a different cursor? Oct 08 01:07:14 Gorudonu: I have all of aosp also, and if ur good with that than maybe u can give me some help with the error from there too. Oct 08 01:07:21 Or should I just be using distinct cursoradapters for each loader? Oct 08 01:07:33 Gorudonu: oh, OK. Nvm then lol Oct 08 01:08:37 triptosyll: there is a video on youtube how to build android btw Oct 08 01:11:19 Gorudonu: I know how to, I just don't know enough about android yet to know what all the errors mean. Thank u tho! Oct 08 01:12:41 triptosyll: sorry cant help you. I havent done anything with low level ;) Oct 08 01:13:29 @gorudonu its Aight bro. Thanks anywho Oct 08 01:17:44 sweeeeet >:3 got my popup dialog box working... time to clear up some stuff and then get my friend to draw me some graphics to make it look pretty Oct 08 01:19:14 seems all I needed to do was make a transparent activity style, call it, and have it create the dialog onCreate() Oct 08 01:27:48 Err, I need a screenshot of my phone's screen >_> any way to do that? The nature of the app prevents me from functionally testing it via emulator Oct 08 01:36:15 use ddms Oct 08 01:36:30 ctrl/command+S takes a screenshot Oct 08 01:40:07 yay =.= all that work for nothing... the phone won't be able to open a port for the socket server if you aren't on wifi... recommendations? Oct 08 01:42:04 guess i'll just have to leave it as a App(client) -> Comp(server); connection method Oct 08 01:42:16 Does anyone know what this file is? libs3cjpeg_intermediates Oct 08 01:43:45 Ha! I googled and found your pastebin Oct 08 01:47:32 who's pastebin? Oct 08 01:50:55 Haha yeah Oct 08 01:51:04 That's MY problem. Oct 08 01:51:49 If I can't find anyone who knows about it, I have no help. Google doesn't even know. Oct 08 01:52:55 I don't even know where to start. I have know idea what it is. Its 'needed by out/..../Aries.camera..... and so on Oct 08 01:55:17 Komak57, add a CONNECTIVITY_CHANGE Broadcast receiver and bind the port when wifi comes up? Oct 08 01:56:35 mrenouf, I kinda need the service available all the time. I figured with a socket server on the droid I might be able to make this rather interesting and 'different' XD no worries. Just have to redesign all the networking =.= Oct 08 01:57:04 you cant bind a port on an interface that doesnt exist Oct 08 01:57:15 I... think I'm going to have to 'hire' someone to create the custom View handles I want to display for my dialog >_> The ideas going off in my head seem perfectly plausable, but very... advanced XD Oct 08 01:57:26 you can bind additional interfaces as they come up Oct 08 01:57:28 I know, which is why I'm going to rewrite everything. Oct 08 01:59:09 it's just... I thought I could kinda turn my phone into a portable server for my computer to keep pinging (reduce some loads on the phone). Just not plausible. No biggie Oct 08 02:02:07 at least my dialog shows up now... have some serious remodelling from the template i was using, but it'll do nicely ^.^ Oct 08 02:02:25 oh, i need to see how it works mid-game Oct 08 02:10:23 custom toast messages work fine, dialog pauses the gameplay until it's closed (nicely I might add). Oct 08 02:16:56 JakeWharton, I've just decided that I want the map in my app to be inside a fragment. After a little research I have stumbled on petedoyle's github project which offers such functionality. I also found that you once supported it but then stopped and I didn't notice a reason. Is there something particularly wrong with the approach? Would you recommend against it? Oct 08 02:18:52 more MapView woes. :-( Oct 08 02:19:15 mrenouf: can i see some of the apps you made? Oct 08 02:19:15 I avoided MapViews and just called on other apps for GPS/Mapping Oct 08 02:19:57 I don't really mind using a regular MapActivity if that library is buggy Oct 08 02:20:14 techdigy, unfortunately not really. the main one I can point you to on the market right now is mostly not my work, but an update is getting really close for it ;-) Oct 08 02:20:30 ohh Oct 08 02:20:32 its ok Oct 08 02:20:34 Lol Oct 08 02:21:08 I have a billion little toy apps and libraries but I have a pretty high bar for what I actually publish. And I also need to get clearance from work prior. So I dont bother Oct 08 02:21:13 have any of you used a MapView inside a fragment? Oct 08 02:21:15 not trying to make money for sure. Oct 08 02:21:45 I've got a nice half finished bus/transit tracker Oct 08 02:21:55 :-) Oct 08 02:21:58 mrenouf, you're luckier than I... built my first app to help me with work. Tried to show it to my boss, he didn't give the okay. Though he can't exactly take my work, I also can't put it on the market for other co-workers without some serious copywrite infringements without some SERIOUS rebuilding. >_> Oct 08 02:22:12 I'd have to assume there isn't official support for it for a good reason Oct 08 02:22:41 jeppy, a solution is in the works, but Google has not committed to a timeframe yet. Oct 08 02:23:31 ok. I'll just keep my fingers crossed that it will be in the upcoming K release Oct 08 02:23:46 as I understand, MapView was a particularly gnarly bit of code, and one of the goals was trying to keep compatibility with existing apps so people can upgrade to it in existing apps Oct 08 02:24:41 jeppy, it will likely be a side library. that is the best path for small addons like that. If not, Jake would just backport it anyhow... heh. Oct 08 02:25:05 how do you guys make a living? developing? Oct 08 02:25:15 hitman Oct 08 02:25:23 yep, I'm a Software Engineer. Oct 08 02:26:08 though many times feel like a code monkey Oct 08 02:26:31 mrenouf++ Oct 08 02:34:38 This VPS company screwed me over today. Charged me $400 after free trial. Oct 08 02:35:21 refuse to pay Oct 08 02:35:47 tell visa you did not authorize the charges Oct 08 02:36:24 techdigy, wait "after" the free trial? That implies the part after the free part is not free. Oct 08 02:37:07 yeah but they charged me one day before it ended... I mean i just contacted them and they said they wil issue a refund in three days... no even better The middle man is paypal Oct 08 02:37:37 when will people learn, Paypal is not to be trusted Oct 08 02:37:44 *facepalm* Oct 08 02:39:51 what do you guys think of bitcoin and lr Oct 08 02:41:27 not sure what lr is, but I was into Bitcoin when it first took off. nearly made some money but didn't divest in time. Oct 08 02:41:34 I still have a ton of 'em Oct 08 02:42:39 Nice Oct 08 02:42:43 woo, they're back up over $10 Oct 08 02:42:57 but still well below my last buy-in price Oct 08 02:42:59 Yeah.. It fell hard after Mt. Gox was hacked last year Oct 08 02:43:22 no it fell hard cause it was in a huge bubble Oct 08 02:43:36 it went from 5 to 35 in couple months Oct 08 02:44:52 My main activity is finally working. Problem identified: Large background image for the relative layout. Oct 08 02:45:55 What package do i have to import when i "public class Menu extends Activity implements setOnClickListener " Oct 08 02:46:22 nice! by last buy price was 13.6 Oct 08 02:46:39 wait you still buy and sell? Oct 08 02:46:49 im so glad I never sold when it was hovering around $5 all last year Oct 08 02:47:02 anyway... sorry for the off-topic Oct 08 02:47:16 its ok... Where do people buy and sell them other them Mt. Gox Oct 08 02:48:04 nvm got it. Oct 08 02:48:05 import android.view.View.OnClickListener; Oct 08 02:48:31 that didnt work Oct 08 02:48:45 ohh "O" is capital Oct 08 02:48:54 no set Oct 08 02:53:59 Sorry if this is a stupid question. If i introduce R.id.button1 will java know what is it without creating the button on Top and refering to the view. Because the name of the button is blue and it seems like that. Oct 08 02:54:07 I'm just updating my build to use the latest version of the android maven plugin, which seems to pass an NDK_TOOLCHAIN parameter to ndk-build by default. What's the deal with the different toolchain versions (gcc 4.6 vs 4.3) and why would I want to use 4.3 over the default one? Oct 08 02:56:27 the changelog and so on is rather un-englightening... Oct 08 02:57:38 techdigy, anytime you write "@+id/foo", an R.id.foo gets allocated and defined. Oct 08 02:57:51 that same id is used anywhere you have the same name used. Oct 08 02:58:23 findViewById( ) searches the entire view hierarchy Oct 08 02:59:02 mrenouf: cool. In the tutorial i was watching he was like you have to introduce it as Button hey. and then Button hey = (Button) findViewById(R.blablah) Oct 08 02:59:26 ohh so i dont have to use findViewById? Oct 08 02:59:30 well, that's true. the id is just an identifier Oct 08 02:59:41 the type depends on what you assign the id to Oct 08 02:59:57 its only for that name though right? Like i can directly refernce the button **** ENDING LOGGING AT Mon Oct 08 02:59:58 2012