**** BEGIN LOGGING AT Mon Jan 07 02:59:59 2013 Jan 07 03:00:20 can anyone direct me towards information about adding a view dynamically ontop of the current view defined within XML? I can't understand how to grab the right context to use addView Jan 07 03:01:12 tplaner_: is the view in a layout? Jan 07 03:01:26 Leeds: yes a RelativeLayout Jan 07 03:01:32 then that's what you addView to Jan 07 03:01:43 damn leeds you still come here Jan 07 03:01:52 hmm... what was the nick I was using 2 years ago Jan 07 03:02:15 devslash: +++++++++++++ Jan 07 03:02:17 * wordToDaBird can't remember Jan 07 03:02:22 Leeds: thats what I've been attempting to do by grabbing it like: rl = (RelativeLayout) findViewById(R.id.relativeLayout); -- but it doesn't seem to give me the context Jan 07 03:02:29 I'm guessing I'm doing it wrong Jan 07 03:02:41 that will give you a reference to the layout, yes Jan 07 03:04:31 tplaner_: what *does* it give you? Jan 07 03:05:32 fragments, i thought google was trying to avoid fragmentation Jan 07 03:07:00 Leeds: well actually, it does allow me to call addView, but the app crashes when I do Jan 07 03:07:19 tplaner_: and when you look in your log to find the uncaught exception, what does it tell you? Jan 07 03:08:00 https://gist.github.com/6764563283782b20a293 Jan 07 03:09:12 okay, you need to dump the stuff you're passing into addView to the log before you call it and see what's null Jan 07 03:09:24 you're not using Application as your Context, are you? Jan 07 03:12:09 Leeds: no, I'm using the an activity context Jan 07 03:12:19 good Jan 07 03:13:59 oh, I think its because I'm not passing setLayoutParams Jan 07 03:21:07 ok, so does getFragmentManager return a different fragmentmanager depending on what fragment it's called from? Jan 07 03:21:32 or is it the same damn one you could get from the activity? Jan 07 03:30:54 is there anything like WindowBuilder which supports 4.2? Jan 07 03:42:42 Hello Jan 07 03:44:12 what can i use for object cache in android/ Jan 07 03:44:19 in memory Jan 07 03:45:04 Parhs: there is a LRU cache in the support lib Jan 07 03:46:32 g00s i saw it but i just want to store some objects not removing them automaticaly like lru Jan 07 03:48:07 well, you have to decide on an eviction policy if its a cache :/ Jan 07 03:48:24 you can use LinkedHashMap with removeEldestEntry Jan 07 03:48:54 Each time a value is accessed, it is moved to the head of a queue. When a value is added to a full cache, the value at the end of that queue is evicted and may become eligible for garbage collection. Jan 07 03:49:02 i dont understan this Jan 07 03:49:20 you can always use an object pool Jan 07 03:49:34 what i am trying to do is to store 4-5 lists of objects nothing more or less that wont change Jan 07 03:49:42 then just do that Jan 07 03:49:59 object pool how ? using LinkedHashMap ? Jan 07 03:50:03 * g00s is not understanding, but ok Jan 07 03:50:05 um no Jan 07 03:50:17 Parhs : if you need lists that never change, then just make them Jan 07 03:50:33 if you have specific access requirements, then that'll dictate what structure you use to store those lists Jan 07 03:50:45 i have plans for the future that they might change Jan 07 03:50:55 then you need to solidify your plans and code accordingly Jan 07 03:52:55 hm Jan 07 03:53:14 I think that LRUCache or ?having just Lists etc? would work Jan 07 03:53:29 LinkedHashMap doesnt seem to offer a benefit to me Jan 07 03:55:15 how will you be using the cache? Jan 07 03:55:47 how large will your lists be? Jan 07 03:55:59 how often will you be needing a certain object from one of the lists? Jan 07 03:56:18 these are questions you need to answer in order to properly pick a collection structure that fits your needs Jan 07 03:57:32 nice questions Jan 07 03:57:42 :) heh Jan 07 03:59:18 I will be using it to get objects.In future they might be evicted to be refreshed. I guess they wont be over 1-2mb in wild cases.NO bitmaps etc.I will be needing very often.I want to use it as a cache for my web service calls (transparent to activities) Jan 07 04:06:48 so you'll be reading from your cache frequently Jan 07 04:07:20 if you're doing something like a web cache, you might not want a hard-set limit on number of objects cached Jan 07 04:07:25 instead do it by total size of cache Jan 07 04:11:33 is there any rule of thumb for how deep your activity stack can be? Jan 07 04:12:08 for example, max of 5 on the activity stack Jan 07 04:15:30 RustyShackleford: its more of a human psychology thing than a technology thing, if there is Jan 07 04:16:07 after too many levels deep, you lose context of whats going on. there are concrete usability studies on how many is too many, though Jan 07 04:16:10 its around 5 Jan 07 04:16:22 mine is currently 4 deep. I think it might be too much Jan 07 04:17:11 i remember reading a critique of the Best Buy app; you get a cover for your ipad you had to drill down like 6 levels or something Jan 07 04:17:12 perhaps I can thin it out with a few popup menus Jan 07 04:17:24 RustyShackleford: always good to do usability testing, anyhow Jan 07 04:17:46 my company does usability testing with a sample size of 4 Jan 07 04:17:58 that better than not doing anything at all :) Jan 07 04:18:08 hardly :p Jan 07 04:18:27 could work if those four know a thing or two about good UI design Jan 07 04:18:40 usually we get normal users Jan 07 04:18:42 so... no Jan 07 04:18:47 no, for usability testing, you want to select people that are not IT specialists, UI designers, etc Jan 07 04:18:55 "average people" Jan 07 04:19:07 so wabz is doing it right :) Jan 07 04:19:56 kaikai: hey Jan 07 04:21:26 RustyShackleford: amazon has a cool a/b testing library for use in Kindle Fire Apps Jan 07 04:21:40 but its only for their ecosystem Jan 07 04:22:16 hey guys. i just finished writing some javascript code that will hide all unpublished apps from appearing when you are logged into the console. i dunno about you guys but it bugged me to see all those unpublished apps with no way to hide them. if you want it, pm me Jan 07 04:22:25 there might be 3rd parties that have something similar for vanilla android; not sure Jan 07 04:26:56 gonna be 43deg tomorrow Jan 07 04:26:59 can't wait :D Jan 07 04:27:49 celsius Jan 07 04:28:10 Hi, When I download the repo script and do a repo sync it says a new version of repo is released you should upgrade soon when I just downloaded the script? Jan 07 04:31:51 wabz: 43? wow ... where? Jan 07 04:31:57 where can I download the latest version of the repo 1.8 as the downloading repo looks like it is downloading repo 1.7 as repo sync tells me to upgrade to 1.8? Jan 07 04:32:14 sydney, .au Jan 07 04:32:31 nickgaw, it should autoupdate itself Jan 07 04:32:53 then why does it tell me I should upgrade soon? Jan 07 04:32:55 or at the very least, spit out some message like "repo update available, run command: cp /path/to/new/repo /path/to/old/repo" Jan 07 04:33:19 is it ok to send a bundle from one activity to the next? Jan 07 04:33:26 anyway Jan 07 04:33:26 https://dl-ssl.google.com/dl/googlesource/git-repo/repo Jan 07 04:33:32 that should be the latest released version Jan 07 04:33:57 that is what I downloaded just now and it tells me a new version is released. Jan 07 04:34:16 wabz: at least you aren't in tassy ... Jan 07 04:34:38 pretty sure tasmanis is part of new zealand Jan 07 04:34:42 tasmania Jan 07 04:34:55 devslash: watsup Jan 07 04:35:13 you asked me earlier about my comment about the dev console Jan 07 04:35:14 wabz: you what ? :-/ Jan 07 04:35:31 i hate seeing all the unpublished apps. i wrote something in javascript to hide them all Jan 07 04:35:38 ahh, yea me too but its fine Jan 07 04:35:53 err hide all the unpublished apps Jan 07 04:36:05 i would rather delete apps im never going to use haha Jan 07 04:36:20 i thought that you can't delete apps from the console Jan 07 04:36:29 well thats what im saying Jan 07 04:36:35 im pretty careful with uploading now Jan 07 04:36:42 bankai_: http://www.bom.gov.au/tas/forecasts/hobart.shtml looks boring :p Jan 07 04:36:43 I'm talking about the developer console for apps you've written Jan 07 04:36:56 wabz: heaps of fires down there ... Jan 07 04:36:59 mhm i know, i dont need to code but i think it would be helpful for a lot of people Jan 07 04:37:02 ah Jan 07 04:37:03 you should upload it :) Jan 07 04:37:13 wheres a good place ? Jan 07 04:37:35 to start, maybe android dev foroums? Jan 07 04:37:36 i know... Jan 07 04:37:47 ill publish it on my blog and link to it Jan 07 04:37:52 yea blog is a def Jan 07 04:38:00 speaking of blog, how did you get started? Jan 07 04:38:07 with blogging ? Jan 07 04:38:22 i'm thinking of writing a blog myself, have a dedicated server and website but never really had any experience with blogging or websites Jan 07 04:38:30 other than php scripts to communicate with android Jan 07 04:38:31 i use wordpress Jan 07 04:38:40 could it be that repo 1.8 is just released and they have not had time to upgrade the documentation? Jan 07 04:38:49 could i get a link to your blog? Jan 07 04:38:52 i first used blogger.com but once i discovered wordpress, I've stopped using anything else Jan 07 04:38:58 sure. can i pm it to you Jan 07 04:39:25 yea Jan 07 04:52:21 hi how to get the dir /data/data/ using code? Jan 07 04:53:01 to do what ? Jan 07 04:53:05 zhangxaochen: you mean sdcard? Jan 07 04:53:22 no kaikai Jan 07 04:53:38 i don't think you can get that dir directly, but you can get the /data/data//files via context.getFilesDir() Jan 07 04:54:55 kevinb, that's good . thx Jan 07 04:56:49 hmm can you access a resource from another app? :\ Jan 07 04:57:23 canadiancow: I'm pretty sure that's a no Jan 07 04:57:30 Resources res = context.getPackageManager().getResourcesForApplication("com.example.foo") Jan 07 04:57:33 says stack overflow Jan 07 04:57:40 but im sure i can do this another way Jan 07 04:57:40 that's correct Jan 07 04:57:46 maybe if they're running as the same uid? Jan 07 04:57:54 that's how the launcher loads the icons and widget previews from other apps Jan 07 04:59:58 I would have thought that was what getActivityIcon was for Jan 07 05:00:12 guess not Jan 07 05:00:34 i think that's used by like System settings and the resolve dialog and maybe was originally used by the launcher Jan 07 05:00:51 there's also ResolveInfo.loadIcon (or something like that) Jan 07 05:03:04 im not even sure i have the package name i need though....just a res id. argh Jan 07 05:03:28 what are you trying to do? Jan 07 05:04:34 it's a surprise :P Jan 07 05:05:07 :P well good luck then, I'll look forward to the surprise Jan 07 05:09:54 my app will be used to get arrival predictions for local bus and train lines. The api's are different enough that I'm having trouble using the same activity for both buses and trains Jan 07 05:11:07 make an app that puts buses on train tracks for faster arrival times Jan 07 05:11:18 but you can't, BECAUSE IT'S A GOVERNMENT CONSPIRACY Jan 07 05:11:55 i don't know whether it would be better to make separate activites or to continue this mess I've gotten myself into Jan 07 05:12:23 perhaps fragments will help me? Jan 07 05:12:54 got it working Jan 07 05:14:56 RustyShackleford: the APIs should not be influencing what you are showing to the users Jan 07 05:15:11 time to read "The Inmates are Running the Asylum" Jan 07 05:16:19 i feel betrayed that school hasn't taught me anything yet about program design Jan 07 05:16:42 this gets exponentially harder as the project gets bigger Jan 07 05:16:44 it probably has but didn't label it as such Jan 07 05:17:10 most of our projects are just one or two classes Jan 07 05:17:29 you got to get familiar before you can get intimate Jan 07 05:17:42 in java thats one class to do something, and one class for the Factory :) Jan 07 05:17:48 lasserix, not always =P Jan 07 05:17:53 heh Jan 07 05:18:16 I purchased Code Complete. Now I just have to read that monster of a book Jan 07 05:18:26 thats a good book Jan 07 05:20:13 but … its about implementation. i dont recall mcconnell going into UI / ID Jan 07 05:20:17 does there exist some Parcelable object where I can store one row of an SQLite table? Jan 07 05:20:54 wat Jan 07 05:21:17 hehe Jan 07 05:21:49 is there a way to tell the OS to connect to a paired bluetooth device? (ie, not have to worry about the profile, etc, in your app, but just telling the OS to connect the same way that it would if you were to tap the device in Settings) Jan 07 05:21:52 I'm going to query the table. The query will return exactly one row. I'd like to store that so I can pass it to the next activity Jan 07 05:22:17 does anyone have a really simple method they can pastebin that takes two params: file name and a string, and writes that string to that file on external storge? Jan 07 05:22:28 i thought "oh someone wil lhave done this", but all the examples are ridiculous Jan 07 05:22:29 RustyShackleford: activities are best thought of as loosely coupled Jan 07 05:22:44 you pass the id to the next activity, for it to query Jan 07 05:23:10 that's what I'm currently doing. Isn't that less than efficient having to query twice? Jan 07 05:23:11 canadiancow: https://gist.github.com/2445917d014dcef8882b Jan 07 05:23:24 ty sir Jan 07 05:23:36 np Jan 07 05:23:47 RustyShackleford, single queries are not expensive Jan 07 05:24:09 if you were writing sever software, you'd want to worry but a single query here and there is nothing Jan 07 05:24:27 *assuming you aren't pulling huge blob data Jan 07 05:25:08 most of my tables are small, but I have one which has 15k entries (5 columns) Jan 07 05:25:31 as long as you are not pulling a blob that is some big image or something it doesn't matter Jan 07 05:25:46 you can also use indexing on the 15k entry Jan 07 05:26:31 but don't start worrying so much until you actually come to the point where you can notice a lag Jan 07 05:26:49 for instance, if you were to do a auto-suggestion text search on the 15k it might get sluggish Jan 07 05:27:03 without using indexing and the text-based database format Jan 07 05:27:07 I would like to implement something like that actually Jan 07 05:27:16 worry about it later Jan 07 05:27:18 it's not too hard Jan 07 05:27:38 but when you get to there this is what you'll want to use: http://www.sqlite.org/fts3.html Jan 07 05:28:08 can I do this with just the LIstView class? Jan 07 05:28:25 CursorAdapter maybe? Jan 07 05:28:46 that's what i've done: if you are using newer api there is also a search widget that will i believe make it even easier Jan 07 05:28:49 I want the search to be limited to the entries displayed in a listview Jan 07 05:28:54 oh definatly Jan 07 05:29:03 filter or something Jan 07 05:29:39 first just get it working Jan 07 05:30:02 almost there... Jan 07 05:30:06 fortunatly once you have the database working and most of the implementation for the IO is not difficult to rewrite if you need to optomize Jan 07 05:30:27 http://www.androidhive.info/2012/09/android-adding-search-functionality-to-listview/ Jan 07 05:31:44 exactly what I'm looking for, thanks. bookmarked Jan 07 05:31:46 and don't think your alias stops us from knowing who you really are, Rusty Jan 07 05:32:22 this is the best username I have on any site Jan 07 05:32:40 oh you know where it comes from? Jan 07 05:32:54 the best show in the world Jan 07 05:33:21 dunno about that, but dale is def the best character on that show Jan 07 05:33:41 i love the Y2K episode Jan 07 05:33:55 perfect Dale episode Jan 07 05:34:06 also the fact that he's totally oblivious to John Redcorn Jan 07 05:36:26 what's the css equivalent to "wrap content" :\ Jan 07 05:45:03 canadiancow: something like swing FlowLayout ? Jan 07 05:45:10 nm Jan 07 05:45:22 i just ended up hardcoding a width :P Jan 07 05:49:44 I'm drawing bitmaps through canvas. Some have alpha channels, others are opaque. The bitmap in the canvas is opaque. Should I load opaque bitmaps as rgb565 or argb8888? Jan 07 05:50:54 Concerning speed/performance. Jan 07 05:52:01 hi friends Jan 07 05:52:14 i am really in need of advice Jan 07 05:52:32 I want to know how can we set the VLAN in android Jan 07 05:52:35 wear a rubber! Jan 07 05:52:51 android doesn't support anything with vlans on a stock rom Jan 07 05:53:13 and whatever you do, by odin's raven do not think of a green elephant! Jan 07 05:53:15 you'd a) need to be running a wired ethernet interface, and b) be rooted w/ the dot1q modules Jan 07 05:53:18 Currently I access internet on my android tablet using USB miniport Jan 07 05:53:39 there is no api in android for dot1q Jan 07 05:53:56 any alternative option? Jan 07 05:54:08 root, install dot1q, build bridge-utils, and run it via shell. and it'll probably screw up androids view of the network Jan 07 05:54:08 can we do any netconfig things in android? Jan 07 05:54:32 if you root and treat it like linux and compile custom stuff; outside of the scope of this channel really, you could try #android-root Jan 07 05:54:46 under stock/unrooted, no way Jan 07 05:54:48 ohh Jan 07 05:55:21 What I know currently android 4.2 kernel supports dot1q? Jan 07 05:55:24 isn't it? Jan 07 05:56:13 I just need to know how to setup my interface to accept the specific VLAN tagged traffic Jan 07 05:57:00 i know of no dot1q support in android Jan 07 05:58:17 : I checked this link http://stackoverflow.com/questions/11161227/vlans-for-android-devices Jan 07 05:58:40 In the answer 1 they say it supports Jan 07 05:58:53 but as I am new to android and linux... i dont know its true or not Jan 07 06:01:47 dragon - are you there? Jan 07 06:01:51 news to me Jan 07 06:01:54 good luck Jan 07 06:01:54 I need your advice Jan 07 06:02:13 i've seen no indication of support. apparently there is. never used it, never seen it, never heard of it Jan 07 06:02:21 can you suggest me how can i root my huawei tablet Jan 07 06:02:43 i tried so many online mentioned methods.. but nothing worked for me Jan 07 06:02:59 I have Huawei Media Pad 7 tablet Jan 07 06:03:41 nope. try #android-root Jan 07 06:03:57 ok ... thanks for advice dragon Jan 07 06:12:09 I'm drawing bitmaps through canvas. Some have alpha channels, others are opaque. The bitmap in the canvas is opaque. Should I load opaque bitmaps as rgb565 or argb8888? Jan 07 06:12:11 Concerning speed/performance. Jan 07 06:15:09 I was wondering if anyone here could check if there is a 'Window' menu in Eclipse on a Mac machine. I'm looking to see if Window --> Preferences --> Java --> Compiler is located exactly in the same place as it is on Windows. Or if the word 'Window' is differently labeled on a Mac machine. Jan 07 06:15:10 I don't have a Mac, so I can't check. If someone could do this, it would be greatly appreciated! Thank you.(I tried posting this in #eclipse but it's dead there :-/.) Jan 07 06:18:24 aLearner: its best not not mention Eclipse in this channel Jan 07 06:18:54 anyhow, on Mac, its in Eclipse -> Preferences Jan 07 06:19:32 g00s: I hear you. Thank you for your help. It's for some Android-related work, so, I was hoping it's not too much of a violation. Jan 07 06:19:55 the mere mention of Eclipse gets some ratted up Jan 07 06:20:16 you have been warned :) Jan 07 06:20:44 g00s: Right. Thanks so much for you help. Jan 07 06:36:08 dang, Project Shield will work with Steam Big Picture mode, I hadn't seen that coming Jan 07 06:36:25 interesting times we live in Jan 07 06:43:49 belgianguy: call me a cynic... but I'm not so excited by it Jan 07 06:44:28 Leeds: success is another story, there have been many handhelds in the past few years that turned out to be a dud Jan 07 06:45:10 but that's why I think the Steam part might help it survive, where others just shuttered their stores and you had an expensive paperweight Jan 07 06:45:14 for some reason, it just feels like the sort of things which will come in late... or expensive... or heavy... or limited support... Jan 07 06:45:52 yeah, and coming from a non-game house, it's always tricky Jan 07 06:46:10 right Jan 07 06:46:27 also, apparently US/Canada only, which is a pity Jan 07 06:46:32 at least for launch Jan 07 06:46:34 Leeds: awww :( Jan 07 06:46:48 no Belgium *or* Leeds Jan 07 06:47:17 yeah, I guess they'll want to test the waters some, Belgium's usually in the tail of releases Jan 07 06:50:19 tegra4 … Jan 07 06:50:23 * g00s is waiting for the tegra5 Jan 07 06:53:12 so anyone here able to not do anything? Jan 07 06:53:18 like dont have to go to their job anymore Jan 07 06:53:23 since they made it with android? Jan 07 06:53:51 hah, have that many people gotten rich from android apps? Jan 07 06:53:55 I doubt it Jan 07 06:54:09 seems like angry birds is the only one haha Jan 07 06:54:16 not sure though maybe temple run Jan 07 06:54:18 i have never purchased an app Jan 07 06:55:29 don't know if there are big spenders in the Android ecosystem Jan 07 06:55:33 i havent on android, but have on iOS Jan 07 06:55:45 (purchased an app) Jan 07 06:55:55 I thought gotten rich ;) Jan 07 06:56:01 heh Jan 07 06:56:25 i quit my day job, but it's not like i "don't have to go to their job anymore", it's that my apps are my job Jan 07 06:56:28 hm, how would I compile an APK, I have a repository clone for an app and I want to compile it, where would I start? Jan 07 06:56:32 * g00s still thinks the mobile app bubble is popping already Jan 07 06:56:46 perhaps this is a dumb question, but how does Android compare to iOS? Anyone here prefer iOS? Jan 07 06:56:55 kevinb: nice!! Jan 07 06:57:03 g00s yea soon give another 2-3 years Jan 07 06:57:14 I've heard that iOS is a better platform to develop for because users actually buy apps, unlike Android users Jan 07 06:57:16 RustyShackleford: you aren't going to get a good answer to that here :D Jan 07 06:57:33 ehh Jan 07 06:57:34 iOS is very competitive also Jan 07 06:57:37 RustyShackleford, it's best to avoid those questions in bias zones Jan 07 06:57:38 i can tell you something for one of my games Jan 07 06:57:41 Obj-C ain't no Java though Jan 07 06:57:45 I've had a couple of people spend over $25 Jan 07 06:57:58 but other times no one spends Jan 07 06:58:06 obviously there is bias here, but you gotta admit android has some problems Jan 07 06:58:11 pshhh Jan 07 06:58:22 yeah, the first problem is Google :D Jan 07 06:58:30 * g00s runs Jan 07 06:58:37 i picked android because i know that itll outrun apple in the marthon Jan 07 06:58:39 I like that only a few devices run iOS Jan 07 06:58:45 g00s: run all you want, they know where you are :p Jan 07 06:58:49 :( Jan 07 06:58:55 ^ this =[ Jan 07 06:59:05 Android has got too many different devices Jan 07 06:59:34 I think Android will only get more devices, and that a "roll once, run everywhere" sort of UI would be nice Jan 07 06:59:42 and with steve jobs gone I dont think apple has what it takes. Plus that threat he made won't come true since hes gone Jan 07 06:59:46 eg TV's and game controllers Jan 07 06:59:50 I chose my device because it has a #$@%ing real keyboard in a slideout (Captivate Glide/Galaxy S Glide) and the fact Android lets me customize without having to jailbreak the OS Jan 07 07:00:22 RustShackleford: what is a problem for developers is heaven for consumers Jan 07 07:00:28 hell* Jan 07 07:00:39 kaikai: explain? Jan 07 07:00:44 RustyShackleford: choice is never a bad thing Jan 07 07:01:04 sometimes it just gets boring seeing the same device over and over agian lol Jan 07 07:01:11 belgianguy: but it is; decision fatigue Jan 07 07:01:16 RustyShackleford, choice allows users to be more confortable with their devices Jan 07 07:01:29 "look I can do this with my phone" oh, is that an iphone? I have one too Jan 07 07:01:40 I rather like Apple products, but I'm broke, so no Macbook or Iphone for me Jan 07 07:01:41 g00s: yeah, consumers don't know what to pick, but I do think they're better informed nowadays Jan 07 07:01:44 iphon is overpriced and is only selling because of brand Jan 07 07:01:45 I personally had very little choice because the whole industry seems to neglect the fact that keyboards are nice features Jan 07 07:02:06 most phones are overpriced. google tried to reset those economics with the N4 Jan 07 07:02:08 I need it in this area, I type a lot and it's currently 15F/-10C out Jan 07 07:02:34 I just hope Samsung doesn't push the other android vendors out of the market Jan 07 07:02:34 another reason why android is better, all sorts of devices for all sorts of people Jan 07 07:02:45 thats where google was smart haha Jan 07 07:02:54 belgianguy: last i checked, they were the only ones profiting from android Jan 07 07:02:56 every year different maker/designer for their flagship phone Jan 07 07:03:39 i think to a large degree, what happens to android in the future depends on (1) what google does to motorola and (2) if samsung decides it Apple vs Samsung, not Apple vs Android Jan 07 07:03:53 oh, and then there is amazon, meh Jan 07 07:04:06 g00s: the mobile bubble hasnt popped completely yet though Jan 07 07:04:20 I'm excited to see where technology is heading Jan 07 07:04:22 just wait until multiplayer games can be played on the fly Jan 07 07:04:26 but ebook sales are declining there; they may be less willing to absorb the cost of their devices in the future Jan 07 07:04:29 Windows is entering the tablet market Jan 07 07:04:39 add 4 years to that and thats when mobile bubble will finally pop Jan 07 07:04:56 I actually really liked the windows 8 tablet I played with at Best Buy Jan 07 07:05:16 imo windows died when bill gates retired as ceo Jan 07 07:05:18 kaikai: soon writing for mobile will be like writing for desktop; except for UX differences; tools and APIS will be more similar. I think Ubuntu Phone started this trend Jan 07 07:05:29 they seem to be the first converging on the Phone as the device for everything Jan 07 07:05:29 g00s: have you tried libgdx? Jan 07 07:05:34 no Jan 07 07:05:52 g00s: unfortunately, I don't think Ubuntu Phone will be very successful Jan 07 07:05:57 its a framework which if you make a game for desktop, web, or android its available for all of those systems Jan 07 07:05:58 me neither Jan 07 07:06:10 they dont have relationships with carriers Jan 07 07:06:34 eh, the way i see it in the future there wont be any more carriers Jan 07 07:06:35 and openness and mobile carriers doesn't go together Jan 07 07:06:41 Google themselves had a rude awakening dealing with carriers in the ealry android days Jan 07 07:06:51 g00s:? Jan 07 07:06:54 carriers have screwed over so many good devices for years Jan 07 07:07:00 would you mind telling that story? never heard of it Jan 07 07:07:03 Google had a vision for Android that … the carriers had different "concerns" Jan 07 07:07:04 oh man, if I see Verizon apps on an Ubuntu Phone... Jan 07 07:07:21 drives me nuts to have apps that I can't uninstall Jan 07 07:07:28 well honestly im saying that in a couple of years carriers will no longer be needed as the middleman for communication Jan 07 07:07:34 most likely just ISPS Jan 07 07:07:37 well I'll be curious on how to use the terminal through touch ;) Jan 07 07:08:00 I'm skeptical of running full blown linux on a phone Jan 07 07:08:12 i don't want to dick around with dotfiles on my phone Jan 07 07:08:15 yeah, power architecture has me curious Jan 07 07:08:28 well, we'll see what it does, I don't see it making big waves, but it could put pressure on the low-end segment Jan 07 07:08:58 i'm not optimistic about html5 apps , so there goes FireFoxOS Jan 07 07:09:15 just imagine having to fix xorg on your phone Jan 07 07:09:22 i think the most likely 3rd player will be windows phone still, maybe take a bit longer Jan 07 07:09:22 after an update breaks it Jan 07 07:09:29 I don't get the obsession with html5 apps, it can do something, sure, but nothing beats native Jan 07 07:09:45 RustyShackleford: i /think/ they would use wayland ... Jan 07 07:09:55 that was the whole point of wayland, if i recall Jan 07 07:09:57 is Wayland done yet? Jan 07 07:10:03 blegianguy: but but, what if phones get an upgrade to its systems? Jan 07 07:10:07 hit 1.0, but i dont thin its done Jan 07 07:10:08 i don't think its done yet Jan 07 07:10:09 I'd have expected to see it land in the desktop Jan 07 07:10:24 if you're looking at a 3.0 ghz cpu html5apps's under performance can be looked over Jan 07 07:10:41 the lumia 920 was the best selling phone on amazon for a while, until they ran out of stock Jan 07 07:10:48 kaikai: sure, but you're still tinkering in a browser window Jan 07 07:11:26 microsoft has screwed over so many people though … heh, seems like they are getting what they deserve :D Jan 07 07:11:44 i mean, can't feel sorry for them, even though i like WP Jan 07 07:11:57 I think they are onto something with their tablets Jan 07 07:12:19 Windows 8 gets alot of criticism, but it's a great idea to use the same interface on a tablet and a desktop/laptop Jan 07 07:12:20 g00s: +1 Jan 07 07:12:39 last I heard they were complaining that WebKit browsers were becoming a monopoly Jan 07 07:12:43 and that that wasn't fair Jan 07 07:12:44 ... Jan 07 07:12:50 hehe Jan 07 07:13:01 whats … Jan 07 07:13:05 thats all i see g00s Jan 07 07:13:12 so many people through … heh, Jan 07 07:13:51 g00s: so Wayland would bring along the end of X? Jan 07 07:13:51 android has a few big problems; one is this shitty dalvik vm Jan 07 07:14:03 and the Java framework, i think its a dead end Jan 07 07:14:31 belgianguy: i dont know Jan 07 07:14:43 X is so damn complicated to maintain Jan 07 07:14:50 development is glacial Jan 07 07:14:59 yeah :/ Jan 07 07:15:28 was kinda hoping that they were supercharging Ubuntu now that Windows 8 stumbled a bit Jan 07 07:15:39 but they invested that time into a Phone OS Jan 07 07:16:01 while I understand their ambition, something like Wayland would have been nicer atm IMO Jan 07 07:16:46 Ubuntu Phone does have some nice features tho; for enterprise they have their Landscape stuff for device management Jan 07 07:17:15 i just dont see who would make a Ubuntu phone. Jan 07 07:17:48 Samsung has been going with Tizen for Plan B Jan 07 07:19:54 at least i would like to see Google just license the oracle JVM; now that oracle is supporting ARM soon, i think its a problem one path of Java is evolving and the other is not Jan 07 07:20:10 I've already used libraries that work fine on Java 7 but crap out on dvm Jan 07 07:20:22 and Java 8 will be here in Sep Jan 07 07:20:30 lambdas, finally, holy crap Jan 07 07:24:12 g00s: ahoy Jan 07 07:24:19 p_l: hey ! Jan 07 07:25:01 belgianguy: Wayland is shit :3 Jan 07 07:25:53 g00s: as for DVM/JVM... I don't think it's feasible to license JVM from Oracle Jan 07 07:25:53 p_l: howcome? Jan 07 07:26:22 Oracle would want too much Jan 07 07:26:43 yeah, Oracle already sued Jan 07 07:26:45 belgianguy: it's a) step back without all the other bits b) Works essentially only on linux c) doesn't have slightest idea how to deal with increasingly common case of multiple *incompatible* GPUs Jan 07 07:26:48 What makes you think that? The databases licenses are practically free! Jan 07 07:26:54 deepy: *SNRK* Jan 07 07:27:15 and if it doesn't make them money, they'll gut it Jan 07 07:27:17 see MySQL Jan 07 07:27:18 deepy: Larry Ellison is what every evil CEO wants to be when he grows up, at least in software Jan 07 07:27:46 Let me quote a brilliant mind, @DEVOPTS_BORAT. "In devops we are face fiscal cliff every year when Oracle license is up for renew." Jan 07 07:27:52 its tough having a platform that depends on an Evil CEO to any degree :/ Jan 07 07:27:58 I don't know where the extra T came from Jan 07 07:28:01 belgianguy: the question is, whether they bought MySQL to actually earn money from it Jan 07 07:28:14 deepy: looks like nice freudian slip :3 Jan 07 07:28:15 p_l: rather to destroy it IMO Jan 07 07:28:35 And personally, being a PostgreSQL fan, I think they're doing the right thing with MySQL Jan 07 07:28:50 deepy: and even if you pay highest premiums to Oracle, you get shit instead of support Jan 07 07:29:07 they keep jacking up your prices too Jan 07 07:29:34 and yes, I'll happily dance on MySQL's grave. It's like a saner sibling of Wayland that went into databases, but still retarded :> Jan 07 07:29:58 ouch, I always thought it was 'okay' Jan 07 07:30:28 i think as PostgreSQL's replication has gotten better and it has gotten faster, its a great DB Jan 07 07:30:35 hi Jan 07 07:30:40 ok, let me repeat my question from yesterday. during the bulk transfer, i lose approx 0.1% of the data, when streaming 4MB/s, and 0.01% of dta, when streaming 0.5MB/s, from a custom usb device to android host Jan 07 07:30:51 usb* Jan 07 07:31:19 belgianguy: You probably are a) dealing 99% of time with language covered by ASCII (or maybe latin1) b) Didn't do too much advanced queries c) Had luck with system consistency :3 Jan 07 07:31:34 why is bulktransfer so crappy. can it be improved Jan 07 07:32:14 Sculptor: what are the devices involved? Jan 07 07:32:34 rtl2832u based dvb-t dongle Jan 07 07:32:38 p_l: I was helping out some slovakian dude Jan 07 07:32:45 nearly kicked the laptop Jan 07 07:32:55 p_l: I like how MySQL silently truncates data that's too long Jan 07 07:33:08 Java and PHP and MySQL couldn't agree on what to use (UTF-8, UTf-16 latin1 etc...) Jan 07 07:33:11 hey guys i have a helpful tip for android developers. i wrote a script to hide the unpublished apps for you dev console Jan 07 07:33:13 a realy pleasure Jan 07 07:33:17 -y Jan 07 07:34:16 belgianguy: MySQL can't decide on single encoding at three different points in just its own code Jan 07 07:34:47 (that is, client, transfer, and in-db encoding, all handled improperly by MySQL, and requiring utmost care when setting up first) Jan 07 07:35:27 yes, my PHP generated JSON came back as NULL NULL NULL here, but on the live server it just worked Jan 07 07:35:48 (had to set an SQL NAMES flag to get rid of that) Jan 07 07:37:48 any people using Guava here? Jan 07 07:38:19 and could tell me how to go from a String "a;b;c" to a char array containing [a,b,c] Jan 07 07:38:56 Splitter can split the String, but I don't see how to get them into a char array (well using a for loop, but that doesn't feel right) Jan 07 07:39:11 findviewbyid is a depth first search Jan 07 07:39:21 UGH Jan 07 07:40:06 hey guys, how to cleanup ongoing notifications, because sometimes when my service is destroyed, ondestroy doesnt get called Jan 07 07:40:16 and my ongoing notification just hangs there Jan 07 07:40:49 i noticed that some apps do a cleanup even when process is killed via settings Jan 07 07:41:02 but mine just hang there until app is relaunched Jan 07 07:41:20 maybe someone has encountered that sort of problem Jan 07 07:43:00 I've never messed around with the NDK Jan 07 07:43:10 can I make an entire app in C++? Jan 07 07:43:52 in theory but I wouldn't recommend it, especially if it's not a GL app Jan 07 07:44:04 or is it analogous to how you can extend Python with C? Jan 07 07:44:42 RustyShackleford: JNI is an inbetween layer that defines functions that it can call in C/C++ Jan 07 07:45:00 it's pretty overwhelming when you're used to regular Android Jan 07 07:45:03 (IMO) Jan 07 07:45:11 meh, it's just error prone Jan 07 07:46:09 I am working with the NDK for the past weeks Jan 07 07:46:55 * Zharf for the past year or so Jan 07 07:47:42 I'm the expert here, I've downloaded the NDK but nothing more Jan 07 07:47:49 :) Jan 07 07:47:55 that doesn't imply expertise Jan 07 07:48:19 It implies a kind of expertise, maybe not one that's relevant ;-) Jan 07 07:48:52 i just mean which translator is better? one who speaks italian and english or own who speaks italian, spanish and english? ;p Jan 07 07:55:24 pre honeycomb app widgets just suck Jan 07 07:55:51 my phone had Gingerbread for such a long time, finally got the ISC upgrade Jan 07 07:56:09 god I can't believe 50% of android devices run Gingerbread Jan 07 07:56:16 poor people Jan 07 07:58:36 i still have Froyo :P Jan 07 07:58:45 i've really been wanting to ditch 2.x support in one of my apps but can't justify dumping gingerbread yet Jan 07 07:59:12 and if i'm keeping gingerbread it might not make sense to ditch froyo or eclair either Jan 07 07:59:46 I still have a froyo device as well, but I mostly use my icb :p Jan 07 08:00:17 Can I use AutoCompleteView with an url data source? Jan 07 08:00:48 * p_l is only few weeks in into using a device that has something newer than 2.1 as official (or borked 2.3 unofficial) Jan 07 08:01:02 Is it faster to draw an argb_8888 opaque bitmap on an argb_8888 surface or to let the system convert the bitmap to rgb_565? Jan 07 08:02:01 greatjustice: i think romainguy has posted something about this somewhere (search for his name and rgb_565 maybe) . i think it might depend on the device and the android version. Jan 07 08:03:35 bah. annoying. if my launchmode is singletask I can't use external barcode reader. if it's standard program does not return precicely to same state and quit button closes just one copy of the program, leaving bunch more. Very annoying :-( Jan 07 08:03:46 kevinb: there's a so post I'm referencing, but he only explicitly comments on rgb565 able to be memcpy onto surface but doesn't say if that can be done with argb_8888 Jan 07 08:03:56 greatjustice: rgb_565 will have really bad banding in some situations. i think it will always use less memory but maybe in some case it would use more or the same as it might need to convert to draw it or something Jan 07 08:04:00 I don't know about blending there Jan 07 08:05:04 http://stackoverflow.com/questions/4329663/how-to-optimize-canvas-drawing-drawbitmap-on-android Jan 07 08:08:12 Can a ArrayAdapter fetch data from a network resource? Jan 07 08:10:47 tneva82, I see that in a lot of applications for some reason Jan 07 08:21:58 well I could live with this but I'm bit worried will there be more unexpected issues. Like double sendings of information to server or something. I can live with quit button simply being removed so that user gets away from program after logging out by pressing home button. Jan 07 08:23:19 and again unepxected side effect. now it doesn't stay logged in :-< Jan 07 08:23:46 maybe we just need to drop the barcode idea until we can create it internally rather than rely on external activity Jan 07 08:25:15 what problem are you having? Jan 07 08:27:45 well if I have launchmode as singletask external intent calls result null results. if I have it standard I keep running into piles and piles of side effects. Jan 07 08:28:11 not sure if the barcode feature is worth having to go through entire program to hunt down all the side effects Jan 07 08:28:25 might be easier to create own barcode scanner... Jan 07 08:29:51 so you're probably doing something wrong Jan 07 08:30:02 i've never used singletask Jan 07 08:31:33 hi how can i set the spinner items' custom id ? Jan 07 08:35:52 i use startActivityForResult on external intents with singletask Jan 07 08:36:38 well. how should I do it so that there doesn't come n+1 tasks? Now when I press quit button that has this.finish() bang one more activity that has been created. takes like 20 clicks to really get rid of the program. Jan 07 08:36:59 the "quit" button? Jan 07 08:37:01 Also since the program does stuff on background how can I be sure it doesn't do same task multiple times with say 10 instances? Jan 07 08:37:13 yeah. button on logon screen that's supposed to quit the program Jan 07 08:37:15 there are many ways to manage that Jan 07 08:37:20 you shouldnt have a quit button Jan 07 08:37:21 ever Jan 07 08:37:37 well users say they prefer it rather than have to press home butotn Jan 07 08:37:54 I'm doing work for the sake of users so if they want something I need to figure way to do it Jan 07 08:38:09 no they dont Jan 07 08:38:14 I do. Jan 07 08:38:40 what does yoru app do that's so special that it needs an exit button Jan 07 08:38:43 thats what users are going to wonder Jan 07 08:38:51 valgrind why Jan 07 08:38:53 so you know what the users who have given feedback want better than I who has the comments sitting on my desk? Interesting Jan 07 08:39:02 yes Jan 07 08:39:03 i do Jan 07 08:39:05 lol Jan 07 08:39:19 it is important to ignore users sometimes Jan 07 08:39:27 whateva. not going to arque with guy who thinks he knows more than the users themselves what users what Jan 07 08:39:32 remember there are also users that are happy with it. Jan 07 08:39:36 the vocal ones are not always the majority Jan 07 08:39:43 true but catering to both is better Jan 07 08:39:43 what users say they want != what users actually want Jan 07 08:39:46 you should be prepared to ignore minorities of users Jan 07 08:39:48 I've seen an Android book on OpenGL that used a "quit" button, horrid what they did there Jan 07 08:39:55 found the pid and then killed it Jan 07 08:39:55 well no user is going to say "i dont want X" when an app doesn't have X Jan 07 08:40:04 also there's the issue of how to be sure program doesn't send data to server multiple times if there's multiple instances Jan 07 08:40:12 learn how to write code? Jan 07 08:40:14 if it was minorities maybe. Jan 07 08:40:22 quit can be a useful function. Jan 07 08:40:24 not like that's a problem that hasn't been solved >9000 times Jan 07 08:40:30 but when it's not and it's feature that should be easy to implement why not Jan 07 08:40:36 don't go freewheeling with conventions, they're there for a reason Jan 07 08:40:36 hell it's not even the biggest issue I have Jan 07 08:40:44 an exit button is going to slow your app down for users Jan 07 08:40:53 and then they're going to complain that yours starts up so much more slowly than other apps Jan 07 08:40:55 'I do not want this activity to start in the current state on resume' Jan 07 08:40:56 what awould be the prob implementing the exit in the options menu, for example? Jan 07 08:41:00 but if the program starts to send data multiple times(remember it's running on background constantly until told to stop doing it) all hell breaks loose Jan 07 08:41:06 unless you have it overpopulated, which shouldnt be the case Jan 07 08:41:10 eeeh Jan 07 08:41:23 so what difference does it do is it in option menu or log out screen? Jan 07 08:41:23 valgrind, because it makes users think it's necessary Jan 07 08:41:26 and then slows down their phone Jan 07 08:41:35 if it does the this.finish() it runs into same problem Jan 07 08:41:41 yes Jan 07 08:41:48 you need to press the button 10+ times to finish it Jan 07 08:41:52 ? Jan 07 08:41:59 actually 2 times if it's in option menu. once to show it, once to press it Jan 07 08:42:05 so it would be 20+ clicks Jan 07 08:42:22 why do you have 10 instances in one task Jan 07 08:43:06 and again: How to make damned sure it doesn't do the job it's supposed to be doing on the background without user interference multiple times if there's 10+ instances running? Jan 07 08:43:29 there are a thousand ways Jan 07 08:43:34 the best depends on exactly what the job is Jan 07 08:43:38 that's the biggest worry I have here. Debugging that now with the size of program is going to be major PITA Jan 07 08:43:41 and if you really can't figure that out... Jan 07 08:43:58 if i understand correctly, you don't want there to be 10+ instances running right? Jan 07 08:44:06 i think focus on figuring out why that is happening and stopping it Jan 07 08:44:18 a quit button is not needed to avoid that Jan 07 08:45:13 you shoul consider that there are applications to kill applications which suggests users do want it and do not know the life cycle of an android application Jan 07 08:45:32 launchmode=standard, then user goes to home screen, comes back, do that some more times. then press log out button. If I press quit button it shows the logon screen again=there's clearly more than 1 instance running Jan 07 08:45:43 seems everytime the program's icon is pressed new instance pops up Jan 07 08:45:55 then you've done something wrong Jan 07 08:46:03 reasons I like Android number 27, don't have a development environment set up on your computer yet, no problem, ar least one person has ported the Android IDE to Android Jan 07 08:46:05 fair enough as long as only one of them actually sends data Jan 07 08:46:19 no Jan 07 08:46:20 not fair enough Jan 07 08:46:27 if that's happening, you have a bug in your app Jan 07 08:46:46 (Assuming the 10+ spare ones don't also eat up battery...One instance constantly on background doing work eats it enough TYVM) Jan 07 08:47:02 related AIDE and an open source repository still available for an open source app together are awesome Jan 07 08:47:36 the app got pulled from Play Store for some reason :. Jan 07 08:47:37 :/ Jan 07 08:47:54 tneva82: can't the program check if the service already is running, and then just shut down if it is? Jan 07 08:48:12 I don't know if you can enforce a Singleton approach that way Jan 07 08:49:15 Datalink: AIDE? https://play.google.com/store/apps/details?id=com.aide.ui&hl=nl Jan 07 08:49:44 if you already have an instance running, whenever you try to run it again,doesn't it simply resume the current one? Jan 07 08:50:23 unlesss youve done something wrong Jan 07 08:54:36 valgrind: So I thought but doesn't seem like that Jan 07 08:55:24 have you tried checking as you launch the application if an instance is already running? Jan 07 08:55:25 maybe that's why I used the singleinstance in a first place. Probably was part when I was working to get the program in the background even when user has pressed home screen and put screenlock on Jan 07 08:56:32 Singleinstance is evil. Jan 07 08:56:44 massive delay between activities Jan 07 08:56:52 Pure evil Jan 07 08:57:34 Are u finishing onPause? Don't and there shouldn't be an issue. It will resume the current instance Jan 07 08:58:05 valgrind dont do that Jan 07 08:58:11 if you HAVE to check ,you've done something wrong Jan 07 08:58:13 belgianguy, yep Jan 07 08:58:21 You probably don't need it, but the intent flag reorder to front comes to mind... Jan 07 09:00:07 I imagine he's finishing onpause or something Jan 07 09:21:30 has anyone here worked with an IOIO board? Jan 07 09:26:21 I have a widget activity that opens on clicking the widget. How do I set the flags so that the widget activity is its own, not connected to the non-widget activity task stack? Jan 07 09:39:38 i'm figuring out the widgets stuff Jan 07 09:39:58 so we need to create new remoteviews everytime we need to update it, right? Jan 07 09:40:16 yeah thats how it works Jan 07 09:40:18 seems so Jan 07 09:40:28 i was just reading tutorials on that Jan 07 09:40:32 each remoteviews is a new instance of the view hierarchy that represents whatever xml you point it too Jan 07 09:40:47 not that setInt is broken for some things, like setGravity Jan 07 09:40:53 just fyi Jan 07 09:41:25 erm... hello, I'm thinking of creating a simple media player, with play, pause, rewind, fast forward, go to next 5 secs, etc etc (this kind of features...). I thought about using this: http://developer.android.com/reference/android/media/MediaPlayer.html Do you think I can do it with it? Jan 07 09:41:43 gmag: yes, you can Jan 07 09:42:00 stiggpwnz, thanks Jan 07 09:43:50 lasserix: but it seems very ineffective, but it's the proper way, yeah? Jan 07 09:44:23 stiggpwnz, are there any other more effective ones Jan 07 09:44:24 ? Jan 07 09:45:16 lasserix: I mean constatnly allocating and collecting garbage. I don;t know, that's why Im asking. I google'd it a bit, and it's seems like the only way but I don't like it Jan 07 09:45:28 NITR0GEN: i don't know Jan 07 09:45:49 for example if I have a mediaplayer and a progressbar in a widget Jan 07 09:46:08 it will mean that I'll be creating new instance of remoteviews every second Jan 07 09:46:18 for god knows how much time Jan 07 09:46:34 seems pretty fucked up Jan 07 09:51:04 widgets aren't really designed for that use case imo Jan 07 09:51:26 appel1, media player you mean? Jan 07 09:52:11 no, he means putting progressbar for a media player in a widget Jan 07 09:52:11 NITR0GEN: real-time data that updates frequently Jan 07 09:52:43 thanks for the answers Jan 07 09:55:32 you could just have a progress indicator that doesn't update every second, like for example the BeyondPod widget Jan 07 09:58:03 stigg: yeah thats how you have to do it Jan 07 09:59:36 http://stackoverflow.com/questions/5097161/can-someone-explain-remoteviews-gc-behavior Jan 07 09:59:43 about progress updating in Jan 07 10:07:14 argh, after days wrestling with JNI I just found out you can write fully native apps as well Jan 07 10:15:12 My native platforms seem to be diminishing Jan 07 10:15:26 Is it normal for them to knock down native platforms to just arm now? Jan 07 10:18:08 'them' ? Jan 07 10:19:25 dunno, ARM... I got it only on mobiles, and has no presence to me outside of some embedded stuff where I might actually prefer PPC on the chance I get OpenFirmware Jan 07 10:19:56 "HTC has failed to turn its fortunes around in Q4 2012, posting its lowest profit since 2004 " .. ouch Jan 07 10:20:41 outside of "small end", and often Cortex-M series at that, ARM seems pretty not there in some of the more "closed" (like ARM in general) areas that I might work in, too Jan 07 10:22:58 this is a pretty interesting chart (IT tablet adoption) http://photos.appleinsider.com/13.01.07-CIO_Survey-2.jpg Jan 07 10:23:31 i didn't think tablets were taking off that rapidly in the enterprise Jan 07 10:27:46 I have an app which uses getActionbar which is not available in froyo. so is there anyway I could check it from within the app in an if condition so that it won't crash? Jan 07 10:33:01 obscurant1st: http://developer.android.com/training/basics/supporting-devices/platforms.html Jan 07 10:33:11 obscurant1st: or you could use a librarly like actionbar sherlock Jan 07 10:42:09 Thanks! :) Jan 07 10:48:13 obscurant1st, ABS is a good choice, but a simple answer to your question would be to check the API level (Froyo is api 8). http://developer.android.com/reference/android/os/Build.VERSION.html#SDK_INT Jan 07 11:06:21 how to remove underline from autolink xml attribute? Jan 07 11:11:21 hi guys, n00b here... my ListAdapter takes in a list of 10 items... get getView is never invoked? Any likely reason for this? Jan 07 11:12:16 oh damn, after 20mins I think I just found it.. typical as soon as I ask! Jan 07 11:18:03 Hi guys, can you please tell me if there is a xml attribut that is Shrinking object from all sides?? Something like Inverted Padding :) ? Jan 07 11:27:24 first time layout attempt here... I have a ListView (horizontal) with TextView, Button, Button... I want the TextView to fill up all available space (on the left) and the buttons are simply wrap_content. How can I get this layout? Jan 07 11:27:51 or is this a GridLayout? Jan 07 11:36:04 so yeah, name on the left, and the two buttons far right of the list. ideas? http://pastie.org/5642203 Jan 07 11:44:24 Which e Jan 07 11:44:43 Eclipse do i need for creating android apps? Jan 07 11:44:52 I see 6 different versions o.o Jan 07 11:45:41 its included in the sdk, preconfigured Jan 07 11:45:51 DOSP: ehm... you could try margins.. Jan 07 11:46:08 aaaaa Of cousrse Jan 07 11:46:20 !I just forgot how its called :D :))) very Thanks :) Jan 07 11:47:14 ? Jan 07 11:49:02 Aha2Y: http://developer.android.com/sdk/index.html Jan 07 11:49:03 wait no Margin just make a space around object, doesnt it ? Jan 07 11:49:34 DOSP: yes, you can try negative margins, i'm not really sure what you mean by 'shink' the object without adding space around it. Jan 07 11:49:58 DOSP: the difference between margins and padding are that padding adds space to the inside of the element, margins add it to the outside Jan 07 11:50:57 DOSP: you can just set the size if you want it to be smaller.. Jan 07 11:51:52 well i dont want to set size because then i need to edit the size for whole bunch of objects in every dpi and landscape Jan 07 11:52:37 what is this object that is too large for you? Jan 07 11:53:45 what's the easiest way of getting the position tapped in onClick? I want to set the position of a TextView to be the position clicked. Jan 07 11:54:02 the OnClickListener is on an ImageView, for the record. Jan 07 11:56:18 alexander__b, you might have a look with onTouch events Jan 07 11:56:29 adq: thanks for the pointer. Jan 07 11:56:40 onclicklistener does not provide coordinates but onTouch does Jan 07 12:03:22 is there a way to capture the screen in recovery? Jan 07 12:03:43 the SDK's monitor tool does not seem to work Jan 07 12:05:21 hmm, would the Ouya suffer from the sudden interest in Android gaming? Jan 07 12:05:44 wrt the SteamBox and Nvidia's err .. controller-screen Jan 07 12:06:15 and the n different chinese unbranded usb sticks Jan 07 12:07:01 hi guys i need to implement the autocomplete Text view for the getting city using google places api.I saw the tutorial to find the city using autocomplete text view in android.i have done everything that is instructed but now when i hit this https://maps.googleapis.com/maps/api/place/autocomplete/json?&sensor=false&key=AIzaSyBbXQA1FIH4cwrYkztX-BtpptL5zNk4_Xg&input=ban.it always throws me an exception saying : java.net.Unkno Jan 07 12:07:41 but the same url work fine when i hit through browser and i am getting the results also. Jan 07 12:07:56 please help ......what mistake i am making Jan 07 12:08:23 here is the link to source code: http://stackoverflow.com/questions/14195382/google-place-api-for-android-to-find-city Jan 07 12:09:13 what would be a nice dummy project to use for a job interview? Jan 07 12:09:33 I was fiddling around with NDK but quite underestimated the depth of that rabbit hole Jan 07 12:09:46 (JNI is okay, pure C++ = eek) Jan 07 12:10:12 so use plain C Jan 07 12:10:28 o.O Jan 07 12:10:56 I thought that was the obvious purpose for the ndk Jan 07 12:11:02 you don't need NDK, and even if you think you do you still probably don't need it Jan 07 12:11:07 :p Jan 07 12:11:21 It says all that crazy stuff on the box, too. Jan 07 12:11:43 it looks quite nice though, but I need work Jan 07 12:11:48 I've been tinkering for too long Jan 07 12:12:00 jack of all trades etc... Jan 07 12:12:07 It just makes me think, "you'll be okay, don't worry. My C won't kill you, even if my intent is to write C." Jan 07 12:14:14 well I do plan on using OO techniques Jan 07 12:14:19 so C is pretty much, well, out Jan 07 12:14:51 no it's not Jan 07 12:14:57 there's a lot of OO in C! Jan 07 12:16:32 well, still no :p Jan 07 12:16:34 C is out? what? Jan 07 12:16:38 get real Jan 07 12:17:03 OO in C - is like cleaning a bathroom with a toothbrush : it's doable, but it's not the best idea Jan 07 12:17:18 objective-C is not too bad Jan 07 12:17:25 Sculptor: +1 Jan 07 12:18:00 first versions of c++ compilers compiled c++ to c Jan 07 12:20:33 I want to make a yellow-ish rectangle as a background for a textview. what view/thing should I use for that purpose? Jan 07 12:20:55 I have an onTouch event that should bing this up, with the TextView padded inside it. Jan 07 12:21:31 Hi, I just released a really simple webapp for android. But instantly found a problem. And dont know how to adress it. Jan 07 12:21:54 I got phone-numbers that are linked with tel: in the html code. But not working when pressing them in the app Jan 07 12:21:57 that it's a webapp? Jan 07 12:21:58 :) Jan 07 12:21:58 works great on the mobile webpage. Jan 07 12:22:06 Zharf: Ok, thats the second problem ;) Jan 07 12:32:02 hello Jan 07 12:36:52 alexander_b: just set the textview's background to a color resource you specify in xml. Jan 07 12:37:36 Textview is a View, and the background can be a Drawable or Color Jan 07 12:38:35 Er, tag is apparently alexander__b Jan 07 12:39:16 a program I'm working with has BitmapFactory.decodeStream to get an image -- http://bpaste.net/show/MX4iyHi0H8J1CgcIkgU3/ -- how can I further this method to also get the alt-text of the image? Jan 07 12:39:32 greatjustice: I looked at that -- can I somehow achieve padding with it? if so, I can use that I guess. Jan 07 12:39:54 The padding is separate Jan 07 12:40:11 so yes, should have nothing to do with it Jan 07 12:41:36 greatjustice: thanks. Jan 07 12:42:23 greatjustice: works great. Jan 07 12:42:32 alexander__b: I don't know the answer to your pasted code, but you should close the stream in finally, right? Jan 07 12:42:54 ;) Jan 07 12:44:24 greatjustice: not sure. not my code. considering rewriting everything from scratch, effectively getting a fork instead of sending patches. it's... messy... Jan 07 12:44:39 Or something ought to be turned off it seems. Though I have no familiarity with url connections, there are red flags going off for that code Jan 07 12:44:50 Okay Jan 07 12:44:54 greatjustice: it crashes when I run it w/o a net connection. Jan 07 12:45:24 Well that's not good lol Jan 07 12:45:34 nullpointerexception? Jan 07 12:46:05 hence why a clean-room reverse-engineering effort might be better than... fixing this. Jan 07 12:46:09 no. just hangs and forcecloses. Jan 07 12:46:34 and sometimes just doesn't do anything. that's the most fun, because you don't know if it's your fault or the app's... Jan 07 12:46:49 Yeah that code sucks :P. Well good luck to ya I'm off Jan 07 12:48:29 its never the apps fault, you wrote the app right? its your faul Jan 07 12:48:39 QubeZ: no I did not. Jan 07 12:48:59 QubeZ: +1 for reading comprehension. +2 for simply being a nice person. pat yourself on the back. Jan 07 12:49:00 so you're talking about from a user perspective, not developer? Jan 07 12:49:25 alexander__b: you're too sensitive Jan 07 12:52:26 is there some html parser that can get the alt text tag of an img from an inputstream? Jan 07 12:55:21 alexander__b, jsoup is great Jan 07 12:55:36 but it might be heavy if you only need it for what you describe above Jan 07 12:58:08 How long has this version of adt been in use? It is buggy when switching between xml editors and java files Jan 07 13:01:39 adq: I think I'll have to just clean-room reverse-engineer this thing, so I'll be occupied with other things for now anyway. but thanks for the suggestion. I'll pull up a tab and look at it later. Jan 07 13:02:27 any hints at nexus 4 bumper availability? Jan 07 13:04:08 Does ctrl+1 (quick fix) work in juno? Jan 07 13:16:31 hi guys Jan 07 13:16:41 i have a problem with an webview... Jan 07 13:17:00 it is loading a code with no background specifications Jan 07 13:17:05 but it is white Jan 07 13:17:44 and i wan the page to take the android app theme background color for the background of the webview Jan 07 13:17:50 what i have to do? Jan 07 13:18:15 also i have some elements under the webviwer Jan 07 13:18:18 are there any ormlite users here? Jan 07 13:18:31 so i can't use the transparent code Jan 07 13:19:35 Hi all, is there a way of getting an adapter position when given a view? Jan 07 13:20:20 do I need to do something fance when I've added a new class in a new file? I get /Info.java:30: package R does not exist Jan 07 13:20:26 note: not using eclipse. Jan 07 13:21:00 what do you use? Jan 07 13:21:17 fuck me, widgets are as easy as notifications... I've always avoided them, so silly Jan 07 13:21:22 Zharf: for what? Jan 07 13:21:28 instead of eclipse :) Jan 07 13:21:44 by the way, R is not a package, so there's something wrong here Jan 07 13:21:47 Zharf: eclipse fills many roles, as I understand it. I use different applications for different roles. Jan 07 13:21:51 Zharf: I know. Jan 07 13:22:55 impossible to say more without knowing more about the code and overall structure and such Jan 07 13:24:43 Zharf: the code is extremely small. the first activity only makes an intent and does startactivity. this starts the activity which fails. this activity only does setContentView(R.layout.info). that's it. inside an oncreate. Jan 07 13:25:22 does it reside in the same package as R or does it import the R from the right package? :) Jan 07 13:25:29 same package. Jan 07 13:25:42 package foo.bar; in both. Jan 07 13:25:58 I suspect your compiler is omitting R for some reason then? Jan 07 13:26:15 IDK. I tried ant debug clean && ant debug install to no avail. =/ Jan 07 13:42:28 hm. my activity is not in AndroidManifest.xml. I guess that's the problem. Jan 07 13:48:05 how can I push a data file when installing the app? Jan 07 13:48:33 I mean, my app opens a sample movie file mp4 that should be in one of the app folders Jan 07 13:50:07 gmag: download it when the app is started the first time Jan 07 13:50:21 gmag: or use adb push if stored locally Jan 07 13:50:40 gmag: nù Jan 07 13:50:43 I was thinking about pushing it with adb, but I don't know the right place to push it Jan 07 13:51:01 nm* do you mean when _you_ install it (to test) or when a user installs it? Jan 07 13:51:50 isn't there a flag you can set on a resource that tells Eclipse "copy this as a resource"? Jan 07 13:52:02 belgianguy, erm... when I (developer) install Jan 07 13:52:49 belgianguy, oh :-o didn't know that was possible, let me see Jan 07 13:54:43 belgianguy, erm... when I create a folder in the tree folder of eclipse, this folder is not created in file system Jan 07 13:56:24 can I create the folder in the file system and add it in the eclipse just like with MVstudio? Jan 07 13:57:27 gmag: no idea, that was just something that popped into my head Jan 07 13:57:33 maybe it's not possible Jan 07 13:57:59 belgianguy, nvm Jan 07 13:58:03 belgianguy, my fault Jan 07 13:58:09 I was in bin/res Jan 07 13:58:12 really sorry Jan 07 13:58:51 belgianguy, so, how do you flag a resource to be installed? Jan 07 14:03:07 gmag: doesn't it get pushed over automatically if you put it in assets or something? Jan 07 14:04:02 gmag: http://www.wiseandroid.com/post/2010/06/14/Android-Beginners-Intro-to-Resources-and-Assets.aspx Jan 07 14:07:40 belgianguy, yeah i'm puting it in assets now, and getting no more errors I think. Now I'm trying to figure out where the file went inside android. Im "adb shell"-ing and calling find Jan 07 14:08:04 gmag, look at the link, you can call assets in a very specific way Jan 07 14:17:56 I'm looking for suggestions for a good book/reference to getting started with android. I'm already a java developer, so something that skips the intro to programming stuff would be ideal. Any suggestions? Jan 07 14:20:56 gaurdro: http://developer.android.com/training/index.html Jan 07 14:26:15 Is there any way to send executable code across IPC ? Jan 07 14:26:49 * maslen doesn't expect it to exist, but hey, you never know ... Jan 07 14:28:43 maslen: I'm going to say "no" Jan 07 14:28:56 with the caveat that you can probably figure out some clever way to send bytecode across and dynamically load it Jan 07 14:29:10 but that's something I would frown upon, and it's definitely not an expected use case Jan 07 14:29:56 it's also a laughably big security risk Jan 07 14:30:07 Trust me, I'm aware about that Jan 07 14:30:22 * maslen spent time yesterday playing with python's pickle Jan 07 14:30:34 tmi Jan 07 14:30:39 :) Jan 07 14:30:56 Let me add in a detail - taking advantage of pickle.loads Jan 07 14:31:15 ok just stop Jan 07 14:31:18 gross Jan 07 14:31:48 maslen: there's support for ClassLoaders in DVM Jan 07 14:33:23 hi all, I'm developing an app using HTML5 (no, I can't use Java). I knew that I cannot get html pages from the network using ajax, but seems that neither local html pages are allowed in android, I get: Jan 07 14:33:25 XMLHttpRequest cannot load file:///android_asset/myapp/page1.html. Origin null is not allowed by Access-Control-Allow-Origin. at null:1 Jan 07 14:33:31 any workaround? any idea? Jan 07 14:37:02 ascarpino: that's strange. Jan 07 14:37:16 I don't know the answer, but poke around stackoverflow. Jan 07 14:38:34 I already did. seems there's a solution from chrome/chromium (passing an option as args from the terminal does the job) Jan 07 14:38:40 but nothing about android Jan 07 14:39:21 uhm..maybe some missing permission. I'll try to localstorage access Jan 07 14:42:39 ascarpino: i created a file based content provider for that Jan 07 14:43:11 belgianguy, another good way is to put resources in res/raw Jan 07 14:43:22 gmag: correct Jan 07 14:43:32 now you remind me of it Jan 07 14:44:59 ascarpino: http://helpmeco.de/2012/2/serving-android-webview-resources-with-content-providers Jan 07 14:45:53 thanks, reading Jan 07 14:50:11 ascarpino: you can serve the files from the assetmanager Jan 07 14:53:14 my issue is that I've to develop an html5 app that can be included in a webview in android, or it can be view in a browser or in webview-iOS for iOS and it works. Jan 07 14:53:33 I don't know if using the assetmanager I've to edit my js code Jan 07 14:54:13 ascarpino: don't read the headline - look at the content provider code Jan 07 14:55:24 uhm...maybe I got it. let me try ;) Jan 07 14:56:10 ascarpino: you open the url "content://my.kewl.provider/test.html" Jan 07 14:56:27 and this might point to assets/html with 10 files inside Jan 07 14:56:40 ok Jan 07 15:26:00 Hey all... When I send Accessory identification to an Android phone it switches, how do I un-switch it? Jan 07 15:27:41 Once I switch my phone into Accessory mode I can not send the Accessory identification again. I need to re-plug the device. Jan 07 15:35:37 Hi, i started android dev 5 days ago so im not using the correct terms but feel free to ask and i will clarify Jan 07 15:35:45 you've already failed Jan 07 15:35:54 ? Jan 07 15:35:58 to continue support, we require one (1) blood sacrifice to the bugdroid Jan 07 15:36:02 insert limb to continue Jan 07 15:36:22 (just ask your question) Jan 07 15:36:29 its a long one give a sec Jan 07 15:36:41 hey, is there any way I can get the decoded frames of a video (mp4, for instance)? I mean, with MediaPlayer (http://developer.android.com/reference/android/media/MediaPlayer.html) or VideoView (http://developer.android.com/reference/android/widget/VideoView.html) Jan 07 15:37:30 I would like to have every single frame in a separate file or memory space Jan 07 15:37:51 Hmm. Jan 07 15:37:58 Well, you're calling setSurface, yes? Jan 07 15:38:07 You may be able to provide a custom surface that will save the content given to it Jan 07 15:38:38 im doing a drivers license app, with 40 questions and want to mark questions i want to go back to, and i was thinking of using "swipe down" to see what questions i have left and if i press that nr 7 i would go back to question 7. So i have an array with questions which can be marked, and want to send it as an intent to the "swipe down view" Jan 07 15:39:00 The implementation is left as an exercise to the reader (along with the fact that latency will possibly cause you to skip frames, etc) Jan 07 15:39:08 how to do this "properly" I don't know, sorry. Jan 07 15:39:40 okamis_: you probably don't want to send the questions as part of the intent Jan 07 15:39:52 you probably want a fragment that will display the list of questions (or a summary) that it loads from somewhere else Jan 07 15:40:17 can intent only send a string? Jan 07 15:40:18 gmag: With hardware acceleraded video decoding this is *probably* unobtainable. Jan 07 15:41:16 okamis_: no, not at all Jan 07 15:41:23 Lachezar, modern SoCs decode using H/W Jan 07 15:41:23 you can send anything that can live in a bundle Jan 07 15:41:55 :-/ Jan 07 15:42:11 Lachezar, any idea where I could read more about this? Jan 07 15:42:24 would it be a bad idea to send an array of ints? Jan 07 15:43:41 Lachezar, maybe I found something http://developer.android.com/about/versions/android-4.1.html#Multimedia Jan 07 15:43:49 gmag: no, sorry, I'm not that proficient. Jan 07 15:44:08 okamis_: intents can send variety of stuff. Jan 07 15:45:12 gmag: The MediaCodec *might* help. Jan 07 15:45:19 yeah lov told me, maybe the right way is to use a fragment Jan 07 15:46:22 okamis_: My _personal_ history shows, that if someone wants to send an array of integers he/she actually needs to send a structure, but is lazy to do so :) Jan 07 15:49:41 Lachezar: in my case i got 40 questions "View A", but i was thinking of using another "View B" to get an overview of which questions i have answered and can easily go back to. my thoughts was if i have answered that question it is represented as true or false in the array with length 40 Jan 07 15:50:04 Hmm, what event listeners are there that callbacks can be registered for, besides the 6 UI-events that are listed in the API guides? Jan 07 15:50:43 (Those are all for Views) Jan 07 15:50:55 But from "view B" if I see that question 5 is not answered and press it, i want to go back to question 5 in "view A" Jan 07 15:53:49 okamis_: This seems a good candidate for a structure containing questions, possible answers, and selected answers. This is a 'state'. And yes, if you make it an activity with two fragments, they can share the state via the owning activity (I think). Jan 07 15:54:30 Anyone here ever work with greendao? The documentation on composite primary keys is not too accurate Jan 07 15:55:11 Lachezar: thx, I skipped fragments in the dev tutorial i will read up on it some more Jan 07 15:58:13 monsti: got "Cross origin requests are only supported for HTTP." Jan 07 16:00:12 I access trough content://, in a js script Jan 07 16:02:24 ascarpino: so you have to stay on the same content:// Jan 07 16:02:28 or use relative paths Jan 07 16:02:31 Lachezar, MediaCodec uses stagefright? Jan 07 16:02:54 I check again my current content then Jan 07 16:03:04 gmag: Ugh! Come again? Jan 07 16:04:00 Lachezar, I mean, is MediaCodec on top of Stagefright? Jan 07 16:05:13 gmag: I have no idea what Stagefright is, and no idea if it is what MediaCodec uses :) Sorry. Jan 07 16:10:33 monsti: I'm going to use YQL :) Jan 07 16:43:10 I'm trying to use UsbManager to detect my USB device. The problem, is that the USB port on the host android device is actually coming out of a USB hub chip. So when I run getDeviceList, I can see the USB hub chip's ProductID, not my USB device's. Jan 07 16:43:43 In logging, I can see that there are two UsbEndpoints on my hub, which is what I would expect. Jan 07 16:44:09 How do I read the ProductID of the UsbEndpoint? Jan 07 16:44:49 The program "USB Device Info" reads the productID of my device correctly, so I know it can be done. Jan 07 16:48:43 jonathan_eyre: getDeviceList returns a hashmap of UsbDevice, on which you can call getProductId() Jan 07 16:50:13 are there any rumors in google-land about providing a way for developers to implement paid updates to apps, i.e. where you can get the current version 2.x for 5$ or pay 2$ if you already bought 1.x last year? Jan 07 16:50:33 Ge0rG: none whatsoever Jan 07 16:50:45 damn. Jan 07 16:50:57 with the saturation of the US american market with androids, my app's revenues are going down Jan 07 16:51:17 and I am demotivated in wrtiing version 2.0 until this problem is solved Jan 07 16:51:40 you could probably hack something together with an in-app upgrade Jan 07 16:52:16 kind of selling AppPro for 5$ and an in-app purchase for App for the difference? Jan 07 16:52:21 thats all not quite nice Jan 07 16:52:36 I think I will just blog about it and hope somebody from Google notices. Jan 07 16:52:55 I suspect you'll get a lot of user backlash Jan 07 16:53:37 dragorn: with an in-app purchase? right... Jan 07 16:53:48 if they already paid? yeah. Jan 07 16:54:17 dragorn: they did. Jan 07 16:54:36 actually, I have kept the app price constant for 1.5 years, with constantly adding new features Jan 07 16:54:52 so I need to bump the price anyway... or provide a Pro version Jan 07 16:55:00 the problem is that a user who downloaded it last week will not know about that Jan 07 16:55:24 and think he's being ripped off Jan 07 16:56:02 unless there is a way to provide less-expensive upgrades for buyers of the old version. Jan 07 16:56:08 which there isn't Jan 07 16:56:24 I was thinking more of releasing V2 as a separate app, and having an in-app unlock which is priced differently for people who have the paid version of V1 installed Jan 07 16:56:45 Leeds: yeah, that'd be possible, but not very nice to maintain Jan 07 16:57:11 or raise the price and attract new users on merit Jan 07 16:57:11 I didn't say easy, I said "hack" :) Jan 07 16:58:24 dragorn: it seems like I'm reaching market saturation already in my focus group Jan 07 16:58:44 then maybe start work on your next app? what does your app do that it's so limited? Jan 07 16:59:03 Leeds: its a ham radio geo-location tracker Jan 07 16:59:35 Leeds: the app still needs some major polish, and I do not have the time for a completely new project Jan 07 17:00:10 it's a bit of a niche thing... Jan 07 17:00:35 in the sense of being a fixed audience, as you say - essentially of no interest to someone who isn't a ham Jan 07 17:01:12 unrelated: interestingly, it seems like for an android 4.x only app, 4.0, 4.1, and 4.2 are equally distributed Jan 07 17:01:22 Leeds: exactly. so I need a way to milk the audience a little more, of course by providing additional features to them Jan 07 17:01:40 Ge0rG: significant extra functionality - extra in-app unlock Jan 07 17:02:00 if the extra functionality isn't significant enough to charge for - you've reached the end of the road for the app Jan 07 17:02:11 Leeds: I'm pondering about a "tablet mode" Jan 07 17:02:24 as an IAP Jan 07 17:02:32 I really hope you don't mean the same functionality with a big-screen UI Jan 07 17:02:41 I do. :P Jan 07 17:03:00 that really is milking your audience, and not in a good way Jan 07 17:03:02 technically, the app yet needs to be migrated to fragments Jan 07 17:03:25 which is a nice bunch of maintenance work that needs to be done Jan 07 17:05:09 Has anyone here tried to use a database in an android application, that uses composite primary keys? I found out GreenDAO does not support it at all, and the ormlite documentation is kind of shady Jan 07 17:08:10 also, providing different packages based on the same source on play store is a pain in the behind, having to fiddle with the package naming all the time Jan 07 17:09:56 Specifically, the problem is a DELETE operation using a composite primary key Jan 07 17:13:32 Hello all, i like to learn development of android applications, please reccomend me good book for begginer. Thanks in advance. Jan 07 17:14:15 does anyone know why ListPopupWindow.setWidth(ListPopupWindow.WRAP_CONTENT) doesn't seem to work? I've posted this on stack overflow: http://stackoverflow.com/questions/14200724/listpopupwindow-not-obeying-wrap-content-width-spec Jan 07 17:14:58 KeyboardNotFound: I actually learned a lot from watching youtube videos Jan 07 17:17:43 android applications is developed in java ? Jan 07 17:18:34 yes Jan 07 17:18:48 KeyboardNotFound: d.android.com and start reading Jan 07 17:21:29 Whether java is object oriented programming language ? Jan 07 17:23:58 http://lmgtfy.com/?q=is+java+an+object+oriented+language%3F Jan 07 17:24:15 Thanks for help :) Jan 07 17:35:27 Okay, my device has an id of 19c8, but it is being read as 6600. I hate having ten fingers... Jan 07 17:36:31 with ten fingers you can count up to 1023. add your toes and you can go up to 2^20 - 1 Jan 07 17:36:44 that should be sufficient? Jan 07 17:39:05 karakuri: my fingers has more than two state! Jan 07 17:40:42 I guess the problem was that is was the same number in different bases. Jan 07 17:40:54 I've been attempting to register a developer account on Google Play, however my transaction on Google Wallet for the registration fee has been "Pending" since Jan 2nd Jan 07 17:41:05 is this a normal latency in processing? Jan 07 17:42:32 nanaki: i don't think so. Is there any other info showing up in your Wallet account regarding the transaction? you can always call their support number Jan 07 17:43:16 just "Message from Google: Thanks for your interest in publishing your applications to Google Play. Please return to the Google Play Developer Site to finish your registration" Jan 07 17:43:25 and following th elink prompts me to pay the registration fee Jan 07 17:43:50 yeah, i would call them Jan 07 17:45:26 ok, thank you karakuri Jan 07 17:50:08 are all permissions shown on the play store 'show all' permissions tab? Jan 07 17:50:48 specifically, 'record audio' doesn't seem to be listed for any of the first several 'sound recorder' hits. Jan 07 17:52:58 hi Jan 07 17:53:09 how do i fix my android game to 30 fps? Jan 07 17:53:37 it's mostly c/c++ (uses the ndk etc) and using openGL Jan 07 17:54:39 play a video, it will run with 30fps :) Jan 07 17:55:18 btw, use shaders Jan 07 17:55:44 i can't use shaders Jan 07 17:55:51 and try port some parts to renderscript Jan 07 17:55:52 using opengl 1.1 Jan 07 17:56:01 renderscript? Jan 07 17:56:19 can anybody tell me how I can best test IAB? I mean I can't buy the static android.test.purchased more than one time... Is there a way to reset it? Jan 07 17:56:22 what's that? Jan 07 17:56:32 http://developer.android.com/guide/topics/renderscript/compute.html Jan 07 17:57:51 will renderscript render faster than native code calling openGL functions? Jan 07 17:58:41 IAB? did you mean IAP? Jan 07 17:59:38 In App Billing :) Jan 07 17:59:47 ah Jan 07 18:00:04 same thing i suppose (come from an iOS background) Jan 07 18:00:12 i used androidbillinglibrary Jan 07 18:00:39 https://github.com/robotmedia/AndroidBillingLibrary Jan 07 18:00:58 all, i'm still stumped on http://stackoverflow.com/questions/14200724/listpopupwindow-not-obeying-wrap-content-width-spec Jan 07 18:01:15 I am trying to implement the v3 version of the API, and it seems to make the purchase and everything, but when it returns it doesn't call my onIabPurchaseFinished() method in my OniabO  Jan 07 18:01:16 anyone got any ideas/ Jan 07 18:01:32 OnIabPurchaseFinishedListener Jan 07 18:11:50 hey guys. i am trying to get LMV licensing to work in my application. I cant figure out how to add the library to my android project. I installed the google play store licensing library through the Android SDK manager. in Eclipse what is the proper way to add this library? Jan 07 18:16:27 karakuri: The content is a ListView, guess how wide that is Jan 07 18:19:15 SimonVT: wrap content? Jan 07 18:20:01 sorry i meant LVL Jan 07 18:20:17 And how wide is your listviews content (your list items) Jan 07 18:20:22 have the package been renamed here? http://developer.android.com/google/play/licensing/setting-up.html#download-lvl Jan 07 18:20:46 is it called Google Play instead of Google Market? Jan 07 18:22:04 wrap content Jan 07 18:22:40 it's android.R.layout.simple_list_item_1, which is just a textview Jan 07 18:23:27 Which is match_parent Jan 07 18:23:39 Which I guess the listview is as well Jan 07 18:23:43 And your popup is wrap_content Jan 07 18:23:51 There's nothing there to define a size Jan 07 18:24:41 hmm, i could have sworn android.R.layout.simple_list_item_1 was wrap_content... Jan 07 18:24:51 ok, well, let me try something else then Jan 07 18:25:05 feel free to post that on SO for some free points Jan 07 18:26:17 You can answer it with your own post once you fixed it :) Jan 07 18:26:39 i could, just wanted to offer you first dibs Jan 07 18:28:29 hmm, that doesn't fix the problem... Jan 07 18:30:00 i see some text, but the popupwindow width is still just a narrow strip Jan 07 18:30:08 Has anyone had a problem with ABS and duplicate options items from fragment after changing orientation? Jan 07 18:31:09 im getting it to work now Jan 07 18:32:00 ctrl-shift-f is a life changer. Jan 07 18:33:56 yeah like most inventions it make you more lazy and you don't do it right from the beginning ;) Jan 07 18:34:18 thats my favorite shortcut Jan 07 18:34:24 along with ctrl-shift-O Jan 07 18:35:39 yes ctrl-shift-o also changed my life Jan 07 18:36:13 ctrl+a; ctrl+i too Jan 07 18:36:17 karakuri: Heh, guess it doesn't quite work as I'd expect Jan 07 18:36:21 You have to define a width Jan 07 18:36:26 Or it'll be as wide as the anchor view Jan 07 18:36:49 TheTrash, what do ctrl+a and ctrl+i do? Jan 07 18:36:51 SimonVt: thats interesting, I wonder why they designed it that way Jan 07 18:36:56 seems inflexible Jan 07 18:37:04 hip2p: select all, then auto-format indenting Jan 07 18:37:14 Probably for spinners Jan 07 18:37:27 TheTrash nice Jan 07 18:37:35 even so, you'd think there'd be a better way Jan 07 18:47:08 hmm, i wonder how I could get around this… Jan 07 18:59:25 is there a way to set all views in an activity to invisible with one command? Jan 07 18:59:33 rather than setting each to .gone Jan 07 18:59:55 Set the topmost viewgroup to gone Jan 07 19:00:28 ok thanks Jan 07 19:01:27 hey guys, how it was to set text into center of the layout it is in ? Like in to center of the screen Jan 07 19:02:32 is the text in a textview? Jan 07 19:02:58 yes its just simple TextView in horizontal LinearLayout Jan 07 19:03:23 so you want to center the TextView in the LinearLayout Jan 07 19:04:40 You could put android:gravity="center_horizontal" in the TextView Jan 07 19:05:24 aah of course, still i think i didnt remember that, thank you very much Sir :) Jan 07 19:05:33 you're welcome Jan 07 19:37:19 what would be a good dev device atm? Jan 07 19:37:33 I had one issued by a friend to test with, but now he needs it back Jan 07 19:38:57 i consider buying a nexus 7 Jan 07 19:39:16 i also have a galaxy s3 Jan 07 19:41:29 I use a Droid Razr Jan 07 19:41:35 oias Jan 07 19:42:04 the real question is what do you need to test. Tablet stuff? n7 or n10, or both, since the n10 definitely performs differently w.r.t. layout, etc Jan 07 19:42:17 (obviously, since it's a bigger tablet. You may care, depending how tablet centric you are) Jan 07 19:42:49 phone stuff? Some nexus device, but then if you have to deal w/ vendor quirks (audio, network, usb, whatever) then you'll need to get a stock of unique vendor devices too Jan 07 19:46:11 I guess the nexus devices are always nice for dev Jan 07 19:46:18 yeah, I'm looking for a phone, a tablet I have around Jan 07 19:46:18 kind of "reference" devices Jan 07 19:46:30 would a nexus 4 qualify? Jan 07 19:48:03 I'm coming from a X10 Mini Pro which I ran a custom rom on Jan 07 19:48:14 so pretty much everything will be an improvement Jan 07 19:49:39 You'd probably have to wait quite a while for a nexus 4 Jan 07 19:49:54 galnex is probably easy to get Jan 07 19:50:02 they're basically constantly sold out Jan 07 19:50:11 sonOfRa: yeah, just read about that Jan 07 19:50:19 and they're a bit out of price range, too Jan 07 19:50:45 huh? i think 299/349€ is pretty alright for a phone with no contract Jan 07 19:50:48 I was very fond of the stock android, don't really know what to expect from Samsung or HTC Jan 07 19:51:03 i love my s3 Jan 07 19:51:10 oh, then I misread, 350 is about my budget Jan 07 19:51:10 belgianguy: garbage. expect garbage. Jan 07 19:51:11 well expect of that wierd camera stuff Jan 07 19:51:20 touchwiz, sense, etc Jan 07 19:51:24 it's all just horrible Jan 07 19:51:27 yeah, bloat Jan 07 19:51:42 not bload Jan 07 19:51:44 *bloat Jan 07 19:51:49 they re-theme and re-skin everything Jan 07 19:51:58 I dare you to find anything, at all, in the settings for the Galaxy S3 Jan 07 19:52:24 hey guys lets take the beautiful holo themes in ICS and just throw them out amirite? Jan 07 19:52:32 iphone clones 4eva Jan 07 19:52:56 the market doesn't demand stock android, though Jan 07 19:53:07 given how well nexus devices sell vs. skinned units Jan 07 19:53:35 belgianguy, I thought nexus4 is $300... if you can manage to get one Jan 07 19:54:02 the 8GB is, but 8GB is always close, at least for me Jan 07 19:54:16 close for what? I don't put any data on my phone, really Jan 07 19:54:27 my phone doubles as an mp3 player Jan 07 19:54:28 urgh, "will not be sold in Belgium" Jan 07 19:54:30 apps and whatnot don't take up that much space Jan 07 19:54:33 effin great Jan 07 19:55:07 I'm just disappointed it won't be available for verizon... Jan 07 19:55:13 i don't know if that would work network-wise, but you could buy one in germany or another european country? Jan 07 19:55:22 And just get a contract from a telco in Belgium Jan 07 19:55:40 sonOfRa, that works for everywhere that is not the US, heh Jan 07 19:55:45 sonOfRa: I'd have my warranty in that country as well then I think, yeah, the hardware (3G etc) *should* just work Jan 07 19:55:58 warranties, who needs those... Jan 07 19:56:12 nothing ever breaks within warranty :/ Jan 07 19:56:18 true Jan 07 19:56:19 pretty much Jan 07 19:56:20 2 weeks after warranty ends Jan 07 19:56:31 but never within Jan 07 19:56:40 I've had my Dell kick it one day after it passed, but they did still fix it Jan 07 19:57:02 Hi everybody. Does anybody have an idea why after I launched a purchase flow using the IAB v3 api, it doesn't call my onIabPurchaseFinished() method in my OnIabPurchaseFinishedListener? It does the purchase as wanted, gives me a toast that the products will show up shortly and goes back to the activity where I started the purchase, but doesn't call that function... Any ideas? Jan 07 19:57:44 you don't have your purchase listener registered? Jan 07 20:00:54 pfn: Where exactly do I need to register it? I just declared a "IabHelper.OnIabPurchaseFinishedListener mPremiumPurchaseFinishedListener" and launch the purchase via: mHelper.launchPurchaseFlow(this, SKU_PRODUCT, value, mPremiumPurchaseFinishedListener, payload); Jan 07 20:00:56 pfn: surely you've never heard of something called a market failure? Jan 07 20:02:19 nope, nevar :p Jan 07 20:02:32 but, this, is assumed to be a non-one-off issue Jan 07 20:02:53 sounds right Jan 07 20:02:54 the short version is "The only way to sell a phone in the US is to go through a carrier, the only people with clout to do this are manufacturers, manufacturers want to differentiate, but they're not good at it." Jan 07 20:02:54 * pfn shrugs Jan 07 20:03:16 it's not that customers PREFER touchwiz, etc. Jan 07 20:03:31 it's that they don't really get much of a choice here, and care far more about other things first Jan 07 20:03:32 lov, outside the usa, the nexus phones are not as hot as the skinned variants, as well Jan 07 20:03:47 * lov shrugs Jan 07 20:04:12 e.g. sgs3 vs. galaxy nexus Jan 07 20:04:36 Can't wait to get my hands on a Nexus 4... :D Jan 07 20:04:41 it sounds like sgs3 outsells the galaxy nexus at something like a 10:1 ratio Jan 07 20:05:00 pfn: so you think this is all right with the PurchaseFinishedListener? Jan 07 20:05:12 sounds right Jan 07 20:05:12 pfn: is that surprising? Jan 07 20:05:14 * pfn shrugs Jan 07 20:05:34 birbeck, I find that surprising if one is to assert that consumers want vanilla android Jan 07 20:05:53 but no one markets the galaxy nexus Jan 07 20:06:05 I'm not saying that they want vanilla android, so much as it is that they don't explicitly want rethemed phones Jan 07 20:06:19 they just don't really care, because in general they don't know any better Jan 07 20:06:23 most consumers dont know that the phone or a pure android experience exists, it speaks nothing about what people want or like Jan 07 20:06:39 yeah, only power users are really aware of it Jan 07 20:06:43 most consumers are dumb sheep Jan 07 20:06:47 they just think that sgs3 is a cheaper, better, iphone Jan 07 20:06:47 we all know that :p Jan 07 20:06:56 also bigger screen Jan 07 20:06:58 or that tochwiz IS android Jan 07 20:07:11 as for liking one over the other Jan 07 20:07:13 and which doesn't obsolete all your accessories Jan 07 20:07:17 I, personally, like sense UI a lot Jan 07 20:07:34 touchwiz... meh Jan 07 20:07:39 some tweaks here and there are nice Jan 07 20:07:47 that's right birbeck ... the average user just doesn't know how wonderful a pure android is, how great it is to get OTA updates very fast... Jan 07 20:07:48 sense was nice for a while, but i kinda don't like all the extra bells & whistles Jan 07 20:07:48 i have a sgs3, a one x, a gnex and a n4.... in all honesty the one x is the best phone in the group Jan 07 20:08:01 though i use the n4 as my daily phone right now Jan 07 20:08:04 all stock i assume? Jan 07 20:08:09 one x is sense ui Jan 07 20:08:19 thats what i mean Jan 07 20:08:23 oh, thought you meant stock as in vanilla Jan 07 20:08:24 karakuri: yes, they are all stock. though when i was using the one x it had cm10 on it Jan 07 20:08:55 wish aosp would expose power controls in notification like all skins do Jan 07 20:09:01 getting rid of Sense was the greatest thing on my HTC Desire... stripped it down to a Cyanogenmod, repartitioned and everything and had over 100MB extra for apps... and the space for apps is set very low on a Desire... :) Jan 07 20:09:14 ive run ruu, odin, or flashed factory images on them all Jan 07 20:09:36 yeah, those manufacturer rome are quite a bit heavier than aosp and aosp-based Jan 07 20:09:46 *roms Jan 07 20:10:14 the sgs3 can actually get decent battery when its running cm Jan 07 20:11:03 anyone know how touch signals are transmitted to the pc (connector) on touch monitors? Jan 07 20:11:49 I was planning on building a small Android based terminal, and a friend sent me a link to a Chinese manufacturer, but I don't see anything mentioning on how it connects to a pc Jan 07 20:12:12 is it just passed over VGA? Jan 07 20:12:27 that wouldn't be very likely Jan 07 20:13:12 belgianguy: normally you have a separated usb for that Jan 07 20:13:17 at least the touch screen's i have seen Jan 07 20:13:22 i wish i use google wallet to checkout online.... just tap my phone to my monitor :) Jan 07 20:13:55 vga i am pretty sure can't transfer touch, dvi i also doubt, might be the new ports like displayport can transfer it (but I might be totally wrong, since I am not so much into hardware) Jan 07 20:14:17 (but have a pc touchscreen, that transfers via usb :D) Jan 07 20:21:29 timroes: thanks, that made me check out their site and I at least found a mention about USB Jan 07 20:21:56 is it possible to build a 'kiosk' in Android? Jan 07 20:22:08 or would I be better suited with Linux/Windows? Jan 07 20:22:22 What hardware will it run on? Jan 07 20:22:32 belgianguy: if you have also the hardware choise to android Jan 07 20:22:49 Are you so used to Android development that you reckon it will be the easiest path? Jan 07 20:23:00 with windows and linux you have the problem, you have to build the whole stack yourself Jan 07 20:23:08 deepy: we haven't decided yet (bit chicken-egg) but the user should be fairly limited in what they can do Jan 07 20:23:09 deepy: more like "are you so used to Android ROM development" Jan 07 20:23:13 like chosing a gui toolkit, see that you get it worked for that, chose a window manager fitting your needs Jan 07 20:23:24 maraz: pshaw, there's a project for that Jan 07 20:23:27 eg request information and subscription handling Jan 07 20:23:45 Any BSD or Linux would probably be easier in the end Jan 07 20:23:49 I have little to no ROM (making) experience Jan 07 20:23:50 and more secure. Jan 07 20:23:51 since xserver under linux is not the most stable software you want to create scripts restarting stuff Jan 07 20:23:52 Unless you're used to Android development Jan 07 20:24:14 deepy: I'm used to Android development and Ubuntu Linux :) Jan 07 20:24:28 belgianguy: so you have neither knowledge to compiling linux kernels? Jan 07 20:24:32 or setting up xserver by hand? Jan 07 20:24:46 timroes: none whatsoever Jan 07 20:24:54 belgianguy: so you anyway need to learn something new :) Jan 07 20:25:00 then learn the android root stuff Jan 07 20:25:14 android is still growing in that embedded systems Jan 07 20:25:19 you should have chosen lubuntu, you tend to get a hang of xorg using it... Jan 07 20:25:20 but a lot of companies has already gone that way Jan 07 20:25:23 e.g. car entertainment Jan 07 20:25:53 it's especially locking the user to one or two applications that bothers me Jan 07 20:26:12 you can modify android Jan 07 20:26:13 they shouldn't be snooping around, and I don't know if Android has such barriers in place Jan 07 20:26:37 you anyway compile it yourself, so crete your own launcher, that doesn't allow anything else then that applications Jan 07 20:26:41 you can do that in java :) Jan 07 20:27:26 if you want that behavior under linux, make sure to find a fitting window manager (I would recommend awesome WM) learn to configure it (awesome wm would mean learn LUA and its absolutely awefull documented API), and such Jan 07 20:27:59 believe me, if you have no experience in setting up a linux "from scratch" I would consider it the same amount of learning work then compiling your own android Jan 07 20:29:25 and android in embedded system is coming, so you are prepared for your next job :) Jan 07 20:35:26 How can I get some mp3 files playing in the music app via wifi? Jan 07 20:40:18 i am having trouble using setonclickpendingintent to update my widget. I set the onClick on Line 74, but when i click the logo (R.id.icon) the time in my widget is not updated. http://pastie.org/5644209 Jan 07 20:41:09 All i see in logcat is START {flg=0x10000000 cmp=com.str8uplinux.huskerkc/.WidgetActivity4_1 bnds=[42,136][137,218]} from pid -1 Jan 07 20:43:17 Hello, I have a question about AppWidgets' onUpdate. If the layout of my widget changes, will the change only be visible after onUpdate? Jan 07 20:46:39 it will change when your widget provider call update with the new remote views Jan 07 20:47:27 if you need to trigger it to change from your app, you could always broadcast the event yourself Jan 07 20:48:19 ok, thanks birbeck Jan 07 21:12:52 fasta: you download them? or so you mean streaming? Jan 07 21:13:03 other options are Miracast and DLNA Jan 07 21:13:09 birbeck, stop remoting your views Jan 07 21:13:25 but those aren't very popular Jan 07 21:13:30 belgianguy: I mean that there is some concept of a playlist that the end-user on the device can modify. Jan 07 21:13:56 belgianguy: but most easily would be just file transfer into the music folder. Jan 07 21:14:06 belgianguy: (via the network, of course) Jan 07 21:14:47 fasta: can you download into the music folder? and once done, start playing (or buffer the next song already etc) Jan 07 21:15:06 belgianguy: I am asking you a question. Jan 07 21:15:22 belgianguy: I am ignorant about Android. It doesn't help to ask a question back. Jan 07 21:16:17 I think I have to go water my cat, bbl Jan 07 21:16:59 fasta: maybe you should start with what you're trying to accomplish Jan 07 21:17:46 oGMo: basically the equivalent of WinAmp, but with the files hosted on e.g. nfs with a local cache. Jan 07 21:18:05 oGMo: and also without the exploits of WinAmp. Jan 07 21:18:09 canadiancow: remote is always better Jan 07 21:19:28 fasta: you could accomplish that, though you may want to split up the "music cache" from "music player" bits Jan 07 21:20:15 i.e., i use mortplayer which is a pretty robust fs-based player .. having something that pulled from the local network (vs like google music) but wasn't Yet Another Effing Music Frontend would be nice Jan 07 21:21:17 anyone know of a vnc server that works on the nexus 10? I keep getting an unsupported pixel depth. Jan 07 21:22:31 client says that on my "please wait" dialogs theres white text on a near whote background on his device (on my n1 2.3.6 its black window with white text), any ideas how I fix this? Jan 07 21:22:37 white* Jan 07 21:22:55 The style buttonBarStyle is only available for API 11+. Is there any way to get it on API 8+? I'm using Sherlock action bar. Jan 07 21:24:23 tofi9: you can make a style in values-v11 that extends buttonBarStyle, and in values you define it yourself, then use your style where you would use buttonBarStyle Jan 07 21:25:39 karakuri: is there any example project? I haven't done much styling yet Jan 07 21:26:11 i can't think of one offhand, but the idea is pretty straightforward Jan 07 21:26:42 make a myButtonBarStyle in res/values/styles.xml, define it with whatever attributes you want Jan 07 21:27:03 oGMo: and how do I get the music on the device then? Jan 07 21:27:22 then make a myButtonBarStyle in /res/values-v11/styles.xml that simply has android's buttonBarStyle as it's parent (define no attributes) Jan 07 21:27:30 I am seeing this Android platform and I am like... what's all the fuzz about? Jan 07 21:27:46 then you just reference myButtonBarStyle everywhere in your porject Jan 07 21:27:55 For example, a tablet couldn't get a DHCP lease, but instead of saying that, it said nothing. Jan 07 21:28:04 fasta: isn't that for you to figure out? ;) there are any number of ways .. ssh/sftp, various media server standards, etc Jan 07 21:28:06 It just tried an infinite amount of times again. Jan 07 21:28:32 oGMo: can I get an ssh server on the tablet? Jan 07 21:28:36 oGMo: without rooting? Jan 07 21:28:45 anyone know of a vnc server that works on the nexus 10? I keep getting an unsupported pixel depth.' Jan 07 21:29:07 oGMo: I have no trouble setting up any kind of ssh server somewhere. Jan 07 21:29:11 fasta: why would you need a server? and, yes, but you wouldn't be able to use port 22 Jan 07 21:29:14 oGMo: or media server. Jan 07 21:29:23 fasta: are you trying to develop an app or just find an existing solution? Jan 07 21:29:38 oGMo: I am a developer, but in this case I am just a luser. Jan 07 21:29:54 because this is a dev channel and you may find better suggestions on #android or something Jan 07 21:30:07 karakuri: I guess I'm missing some knowledge, as I'm familiar with 'style', 'style attribute', 'style parent', 'style reference'. I'll try to do some reading and look for samples. Thx Jan 07 21:30:13 damn isp vut me off Jan 07 21:30:15 cut Jan 07 21:30:27 .. as I'm NOT familiar :D Jan 07 21:30:37 fasta: well if you're looking to dev something, there are tons of ways .. how would you normally transfer files in your code? otherwise for prepackaged stuff, i dunno Jan 07 21:30:39 oGMo: I just need one sentence like: use foobar for the network transfers and use bar for the music player. Jan 07 21:31:29 oGMo: I am just looking for some existing 'app' in the case where someone who actually uses android says 'hey, you can just do that'. Jan 07 21:31:29 i believe there are a few SSH/SFTP sync apps that would be an easy solution, then just use mortplayer since it's fs/directory based not an itunes clone Jan 07 21:31:54 Just give me the name of one you 'endorse'. Jan 07 21:32:09 As opposed to the 10 million that don't work well. Jan 07 21:32:38 i haven't used anything enough to endorse it. try andftp, ftpcafe, etc .. just search for sftp and your options are limited Jan 07 21:32:58 this is a bit off-topic tbh Jan 07 21:33:33 may also be rsync clients, which would be interesting, particularly if they provide an api Jan 07 21:33:38 I already found one. Jan 07 21:33:44 Thanks Jan 07 21:33:52 fasta: You tried... an INFINITE amount of times? My brain cannot comprehend. As a side note, if you break an object into an infinite number of infinitly smaller objects, and then tried to put it all back together again, you would either have the object cease to exist, simply because all of its components are infinitly small, OR the object will imediately fill the universe. Jan 07 21:34:08 Fun stuff, I tried. Jan 07 21:34:16 And I need coffee. Jan 07 21:35:44 Does anyone check that these apps don't steal all kinds of credentials? Jan 07 21:35:55 No, nobody checks. Jan 07 21:36:10 It's up to the customer and the permissions list. Jan 07 21:36:25 Ok, then I really don't get the point of android. Jan 07 21:36:43 Perhaps I used too much open-source software :/ Jan 07 21:36:43 Open, cool, and fun. Jan 07 21:36:56 It's the most closed system I have ever used. Jan 07 21:37:07 You've never compiled it, then. Jan 07 21:37:21 It's also not fun to share contact lists with every random company with a fart app. Jan 07 21:37:35 Why can't I disable that 'feature'? Jan 07 21:37:45 If you want true internet security, go Amish. That's really the only way to be one hundred percent sure. Jan 07 21:37:47 I know of pdroid, but it requires a rooted device. Jan 07 21:38:07 fasta: Do you check whether any FOSS you install steals your information? Jan 07 21:38:39 lov: I run some applications with different network settings as a precaution and I run it under different user accounts. Jan 07 21:38:47 lov: and I check the code for some others. Jan 07 21:38:47 fasta: just don't install a fart app with the READ_CONTACTS permission? Jan 07 21:38:54 congratulations on literally being 0.01% of the population. Jan 07 21:38:59 if that. Jan 07 21:39:00 AmandaC: but then you cannot install anything. Jan 07 21:39:05 seriously though. Jan 07 21:39:06 fasta: er... Jan 07 21:39:21 AmandaC: I am not the owner of the device. Jan 07 21:39:22 AmandaC: I wouldn't have thought of that. I really need the fart app. Jan 07 21:39:23 If the app has a READ_CONTACTS permission, you're going to have to assume it's going to read your contacts. Jan 07 21:39:25 * AmandaC installs plenty of stuff, checking the permissions for what they should need Jan 07 21:39:44 AmandaC: is there some list of useful apps that don't require you to bend over? Jan 07 21:39:46 IF you have a rooted device, there are some permissions apps that will modify what permissions apps can actually use Jan 07 21:39:55 Yes, I already said that above. Jan 07 21:39:56 fasta: ask in #android, not here. Jan 07 21:40:02 seriously Jan 07 21:40:07 this is android-dev not fart-discussion Jan 07 21:40:39 As much as I would love a channel subject change, I'd have to agree with kevinb. Jan 07 21:40:41 I've written a blog post for Android devs with a tip on how to hide unpublished apps. I want to share it with others. Any suggestions as to where I can post the link? Jan 07 21:41:04 devslash: you mean hit the "unpublish" button? Jan 07 21:41:18 I mean hide unpublished apps when you're logged into your console Jan 07 21:41:25 oh Jan 07 21:41:27 No Jan 07 21:41:28 devslash: i think i saw your post on r/r/androiddev, you might try the Google+ android developer group if you haven't already Jan 07 21:41:36 post it on G+ or reddit or something Jan 07 21:42:03 Kevinb yea that was me. It got down voted so it's not visible any more Jan 07 21:42:50 perhaps that should be a sign Jan 07 21:43:44 It's reddit you could post about the coolest thing ever and some ass hats will down vote it Jan 07 21:44:01 i have two unpublished apps that i just renamed to "zzz " so they're at the bottom of the list. i read your method but the two at the bottom of the list don't bother me Jan 07 21:44:08 Anyone know of a vnc server that works on the nexus 10? I keep getting an unsupported pixel depth. Jan 07 21:44:10 purchase a botnet and persue your own brand of karma justice Jan 07 21:44:40 Winslow androidvnc? Jan 07 21:44:44 could be people not wanting to run a grease monkey scrip (even short/simple that they could review) on something as important as the developer console Jan 07 21:45:15 It's not a gm script. It's a javascript bookmarklet Jan 07 21:45:16 lov: Or pull a Jay and Silent Bob and physically hunt down everyone that ever downvoted you. Jan 07 21:45:25 I wish... Jan 07 21:45:34 jonathan_eyre: YES! Jan 07 21:45:34 That's such a funny movie Jan 07 21:45:35 (guess i didn't read it very thoroughly sorry) Jan 07 21:45:59 J&sb were funny as hell in clerks 2 Jan 07 21:47:15 hmm, in my NDK test program I keep on seeing Jan 07 21:47:19 Kevin but I'm going to turn it into a gm script so it'll run every time you log into your console Jan 07 21:47:22 01-07 21:46:55.966: A/libc(1922): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 1935 (ub.droidblaster) Jan 07 21:47:35 hmm anyone got a snippet to hsow how to adjust colours of dialog using abs Jan 07 21:47:39 how can I investigate where things are getting ugly? Jan 07 21:47:39 belgianguy: stop dereferencing null pointers Jan 07 21:47:57 yeah ;) Jan 07 21:48:29 I don't want to dereference null pointers Jan 07 21:48:44 but I don't know where to start looking :/ Jan 07 21:48:47 why not? its fun Jan 07 21:53:05 devslash: I've tried droidvnc but I keep getting a pixel depth not supported. Same error on all vnc servers. Jan 07 21:55:08 Google the error Jan 07 21:55:26 is there a place where i can see a list of these things "android:popupMenuStyle"? tryign to work out how to adjust dialog colours Jan 07 21:56:04 been away form android for months using unity, coming back it tough :) Jan 07 21:56:54 and btw unity is fan-freakin-tastic Jan 07 21:59:14 devslash: I have been no luck so far. That is why I turned to irc to see if anyone had similar problems Jan 07 21:59:26 now im back to this messy xml nightmare Jan 07 22:06:02 Gaz: open your sdk/platforms//data/res/values folder Jan 07 22:06:15 you can look at styles and themes XML used by the system Jan 07 22:06:29 attrs as well Jan 07 22:09:48 If I load opaque image in argb_8888, does the system convert it to RGBX_8888, or do I need to do it myself? Also does the latter format blit onto ARGB_8888 surface at least as fast as the former? Jan 07 22:13:50 anyone know why even whe nyou do webview.setBackgroundColor(0x00000000); - at times on certain phones/sites it simply doesnt work ? Jan 07 22:15:11 anyone ever hit a breakpoint, and variables dont show up in the eclipse debugger, but if you go up the stack one level, they show up there? Jan 07 22:15:12 what do you expect to see, besides the (activity) window background? Jan 07 22:15:41 canadiancow, no locals in scope? Jan 07 22:15:49 in a static method? Jan 07 22:15:50 * pfn shrugs Jan 07 22:15:51 yes karakuri i want my background of activity to show through, it works on all of my other urls but not one Jan 07 22:16:05 Webviews are fickle beasts. It could be anything from "the background DID get set, but a div that fills the screen is still a different color" to "there is a onload event or an ajax call that sets it after your android code ran". Jan 07 22:16:45 pfn, ive encountered this a few times Jan 07 22:16:48 i have no idea why it happens Jan 07 22:16:53 there are defintely locals in scope :P Jan 07 22:17:36 yeh pain in the ass Jan 07 22:20:53 Here's a webview tip: If you provide an internet facing webview (i.e. not being loaded with LoadData) and you don't control the URLs that baby goes to, you had better not give a crap how it looks. Jan 07 22:21:13 is there something special you need to do to get notifications sent to app? or do i just grab from server in my own way and make a notification using manager? Jan 07 22:21:35 jonathan_eyre hehe weird thing is it works perfect in about 9 cases in my app Jan 07 22:22:00 what? Jan 07 22:22:04 someone said u can set to transparent after url is loaded, done that for now so client can test, really need a modern device myself Jan 07 22:22:07 "notifications sent to app" ? Jan 07 22:22:26 yeh this app needs the company to be able to send notifications to it, so they appear in the bar at top Jan 07 22:22:41 Gaz`: GCM and NotificationManager Jan 07 22:22:45 they keep going on about some strange format for thisb ut theyre IOS guys Jan 07 22:22:54 ah Jan 07 22:23:06 GCM = Google Cloud Messaging Jan 07 22:23:10 thanks Jan 07 22:23:10 yeah... i was almost having to deal with ios people wanting to do stupid shit at my old job Jan 07 22:23:16 i left Jan 07 22:23:19 and now their android stuff is broken Jan 07 22:23:28 i specialise in ios->android these days ;-/ Jan 07 22:23:36 candiancow: kinda link my company ;) Jan 07 22:23:40 and yet you dont know how notifications work... :P Jan 07 22:23:41 *like Jan 07 22:23:57 nope only done it once we used this god awful thing called "lemon" Jan 07 22:24:03 wat? Jan 07 22:24:05 im not that goodo at android but im getting by :) Jan 07 22:24:17 doing some apps for themeparks Jan 07 22:24:23 notifications are sent by the app to the notificationmanager for display to the user Jan 07 22:25:13 You can pull notifications in the webview using JavascriptInterface, and then fire them natively in the NotificationManager. Then anyone that uses the app and logs in will get the appropriate messages. Jan 07 22:25:29 Unless I'm really missing something here. Jan 07 22:25:46 whenever i find a tutorial on googles pages i go looking elsewhere for someone who makes more sense lol Jan 07 22:26:15 That's like saying that dictionaries are boring so you read the funny pages. Jan 07 22:26:17 doesn't the c++ debugger work in Eclipse? Jan 07 22:26:23 hehe yeh Jan 07 22:26:35 i just find theyre not easy to read Jan 07 22:26:37 my breakpoints aren't getting hit, but I do see log messages of lines that appear later Jan 07 22:26:58 u running it in debugger belgianguy? :-x Jan 07 22:27:30 Gaz`: yeah, in Eclipse -> Debug Jan 07 22:27:57 belgianguy: Are you trying to breakpoint code that is compiled for the NDK? Jan 07 22:28:13 jonathan_eyre: It's NDK C indeed Jan 07 22:28:27 and I have a null dereference somewhere Jan 07 22:28:30 but can't find where Jan 07 22:29:02 I read somewhere *citation needed* that you need to breakpoint the java like mad around the NDK calls, and just STDOUT with the C. Jan 07 22:29:17 jonathan_eyre: this is a pure c++ Android app Jan 07 22:29:38 (eg NativeActivity has some internal JNI bindings, but those are hidden) Jan 07 22:29:51 Oh, well then you are definitely beyond the scope of my expertise. Jan 07 22:30:28 well, far above mine as well, I was following (a rather shoddy in retrospect book) Jan 07 22:31:17 why are you doing all native :( Jan 07 22:31:17 GASP. A book? Like with paper? It was outdated before it left the press. Jan 07 22:33:25 is it a game? Jan 07 22:33:28 Performance critical code usually comprises 10% at most. That's all you really ought to be doing native... otherwise headaches abound Jan 07 22:34:02 To be fair, headaches abound no matter what. Jan 07 22:34:48 If you are good at C (REALLY GOOD), then C could be better. Jan 07 22:34:58 Lol for sure. Especially when lacking documentation leads you to stackoverflow overflow where all the code is crap and everyone is wrong and inept Jan 07 22:36:24 C doesn't really have access to much of the API does it? Jan 07 22:40:53 Elop On an Android Nokia Phone: "Anything Is Possible" Jan 07 22:41:03 O.o Jan 07 22:43:47 coincidence that CES is the beginning of the word CESspool ? Jan 07 22:44:43 coincidence that LAUGHTER is the end of the word SLAUGHTER? Jan 07 22:44:56 yes, i would say that's pretty much the textbook definition of coincidence Jan 07 22:45:00 hmm, let me think about that Jan 07 22:45:00 You can't spell funeral without FUN! Jan 07 22:45:37 Or attendance without TEN! Jan 07 22:45:49 hmm, some are less "wow" than others. Jan 07 22:45:56 :P Jan 07 22:47:27 anyone here fiddle around with ormlite? I'm trying to model something like the below structure in this paste: Jan 07 22:47:28 http://pastebin.com/iaK3Xcf0 Jan 07 22:47:47 http://reviews.cnet.com/computer-systems/nvidia-shield/4505-3000_7-35566996.html Jan 07 22:47:53 new android nvidia console :-D Jan 07 22:47:57 does that actually work, or would I have to set up a proxy table that takes the ForeignCollection, and a CategoryID as its contents? Jan 07 22:48:33 jasta: ffmpeg 1.1 out Jan 07 22:50:57 any harvard alums in here? Jan 07 22:51:02 or princeton Jan 07 22:51:48 dont harvard alums play golf all day with their networks of rich friends they got from school ? Jan 07 22:52:38 haha romainguy and ctate competing https://lh5.googleusercontent.com/-t9NbaWUB2W4/UOh4qq1m_QI/AAAAAAAACgk/xPkRHamVQhk/w497-h373/Napali+Coast.jpg vs https://lh5.googleusercontent.com/-sL3N2__fOyA/UOfXSIxpQ6I/AAAAAAAAA4Y/_DBxfgPkTcw/w497-h373/photo.jpg Jan 07 22:53:54 what should be the width/height be for views which have a layout weight? Jan 07 22:54:09 0dp appropriately Jan 07 22:54:16 ah Jan 07 22:54:18 thats not one of romain's better pictures Jan 07 22:54:43 so wrap_content or match_parent will override the weight? Jan 07 22:54:55 no, it will be ignored Jan 07 22:54:57 those two pics just happened to come up on my g+ feed together Jan 07 22:55:04 hm Jan 07 22:59:08 can anyone offer a reason as to why a listView and adapter that display images, would offer very different performance based on "where" they are used ? Jan 07 23:00:17 used in a main view image thread/resolve works fine, used in a popup view it seems like it's pausing on setting images Jan 07 23:00:22 <--- confused Jan 07 23:04:28 yawn Jan 07 23:16:06 jesus testing on the emulator is a nightmare Jan 07 23:16:46 that's news? Jan 07 23:20:03 i rarely use it but im trying to fix this damn dialog issue, i have white text on a white dialog background on ICS and i cant work out why Jan 07 23:21:16 and each test takes over 5 mins only to realise nothing has changed Jan 07 23:22:26 my style.xml if anyone can help. http://pastebin.com/gcs3dWa6 Jan 07 23:22:27 you set text col manually and it's there? Jan 07 23:22:59 yawn Jan 07 23:23:06 not sure how to set it manually Jan 07 23:24:39 all the theme stuff just confuses me still really Jan 07 23:25:30 i think i may have the parent wrong