**** BEGIN LOGGING AT Thu Nov 01 02:59:58 2012 Nov 01 03:00:50 pop pop get a bugfix? Nov 01 03:01:10 heh. kinda busy atm Nov 01 03:01:38 but I could slap it into a plain java project and write some unit tests for it (I didn't do that back then) Nov 01 03:01:55 I thought I'd lost that code. Nov 01 03:03:35 yeah. Ive never come across a base64 lib that was deemed to be browser compatible. i mean im sure they are out there, i just kind of assumed that since you wrote yours for gwt it would be, and useable in gwt too. Nov 01 03:04:05 it works great for ASCII, heh. Nov 01 03:05:07 Im embarrased to say I know very little about things like character encodings. Nov 01 03:11:38 does anyone try to enforce an mvp view in android? Nov 01 03:11:52 s/view/pattern Nov 01 03:20:26 mvp? Nov 01 03:20:45 i think MVC doesn't exactly fit the way we work in android. Because, the interactivity in views is tightly coupled to the controller (which would be an activity, or a fragment) Nov 01 03:20:54 it's more like MC Nov 01 03:21:05 where C is both the view and the controller, in one. Nov 01 03:25:39 versus a webapp, where you don't have to care about handling button clicks, because the client browser does that for you, and it never enters into your architectural considerations. Nov 01 03:33:32 I favour mvp, at least on gwt. Ive just been playing around with an mvp pattern on android that seems to work. I agree with what you said tdignan. Nov 01 03:35:32 Not sure if I think the default android pattern is the best approach tho. Im investigating it is I might ask my engs follow it. Nov 01 03:37:15 s/is/in case Nov 01 03:44:05 Fragments are basically the end to the madness Nov 01 03:47:44 Hello Nov 01 03:48:05 I want to use WebView and file input with accept="image/*;capture=camera". Are there any useful documents? Nov 01 03:48:59 Hello Nov 01 03:55:03 hi Nov 01 03:56:52 Hello Nov 01 03:56:56 How am i supposed to solve app testing issue? Nov 01 03:57:12 I want to use WebView and file input with accept="image/*;capture=camera". Are there any useful documents? Nov 01 03:58:18 Hello Nov 01 03:58:23 i mean, i cannot buy couple smartphones of each manufacturer, so how can I be sure that app will work properly? Nov 01 03:59:49 I see. If you can use SDK on some phones, you can use it. Nov 01 03:59:58 pharell emulator + goto best buy Nov 01 04:00:27 what do you mean by saiyng 'goto best buy'? Nov 01 04:01:20 lasserix: what do you mean by saiyng 'goto best buy'? Nov 01 04:03:32 pharell: i mean go to best buy with an sd card and try your app out on as many phones as you can Nov 01 04:03:36 just one way to do it Nov 01 04:04:03 if you have resources there are some companies that will do testing for you too Nov 01 04:04:05 anyways i gota run Nov 01 04:04:55 do a massive beta test Nov 01 04:05:16 get people to run it on as many hardware and android release combinations as possible Nov 01 04:05:30 that is the best way to test it for sure Nov 01 04:05:41 just let it run out in the wild and get crash reports Nov 01 04:05:51 you can get some idea with the emulator Nov 01 04:06:11 but honestly, you won't know until it crashes somewhere Nov 01 04:06:15 in the wild Nov 01 04:07:11 Hello Nov 01 04:07:31 yes? Nov 01 04:07:48 A question? Or just coming to say hi? ;) Nov 01 04:09:59 I have a question Nov 01 04:10:08 I want to use WebView and file input with accept="image/*;capture=camera". Are there any useful documents? Nov 01 04:12:07 you might find this useful: http://mobile.tutsplus.com/tutorials/android/image-display-and-interaction-with-android-webviews/ Nov 01 04:12:21 and of course: http://developer.android.com/guide/webapps/webview.html Nov 01 04:12:32 http://developer.android.com/guide/webapps/best-practices.html Nov 01 04:12:35 good luck Nov 01 04:12:44 http://developer.android.com/reference/android/webkit/WebView.html Nov 01 04:14:56 how can I measure app CPU requirements? Nov 01 04:15:40 be more specific Nov 01 04:16:02 I'm sorry. It was not for my answer. Nov 01 04:16:48 mh35: then I am afriad I do not know any good reference for you Nov 01 04:16:55 when you can't RTFM, then WTFM :) Nov 01 04:17:20 (write the fine manual) Nov 01 04:19:09 pharell: you can profile apps with traceview Nov 01 04:20:28 http://developer.android.com/reference/android/webkit/WebView.html#loadUrl%28java.lang.String,%20java.util.Map%3Cjava.lang.String,%20java.lang.String%3E%29 <--- Map additionalHttpHeaders Nov 01 04:20:50 What I want is I want to use WebView, use in web page, and the input tag boots camera. Nov 01 04:21:33 whoops, was in #android for like 2 hours trying to figure out why people were asking all these silly questions about which phone is best and which update is out for that Nov 01 04:21:47 I'm using Android 4.0.4(API level is 15). Nov 01 04:23:06 mh35: interesting Nov 01 04:23:29 mh35: this thread says it works on 3.0+ but it doesn't indicate whether it works with your suggested method Nov 01 04:23:36 http://stackoverflow.com/questions/7387978/access-from-the-browser-to-camera Nov 01 04:24:23 In browser, it worked. Nov 01 04:25:17 aahhhh! Nov 01 04:25:22 now we have the core issue. Nov 01 04:27:23 I want to share the sample, but I don't know where to upload. Nov 01 04:28:10 well, I get the idea. It works in the browser, but not in a webview. I already found tons of stuff on it. Nov 01 04:28:32 The next question would have to be: does it really need to work in a webview, or are you overlooking a feature you could otherwise use? Nov 01 04:30:10 has anyone worked with voice recognition before? is it possible to send voice sample to be recognized (without the active microphone interface) ? Nov 01 04:31:04 you don't even need to send over the network. just compile this wit the ndk. http://cmusphinx.sourceforge.net/2011/05/building-pocketsphinx-on-android/ Nov 01 04:31:41 tdignan: have you actually used sphinx yourself? Nov 01 04:31:45 no Nov 01 04:32:09 although it's made by carnegie mellon. who are you going to trust, me or them? Nov 01 04:33:37 i'm on windows and those instructions seem to be geared at *nix.. Nov 01 04:34:55 Oh, I found the solution! Nov 01 04:35:17 what is it? Nov 01 04:35:30 regedit: install cygwin and you're very unix like Nov 01 04:36:08 Any thoughts on why some drawable images assigned to an ImageView would show up on my Kindle Fire, but not my Droid X2? Nov 01 04:36:47 capture type! Nov 01 04:36:53 Thank you very much! Nov 01 04:37:47 what capture type did you need? Nov 01 04:39:40 hi. are smartphone apps executable on tablets as well? i mean when both tablet and smartphone are android driven Nov 01 04:40:53 pharell: unless the developer has explicitly blocked it for some reason, pretty much all Android apps run on all screen sizes Nov 01 04:41:35 images and UI automatically scale where needed Nov 01 04:42:03 thx Leeds Nov 01 04:48:18 tdignan: BTW Jelly Bean also has it all local, no need for sphinx. its a terrible shame they dont expose the speech facilities more, so much opportunity... Nov 01 04:48:40 oh, that's awesome Nov 01 04:49:01 that is - android SDK should be exposing speech facilities more Nov 01 04:49:36 So, any thoughts on why these Drawables are showing up on my Kindle Fire, but not my Droid X2? :( Nov 01 04:49:56 Got a deadline in a few hours to submit this apk, any help would be hugely appreciated Nov 01 04:50:23 doppio: in what way "not showing up"? Nov 01 04:50:36 you draw them and they're blank, there's an error saying they can't be found? Nov 01 04:50:51 Leeds, I draw them and they're blank Nov 01 04:51:04 they're just images? Nov 01 04:51:20 A couple of them are backgrounds for dialog boxes, and a couple are in these ImageViews whose Drawables I swap out every few seconds Nov 01 04:51:34 In the latter case, some of the drawables show up, but some don't Nov 01 04:51:35 * g00s shrugs … Kindle isn't Android :) Nov 01 04:51:38 nothing of interest in the logs? Nov 01 04:51:43 And I just get the ImageView's black background Nov 01 04:51:57 No, I log a message when I swap the drawables and it's doing it at the right time Nov 01 04:52:05 And no errors Nov 01 04:52:13 odd Nov 01 04:52:28 g00s: then read the question as "why aren't my images showing on a Droid X2?" Nov 01 04:52:41 oh, didnt see that Nov 01 04:52:51 Kindle Fier is Android Nov 01 04:52:53 Fire* Nov 01 04:53:05 did Jeff say that ? Nov 01 04:53:17 Android /based/ Nov 01 04:53:26 doesn't pass CTS Nov 01 04:53:30 for the purpose of a simple app, I'd say Fire is Android enough... but it doesn't matter here Nov 01 04:54:18 doppio: are the images particularly large? presumably you've cleaned cleaned cleaned your project... Nov 01 04:55:17 Leeds, They're not particularly large. Some significantly larger ones are drawn, no problem Nov 01 04:57:59 very odd... Nov 01 04:58:18 Indeed :( Trying cleaning once more Nov 01 04:58:34 Otherwise I hope I can Google a solution before the deadline in 2 hours :D Nov 01 05:03:22 What the Nov 01 05:03:24 does anyone know what commonsware's publisher id is on the android market? i recall downloading his apps two years ago, but I don't see any now. did he take all of them down, or something? Nov 01 05:03:35 Now those drawables are showing up, but some other drawables that have been visible for months are invisible Nov 01 05:03:49 There's something funky here... Nov 01 05:07:54 how can I pass some information to onCreate() of an activity? Nov 01 05:08:07 RustyShackleford: put the information in the intent Nov 01 05:09:06 how do I get the intent object? Nov 01 05:09:36 getIntent() Nov 01 05:09:36 ah nvm Nov 01 05:09:39 shockingly enough Nov 01 05:31:53 Android Source (Sample code) find of the day: https://github.com/android/platform_development/blob/master/samples/Support4Demos/src/com/example/android/supportv4/app/FragmentTabsPager.java#L166 Nov 01 05:32:58 thats been there for a while Nov 01 05:33:18 its hacks all the way down Nov 01 05:33:26 yeah, but did not notice it until today. As well like how Dianne named the commit: Dang you, TabHost. Nov 01 05:33:35 yeah.. sadly :( Nov 01 05:35:04 Any nice TabHost alternative? Nov 01 05:35:18 to easily have tabs created with Fragments? Nov 01 05:36:05 And do not tell me the ones in the ActionBar. Nov 01 05:36:18 (Well, I would use them, but company does not want to.. stupid designers) Nov 01 05:37:00 pboos: were you the victim of ios design dictating the android app ? Nov 01 05:37:12 g00s: yes, still am :( Nov 01 05:37:16 oh ! Nov 01 05:37:18 bwahaha Nov 01 05:37:49 g00s: but if I am lucky, then the next project I have will be MINE. so i will be telling the designer that what he is doing is bullshit :D Nov 01 05:39:17 pboos: did the client say so, your designer say so, or your boss ? Nov 01 05:39:23 even the actionbarsherlock sample uses TabHost Nov 01 05:39:50 pboos: well, client in some way.. we have company internal projects and one guy is in charge. so he says how he wants it.. and designers have more to say than devs :( Nov 01 05:40:07 arg.. why did i write my name :D meant g00s Nov 01 05:40:28 g00s: but i hope to be able to change that :) so we can make more quality android apps.. instead of android apps that look like ios apps.. Nov 01 05:44:48 Hello Wcwey onw Nov 01 05:55:48 Hmm, apparently Android is getting mad at me for using too many drawables in this "cut scene" sequence I'm hacking together Nov 01 05:55:54 I'm getting a " java.lang.OutOfMemoryError: bitmap size exceeds VM budget" Nov 01 05:56:02 \o/ Nov 01 05:56:11 that error is a right of passage Nov 01 05:56:11 Any one know how I can recycle a drawable when I'm done with it? Nov 01 05:56:14 Oh no Nov 01 05:56:26 I don't like rites of passage Nov 01 05:56:45 Especially because I hope to depart from Android code once and for all after I fix this bug Nov 01 05:56:47 And move to Unity Nov 01 05:58:50 Oh my, apparently my Google-fu broke or something, I now see that there are billions of results for it Nov 01 05:59:29 doppio: bitmap.recycle() ? Nov 01 05:59:42 and making sure it is not referenced from anywhere anymore. Nov 01 06:00:25 Hmm, if I just have a Drawable, can I cast to a BitmapDrawable and destroy its bitmap from there? Nov 01 06:01:27 Trying it now Nov 01 06:06:07 doppio: so when I asked if there were any errors... Nov 01 06:06:31 that was the one I was looking for. Nov 01 06:08:52 Leeds, Yeah. :( I'm silly and was looking at the wrong logcat window Nov 01 06:08:56 Very long day... :/ Nov 01 06:12:59 Is it necessary to call System.gc() after I recycle a bitmap? Nov 01 06:13:14 That is, for the memory to actually be freed immediately? Nov 01 06:14:24 it gets removed pretty quickly if you recycle/remove refs, i don't think calling the GC explicitly is good in like 99% of cases Nov 01 06:50:48 what's wrong with this SQLite command? Nov 01 06:51:29 SELECT id, DISTINCT station_name .... Nov 01 06:51:50 how do I specify that I want all rows with a distinct station_name? Nov 01 06:54:16 RustyShackleford, select and distinct should be together Nov 01 06:54:34 SELECT DISTINCT id, station_name ... Nov 01 06:54:35 RustyShackleford, http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#query%28boolean,%20java.lang.String,%20java.lang.String%5B%5D,%20java.lang.String,%20java.lang.String%5B%5D,%20java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String%29 Nov 01 06:59:05 alex_PP: every row in this database is distinct. I want all rows which have the same value for train_line, but distinct values for station_name Nov 01 06:59:13 Hi every body, Nov 01 06:59:19 I am from Afghanistan, Nov 01 06:59:29 and Working on Android Application Development, Nov 01 06:59:49 Most of people are using Android Smart Phones and Tablets Nov 01 07:00:17 They are complaining of not having Pashto(Afghanistan's National Language) on their devices, Nov 01 07:00:25 RustyShackleford, see GROUP BY Nov 01 07:00:37 could you please help me out to provide Pashto Support for Android Devices? Nov 01 07:01:17 baheer: That is a lot of work most likely. Are you familiar with android development? Nov 01 07:03:22 baheer: i would reccomend filing an issue on b.android.com Nov 01 07:03:42 baheer: I don't mean to offend you, but I was unaware the Afghanistan had it's own language Nov 01 07:03:54 do neighboring countries speak Pashto as well? Nov 01 07:04:11 No, Nov 01 07:04:15 once that is complete, let your friends know about it so they can star it. the more its is starred, the more attention it should get Nov 01 07:05:04 baheer: also, the googlers are usually more active here 9am-5pm PST Nov 01 07:05:14 so , the right people won't see your request Nov 01 07:05:43 so, how can I directly contact Google for this issue, Nov 01 07:05:57 This will help them out in their marketing, Nov 01 07:06:50 b.android.com Nov 01 07:06:59 Pashto is written right to left. That makes my brain hurt Nov 01 07:08:30 Yes, Nov 01 07:08:41 it is mostly like Arabic Nov 01 07:09:10 but We have 7 more characters which are obtained from the Arabic original characters, Nov 01 07:09:17 baheer: was english hard to learn because you write it in the opposite direction? Nov 01 07:09:56 Opposite?how Nov 01 07:10:25 english is written this way ----> while pashto is written this way <---- Nov 01 07:10:29 correct? Nov 01 07:10:45 Yes Nov 01 07:14:47 yaw siht nettirw si othsap Nov 01 07:16:25 baheer, call me old fashioned - but i prefer english than my native language when it comes to the it stuff. my native language is full of crazy ambiguous it terms Nov 01 07:20:08 Sculptor, what language would that be? Nov 01 07:20:40 You should try IT in Afrikaans - we just make up words in these failed attempts to get something that sounds right. Nov 01 07:21:21 I wish I could speak a language other than English Nov 01 07:21:23 serbian, of course Nov 01 07:25:06 Yes, true, Nov 01 07:25:51 but the customers can't speak english, Nov 01 07:26:15 As a Developer we should provide and make the interfaces easy to use it. Nov 01 07:28:07 baheer: what language do afghanis use their android phones in if Pashto is not supported? Nov 01 07:28:39 rule of thumb: user is stupid and lazy Nov 01 07:28:41 english? Nov 01 07:28:48 English of course, but they use it without knowing what is written their? Nov 01 07:29:01 that sounds awful Nov 01 07:29:54 what about when using a PC? Does Windows support Pashto? Nov 01 07:30:33 yes Nov 01 07:30:33 They use it like a braille device. Nov 01 07:30:51 Yes, Windows has Pashto Support, Nov 01 07:31:10 at least they can type Pashto on Windows, Nov 01 07:31:19 if the platform base is English, Nov 01 07:31:25 windows supports both pashto and dari Nov 01 07:31:34 exactly, Nov 01 07:38:34 I have problems with generated keys by keytool Nov 01 07:38:39 how do I reset it Nov 01 07:40:10 Windows apparently has incredible support for many languages Nov 01 07:40:23 g00s: that it does Nov 01 07:41:01 g00s: even for local dialects spoken by a small percentage of the French population for instance Nov 01 07:41:32 they don't support all languages, though Nov 01 07:41:48 can't we all just agree on one language? Nov 01 07:42:06 say, http://en.wikipedia.org/wiki/Silbo_Gomero_language Nov 01 07:42:41 my dog hopes w8 supports the Canis lupus familiaris dialect Nov 01 07:43:09 "The language is a whistled form of a dialect of Spanish" Nov 01 07:43:12 wat Nov 01 07:44:37 yes, https://www.youtube.com/watch?v=qlZh9I1pxj0 Nov 01 07:45:52 thats why they call it the Canary Islands Nov 01 07:46:27 this is awesome Nov 01 07:46:50 R2D2 on steroids Nov 01 07:47:14 was this just for yelling across a valley, or was this spoken conversationally? Nov 01 07:48:24 guess it's used for long distance communication - just like you guessed Nov 01 07:51:08 where did you hear about this? Nov 01 07:51:26 the interweb Nov 01 07:51:54 there are more http://en.wikipedia.org/wiki/Whistled_language Nov 01 08:06:21 ok, battery monitor widget. i'm using 32x32 icnos to show a battery level. one icon is ~ 800byte .png. should i use 100 icons or use one and render battery level in code Nov 01 08:10:17 sounds like a job for canvas Nov 01 08:10:32 although you would only need 32 icons... Nov 01 08:11:11 the disk size of your PNG files hardly matters Nov 01 08:13:04 32 icons? Nov 01 08:13:10 romainguy: did you work on the new camera app w/Photo Sphere ? Nov 01 08:13:38 i thought you were just framework, but it seems like the kind of stuff you would like doing too :) Nov 01 08:40:41 is version of android for "tablet PC" same as for smartphones ? the difference only drivers ? Nov 01 08:45:16 whats a tablet PC Nov 01 08:46:00 like iPod Nov 01 08:46:57 Ravenheart its a pc with bill gates in it Nov 01 08:47:06 his ideas his personality his design tatste Nov 01 08:48:02 its "tablet computer" Nov 01 08:48:07 tablets have a wide range of resolutions and screen sizes Nov 01 08:48:16 that pretty much all you have to adjust for Nov 01 08:48:17 isnt "PC" and "computer" are same ? Nov 01 08:48:30 Anyone got have ZipEntry knowledge? Nov 01 08:48:38 Its a comptuer just that its more personal Nov 01 08:48:47 or else they would have to call it a distant computer Nov 01 08:48:52 got a second* + have zipentry knowledge Nov 01 08:50:14 Well, for anyone that picks this up: I am adding files to a new zipfile (A), and also copying the contents of another zipfile (B), into the (A) zipfile Nov 01 08:51:19 And when copying the contents of zip (B) into zip (A), it wont work with subfolders, only files on root Nov 01 08:51:54 I was extract zip (B) to sdcard, copying files into raw folders , then creating zip (A), but the addFilesToZip method seems more relasitic Nov 01 08:54:11 Im using a well written method found @(http://stackoverflow.com/questions/9300115/java-appending-files-into-a-zip/9305091#9305091) but, again is not working when the input Zip, has subfolders in it Nov 01 08:57:02 what exactly is Dalvik and how it's related to Android programming? Nov 01 08:57:38 tis a virtual machine Nov 01 08:57:56 a machine that lives in place where i call the matrix with morpheous and trinity and some say NEO Nov 01 08:58:05 @yarr Nov 01 08:58:34 da fu*@# what happaend to lambdabot Nov 01 08:59:09 sorry I meant the Dalvik cache. Is it the same? Nov 01 08:59:35 well i think it lives with the architext Nov 01 08:59:40 architect Nov 01 09:00:11 docvile: try using ZipFile, it might be easier, too... Nov 01 09:00:31 oh never mind. It's read-only Nov 01 09:01:06 Thanks atleast Nov 01 09:01:10 oh sweet antlr v4 book coming soon, which means antlr v4 is coming soon :) Nov 01 09:01:20 docvile: so anyway when you say "not working" what do you mean? Nov 01 09:01:22 wonder if this version will work better with android Nov 01 09:02:02 When I im adding the contents from zip (B) and it only has files on the root of the zip, it adds the contents to zip (A) successfully Nov 01 09:02:52 When zip (B) has children sub-folders, Im getting an error in logcat, related to size-mismatch, and then has an issue with the putNextEntry Nov 01 09:03:02 give me 1 moment and ill be exact Nov 01 09:03:32 * alankila wonders if files in zip have ordering constraints Nov 01 09:03:48 such as, does the directory entry foo/ need to occur before any files foo/bar Nov 01 09:03:48 and its not like i dont understand whats happening in the code, the previous method of (unzip, add to unzipped, rezip) worked fine, but im trying to not double the SDcard space needed Nov 01 09:04:37 I understand that alankila, but as far as i can understand, the code is written correctly to add folders to get to final path Nov 01 09:05:19 again the source im using for the addFilesToZip is @(http://stackoverflow.com/questions/9300115/java-appending-files-into-a-zip/9305091#9305091) Nov 01 09:08:28 * alankila is not sure zips even have those directory entries. Maybe they are fiction constructed by zipinputstream Nov 01 09:09:23 In theory, I should have no problem opening a stream to both zips, and instead of extracting to sdcard, just add each entry to the zip, the same way I would zipping from sdcard, correct? Nov 01 09:09:35 apparently the directories are real. Hmm. I guess zip specificaiton allows them, then. Nov 01 09:09:54 im getting logcat now, 1sec Nov 01 09:09:58 JakeWharton Nov 01 09:10:12 wow, evancharlton, gratz on being the op =) Nov 01 09:10:21 JakeWharton, is there anyway to change Menu Icons? Nov 01 09:12:31 http://pastebin.com/W7hCcMSM Nov 01 09:12:55 readAndVerifyDataDescriptor errors, with Size mismatch Nov 01 09:13:26 and it was after reading the first subfolders file, trying to copy diretly into other zipfile, (just a txt file) Nov 01 09:14:06 So... why would ((SherlockFragmentActivity) getActivity()).getSupportMenuInflater().inflate(R.menu.album_fragment_menu, menu); inside of a fragment cause a completely different menu, that's actually 2 menus combined to be inflated? Nov 01 09:14:33 if i dont try to copy files, and just write to log each file its navigating through the zip, it only gets threw one, so im thinking there is an issue with my for statement Nov 01 09:17:18 docvile: try adding zin.closeEntry() Nov 01 09:18:33 I don't think it should be necessary, but ... Nov 01 09:21:12 also it might be wrong to use the ZipEntry you get from inputstream directly at the outputstream. Perhaps a clone should be made. Nov 01 09:21:28 it's not obvious to me if you are allowed to do this. Nov 01 09:22:22 This (http://www.coderanch.com/t/275390//java/ZipException-invalid-entry-compressed-size) says something similar about the correct use of the inputstream and zipentry, but im not sure if its directly related to my problem, but im getting there Nov 01 09:24:42 the library determines corruption occurring at the inputstream here. I guess it thinks that the central directory data does not match with the zipentry data. My guess is that it is because you use the same zipentry at the outputstream, presently. Nov 01 09:25:56 This process causes recompression of the zipentry, and it might compress it at different size Nov 01 09:26:25 hence you get "size mismatch" exception when the inputstream validates it again Nov 01 09:26:45 though I have no fucking idea why it validates it after the fact. Nov 01 09:27:05 android java is not oracle java. These things are reimplementations. Nov 01 09:29:48 anyway just a guess. I have no idea why this ZipInputStream class goes through all these machinations in order to do its work Nov 01 09:30:00 well, for what its worth, when modifying the 2nd part of the code on the stackoverflow page, to just show the output of each file being read in the zip (B), i get this error about navigating entries Nov 01 09:30:01 http://pastebin.com/6cDbZ516 Nov 01 09:30:39 you didn't write anything in the output zip then? Nov 01 09:30:53 note that the exception is about zipoutputstream Nov 01 09:30:54 the code to add entries to the zip (A) works fine, the code to copy from zip (B) to zip (A) errors, Nov 01 09:31:09 anyway I think I have solved your problem. Why don't you try the solution. Nov 01 09:31:13 so ive changed it to just show that last pastebin, to let me see if its navigating through all entries Nov 01 09:31:32 To recap, the problem is reusing the ZipEntry you got from input stream at the output stream. Nov 01 09:31:39 you need to make a clone of it Nov 01 09:31:49 your solution : create a new ZipEntry with the stream of what is being read? Nov 01 09:32:23 just don't do zos.putNextEntry(zin.getNextEntry()). Try ZipEntry clone = (ZipEntry) ze.clone(); or something Nov 01 09:33:03 and jesus christ, when is java going to give us Cloneable Nov 01 09:34:50 [out.putNextEntry(new ZipEntry(ze));] instead of [out.putNextEntry(ze);] ? Nov 01 09:34:58 if that works, yes Nov 01 09:35:06 * alankila did not check what methods there are to make clones Nov 01 09:35:12 :giving it a shot now: Nov 01 09:35:28 yes, this is cloning constructor Nov 01 09:35:29 good Nov 01 09:36:00 wow. Nov 01 09:36:05 Ive spent days, and that worked. Nov 01 09:36:19 im reluctant to come in here, Thank you alankila - gave me some hope Nov 01 09:36:57 You sir, for what its worth, just made my week Nov 01 09:37:08 of fuck Cloneable is a tagging interface. So that's why we don't have Cloneable Nov 01 09:37:46 well, I'm happy it worked out for you. Nov 01 09:38:41 i really cant beleive thats all it was. fml Nov 01 09:38:55 you should have taken a look at android source code for ZipInputStream Nov 01 09:39:20 you would have seen that it validates the sizes when the inputstream entry is closed, and if you look at zipoutputstream, it overwrites these values Nov 01 09:39:34 so it works out that it complains about a size mismatch Nov 01 09:40:14 if it works with oracle java, though, then it's a bug in android that should probably be fixed Nov 01 09:40:21 there's this sort of things here and there Nov 01 09:40:34 im still a virgin, im still trying to get to 2nd base over here Nov 01 09:41:01 (i dont know java worth a shit yet) Nov 01 09:41:19 just enough to get past complete idiotness Nov 01 09:42:19 so while ive read the developer pages on zis and zos, i dont have a fucking clue what half of it means, in relation to how i understand the rules of java Nov 01 09:42:48 there are no rules of java. Or the language is basically C with object extensions and no pointers (memory management instead) Nov 01 09:43:02 everything else you might call java is more properly termed the class library. Nov 01 09:43:35 I'm happy to say that oracle jdk has a quite high quality class library by this point. I suspect it is better implementation-wise than android's class library. Nov 01 09:43:45 im a longtime vb.net guy -- i understand some C, just dont know the ruling of the syntax, same for java, i understand it, but dont know the syntax rules, along with better OOP technique Nov 01 09:45:53 Hm. Okay, well, you should familiarize yourself with the C family of languages, which I see java being part of, personally. All the most popular languages are C based. Nov 01 09:46:06 Well, heres another one : The list of files im throwing at (addToZip) is actually just the dir.listFiles(), I actually need to grab only certain files i want, and already have set as array, but I havent yet tackled the ArrayList, adding to a new List of Files Nov 01 09:46:07 alankila: i really wonder what will happen there; will oracle keep diverging ? Nov 01 09:46:26 thanks, that was actually what advice ive been looking for (learning the basics behind C) rather than just trying to learn androids use of java Nov 01 09:46:28 g00s: it's up to the schmucks at google to fix this trainwreck Nov 01 09:46:55 oracle is continuing that lawsuit, too Nov 01 09:47:45 oh? Well, they sure love their ownership of java language. I personally would be delighted to see libluni thrown out and the GPL's java imported in its place, but first we must probably hire hitmen to kill the oracle execs and leave some kind of threatening message like "as long as you fight against java, you fight for your life" Nov 01 09:48:14 they are still going forward with jme also :| Nov 01 09:48:24 well that is just utterly hopeless Nov 01 09:49:08 anyway patent/ownership dispute resolution russian style would probably be a new thing in american business climate Nov 01 09:49:44 it will start to get weird when i can't use java libraries because they require java 7 or something Nov 01 09:50:45 yeah, i wish they would just license the crap from oracle or something Nov 01 09:50:45 that day is surely coming. Android really needs to get the its dalvik compiler updated to handle 7's version and extensions. I'm all 7 myself, except of course for android Nov 01 09:50:58 I take every chance I can get to get rid of the shit I have to write between < and > Nov 01 09:51:31 maybe they will just toss it all and replace it with dart or go Nov 01 09:51:32 :D Nov 01 09:51:35 and in fact I'd prefer to leave even <> out Nov 01 09:51:52 well, given how clunky the android programming experience is, I can't say I'd blame them for such a choice Nov 01 09:52:32 but if you do a next-gen android development thing you have to pick your poison very carefully. It's not easy to make a world-class mobile applications programming framework, and I would expect the end result to still run on dalvik Nov 01 09:52:58 there's just too many man-years of engineering effort on it already. Everything works with it. I'd be surprised if they could replace it all in one step with something on top of the C++ stuff Nov 01 09:53:01 also, the usual issue - goog could decide to update something on the next release, but again we would be supporting old stuff for … a long time Nov 01 09:53:14 of course, but nobody can fix that Nov 01 09:53:56 so it seems things are out of control Nov 01 09:54:09 wouldn't particularly surprise me to see them just 'fork' Java Nov 01 09:54:28 that would suck tho; i use a bunch of regular java libraries :| Nov 01 09:54:36 Leeds: I would, because you really want to benefit from the wider java ecosystem Nov 01 09:54:55 if anything, the push should be towards complaince with java 7 such that as many libraries as humanly possible could be just dumped on android and used Nov 01 09:55:00 at this point the Android ecosystem is perfectly capable of standing on its own feet Nov 01 09:55:23 I don't necessarily mean fork incompatibly, but, say, pick and choose some stuff from J7 without trying to be full compatible Nov 01 09:55:29 no. It's just silly to throw away the 15 years or so of java library work Nov 01 09:55:47 That is not a path that makes sense either. I doubt the java 7 changes are very invasive. Nov 01 09:56:26 there's class library crap of course, so someone would have to update that. I am not sure how much new stuff there is, though. Nov 01 09:56:36 point is that - particularly given that Google doesn't get along with the 'owner' of Java - it wouldn't be a bad thing for them to stake out some independence Nov 01 09:56:49 but libraries are not so likely to use that, it's the compiler support (and runtime support, if required) that is more important Nov 01 09:57:13 well, whatever they decide to do, i'm sure we'll be the last to know :| Nov 01 09:57:27 yes it would. You really don't want to engineer a pointless incompatibility that makes android an outsider citizen. :-/ Nov 01 09:58:26 it's outsider enough as is. The goal should imho definitely be towards full compatibility. Nov 01 09:58:40 yeah, i would be happier with that Nov 01 09:58:48 java 8 has some useful features Nov 01 09:58:51 and by full I mean bug-for-bug. Nov 01 09:59:17 I read that as bug for hug Nov 01 09:59:40 you can definitely get bugs if you hug android Nov 01 09:59:43 hugs for bugs? it could be a thing. Nov 01 10:00:00 again, easiest thing to do would be to throw libluni out and import the goddamn GPL java instead, but we can't fix that until oracle exces wind up in dark alleys with fingertips cut off, the way this is going Nov 01 10:11:58 http://news.cnet.com/8301-1035_3-57543397-94/defense-department-drops-exclusive-contract-for-blackberry/ Nov 01 10:12:09 saw that yesterday Nov 01 10:12:46 i saw it before you were born Nov 01 10:15:09 i have developed a alarm which receives BOOT_COMPLETED broadcast and its working fine when i broadcast BOOT_COMPLETED from adb .... but on device the alarm never rings after the restart ..I am using samsung galaxy s ... what could be the problem Nov 01 10:16:33 one would think mit press would have ebooks, they seem like they would be a progressive bunch Nov 01 10:16:52 this looks interesting http://mitpress.mit.edu/books/building-mobile-experiences-0 Nov 01 10:18:06 =o http://mitpress-ebooks.mit.edu/ Nov 01 10:18:25 digitalfallacy: did you request the permission for alarm? Nov 01 10:18:41 did you run the app before rebooting? Nov 01 10:18:44 android.permissions.RECEIVES_BOOT_COMPLETE or something similar Nov 01 10:19:58 Mavrik: yes , i have android.permission.RECEIVE_BOOT_COMPLETED Nov 01 10:20:32 i dont know whats happening .. its running all good when i broadcast from adb Nov 01 10:21:46 tdignan: :( dont see that book, still trying to figure out if there is drm or whatnot Nov 01 10:22:20 looks like their safari or something Nov 01 10:32:41 alankila: thanks again guy Nov 01 11:09:50 digitalfallacy, installLocation="auto" ? Nov 01 11:10:43 not sure if that affects the app itself, or only if it is actually moved "external storage". Nov 01 11:18:24 hi. can i run or "write a working code" a mix of services and activities in the same application? Nov 01 11:20:20 um... yes, of course you can mix activities and services in a single application Nov 01 11:25:25 Leeds, thanks. i thought it cannot be applied Nov 01 11:25:41 how would it possibly make sense otherwise? Nov 01 11:26:13 Leeds, cos what i know the services are much like the linux daemons Nov 01 11:26:34 I have a shameless plug for an open source flashcard app with working sqlite database. Nov 01 11:26:40 https://github.com/abettisworth/flashcards Nov 01 11:26:50 generally they don't have activity like interfaces Nov 01 11:29:06 how do i boot out of an unencrypted file system. i get the error saying "ENCRYPTION UNSUCCESSFUL" Nov 01 11:44:11 Hi everyone, i have a question: why this piece of code does'n work? I had an error on the last line... http://codetidy.com/3887/ Nov 01 11:45:17 hey folks Nov 01 11:45:53 quick question - I have a gridview that's being fed by an adapter. The views that are being fed to the gridview are a custom view that extends FrameLayout. Nov 01 11:46:15 It was an imageview before, and that worked fine, however now I need a text overlay on top of the images, hence the framelayout Nov 01 11:46:57 But, surprisingly enough (not at all) the thing appears blank, as I haven't actually "set up" the frame layout. My class has all the information, the imageview and the text... but how would I go about instantiating it? Nov 01 11:47:30 how can i choose the keyboard layout for a bluetooth keyboard? Nov 01 12:42:31 Shameless plug for an open source flashcard app: Nov 01 12:42:31 GITHUB: https://github.com/abettisworth/flashcards Nov 01 12:42:57 the code is there for you to browse/forage/contribute Nov 01 12:48:59 hi, why is AccountManager.addAccountExplicitly throwing SecurityException (caller uid is difrerent than authenticator's uid)? @ http://developer.android.com/training/id-auth/custom_auth.html Nov 01 12:51:17 lets say the back stack has 3 activitys on it, a, b, c Nov 01 12:51:31 is there a way for c to send the user directly back to a, and delete b/c? Nov 01 13:09:34 is there a way to choose the activity to be started by an NFC tag with an Android Application Record? Nov 01 13:15:56 it looks I can't extract the NFC tag at all... Nov 01 13:29:09 in android sqlite should foreign key constraints always be used where table's have relationships? i can't find much documentation on using foreign keys in android specifically Nov 01 13:29:44 DR01D-Engineer: if you want to, but there's cost to checking them Nov 01 13:29:57 typically you want your data to make sense so I recommend adding them Nov 01 13:31:06 does it make using queries and cursors any easier? if my tables have relationships. or is it just extra code Nov 01 13:31:38 the SQL docs say one of the main reasons for foreign keys is keeping the database stable if the database is externally modified -however in android this seems unlikley to happen Nov 01 13:32:06 I have no idea what that advice is talking about Nov 01 13:32:30 no, the foreign key checks do not make anything "easier". It's a pure data model additional constraint. It has no impact to API or using of the cursors Nov 01 13:32:55 however the data model needs to be correctly designed according to relevant normalization rules if foreign keys are to be used at all Nov 01 13:33:25 the foreign key can, after all, only point to another table's primary key. I sometimes see tables where the primary key isn't right, or the references are made to fields that aren't priamry Nov 01 13:37:43 any ideas about that account creatin + security exception? Nov 01 13:38:06 i see. yes i know about the standard id keys. i will try using them then Nov 01 13:59:36 I've got a linearlayout inside of a frame layout, and I'm trying to set its width to fill_parent Nov 01 13:59:47 however that doesn't seem to work Nov 01 14:00:01 does framelayout ignore pesky things like width and height of its children? Nov 01 14:21:24 Hi all, everyone appears asleep in android-root, so I will ask my question here... Do you need sun JDK to compile android source or can it be done with the open java in the ubuntu repository? Nov 01 14:24:25 hi there Nov 01 14:25:28 I need help, I'm writing a text-based game, and I need to update a text-view in a gameloop Nov 01 14:25:59 except, my gameloop wont execute more than 5sec, so I need it to be Async or to be a Service Nov 01 14:26:48 I decided to implement AsyncTask Nov 01 14:27:25 I overrided doInBackGround Nov 01 14:28:03 and in this function, i update the textview, multiple times Nov 01 14:28:26 but it seems the text view is only changed when the doInBackGround function is finished Nov 01 14:29:09 can anyone help me ? Nov 01 14:29:36 sounds normal Nov 01 14:29:45 when you do something in the background you do it in the background Nov 01 14:30:20 any ideas? http://stackoverflow.com/questions/13178022/addaccountexplicitly-throws-illegalstateexception-caused-by-securityexception Nov 01 14:30:32 yep, you must be right, then how can I udate my view on a regular time basis ? Nov 01 14:31:07 how could i implement a simple text clock ? Nov 01 14:31:13 (for example) Nov 01 14:31:40 I tried using this function Nov 01 14:31:41 i haven't coded android in ages Nov 01 14:31:42 context.runOnUiThread( new Runnable() { Nov 01 14:31:58 use a runnable with handler Nov 01 14:32:21 do i have to implement a new Runnable son ? Nov 01 14:32:32 child* Nov 01 14:33:34 and then you can call something like handler.postDelayed(runnable,1000); for every second Nov 01 14:34:14 do you think i could this way handle user event ? Nov 01 14:34:48 hi. how can I book a dedicated piece of ram in android the same way the caching proxy servers do it? Nov 01 14:34:56 not sure, I'm new, but thats what I would try for timer Nov 01 14:35:25 so, I must check the Runnable doc Nov 01 14:35:41 there I go, I may come back later :p Nov 01 14:36:31 thank you Nov 01 14:39:23 Yo! Nov 01 14:46:48 Can anyone suggest a (cheap) Android device similar to the Raspberry Pi or the Olinuxino? It's to be used with a touch-screen monitor. Nov 01 14:47:36 hi. how can I book a dedicated piece of ram in android the same way the caching proxy servers do it? Nov 01 14:48:39 What's better performance wise - inflate a layout for each item in an adapter, or generate the view yourself (if it's say, an imageview, just create it on the fly and return it) Nov 01 14:49:18 Hi, I need to make mouse move event listener.. I am doing with onGenericMotionEvent() method and trying use getgetToolType() but I am getting error no such method.. is there any other way to do it? Nov 01 14:50:16 superlinux-hp: new byte[1024*1024]? Nov 01 14:50:58 Tee_Pee: I doubt the layoutinflater spends a whole lot of time doing that work Nov 01 14:51:10 the real cost is with filling the imageview with the image, I bet Nov 01 14:51:12 Lachezar, that's like malloc() of C? isn't? cos that what i want Nov 01 14:51:51 superlinux-hp: There is no *alloc() relation. Memory management in Java is not explicit. Creating an object reserves the needed memory. Nov 01 14:53:21 Lachezar, so how i would be reading the binary data of a file that i want it saved in an SQLlite? Nov 01 14:53:28 Lachezar, so how i would be reading the binary data of a file that i want it saved in an SQLlite database? Nov 01 14:53:54 superlinux-hp: using Streams. Do *NOT* load the file in memory... Nov 01 14:54:00 alankila - thought as much, but I'll have to figure out what's better in the long run, as I do tend to have adapters with several hundred items Nov 01 14:54:22 superlinux-hp: and I can not *stress* enough how you should *NOT* load the file in memory. Nov 01 14:54:42 Lachezar: does sqlite even allow you to stream a blob? Nov 01 14:54:46 Lachezar, what if the data is a pdf? Nov 01 14:56:43 clever, that's the question i should have asked! Nov 01 14:56:50 superlinux-hp: What do you want to do with this PDF? I'm pretty sure you do not need to load the file in memory. Nov 01 14:56:54 your question i mean Nov 01 14:57:08 clever: Let me see... Blobs are generally streamed. Nov 01 14:57:38 Lachezar, it's just want to know how to pass the blob data into FileInputStream Nov 01 14:57:42 Lachezar: i havent seen any stream api in the sqlite c lib, so i'm not sure how android would be able to stream them Nov 01 14:58:27 * Lachezar scratches his head... Nov 01 14:59:02 Really? SQLite uses byte[] for blobs? Nov 01 14:59:14 Lachezar: char* i think Nov 01 15:00:00 Lachezar: sqlit3_bind_blob(sqlite3_stmt*, int, const void*, int n, functpointer); Nov 01 15:00:10 yeah, void* for the data, and an int for size Nov 01 15:00:34 DOH! Nov 01 15:00:37 so eventualy, the java/JNI code must put it all into a single segment of ram and call the c api Nov 01 15:01:12 same for the result_blob function (reading) Nov 01 15:01:14 In such case I would *NOT* store blobs, unless they're like very small. And definitely no files in the database. Nov 01 15:01:31 i would store the files, as files! Nov 01 15:01:37 and then insert the name and other misc data into the sqlite db Nov 01 15:01:44 superlinux-hp: I suggest you store the file content in the file system (or SD Card), and store the path in the DB. Nov 01 15:01:53 yep Nov 01 15:02:14 Lachezar, i know that. it will make a security breach for us Nov 01 15:02:40 superlinux-hp: What? Nov 01 15:02:49 superlinux-hp: how are normal files on disk any less secure then blobs in sqlite? Nov 01 15:02:55 superlinux-hp: This makesz no sense?!? Nov 01 15:03:22 superlinux-hp: The blobs are in a database, that is a file that is accessible to the application only. Nov 01 15:03:27 Lachezar, cos not anyone can easily know the type of the blob Nov 01 15:03:44 superlinux-hp: how is your app to know the type of the blob then? Nov 01 15:04:04 clever, it's just a pdf book reader Nov 01 15:04:08 superlinux-hp: Hogwash. If I have access to the files, I could just take the SQLite database, and read it on my computer. I've done that! Nov 01 15:04:19 i know Nov 01 15:04:21 then its safe to assume all blobs are pdfs, there goes your 'security' Nov 01 15:04:55 superlinux-hp: You _could_ store the files in the application's directory with no world-read. Nov 01 15:05:02 but would you know what would be the blob data? you see them as scrambled letters Nov 01 15:05:18 superlinux-hp: No, it's just the bytes you wrote... Nov 01 15:05:31 superlinux-hp: No obfuscation, no encryption, no nothing. Nov 01 15:05:37 Lachezar, anyways.. the bytes will be the pdf file Nov 01 15:06:18 superlinux-hp: Store the file in the application directory. They will be accessible by the application only. Nov 01 15:06:33 Lachezar, and the people?! Nov 01 15:06:55 if they can access the files, they can access the sqlite db Nov 01 15:06:56 i can still access the data from my PC Nov 01 15:06:58 both are the smae Nov 01 15:06:59 superlinux-hp: If you *INSIST* on putting large files in the DB: be my guest, I'll help you with code, that will get OOMEs regularly :) Nov 01 15:07:00 isn't? Nov 01 15:07:19 what are OOME? Nov 01 15:07:30 superlinux-hp: No, you can NOT access files on the device, that are not on the SD Card. Nov 01 15:07:31 out of memory Nov 01 15:07:57 clever, i guessed so Nov 01 15:08:54 superlinux-hp: There is a work-around... Split the files in small pieces of let's sey a few KB. Put every piece in the database as different blob. Nov 01 15:09:15 Lachezar, i think i can compress the pdfs to reach small amount of ram Nov 01 15:09:18 at that point, your re-implementing your own file system insize sqlite Nov 01 15:09:20 superlinux-hp: Still that gives NO SECURITY! Nov 01 15:09:32 and you need to un-compress the pdf to actualy view it Nov 01 15:09:38 which means you double the ram needed! Nov 01 15:09:48 superlinux-hp: Modern PDFs are generally compressed, and are hard to compress further. Nov 01 15:09:55 ah ok! that splitting would be great Nov 01 15:10:30 and compress and encrypt, but in which order ? Nov 01 15:10:32 superlinux-hp: It will work, but it will be a PITA, and you will get absolutely NO security whatsoever. Nov 01 15:10:35 we'll see about it Nov 01 15:11:12 superlinux-hp: A rule of thunb: once a file is on the client's machine it's no longer secure. Nov 01 15:11:24 i know that for sure Nov 01 15:13:33 superlinux-hp: Still look at http://developer.android.com/reference/android/content/Context.html#openFileOutput%28java.lang.String,%20int%29 Nov 01 15:13:44 Is there a JavaDoc robot here? Nov 01 15:13:44 ok Nov 01 15:14:13 !android Nov 01 15:14:17 !!android Nov 01 15:14:20 ~android Nov 01 15:14:29 ! Nov 01 15:14:47 @android Nov 01 15:14:48 No, seems no JavaDoc robot is around. Nov 01 15:14:54 hmmm, not that either Nov 01 15:21:35 I always used JDOM library to handle with XML files (in Java, not Android), now i tried to use it in in one of my first Android applications, but i get this error: Ill-advised or mistaken usage of a core class (java.* or javax.*) when not building a core library. I can't understand what I need to do, I have to import those (javax.*) classes, they are required Nov 01 15:25:49 can someone please explain what's so interesting / what's the big deal about this http://android-developers.blogspot.com/2011/12/add-voice-typing-to-your-ime.html how is it any different than the existing mic icon on the soft keyboard Nov 01 15:28:51 regedit: I believe this is intended for those developers, that are creating their own keyboard applications. Nov 01 15:30:44 hm.. Nov 01 15:30:48 so, with 687 people here, there isnt anyone who actually tried creating new account on android? (via AccountManager) Nov 01 15:31:24 plausibly correct DarkKnightCZ Nov 01 15:33:14 regedit: so this isnt correct? :) http://developer.android.com/training/id-auth/custom_auth.html Nov 01 15:34:33 plausibly, and I don't see the connection Nov 01 15:35:13 http://stackoverflow.com/questions/13178022/addaccountexplicitly-throws-illegalstateexception-caused-by-securityexception Nov 01 15:36:55 you are obviously doing it wrong, although i wouldn't have any idea how you so triumphantly succeeded in doing it ever so wrongly Nov 01 15:38:13 yeaah, i know im obviously doing it wrong :) thats why im trying to figure out what im doing wrong :) and if that code is wrong, its also wrong on dev page Nov 01 15:42:26 Alessiop2: it's possible, that you're using a library, that uses javax.* or java.* classes, not available on Android. Nov 01 15:45:55 is it normal for GC to be collecting 3000 objects after a simple event? Nov 01 15:46:47 what's "simple"? Nov 01 15:47:00 Sicp: a single packet from GCM, opening a single notification Nov 01 15:47:56 I don't know Nov 01 15:48:10 Sicp: what kind of numbers are you seeing in GC? Nov 01 15:48:39 I also don't know Nov 01 15:51:18 clever: How do you see the number of objects cleared? I can only see the amount of memory freed. Nov 01 15:51:59 clever: It's possible, that a low-memory event has forced a kill of another application, that has many objects. Nov 01 15:54:21 Lachezar: it just shows up in logcat Nov 01 15:54:31 Lachezar: D / dalvikvm ( 429): GC_EXPLICIT freed 267 objects / 12792 bytes in 93ms Nov 01 15:58:01 Lachezar: i'm trying to use voice recognition in my app, i.e. act upon certain spoken words. would you know if this makes sense to implement in a custom IME (like you said kinda like creating my own keyboard application) Nov 01 15:58:31 Lachezar: or should it be with recognizer intents and stuff like that (or both?) Nov 01 16:00:19 I installed the google API under the SDK manager so I could create a tablet n the AVD manager. I can't see the tablet in my emulator list, what value should I enable so I can see the emulator? I installed google API level 14, I can see the android device which uses API leve 14 directly Nov 01 16:04:32 regedit: Honestly I don't know, but IMEs are very system-wide. I'd rather use the API directly in the application. Nov 01 16:04:43 clever: D/dalvikvm( 919): GC_EXPLICIT freed 123K, 55% free 5309K/11591K, external 0K/0K, paused 77ms Nov 01 16:05:17 hmmm, kinda hard to compare diff formats Nov 01 16:05:32 GC_EXPLICIT eh? Nov 01 16:05:49 docmur: You need to create an emulator, that uses the API. Nov 01 16:06:22 clever: D/dalvikvm(10576): GC_CONCURRENT freed 1132K, 53% free 3633K/7623K, external 3112K/3837K, paused 13ms+4ms Nov 01 16:06:53 clever: Possibly because I'm still Android 2.3.5. Nov 01 16:06:57 i guess i'll just ignore it, doesnt seem to be causing any issues Nov 01 16:06:59 i'm on 2.2 Nov 01 16:07:01 I already did, the issue is I can't see the emulator in my IDE, I assume it's in line Nov 01 16:07:59 docmur: Are you sure? Just downloading is not sufficient. Start the android kit from the command line: /tools/android Nov 01 16:08:32 I can boot the emulator from the AVD, I've seen it start Nov 01 16:10:11 docmur: Hmmm... Dunno then. What's your application's min-sdk and max-sdk? Nov 01 16:10:27 Nov 01 16:11:12 Lachezar, never set a maxSdkVersion Nov 01 16:11:13 ever Nov 01 16:11:53 canadiancow: :) Got it! Nov 01 16:12:10 indeed, burger king has a max version on their app, so annoying Nov 01 16:12:19 canadiancow: Except when providing different versions for 2-3 and 4+ Nov 01 16:12:34 Lachezar, i still dont think that's necessary Nov 01 16:12:42 as long as the 4+ versioncode is higher than the other one Nov 01 16:13:10 canadiancow: Dunno. I don't use Google Play, but maybe it will be right so that only one version is shown to the users? Nov 01 16:13:30 im pretty sure multi-apk handles that fairly well Nov 01 16:13:51 * Lachezar shrugs. Nov 01 16:14:43 this is also the only common case where i think multi-apk should be used Nov 01 16:14:47 docmur: Sorry, I'm lost here... Unless you're not telling the whole story it should work Nov 01 16:15:20 Ya I know it should but it doesn't, I'm assuming it's the IDE, so far it's let me down 99% of the time, it's horrible but still better then Eclipse Nov 01 16:16:04 docmur: What? Y U NO USE ECLIPSE? (Pun intended!) Nov 01 16:16:43 docmur: The only thing that comes to my mind is if your application is built against Google APIs, and the emulator is vanilla API. Nov 01 16:16:52 shmooz: are you still there ? I resolved my problem, if you want to here the solution Nov 01 16:17:06 -here + read Nov 01 16:17:09 docmur, what settings did you use for the avd? Nov 01 16:18:28 Eclipse is beyond retarded, it's laggy, it's full of overhead, it's a mess of spaghetti config, poorly laid out and over all a let down as for the AVD CPU: ARM, Target: Google APIs ( API level 12 ) skin WXGA hw.lcd.density: 160, hw.keyboard.lid: no, vm.heapSize: 48 hw.ramSize: 256 Nov 01 16:18:34 I couldn't update views on UIthread with an AsyncTask, but the doInBackGround method can call the onProgressUpdate which can update components on UI threads :p Nov 01 16:18:55 12??? Nov 01 16:18:59 why are you using 3.1 Nov 01 16:19:14 just to try to try it, it shouldn't matter Nov 01 16:19:40 i'd suggest trying 15 or 16 Nov 01 16:19:43 i dont trust honeycomb Nov 01 16:20:54 If I can't even see the emulator then there is no point in trying others Nov 01 16:25:03 Lachezar: i see, thanks for the advice Nov 01 16:32:56 Lachezar: How cheap do you want your Android device? Nov 01 16:33:53 And how well supported by the vendor and/or open-source drivers? Nov 01 16:36:05 Gumboot: As cheap as possible, as open as possible :) Nov 01 16:36:14 Gumboot: do you have something in mind? Nov 01 16:36:35 Lots. Nov 01 16:36:37 You in a hurry? Nov 01 16:36:43 www.cubieboard.org Nov 01 16:36:46 Gumboot: Nope. Nov 01 16:37:38 Gumboot: My superiors decided to replace BYOD phones with kiosk-style. I am evaluating if a Touch-Screen modinot + Android Stick can save me from rewriting th eapplication. Nov 01 16:38:10 Still have to check on the touchscreen interface. How are those normally connected? Nov 01 16:38:35 Gumboot: USB Commonly. I believe it's some kind of mouse emulator. Nov 01 16:39:01 Gumboot: That cubieboard seems like very close to what I'm looking for. Nov 01 16:39:13 Is that... GPIOs?!? Nov 01 16:39:34 Yes. Nov 01 16:39:49 It's twice th price, but a heck of a lot more powerful. Nov 01 16:39:56 Others: http://linux-sunxi.org/Category:A10_Devices Nov 01 16:40:09 (all based on the same SoC) Nov 01 16:40:30 Gumboot: You're tons of help man. Are you affiliated, or enthusiast? Nov 01 16:40:56 In this capacity? I used to work for ARM, but I've been trying to find something to replace a noisy PC that doesn't have to do much work. Nov 01 16:41:01 Hmm... The specs say A8, the picture shows A10... Nov 01 16:41:07 But I've spent an awful lot of time looking because I want gigabit ethernet and I don't want it on USB. Nov 01 16:41:21 All part of the fun of ARM naming conventions. Nov 01 16:41:40 The name of the SoC is A10, or Allwinner A10. "A8" is the "Cortex-A8", which is an ARMv7 architecture implementation. Nov 01 16:42:16 does anyone know how to restore a typed parcelable array from the savedInstanceBundle? I keep getting cast exceptions Nov 01 16:42:22 Apple also have A4 and A5. I think the A4 contains some Cortex-A9s? I haven't kept up. Nov 01 16:43:14 A4 is basically old Exynos Nov 01 16:43:25 Sorry. Apple A4 contains Cortex A8. Apple A5 contains Cortex A9. Nov 01 16:44:05 * Lachezar has become more puzzled than he was before asking the question :) Nov 01 16:44:09 Apparently Apple A6 does not contain any Cortex processor at all. Nov 01 16:44:31 right Nov 01 16:44:50 A6 is entirely Apple's ARM design Nov 01 16:44:56 Gumboot: hmm?? Given the iron grip ARM keeps on the cpus, I somehow doubt that Nov 01 16:45:22 ARM is an engineering and licensing company Nov 01 16:45:44 you can license whole designs, instruction sets or whatever Nov 01 16:45:54 Codhisattva: who sells complete CPU "IP". And has very, very strict licensing Nov 01 16:46:01 p_l: ARM have architecture licensees, who are allowed to design their own core from scratch but have to conform to the architecture specification. Nov 01 16:46:20 Qualcomm being the most noteworthy of that lot. Nov 01 16:46:21 is there a way to automatically scroll a listview to a particular index? Like when I append some results to a ListView, I don't want it to reset the scroll to the top of the screen Nov 01 16:46:24 The alwinner stuff is remarkably competent, despite being SUPER sketchy packaging ;P Nov 01 16:46:24 Or maybe Apple, now. Nov 01 16:46:28 Codhisattva: betting that even though Apple did gobble up a chipset engineering company or two, they still didn't design the whole thing themselves. Nov 01 16:46:31 p_l: do you really think ARM would deny Apple's cash? Nov 01 16:46:52 Codhisattva: if it could relax their control on the architecture, yes Nov 01 16:47:13 I can warn you that the mk802 stock firmware doesn't work with USB in android. USB keyboard/HID stuff, yes, but not presented via the android usb api Nov 01 16:47:28 afaik A6's chips are pretty close to A15 design with some changes Nov 01 16:47:49 dragorn: Is that to me? I do not expect much non-HID USB . Nov 01 16:48:04 anyway, it's #android-dev, not #apple Nov 01 16:48:11 I don't know how true that is, and who's figuring that out. A15 is pretty new on the market, and I'm not sure how well they've been compared. Nov 01 16:48:15 some of the special tidbits re: A6 is the hand drawn routing Nov 01 16:48:22 What is the point of the m before things like "mViewPager". Nov 01 16:48:23 Lachezar: for a touchscreen digitizer I'd expect it isn't generic HID Nov 01 16:48:38 Lachezar: if somehow it IS and it auto-translates position for mouse events, go for it, it may work Nov 01 16:48:54 anyway it's a good chip, and ironically made at a Samsung fab Nov 01 16:49:03 Lachezar: thats an artifact of the mk802 firmware tho, which is the most common (that i've seen) "usb stick" android device, based on the allwinner stuff Nov 01 16:49:06 Codhisattva: like all iOS-running chips Nov 01 16:49:20 Lachezar: There's #cubieboard on this network if you need to probe deeper. Nov 01 16:49:27 Lachezar: and not necessarily a problem w/ others, and it's bypassable with a custom firmware Nov 01 16:49:28 p_l: hilarity ensued Nov 01 16:49:51 Codhisattva: Apple's A4 is directly related to the chip in SGS Nov 01 16:50:02 p_l: I kow Nov 01 16:50:34 Apple bought the company that worked with Samsung on the design of the s5 line, with A4 being older version ;) Nov 01 16:52:22 p_l: love them or hate them, you got to admit that Apple's doing great things with chips. Nov 01 16:52:34 I made a custom ListView for rendering a texture in the background that scrolls with the ListView, and I was wondering if someone with some experience in this could tell me if I'm doing it in a sane way. This is my code: https://github.com/mdkess/TexturedListView/blob/master/src/xxx/rtin/texturedlistview/CustomArrayAdapter.java It feels hacky to me, but it does work. Nov 01 16:53:42 dragorn: Your note is well placed... I expected Touch Screen to be HID extension, like Joystick is... But you have a point I must investigate further. Nov 01 16:54:22 Lachezar: I've seen some which are HID, some which are custom. It would have to somehow know the resolution of the screen and the exact placement for it to generate direct mouse events; possible, but confirm. Nov 01 16:55:24 Codhisattva: I'm frankly not super impressed by it. The biggest difference from other makers is bullshitty bootstrap sequence and flash layout Nov 01 16:55:50 p_l: the power usage is impressive Nov 01 17:07:16 I have a calendar event being created and the end time is always a half hour or hour too early. Where should I go look for the problem there? The right value is being added to the intent, and the start time works fine. Nov 01 17:08:46 Hmmm... Anyone seen a ready-made Android Kiosk? Nov 01 17:16:36 it says for sqlite versions older than 3.6.19, sqlite does not support foreign key constraints so you must enforce it using triggers. android just says it ships with sqlite3..... most examples i found online simply turn keys on without mentioning triggers -however one does.... so i am wondering if perhaps triggers must be used maybe for older versions of android? Nov 01 17:18:36 maybe i will just use it without triggers but implement my database updating so it works as it should indepenently of the foreign keys with it's own checks Nov 01 17:19:42 That's probably a good idea.. I don't think there's any requirement as to what version of sqlite is bundled with the device Nov 01 17:21:46 i see. ill do that then Nov 01 17:23:40 Lachezar: That one sounds like VIA's line of business. Try http://apc.io/ Nov 01 17:26:00 SimonVT, i want to say i doubt an OEM would downgrade whatever's in AOSP, but ... Nov 01 17:26:19 Actually, it seems that my calendar event's end time also gets set to one hour after the begin time, despite the intent value being passed in being correct. Nov 01 17:26:40 canadiancow: Exactly :p Nov 01 17:28:01 Map: 1 hour seems like a default value.. It's probably the wrong key Nov 01 17:28:54 Gumboot: What's that an x86, or ARM? Nov 01 17:29:06 Not that it really matters for me :-/ Nov 01 17:36:18 has anyone tried flipping a value using an Animator? Nov 01 17:36:34 i'm trying to flip a value as a step in an AnimatorSet but it never calls the setter Nov 01 17:37:20 SimonVT, the key being "endTime", no? Nov 01 17:37:40 it calls the getter twice to get the current value (false) and it calls by BooleanTypeEvaluator with the percentage of 1 which returns true but the setter just isn't called Nov 01 17:39:34 Lachezar: It's ARM. They do do piles of x86 stuff too, though. Nov 01 17:40:09 That said, it's one of their x86 boxes I want to replace with an ARM. Nov 01 17:52:18 * Lachezar bids everyone good night... Nov 01 18:25:11 i just went with a 0ms animation and an onEnd callback for flippin' bits Nov 01 18:27:11 JakeWharton: wait what? Nov 01 18:28:22 heh, I'm trying to reverse the z-order of elements in the middle of an AnimatorSet so I just made one of the animations be 0ms with an onAnimationEnd callback that toggles the boolean which controls order Nov 01 18:28:54 I guess that's a way to do it Nov 01 18:29:08 I usually use a time listener and do the flip as soon as I see t >= 0.5 Nov 01 18:30:03 the switch occurs between two separate Animators already so this works out well Nov 01 18:30:06 anyone available to answer a question about roboguice? Nov 01 18:30:42 ...so I should just listen to the previous animation's end Nov 01 18:30:50 *facepalm* Nov 01 18:31:08 hey there. I'm having trouble with scaling bitmaps. I'm using createScaledBitmap, and the returned bitmap is being rendered with incorrect size Nov 01 18:31:10 heh Nov 01 18:31:10 I lol'd Nov 01 18:31:17 ITYM suddenclarityclarence Nov 01 18:31:21 I don't know why, but nVidia is going to release a plug-in for Visual Studio for developing Andoid Nov 01 18:31:32 KNERD: it makes sense for game devs Nov 01 18:31:40 JakeWharton: well… yeah :) Nov 01 18:31:53 nvidia does a lot to help games run extra super well on their hw Nov 01 18:31:53 brita_: how are you calling createScaledBitmap? Nov 01 18:32:14 ctate, i have a game that only runs on tegra :( Nov 01 18:32:22 yes well Nov 01 18:32:28 or "only runs" Nov 01 18:32:31 yes, but how many Android devices use nVidia graphics cards? Nov 01 18:32:36 romainguy_: _bitmap = Bitmap.createScaledBitmap(_bitmap, newWidth, newHeight, false) Nov 01 18:32:40 nexus 7 does KNERD Nov 01 18:32:52 groovy Nov 01 18:33:06 KNERD: it doesn't matter :) Nov 01 18:33:26 Well, I hope it is Drag-N-Drop like developing on Windows Phone....all that XML typing is a PIA Nov 01 18:33:32 brita_: and what result do you get? Nov 01 18:33:41 KNERD: you can drag and drop using the Eclipse plugin Nov 01 18:33:48 brita_: also you should set the last argument to true Nov 01 18:33:55 :-7 Nov 01 18:34:09 a smaller than supposed bitmap Nov 01 18:34:28 romainguy_: I have the eclipse plugin for android, but I don't see any drag n drop for the GUI Nov 01 18:34:51 KNERD: just open a layout file and use the graphical editor Nov 01 18:35:05 I have checked the width and heigh parameters. they are correct. I've taken a screenshot and measured and It's not correct Nov 01 18:35:14 thanks..will give it a look Nov 01 18:35:29 brita_: you've checked only on a screenshot? Your problem is most likely somewhere else then Nov 01 18:35:34 the bitmap looks scaled by 0.53 instead of 0.73 as it should be Nov 01 18:35:44 you can call _bitmap.getWidth()/getHeight() to check the actual values Nov 01 18:35:51 it might just be *drawn* smaller Nov 01 18:36:19 yes, you're right. i should have checked that Nov 01 18:38:34 you're right romainguy_ getWith() is correct. it only looks smaller... but I have no idea why Nov 01 18:38:52 probably your layout params Nov 01 18:38:55 I've read that is is a bad idea to store a reference to an Activity or Service. What is the best way to end my Activity from a Service then? Simply speaking, I'd call myActivity.finish() from the Service, but that requires me to set myActivity. Nov 01 18:39:34 romainguy_: everything it's pretty fixed in my app. It's a game so.. Nov 01 18:39:38 The other solution I'm using at the minute is to send a Broadcast message from the Service, which the Activity listens for, and when it receives it, it calls finish() itself. Nov 01 18:41:20 ejcweb: the best way is to rethink why you think you need to do that. Nov 01 18:41:54 having the background non-UI component driving the UI is ... curious, is one way to put it. Nov 01 18:42:45 ctate: I agree, this is a curious example. Regardless (considering calling some generic method of the activity from the service), is there a 'good' way to do this? Nov 01 18:43:12 i've painted myself into a weird corner here. i'm building a complex custom layout where i'm creating a bunch of views and adding them programmatically. however, onmeasure/onlayout/onfinishinflate is making me miserable. the rendering model is driving me nuts Nov 01 18:43:45 is there some way to override all this, be able to add a bunch of views and viewgroups programmatically while SUPPRESSING all these onmeasure/onlayout callbacks until it's all done? Nov 01 18:43:46 ctate: (This isn't a user facing app; more of an Android experiment). Nov 01 18:45:20 Hello! I am looking for instructions on how to create my own lock screen. Do you have any? Nov 01 18:46:11 i'm trying to place a button at the bottom right, marginBottom is not working Nov 01 18:47:04 how would I set it at the bottom right? Nov 01 18:47:11 actually. make that left. Nov 01 18:47:18 hi all, if I have a view and I've set the drawable for the background, then does the onDraw() of the view get called before the onDraw() of the drawable? Nov 01 18:47:57 or maybe it depends on where I call super.onDraw() from within the view onDraw()? Nov 01 18:51:02 ejcweb: i personally tend to approach that sort of thing by having the Activity explicitly register callbacks with the Service when started, and unregister them when stopped Nov 01 18:51:15 keep the lifetime of the Service's reference tightly bound to the Activity's UI lifecycle that way Nov 01 18:51:34 FWIW Nov 01 18:52:11 ctate: So that way there's no danger of leaking the Context? Nov 01 18:53:00 not if you're careful with the Service's bookkeeping of that reference Nov 01 18:53:20 i mean obviously yes, it means that the Service will hold that reference Nov 01 18:53:40 ctate: Sounds good. And does the Activity register callbacks using static methods of the Service? Nov 01 18:54:06 ejcweb: you'll want to use bindService Nov 01 18:54:08 but if that reference is driven by the Activity's own lifecycle, it achieves the crucial goal of ensuring that the Service does *not* hold a reference to a stopped / destroyed "stale" Activity object Nov 01 18:54:18 there are various ways to do it Nov 01 18:54:25 depending on how you set up your Service etc Nov 01 18:54:54 the Binder is your friend Nov 01 18:55:05 or at least it's mine :) Nov 01 18:55:53 but frankly static variables are also perfectly usable for this sort of thing if you're aware of the object lifetimes involved Nov 01 18:56:27 (when the service is started it sets a global variable to point to itself, which in turn provides the Activity with a direct object pointer with which to call into the Service, no binder required) Nov 01 18:56:39 there are different approaches depending on what you're comfortable with Nov 01 18:58:48 ctate: Thanks for the info, that confirms some things I was thinking :) Nov 01 18:59:45 I'm still looking for away to tie my button down to the bottom left corner, can someone help me with that? Nov 01 19:00:39 preferably at a distance of about 20dp Nov 01 19:00:44 Syzygy: you can use a relativelayout for that… but this sounds like a questionable UI. what is it you're doing exactly? Nov 01 19:01:03 main menu screen for a game (for uni)+ Nov 01 19:01:25 right has Play game, Tutorial and options, bottom left has a credit button Nov 01 19:03:31 and obviously this is in landscape mode Nov 01 19:03:59 ah. for a game that makes sense. I think I'd probably use a RelativeLayout for this. Nov 01 19:04:24 if using a relativelayout, android:layout_marginLeft="20dp" android:layout_marginBottom="20dp" in a relative layout Nov 01 19:04:46 that will put the button 20dp from the left side and the bottom Nov 01 19:05:32 I guess I just need to switch the layout it's using then, thanks for the help. Nov 01 19:06:06 actually, I am using a relative layout. Nov 01 19:06:44 layout_marginBottom="20dp" doesn't position the view 20dp from the bottom.. Nov 01 19:07:03 exactly, that's my problem Nov 01 19:07:21 You can try layout_aligntParentBottom Nov 01 19:08:55 that worked, thanks Nov 01 19:09:45 ctate: is this pretty comprehensive http://www.android.com/whatsnew/ …. that is, if i dont see "bluetooth smart" / BLE i can be reasonably confident it is not in 4.2 ? Nov 01 19:10:26 g00s: i don't know from bluetooth. Nov 01 19:10:57 ok, but this is the most comprehensive feature list google has provided so far, correct ? Nov 01 19:11:09 err, if you say so? seriously, i haven't even seen this yet. Nov 01 19:11:15 hehe Nov 01 19:11:17 wut Nov 01 19:11:36 oh, this is just high level Nov 01 19:11:49 is there a more detailed page :) Nov 01 19:12:06 d.android.com still references 4.1, etc Nov 01 19:12:27 personally i only think of the new SDKs as the comprehensive feature lists :) Nov 01 19:12:37 g00s: moto has some vendor specific BLE APIs, but you may have already discovered them Nov 01 19:12:47 dragorn: yeah Nov 01 19:13:00 ctate, something like face unlock wouldnt make it into an sdk diff though Nov 01 19:13:00 dragorn: byw, apparently they broke on the last razr ota Nov 01 19:13:09 sure Nov 01 19:13:15 but that isn't an Android feature Nov 01 19:13:27 it...what? Nov 01 19:13:43 it's a Google feature, innit? Nov 01 19:13:53 is it? Nov 01 19:13:58 or are you saying it's on the Kindle Fire HD? Nov 01 19:14:12 ok regardless Nov 01 19:14:16 you're missing my point Nov 01 19:14:22 user-facing features dont necessarily need any APIs Nov 01 19:14:31 sure Nov 01 19:14:46 i'm not saying that i think high-level user-facing overviews like this are pointless Nov 01 19:14:56 i'm just saying that this is #android-DEV Nov 01 19:14:57 :) Nov 01 19:15:12 anyone here who has experienced xmlpullparser Nov 01 19:15:34 i have read about it Nov 01 19:15:37 because you asked us to Nov 01 19:15:40 weeks ago Nov 01 19:15:44 or wasn't that you Nov 01 19:16:02 I can read one attribute of the start tag Nov 01 19:16:08 but not the other one Nov 01 19:16:19 my tag has two attributes Nov 01 19:16:21 typo? Nov 01 19:16:27 and I am talking about the START_TAG Nov 01 19:18:01 any ideas, and no I am asking this question for the first time here Nov 01 19:18:27 well, i would expect http://www.android.com/whatsnew/ to have features that effect UX; "can my android phone work with these heart rate monitors" is an ecosystem / UX level question. well, i'll be optimistic and hope maybe there is more info coming down the pike Nov 01 19:19:35 https://dl.dropbox.com/u/31690810/uni/Multimedia/screen.jpg how can I get rid of the top status area? Nov 01 19:19:39 and the name Nov 01 19:19:50 g00s, some xperia's can Nov 01 19:20:04 g00s, they have an ANT+ transciever Nov 01 19:20:12 xperias* Nov 01 19:20:32 http://www.thisisant.com/pages/developer-zone/android-api Nov 01 19:20:32 Sculptor: yes, i see that. Nov 01 19:20:35 thanks for the info Nov 01 19:20:45 I've seen heart rate monitors that work by using the flash of your camera to screen the blood flow in your finger. Nov 01 19:20:54 When you have a custom search box and press anything besides the keyboard or the search bar it's self the onDismiss() method gets called on the searchBox, However if I pressed a button the onDismiss() still gets called so I have to press the button twice, is it possible to read the event "button ... pressed" in on Dismiss, so I don't have to hit the buttons twice Nov 01 19:21:09 o/ Nov 01 19:21:49 Syzygy: yeah, pretty amazing Nov 01 19:22:07 but .. ble … and other medical devices, lots of things Nov 01 19:22:19 ant+ and ble are competitors Nov 01 19:23:06 yeah Nov 01 19:24:18 but there are some technical differences that make one more appropriate for a certain space Nov 01 19:25:02 not sure about the details Nov 01 19:25:29 hmm, i have those docs - not sure where i got them Nov 01 19:25:38 don't know how accurate they are though Nov 01 19:27:11 well Snuffel, I will ask the same question sometime later Nov 01 19:27:19 gotta hit the bed for now Nov 01 19:27:22 over and out Nov 01 19:28:57 Sculptor: here you go http://www.google.com/url?sa=t&rct=j&q=bluetooth%20low%20energy%20%E2%80%93%20assessment%20within%20a%20competing%20wireless%20world&source=web&cd=1&cad=rja&ved=0CDYQFjAA&url=http%3A%2F%2Fwebshop.atlantikelektronik.de%2FMailings%2FEW12_paper_v3.pdf&ei=W82SUM3nM8iIiwKJoYGwDg&usg=AFQjCNFrCXYrXiHMy6wh84Y8K9jhKQhKNA Nov 01 19:29:01 sorry for the uggly link Nov 01 19:29:26 talks about ANT, ANT+, ZigBee, Nike+, NFC, RF4CE and IrDA Nov 01 19:30:00 iirc, ble is a part of bt 4.0 spec Nov 01 19:30:09 so any phone with bt 4.0 supports ble Nov 01 19:31:20 bluez has to support it too, as well as the framework Nov 01 19:32:16 https://dl.dropbox.com/u/31690810/uni/Multimedia/Screenshot_2012-11-01-20-24-10.png how can I get rid of this status bar? Nov 01 19:32:37 hmm Zigbee Nov 01 19:33:32 zigbee is nice Nov 01 19:33:39 it's very robust Nov 01 19:35:48 Syzygy, google it Nov 01 19:35:59 already tried that. Nov 01 19:36:10 i dont believe you Nov 01 19:36:21 "android remove status bar" - first result Nov 01 19:36:30 I managed to get rid of the name bar by googling, all i can find with status bar is the same thing Nov 01 19:37:59 that actually helped though Nov 01 19:38:07 my searches were longer :/ Nov 01 19:38:49 the simpler, the better Nov 01 19:40:11 ineed Nov 01 19:40:15 *indeed Nov 01 19:41:02 Is the "promo" image still displayed anywhere? Nov 01 19:41:04 so, what's the game about Nov 01 19:41:19 / I can't find it anywhere at the app screen. Nov 01 19:41:21 at the market Nov 01 19:43:55 Sculptor, my game? Nov 01 19:44:00 yes Nov 01 19:44:15 it's a bullethell roguelike Nov 01 19:44:31 :-) Nov 01 19:44:56 you start out in a peacefull vilage when suddenly portals start opening around town to other planes of existances Nov 01 19:45:41 then you start adventuring there and fight enemies while evading most of the enemy attacks Nov 01 19:45:47 levels will be generated procedural Nov 01 19:45:58 nice Nov 01 19:46:14 you unlock classes and so on Nov 01 19:46:37 pyromancer, necromancer, chronomancer for example Nov 01 19:46:49 pastamancer? Nov 01 19:46:56 why not? Nov 01 19:48:32 I'm trying to get adView in my app, but it has weird errors when creating the layout. Specifically, it gets nullPointerException Nov 01 19:48:33 at com.google.ads.AdView.onMeasure(SourceFile:670) Nov 01 19:48:33 at android.view.View.measure(View.java:15172) Nov 01 19:48:47 I tried it in a relativeLayout and in a linearLayout and the same thing happens Nov 01 19:49:40 anyway, in the end i hope for multiplayer in my game Nov 01 19:50:01 A bullet hell roguelike? Nov 01 19:50:02 Hmm. Nov 01 19:50:05 Sounds awesome. Nov 01 19:50:10 a multiplayer bullethell roguelike RPG for android Nov 01 19:50:32 realm of the mad god is a huge influence to be honest Nov 01 19:51:04 Oh, so it's not actually bullethell Nov 01 19:51:15 (Standard bullet hell is, well, a shoot em up) Nov 01 19:51:25 It's a roguelike with lots of bullets on screen. Nov 01 19:51:31 Still awesome tho Nov 01 19:51:32 it really depends on your definition. Nov 01 19:52:18 but anyway, the monsters will have attack patterns that you'll need to dodge Nov 01 19:52:51 what's the preferred method for storing a large blob of text, like a help screen or a 'what's new' dialog... just a bigass string in xml, or using an asset, or something else? Nov 01 19:53:28 although they'll probably be simpler than those of most standard bullet hell shooters (simply because... controlls on phones aren't "tight" enough imho) Nov 01 19:59:44 I seriously don't know why these adviews are breaking at measure Nov 01 20:08:57 is it possible to use a .dex file in libs/? Nov 01 20:09:16 hi, do any of you have experience troubleshooting issues with android media server dying Nov 01 20:09:41 i'm getting error 100 whenever i'm attempting to do video recordings with surface textures from open gl Nov 01 20:10:38 oh duh, dex2jar Nov 01 20:14:36 I'm trying to write events to the Android calendar from my app, but the end time always gets set to one hour after the begin time. Can anybody tell me why this may be? The intent code is here: http://pastebin.com/F5qPNRWP, and the _begintTime and _endTime values are correct. Nov 01 20:26:12 hey... I need help with background services Nov 01 20:26:39 I have a service that only sets up GPS listeners in its onCreate and Android keeps killing it without restart (even though I return START_STICKY in onStartCommand) Nov 01 20:26:46 should I do anything else when initializing it? Nov 01 20:31:41 Map: Works fine here Nov 01 20:31:47 Huh. Nov 01 20:31:52 Mavrik: and you're certain that you're never stopping it? Nov 01 20:31:54 Quick question, my imageview's height is way larger than the image itself, even tho it's set to wrap content and scaling is set to fitCenter, what do? Nov 01 20:32:08 SimonVT: Would it be a problem with the device I'm using to test, then? Nov 01 20:32:10 (even implicitly, e.g. by using IntentService?) Nov 01 20:32:15 ctate: quite, because it happens after about 20-30secs or so after the phone locks Nov 01 20:32:29 I just do "startService" and store received location data to DB Nov 01 20:33:01 Map: No idea.. Here's the code I used: http://pastebin.com/U4QmG6rS Nov 01 20:33:04 anything in the log about it being killed, Mavrik? Nov 01 20:33:04 only thing I'm not totaly sure is... do I have to grab the CPU wakelock for those cases? Nov 01 20:33:19 (often the activity manager will log about processes being shut down) Nov 01 20:33:27 ctate: waiting for the logdump right now, I havent ruled out an exception yet Nov 01 20:33:32 certainly you will need to hold a wakelock if you want to actually *run* while the phone's asleep Nov 01 20:33:45 couldn't find if START_STICKY restarts the service if exception occurs, any experience? Nov 01 20:33:54 ctate: I'm just waiting for GPS sensor input Nov 01 20:33:57 no code to execute Nov 01 20:34:21 ctate: I got some reponses few days ago about how that does not need an active wakelock Nov 01 20:34:26 sure there is code to execute Nov 01 20:34:33 your code that is reading from teh GPS :) Nov 01 20:34:38 x.x I have no idea what the issue is. Nov 01 20:34:44 interesting Nov 01 20:35:46 ctate: hmm, I'll recheck the doc, I'm quite sure someone said I don't have to hold a wakelock when being registered for location listener :\ Nov 01 20:35:55 still doesn't explain my service dying via onDestroy Nov 01 20:35:56 interesting, okay Nov 01 20:36:04 will double check, thanks :D Nov 01 20:36:06 hm, onDestroy() does imply that you aren't crashing Nov 01 20:39:04 i have a rather complex custom view, and a method in it that basically strips out and rebuilds the child views… it works fine when called from within the view, but i get the error "Only the original thread that created a view hierarchy can touch its views" when i call it from my main activity class… is there a way around this? Nov 01 20:40:46 Does "from your main activity class" mean a background thread you started from your activity? Nov 01 20:41:01 that's the thing, there's no thread in this class Nov 01 20:41:05 either, rather Nov 01 20:41:41 the class i'm rebuilding is the main view Nov 01 20:42:12 it's the class that's used with setContentView Nov 01 20:43:12 the particular method i'm calling removes existing views, and readds them… works great when used within the same class Nov 01 20:43:27 same exact code from my main activity bombs Nov 01 20:44:44 ahhhhhhh… i'm calling it from a handler in the main class Nov 01 20:45:28 i forgot, the event to rebuild is triggered by incoming server data, which has its own thread… so i have to get the data out of the handler, first Nov 01 20:46:11 Just create the handler on the main thread Nov 01 20:47:14 Does it make sense to _not_ use Fragments for Apps nowadays? Like, are there cases where that would make sense? Nov 01 20:48:35 i think i did, simon… i'm gonna have to read more on this b/c i don't understand what it's doing… my memory sucks so i can't always remember how i did something :/ Nov 01 20:49:43 oh, duh… i'm not using a handler at all, i'm using an interface… i don't even know how it ended up like that Nov 01 21:03:18 ok, here's what i don't get… i have a handler, which receives a message saying service is resolved (it's resolving a zeroconf server)… i don't want my udp client instantiated until the service is resolved, but i don't *think* i want it instantiated inside the handler either… that also spawns a listener to listen for server data, which works, until i try to do something with objects not in the handler… then the app bo Nov 01 21:03:18 with a thread error Nov 01 21:03:20 http://pastebin.com/ik0Hqxs0 Nov 01 21:03:51 so i'm wondering how to notify the main thread to go ahead and instantiate the client and create the listener, and do it on the main thread Nov 01 21:04:25 can i just create a static method on the main thread and call that from the handler? Nov 01 21:06:53 A handler is attached to the thread on which it is created Nov 01 21:07:01 Apparently you created yours on a background thread Nov 01 21:07:12 Now create a Handler on the main thread, and post to that Nov 01 21:12:38 * ctate | A handler is attached to the thread on which it is created Nov 01 21:12:43 That is not correct. Nov 01 21:12:51 Unless you tell it otherwise Nov 01 21:12:52 A Handler is tied to a particular Looper. Nov 01 21:12:58 And yeah, that Nov 01 21:13:07 i'm for sure creating it on the main thread Nov 01 21:13:17 by default, it's tied to your application's main looper thread regardless of which thread you're running in when it is instantiated. Nov 01 21:14:11 it is not a bad idea to get in the habit of always being explicit about which looper you want to associate a new Handler with Nov 01 21:14:34 ah, i have some code somewhere that uses two handlers… parent handler and thread handler… and a looper Nov 01 21:14:53 i'll have to try using that later on Nov 01 21:15:07 <3 HandlerThread Nov 01 21:16:10 No, it uses the looper of the thread where it's instantiated Nov 01 21:17:20 Should Fragments always be used these days? Or only in specific cases? Nov 01 21:17:26 And crashes if there's no Looper Nov 01 21:17:32 so i should only have to pass the main handler into the thread? Nov 01 21:18:33 does anyone have some experience with RecognizerIntent / SpeechRecognizer ? can't seem to get them to work... Nov 01 21:18:54 blah, i'm gonna do some serious re-reading on this and rebuild the entire class… there's not much to it anyway Nov 01 21:18:59 thanks for the help… back to work Nov 01 21:20:01 hm, anyone know of any decent library that would store application exception logs to SD-card? Nov 01 21:20:23 anyone here tried AllJoyn? Nov 01 21:20:42 kakazza: Yep, always (unless you're making games or something) Nov 01 21:21:25 What's the reason? From what I've got, they are meant as re-usable elements. Nov 01 21:21:25 SimonVT: ohh, only if it's instantiated *from* a looper thread :) Nov 01 21:21:33 people keep sayign "thread" when they mean "looper" and i get confused :) Nov 01 21:22:28 Not sure I understood that :p Nov 01 21:25:46 If you instantiate a Handler from a thread that doesn't have a looper, you'll get an exception.. It wont attach itself to the main looper.. new Handler(Looper.getMainLooper()) will tho Nov 01 21:25:51 kakazza, so when you decide in 6 months that you want to support 10 inch tablets, it isnt a lot of work Nov 01 21:28:12 hello gouys Nov 01 21:28:15 http://pastebin.com/eT0QRYGc Nov 01 21:28:24 kakazza: I like the lifecycle methods for fragments much more than activity's Nov 01 21:28:33 video plays fine in vlc on desktop, throws error on android Nov 01 21:29:23 And yeah, supporting multiple device configurations Nov 01 21:29:23 i'm 100% sure that this bbc stream is online, i checked it minute ago Nov 01 21:29:50 the code itself seems to be fine, right ? Nov 01 21:30:47 And really, it takes you just a few minutes to set up an activity with a fragment.. That includes adding the support library.. So even if you, right now, don't really need to support more configurations, it'll save you time eventually Nov 01 21:30:48 Ok, I'll try. Thanks Nov 01 21:32:00 on xml file my videoview ID is "videoView1", can anyone look at this code please ? Nov 01 21:32:20 Plus, you get to learn the fragment api from the start, instead of doing it when you also have a large application to port Nov 01 21:37:21 awww, i forgot to set network permissions Nov 01 21:39:35 Is the logic supposed to be in the Activity with the Fragment only providing a UI, or do the fragments provide the logic for themselves? Nov 01 21:39:52 If the latter, what is the activity? A mere container? Nov 01 21:40:50 Fragments contain the logic for the ui they provide Nov 01 21:41:05 If it's a listview, it loads the data, etc Nov 01 21:41:08 Handles clicks Nov 01 21:41:15 Activitys ties it all together Nov 01 21:41:37 Fragments are one way to approach your UI's lifecycle Nov 01 21:41:42 Activity is another Nov 01 21:41:53 they're more separable than people sometimes think Nov 01 21:42:21 [also, it's important to recognize that Fragments are fundamnetally lifecycle-management entities, *not* UI elements] Nov 01 21:44:08 Are clicks still handled by huge switch/case statements in Fragments? Nov 01 21:44:20 Lifecycle-management entities? Nov 01 21:47:50 We have an android mobile website and it has a form on it. The radio and checkbox icons are super duper small, almost to where you can't tap them. The text and everything else is normal size. What gives? Nov 01 21:49:59 im testing out SpeechRecognizer following code from here http://playandworkandroid.blogspot.com/2012/02/speechrecognizer.html but my app keeps crashing the downloader/launcher and saying "app not installed" when trying to start it Nov 01 21:51:30 the emulator shows "no selected voice recognition service" Nov 01 21:56:45 I've got a question for you guys Nov 01 21:57:00 Let's say i've got a device, some non-brand crap Nov 01 21:57:05 And i've got sudo access. Nov 01 21:57:17 How can i get an app that requires root to run on it? Nov 01 22:00:55 hello JakeWharton_ , with getSupportMenuInflater() we can't inflate contextmenu you didn't make your own ContextMenu interface which implements Menu Nov 01 22:02:40 does a context menu have anything to do with ABS? Nov 01 22:03:01 i'd think only if you're using ActionModes for your contextual menus Nov 01 22:03:45 but you just use a regular Menu there Nov 01 22:06:25 I have a bunch of gps location logs (latitude, longitude, timestamp), sorted by timestamp. When subject is not moving, device still produces gps location logs. How can I determine when subject is moving and when standing still? Nov 01 22:06:28 woops Nov 01 22:06:30 wrong channel Nov 01 22:06:46 https://github.com/JakeWharton/ActionBarSherlock/issues/614 Nov 01 22:26:15 i want to query my database for rows which have distinct values in one particular column Nov 01 22:26:47 solved :D and video doesn't stop after few seconds :D Nov 01 22:26:54 Hey folks, I'm looking for information on how to create those overlay tutorials google's been putting on their apps (launcher, for instance) the first time you run them. They mostly darken the screen with blue text and leave a spot open to see through. Every search I try yields tutorials on everything but this :) Can anyone suggest a new search term or a website to learn from? Nov 01 22:27:38 well, the launcher source code :) Nov 01 22:27:46 and they're called "clings" i believe Nov 01 22:27:50 like cling film Nov 01 22:28:01 Clings. I like the name. Nov 01 22:28:12 Yeah, I looked through the source too but had no clue where to look :) Nov 01 22:28:17 Thanks I'll search for clings Nov 01 22:38:44 I want to query my database for rows which have distinct values in one particular column Nov 01 22:39:29 I think maybe GROUP BY and HAVING is what I'm looking for possibly Nov 01 22:41:53 ... DISTINCT? Nov 01 22:42:11 that would return distinct rows Nov 01 22:42:22 all of the rows in this database are distinct Nov 01 22:42:25 i'm playing an rtsp *.sdp stream form camera that is placed on top of a robot, but the latency is about 2sec Nov 01 22:42:43 can i somehow lower the buffer ? Nov 01 22:42:54 i'm trying to find rows that have a distinct value in just one column Nov 01 22:44:21 or other way to get rid of a latency Nov 01 22:51:03 ? Nov 01 22:55:58 zax55: 2 seconds? you really need to dig into it and figure out where all that latency is coming from Nov 01 22:56:24 how much time is spent in every stage from camera acquisition through the network to the eventual display Nov 01 22:57:21 If I communicate with main ui thread and some helper threads do I need more than one handler for bi-directional communication? Nov 01 22:58:13 do I need one handler for each thread? Nov 01 22:59:26 ctate Nov 01 22:59:30 the strange thing is Nov 01 22:59:59 I'm trying to make an Android jUnit Test with some network components and i'm always getting "socket failed", "Permission Denied" Nov 01 23:00:05 that when i use camera web-interface, and there is a live stream (active-x plugin bases), the latency is nearly 0 Nov 01 23:00:30 i already added Internet permission to the manifest Nov 01 23:00:34 so that's the latency from the camera through the network to a web browser? Nov 01 23:00:50 but even when i open stream with VLC on my pc, the latency is 2-3seconds ! Nov 01 23:01:01 huh, wacky Nov 01 23:01:45 i'm wondering, if that formant active-x that is built in to web-interface, is using somehow different codec, that the rtsp stream send to network Nov 01 23:03:04 i checked the source Nov 01 23:03:29 http://pastebin.com/T4jMPc9h Nov 01 23:04:01 The ActiveX plug-in, document.write(""); Nov 01 23:04:14 so it has to be using RTSP too Nov 01 23:04:16 :\ Nov 01 23:06:19 now i changed on my desktop, in VLC, buffering to 10ms and :rtsp-caching=1 Nov 01 23:06:22 the latency is gone Nov 01 23:06:44 so i;m thinking videoview has some kind of it's own buffer Nov 01 23:06:46 Older API should run on newer Android versions? for eg. if I have an android phone running 4.0.4 whatever coded into 4.0.3 should work, right ? Nov 01 23:06:55 but how can i change it ? Nov 01 23:09:07 pfu, rtsp-caching is actually the buffering ms Nov 01 23:09:40 i cannot find anywhere, if can i specify the caching in android app Nov 01 23:16:31 EtherNet: yes, unless the developer has done something naughty Nov 01 23:18:55 Usually I'd have in my activity layout