**** BEGIN LOGGING AT Sun Nov 04 03:00:02 2012 Nov 04 03:00:23 I'm trying to get a timer to work in a program but I seem to be getting an odd error Nov 04 03:00:29 Timer timer = new Timer(); Nov 04 03:00:29 TimerTask updateToast = new UpdateToasterTask(); Nov 04 03:00:29 timer.scheduleAtFixedRate(updateToast, 0, 3000); Nov 04 03:01:30 Getting a syntax error on the final ")" and a "VariableDeclarator expected instead error Nov 04 03:01:31 Any ideas? Nov 04 03:01:41 (On the timer.schedule line) Nov 04 03:02:06 did you declare your 'timer' and initialize it? Nov 04 03:02:12 hm, yes Nov 04 03:02:33 Oh, by the way, delays on in milliseconds, right? Nov 04 03:02:38 rtfd Nov 04 03:03:00 Didn't see it indicated Nov 04 03:03:09 Simply says it's "Long delay" Nov 04 03:03:36 Nevermind, I'm dumb Nov 04 03:03:43 But still, any idea with the error? Nov 04 03:04:03 make a clean class and try to repro Nov 04 03:04:09 paste that if you can Nov 04 03:04:34 it's probably something on a previous line Nov 04 03:04:37 like a missing semicolon Nov 04 03:04:47 or a : where there should be a semicolon Nov 04 03:09:29 hello all Nov 04 03:15:11 hey QubeZ Nov 04 03:15:40 yo tom Nov 04 03:18:40 still working on the ios version? Nov 04 03:19:09 was but stopped working on it to focus on being a new father... then work (real work) also started getting hectic Nov 04 03:19:23 just getting back to releasing the new version for Android (in a few days) Nov 04 03:21:37 oh yeah Nov 04 03:22:33 hows that going? Nov 04 03:24:29 being a dad? Nov 04 03:28:17 QubeZ: todomarp right ? Nov 04 03:28:25 *todomapr Nov 04 03:28:37 I'm trying to work with threading, but my GUI won't update like I want it to: https://gist.github.com/dff1f4a1244bca2f03cd Nov 04 03:28:39 Any ideas? Nov 04 03:28:49 g00s: ya Nov 04 03:29:06 QubeZ: have you done a tablet optimized version yet? Nov 04 03:29:45 g00s: not yet, after I get this release out in a few days... I am going to focus on the Tablet ver Nov 04 03:29:59 i think my struggle with that , has been i can see my program as entirely different beasts on phone/tablet Nov 04 03:30:18 g00s: right, as they should be Nov 04 03:30:27 oh i mean, /very/ Nov 04 03:30:51 I'll be moving to fragments which I haven't used in TDM but will be easier transition to tablet support Nov 04 03:31:10 i have a lot of work to do :\ Nov 04 03:31:14 :) Nov 04 03:31:20 hopefully its worth it Nov 04 03:31:31 but people seem to like it based on the feedback.. of course there's always stupid 1-star comments too Nov 04 03:31:35 but comes with the territory Nov 04 03:32:15 QubeZ: yeh i heard being a dad can be tiring Nov 04 03:32:18 It's very short code, guys :) I would appreciate a quick look if anyone has time Nov 04 03:32:31 and if anyone has familiarity with multithreading Nov 04 03:32:33 tdignan: it is, he's very good kid though but still exhausting Nov 04 03:32:45 jessicajames: why are you not using ASyncTask? Nov 04 03:33:09 native threading in Java is probably not a good idea when you have other methods like ASyncTask that will make things easier for you Nov 04 03:33:57 jessicajames: you are posting a runnable to the UI thread and sleeping in it. That's going to block the UI. Nov 04 03:34:18 you should research how to do what it is your goal is instead of guessin Nov 04 03:34:57 sure, you have a thread. all it does is post a runnable back to the UI thread that will block it. Nov 04 03:35:10 AsyncTask seemed more advanced/difficult so I thought this approach would be okay. But if you guys think otherwise, I will go ahead and read up on AsyncTask Nov 04 03:35:30 yes Nov 04 03:35:50 thank you Nov 04 03:37:08 jessicajames: its actually super easy Nov 04 03:37:27 not to mention less error-prone i.e. unlike what you just did in that code :P Nov 04 03:39:11 So on a termWindow, all GL textures should be invalidated? Nov 04 03:43:01 QubeZ, do you have any tutorials? I'm thinking of starting with this: http://www.youtube.com/watch?v=JVaGZwuYmck&list=PL5A73AACC3037C6F7&index=101&feature=plpp_video Nov 04 03:49:20 guys? Nov 04 03:49:25 terminate window -- GL textures gone? Nov 04 03:55:12 Apparently clicking the 'Back' arrow causes my app to be destroyed?? Why's that? Nov 04 03:55:42 ESphynx: i can't say for sure for OpenGL, but once the window is gone you can kiss all your Views goodbye. They will need to be recreated. Retaining them is wrong, because you'll leak an activity instance. Nov 04 03:55:56 same for orientation change Nov 04 03:56:22 i'm dealing with a similar problem right now, just not using opengl. writing code to persist the view state separate from the views Nov 04 03:56:22 then going to profile them to make sure they're created fast Nov 04 03:57:15 hmm Nov 04 03:57:49 about to smoke test my code Nov 04 03:58:40 heh Nov 04 04:09:58 hai Nov 04 04:10:09 anyone here at this hour of weekend Nov 04 04:10:22 echo Nov 04 04:11:07 there has been some activity here Nov 04 04:11:21 cool Nov 04 04:12:19 is there any way for my android app to send a direct email without bothering with external email-sending app (with app chooser & Intent etc) Nov 04 04:12:42 much like one would do on *nix machine simply "mailx bla bla bla" Nov 04 04:13:26 there is, but there isn't any standard lib to do it Nov 04 04:13:46 i saw some example code a few days ago Nov 04 04:14:22 what am i dealing with - low-level android APIs? raw java libraries? other? Nov 04 04:14:44 NDK even? Nov 04 04:15:57 you should be able to lob a Java SMTP library in, if you really want to Nov 04 04:15:58 open port 25 to the ISP... Nov 04 04:16:27 perhaps there is a more important question: how do email apps send emails; directly from device (by a real MTA), or the device just sends an HHTP request or somesuch to a server which actually sends the mail Nov 04 04:16:44 and you might find a lot of mobile networks block direct external port 25 connections Nov 04 04:17:18 *http Nov 04 04:19:03 haz i not clear enough question Nov 04 04:19:05 that's sounding a lot like an "if you need to ask..." question Nov 04 04:20:27 if an android device generally doesn't really directly send emails but rather requests a server to do so, then i wont bother much and ill do the same. if however there is a way to get the device to mail somethin' out directly Nov 04 04:20:33 i might prefer to try that Nov 04 04:21:08 again - without the app chooser & Intent process Nov 04 04:21:38 presumably you don't mean sending email on behalf of the user? Nov 04 04:22:17 whadyou mean, yes the user does want this message to be sent Nov 04 04:22:49 not necessarily From the user's email address, if thats what your pointing out Nov 04 04:23:48 it can be from lolrofl@myappmailer.com Nov 04 04:24:04 or even lolrofl@12.34.56.78 Nov 04 04:24:54 the user wants the message to be sent, but doesnt care for it to be sent as originating from the user's own email address Nov 04 04:27:32 that sounds smappy Nov 04 04:27:34 er, spammy :) Nov 04 04:27:39 yea Nov 04 04:27:59 that last address will get caught by spam assassin Nov 04 04:28:31 fine then myappmailer.com Nov 04 04:28:46 yeah, still spammy Nov 04 04:29:01 where is all the email going to be going to anyway? Nov 04 04:29:10 point is, does the device send out mailings itself? or does it pass all the info to a server to do so Nov 04 04:29:20 that's not the point Nov 04 04:29:26 to the destination of the user's choosing Nov 04 04:29:29 someone has to write apps for the nigerian market Nov 04 04:29:35 verified, of course Nov 04 04:29:47 lol Nov 04 04:30:07 am i really asking about something that shady Nov 04 04:30:15 if you give users access to sending mail by your domain it will quickly get flagged Nov 04 04:30:31 if i was a spammer i would abuse it Nov 04 04:30:45 yea, that's called an open relay. Nov 04 04:31:21 hmm.. Nov 04 04:31:21 just use GCM or something Nov 04 04:31:27 if users are going to be able to send mail through your app, then you will need them to connect to their own MTA Nov 04 04:32:15 not to mention, again, that a lot of ISPs will block outgoing port 25 Nov 04 04:32:18 ok basically what i'm trying to achieve Nov 04 04:32:40 In theory, you could always roll your own (e)smtp client, but the problem I suspect will be the amount of code to reliably deliver email. The gmail client (for instance) relays email via smtp.google.com:465 rather than directly connect to the mx host for the target. Nov 04 04:33:15 anyone have any links to empirical data showing that desktop & mobile users are different based on the class and nature of tasks they perform ? Nov 04 04:33:42 so if you're going through that much trouble, may as well just use http and do the heavy lifting of dealing with smtp at the server. Nov 04 04:34:10 kbs: I suspect regedit has neither the capability nor the inclination to run his own proxy Nov 04 04:34:17 regedit: tell us about the app... Nov 04 04:36:17 i have a question or two for android developers. Nov 04 04:36:33 i want the app to send some desired message to a desired destination email. the particular use case i'm thinking of ATM involves sending a shopping list as a SMS, in USA you can email to 1234567890@messageing.carrier.com and it comes as SMS Nov 04 04:36:36 i currently work on an embedded linux project that targets the arm926v5 Nov 04 04:36:55 the build system uses OpenEmbedded. And I really don't like OE very much. Nov 04 04:37:17 Leeds: ^ does that help Nov 04 04:37:45 at first glance android appears to have a more organized build system that is better documented Nov 04 04:38:03 our product would be "headless". Nov 04 04:38:04 edris_: note that this channel is for app development - not many people here have experience of the system build... system Nov 04 04:38:29 regedit: a little... Nov 04 04:39:07 fair enough. but let me ask my first question: our system is C++ based, talks to an fpga that talks to other devices. I'm curious have non-java apps will do in the android world. Nov 04 04:40:25 our current solution runs apache2, so we'd need to have that running as well. short of that, busybox leverages most of our commandline processing. Nov 04 04:41:12 so most apps that are being developed by folks in this channel.... are they java centric? Nov 04 04:44:12 edris_: not that I know the answer to your question; but to ask a dumb question -- is there any reason just compile/installing apache on your target architecture wouldn't work? Nov 04 04:44:39 Leeds: so, what would be the best way of going about that Nov 04 04:46:24 edris_, this is not a #java channel if that is what you are asking.. but yes, java as it relates to traditional android dev Nov 04 04:46:44 Leeds: also, do note that my app is trying as mush as possible to be usable in a "hands-free" manner (takes SpeechRecognizer voice commands) so im trying to send this message out without needing to choose email app, click "Send", etc Nov 04 04:47:07 regedit: probably doing it through your own server... meh, SMS, is old and boring Nov 04 04:47:33 edris_, ppl often discuss things like phonegap, ndk or deeper aspects Nov 04 04:47:37 edris_: headless … running apache … are you sure android is the right thing :P Nov 04 04:47:51 sounds more like embedded linux project Nov 04 04:48:32 oh heh, you already said that Nov 04 04:48:36 i sort of said it was an existing embedded project targeting and arm926v5 using embedded linux. Nov 04 04:48:38 hehe its late Nov 04 04:49:12 i want to get a better idea of the build system for constructing the android solid image, and the contracts with executing applications Nov 04 04:50:00 apache was just 1 example. we run multiple other common services (sshd, and others) Nov 04 04:50:44 weirdness happening here. I'm saving a bundle in Fragment.onSaveInstanceState but when it's recreated I get null back in onCreateView's Bundle. I'm positive onSaveInstanceState is being called, and that I'm calling super. Also, I've checked the logs for exceptions and none are occuring. Nov 04 04:50:49 any ideas Nov 04 04:51:18 ok, so regarding ndk... i've already got a gcc build for the arm926, so i would probably just use it to construct the libc/whatever choice of libs Nov 04 04:54:12 uh, he left. Nov 04 04:54:36 :| i have to write a test case. Nov 04 04:54:37 sigh Nov 04 04:54:38 oh well, was going to say, this looked kinda cool http://www.amazon.com/Embedded-Android-Porting-Extending-Customizing/dp/1449308295 Nov 04 04:55:20 looks like an interesting book Nov 04 04:55:32 i don't know enough about modding stuff Nov 04 04:55:40 due out very soon, so he could have probably gotten an early edition or something Nov 04 04:55:57 * g00s just realized apress has a fuckton of android books Nov 04 04:56:06 i remember when it was like 2,3 Nov 04 04:56:32 heh, Big Nerd Ranch Android book isn't by Murphy, even though he taught at BNR Nov 04 04:59:53 how is online data syncing done (like twitter or http://www.rememberthemilk.com/ etc) is everyone using GCM for that? Nov 04 05:08:14 rest apis, push, polling, syncadapters Nov 04 05:08:38 although I advise staying away from the last one unless you actually have a good use case. Nov 04 05:09:51 so GCM isn't the only way of keeping a device in sync with online stuff (and vice versa) and for example spawning notifications about such syncs Nov 04 05:11:16 tdignan: what's so interesting about GCM, or is it just a convenience instead of rolling one's own Nov 04 05:11:34 regedit, push instead of pull Nov 04 05:12:02 i havent used GCM, but i thought it was more of a signal that something changed … not the actual payload; so you still need whatever other machinery to do the actual syncing Nov 04 05:12:05 nothing bu GCM can push to an android device? Nov 04 05:12:22 *but Nov 04 05:12:23 Evening :) Any Australians in here? Nov 04 05:15:51 SuperRoach yes Nov 04 05:16:45 maxlamer, curious if you've seen about the 10k prize on the sensis hackathon? Nov 04 05:17:49 GCM is really only got notifying apps to collect payload data... and there is no guaranteed delivery Nov 04 05:18:19 RuperRoach no i havn't seen it Nov 04 05:18:20 regedit: read the docs and find out Nov 04 05:19:09 See what you think: http://yorkbutterfactory.com Nov 04 05:19:24 Oops thats the place, i meant http://www.androidaustralia.org/ Nov 04 05:21:12 doest say much Nov 04 05:22:06 * regedit smells advertisement Nov 04 05:22:47 topic violation? Nov 04 05:23:52 disclaimer: I have nothing to do with it, but i apologise. I was interested in the venue Nov 04 05:26:12 regedit, push instead of pull Nov 04 05:26:21 whoops.. mean to repeat my build in another temr. Nov 04 05:26:47 lol Nov 04 05:41:05 is it possible for an app to download additional functionality (code) as 'downloadable content" ? Nov 04 05:41:55 in other words an app that has options of what "functionality modules" you'd like to download and enable in the app Nov 04 05:44:01 i'm no expert, but i've definitely seen apps do that Nov 04 05:44:10 i'm pretty sure you have to supply the download server yourself though. Nov 04 05:44:41 are you sure it wasn't just a data download only, and the app already had the code/logic to handle that data from before Nov 04 05:44:55 *beforehand Nov 04 05:45:26 I'm not sure where the line is, but many things need to be present in the Manifest (like Activities, Services) Nov 04 05:45:36 yeah i think it was just a data download Nov 04 05:45:46 i didn't realize you meant like... custom addons Nov 04 05:45:48 I would guess, as a matter of security, that you can't "extend" an app too much Nov 04 05:46:05 i see... Nov 04 05:46:19 webview is one way to "extend" an app Nov 04 05:46:19 then i have a dillemma Nov 04 05:46:42 and apps can expose functionality to eachother, so you could have 2 apps that have "synergy" Nov 04 05:46:47 http://android-developers.blogspot.com/2011/07/custom-class-loading-in-dalvik.html Nov 04 05:47:28 my dillemma is as follows; Nov 04 05:47:39 i fell in love with SpeechRecognizer and im trying to make an app that can take hands-free voice commands to do all sorts of cool stuff Nov 04 05:48:14 like send messages, shopping lists, todo lists, play music, show wheather, check mail, whatnot Nov 04 05:48:27 i.e. Voice Actions on steroids Nov 04 05:49:17 at first i was thinking of implementing all this stuff in the app itself - ambitious i know Nov 04 05:49:47 but come to think of it, each of those above-mentioned actions are really a separate app in their own right Nov 04 05:50:00 that sounds like it fits right in with the "apps can expose functionality to eachother" pattern, I beleive that is a matter of (public) intent filters (handlers) Nov 04 05:50:24 yes i'm seeing that now Nov 04 05:50:33 which brings me to my dillemma Nov 04 05:51:08 i want this app to be a "center of operations" where the user comes back to after any actions, in a totally hands free manner Nov 04 05:51:17 as if the user never switched away to the other apps Nov 04 05:51:27 and can continue speaking more voice commands Nov 04 05:52:47 so anything like a Chooser screen, or even a "send email" button in the email app the user switched to, breaks the flow of my app Nov 04 05:53:32 makes me once again want to implement all the actions in my own app itself - ambitious i know Nov 04 05:54:02 if "Voice Actions on steriods" wasn't ambitous, it would probably already exist ; ) Nov 04 05:54:59 so you're basically telling me that yes, the only choice is to implement everything into the one app in order to keep the experience flow? Nov 04 05:56:55 I try not to speak in such certainties.. I can only say that I don't know how to do it, I would expect the receiving apps to respond to a "no-interaction" flag Nov 04 05:57:30 s/would/would need to/ Nov 04 05:57:53 it's late, you get my pt Nov 04 05:58:06 what if...... i make a general center-of-operations app, and its SpeechRecognizer framework which developers can build into their app. everyone who builds this framework into their app can be used seamlessly with my Voice Actions on steroids Nov 04 05:58:28 and this would basically depend heavily on developer-community acceptance / jumping on my bandwagon Nov 04 05:58:35 i'd say the key part of the sentence is the 'what if' Nov 04 05:58:44 maybe start coding instead of speculating and it will actually happen Nov 04 05:58:54 i haz teh codez Nov 04 05:58:59 it worx Nov 04 05:59:11 invisible codes? Nov 04 05:59:14 102 lines of code Nov 04 05:59:23 oh, you mean you've got the speech api working Nov 04 05:59:29 so, what else are you going to do with it? Nov 04 06:00:00 simple Nov 04 06:00:05 pick something small and targeted and get it working Nov 04 06:00:26 if("lalala".equals(text)) executeThis(); Nov 04 06:00:27 better yet, have you reviewed apples patents to see if you aren't going to get sued into oblivion... I'm betting this will be hard to do without rounded corners Nov 04 06:00:35 if("lololo".equals(text)) executeThat(); Nov 04 06:01:12 apples got rounded corners on LOCK DOWN Nov 04 06:01:28 regedit: so what's stopping you then? Nov 04 06:02:11 i was just musing aloud, as i started off saying "what if....." Nov 04 06:02:44 here's a potentially scientific fact I read about a while back Nov 04 06:02:56 frankly i'm terribly surprised no-one's done anything like this yet Nov 04 06:03:04 the more you talk about your project idea, the more people will validate it, and the less you will feel like you need to do it. Nov 04 06:03:11 oh, I've seen apps that do similar things. Nov 04 06:03:13 They just all suck. Nov 04 06:03:20 see if you can do better Nov 04 06:03:37 this sounds like a ploy to get me booted from #android... like if I say "siri" Nov 04 06:03:48 getting booted from here. haha Nov 04 06:03:52 you'd have to be very juvenile. Nov 04 06:04:04 what's so hard of doing if("we need moar onions".equals(text)) shoppingList(text); Nov 04 06:04:17 the speech recognitions accuracy Nov 04 06:04:27 i wanted to make a joke about hot boy cash money millionaires Nov 04 06:04:32 things are of course going to be a lot better now that it works locally Nov 04 06:04:35 but i don't think most of anyone would get it Nov 04 06:04:37 what if the user meant to open more onion articles ? Nov 04 06:05:06 the app wold have clear instructions about limited vocab Nov 04 06:05:13 think of it as *nix commands Nov 04 06:05:30 "echo" is the one and only command for that purpose Nov 04 06:05:39 regedit: read a book on voice UIs :) there are a few Nov 04 06:05:49 * tdignan writes down idea for voice-to-unix terminal app Nov 04 06:05:51 thanks. Nov 04 06:05:53 i probably missed something but errr... wtf u talkin about? Nov 04 06:05:55 free ideas are always appreciated. Nov 04 06:06:04 heh good luck saying ls Nov 04 06:06:07 fsck Nov 04 06:06:11 "list" Nov 04 06:06:18 "el es" Nov 04 06:07:19 good luck saying cat mkinitcpio.conf | grep -i ([8?azAZ}**)5 Nov 04 06:07:26 hey honestly i'm just in this for the fun atm. looking for ways to make life easier around the house. that's why i called my app FridgeBot Nov 04 06:07:32 speakingcode: cat | grep? please Nov 04 06:07:32 nexus 7 on the fridge Nov 04 06:07:35 regedit: are you trying to do something like this ? http://www.amazon.com/Practical-Speech-Interface-Factors-Ergonomics/dp/1439815844 Nov 04 06:07:40 grep foo mkinitcpio.conf Nov 04 06:08:43 just an example, the point being piping, regexes, etc Nov 04 06:09:04 g00s: i dunno about no fancy textbooks, i speak into SpeechRecognizer and i get very nicely accurate-enough results in text. what else can i ask for Nov 04 06:09:34 so you arent working on the voice recognition part, you are working on the VUI then Nov 04 06:09:43 ok, great … you still can't be a dumbass. get educated Nov 04 06:09:48 :) Nov 04 06:09:58 yup, figured out the speech part within about 3-4 days Nov 04 06:10:31 never having developed with android before, mind you Nov 04 06:10:36 although do have Java experience Nov 04 06:10:56 see, this was my point. seeking validation from us isn't going to help you write code Nov 04 06:10:59 just code! Nov 04 06:11:20 might even rig my kitchen with additional mics for convenience/clarity, with some Arduino hack or whatnot Nov 04 06:11:29 majke a frt soundboard app thjat lets u record ur own farts Nov 04 06:11:47 you seem to have a fart keyboard Nov 04 06:12:01 eating a sub Nov 04 06:13:14 im still pondering about the apps part, whether to implement EVERYTHING into one app (shopping lists, too, email, music, whather, news, etc etc) or whether to make it a framework - will developers care and will they make the apps i'm thinking of..... Nov 04 06:13:29 s/too/todo Nov 04 06:13:56 err what? Nov 04 06:14:15 b4 making a framework ask what it achieves Nov 04 06:14:21 speakingcode++ Nov 04 06:14:23 tdignan: may i please have your validation about that ^ :D Nov 04 06:14:33 i said Nov 04 06:14:38 I think you should make a fart app, put admob ads Nov 04 06:14:53 it achieves a streamlined uninterrupted hands free voice commanding of your android Nov 04 06:14:58 hell, the director of apple's app store did Nov 04 06:15:12 regedit: i am silently jotting down your ideas and plottng to steal them Nov 04 06:15:24 didntv google already do that regedit? Nov 04 06:15:31 tdignan: please just give me the google play link when its done Nov 04 06:15:53 it's unlikely, i'm in the shit working on my own project already Nov 04 06:15:53 like i said, ATM i really just want the convenience of such a technology, not so much teh moneyz Nov 04 06:16:03 but maybe i'll take an hour to hammer something funny out. Nov 04 06:16:42 speakingcode: if you're referring to Voice Actions, they should turn that into a framework Nov 04 06:16:58 Voice Actions should be something you can plug into your app Nov 04 06:17:06 ou can Nov 04 06:17:10 you can* Nov 04 06:17:17 and not only that - but in a totally hands-free manner Nov 04 06:17:32 Why am I getting these error:undefined reference to `__fprintf_chk when building with the x86 compiler? Nov 04 06:17:32 like in my SpeechRecognizer loop Nov 04 06:17:34 that kills battery Nov 04 06:17:45 it would have to always listen Nov 04 06:17:55 i dont care 'cuz its plugged in & stuck on my fridge Nov 04 06:18:19 "hey fridgie, text my wife to STFU" Nov 04 06:18:23 so ur making a battery draining framework Nov 04 06:18:25 m that's fixed :| Nov 04 06:18:53 you can turn off continuous listening if youd like Nov 04 06:19:10 that what the little microphone button does Nov 04 06:19:18 ya know, th eone that says "speak now" ;-) Nov 04 06:19:38 did you say Voice Actions is already framework'ized? how so, how can i make my custom voice commands that do things i want Nov 04 06:20:05 aside from the active listening Nov 04 06:20:21 you basically call the proper intent Nov 04 06:20:39 the system will do the recording, make the guess, you can return back a set of results or the "most likely" Nov 04 06:20:45 as a string basically Nov 04 06:20:59 link to API pages about this please Nov 04 06:21:09 apk/lib/armeabi X86--> ?? Nov 04 06:22:52 speakingcode: really, where do the docs explain this please, i want to read Nov 04 06:24:28 looking, one sec Nov 04 06:25:53 why am i remembering a stackoverflow responsa saying Voice Actions is only available for the few things that google hardcoded it for, no custom hacking possible Nov 04 06:27:40 http://developer.android.com/reference/android/speech/RecognizerIntent.html Nov 04 06:28:19 fail Nov 04 06:28:20 try again Nov 04 06:28:51 How to properly respond to a 'destroy' ? Nov 04 06:28:51 that has nothing to do with voice actions Nov 04 06:29:02 I'm getting a destroy time out... Nov 04 06:29:06 thought my app was all done Nov 04 06:30:16 oh, it doesnt? cause i think i t does Nov 04 06:30:31 i think it has everything to do with what i just told you Nov 04 06:31:21 ACTION_VOICE_SEARCH_HANDS_FREEStarts an activity that will prompt the user for speech without requiring the user's visual attention or touch input. Nov 04 06:31:33 hmmm, sounds familiar... Nov 04 06:32:31 yes RecognizerIntent is for speech recognition, i use it in my code Nov 04 06:32:39 its for recognizing speech Nov 04 06:32:44 If you get sued by apple, you win Nov 04 06:32:50 it will be good publicity Nov 04 06:32:56 no mention of lanuching arbitrary apps based on spoken text Nov 04 06:33:18 g00s would probably read about it on his blogs then come paste a link to it here Nov 04 06:33:50 show me how to lanuch _any_arbitrary_app_ by its name or some-such using the Voice Actions facility Nov 04 06:34:21 regediot... Nov 04 06:34:30 like i just said Nov 04 06:34:36 you run the recognizer - that's step 1 Nov 04 06:34:39 you get the result Nov 04 06:34:50 you match it to your set of available commands, then take the appropriate action Nov 04 06:35:02 lolrofllolrofllolrofllolrofllolrofllolrofllolrofllolrofllolrofllolrofllolrofllolrofllolrofllolrofllolrofllolrofl Nov 04 06:35:33 thank you, i didn't know that. this totally means that android's Voice Actions facility is an open framework Nov 04 06:35:56 not Nov 04 06:36:15 what are you talking about? Nov 04 06:36:33 how do you normally launch an app? Nov 04 06:36:42 how owuld yuo build a launcher? Nov 04 06:36:59 without voice? Nov 04 06:37:01 perhaps you confuse android's Speech Recognition facilities with android's Voice Actions feature Nov 04 06:37:09 well, do the same thing, and use the speech recongixer to voicify, durrr Nov 04 06:38:09 anyway, nothing to see here, moving along Nov 04 06:39:38 so guys, why do I get this destroy timeout now? For all I know my native app is done :\ the thread terminated... Nov 04 06:40:31 make ab utton. onclick, speech recognizer. take the result, which is a string. match that string against context.getPackageManager().queryIntentActivities(new Intent(Intent.ACTION_MAIN, null)).addCategory(intent.CATEGORY_LAUNCHER))) Nov 04 06:40:52 i mean seriously i think i could do this in one ugly line of code Nov 04 06:41:33 http://xkcd.com/386/ Nov 04 06:42:56 you try to help someone Nov 04 06:43:05 ESphynx: you should be stopping everything in onPause Nov 04 06:43:27 saving any data that needs to be retained Nov 04 06:43:35 ESphynx paste some code on pastebin n we mite be able to tell you specifically in your case Nov 04 06:43:37 using Fragments, though. Nov 04 06:44:02 tdignan: at this point all I care is to not get this timeout, so my app can restart cleanly :) Nov 04 06:44:11 I hit the 'back' button on the emulator, and that sends me a 'destroy' Nov 04 06:44:14 so in your onPause() callback stop everything Nov 04 06:44:19 tdignan: btw i dont even know how worth it is to make this kinda app/service/framework, i anticipate google making Voice Actions an open framework anytime soon Nov 04 06:44:21 in response to that, my thread exits Nov 04 06:44:39 i just got done making my app work nice on config changes Nov 04 06:44:50 completely retains all the state for my custom view inside my fragment Nov 04 06:44:58 picks up right where it left off :) Nov 04 06:45:06 as far as active listening, regedit, all you need to do is keep the mic on and run the input through a pretty basic classifier to decide the user is talking Nov 04 06:45:13 are you using fragments ESphynx ? Nov 04 06:45:19 if not, you should be Nov 04 06:45:35 V/ecere-app( 1989): THE END. Nov 04 06:45:35 W/ActivityManager( 1013): Activity destroy timeout for ActivityRecord{b48c3a08 com.ecere.Hello/android.app.NativeActivity} Nov 04 06:45:43 once it classifies a positive you can then pass the input throug the speech recognizer Nov 04 06:45:45 THE END is right before my thread terminated Nov 04 06:45:51 as described above Nov 04 06:45:58 speakingcode: not so simple actually, finding intentional speech among random chatter Nov 04 06:46:00 ESphynx: oh, native activity eh Nov 04 06:46:04 does it have onPause callback?' Nov 04 06:46:19 regedit that problem has largely been well solved Nov 04 06:47:15 tdignan: there's an onpause, but my issues is with onDestroy, not onPause :P Nov 04 06:47:50 "...massive catastrophic proportions of unpredictable scope hey fridgie we need more beer so anyway as i was saying cosmological apocalypse..." Nov 04 06:47:56 i'm sure some basic features o nthe audio signal are suitable for binary classification Nov 04 06:48:11 well, make a reasonable init command Nov 04 06:48:20 "fridgie! we need more beer..." Nov 04 06:48:27 like xbox does Nov 04 06:48:51 "xbox! open netflix... xbox! find the lion king Nov 04 06:48:55 speakingcode: https://github.com/ecere/sdk/blob/master/ecere/src/gui/drivers/AndroidInterface.ec Nov 04 06:50:42 obviously relying on a fixed init signal is gonna be easier to implement than distinguising among chatter, pick ur battles Nov 04 06:50:46 speakingcode: i do anticipate this kind of functionality being implemented either into the android OS or at least google apps (voice actions/search etc) Nov 04 06:51:14 how wrong might i be about that Nov 04 06:51:42 and then i'd have wasted my weekends for no reason Nov 04 06:51:45 everythingi s there fr it Nov 04 06:52:10 go do it n make a rough cut within n app, put it out there Nov 04 06:52:31 except google didnt make it an official API kind of thing, to make your app available from a continuous listening mic, or from the voice actions button Nov 04 06:52:45 but i anticipate them doing this soon Nov 04 06:52:48 unless im very wrong Nov 04 06:52:53 not sure Nov 04 06:52:58 i don't know the mechanics of the mic on the android Nov 04 06:53:06 may vary by device too Nov 04 06:53:16 but mics are usually low power Nov 04 06:53:20 lots of things vary by device Nov 04 06:53:33 well that's interesting. my onDestroy() is not returning... it's not my main thread that's the problem :| Nov 04 06:53:36 even if i hack this app together myself, itll still vary by device Nov 04 06:53:43 so having it doing passive listening is reasonable Nov 04 06:54:17 my target is pretty much tablet devices that are plugged in and stuck to a fridge Nov 04 06:54:21 or toilet seat Nov 04 06:54:33 not so much phones Nov 04 06:55:06 the passive listener just needs to take samples of data, and classify that a command is happening - that will be exponentially lighter than the actual speech recognition Nov 04 06:55:21 phones is something you hold in your hand. if you're holding it anyway, smash your thumb on it and talk Nov 04 06:55:56 and while you're at it, browse to the app you need and stfu Nov 04 06:55:57 the problem is that dependingo n your classifier slicing the input stream into samples can result in slicing the signal for the command, and cause an incorrect negative Nov 04 06:56:14 but what im trying to make is for the car, or the fridge Nov 04 06:56:30 or desk Nov 04 06:56:40 but that problem is solved by a sliding window approach, i know that solution exists becasue i worked with people that developed it in the past Nov 04 06:57:34 i dont need to slice the audio data, ill just slice the resulting text itself no? Nov 04 06:57:51 i mean before you get to speech recognition Nov 04 06:57:57 so like the mic is always on Nov 04 06:58:00 passively listening Nov 04 06:58:00 why bother Nov 04 06:58:14 and it waits to determine "yes, the person is barking a command at me" Nov 04 06:58:17 send everything to speech recognition, slice the resulting text Nov 04 06:58:22 THEN it does speech recognition. Nov 04 06:58:26 well you could Nov 04 06:58:36 hog googles servers to the bone Nov 04 06:58:54 but then you're constnatly sendnig to speech recognition - you still have to slice and rejoin the segments you send, and that will perform crappy Nov 04 06:59:48 the load of loading the speech recognizer, doing the process, returning the result, constantly, then building some text stream, parsing it out, looking for commands... awfully heavy especially if yuo want a general framework Nov 04 07:00:02 commands arent that long Nov 04 07:00:19 right but how do you know when a command starts and stops if it's always listening and there's chatter? Nov 04 07:00:45 speechRecognizer.startListening(intent); is all it takes every round Nov 04 07:01:03 that's why i'm saying first "passively listen" and take the mic data (always on right) through a classifier that determins "bam! a command is happening now start recording for speech recognizer!" Nov 04 07:01:06 whatever, i have it all figured out about that Nov 04 07:01:28 too complicated playing with audio data Nov 04 07:01:36 nah, pretty simple Nov 04 07:01:44 much easier to hog googles servers Nov 04 07:01:49 there's plentyo f literature and code out there for this Nov 04 07:01:51 nah Nov 04 07:02:17 the input comes ni faster than you can constantly slice, recognize, result, rejoin, find command Nov 04 07:02:51 i have to do my own speech recognition then, to find the init utterance Nov 04 07:02:54 test it - see how fast you can take one segment of speech and get a result back - probably not near as fast as you can continuously talk in a conersation Nov 04 07:02:58 nope Nov 04 07:03:01 you only need to classify it Nov 04 07:03:04 not recognize it Nov 04 07:03:38 you can use features of the singal like amplitude over duration, for instance, or other basic statistis related to this sort of thing - there's lots of literature and code out there for this Nov 04 07:04:04 2 steps - determine IF a command, then record and recognize it if so Nov 04 07:04:06 this is too complex for noob like me, ill just hog googles servers Nov 04 07:04:29 certainly feel free to try, i just fear its not near instaneous enough Nov 04 07:04:40 doesnt need to be Nov 04 07:04:57 for example, siri isnt either, but its acceptable enough Nov 04 07:05:10 what will happen is you talk for 15 seconds of chatter, then say a command, and by the time you say the command the first 15 seconds (even as multiple segments) is still processing Nov 04 07:05:12 ESphynx: any luck with onPause & shutting your stuff down before it leaks? Nov 04 07:05:18 btw ops kick me now for mentioning siri Nov 04 07:05:19 and then the command is missed Nov 04 07:05:30 tdignan: onDestroy you mean? :P Nov 04 07:05:36 no no! Nov 04 07:05:46 why do you keep talking about onpause :P Nov 04 07:05:50 i don't case about onpause :P Nov 04 07:05:52 when open send mail form (via android.content.Intent.ACTION_SEND), the cursor is at the bottom of content textview (my preset text is long), is there a way I can move to the top of the form (either the cursor or just scroll the form up to top)? Nov 04 07:05:52 onDestroy is an unreliable call only meant for freeing up resources. It should never be used to like, stop a thread. Nov 04 07:05:55 speakingcode: ill just throw a "whuut? fridgie dont grok what you said. come again please" Nov 04 07:05:56 ESphynx don't do anything in ondestroy Nov 04 07:05:57 ESphynx: that's what you dont' get Nov 04 07:05:59 onDestroy SUCKS Nov 04 07:06:04 onPause rules Nov 04 07:06:06 :P Nov 04 07:06:10 I need to use onDestroy here man :P Nov 04 07:06:14 regedit yu can, i guess Nov 04 07:06:19 this is the native app stuff :P Nov 04 07:06:30 but it will constantly be saying that over and over Nov 04 07:06:32 let me take a look at the native activity Nov 04 07:06:44 while you and your drinkng buddy argue over who has the loudest fart app Nov 04 07:06:55 and constantly missing your commands Nov 04 07:07:12 speakingcode: ill make initial beep like siri Nov 04 07:07:13 ESphynx: the thing about onDestroy is that it's often not going to be called. Nov 04 07:07:24 where appliccable Nov 04 07:07:30 regedit, when do you trigger the beep, if it's constantly listening? Nov 04 07:08:03 i think there is a circular logic going on you're missing, maybe. and i don't say this to be a dick i'm just seeing an issue and i'm not sure you do Nov 04 07:08:11 you might clean up your threads and stuff in onDestroy, but don't use it as a place for stopping them. Nov 04 07:08:17 speakingcode: when you prompt it to (like when you say just "fridgie!" and wait a bit, or when a "fridgie dont grok" gets thrown) Nov 04 07:08:26 Anyone know why my action bar menu icons wouldn't be centered in their spaces? Nov 04 07:08:28 right Nov 04 07:08:32 but how does it know you prompted it? Nov 04 07:08:43 by doing speech recognition you say right Nov 04 07:08:47 so it keeps doing it over and over Nov 04 07:09:14 and it doesn't recognize the "init" command.. so it does what? says it doesn't recognize, over and over? Nov 04 07:09:33 tdignan I realize that, I'm handling the case when it 'does' get called Nov 04 07:09:41 if recognition obtained just the word "fridgie!" then it goes "yes? " Nov 04 07:10:25 if recognition obtained "bla bla bla fridgie bla bla bla bla" then it goes "whuut? " Nov 04 07:10:34 can't we standardize on just popping beers? Nov 04 07:10:38 ok so what happens when you're chattering and it gets behind constantly processing looking for "fridgie" Nov 04 07:11:06 how so Nov 04 07:11:17 cause the processing isn't instant Nov 04 07:11:28 thats why i'm saying check the timing of it.. it may work but i fear it isn't fast enough Nov 04 07:11:29 its a simple text.contains("fridgie") Nov 04 07:11:41 right Nov 04 07:11:44 I was missing an incref app =) Nov 04 07:11:50 but the input stream (your voice) is sconstantly coming in Nov 04 07:11:56 it's producer consumer problem see Nov 04 07:12:02 you produce input faster than it can consume Nov 04 07:12:50 i think its pretty improbable that this missing-init-word issue happens more than say, twice. the user will definitely get the meep within 2 tries Nov 04 07:13:09 man you guys ar estill talking about this :P Nov 04 07:13:21 I'm liking this =) I think I've fixed it =) Nov 04 07:13:24 maybe so.. put it to test i suppose Nov 04 07:13:32 if simpler works, then hey it works Nov 04 07:13:34 So guys, you can now code Android apps in eC =) Nov 04 07:14:10 its jsut a loto f resources, which is generally "bad practice" Nov 04 07:14:11 wtf is eC and why should i care. i already dont Nov 04 07:14:18 lol Nov 04 07:14:42 It's a native/compiled/OO/modern/reflection/properties/C-like language I designed and you should care because it's awesome. Nov 04 07:15:11 and because java sucks ass. Nov 04 07:15:12 oh another one! :p Nov 04 07:15:21 why does java suck? Nov 04 07:15:21 no, it's the only one :P Nov 04 07:15:25 'cuz it's java =) Nov 04 07:15:30 ESphynx: what was missing so much that you made eC Nov 04 07:15:40 g00s: ikr Nov 04 07:15:42 is ec dynamic or static typed? Nov 04 07:15:45 regedit: a native/compiled/C-like OO language that did not suck like C++ Nov 04 07:16:13 speakingcode: kindof both. I don't care about dynamic or statically type classifications :P Nov 04 07:16:23 and you mae this langauge Nov 04 07:16:23 ESphynx: RAII built in? Nov 04 07:16:32 and yuo don't care about one of the must fundamental aspects of a language Nov 04 07:16:33 great Nov 04 07:16:35 What's RAII? Nov 04 07:16:36 sounds like a winer Nov 04 07:16:45 and you ask what RAII is Nov 04 07:17:39 yeah none of that nonsense is needed :P Nov 04 07:17:42 what does it compile to? Nov 04 07:17:51 speakingcode to native code... Nov 04 07:17:57 ok good day Nov 04 07:18:00 through intermediate C right now =) Nov 04 07:18:11 ESphynx: garbage collection? reference counting? Nov 04 07:18:24 it's got a bit of reference counting, it's gonna get a bit more... Nov 04 07:18:26 it's fucking C, why would it have garbage collection Nov 04 07:18:41 can't find anything about ex Nov 04 07:18:43 oh, surprise Nov 04 07:18:43 ec Nov 04 07:18:51 http://www.ecere.com/ Nov 04 07:19:08 here's what my android sample look like: https://github.com/ecere/sdk/blob/master/samples/android/hello/helloAndroid.ec Nov 04 07:20:48 ESphynx: so for your last chance, show me 3 quick code snippets where eC makes my life easier than c/c++/java Nov 04 07:20:49 you say no concern of typing but the first thing i seei nt he doucmentation is data types Nov 04 07:20:59 regedit : well that was 1 Nov 04 07:21:02 so are they statico r dynamic? iot has to be one or the other, i'm pretty damn sure of that Nov 04 07:21:24 That's 2 https://github.com/ecere/sdk/blob/master/samples/3D/Test3D/Test3D.ec Nov 04 07:22:00 https://github.com/ecere/sdk/blob/master/samples/db/MovieCollection/movieCollection.ec -- I guess that's 3 =) Nov 04 07:22:15 test3D == http://ecere.com/images/test3D.png Nov 04 07:22:28 ESphynx: this is meant for android only or general computing platforms (desktop etc) Nov 04 07:22:45 speakingcode: http://rosettacode.org/wiki/Category:EC -- see type checking there =) Nov 04 07:23:05 regedit: desktop etc. been working on the SDK since 1996... initially as a game SDK =) Nov 04 07:23:27 1996? i feel so bad.... Nov 04 07:23:36 :D Nov 04 07:23:38 :P Nov 04 07:23:41 what kind of libraries are there, or does it support c libs? Nov 04 07:24:07 speakingcode: it supports C libs... and Ecere is a cross platform GUI toolkit , also network libs , system libs Nov 04 07:24:10 DB libs Nov 04 07:24:22 3D lib Nov 04 07:25:12 hmm Nov 04 07:25:17 who uses it? Nov 04 07:25:20 Me =) Nov 04 07:25:31 looks intriguing but i fear using it for anyhing thats non-experimental Nov 04 07:26:15 haven't reached the momentum yet to be above the air friction Nov 04 07:26:29 but that's coming :P I'm hoping Android/iOS support will help =) Nov 04 07:26:47 it might Nov 04 07:26:57 website needs a full rewrite Nov 04 07:27:15 I'm actually rather happy with the website we have right now :P Nov 04 07:27:17 modernize that puppy with some twitter bootstrap or smoething n the adoption will skyrocket Nov 04 07:27:26 It's certainly better than in the past. it can benefit from improvements. Nov 04 07:27:27 it looks like garbage, no offense Nov 04 07:27:34 That Sea Otter mascott? ;) Nov 04 07:27:41 Hmm, thanks, I guess :P Nov 04 07:27:43 it doesn't shout "good developers want this" Nov 04 07:28:03 depends what websites you compare too I guess :P Nov 04 07:28:09 more like "im old and unsupported" i hate to be so harsh Nov 04 07:28:15 check out, knockoutjs website Nov 04 07:28:21 i just don't have money to give away to a design firm to get a design that in the end I like less that the current site. Nov 04 07:28:37 http://knockoutjs.com/ Nov 04 07:28:49 see Nov 04 07:28:56 see there, alignment, typography, whitespace... Nov 04 07:28:57 I prefer 100 times http://www.ecere.com/ over that garbage. Nov 04 07:28:58 why would anyone want to use eC ? Nov 04 07:29:17 well swallow your pride or don't get adopted, thats on you Nov 04 07:29:41 speakingcode that wasn't about pride, it was about design tastes. Nov 04 07:29:53 but i'm telling you your site failsm iserable at serving a purpose. it should focues on one thing and call attention to why i want eC and how to get it Nov 04 07:29:56 g00s: to get C performance Nov 04 07:30:07 Hi Nov 04 07:30:14 windows95 Netscape Navigator tastes Nov 04 07:30:18 speakingcode I agree it could benefit from improvements Nov 04 07:30:18 just my opinon, of course. i tend to speak it matter-of-factly Nov 04 07:30:44 i like the otter Nov 04 07:30:46 the website needs rounded corners :P Nov 04 07:30:49 thanks Nov 04 07:30:55 it's got round buttons! Nov 04 07:31:04 I need to know about callback url for foursquare Nov 04 07:31:20 you can keep the otter, thats not the main prob Nov 04 07:31:43 well, thanks you guys for not calling it a cat. Nov 04 07:31:50 main issue here is to upgrade to web 2.0 from uh, Nov 04 07:31:54 the thing is, from my perspectiv,e is my attentino goes right to the otter and i don't fee lcompelled to look anywhere else Nov 04 07:31:55 it's Oliver, the Sea Otter! Nov 04 07:32:18 LOL Nov 04 07:32:20 i'm worried this is gonna be a 404 or a virus or something Nov 04 07:32:24 I need aauthorization process that returns back to the application Nov 04 07:32:31 that's interesting Nov 04 07:32:31 not really, but that's the first impression Nov 04 07:32:36 I do agree Oliver attracts your attention. Nov 04 07:32:54 I should add sound that says ' psst.. try out eC man, it's awesome. Nov 04 07:33:00 with visual effects on his lips Nov 04 07:33:01 i'll give you another example since you don't like knockout Nov 04 07:33:05 nooo you shouldn't Nov 04 07:33:07 sure Nov 04 07:33:08 lol Nov 04 07:33:17 graphically, the LAST thing a visitor will ever ever do is the right-most button "Contribute" Nov 04 07:33:55 regedit: well I don't expect a newcomer to click that button =) Nov 04 07:33:56 it's sooooooo out of the way from center of attention Nov 04 07:34:02 Guys.... callback url... anyone?? Nov 04 07:34:04 I would only want longtime users to contribute code :P Nov 04 07:34:17 only after they visit this page 200 times can they even think about contributing :P Nov 04 07:34:32 http://www.codecademy.com https://workforpie.com/http://offliberty.com/ Nov 04 07:34:42 Download, Learn more, Get support... is where you're supposed to click :) Nov 04 07:34:47 so much imbalance too, the hueg logo vs the unevenly layed out buttons Nov 04 07:35:02 esphynx if you don't expect them to click that button, get it the f off the top of the fold Nov 04 07:35:55 check those three sites ESphynx and notice a running them - white space and alignment and typography- easy on the eyes and draws the user right to the focal point, no questino about what is going on Nov 04 07:36:42 ok, ok, the website needs work … that seems minor Nov 04 07:36:47 Has anyone here integrated an android app with foursquare???? Nov 04 07:36:57 reading through the pages, i still dont understand why anyone would use this for anything Nov 04 07:37:00 nope sorry infernus Nov 04 07:37:34 g00s its not IMO... with all the myriad competing frameworks and such in that space he won't get adoption without a slick site, point blank Nov 04 07:37:48 speakingcode: I do want them to understand it's open source software and they can eventually contribute =) Nov 04 07:38:07 g00s: why would anyone NOT use it? Nov 04 07:38:16 sure, and i wouldn't exclude that, but it's not necessarily the focua Nov 04 07:38:35 Dude... em so hopeless now... searching since last two days about what's a callback url.. Nov 04 07:38:49 nfernus is it jsonp? Nov 04 07:39:09 speakingcode: codecademy has really awesome immeadiate user captivation with that interactive prompt tutorial, i actually played it through Nov 04 07:39:17 ESphynx i'll just be honest. if i weren't talking to you in here, if i just happened across this, i would immediately have clicked back Nov 04 07:39:40 No... oauth authorization process for foursquare Nov 04 07:40:02 ESphynx: looks like an old irrelevant website Nov 04 07:40:07 speakingcode: i guess what i;m saying is, no matter how nice the website is, i don't see the value proposition for using this Nov 04 07:40:16 well well. website needs improvements. Nov 04 07:40:17 infernus: it's the URL that the server responds with your authorization code/token to Nov 04 07:40:19 After authorization, the control should get back to the app Nov 04 07:40:26 infernus: for client side oauth, often you use a local http server. Nov 04 07:40:42 infernus: search oauth on d.android.com, since they have an api that abstracts this for you already. Nov 04 07:40:44 nothing about the page makes me feel like this is a framework langauge or platform i want anything to do with, and being that it says "cross platform" it should look damn good on the web, ya know? Nov 04 07:40:45 g00s: A lot of people don't see it. Nov 04 07:40:49 I don't understand though. Nov 04 07:40:52 Owkk... thanks tdignan.. Nov 04 07:41:02 g00s: http://www.ecere.com/wiki/index.php?title=Main_Page#Yet_a_New_Language..._Why_eC_over_....3F Nov 04 07:41:04 i mean, it's unfair to rate this by its site and not by what it really is, but i'm just seaking n what most people are likely to do when they see this Nov 04 07:41:10 But what is it for an android app Nov 04 07:41:19 eC is the ONLY programming language that is Native and Compiled, and has modern features such as reflection, properties and import mechanism. Nov 04 07:41:30 infernus: read on d.android.com. there is a whole guide on oauth with android. Nov 04 07:41:45 so eC can interact with the native android sdk components? Nov 04 07:41:49 And it comes with a cross platform IDE and cross platform toolkit. Nov 04 07:41:54 regedit: yes, saw that. nothing is convincing :/ Nov 04 07:42:09 speakingcode: yeah I got it hooked with the NDK and everything Nov 04 07:42:15 http://developer.android.com/training/id-auth/authenticate.html Nov 04 07:42:16 see that Android sample I put above =) Nov 04 07:42:21 doesi t compile to machine code or to java byte code? Nov 04 07:42:23 oh Nov 04 07:42:40 g00s: what's not convincing about that? if you don't care about native, compiled or modern features, I understand how this has no proposition for you. But *I do* Nov 04 07:42:47 For Twitter it was 'twitter-oauthflow-something' Nov 04 07:43:41 ESphynx i'm _curious_ about your langauge and i'm not trying to knock you, i just thik you would see a surge in success with a better presentation Nov 04 07:43:53 remember selling is all in the presentation Nov 04 07:44:28 no Nov 04 07:44:39 Thanks tdignan.... I will go through the link you sent Nov 04 07:44:53 I guess it might help Nov 04 07:45:07 speakingcode I do agree there. Nov 04 07:45:29 ESphynx: post to HN Nov 04 07:45:36 hacker news? Nov 04 07:45:39 yeah Nov 04 07:45:48 i would think about shrinking the logo 10x and putting a couple of app screenshots, maybe one android, one ios, one desktop? be creative there. then have some large bold calls to action - download, learn more, contribute Nov 04 07:45:52 I don't know . I'll let others post when people care enough =) Nov 04 07:46:03 /. never ran an article on it :P Nov 04 07:46:10 and it easy dissappear from programming.reddit Nov 04 07:47:27 website doesnt look like its been designed within 5 years of reddit launch Nov 04 07:47:51 Hi has anyone compiled successfully ndk sample razzlegames : http://code.google.com/p/razzlegames-android-ndk-tutorial/source/checkout ? or have good experiance with stlport for ndk ? Nov 04 07:47:55 i would do away with those platform logos all together and just use text under the main "top call to action" section somewhere , shrug Nov 04 07:49:04 I kinda like my front page :| Nov 04 07:49:13 Open space zen design'ish :| Nov 04 07:49:32 you guys are all web 2.0 brainwashed Nov 04 07:49:52 i think ESphynx is pretty happy with his userbase Nov 04 07:49:56 lol Nov 04 07:50:11 I generate enough bug reports by myself as a uer. Nov 04 07:50:12 user* Nov 04 07:50:55 sounds like i'm right Nov 04 07:51:22 it's a fun lifetime solo project Nov 04 07:51:54 meant only for people of "his type" Nov 04 07:54:59 guys, take it to #amateurish-criticism. Nov 04 07:55:44 yeah, and I won't join you there :P Nov 04 07:55:58 regedit -- I guess that is partially true =) Nov 04 07:56:04 <_deXter_> He lies, there's no #amateurish-criticism ! Nov 04 07:56:04 nobody like nowadays tastes/style/marketing techniques, but what sells sells Nov 04 07:56:17 Anyone know any good design for listview rows with block text on linear gradient background? Nov 04 07:56:30 regedit -- at some point I will hire a marketing expert :P Nov 04 07:56:41 ESphynx: i doubt it Nov 04 07:56:47 but all that was beyond the point Nov 04 07:56:48 its fun asi is! Nov 04 07:56:55 *as is Nov 04 07:57:16 I just wanted to share with you the fact that you can now use eC for writing Android apps, for those who care (if any) :) just pushed a commit that fixed my onDestroy handling... Nov 04 07:57:49 let celebrate then Nov 04 07:57:55 *let's Nov 04 07:58:19 damn right Nov 04 07:58:28 I'm going to take out the Wyobora Wodka and Ungava Gin Nov 04 07:58:34 with a splash of Kina Lillet... Nov 04 07:58:50 if I can find ice cubes, that is Nov 04 07:58:53 I like it shaken, not stirred! Nov 04 08:00:45 that's what she said Nov 04 08:01:30 lol Nov 04 08:04:59 I'm still in limbo... :( Nov 04 08:05:22 Foursquare android integration Nov 04 08:05:32 Callback url Nov 04 08:05:54 infernus: You're waiting for a train, a train that will take you far away. You know where you hope this train will take you, but you don't know for sure Nov 04 08:06:11 Lol.. Nov 04 08:07:09 But I'm quite serious... it's being days em brainstorming over this glitch... Nov 04 08:07:46 what's it doing? Nov 04 08:08:03 i know one day ill be stuck in your situation and ill regret not having tried to solve heh Nov 04 08:08:28 What's recomended square size for background ninepatch? Nov 04 08:08:32 Correct callback url for foursquare in order to get back to app after oauth authorization Nov 04 08:08:57 ??? Nov 04 08:10:04 lasserix: what do you mean recommended? Nov 04 08:10:22 as small as possible, I would say... Nov 04 08:10:35 infernus: https://github.com/foursquare/android-oauth-example doesn't work? Nov 04 08:11:40 Yeah... hmm maybe I can just use more drawables Nov 04 08:12:22 Yes Leeds... it works Nov 04 08:12:38 But it's not using callback url Nov 04 08:12:46 correct, it's not Nov 04 08:13:19 It's doing manual handling by intercepting client methods Nov 04 08:13:24 yes, it is Nov 04 08:13:44 I need to do it through native browser Nov 04 08:13:44 you have correctly understood the 40 lines of example code Nov 04 08:13:46 why? Nov 04 08:14:29 There are cases where a user doesn't trust third party apps while providing credentials Nov 04 08:14:45 They feel Luke getting phished Nov 04 08:14:52 Like* Nov 04 08:15:06 Luke... I am your identity thief Nov 04 08:15:38 So I need to provide authentication process using browser as well Nov 04 08:16:23 Leeds do you have any idea about this implementation?? Nov 04 08:16:25 well... firstly I think you're wrong Nov 04 08:16:50 Ummm...? Wrong with what? Nov 04 08:16:51 I don't think there's any issue doing it internally - it's not like you're asking the user to provide their bank details Nov 04 08:17:35 Yes.. not that grave.. but people often don't trust third-party apps Nov 04 08:18:12 You would never like anyone getting into your FB or Twitter account Nov 04 08:18:14 then they might not use your app's foursquare integration... is that a deal-breaker? Nov 04 08:18:34 alternatively, it's time to get down and intimate with intent-filters Nov 04 08:18:51 Ummm. Actually em bent to do it... client's requirement Nov 04 08:19:15 Otherwise I don't give a crap about foursquare.. :P Nov 04 08:19:40 the client requires authentication outside your app? Nov 04 08:19:44 Intent filter... yea Nov 04 08:19:58 Yes... through browser Nov 04 08:20:08 time to smack the dumb client around then Nov 04 08:20:41 Control goes to the browser, user authenticates, control should get back to the app with access token Nov 04 08:21:05 :P... the dumb client is paying me a million.. Nov 04 08:21:46 then I'm going to shut up until I get cut in Nov 04 08:22:20 The last step in the required flow needs a callback url that makes browser to identify the activity that should catch back the control Nov 04 08:22:45 sure Nov 04 08:22:47 Leeds.....duuuuude!!! Cmonnn!! :P Nov 04 08:23:27 Please do help if you can.. Nov 04 08:23:30 Thanks Nov 04 08:24:22 pastebin your existing intent-filter Nov 04 08:24:32 the one which doesn't work Nov 04 08:26:10 Oh Shit... email doing irc through cellphone... will login through system and will tell you about my current intent-filter Nov 04 08:26:39 Actually it's normal , just with additional scheme and hot attributes Nov 04 08:27:08 Host* Nov 04 08:27:33 i've decided i'm not voting in this stupid election Nov 04 08:28:34 Speakingnode... you probably need an android app to vote Nov 04 08:28:42 :p Nov 04 08:28:53 Don't ya!!??! Nov 04 08:28:57 keep the politics out Nov 04 08:28:57 i'd like to start a national don't vote campaign Nov 04 08:29:04 k Nov 04 08:29:13 its called third party Nov 04 08:29:29 Yes actually... it corrupts the room.... android is so pure.. Nov 04 08:29:49 pure as pure itself Nov 04 08:29:57 I'm serious - no politics here Nov 04 08:30:02 Leeds... do you often keep inside this room? Nov 04 08:30:25 infernus: I'm essentially always in this channel when my PC is on Nov 04 08:30:41 If I might get back here after sometime with my intent filter Nov 04 08:30:46 (this isn't AOL, they're channels not rooms) Nov 04 08:30:58 lol Nov 04 08:31:17 Thanks dude... will ping you then.. Nov 04 08:31:58 Yeaa.. channels... I'm new to irc... will get even with terms soon :) Nov 04 08:43:12 back to my speech recognizer; i'd like to have a omni-running service (until stopped) that listens to voice and (based on computed speech recognition results) it can 1) open/switch-to different apps 2) manipulate / cause things to happen inside those apps Nov 04 08:43:31 is this possible? Nov 04 08:43:47 doubt it Nov 04 08:44:08 coding is hard, just give up and watch tv Nov 04 08:44:36 you americans better vote for Obama. Nov 04 08:44:58 i should add that the apps in question are initially programmed/rigged to work with this voice service - were it feasibly programmable Nov 04 08:45:29 i.e. i create the omni service, and i create the apps that work with it Nov 04 08:45:42 NO POLITICS Nov 04 08:45:52 http://www.youtube.com/watch?v=I9zpnLBtwwg Nov 04 08:46:04 not a political youtube, an awesome classic pop hit. Nov 04 08:46:17 why is this damn thing killing an object i'm currently working with? Nov 04 08:46:32 Leeds: we're a handful tonight :P Nov 04 08:46:43 g00s: ^ ? Nov 04 08:47:03 NO POLITICS... except http://www.youtube.com/watch?v=fWEm4p3Dopw Nov 04 08:47:21 i'll vote for whoever can help me expatriate... any takers? Nov 04 08:47:23 fuck man, needs flash Nov 04 08:47:41 google "fWEm4p3Dopw" Nov 04 08:47:56 Leeds: "the uploader has not made this available in your country" Nov 04 08:48:03 no back to this earlier point about expatriating Nov 04 08:48:08 now* Nov 04 08:48:17 wow, sorry... anyway, enough Nov 04 08:48:32 good tip regedit Nov 04 08:48:44 wait no, still not available Nov 04 08:49:00 so can i haz service that continuously listens to voice and makes stuff happen in apps Nov 04 08:49:29 i know i can haz app that does that, i already made it Nov 04 08:50:07 cat picture project Nov 04 08:50:09 g00s: Nov 04 08:50:43 make speech-to-lolcat Nov 04 08:50:47 I bet it would be a hit Nov 04 08:51:04 hah Nov 04 08:51:17 le'me break this down; Nov 04 08:51:28 can a long-running service start an app Nov 04 08:51:58 yes, of course a service can start an app Nov 04 08:52:09 good good, we're making headway Nov 04 08:52:14 can a long-running service switch from one app to a different app Nov 04 08:52:36 only in the sense that... of course a service can start an app Nov 04 08:53:07 has anyone used app inventor? Nov 04 08:53:28 so if a user was playing Where's My Water and suddenly an obnoxious service decides "HEY ITS TIEMZ TO USE THIS OTHER APP" it can just switch away like that? Nov 04 08:55:29 in principle yes, AFAIK Nov 04 08:55:40 ok good Nov 04 08:57:16 next; can a service manipulate an app and cause things to happen, for example; service runs SomeApp and makes X Action/Intent/wtvr happen, and then proceeds to make Y Action/Intent/wtvr happen Nov 04 08:57:17 If i am doing a shape drawable with a linear gradient with start/center/stop colors, is there a way to give these relative size weights like you can do with a linear layout? Nov 04 09:02:22 Leeds: ^ plausible? Nov 04 09:02:49 regedit: not particularly sensibly, unless the app is co-operating Nov 04 09:03:42 Leeds: yes let's say the app is rigged to cooperate. the idea here is hands-free automation, no user intervention needed Nov 04 09:04:16 _can_ such a cooperation be rigged? Nov 04 09:04:34 an app and a service can co-operate with each other, yes Nov 04 09:05:01 service sends a message to app saying "do X", app does X and sends a message back saying "finished doing X" Nov 04 09:05:05 Hello everyone! i have here a little tricky problem with my nexus s. i encrypted my phone with build-in functions (stock rom), but now my "usb storage" can't be mounted any more. seems corrupted. my first idea was to get an image using dd and try to mount that with my laptop. anyone here with some expiriences regarding this? Nov 04 09:05:47 marcnesium: hi! this channel is for app development, not user support, rooting, etc. Nov 04 09:06:40 Leeds: i that covers everything then. to reiterate original question; Nov 04 09:06:45 Leeds: "i'd like to have a omni-running service (until stopped) that listens to voice and (based on computed speech recognition results) it can 1) open/switch-to different apps 2) manipulate / cause things to happen inside those apps. i should add that the apps in question are initially programmed/rigged to work with this voice service - were it feasibly programmable. i.e. i create the omni service, and i create the apps that wor Nov 04 09:06:57 Leeds: all in all - plausibly feasible? Nov 04 09:07:04 I'd say the listening to speech from the background is the bit which would worry m Nov 04 09:07:34 oh, ok, sorry. can you recommend an other channel for this? Nov 04 09:07:57 marcnesium: #android or #android-root, depending Nov 04 09:08:04 Leeds: and aside from that? Nov 04 09:08:40 Leeds: Thanks! Nov 04 09:08:41 Leeds: think red dot in notification area that denotes "listening in progress" Nov 04 09:09:02 perhaps flashing red dot even Nov 04 09:09:26 no, I'm thinking who the hell would want a service sitting with the mic permanently open listening to everything I say and do... and would Android allow it Nov 04 09:09:39 the voice bit is the hard bit, trust me Nov 04 09:10:07 and i imagine would drain the battery relatively fast if you plan on letting it run constantly Nov 04 09:10:12 that too Nov 04 09:10:17 Leeds: 1) turn it off if you dont want it 2) this is mainly targeted at stationary usage, such as in a car, at desk, or on kitchen fridge Nov 04 09:10:36 as such #2, it is assumed to be plugged in most of the time Nov 04 09:10:44 honestly, I don't know if you can do that sort of voice recognition from a service, and I'd sort of hope not Nov 04 09:11:11 sounds like its possible from here http://stackoverflow.com/questions/4559930/speechrecognizer-causes-anr-i-need-help-with-android-speech-api Nov 04 09:11:23 regedit are you expecting commands to be issued, or are you looking for a continous flow of speech? Nov 04 09:11:33 commands to be issued Nov 04 09:11:40 totally hands free Nov 04 09:12:32 ofcourse id never want to betray user trust so i make it very clear that audio capture is happening, like i said flashing red dot in notification area, or some-such Nov 04 09:13:18 that seems to be the record of someone not getting recognising to work in a Service :) Nov 04 09:13:35 Leeds: and an answer of how to do it right Nov 04 09:13:41 does it work? Nov 04 09:13:50 does it not Nov 04 09:14:04 um, no - you're the one trying to do it, not me Nov 04 09:14:12 so does that answer work? Nov 04 09:14:28 im going to assume it can then, i was just asking about the other bits of functionality Nov 04 09:14:52 i.e. if i can make this voice-processing service to perform all sorts of interesting actions Nov 04 09:15:30 open apps, perform things inside apps, etc Nov 04 09:16:00 I suggest you spend some time to see if your basic USP - background speech recognition - works Nov 04 09:16:47 Leeds: ya that's my first step at this point, just wanted to check if its even worth bothering - meaning whether i can indeed achieve the functionality effects im trying Nov 04 09:17:08 yes, Services and Activities can communicate with each other... now go play with speech stuff Nov 04 09:17:37 yes dad *runs off like a good little puppy* Nov 04 09:18:40 if you'd just asked the straightforward question in the first place - simple question, simple answer, nothing to do with voice stuff Nov 04 09:20:14 guess so, 'ts not always so clear in my own head Nov 04 09:20:22 im only a <5 days old android developer Nov 04 09:20:59 don't worry, be hacky Nov 04 09:23:04 Drawing ninepatch, left and top control padding for content (content will not go where black pixels are) and bottom and right control stretching (stretching occurs where black pixels are) or do I have this backward? Nov 04 09:23:10 adq: oh thanx, that's nice Nov 04 09:23:29 adq: also nice tagline/mantra Nov 04 09:27:55 anybody has got reliably working code to record record audio from a bluetooth SCO headset? Nov 04 09:42:31 what are the reasons my phone would reboot frequently for no good reason? Nov 04 09:42:57 w/o otas etc Nov 04 09:43:55 cagedwisdom: while you're working on an app? Nov 04 09:45:11 Leeds: would you care to explain about that stackoverflow http://stackoverflow.com/questions/4559930/speechrecognizer-causes-anr-i-need-help-with-android-speech-api how come doing it in the service is (apparently) not in the main thread? Nov 04 09:45:12 Leeds, no. I am testing my engineers signe builds, but not coding myself. and haven't updated that app in a week or so but had probably at least 2-3 reboots in last ~48 hrs. Nov 04 09:46:02 regedit: not really, no Nov 04 09:46:26 cagedwisdom: then you shouldn't see regular reboots (on a stock OS, I assume) Nov 04 09:47:08 hoping for a galaxy nexus update to jb after xmas. my wife's had it on her nexus s for a few months. Nov 04 09:47:56 CDMA, presumably Nov 04 10:43:56 cagedwisdom: using bluetooth? Nov 04 10:59:27 every now and then eclipse likes to surprise me by segfaulting the jvm Nov 04 10:59:31 :D Nov 04 10:59:56 total eclipse of the heart ! Nov 04 11:00:26 twilight: eclipse Nov 04 11:01:47 tdignan: using OpenJDK by any chance? :P Nov 04 11:04:03 hi Nov 04 11:06:08 Mavrik: nope Nov 04 11:06:32 ~$ which java Nov 04 11:06:33 /home/tom/opt/jdk1.6.0_37/bin/java Nov 04 11:07:00 jdk 1.7 is significantly worse on crashes, i have that installed too Nov 04 11:07:24 on the latest eclispe juno. 32 bit linux. Nov 04 11:19:41 Hello all Nov 04 11:26:46 anyone available? Nov 04 11:27:43 if you've got a question, ask it Nov 04 11:29:17 :D Nov 04 11:29:32 will ODIN really factory restore your phone? Nov 04 11:30:14 ah, the wrong question... read channel topic, go to #android-root, ask question there Nov 04 11:30:39 but im not trying to root my phone :/ Nov 04 11:31:15 after installing aokp and etc of other roms, they've all left unused folders and files, just wanna wipe clean so i can fresh install aokp Nov 04 11:31:16 o-o Nov 04 11:31:56 If android-root is the designated channel for that, then im sorry for asking it here. Nov 04 11:32:09 isn't there a channel for android-roms ? Nov 04 11:33:20 is this really a rom question? Nov 04 11:33:38 I just wanna erase all data on the phone. Nov 04 11:33:40 for sure this is not a "dev" question Nov 04 11:35:04 ... Nov 04 11:35:09 My mistakes. Nov 04 11:35:19 I thought i was in the aokp channel. Nov 04 11:35:22 yes I guess just ask it in #android Nov 04 11:52:51 tdignan, no to bt Nov 04 12:03:45 there is a bug in 2.2 that causes a device reboot after you connect to bluetooth 512 times Nov 04 12:14:22 tdignan: how did you find out? :D Nov 04 12:14:28 well they didn't help me out Nov 04 12:16:14 * Ge0rG still needs to figure out how to record audio from a SCO headset... the usual howtos fail with strange error messages :( Nov 04 12:20:48 hii Nov 04 12:24:37 does android support mullti touch Nov 04 12:24:53 bcos initially i was told it doesnt Nov 04 12:24:59 it does Nov 04 12:25:01 ny1 Nov 04 12:25:05 ok Nov 04 12:25:20 how many touch Nov 04 12:26:09 As many as your touch screen supports Nov 04 12:28:32 ok then it is hardware dependent.? Nov 04 12:30:41 m creating a game which is multi touch but then how would i know on which device it is compatible or how many touch a device can have Nov 04 12:35:44 Yes, not all devices support multitouch Nov 04 12:37:33 not all devices support touch Nov 04 12:39:53 booo, the SoundCloud app is "not compatible" with my MK802 but all I wanna do is stream music :| wonder if it's bitching about the lack of a microphone Nov 04 12:42:42 does skyrocket support multitouch? Nov 04 12:43:16 actually nevermind, I already know the answer. Nov 04 12:43:43 I remember me holding an icon with one finger and swiping through homes on the other finger Nov 04 12:45:45 Freezingwind, for recording audio from BT, maybe you forgot permissions in manifest? Nov 04 12:46:01 otherwise take a look on stackoverflow, I'm sure you will find relevant answers Nov 04 12:52:20 Ge0rG: someone asked me to fix it... Nov 04 12:52:41 i killed the process and used the alarm manager to restart it :) Nov 04 13:25:20 hey Nov 04 13:39:01 hey, anyone has experience with cross compiling c programs for android? Nov 04 14:01:29 I use setFillAfter(true) after the animation. But the click areas stays unmoved. How can I move it as well? Nov 04 14:26:01 Same way you put it in its initial position.. layoutparams Nov 04 14:28:52 hi Nov 04 14:49:15 hey guys. Am building a game with andengine and I want to show a dialog. So the dialog must be created inside runOnUiThread. Through the dialog I am showing an xml view that has buttons. I want to set click listeners to the buttons, and I am doing that inside the runOnUiThread because this is where dialog created. But they never fire. Can you help me please? Nov 04 15:00:32 is it feasible to develop nothing but a long-running service with no actual app associated with it, just an on/off switch to start/stop it and some settings to configure it Nov 04 15:00:38 i'm asking because i'd need to call startService() since no app is gonna initiate it with no bind functions, but if i dont have an app/action how can i call startService Nov 04 15:01:23 you can start it off a broadcast, like boot completed. Nov 04 15:01:30 you don't need to have any activities Nov 04 15:01:42 but, I would write one, because it's convenient. Nov 04 15:02:14 tdignan: feels like just clogging user's app screens. and what happens when you click on it - nothing? Nov 04 15:03:34 remove the launcher intent-filter if you don't want an icon. Nov 04 15:05:45 tdignan: so if it's not triggered by say boot completed, rather it runs on its own little convenience action, how/when does action get executed Nov 04 15:06:35 what action? Nov 04 15:06:48 i meant activity Nov 04 15:07:00 when you click the icon? Nov 04 15:07:01 [10:01] you don't need to have any activities [10:01] but, I would write one, because it's convenient. Nov 04 15:07:19 does that comment really require elaboration? Nov 04 15:08:37 tdignan: first you recommended to have a convenience activity, then you advised me about removing the launch icon if i wish, so i was just wondering what use would the convenience activity be of Nov 04 15:09:27 Those two statements were not related. Nov 04 15:10:20 so it's either "on boot completed" triggered with no activity whatsoever, or the app has a launcher icon - that's what you meant Nov 04 15:11:59 tdignan: and when the user launches your convenience activity, what happens (visually) - nothing? Nov 04 15:14:15 if you have a background app, the ideal experience is probably: starts on boot, shows an ongoing notification. touch the ongoing notification to open an activity with some information. Nov 04 15:14:37 i see Nov 04 15:19:50 hey guys. Am building a game with andengine and I want to show a dialog. So the dialog must be created inside runOnUiThread. Through the dialog I am showing an xml view that has buttons. I want to set click listeners to the buttons, and I am doing that inside the runOnUiThread because this is where dialog created. But they never fire. Can you help me please? Nov 04 15:29:14 tdignan: is an idle service (not currently executing any codepaths or responding to any events/broadcasts etc) as good as a nonexistent service, performance-wise? Nov 04 15:31:17 oh, he's gone Nov 04 15:31:25 is it possible to get a blob from an android database via a uri in a webview? Nov 04 15:36:15 is it possible to make a service sometimes execute some work and sometimes remain idly standing by, perhaps controlled by a notification-area on/off switch Nov 04 15:37:16 hi. could someone here help me with deciding on whether I should use java+opengl or ndk for a particular problem? of course, it would be best if I could write it both ways and do benchmarks, but since I'd be learning in the process, that's not an option at the moment Nov 04 15:37:37 vydd: should it run on multiple platforms? Nov 04 15:38:18 vandenoever: that doesn't matter much; platforms supported by ndk are enough Nov 04 15:38:43 vydd: what's the particular problem? Nov 04 15:39:19 vandenoever: image deformation using moving least squares Nov 04 15:39:36 vydd: so most code will be a shader? Nov 04 15:43:02 vandenoever: well, I guess. I haven't really done much opengl before (only some examples)...basically, there's a function that's done for all pixels which takes matrices and vectors as its arguments, in part calculated from other pixels Nov 04 15:43:48 vydd: it sounds like doing that with a shader is feasible and then ndk vs java is not import Nov 04 15:44:07 so starting from a simple java with shader example is easiest Nov 04 15:45:00 vandenoever: any good, advanced books that you could recommend? Nov 04 15:47:05 vydd: OpenGL Shading Language Nov 04 15:47:10 rost et al Nov 04 15:48:35 vandenoever: thanks! Nov 04 15:48:44 vydd: have fun! :-) Nov 04 15:48:54 :) Nov 04 16:03:12 how do i make my service with a quick-settings on/off switch in the expanded notification bar Nov 04 16:03:28 much like the WiFi on/off switch Nov 04 16:07:23 regedit: so this app is meant to run in the background? and you want to be able to pull down the notification bar to toggle it? Nov 04 16:07:49 kowalej: precisely Nov 04 16:08:01 is it even possible? Nov 04 16:08:18 i was also meaning to ask about that Nov 04 16:08:49 regedit:http://developer.android.com/guide/topics/ui/notifiers/notifications.html#Actions Nov 04 16:09:13 you can at least start and stop activities Nov 04 16:09:16 when the switch is ON, my service does XYZ. when OFF, uh i dunno service hangs around idly waiting to be turned on? Nov 04 16:09:33 when switch is off, stop the service ;-P Nov 04 16:09:34 is that possible? Nov 04 16:09:47 no but then the on/off switch isnt there anymore Nov 04 16:09:58 o, right Nov 04 16:10:16 make it a widget instead of a notification bar Nov 04 16:10:54 i definitely do want to show a notification icon though, my service must make it well aware that it is operational - when it is Nov 04 16:11:14 *make the user well aware Nov 04 16:11:35 could do a combination Nov 04 16:12:18 why can't the service just run on its own activity and the app has a seperate activity for idle state Nov 04 16:12:22 is there no such concept as a service idling around with a switch button to activate it, or something close enough to that? Nov 04 16:12:45 sure Nov 04 16:12:49 when you toggle on it launches that activity, when you toggle off it launches the idle activity which closes the other one Nov 04 16:12:53 but i dunno about through the notification bar Nov 04 16:13:16 just keep a service running and use bound service to rebind to it Nov 04 16:13:51 thjink about it from a UX perspective tho - how do you start it to begin with? you can't start it from the notification bar if it isn't started Nov 04 16:14:54 thats why a toggle widget seems to make sense to me, like a gps/blutooth/wifi toggle widget; fairly common Nov 04 16:16:08 is there a way to start android gallery to display an image (using Intent.ACTION_VIEW) but disable the delete functionality? Nov 04 16:17:12 oh, and where can i find the options that can be used with each intent action? Nov 04 16:17:20 i start it on boot complete Nov 04 16:18:26 speakingcode: these activities you speak of (actual execution and idle), they will execute in the background? Nov 04 16:18:51 regedit: it seems that it's possible http://forum.xda-developers.com/showthread.php?t=1037817.. i thought it's only possible with system modifications (custom roms) Nov 04 16:19:04 trying to do anything in background with an activity is fail Nov 04 16:19:36 system will say "oh this activity in the background is diong work but it's not in the foreground, kill it" Nov 04 16:20:14 so you must use service. and i believe someone else suggested using two activities cause i didn't Nov 04 16:20:28 right i was getting confused about that. this is a service im talking about here, not an activity Nov 04 16:20:39 so you could use one service Nov 04 16:20:48 yuo start it on boot with a broadcast receiver, sure Nov 04 16:21:10 it posts a notification. it starts work, a button in the notifcation bar allows it to stop work, btu the service itself is still running, just not doing the workload Nov 04 16:21:45 how is that part coded Nov 04 16:22:00 the part where its still running just not doing anything Nov 04 16:22:13 you could do it a few ways Nov 04 16:22:17 and is that a performance hog in the slightest Nov 04 16:22:24 no Nov 04 16:22:41 a service in the background diong nothing is less drain than one in the background doing something Nov 04 16:22:54 is it (almost) as good as a nonexistent service Nov 04 16:23:16 thats a sort of loaded question Nov 04 16:23:35 performance / system resource-wise Nov 04 16:23:42 cpu-wise Nov 04 16:24:04 what does almost mean? i mean from a human pointo f view i doubt you would notice any difference Nov 04 16:24:19 regedit: can you do speech recognition from your Service yet? Nov 04 16:24:44 Leeds: not yet, working on it Nov 04 16:24:55 in your service,use a sep thread to do work.. if the user hits the notificaton bar, the service can get the thread to stop (a few ways to do that really) Nov 04 16:25:04 then you're wasting you time with this on/off stuff Nov 04 16:25:23 Leeds: i found it interesting to learn about in general Nov 04 16:25:52 speakingcode: the work my service is doing must run in main thread.... Nov 04 16:26:03 okay, as long as you know it's nothing to do with the app you're trying to write Nov 04 16:26:04 SpeechRecognizer is like that Nov 04 16:26:37 see overview http://developer.android.com/reference/android/speech/SpeechRecognizer.html Nov 04 16:26:56 o Nov 04 16:28:57 can a service not be in a state of "not executing anything ATM, just waiting around for an event to be called on me" or some-such? Nov 04 16:41:46 what happens with a Service that was started by say startService() and then its onStartCommand() method returns, and stopService() or stopSelf() is not called (yet) Nov 04 16:42:14 will it effectively be in a state of "idling" until something causes it to enter some execution path again? Nov 04 16:42:56 Same thing that happens to an activity that is not finished Nov 04 16:43:57 regedit: is your service bound? Nov 04 16:45:01 kowalej: i'm thinking of starting it on boot complete - therefore not bound - and then the service gets bind requests here 'n there throughout its existence to execute stuff Nov 04 16:45:15 if that makes any sense Nov 04 16:46:03 well, as long as it's bound it shouldn't get killed Nov 04 16:46:30 sounds like if its started - even if not bound - it shouldnt get killed either Nov 04 16:46:31 http://developer.android.com/reference/android/app/Service.html#ServiceLifecycle Nov 04 16:46:49 see last paragraph of that section Nov 04 16:47:19 It'll get killed if the memory is needed elsewhere Nov 04 16:47:45 SimonVT: would that not happen if it were bound? Nov 04 16:48:22 It might happen in either case Nov 04 16:48:37 ok so nothing to lose there Nov 04 16:49:16 It seems wasteful to start your service at boot if it's not gonna get used Nov 04 16:49:47 in conclusion it seems like it's feasible to have a background service that is "activated/deactivated" by a notification-bar on/off switch (like the wifi switch) Nov 04 16:50:57 when in on state (ever since boot), a code path will begin to be executed. when in off state, all functions return and service kinda does nothing but wait for on switch Nov 04 16:54:01 what happens when it is started is entirely up to the programmer Nov 04 16:54:34 speakingcode: what are you pointing out Nov 04 16:54:56 what happens with a Service that was started by say startService() and then its onStartCommand() method returns, and stopService() or stopSelf() is not called (yet) Nov 04 16:55:58 speakingcode: so if all functions return and the service was not shutdown yet (with stopService/Self()) it is effectively in a kind of "idle" state? Nov 04 16:56:04 that lapse betwen onStartCommand and stopService is what you would call the lifetime of the service, and what happens in its lifetimei s entirely up to the programmer. a service is always "running" but what it is actually diong is up to you Nov 04 16:56:33 or if its running anything at all - is what im asking Nov 04 16:56:40 err always "running" until it is stopped** Nov 04 16:56:46 sure Nov 04 16:56:57 you can start a service that does absolutely nothing, if you want Nov 04 16:57:05 cool Nov 04 16:57:16 thats all i was trying to find out Nov 04 16:57:45 there's somewhat of an asynchronous model going on tho you might need to think about Nov 04 16:57:56 so now all i need to figure out is how to make the service's notification on/off switch effectively execute stuff or return all methods appropriately Nov 04 16:58:30 there's no way to force a method to return really, think about it from an async perspective Nov 04 16:59:16 well how does a service's notification controls (like this on/off switch) report back to the service Nov 04 16:59:50 you're gonnah ave to read the docs, i can't succicntly explain it any better Nov 04 16:59:51 it's probably a settings thing, no? Nov 04 17:00:20 you probably need to go with a bound service (you do, heh) Nov 04 17:00:50 i understand the async ideas going on here, the service might be running along its methods when the switch is turned off, how do the methods know to return Nov 04 17:01:28 i'm imagining that when the switch changes state, some event is posted to the service? Nov 04 17:01:55 you can give the notification a pending intent, so that when it's clicked the intent can effectively 'notify' your service Nov 04 17:02:25 ah excellent Nov 04 17:02:41 is there anyone pro enough here to compile ffmpeg4android (from sourceforge) using Windows 7 instead of ubuntu ? Nov 04 17:02:52 and then my service just sets a variable or whatnot which the running methods check periodically, and return themselves if necessary Nov 04 17:03:09 well your service is basically an infinite loop right constnalty doing speech recongition. so put a conditon on that loop Nov 04 17:03:12 yup exactly Nov 04 17:03:21 see someone has done it with older version of ubuntu, but if its possible with Win7 I'd rather use Win7 Nov 04 17:03:54 don't think anyone is pro enough here fort that Nov 04 17:04:35 speakingcode: then when the switch goes back on, is it easy enough for the pending intent to cause the methods to start running again? Nov 04 17:04:54 why are you trying to have it idle then, why can't you stop and restart? Nov 04 17:05:14 kowalej: because i need the on/off switch in the notification bar Nov 04 17:05:38 don't understand why your so set on it benig in the notif. bar, but shrug Nov 04 17:06:04 sorry to flog a possibly comatose horse :) but the android design style says 48dp is (on average) 9mm. I'm not seeing how this math works? On a 160ppi device for example, 48dp == 48pixels, which works out to 48/160 inch ~ 7.6mm Nov 04 17:06:08 speakingcode: feels more natural, like thats where it really should be Nov 04 17:07:24 kbs because it's avg? Nov 04 17:07:42 argh I guess I have to install loonix Nov 04 17:07:45 perhaps 160ppi isn't the avg density Nov 04 17:07:51 just to get ffmpeg working Nov 04 17:08:15 speakingcode: why should it be in some homescreen widget? feels out of place there... my service is kinda like the wifi service, available to be switched on/off system-wide. not a piece of homescreen widget imho Nov 04 17:08:17 I wonder how fast eclipse on ubuntu would run with a 2.4 Ghz Celeron Nov 04 17:08:34 speakingcode: I thought so, but that doesn't jive either, because the docs claim the range is 7mm-10mm. on a 192 ppi device, it gets quantized into a 160ppi bucket -- which works out to .635 mm Nov 04 17:09:16 shrug Nov 04 17:09:40 * regedit wonders who that shrug was for Nov 04 17:10:04 more at the ppi/dp question but i guess at yours too :-) go with what you feel is best Nov 04 17:10:12 :D Nov 04 17:10:19 k thanks for help Nov 04 17:10:20 :-) the problem here is that this falls under the recommended minimum touchable area size (7mm), meaning that using 48dp isn't actually correct Nov 04 17:10:57 tbh i haven't done much with notifications and services, so i can't really tell you whats best here Nov 04 17:11:18 usually when i have a service that posts an otification, that notification leads back to an activity that binds to the service Nov 04 17:11:55 and the user can take action from that ativity. jellybean (maybe ICS too?) introduced some more features with notifications but i haven't played with those, so i dunno Nov 04 17:12:14 using 48dp for what? Nov 04 17:12:54 the recommended metric on android: http://developer.android.com/design/style/metrics-grids.html Nov 04 17:13:16 the exact quote: "If you design your elements to be at least 48dp high and wide you can guarantee that your targets will never be smaller than the minimum recommended target size of 7mm regardless of what screen they are displayed on." Nov 04 17:13:58 seems like a silly thing to get hung up on, I'm sure they picked 48 because it is a very standard computer number (32 + 16).. 49, 50 would have been odd Nov 04 17:13:59 you say 48 dp is > 7 mm. so in terms fo area thats over 79 square units Nov 04 17:14:21 no, I said 48dp on a 192ppi device is 6.35mm Nov 04 17:14:39 mmm Nov 04 17:14:41 I have a color nook, and the standard buttons are too small -- this is why it's relevant :-) Nov 04 17:14:58 Hi. I am trying to get intent filters to open my own app in gmail with a custom extension, but nothing I have found seems to work right. They all do at least one of: only work on 4.1, prompt to open other files too, prompt to open my app when tapping an email in the notification bar. Does anyone have any experience with this? Nov 04 17:15:23 I have also asked on stackoverflow if anyone is interested: http://stackoverflow.com/questions/13156212/intent-filter-for-custom-file-type but no answers yet. Nov 04 17:16:31 how are you getting 6.35? i'm not following your math Nov 04 17:18:00 a 192ppi device gets treated as a 160ppi device (that's its closest bucket) Nov 04 17:18:14 so a 48dp line is rendered as 48 pixels -- so 48/192 inches long Nov 04 17:19:19 wouldn't it be 48/160 if its treated as such? Nov 04 17:19:52 no -- it always draws 48 pixels if you specify 48dp (if the 'normalized' ppi is 160) Nov 04 17:20:23 the problem is basically that the system thinks there are fewer pixels per inch than there really are. This means everything si smaller by about 20%, roughly Nov 04 17:20:35 where is this stated? Nov 04 17:22:28 That's just how android works Nov 04 17:22:40 oh ok i see the math now. 48 * 1in/192 = 6.35mm Nov 04 17:22:54 http://stackoverflow.com/questions/6656651/difference-between-android-dimension-pt-and-dp/6656800#6656800 has some more concrete examples Nov 04 17:24:21 shoulda got a kindle fire i guess Nov 04 17:43:08 I think 9 out of 10 people who for some reason think they want to use View.onMeasure() do it, because they want to set up dimensions based on total available pixels. Yet it is impossible to get hold of the available total real estate (width x height) a that time of the app reliably. Nov 04 17:43:17 Do you all agree, or am I missing something? Nov 04 17:44:02 you can get screen dimensions no ? Nov 04 17:44:02 voso: as I'm clueless enough to do just that :-) could you tell me what the gotcha is? Nov 04 17:44:57 I have worked with the onMeasure successfully to make a custom widget that has height which is 1/12th of its width Nov 04 17:45:06 there is no way as far as I know to get your apps W x H pixels (taking into account the statusbar and systembar across all devices - if/when they exist) Nov 04 17:45:23 oh, you do mean the total device screen pixels -- misunderstood. Nov 04 17:45:42 using DisplayMetrics Nov 04 17:46:28 getWindowManager().getDefaultDisplay().getMetrics(display); Nov 04 17:46:55 screenHeight = display.heightPixels; Nov 04 17:47:01 I've been all over SO and the docs.. DisplayMetrics does not account properly for sys/staatus bars Nov 04 17:47:09 screenWidth = display.widthPixels; Nov 04 17:47:32 it does for me, but I do hide the title bar Nov 04 17:47:45 ..very funny. ;) Nov 04 17:47:51 you can hide the status and title bars at first and get metrics and then show them again Nov 04 17:47:53 ..and you are not thinking about tablet compat. ;) Nov 04 17:48:20 what would be the problem ? Nov 04 17:48:25 systembar? Nov 04 17:48:31 or whatever its called.. Nov 04 17:48:40 you cant hide that Nov 04 17:48:45 set FULLSCREEN and get metrics and then unset FULLSCREEN Nov 04 17:49:04 i'm using a viewtreeobserver with vto.addOnGlobalLayoutListener and then getHeight on the view Nov 04 17:49:07 I understand your workaround. Nov 04 17:49:15 full screen is not full on tablets Nov 04 17:49:25 I was looking for a 'clean' solution Nov 04 17:49:28 the status bar that shows the clock and stuff will always be there Nov 04 17:49:38 found none, came here for confirmation! ;) Nov 04 17:50:00 well it seems to work for me but I only test on phone Nov 04 17:50:02 it's rather clean, only a few lines, and you can save it in shared preferences Nov 04 17:50:21 i save it in shared prefs in my first activity then get it from there Nov 04 17:50:28 that's a nice idea, thanks Nov 04 17:51:22 on > 3.1 it works with the usual method IIRC Nov 04 17:51:28 even on tablets Nov 04 17:52:02 Vlad__ that sounds interesting. I'll look into it. Thanks. Nov 04 17:52:04 any of you guys using ACRA with a non-Google-Docs backend, and if so, which one ? Nov 04 17:52:35 let me know if you need code Nov 04 17:52:51 ok, thanks. Nov 04 17:52:59 np Nov 04 17:59:49 Vlad__: does gmail actually provide a standardized intent across all its versions to handle attachments? (or is that essentially what you're finding doesn't exist :-) Nov 04 18:01:26 yup, i think that's what doesn't really exist :/ Nov 04 18:02:05 but there has to be a way to at least support most devices, right? Nov 04 18:06:49 Heh. Well, one silly thought is just to filter on the mime-type rather than the path pattern [assuming you're able to set this when sending the email.] Nov 04 18:07:45 another thought is to see what logcat dumps when the app actually successfully calls another intent, to see what things it is putting into the intent Nov 04 18:07:53 how do i set the mime type? Nov 04 18:07:56 er, "calls another app" Nov 04 18:08:20 that should be something feasible when sending the email -- do you have control over this? Nov 04 18:08:40 yes i do, but i didn't know i could set the mime type or an attachment Nov 04 18:08:47 of an* Nov 04 18:09:09 it should be -- you can specify the mime-type within a multi-part mime, of the attachment itself. Nov 04 18:09:44 but i tthink it might be best to see if you can pull out a successfully launched intent out of logcat, so you can see what gmail actually uses Nov 04 18:10:16 I think i can look in my nook here, let's see... Nov 04 18:10:45 oh there is a setDataAndType method, that looks to be it Nov 04 18:11:01 not sure what i should pass for the Uri parameter though Nov 04 18:11:22 wait, now you've confused me. I thought the issue was to get gmail to launch you, not the other way around? Nov 04 18:11:59 yes, but weren't you suggesting to set my own mime type explicitly and filter on that? Nov 04 18:12:11 i do that when attaching to gmail with an intent, right? Nov 04 18:12:18 right now it's share.setType("application/octet-stream"); actually Nov 04 18:12:50 filtering on that would be too general i think Nov 04 18:13:30 do you send an email from within your app first? Or does it arrive from somewhere else? Nov 04 18:13:40 i send it from within my app Nov 04 18:13:56 by launching gmail Nov 04 18:14:10 ah, I see. So the sequence is a) create intent to trigger gmail b) user taps on attachment in gmail app to call you back Nov 04 18:14:23 yes Nov 04 18:15:07 gotcha. Well, I don't know about the (a) part, as I was assuming the email was sent from somewhere else Nov 04 18:16:12 i wonder if i can put anything i want with setType and filter on that Nov 04 18:17:14 I think you're now in the realm of needing to work with two undocumented sets of APIs :-) one to send it info, and next to get it to send you info Nov 04 18:17:33 lucky me :) Nov 04 18:17:52 but I can check here if I can get a logcat (2.3 device) intent for (b) at least Nov 04 18:18:14 that would be great, thanks Nov 04 18:20:21 oh well so far this works Nov 04 18:20:56 i put application/umsgsave in setType and filtered with and it works on 4.1 cyanogen mod Nov 04 18:21:06 is it possible to get the current status of Android's 100sms/hour limit? Nov 04 18:21:44 fingers crossed that it works on others too but i cant test that until tomorrow Nov 04 18:23:06 cube, I thought sms is limited only by your carrier Nov 04 18:23:07 thanks for giving me this idea kbs :) Nov 04 18:24:11 adq: stock android has that limit, if you try to send more than 100sms/hour it will show you a popup window to confirm sending Nov 04 18:24:13 { dat=content://gmail-ls/messages/kbsriram%40xxxxx.xxx/110/attachments/0.1/SIMPLE/false cmp=com.google.android.gm/.ViewAttachmentActivity } Nov 04 18:24:53 Vlad__: so on 2.3, it appears that it's only putting that data and nothing else Nov 04 18:25:06 oh no, I'm sorry Nov 04 18:25:11 cube, it's probably to avoid automated spamming :D looks like this counter and its limit is stored in settings.db Nov 04 18:25:41 Starting: Intent { act=android.intent.action.VIEW dat=content://gmail-ls/messages/kbsriram%40xxxxx.xxx/110/attachments/0.1/SIMPLE/false typ=image/jpeg flg=0x80001 cmp=android/com.android.internal.app.ResolverActivity } Nov 04 18:26:05 i think that's what it's putting on 4.1 too, i remember seeing something similar when printing the path of a file opened when you click view first instead of save Nov 04 18:26:31 somewhere in there should be enough -- I guess it's only matching on the mime type Nov 04 18:26:44 adq: yes it is, can i query that db from my app> Nov 04 18:26:44 yup, thanks Nov 04 18:26:55 i will provide more feedback tomorrow about how it works on 2.3 Nov 04 18:27:01 cube, only if you are root I think Nov 04 18:27:20 adq: that's what I thought :| Nov 04 18:27:43 hopefully, imagine any app can query other app data... Nov 04 18:28:46 adq: well, systems settings could be read safely, I think Nov 04 18:43:00 Vlad__: your ViewTreeObserver trick works like a charm! I suppose the result/price is two layout passes instead of one during startup, but I guess I can live with that. Thank you again for the tip. Nov 04 18:44:27 voso: glad it works, np Nov 04 18:44:30 oh , then I should use that too, because I'm making a fullscreen video when device tilted into landscape Nov 04 18:44:51 and I never tested on tablet but it looks fine on phone Nov 04 18:46:05 so that will work on tablets and phones to give the real height and width of full screen in pixels Nov 04 18:46:33 it's only needed for 3.0 and 3.1 devices in my experience, but yes, that will work in all cases Nov 04 18:47:45 shmooz: register a getViewTreeObserver().addOnGlobalLayoutListener on your root View and call getHeight() in the callback. Nov 04 18:48:00 you guys can show me some working code snippet of it ? Nov 04 18:48:16 ok Nov 04 18:50:05 also you might want to do logo.getViewTreeObserver().removeGlobalOnLayoutListener(this); where logo is the view you're measuring (declaring it with FILL_PARENT will mean you'll be measuring the entire usable screen space) Nov 04 19:05:10 hi! anyone knows how can I use a tethered mobile to send sensor signals to eclipse emulator (under ubuntu)? Nov 04 19:05:17 how to increase resolution of avd, now if I edit the something the virtual keyboards covers the whole screen Nov 04 19:05:28 I am using it like this ./emulator -avd Default -no-skin -gpu off -scale 1 -no-boot-anim -dpi-device 320 Nov 04 19:12:56 Can someone please walk me through how to draw 3D objects in android? (all primitive objects). How would something like jogl work? Nov 04 19:19:10 jmfurlott: what's jogl? java openGL? Nov 04 19:19:28 doclava is so rad :) thank you google Nov 04 19:19:28 sampullman, a java binding to use openGL Nov 04 19:19:49 drawing 3d stuff in openGL on android is no different than opengl anywhere else Nov 04 19:20:39 you just render a bunch of triangles Nov 04 19:21:07 * vandenoever is looking to make a versioned filesystem via a contentprovider Nov 04 19:21:26 sampullman, okay I will learn how to use openGL then Nov 04 19:21:31 sampullman, thank you sir Nov 04 19:21:45 openGL ES, which is mostly the same but not quite Nov 04 19:22:43 hey, is it ok to use a static variable in an activity to save values when the activity is recreated? lets say when moving from landscape to portrait? Nov 04 19:23:36 viran: you should use the save state feature Nov 04 19:24:08 dragorn: err, its not that simple. Nov 04 19:24:19 viran: typically you're best served by using fragments and retaining the fragment. Nov 04 19:24:32 there are ApiDemos examples that show this Nov 04 19:24:32 jasta: if he's storing a boolean? should be relatively simple Nov 04 19:24:53 jasta: unless I've been using them wrong all along... Nov 04 19:25:02 dragorn: you very likely have been. Nov 04 19:25:58 there are an unfortunately large number of gotchas and nuiances between the various methods for saving state. saving instance state, for example, is designed to save _UI_ state that can be recovered for example if your process dies while in the background Nov 04 19:26:09 things like the position in a list is saved that way automatically for you by ListView Nov 04 19:26:46 jasta: I suppose I should have clarified if his boolean was related to his UI display, yes. Nov 04 19:26:47 retaining complex objects, for example an adapter, some downloaded data, etc to quickly recover from orientation change is saved using "retained" data mechanisms. the easiest of which to use is offered through Fragment's setRetainInstance Nov 04 19:27:12 but of course other legacy apis do exist Nov 04 19:27:21 they're just kludgey and hard to use Nov 04 19:27:54 dragorn: the distinction is very important. typically when someone is talking about saving state through orientation they are referring to the retain set of APIs. most UI instance state is saved for you automatically and there are very, very few exceptions out there. Nov 04 19:28:07 basically unless you've built custom controls, you're probably doing it wrong to use the save instance state method Nov 04 19:28:24 since we've now discussed his problem about 10x what he asked, I'll wait for him to actually clarify what he needs. Nov 04 19:28:34 and there are very subtle ways that test/demonstrate that you're doing it wrong. it can be very hard to notice if you don't know your edge cases... Nov 04 19:28:53 dragorn: it's not just about helping him. i'm explaining this for your benefit too :) Nov 04 19:28:57 all my state is stored in services except some specific UI tweaks Nov 04 19:29:18 I simply interpreted his question as pertaining to UI stuff Nov 04 19:29:52 why would a service save state? the primary function of service is to escape process death when your application is backgrounded. Nov 04 19:30:14 everything on top of that is just a nicety to support situations where that is true (that you wish to escape process death) Nov 04 19:30:24 jasta: because all the work I do has to occur in services, because it's independent of UI state or has to preserve connections when the UI isn't active Nov 04 19:30:38 ah well, carry on then ;) Nov 04 19:30:48 therefore all of the state of my application is in the service. The UI is a bit of glitter on top to give the user something to look at, and, arguably, a way to kill the service Nov 04 19:30:57 otherwise I practically don't need a UI Nov 04 19:31:40 jasta, what is 'legacy api' on a static field? if the data is not UI related, i dont see a problem with a static field either. if there is one, please enlighten me. btw I tend to keep this type of data in my App, not an Activity. but still.. Nov 04 19:31:59 pretty much everything I do is centered around data gathering - either via USB or rfcomm, and logging. Which need to be independent of the UI display. Pretty much all my UI interaction is read only database access to the backend, plus some state messages on the service handlers Nov 04 19:32:04 voso: well, you now can't have more than one instance of your activity for example. Nov 04 19:32:09 at least not with differing state Nov 04 19:32:43 thats true. Nov 04 19:32:45 also, i think the argument is best reversed: what advantage is there to using a static field over fragment's retain instance capability? both are extremely simple. the latter, however, has few drawbacks. Nov 04 19:32:49 if any Nov 04 19:33:15 bbl, lunch Nov 04 19:56:30 Hi all Nov 04 19:57:16 I've been attempting to configure Ortho for a Nexus 7 device but I've been having some troubles, any one have any experience with OpenGL ES 2? Nov 04 19:57:50 can someone tell me how can I know that a code that is run with runOnUIThread is finished, in order to continue from another point of my code? I want to make something like wait and signal but I don't know how to stop my code from continuing before the UI thread finishes Nov 04 19:58:42 I get "Called unimplemented OpenGL ES API" every time i call gl.glOrtho or GLU.gluOrtho2d Nov 04 19:58:57 dioHere: you could pass a message with handlers. Also since it's all the same activity (I presume) you could use traditional thread sharing, like locking an object while it's running and waiting for it to unlock Nov 04 20:00:01 dragorn I have the runonuithread method to run in another class. can I do that with synchronized block? Nov 04 20:00:09 dioHere: there's also asynctask, depending on what you're doing Nov 04 20:00:48 FuriousScissors: ES 2 doesn't have fixed-pipeline matrices. Nov 04 20:00:54 dioHere: ah. So you'd have to have an instance - you could pass your instance in your function on your UI class you're running on the UI thread and have it call your function as a callback Nov 04 20:02:45 dragorn I will try everything you've said. thank you very much Nov 04 20:03:34 dioHere: ie, public class whatever { uiDone(); } ... class myactivity { runningOnThread(whatever cbwhatever); } ... runOnUi() { someActivity.runningOnThread(this); } Nov 04 20:04:02 dioHere: similar to an onClick handler calling back Nov 04 20:04:58 dindinx: I see, is there any recommended way of drawing 2D within ES 2 or is the solution to stick with ES 1? Nov 04 20:07:51 dragorn: yes I think I understand. I am a little confused about these kind of things but I hope I will manage to do it Nov 04 20:08:03 FuriousScissors: juste use your own matrix library. Nov 04 20:09:08 dioHere: I suspect doing a callback is going to be what you want Nov 04 20:09:30 dindinx: I'll do some research on that, thank-you. Nov 04 20:16:49 rakshith wants to ask something, but prefer to anoy people in private Nov 04 20:18:17 sorry ? Nov 04 20:18:48 rakshith: ask your question here, not in private. Nov 04 20:18:57 dindinx: got it Nov 04 20:19:25 dindinx: i asked you because,i saw you active Nov 04 20:19:32 dindinx: sorry man Nov 04 20:19:53 rakshith, I doubt he's offended... but you never know who's got info that could help you Nov 04 20:20:20 plus, it's nice to learn from Q/A (even if they aren't your own) Nov 04 20:20:28 gutano: the problem is,i have signed Nov 04 20:21:05 if your going to violate, might as well do it publicly, lol Nov 04 20:21:24 gutano: a apk,and when i try to install it in emulator,it says "file xx.apk has missing AndroidManifest.xml " Nov 04 20:21:53 is it missing that file? Nov 04 20:22:23 rakshith, does the non-signed ver have this prob? Nov 04 20:22:35 Vlad__: i did zip the apk and extracted the file,AndroidManifest.xml was there Nov 04 20:22:42 gutano: no Nov 04 20:23:34 gutano: i dont think i will be able to upload it to the market as well Nov 04 20:24:19 well if it doesn't work, you certainly don't want to do that nayway Nov 04 20:24:46 gutano: how do i check it then ? Nov 04 20:25:09 rakshith, http://developer.android.com/tools/publishing/app-signing.html has several methods of signing Nov 04 20:25:15 gutano: like if my apk is ready to be released to everybody Nov 04 20:25:23 it's not Nov 04 20:25:27 or it wouldn't error when you ran it Nov 04 20:25:34 you have to fix your signing issue Nov 04 20:25:47 gutano: signing is working cool Nov 04 20:25:59 gutano: it says jar verified Nov 04 20:26:02 pretty sure when the market attempts to read the manifest and blows up it won't let you publish anyhow :P Nov 04 20:26:06 ok Nov 04 20:26:12 nothing to discuss then Nov 04 20:26:21 sorry ? Nov 04 20:26:36 dragorn: any way we can fix it ? Nov 04 20:26:43 no clue Nov 04 20:26:59 I don't even know how you'd get it into such a state to be honest Nov 04 20:27:05 just blindly guessing here, but are you using the code obfuscator too? Nov 04 20:27:35 if you are, try making a signed apk without it Nov 04 20:27:45 see if that works Nov 04 20:27:57 dragorn: i am signing it manually,without using eclipse Nov 04 20:28:24 Vlad__: no,i am not using code obfuscator Nov 04 20:28:51 dragorn: thru terminal using jarsigner and keytool Nov 04 20:28:57 rakshith: I'd guess you're signing the wrong thing, or somehow otherwise missing a step. Like I said, I have no idea how you'd get such a failure Nov 04 20:29:11 ok,thanks Nov 04 20:29:11 I've never encountered it. Nov 04 20:29:17 try signing it with eclipse then Nov 04 20:30:09 hi, i am trying to view the pdk after building it from the android sources... Nov 04 20:30:11 Vlad__: yes,will give a try Nov 04 20:30:22 but the directions from the readme don't seem to work.... any suggestions? Nov 04 20:30:57 pdk ?? Nov 04 20:36:26 I have a ListView where I want items to be swipeable left and right to scroll through pictures (similar to the pictures in the Verge's cool app). Should I have a FragmentPagerAdapter per row of the list, or should that be attached to my ViewHolder? Nov 04 20:36:58 Is there a way to change the default path nine patch tool editor open/save dialog points too? Nov 04 20:38:45 mdkess it sounds like you are using both a pager and listview which defeats the function of both since, one is supposed to scroll vertically and the other horizontally Nov 04 20:44:36 not only that, but several viewpagers :) Nov 04 20:45:05 So I have a viewpager that is a set of ListView based fragments. These scroll horizontally. Nov 04 20:45:31 Then each ListView scrolls vertically, naturally. But some of the ListView items will scroll horizontally too (the ones with their own pagers). The Verge does this, it's not as complicated as it sounds. Nov 04 20:45:49 I mean, complicated from a user's perspective. Nov 04 20:46:03 Yeah I just downloaded it, I think I see what you're getting at Nov 04 20:46:13 Pretty sweet app too, right? Nov 04 20:46:52 It's okay: to swip left and right but also have the sidebar thing that comes out on a swipe left to right is a little convuloted Nov 04 20:47:35 I like the idea of side drawers (I think Dolphin was the first app that I saw that really used that pattern), but I find it's hard to communicate to the user. Nov 04 20:49:47 rakshith: Product Development Kit Nov 04 21:00:13 hello Nov 04 21:00:16 ?? Nov 04 21:36:26 Hi devs. Just reading the API guide and noticed this "Each process has its own virtual machine (VM), so an application's code runs in isolation from other applications.". Does it just mean virtual memory with its own address space? Or is it a full blown virtual machine? Virtual machine implies hypervisor, hardware abstraction etc. Is that the case here? Nov 04 21:37:44 it's talking about jvm Nov 04 21:37:57 I am trying to use gdbserver to debug my ndk app but how do I run gdbserver on the device? if I push it over adb its not executable and chmod can't seem to make it executable Nov 04 21:39:14 You know what, I read that back just now and realised that it was obvious. Thanks. Nov 04 21:47:58 Is there a guide somehow on how to create animated splash screens? Nov 04 21:55:25 Every guide on it I find says that for a splash screen I should create it's own activity... but wouldn't it make more sense to simply put it into the onCreate() method? Nov 04 21:55:56 more sense not sure, but more easy maybe Nov 04 21:56:26 it's better to seperate it Nov 04 21:56:51 such as if you wantet to launch your app and bypass the splashscreen Nov 04 21:57:21 fact is when the splash screen has finished its animation, there is no need to keep it (in memory per example), so if the splash is its own activity, ondestroy is called when the splash is finished (end of animation or by user) and the resource of the splash are gone Nov 04 21:58:03 I can see why I would like to do that as a dev, but I don't see why I would give users the ability to bypass my splash screen Nov 04 21:58:11 that makes sense adq, thanks Nov 04 21:58:13 ya and it's also a bit cleaner if you want to reuse the splashscreen Nov 04 21:58:32 users don't like to wait 10 seconds (if there is no purpose except the displaying of the splash) Nov 04 21:58:48 ya definitely make a click through option Nov 04 21:59:22 is app engine a good web service solution for native android apps? or are there better options? REST, RPC, etc? Nov 04 21:59:40 yeah, it will be only 1 second and (obviously) only when starting the app (a game) and not when bringing it back from the background Nov 04 21:59:52 Syzygy, if you really don't want to bother with a splash in a separate activity, you can use a relative layout, put the splash on top of everything, apply an animation (per example a fade out), and then remove the view Nov 04 21:59:55 but it's not the way to go Nov 04 21:59:57 hey Nov 04 22:00:14 actually, not a second but depending on how long everything will take to load Nov 04 22:00:18 does anyone know the sample rate for the gps? Nov 04 22:00:22 the maximum Nov 04 22:00:26 Syzygy: i delayed my splash Nov 04 22:00:30 (and it's really just a requirement from my uni course) Nov 04 22:00:35 Syzygy: a min time of 3 seconds Nov 04 22:00:54 monsti, so you have to wait at least 3 seconds no matter what? Nov 04 22:00:56 Syzygy, you can short-circuit an animation too, via overriding its methods Nov 04 22:01:18 that's a bit to advanced for me right now i guess Nov 04 22:01:25 Syzygy: yeah Nov 04 22:01:40 Syzygy: i have an Appllication class that does some initalization Nov 04 22:01:49 if i put my splash screen in a seperate app, can I still tie it to the time it takes my app to initialize? Nov 04 22:01:49 Syzygy: the splash polls if this is finished Nov 04 22:02:09 Syzygy: if it's not yet finished it waits until done - else wait minimum of 3 seconds Nov 04 22:02:19 ok, that makes sense Nov 04 22:02:30 would you be kind enough to share your code? Nov 04 22:02:43 Syzygy: it's just a AsyncTask Nov 04 22:02:56 I'll look it up then Nov 04 22:03:02 a busy wait while(1) ... sleep(50ms) ... Nov 04 22:03:14 if(app.done) break; Nov 04 22:03:41 and is it it's own activity? Nov 04 22:03:47 yeah Nov 04 22:03:54 it's the start activity Nov 04 22:04:02 ok Nov 04 22:04:13 but - of course - you can do this in any other activity Nov 04 22:04:21 yeah Nov 04 22:05:05 an android app with GWT does not use the native UI correct? Nov 04 22:05:40 so my final question on this is... can someone recommend a guide for how to create animated splash screens? all i found till now is how to fade them. Nov 04 22:06:04 Syzygy: android 3.0+ ? Nov 04 22:06:14 Syzygy: read the heavy chapter about animations :) Nov 04 22:06:25 2.3 is our minimum required platform iirc Nov 04 22:07:17 or you can always make your frames as png files in photoshop and animate them manually in onDraw() Nov 04 22:07:21 or use a video Nov 04 22:07:33 so many possibilities :) Nov 04 22:07:38 Syzygy: i started by looking at the drawables for the progress cursor Nov 04 22:08:19 I guess making a video would be the easiest for me Nov 04 22:09:02 it's the best in terms of consistency Nov 04 22:10:37 I mean the animation wouldn't be that hard to do i guess Nov 04 22:10:41 https://dl.dropbox.com/u/31690810/nan.png Nov 04 22:10:48 just the not sliding in from the left Nov 04 22:10:52 yeah but think of loading the video & co, you will face more problems :) Nov 04 22:10:56 go simple first Nov 04 22:11:10 (because from the complexity you cannot go back to simplicity too ;)) Nov 04 22:11:32 But loading videos is a requirements of the course as well Nov 04 22:11:35 Syzygy, nice logo Nov 04 22:11:42 so 2 flies with one stone Nov 04 22:11:44 thanks Nov 04 22:11:47 (looks like for an irc client :)) Nov 04 22:11:51 ya but when you need your splash animation to be consistent over all hardware especially older devices video is the way to go Nov 04 22:12:03 and if it's a small animation the video should be small Nov 04 22:12:05 agreed Nov 04 22:12:28 of course if you don't know what you're doing with rendering the video it could end up way too big and cause problems :P Nov 04 22:12:36 well, preferably I would time the animation so that it finishes when loading is done Nov 04 22:12:41 I've rendered videos before Nov 04 22:12:53 any recommended resolution? Nov 04 22:16:35 I used 800x480 Nov 04 22:16:53 it's 4 seconds and is 121kb Nov 04 22:19:19 so no real conventions there apperently, in that case I'll stick to the highest resolution the phones we use for developing have. Nov 04 22:21:23 well there is a guide to screen support: http://developer.android.com/guide/practices/screens_support.html Nov 04 22:22:15 i suggest you do the video at whatever resolution looks good and is small enough for your liking and then resize it to a percentage of the screen at runtime Nov 04 22:26:58 in the manifest, if i do this: android:screenOrientation="landscape" in the activity tag, I can enforce landscape mode. can i enforce it on all activities if i just do it in the application tag? Nov 04 22:27:21 hey guys, is there a good RPC solution for App engine that works on android native, not web app? and has rpc code generators? backend is in java so that I can use tdd both front and backend? Nov 04 22:27:57 Syzygy why don't you try it out :P Nov 04 22:28:07 afaik you can't do that at application level Nov 04 22:28:16 it must be done for each activity Nov 04 22:28:52 I don't know where all my cables are D: Nov 04 22:29:28 you don't need cable, your IDE should tell you if you can use android:screenOrientation in the application tag or not Nov 04 22:29:45 type it and see if autocomplete fires up Nov 04 22:30:40 and you should get an error if you try to compile and it doesn't belong there, or at least a warning Nov 04 22:32:14 don't get anything and it doesn't work Nov 04 22:33:21 I've spent the whole weekend, on & off, trying to figure out how to do image caching... I feel like I have a better understanding of what I need to do know, though I'm still some way off having a working implementation... anyone else had similar frustrations with caching? Nov 04 22:33:46 s/know/now Nov 04 22:34:07 uhh. Nov 04 22:34:07 what do you mean by image caching? Nov 04 22:34:08 no? Nov 04 22:34:28 I have similar frustrations with my whole life D: Nov 04 22:34:30 I mean generating bitmaps and putting them into memory & disk caches Nov 04 22:34:35 and then managing those Nov 04 22:34:39 that's really a trivial problem Nov 04 22:34:44 100 line utility class tops Nov 04 22:34:48 images generated in the background and so on Nov 04 22:35:23 well my main frustrations have been that the example of how to do it from the android docs contains over 10 classes for a start Nov 04 22:35:28 generating them (why are you generating images?) is perhaps somewhat trickier, but still pretty simple. Nov 04 22:35:39 marsilainen: where are you looking at android's docs? Nov 04 22:36:03 http://developer.android.com/training/displaying-bitmaps/cache-bitmap.html Nov 04 22:36:16 I was looking at that doc and the example they provide Nov 04 22:37:36 I'm generating images because my app does custom drawing (of a board game) and I want to provide some thumbnails for browsing through saved game positions Nov 04 22:37:43 just scanned it, sounds perfectly reasonable for the case its outlining Nov 04 22:37:59 is this somehow excessively complicated to you? Nov 04 22:38:22 they've basically given you the code plainly. the only frustration i could think of is if you can't grok it. Nov 04 22:38:48 well I think the example they provide is over-complicated really Nov 04 22:39:05 you think that based on what? Nov 04 22:39:26 they have three classes - one extended from the other from the other - when I think they could have done that as one class for simplicity and ease of understanding Nov 04 22:39:35 for example. Nov 04 22:39:55 ok, i don't agree, but whatever. Nov 04 22:40:06 well clearly you're smarter than me Nov 04 22:40:30 can you please just narrow in on your actual concern so that i could address something tangible Nov 04 22:41:17 it might help to start an empty project, cnp the code and then run through it with debug statements (Log, alertdialogs etc.) until you understand it Nov 04 22:41:23 I was only asking if other people had taken as long as I had to get their head around implementing caching for the first time given the docs... Nov 04 22:41:43 marsilainen: i implemented this stuff myself prior to google doing it and, no, i didn't even find that difficult or frustrating. Nov 04 22:41:58 you now have well thought through and tested code to just copy and paste into your project. *confused* Nov 04 22:42:24 ivdorelian: yeah, that's the sort of thing I ended up doing, just found it took me longer to get my head round it than other android things Nov 04 22:42:45 jasta: sure - it's probably at least in part because I'm fairly new to android dev Nov 04 22:43:02 so you're frustrated that you're learning new things? you're really losing me here... Nov 04 22:43:45 when you encounter material you don't know, it takes time to understand it. when you encounter material you understand, you quickly move through it. with experience, most things will be easy to move through. Nov 04 22:43:49 moving on now... Nov 04 22:44:21 I love learning new things - I found this particular aspect took a bit longer to get my head round than I would have liked... but I'm perfectly willing to accept that my lack of knowledge/skill is to blame... just wondered if other people have had the same issue when implementing caching the first time Nov 04 22:44:56 well i will tell you that way back in the early days of android running on a G1 it was a nightmarish problem to try to achieve decent performance scrolling through a list of images Nov 04 22:45:00 google themselves struggled with it Nov 04 22:45:23 and through all the pain and torture, some very strong and simple best practices emerged such as the one you found. Nov 04 22:46:42 consider yourself lucky to have the opportunity to learn from those headaches and not repeat them. and i assure you, if you find the results confusing or overcomplicated, you're just lacking experience in this space. Nov 04 22:46:51 sure. And that's fine, I can understand that. I would recommend to Google that for beginners such as myself that the docs on that probably could do with being made a little easier to understand. People like you who obviously have experience probably don't need such things Nov 04 22:47:05 marsilainen: patches welcome. Nov 04 22:47:16 where do I submit? Nov 04 22:47:25 source.android.com Nov 04 22:47:37 ok Nov 04 22:47:40 those guides are in the aosp packages Nov 04 22:48:25 as I say, I'm not complaining about the solution - just that for beginners it needs a bit better documentation IMHO - speaking as someone doing his best to learn Nov 04 22:48:53 I have to say that in general I've found the android docs pretty good Nov 04 22:48:55 that's probably a very accurate observation that you're in a unique position to correct. Nov 04 22:48:59 so, please do :) Nov 04 22:49:33 the docs available on vogella.com have been invaluable to me too Nov 04 22:49:49 the docs there have got me through learning to use loaders, content providers etc Nov 04 22:51:01 test Nov 04 22:51:07 ha! Nov 04 22:51:11 hi :) Nov 04 22:51:22 sorry for that Nov 04 23:17:01 hi Nov 04 23:17:13 can i use functions in Android.mk ? Nov 04 23:26:47 neure: I haven't tried that, but you could test it quickly; here's the syntax for gnumake: http://www.gnu.org/software/make/manual/html_node/Functions.html Nov 04 23:26:52 question: I'm working on a simple app, and am trying to utilize the Apache EntityUtils class. I've imported 'org.apache.http.util.EntityUtils', yet Eclipse says 'EntityUtils.toString cannot be resolved to a type'…I've tried cleaning the project, but no luck. Just updated to the latest version of Eclipse as well…thoughts? Nov 04 23:28:19 yo Nov 04 23:28:30 who knows what a blinking GPS icon at the top of the phone means Nov 04 23:28:38 does it mean that a location is not fixed? Nov 04 23:29:13 i would think it just means gps is on, no? Nov 04 23:31:52 neure: tested. you can. Nov 04 23:35:30 how do i get verbose output from ndk-build ? Nov 04 23:35:40 i need to see which command it is executing Nov 04 23:35:46 as my includes are not workinbg Nov 04 23:38:40 i need to make 143 requests to a server to populate my database Nov 04 23:39:02 I've done it a few times rapid fire but I need to be kinder to their server Nov 04 23:39:26 how can I space them out a bit? Nov 04 23:43:22 ndk complains string header is not found Nov 04 23:49:36 neure: --debug ? Nov 04 23:49:54 RustyShackleford use a handler/runnable with a post delayed Nov 04 23:50:41 fatal error: string: No such file or directory Nov 04 23:50:47 what could be causing that? Nov 04 23:51:02 #include should work, shouldn't it? Nov 04 23:51:48 i also have -std=c++0x Nov 05 00:08:05 setBackgroundColor(0) causes nothing to be painted at all, right? Nov 05 00:08:25 due to opacity = 0 ? Nov 05 00:17:27 can anyone help me with this? http://stackoverflow.com/questions/13221970/ontouch-with-multitouch-and-soundpool-motion-events Nov 05 00:24:06 stackoverflow can help you with it Nov 05 00:26:22 Hey guys. Have a quick question (I hope). I have this "GPSTracker" that extends Service and Implements locationListener... I use it from another activity like so: GPSTracker gps; and then do stuff like gps.getLatitude; Well, I have a "public void onLocationChanged(Location location) {" line that works and lets me know when their location has changed... is there any way to listen for this Nov 05 00:26:22 in my other activity? I have a map view that I use in there, and it'd be nice to get that "change" data inside my activity. Nov 05 00:26:42 Or do I have to set up a timer and see "if location changed" by calling it Nov 05 00:27:43 Can using a few buttons,textviews and edittext fields cause my app to use 10 megabytes for just that? Nov 05 00:27:58 Cause my avg usage is over 10 megabytes... Nov 05 00:28:13 diki: Doesn't sound right to me. Nov 05 00:28:48 I did perform an analysis with MAT, but.. Nov 05 00:29:18 it showed the culprit as android.content.res.Resource which after searching in the histrogram, turns out to be the UI elements(textviews,edittext whatever). Nov 05 00:30:05 Is there some cleanup I am forgetting? All my elements are never hidden, always shown to the user. Nov 05 00:30:23 diki: Ah, right. That wouldn't be your app though. Nov 05 00:30:33 Are you having memory overload problems? Nov 05 00:31:05 pierpark:Not yet. But I can't have my app using that much memory anyway. Nov 05 00:32:15 There are times when you might load a ton of data in from the web, or end up with a large cache that is being read in all at once, and you can certainly clear your cache.. but as far as the UI elements, those are handled by Dalvik, which is Android's virtual machine that all apps run in. <--- definition might not be accurate. Nov 05 00:33:01 I do not use anything web related. Nor have any cache, nor handle bitmaps(however MAT did show references to bitmaps for whatever reason). Nov 05 00:33:15 mrenouf: so I tried getRuntime().availableProcessors()... Turns out it only returns CPUs available to the JVM. So for some reason, it always returns 1 on my dual core. However, my /proc/stat reading code ends up detecting the second core when it wakes from sleep Nov 05 00:33:23 At first, and pretty confident guess... you are in no risk of having an issue from your app. However, other apps with bad programming that are on your device might be causing the high usage. Nov 05 00:33:33 hmm Nov 05 00:33:34 unfortunately this makes me think dalvik is only ever using 1 of my cores Nov 05 00:33:48 yeah, wasn't confident about that. that's not necessarily true Nov 05 00:33:52 its ok though, I add cores dynamically. It would be nice if I knew in advance. Nov 05 00:33:54 it's not specified in the spec Nov 05 00:34:10 you can do a traceview if you don't beleive it Nov 05 00:34:18 or systrace Nov 05 00:34:19 oh, you mean that dalvik uses both cores? Nov 05 00:34:26 you're probably right Nov 05 00:34:29 don't see any reason it wouldn't Nov 05 00:34:34 pierpark:I hope I am not overstepping myself here, but I do have the hprof file. I could send it for someone to take a look at, provided they have free time and all :) Nov 05 00:34:43 but it could decide to put a process on a core or set of cores Nov 05 00:34:48 well I have a fib() function that I spawn threads on to deliberately increase cpu, and it seems to make the other core wake up Nov 05 00:35:16 oh right, your trying to burn cpu? Nov 05 00:35:30 i was earlier. I hid the button. I don't think I want users to have that feature. Nov 05 00:35:34 I'll just keep it for myself :) Nov 05 00:35:39 lol Nov 05 00:35:39 diki: pop it up somewhere and ask someone to take a look. If nobody responds, try again here in about 2 hours... more people are generally on. In fact, mrenouf might hep you, since they are discussing things along that line. Nov 05 00:36:17 sorry, dont have time to analyze hprof traces Nov 05 00:36:32 but if you have questions about how to look at them, I might be able to help Nov 05 00:37:10 Here it is, http://www35.zippyshare.com/v/95084996/file.html. :) Nov 05 00:37:23 diki: From what you are describing, there's no way that TextView's and buttons, etc., are going to hog memory. Now if that package you said was the culprit is showing that much, that isn't your app. Follow your package and that should be your only concern ... so look for your com.diki.package .. I'll open that, but I doubt I'll be much help. Nov 05 00:37:28 I think it is already converted by hprof-conv/ Nov 05 00:38:10 pierpark:DDMS also shows my memory usage as 10(even over 12 megabytes). Nov 05 00:38:16 for my package, not other. Nov 05 00:38:30 Odd. Nov 05 00:39:59 Ok, the previous hprof I uploaded was not the one from hprof-conv, this one is http://www12.zippyshare.com/v/63901955/file.html Nov 05 00:40:10 It will run directly on MAT. Nov 05 00:40:38 so I finally have a fully populated database on my harddrive Nov 05 00:40:39 If this helps, The class "android.content.res.Resources", loaded by "", occupies 6 225 640 (59,31%) bytes. The memory is accumulated in one instance of "java.lang.Object[]" loaded by "". Nov 05 00:40:47 I want to include it in my app Nov 05 00:41:04 first of all, where does it go? Nov 05 00:41:08 I don't think I'm going to be of any use to you, unfortunately.. save your links and hopefully someone that is more 'skilled' in that area can help you. I apologize... Nov 05 00:41:29 diki ^^ Nov 05 00:41:42 pierpark:That's ok, I am as mind boggled as the next guy. Nov 05 00:41:48 :) Nov 05 00:42:27 I'm actually trying to work out a massive memory problem. The Maps API really really needs an update. Nov 05 00:43:10 i've included some text files in res/raw before Nov 05 00:43:43 I want my database to be stored in /data/data/packagename/Databases/database.db Nov 05 00:44:18 RustyShackleford: You'll need to take a look into the sqlite ? documentation I believe. Nov 05 00:44:26 also, do I need to still subclass SQLiteOpenHelper if my database is already populated? Nov 05 00:44:31 Just to add more infor for clarity, I am also using JNI, however the C code uses no more than 1 megabyte, and I vouch for even less. Nov 05 00:44:39 i do not need to change this information, just query it Nov 05 00:45:35 The even weirdest part is, that the emulator shows my application using only 2-3 megabytes of RAM, which is multitudes lower than on the phone. Nov 05 00:45:50 RustyShackleford: http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ Nov 05 00:46:04 RustyShackleford: That should answer your question and provide you an example. Nov 05 00:47:25 pierpark: perfect, thank you Nov 05 00:47:34 RustyShakleford, when you include your own sqlite database in the APK note that it will require twice the size Nov 05 00:47:53 because the included database won't be deleted after you use it to create the database internal to your app Nov 05 00:48:36 *using the method the link pierpark put up Nov 05 00:49:02 so it will simply make a copy? Nov 05 00:49:14 yeah but the copy will be available to your app Nov 05 00:49:23 16KB, that shouldn't be too much of a problem Nov 05 00:49:33 oh yeah no problem :) Nov 05 00:49:37 can I delete the original copy after installing? Nov 05 00:49:41 I read a thesis that says right now is when the most people are playing android games Nov 05 00:49:47 I don't believe so Nov 05 00:50:39 if it's that small why not just format the text files and populate your database with those Nov 05 00:50:59 *the text files you formelly put into raw Nov 05 00:51:19 like in the oncreate method, just go line by line and insert them? Nov 05 00:52:10 the reigndesign method is usually for large databases (like i used it for a database >2mb) but only because i don't have a dedicated web server i could pull the info from Nov 05 00:52:31 lasserix is right... after further reading. I'd suggest putting that database file on the web on your server, and that way you could update the database file, and then the app could update the records if you 'flag' a database change. that way, there's no .db file included in your app, and you'll have the power to update the database without making them update the actual app. Nov 05 00:54:46 anyone knows what app is that task list from, the one seen when long-pressing the home key? Nov 05 00:54:51 meaning: app calls up http://site/datebase.db if.. lets say, http://site/datbase_info.txt says.. "update 2" and, the app says "eh, I've got update 1" .. then it'll download the database, update internal database, then you can delete the database file you just downloaded while retaining the data. Nov 05 00:55:35 pierpark: but he's only using a db that is 16kb in size. easiest way would to be just do read line by line from a text file in raw and populate in oncreate Nov 05 00:56:12 lasserix: yeah, definitely true. Nov 05 01:29:54 hi Nov 05 01:30:49 Does anyone know what's the use of having both onSurfaceCreated() and onSurfaceChanged() if the latter gets called just after the former and both are called when the surface is recreated ? Nov 05 01:33:00 in other words, is there any case in which onSurfaceCreated() gets called but onSurfaceChanged() isn't ? Nov 05 01:33:24 uuhm, is Void (uppercase v!) something java or android specific? Nov 05 01:33:30 as I've never encountered it. Nov 05 01:35:03 xroberx, I'm not an expert by far, but I belive onSurfaceChanged() is called when the screen orientation changes and judging from the name it might have some connection to fragments as well. Nov 05 01:35:38 Syzygy: thank you for your interest, but it has nothing to do with fragments Nov 05 01:36:44 I'm coming to the conclusion that having both functions is just a design flaw like many others Nov 05 01:39:46 that's always a possibility as well Nov 05 01:40:10 anyone have experience with the differences between: free version and paid version, separate apps, and in-app billing, single free version? Which freemium model do you think is better? Nov 05 01:40:14 I'm thinking of doing both Nov 05 01:40:29 having a free app with in-app billing, and also cloning it and selling an all-in-one paid version Nov 05 01:40:36 that has all features enabled by default Nov 05 01:40:44 how do i make use of the menu button in my activity? Nov 05 01:41:04 you create a menu in onCreate/onPrepareOptionsMenu Nov 05 01:41:18 tdignan: android.view.Menu? Nov 05 01:41:31 if the code runs on a device that doesn't have a menu button, it will show up as three dots in the actionbar Nov 05 01:41:34 yeah Nov 05 01:41:39 there's a guide on menus in the dev guide section Nov 05 01:41:47 nice, i was looking for that and couldnt find it Nov 05 01:41:54 sec Nov 05 01:42:08 http://developer.android.com/guide/topics/ui/menus.html Nov 05 01:42:11 thanks Nov 05 01:42:24 tdignan: I really prefer to have two versions, a free and a paid one. Basically because the free version usually has less features and users are not likely to rate it as high as the full version Nov 05 01:42:25 i don't usually navigate sites. I just google for every page I need Nov 05 01:42:54 xroberx: that's a good point. I agree free users tend to let their one stars flow freely Nov 05 01:43:12 tdignan: also if you put ads in the free versions, some users won't like the ads and will rate your app poorly Nov 05 01:43:23 i've decided on no ads for this already Nov 05 01:43:35 I'd only do an ad if I intended not to make a paid version Nov 05 01:43:54 the free version is an ad... for me, and the premium version :D Nov 05 01:44:06 tdignan: I used to think like you :) Nov 05 01:44:16 you put ads now? Nov 05 01:44:17 haha Nov 05 01:44:35 tdignan: yeah, because most users are cheap and are not willing to pay Nov 05 01:52:17 tdignan: testing... Nov 05 01:53:09 tdignan: menu works, and i forgot to set the checkbox to the current val Nov 05 01:56:31 tdignan: yep, all works in 4.x Nov 05 01:57:52 yeah, its forward compatible Nov 05 01:58:00 the actionbar just picks up the menu stuff Nov 05 02:12:02 tdignan: is there an intent i can create, to let the user add a google account to the device? Nov 05 02:12:21 tdignan: hmmm, actualy, do you need a google account linked to buy an app? Nov 05 02:13:50 1. i dont know 2. yes Nov 05 02:14:02 unless you roll your own app store :) Nov 05 02:14:10 or use a third party one Nov 05 02:14:20 i'm selling the app on the google play store Nov 05 02:14:31 so #1 will never happen Nov 05 02:15:52 tdignan: do you know about gridview_v7 support? Nov 05 02:19:00 gridview was added in api level 1? Nov 05 02:19:05 what is gridview_v6 Nov 05 02:19:09 v7* Nov 05 02:19:25 I've used a gridview before. That's about the extent of it. Nov 05 02:19:31 * clever looks Nov 05 02:19:40 tdignan: ah gridlayout, not view Nov 05 02:19:44 keep getting them mixed up Nov 05 02:19:45 oh ok, that makes sense Nov 05 02:19:50 yeah I heard gridlayout is good Nov 05 02:19:53 eclipse added it automaticaly Nov 05 02:19:58 now i cant build under ant Nov 05 02:20:05 and it messed up all the other dev systems Nov 05 02:20:07 oh, whats your error? Nov 05 02:20:21 /home/clever/android-sdk-linux/tools/ant/build.xml:569: Invalid file: /home/clever/workspace-android/gridlayout_v7/build.xml Nov 05 02:20:39 I'll try creating a project like this, Nov 05 02:20:59 it also put the support lib in my workspace, outside of the projects git repo Nov 05 02:21:10 so all other dev systems are broken, referencing a dir that doesnt exist Nov 05 02:21:35 how many dev systems? is this at a company Nov 05 02:21:42 just 3, 2 of them mine Nov 05 02:21:54 ive been fixing it by manualy copying it to the same path on each Nov 05 02:22:20 you might consider just doing: android create project -t<#> -p foo --package com.clever.app Nov 05 02:22:27 then import that instead Nov 05 02:22:38 see android list targets for -t Nov 05 02:23:12 tdignan: in my project dir or the gridlayout_v7 dir? Nov 05 02:23:32 you can probably fix your existing project if you cd there and do android update project -t -p . Nov 05 02:23:34 hmmm, build.xml is missing in the gridlayout dir Nov 05 02:23:44 is the gridlayout dir a library project? Nov 05 02:23:48 yeah Nov 05 02:23:52 get in there and do android update lib-project -p . -t Nov 05 02:24:37 yep, that did it Nov 05 02:26:42 tdignan: so i'm guessing, that eclipse bypasses build.xml? Nov 05 02:31:32 eclipse does not build with ant Nov 05 02:31:36 it has its own build system Nov 05 02:31:53 I mean, you can build with ant in eclipse. Nov 05 02:32:06 But that's not what it's typically doing when you're developing for Android the de-facto way. Nov 05 02:32:32 ah Nov 05 02:32:40 so that explains why it worked with the build.xml missing Nov 05 02:34:21 maybe it does use ant internally. I don't think it does, though. Nov 05 02:35:07 tdignan: i have had issues changing the build target, eclipse doesnt notice and keeps spewing errors Nov 05 02:35:12 have had to restart it Nov 05 02:35:42 yeah, if you have that issue just change it with android update project Nov 05 02:35:52 then highlight the project and click f5 Nov 05 02:36:14 also now eclipse has that integrated into the right click menu Nov 05 02:36:40 right click, android tools, fix project.properties Nov 05 02:36:52 ah, nice Nov 05 02:46:27 do I need to manage the lifecycle of a splash screen? Nov 05 02:47:11 or the main menu Nov 05 02:48:02 the easiest way to make splash screen is to stick an imageview in an activity and then use view.postDelayed() to fire off your main activity after a 1-2 sec delay Nov 05 02:48:05 that's all you need to do Nov 05 02:48:31 you will want to use the no history flag to start the next one Nov 05 02:48:44 so that when you hit the back button, you don't go back into the splash screen Nov 05 02:49:08 dont use a splashscreen Nov 05 02:49:11 those are the worst Nov 05 02:49:35 canadiancow, i'm doing an university course that requires me to use a splash screen for this game Nov 05 02:49:49 the worst Nov 05 02:50:21 tdignan, I've created a short video that should act as a splash screen and I've also created an asynchronousTask Nov 05 02:50:29 so that I can load things in the background Nov 05 02:50:36 although I'm not sure what things Nov 05 02:50:45 Syzygy: then it's time to tell your teacher that you have spoken to people with professional app development experience who have told you not to do that Nov 05 02:50:49 a video in a splash screen isn't a good idea Nov 05 02:50:56 I would neve rely so much on video in android Nov 05 02:51:01 never* Nov 05 02:51:11 I've been told (here) it's a good idea Nov 05 02:51:14 wrong! Nov 05 02:51:23 well, have fun appeasing your masters Nov 05 02:51:29 us free people will keep on livin' free Nov 05 02:51:38 but the video is so cool https://dl.dropbox.com/u/31690810/uni/Multimedia/Splashscreen.mp4 D: Nov 05 02:51:49 video should be optional Nov 05 02:51:57 no one intelligent told you a splash screen was a good idea Nov 05 02:52:23 I wasn't told the splash screen is a good idea, just that doing it as a video is a good idea Nov 05 02:52:51 when not dealing in objective facts, you will find diverse opinions Nov 05 02:52:56 also, god damn it, i got some chili form my pizza into my open wound on my hand Nov 05 02:53:17 could be worse. never touch your junk after eating jalapenos Nov 05 02:53:49 +1 Nov 05 02:54:04 so what would you recommend as a splash screen? not ignoring the fact that a splashscreen is reqired Nov 05 02:54:35 a textview Nov 05 02:54:45 is that animated? Nov 05 02:54:54 with the text: "This annoying screen is here because I like annoying users. And because I'm not sure you know what app this is." Nov 05 02:55:24 I feel insulted Nov 05 02:55:52 i'll stick to videos for now Nov 05 02:55:58 better to hear it now than to get it in your reviews. i'm pretty sure canadiancow uses google play Nov 05 02:56:17 :D Nov 05 02:56:27 tdignan: note where this is a university project, apparently not something anyone is expected to ever actually run Nov 05 02:56:33 'This app is blue. I like green. One-star" Nov 05 02:56:45 shouldnt university teach you how to do things intelligently? Nov 05 02:56:49 Leeds: most apps on the market wouldn't even get a D as a uni project. Nov 05 02:56:56 he should publish it if it gets anything over C Nov 05 02:57:09 Leeds, we plan to refine it after the course is done and then publish it. Nov 05 02:57:10 tdignan: and most uni projects wouldn't even get 2.5* in the market... goes both ways :) Nov 05 02:57:29 Syzygy: then start now by refining away the splash Nov 05 02:57:52 i do not plan to get bad marks Nov 05 02:58:00 plus splash screens for games are somewhat common Nov 05 02:58:06 yes, they are Nov 05 02:58:25 blame that on the industry, but I'm still doing it as well Nov 05 02:59:28 usps charges shipping to order stamps... sigh Nov 05 02:59:42 of all the places i expect not to get gouged on shipping Nov 05 02:59:51 how can i have an on/off switch in my notification, much like the WiFi on/off switch in the notification bar/drawer **** ENDING LOGGING AT Mon Nov 05 02:59:59 2012