**** BEGIN LOGGING AT Sat Nov 30 02:59:59 2013 Nov 30 03:00:01 Hello, can someone walk me through the process of porting 2 projects from Eclipse to Android Studio Nov 30 03:01:00 Real men do not use IDEs Nov 30 03:01:54 DarkSlay3r: IDEs are more comfortable. I can focus on programming more Nov 30 03:04:03 he's being facetious Nov 30 03:04:30 bankai_: I know Nov 30 03:04:57 AFAIK there's no real easy way, the setup is completely different Nov 30 03:05:02 esp as far as importing deps etc. Nov 30 03:06:12 ok, I am now going to export the projects from Eclipce Nov 30 03:09:33 Just copy and paste the code into classes hahaha - restructure it manually... Nov 30 03:09:41 Pain in the bum, but at least you know it will work I guess Nov 30 03:14:59 how does android typically handle big textures (say, 2048x2048) ? I know i had a problem once, but i dont know if it was device, OS version, gpu, etc specific Nov 30 03:16:22 NOOOOOOOOOOO!!! Nov 30 03:17:06 this Android Studio piece of crap deleted ALLL my layout files Nov 30 03:17:15 EACH AND EVERY ONE Nov 30 03:17:45 revision history? Nov 30 03:18:14 last time I pushed it to Git, was 2 months ago Nov 30 03:18:22 AHA!!!! Nov 30 03:18:35 I FOUND THEM!!! Nov 30 03:18:58 yay for VCS Nov 30 03:19:04 It turns out I accidentally copied them into a separate folder Nov 30 03:19:16 a couple days agoe Nov 30 03:19:25 you know it keeps history, right ? Nov 30 03:19:57 bankai_: Like I said, I didnt check it in in the last 2 months Nov 30 03:20:12 it does it automatically Nov 30 03:20:51 I was in the process of copying over to Android Studio. I didn't actually start using it Nov 30 03:22:26 ok, I'm starting over. Nov 30 03:22:41 exporting 2 projects from Eclipse Nov 30 03:23:03 Done Nov 30 03:23:08 Closing Eclipse Nov 30 03:23:25 Opening Android Studio Nov 30 03:24:43 ok, clicking Import Projects Nov 30 03:25:50 so here, I need to select the build.gradle that is in the folder of one of my projects, correct? Nov 30 03:26:57 bankai_: right? Nov 30 03:27:46 i'll take that as a yes. Nov 30 03:27:47 nfi, i use IJ, still haven't got on the gradle band wagon Nov 30 03:28:01 ok Nov 30 03:29:40 Project is using an old version of the Android Gradle plug-in. The minimum supported version is 0.6.1. Please update the version of the dependency 'com.android.tools.build:gradle' in your build.gradle files. Nov 30 03:29:49 that is the error I get Nov 30 03:29:55 what do I do? Nov 30 03:30:06 it tells you Nov 30 03:33:16 Anyway I can invert Y axis on a canvas? Nov 30 03:39:00 bankai_: it is an android problem Nov 30 03:39:14 http://stackoverflow.com/a/19633915 Nov 30 03:39:22 finally! Nov 30 03:39:38 my projects are finally ported! Nov 30 03:39:49 YAHHHOOO! Nov 30 04:18:09 anyone see an example of RxJava & lazy loading a cursoradapter? basically, i have most of the data in the listview coming from the cursor, but one field (a status) which is async Nov 30 04:18:54 hey guys, I'm trying Complete Linux Installer on Android and I'm having an issue where I get a message saying connetion refused when I try connecting to the X server with the VNC app, can anyone help me out? Nov 30 04:19:28 Alpha-Omega see topic; thats doesn't seem like an app dev question Nov 30 04:19:39 g00s: ok Nov 30 04:27:20 Post-release refactoring/code-cleaning is like going out drinking and waking up the next morning with a blood-soaked bed and wondering aloud, "What the hell did I do?" Nov 30 04:27:28 Or at least it is for me. Nov 30 04:27:51 I'm not discussing the blood-soaked bed though. Nov 30 04:29:01 when its 2 years post release, its like "uh, time to start over :)" Nov 30 04:29:40 That too. Nov 30 04:30:09 https://dl.dropboxusercontent.com/u/31892/Screenshots/7kaf.png ← A comparison of release and post-release-refactoring Nov 30 04:30:59 is that ST? Nov 30 04:31:08 Yes. Nov 30 05:13:33 http://developer.android.com/training/location/receive-location-updates.html Nov 30 05:13:58 Why is MainActivity extending FragmentActivity instead of Activity? Nov 30 05:14:26 i don't see any Fragments being used Nov 30 05:14:57 Note: To make your app compatible with platform version 1.6 and later, the activity that displays the DialogFragment must subclass FragmentActivity instead of Activity. Using FragmentActivity also allows you to call getSupportFragmentManager() to display the DialogFragment. Nov 30 05:15:42 shoky: i missed that, thank you Nov 30 05:16:43 so if I'm targeting API 14 and up, should I use Activity or FragmentActivity Nov 30 05:23:30 Activity Nov 30 05:49:29 what would be the best option for bookmarking in android apps Nov 30 05:49:54 would be three strings that would form a bookmark Nov 30 05:50:30 SQLite seems a bit overkill Nov 30 07:15:05 seems like android:background="@drawable/x" in xml, vs setBackground(getResources().getDrawable(R.drawable.x) have different behavior, shouldn't those be exactly equivalent? Nov 30 07:28:12 mornin! Nov 30 07:28:19 o7 Nov 30 07:28:26 \o/ Nov 30 07:28:46 ( . Y . ) ? Nov 30 07:43:50 hey Nov 30 07:45:57 hey Nov 30 07:47:30 is it possible to detect if the main menu (the one with icons for every app) is being shown? Nov 30 07:47:51 It's surprisingly easy to implement trailing conditionals in Scala. Also probably bad. Nov 30 07:49:24 <_genuser_> if I want to draw a line in a layout, what's the best UI item to use? Nov 30 07:57:16 And `1 + 2 onlyIf true otherwise 4` now works. Now to never actually use this. Nov 30 08:51:29 hi Nov 30 08:57:43 hi Nov 30 09:01:56 is there anyone who can help me a little bit with my kernel-building ? Nov 30 09:06:29 hmm Nov 30 09:06:40 looks like I#m way to early to get help ^^ Nov 30 09:06:51 I try it in the afternoon Nov 30 09:06:52 bye Nov 30 09:11:57 hello robots Nov 30 09:13:01 <^cheeky> hiya !!! Nov 30 09:13:09 :D Nov 30 09:13:13 <^cheeky> :P Nov 30 09:15:52 anyone know other similar tools like androidbootstrap.com that can speed up development process? Nov 30 09:18:01 I've heard some say it's not that great, but as a beginner it seems like gold Nov 30 09:18:30 stuff like google cloud endpoints, etc Nov 30 09:23:13 Hi. Nov 30 09:23:22 hello Nov 30 09:23:27 Why have I never bought bitcoins Nov 30 09:23:42 i keep asking myself the same question lately Nov 30 09:24:26 Like Nov 30 09:24:29 why didn't i turn my apartment into a huge mining operation when i learned about it Nov 30 09:24:29 I could have made hundreds of dollars Nov 30 09:24:32 in several weeks Nov 30 09:24:48 i guess it's cause I don't have enough capital as a college student to invest so heavily Nov 30 09:24:49 :S Nov 30 09:25:28 my roommate had glitch in electric bill, perfect to cool down house full of servers lol Nov 30 09:26:07 Lol, we get free heating basically cause we are the top floor Nov 30 09:26:08 :P Nov 30 09:26:22 haha Nov 30 09:26:27 warm climate here Nov 30 09:26:42 was talking about stocks with my non-technical brother, and told him he should speculate in bitcoins Nov 30 09:27:21 i found out how hard it is to explain what bitcoin actually is Nov 30 09:27:54 magic internet monies Nov 30 09:27:57 mostly when people don't understand why it's even a needed concept Nov 30 09:27:59 LOL Nov 30 09:28:11 saw TC report on bitcoins.com Nov 30 09:28:50 Security is hard Nov 30 09:28:57 thats why I juse use Google auth services Nov 30 09:28:58 :D Nov 30 09:29:16 haha Nov 30 09:29:19 valgrind: Go away, this is Java. Nov 30 09:29:59 I'm building out a custom backend for this project I'm working on, including a user management system. It's a lot of work on small details, but it's so sexy Nov 30 09:31:16 conjunction junction what's the user managements function? Nov 30 09:32:50 translation: what's so sexy about it? Nov 30 09:32:56 Solike, I'm building a Trivia database management system for this Trivia game I'm building out as a project. But first I'm building a content creation system where people can login to work on questsions Nov 30 09:33:10 so there are several types of accounts, the content creators, who login and create questions Nov 30 09:33:24 the content editors, who log in and see a queue of questions to moderate and approve/disapprove Nov 30 09:33:31 and admins to administrate it all Nov 30 09:33:32 :D Nov 30 09:33:34 all custom Nov 30 09:33:45 omg i was thinking about building a trivia app today Nov 30 09:34:03 but wow that's a lot cooler than what i was thinking Nov 30 09:34:17 It's actually on github, if you wanna look. There isn't much up yet. Nov 30 09:34:27 https://github.com/bedoherty/TriviaGame Nov 30 09:34:28 i'm a beginner, but yeah definitely :D Nov 30 09:34:55 i was thinking about a trivia with friends kind of version Nov 30 09:35:14 This is a trivia game for the Chromecast Nov 30 09:35:21 if they don't have that already, it was really just a passing thought. haven't researched it Nov 30 09:35:33 nice Nov 30 09:35:34 the idea is that you have the game on a TV, whether its at your house, a bar, sports, game, you get the idea Nov 30 09:35:39 and then everyone gets to play with their phones Nov 30 09:35:39 :D Nov 30 09:35:51 omg Nov 30 09:35:59 i don't know much about chromecast Nov 30 09:36:19 wow you should make a drinking game version as well :D Nov 30 09:36:33 lol Nov 30 09:37:23 <^cheeky> drinking game version is must :P Nov 30 09:37:27 haha Nov 30 09:37:53 There willbe much drinking done by the time this project is over Nov 30 09:38:04 and much more drinking in like 9 days, once I'm 21 Nov 30 09:38:59 also finding some non-invasive way to rate the questions, and adding incentive Nov 30 09:39:53 So like, the idea is the game would be free, but I could offer like trivia packs, so let's say you really like Doctor Who, you can buy a $0.99 expansion that adds a category for Doctor Who questions Nov 30 09:40:28 i want to have your babies Nov 30 09:40:38 lol Nov 30 09:40:39 jk loving the idea though Nov 30 09:41:26 <^cheeky> DO IT Nov 30 09:41:31 <^cheeky> dr Who ++ Nov 30 09:41:51 I've been toying with the idea in my head for like a few months Nov 30 09:41:54 <^cheeky> this would have to use GCM yah ... Nov 30 09:41:58 several months actually now Nov 30 09:42:00 <^cheeky> i am n000bB00b Nov 30 09:42:07 I just started working on it like, 3 days ago lol Nov 30 09:42:15 trivia content creators will be hard to come by, but adding game aspects/leaderboards Nov 30 09:42:23 I'm working out a prototype game, gonna get my friend to design assets Nov 30 09:42:24 it's like a game within a game Nov 30 09:42:40 then once I have a displayable product, I might try to get some sort of investment maybe Nov 30 09:42:43 or put it on campus bars Nov 30 09:44:15 does anyone know if SensorManager calls are thread safe? I'm assuming they have to be but I can't find any confirmation Nov 30 09:50:41 fiddling with some combination of time to answer, wrong-to-right answers, user based input, and other input you could probably come up with a pretty awesome ranking system Nov 30 09:52:15 Yeah, it's a simple concept at the core, so it allows for a lot of fun decision making on the design and implentation Nov 30 09:52:23 which is why I wanted to make this Nov 30 09:52:56 maybe give content creators trivia currency they can use to buy the expansions Nov 30 09:55:31 what I like most about the idea is the possibility for hyper personalized or inside joke type questions. Nov 30 10:00:37 what's new name for ia32-libs on ubuntu 13.10? Nov 30 10:04:26 hey, is there a way to ask for extra permissions after an app is installed? Nov 30 10:04:50 like can I write an app which does not require Contacts or Location permission but then later ask the user if they want to approve it? Nov 30 10:06:26 groups of close friends/communities/companies could make trivia sets relevant only to people in said group. Allowing for a more emotional/hilarious connection to questions. "Who showed up hungover to the business meeting then puked in the conference room?" OMG ALEX YOU'RE CLASS ACT Nov 30 10:06:43 i think on updates but what would i know Nov 30 10:09:29 For Ubuntu 13.1 ia32-libs is not available anymore. So, you can try this one: Nov 30 10:09:29 sudo apt-get install lib32z1 lib32ncurses5 lib32stdc++6 Nov 30 10:10:06 thats from stackoverflow but has no upvotes Nov 30 10:11:51 Swag, adding new users works Nov 30 10:13:43 damn now you made me want to make a trivia game lol :( Nov 30 10:15:42 if you want some help on it let me know Nov 30 10:17:22 crappy programmer, mediocre designer, but an expert online marketer/advertiser Nov 30 10:18:02 i am running lint in my project and i see the following message: has more than 80 views, bad for performance Nov 30 10:19:07 this layout is tablelayout with 240 textview inside (24rowsx10col) Nov 30 10:19:34 is there any way to implement this table? Nov 30 10:19:46 well is the performance actually poor? Nov 30 10:20:09 does it work as you have designed it? no problems? If so, ignore what it says. Nov 30 10:21:05 not really but the user in an old phone can see it Nov 30 10:21:36 it works good but i also want to achieve good user experience Nov 30 10:21:56 if there isn't any other way to implement this i will not change it Nov 30 10:22:10 but that's why i am asking Nov 30 10:22:47 if i use merge in reusable textviews will i see any difference? Nov 30 10:23:29 <^cheeky> ahh for the life of me i cant seem to get this to work :/ Nov 30 10:28:32 <^cheeky> hmmm strange .. been on 4.4 on my N4 .. i just charged it after letting it die completely and waited a few hours before i, charged it. picked it up .. the batts indicator showed it was fully charged turned it on .. and it says its only 87 % ;/ Nov 30 10:28:49 im having same issue Nov 30 10:28:54 on atrix Nov 30 10:29:05 and it literally won't charge higher than 86% Nov 30 10:29:27 and then will randomly drop to 15% at times Nov 30 10:29:36 hey, is there a way to ask for extra permissions after an app is installed? like can I write an app which does not require Contacts or Location permission but then later ask the user if they want to approve it? Nov 30 10:30:13 <^cheeky> once i move ill try to install the N5 image on my n4 if thats poissible .. it looks so much nicer than what i got OTC Nov 30 10:30:53 then again i'm using experimental CM build, and it's only 4.2 Nov 30 10:31:14 <^cheeky> yeah i havent done anything.. Nov 30 10:31:54 nesoi, it seems like that would open up a lot of possibilities for tom foolery Nov 30 10:32:29 keep in mind I don't know for sure, but the google operates I don't think they would allow it Nov 30 10:32:35 the way* Nov 30 10:32:43 Eeeeeee : IOS does it and it seems to work just fine. My question is not "is it a good idea" but "can it be done"? Nov 30 10:34:48 And admins can now approve users. w00t Nov 30 10:34:56 now just need to add a form for people to request permissions Nov 30 10:34:57 :D Nov 30 10:35:43 nsoi: as required permissions are declared in the manifest file, and i've never seen an app request additional permissions my conclusion would be that it can't be done Nov 30 10:36:02 users are accustomed to only having to approve permissions in the play store, and moving that process into an app would take away a degree of control from google Nov 30 10:37:30 and i can think of a million ways people could dupe users if that were possible Nov 30 10:38:15 again Eeeeeee IOS does it and it works just fine. Better than Android's default behavior, I'd argue Nov 30 10:39:31 Listen I'm a newb, but I could definitely argue why it benefits Google to not have such a feature Nov 30 10:40:28 I've never used iOS, so I can't attest to whether or not it's a good function for that platform Nov 30 10:40:35 All I want is android.permission.BRICK Nov 30 10:40:36 nesoi: personally, i would be much happier as a user knowing from the outset what permissions an app requires. there are times, i'll grant you, that optional permissions would be useful, but i can't think of any time i'd prefer an app to keep it from me until it actially needed it Nov 30 10:40:56 whats your reasoning behind wanting to request some permissions later if you dont mind me asking? Nov 30 10:41:02 the point is, you wouldn't 'need' it. it would be required only for some certain features Nov 30 10:42:59 I like the transparent policy of some app makers that request all needed permissions, and then have a brief explanation of why they need the extra permissions Nov 30 10:44:27 Hey. Nov 30 10:46:03 and honestly when some apps request too many permissions and don't provide an explanation for why (if it's not logical), I have no problems with moving on to their competitors that have less features Nov 30 10:46:59 and do it quite frequently Nov 30 10:48:01 <^cheeky> if some one can help me ... i would really really appreciate it and iam kinda desperate, coz i am having a hard time trying to acheive this, .. i have a viewpager, and in the i have a button in the action bar, when i press it i want the to push up the bottom action bar and show a list view, does anyone know the name of the pattern so i can google it perhaps ? Nov 30 10:50:20 what's an example app that uses that pattern Nov 30 10:51:16 <^cheeky> FlikR app Nov 30 10:52:55 <^cheeky> umm the bottom action bar, would be a sticky .. and the crazy thing is the bottom that moves up pushing the image is an expandable list view Nov 30 10:54:51 Where do you guys get ideas for apps? Nov 30 10:56:36 <^cheeky> i just look @ apps that are similar, or google search or the native apps itself Nov 30 10:56:36 I steal them from this guy named Brian|CS whenever he talks about his projects Nov 30 10:56:46 Lol Nov 30 10:56:51 :D Nov 30 10:57:01 See, I come up with far more ideas than I have time to see to completion Nov 30 10:57:09 so most of the time, I share with the hope someone will steal it Nov 30 10:57:10 lol Nov 30 10:57:13 don't we all Nov 30 10:57:19 <^cheeky> i tried using , slidepane layout but the bloody thing doesnt slide up from the bottom .. Nov 30 10:57:20 hhahaha Nov 30 10:58:12 <^cheeky> viewpager with each item inthe pager being an expandable list with the top being a image view and the bottom being a listview with explaindable listview in them ?lol Nov 30 10:59:47 I feel my workpower is being unused :( Nov 30 11:00:21 autrilla this might not be a good idea for attempting to find profitable app ideas, but take ideas/subjects that you're already passionate/knowledgeable about and ask yourself how it could benefit other people Nov 30 11:00:41 Eeeeeee, it doesn't need to be profitable :) Nov 30 11:00:53 Most of my ideas are not doable Nov 30 11:01:01 Yeah, I do most of the things I make for shits and giggles Nov 30 11:01:08 what are you passionate/knowledgeable about Nov 30 11:02:46 here's an example i saw of this recently: a skateboarder created this app that helps people decide what tricks they should do when playing skate (which is the skateboard version of the basketball game horse) Nov 30 11:04:13 hes probably better at skateboarding than app making because it had bad reviews, but it was inspiring because only a real skater would have that app idea Nov 30 11:07:33 i think there's something like 10m skaters in the US, and he had 100K installs which isn't bad considering a much smaller percentage play skate regularly enough to want an app for it. Also considering the bad app ratings Nov 30 11:09:11 Eeeeeee, I like the stock exchange Nov 30 11:09:17 However, you have to pay to get data Nov 30 11:09:21 lol Nov 30 11:09:39 that one might be tapped out. what do you like about the stock exchange Nov 30 11:09:55 the stock exchange Nov 30 11:10:01 Eeeeeee, earning money Nov 30 11:10:07 Mostly Nov 30 11:10:07 lol Nov 30 11:10:20 interesting concept i'll have to research this thing you speak of Nov 30 11:11:27 i ask because that's a huge subject with a lot of apps that will do it better, faster and with data then you'll have access to Nov 30 11:11:42 more data* Nov 30 11:11:59 so you really have to niche down into the subject Nov 30 11:12:20 to find a unique concept that people will find useful Nov 30 11:14:52 they have a couple web apps where people invest fake money to get better at trading Nov 30 11:15:43 I haven't looked but you might check if there are any existing apps that are similar Nov 30 11:18:21 find something that the big boys would never touch... this is a good example because they typically follow the money. not much money to be made in a fake stock exchange. Nov 30 11:18:48 but it is a learning product, and there's big money in those. Nov 30 11:29:45 I enjoy quotes from famous thought leaders, so I'm making a quote app. There's already one that has every feature, great ratings, and has stood the test of time. Though it's design is horrid, it's not optimized for tablets, and it's quote selection is rather limited. You don't always have to come up with something revolutionary. Just do it better than any of the current products available. Facebook their myspace :P Nov 30 11:33:23 If it never becomes as popular as other apps it won't matter because its something I'm passionate about. Nov 30 12:17:22 Remember to include a lot of steve jobs quotes Nov 30 12:18:08 xD Nov 30 12:18:14 in android dev? Nov 30 12:46:14 alankila oh you know it!! gonna release separate version(s) dedicated to startups, tech founders/ceos, and programmers Nov 30 12:47:56 speaking of that.. does Google have issues with reusing code in that fashion to target different search terms/users? Nov 30 12:50:30 alankila pushing around 140 steve jobs quotes atm :D Nov 30 13:09:17 hello Nov 30 13:10:06 <^cheeky> Eeeeeee: hey ., not that it matters to you lol , but i charged the phone back again .. seems to have charged 100 % Nov 30 13:11:12 I'm totaly new to android-dev, could someone please help me with problem I'm suck with? Nov 30 13:11:25 I got this code from AndroidQuery page http://pastebin.com/8N4z8JXd Nov 30 13:12:06 It should get callback and set the image, but it just doesn't work. It calls the function, but cant see the image Nov 30 13:12:19 I can see the image if i remove callback Nov 30 13:13:56 If I look at callback function I'm owervriting then there is a whole lot more going on, but examples in android-query page tell me that this should work as it is Nov 30 13:14:04 I'm confused Nov 30 13:16:17 <^cheeky> i have no idea what android-query is.. but callbacks or interfaces, should be registered in the hosting activity, specifically onAttach and null it onDetatch(), but i am on the same boat as you Nov 30 13:16:23 ^cheeky weird, i swear the problems are related somehow regardless of differing versions. the 86-87% is just too coincidental Nov 30 13:17:06 <^cheeky> well i was watching adb while it was plugged in , and i saw some optimizations failing and what not Nov 30 13:17:34 did you do anything that made it charge like normal? Are you using 4.4 that came with device or is it a mod Nov 30 13:18:25 <^cheeky> blah i hop once i drain it will do a full charge, and also this might be a minute detail that prolly wouldnt have an impact what was your power source, wall, cpu , car charger and was it he original mini usb cable ? Nov 30 13:18:36 <^cheeky> no mods Nov 30 13:18:47 er nah you're right Nov 30 13:18:52 it was a kindle cord Nov 30 13:18:57 i have long lost the original Nov 30 13:19:15 <^cheeky> just got the update yesterday, even though i did not get a notification i had to go to updates and check and BAM! it gave me the update :/ Nov 30 13:19:26 i also have the problem if phone is really dead it won't charge when hooked up to computer Nov 30 13:19:34 lol Nov 30 13:19:47 <^cheeky> honestly i should invest in one them what you call it, ... Nov 30 13:19:49 <^cheeky> crap Nov 30 13:19:54 <^cheeky> wireless chargers Nov 30 13:20:48 even more battery problems, last night it showed blank battery with question mark in it.. apparently the fix whipping the metal connectors and pressing on them lol Nov 30 13:20:51 <^cheeky> saw some cheap on amazon, this mini usb cable is crappy , i lost my first n4 coz of that .. good thing it under the warranty period Nov 30 13:20:56 wireless chargers don't charge as well as cables Nov 30 13:21:13 <^cheeky> daam Nov 30 13:21:43 <^cheeky> but i dunno the, using the cables .. wear and tear on the mini usb cable .. Nov 30 13:21:45 <^cheeky> what ever Nov 30 13:22:14 I have a half dozen small mini usb cables.. they're cheap at amazon Nov 30 13:22:24 break one, grab another Nov 30 13:22:26 the technology has been around for 100 years, yet we're only getting around to trying to refine it. to charge our toys. how sad lol Nov 30 13:22:40 <^cheeky> naah the mini isn [port Nov 30 13:22:51 <^cheeky> usb Nov 30 13:23:01 <^cheeky> inside the phone gets bent Nov 30 13:23:18 that's just shit design Nov 30 13:23:22 they're all cross compatible, but i swear i hear more and more about not using cords from other products Nov 30 13:23:25 <^cheeky> :/ Nov 30 13:23:56 my galaxy nexus has been dropped on the cable multiple times.. it's solid as hell, just bends the cable Nov 30 13:24:36 how are you breaking cables Nov 30 13:25:12 sounds like some intense testing hah. i think i still have every single microusb cable i've ever come across Nov 30 13:25:24 <^cheeky> i dont break the cables... Nov 30 13:25:26 <^cheeky> lol Nov 30 13:25:33 it's the connector on the cable Nov 30 13:25:46 when you drop two things that are that flimsily connected, something's gotta give Nov 30 13:25:49 ahh gotcha Nov 30 13:25:53 it's either the phone, or the cable Nov 30 13:26:14 now that you mention it i have had problems before with a connector shorting Nov 30 13:28:44 <^cheeky> i dunno if i am implementing this right .. like i have one activity .. well two .. but this one Activity .. which uses the navigation drawer, i just swap out and reuse my fragments ALOT ... :/ Nov 30 13:28:46 ordered a nexus 7 1st gen from groupon for 120.. they're telling me it's gonna take 2 1/2 weeks for delivery. having some serious buyers remorse Nov 30 13:29:34 <^cheeky> oh dude Nov 30 13:29:36 kicking myself for being a cheapskate Nov 30 13:29:44 <^cheeky> i dont want be the messenger of bad news, Nov 30 13:29:48 fml Nov 30 13:29:50 :( Nov 30 13:29:51 What's wrong with it? Nov 30 13:30:25 they're made to order and ship from china? that's the only thing i can come up with for such a huge delay Nov 30 13:30:28 Needs an expert advice here :) Nov 30 13:30:29 <^cheeky> the bussiness model is freaking annoying ... and i have has crazy freaking experiences with them .. in the end they couldnt give me the product refunded the money and have me 10 dollars groupon to some service .. Nov 30 13:30:34 I'm using this adapter : https://code.google.com/p/seker-common/source/browse/trunk/android/kaeppler-droid-fu-c48e07e/src/com/github/droidfu/adapters/ListAdapterWithProgress.java?r=23&spec=svn41 Nov 30 13:30:42 for loading remote data. Nov 30 13:30:44 <^cheeky> annoying @ least to the consumer Nov 30 13:31:16 It somehow disabled the items in the list when not-loading data. But perfectly fine when loading data. Nov 30 13:31:23 *disables Nov 30 13:31:35 they had a class action lawsuit that i got an email about, felt bad about praising the company too early on Nov 30 13:32:16 I'm not familiar with the site, but it seems like a common model. Nov 30 13:32:24 Longish delays when ordering things for cheap(er). Nov 30 13:32:47 Speaking of which, any suggestions for where to buy cheap used v2.3.3+ phones? Nov 30 13:33:00 A more readable version is here : https://gist.github.com/subinsebastien/7719148 Nov 30 13:33:20 Have anyone here used this adapter code by Kaepler? Nov 30 13:33:44 Not me. Nov 30 13:34:22 v2.3.3, I bet you can find some one ebay.com :) Nov 30 13:34:29 ZiNC: ^^ Nov 30 13:34:30 Not cheap enough. :) Nov 30 13:34:49 Maybe with luck. Nov 30 13:35:07 ZiNC: hmm, but you get fresh ones. Why buy used? Nov 30 13:35:08 did the same thing with locket, the app that pays you to display ads on your homescreen. started telling everyone it's the future of mobile advertising... praising it's existence. then started using the app and it force closed every unlock. contacted the company only to realize they were in over their heads. Nov 30 13:35:18 napster: To save money? Nov 30 13:35:52 ZiNC: What if it stops working after a while due to the rough use in the past? :) Nov 30 13:36:17 napster: It won't see tough usage from me. If it works on arrival I expect it will continue working with high probability. Like any other device. Nov 30 13:36:21 rough Nov 30 13:36:36 hmm, agreed Nov 30 13:36:41 yeah i'm sure they'll be using my money for 2 1/2 weeks, while i do it right this and spend the extra $20-30 to get it in time for bday Nov 30 13:36:47 But really, what good new 2.3.3-2.3.6 devices can you find new for reasonable price? Nov 30 13:36:50 time* Nov 30 13:38:10 Does anyone here target API level <=9? Nov 30 13:38:35 ZiNC: Me, 8 Nov 30 13:38:40 Why? Nov 30 13:38:56 I mean, because you don't really need more than that, Nov 30 13:38:56 some users are still on 2.3x I suppose Nov 30 13:39:02 napster, sure you know this but they merged droid fu into some other project.. might have an updated version of what you're looking for Nov 30 13:39:04 etc. Nov 30 13:39:21 Eeeeeee: I see Nov 30 13:39:26 napster: 8 is 2.2 Nov 30 13:39:28 starts with an e Nov 30 13:39:46 er i Nov 30 13:39:47 ZiNC: http://developer.android.com/about/dashboards/index.html Nov 30 13:39:49 ignition Nov 30 13:39:53 https://github.com/mttkay/ignition Nov 30 13:40:19 they seems to have dropped iginition as well Eeeeeee Nov 30 13:40:32 rly? Nov 30 13:40:42 er 10 months whoops Nov 30 13:40:55 yep Nov 30 13:41:03 honestly i'm the biggest newb in this chatroom Nov 30 13:41:06 napster: Yeah, not much on 2.2. From stats on the web I think API level 9 isn't that common as well. Nov 30 13:41:11 probably shouldn't listen to a word i say lol Nov 30 13:41:55 ZiNC: yeah, one reason is that 9 was not popular. From the beginning, I targeted from 8 to _latest_ Nov 30 13:42:08 Eeeeeee: never mind :) Nov 30 13:42:31 i was using 2.2 until some savior released experimental 4.2/4.3 build for atrix Nov 30 13:43:03 Most users would only use stock firmware. Nov 30 13:43:10 I.e., manufacturer-provided. Nov 30 13:44:15 I think the best think you can do is, get a good resolution phone with 2.2 and develop everything for that phone and test thoroughly on that. Nov 30 13:44:20 ya and with 2 yr contracts being so prevalent i'm sure 2.2 won't be used much longer Nov 30 13:44:56 I'd go with API v10. Nov 30 13:45:23 v10 makes the most sense I think Nov 30 13:45:33 saw an article the other day where guy was saying 12 and higher, and just saying to hell with lower versions Nov 30 13:45:34 About two months ago, API-8 had 2.4% users. Nov 30 13:45:50 but obviously that's not viable for real apps Nov 30 13:45:52 Yes, v-10 is perfect from now on. Nov 30 13:47:26 <^cheeky> :/ Nov 30 13:47:29 I don't get the lack of Bluetooth support in the emulator. Nov 30 13:48:07 A strange omission for a platform that's well established for a few years. Nov 30 13:48:12 <^cheeky> can anyone pleas tell me what i could use . product name or type that i could mount my phone to record my drive Nov 30 13:48:15 I think I should post my issue on StackOverflow Nov 30 13:48:15 what did they think nobody would be developing on laptops? Nov 30 13:48:24 or desktops with bt cards Nov 30 13:48:35 Laptops? Why? Nov 30 13:48:40 More like, no one would develop for Bluetooth. Nov 30 13:49:12 I think even the Sun WTK emulator has Bluetooth support, and you can't even call it a real emulator. Nov 30 13:49:14 wouldn't it use the computers bluetooth Nov 30 13:49:29 Well, that'd be nice an extra, Nov 30 13:49:40 but I'd be happy mainly with emulator -> emulator BT comm. Nov 30 13:49:41 most laptops come with bluetooth support Nov 30 13:49:57 do you guys use the default emulator? Nov 30 13:50:00 Two instances would be ideal for testing even before real devices. Nov 30 13:50:01 Hi, I have my whole project set to the ligh version of the correct theme (e.g Theme.Black for 2.x and Theme.Holo for 3.x and Theme.DeviceDefault for 4.x), but I want to use the Light versions of those themes for two textfields. How can I do that? Nov 30 13:50:07 Default in what way? Nov 30 13:50:24 or is genymotion type emulators widely used Nov 30 13:50:37 default as in the clunky one that ships with android studio Nov 30 13:50:45 Eeeeeee: I use genymotion, but I think the 'defaukt' emulator is 'still' the most common one Nov 30 13:50:48 default* Nov 30 13:50:51 wow Nov 30 13:50:57 Genymotion is good, but it takes a hell lot of space on my working PC Nov 30 13:51:33 it takes disk space, of which i got plenty :) The good thing is that is had virtualbox's awesome performance Nov 30 13:51:45 does have* Nov 30 13:51:58 No Bluetooths support there, right? Nov 30 13:51:59 was forced to use the "default" emulator the other day, and i didn't know why I used it for as long as I did Nov 30 13:51:59 -s Nov 30 13:52:13 ZiNC: you could try bridging a usb BT device trough virtualbox Nov 30 13:52:19 I know. Nov 30 13:52:21 but I don't know if that would actually work Nov 30 13:52:24 But that's not ideal for me. Nov 30 13:52:29 I think BT works fine, geny is vbox basically Nov 30 13:52:42 it doesnt support bluetooth still i don't believe Nov 30 13:52:43 What I read suggests Android x86 on VM can use that. Nov 30 13:53:00 Again, best to work with actual devices :) Nov 30 13:53:13 btw what's the big benefit Nov 30 13:53:18 What would be the best way to keep a service alive as long as it has bound activities when dealing with an orientation change Nov 30 13:53:19 do the apps not behave the same? Nov 30 13:53:34 They probably do. Nov 30 13:53:42 i mean i've tested on both, but haven't done it long enough to notice subtle differences Nov 30 13:53:43 you can actually change the phone's 'hardware' settings trough the vbox gui (I lowered the amount of ram used for most of my Genymotion devices, because running two tablets which each claim 2gb of ram on a 4gh ram host machine is... painful) Nov 30 13:54:18 guys any other channels for porting apart from android-root Nov 30 13:54:20 Also, it's possible (quite easy) to install Google Apps on Genymotion devices, which means that I can test my Maps Api app there Nov 30 13:54:50 i've been having weirds bug since updating to genymotion 2.2 Nov 30 13:55:33 BTW, any preferred phone manufacturers for dev? Nov 30 13:55:44 wondered the same Nov 30 13:55:59 ZiNC: the nexus devices Nov 30 13:56:04 Why? Nov 30 13:56:06 and then one from each large vendor Nov 30 13:56:11 because Stock Android Nov 30 13:56:21 Why's that an advantage? Nov 30 13:56:33 the lack of disadvantages :p Nov 30 13:56:37 lol Nov 30 13:56:48 but don't ask me, I only have one device actually Nov 30 13:56:51 You might say Samsung has the largest share, so it's the ideal. Nov 30 13:56:59 somewhat true Nov 30 13:57:08 Then again, what significant differences do you expect in core Android support? Nov 30 13:57:09 but a nexus device had the most 'vanilla' environment Nov 30 13:57:12 checks out. Nov 30 13:57:34 has* Nov 30 13:57:45 (I have to type slower :p ) Nov 30 13:57:58 some drawables might be present or absent, or just different, and just general differences Nov 30 13:57:59 I have no real info. For now I'm just somewhat leery of smaller manufacturers, e.g. Pantech, but maybe there's no reason. Nov 30 13:58:17 just get as many different devices as you can get Nov 30 13:58:51 That's not going to happen in my case. Nov 30 13:58:57 different android versions, different vandors with thei own skins, different number of cpu cores, or maybe even different cpu architectures, etc... Nov 30 13:59:19 I don't think that matters to anything I'll do. Nov 30 13:59:24 It's not like J2ME phones. Nov 30 13:59:30 But the ncie thing is that you can test for x86 on your emulator and the ARM oon most/all/the only device(s) you have Nov 30 13:59:37 Where you do have significant differences in behavior and support. Nov 30 13:59:44 If you've never touched the NDK, then indeed not Nov 30 13:59:57 Hmm... I have an idea. Nov 30 14:00:03 Maybe I can find virtual Bluetooth for Windows. Nov 30 14:00:13 That'd allow testing Android x86 in VM -> host PC. Nov 30 14:00:27 Or multiple VMs, if the BT driver can have multiple isntances. Nov 30 14:01:35 Hmm... or maybe just multiple BT dongles on a hub. :) Nov 30 14:02:51 What stops cyanogen inc or rather anyone from taking the latest android release from AOSP and installing it on their device? Stupid question I know, but I don't get it. Is it device compatibility issues, or are they withholding certain code? Nov 30 14:03:25 What device? Nov 30 14:03:32 If im loading image from server and get Drawable _d = (Drawable) _message.obj; where Message _message Nov 30 14:03:39 anyone that mets the specs required Nov 30 14:03:43 how could I convert _message.obj to Bitmap ? Nov 30 14:03:45 but my device is atrix Nov 30 14:04:18 I don't know what the limitations are. But my guess would be that mostly they can. Nov 30 14:04:20 meets rather Nov 30 14:04:28 ah Nov 30 14:05:06 seems like cyanogenmod is always mixing and matching different kernels and when released has tons of bugs Nov 30 14:05:50 maybe i missed something Nov 30 14:06:03 cyanogenmod is actually the only thing that doesn't have tons of bugs on my HTC Wildfire Nov 30 14:06:23 even my device with android 2.2 (cyanogenmod) still had bugs in it Nov 30 14:07:24 anything sense-based for the HTC Wildfire (including the stock rom) is a huge bug that's so big that [insert stupid joke here], but cyanogenmod 7.2 was the most stable custom rom I could find Nov 30 14:07:53 guys any other channels for porting apart from android-root Nov 30 14:08:02 need some help with a custom rom port Nov 30 14:08:16 same, and i keep reverting back to it, but after getting used to android 4+ i'm too spoiled to go back to 2.2 Nov 30 14:09:11 /list Nov 30 14:09:11 sethandroid: if noone in android-root and noone here can help you, then I'm afraid that you'll have to do the work yourself Nov 30 14:09:26 sethandroid: maybe try a forum like xda-developers instead of irc Nov 30 14:09:34 hi guyz Nov 30 14:09:55 Eeeeeee: how old is your device? Nov 30 14:10:04 lol 2.5+ yrs Nov 30 14:10:09 mmhmm thats the only way Nov 30 14:10:18 thanks anyway guys Nov 30 14:10:19 I'm using android studio I need to import Facebook sdk into my project Nov 30 14:10:30 Eeeeeee: ah, that explains Nov 30 14:10:31 I did follow Facebook developers prerequisites website Nov 30 14:10:34 lol :D Nov 30 14:10:59 android 4.0 on my HTC Wildfire also doesn't really work well Nov 30 14:11:02 it still has 1gb ram and dual core processor Nov 30 14:11:06 But I can't see the module in my modules page under project structure Nov 30 14:11:06 oh Nov 30 14:11:11 anyone can help ? Nov 30 14:11:24 Eeeeeee: my currect device has 1gb ram and a dualcore 1ghz cpu, and it runs 4.0 just fine Nov 30 14:11:25 ya it was the shit when i got it, and apparently it still sells for $200 Nov 30 14:11:28 less than 1 year old Nov 30 14:11:31 so i decided to keep it Nov 30 14:11:39 mine was $1999 :) Nov 30 14:11:45 Eeeeeee: what device is it? Nov 30 14:11:46 no it runs 4.0 fine Nov 30 14:11:56 eh, $199, not $1999 :p Nov 30 14:11:58 motorola atrix 4g att Nov 30 14:12:02 LOL Nov 30 14:12:05 er caps Nov 30 14:12:06 ah, yeah Nov 30 14:12:22 guess it's probably time for an upgrade Nov 30 14:12:31 WE HAD A GOOD RUN Nov 30 14:13:31 Eeeeeee: nah, the specs of your device are almost the same as mine Nov 30 14:13:34 mainly I was wondering why they always use different kernels, you would think that the stock android ones would be the best Nov 30 14:13:37 so it should still be a decent phone Nov 30 14:14:03 no it is, but not a lot of devs willing to port new versions of android Nov 30 14:14:34 Eeeeeee: the kernels contain the drivers for all the hardwre, which is different for many phones. And most of those drivers are not opensource, so many phones require their own kernel Nov 30 14:14:41 as someone only just decided to release 4.2 unofficial cyanogen experimental build Nov 30 14:14:51 thanks Nov 30 14:14:55 that's what i thought Nov 30 14:15:41 just didn't know if google open sourced everything Nov 30 14:15:42 it would be nice if most drivers are opensource (as is mostly the case on linux on x86 desktops) but unfortunately, nope Nov 30 14:16:03 android itself is opensource, but android doesn't contain drivers Nov 30 14:16:15 ah ok i gotcha Nov 30 14:18:17 a usual rom is: android (open source) + kernel (open source) + drivers (usually compiled into the kernel, usually mostly closed source) + Google Apps (closed spource) + vendor skin (Sense, Touchwiz, Motoblur, ...; also closed source) + some extra unimportant apps Nov 30 14:18:40 the opensource part (android and the kernel itself) is not that large actually Nov 30 14:19:54 oh, and then there's bootloaders, which are not part of a rom, but are generally locked (so that you can only install soms signed with a certain (vendor-)key) but can often be unlocked in some way or another Nov 30 14:22:46 honestly I've tried to learn more about linux, but it's kind of like when you're young and think i'm never gonna use this stuff they teach in class. Until you do, and then you wished you would've paid attention Nov 30 14:25:28 I am still young, and I use the advantage :) Nov 30 14:25:33 :D Nov 30 14:25:41 (not that I learn anything at school or something :p ) Nov 30 14:26:06 when you have a learning disability reading man pages is like being water boarded Nov 30 14:26:29 I have a school-disablility. I learn stugfff when I am at home, and not at school :p Nov 30 14:26:55 I learned to write in primary school, I can't write but I can type Nov 30 14:27:06 if they had like video tutorials of how to use linux tools to complete real world projects i would be all over that Nov 30 14:27:09 how old? Nov 30 14:27:26 I learned 5 languages in high school, I've always scored high on English and low on all the others Nov 30 14:27:27 college or hs? Nov 30 14:27:29 Eeeeeee: 19 now Nov 30 14:27:36 just high school Nov 30 14:27:50 I've never properly finished high school Nov 30 14:27:58 it's overrated Nov 30 14:28:14 but I'm done with all the ;education' bullcrap. Just gimme internet, and I suck out the knowledge like it's nothing Nov 30 14:28:35 thats what she said Nov 30 14:29:10 and I've proved that since I was 9 (I learned fscking HTML when I was 9, Javascript and php before I was 12, and noe I'm working on Java, Python, and anything else that crosses my path) Nov 30 14:29:53 And the typo's in that sentence are the evidence that they should focus on typing, not handwriting, in primary schools Nov 30 14:30:10 i was home schooled after 9th and literally did the least possible amount of work possible, got into college and was surprised to realize i knew more about most of tech professions than the teachers Nov 30 14:31:00 i got bitched at throughout school for not using cursive Nov 30 14:32:13 I got lower grades because my handwriting wasn't readable by most of my teachers Nov 30 14:32:16 now i only see people use cursive for their signatures, and haven't seen any important documents not typed and printed in like 12 years Nov 30 14:32:24 Eeeeeee: same here Nov 30 14:32:25 mines worse Nov 30 14:32:51 Eeeeeee: yours it not worse :p Nov 30 14:33:01 maybe 'just as bad' but that's anout it Nov 30 14:33:02 ya it is Nov 30 14:33:03 don't forget to actually educate yourself on the stuff you missed by not going to college Nov 30 14:33:18 Cursive is useful, if you want to write quickly, and you're stranded on a desert island without a computer. Nov 30 14:33:21 Phlow: most people never go to college Nov 30 14:33:23 a lot of it is useful, and if you're as good at teaching yourself as you think, it shouldn't be that bad Nov 30 14:33:41 Hell, kahn academy Nov 30 14:34:03 Sorry, the educational system in the Netherlands must be quite different Nov 30 14:34:09 What is kahn academy? Nov 30 14:34:31 Khan? Nov 30 14:34:38 it's funny because my friend who took compsci at the same university and actually learned java.. i'm holding his hand on this app dev job he somehow landed, and i don't even know java syntax other than from what i've hacked together using the SDK Nov 30 14:34:46 Peetz0r: https://www.khanacademy.org/ Nov 30 14:34:46 Cyp_ rofl Nov 30 14:35:41 Eeeeeee: well, if your code actually did compile, and work like expected, then you probably know more than he does after his first year Nov 30 14:35:45 Phlow don't forget to actually educate yourself on the stuff you missed by not going to college: you mean sex, drugs, and alcohol? I'm up to speed don't worry Nov 30 14:35:52 lol Nov 30 14:36:51 i'm sure the structured learning environment is probably helpful Nov 30 14:36:53 I'm speaking from experience. I was homeschooled through a lot of highschool, stopped college after associates. I'm a software architect now, but I have a lot of gaps in my knowledge Nov 30 14:37:01 same Nov 30 14:37:08 er shit Nov 30 14:37:26 lack of sleep these P names blended together Nov 30 14:37:49 phlow yeah I know exactly what you mean Nov 30 14:38:18 hmmm, im a little confused... I want to pass an object between the different activities of my application. it's fairly simple object containing the data used by the application. the data it taken from a remote server and updated every 15 mins or so so it doesn't need to survive if the app is killed. i just don't want it having to refresh every time the user navigates to a different activity. ive been down the road of Nov 30 14:38:18 making everything parcelable, but i've just realised it probably created a new object for each activity, leaving me with multiple, copies of the same data. is there a way of passing a reference to an object between activities rather than the object itself as a parcelable? Nov 30 14:41:49 gsteinert, if you don't store it in an activity then yes Nov 30 14:41:56 don't store data in the presentation layer :/ Nov 30 14:42:52 I picked up on php and a little python just from reading a lot of code, but it's weird how much the java syntax is throwing me for a loop. My friend that codes C++ says it logical and straight forward, but I think it's very very confusing. I think i jumped too quickly into hacking together apps, and probably should've spent time reading a few chapters on java first Nov 30 14:44:19 Eeeeeee: java isn't too much different from php/C++ imho, Android however has a very different lifecycle for programs than other systems Nov 30 14:46:26 Mavrik: I've always had trouble with the whole separation of data and view thing. I've got an AppInfo class that holds the relevant data. It is created by the main activity and used. My issue is that I don't know how to get to that object once I've launched a second activity. Do I need to pass a reference through the intent or is there another way to get at it? Nov 30 14:46:29 well php the code was really readable and just made sense to me Nov 30 14:47:07 gsteinert, that depends on how you loaded the data Nov 30 14:47:13 and what that data represents Nov 30 14:47:28 if it's a small object that represents a "state", it's ok to just create a singleton Nov 30 14:47:51 otherwise I tend to use message bus design where I send data as "sticky" and the activities subscribe for that message bus Nov 30 14:48:17 Eeeeeee: The problem I had coming from PHP and a little C++ was the fact that there seems to be a class for every little thing in Java... and I think it's a Java thing rather than just an Android thing. Once you get the hang of holding how everything works together in your head it does make sense. Nov 30 14:48:22 gsteinert, passing around references as parameters usually isn't the most time-efficient idea inside a single app :) Nov 30 14:49:28 Mavrik: It's data representing the state of a number of servers (ip address, last heartbeat, nothing too complitcated) I'll look into singletons, thanks :) Nov 30 14:50:00 (note that some people will claim singletons are "bad design".) :) Nov 30 14:50:42 but with java I look at code, and I can't make sense of the syntax. Probably just need to learn whats actually going on instead of just trying to read code like I was able to do with php Nov 30 14:51:18 Mavrik: And some people claim Java is the devil and shouldn't be touched with a flaming barge pole :P You'll never get everone to agree on everything all the time :P Nov 30 14:51:30 lol Nov 30 14:52:02 Eeeeeee: is there anything in particular you don't get? DO you normally go the object-oriented route in PHP? Nov 30 14:52:31 I blame the SDK. they've made it so easy that its possible for someone that knows nothing about java to throw together some code and compile an app Nov 30 14:52:54 honestly i'm rather new to object oriented programming Nov 30 14:53:16 maybe that's the problem Nov 30 14:53:41 Android rather radically changes how an "Application" works if you are comparing it to desktop/web apps Nov 30 14:54:05 so learning Java with Android SDK isn't all that easy :) Nov 30 14:54:23 almost all the php I've done was through wordpress or some plugin/program that interfaced with the wordpress api Nov 30 14:54:54 Eeeeeee: I think that's the biggest difference between PHP and Java. Also, you have to get out of the 'script' mentality. An object oriented program doesn't have a defininte start and end, it's more than just 'start here, follow these instructions one by one then exit' well... it's exactly like that underneath but you know what I mean! Nov 30 14:55:23 that's nothing to do with object orientation as such - it's because it's event-driven Nov 30 14:55:28 haha Nov 30 14:58:28 I only just learned that the api is basically just a collection of java objects and classes. if that gives you an idea of how much java i know Nov 30 15:05:16 Any German Freelancers here? Nov 30 15:05:23 I see the task to load data list from remote servers into listsviews with proper pagination and proper "loading" indication is a very common requirement. What is the best solution to accomplish this? I see some people are using solutions like custom listviews with event callbacks, and some other solutions with a customized adapter to be used with onScrollListeners. Still thinking which is the best solution to do this! Nov 30 15:08:25 what type of loading indication Nov 30 15:08:37 napster, honestly, depends on how flexible you want it to be and what your usecase it Nov 30 15:08:39 *is Nov 30 15:08:43 like swirling circle? Nov 30 15:08:52 that's why there's so many implementations... people have alot of different requirements Nov 30 15:09:08 I usually just add a throbber as a footer view and trigger load in onScroll handler of listview Nov 30 15:09:15 Mavrik: I (we all :)) want it to be extremely flexible Nov 30 15:10:09 Mavrik: Generally, any view (so the developer can use his custom style loading indicator) as a loading indicator at the bottom of the list Nov 30 15:10:18 *styled Nov 30 15:10:54 And a set of drawables to be used with the Pull-to-refresh functionality, if the user is planning to use that pattern. Nov 30 15:11:20 or generally, a set of views for that, based on the State of _THE PULL_ Nov 30 15:12:01 I think we should develop such a complete solution for everyone. Nov 30 15:12:31 yeah Nov 30 15:12:43 you're just talking about stuff that directly clashes between each other when you implement it Nov 30 15:12:57 UX-wise and code-wise :) Nov 30 15:13:18 Mavrik: not sure I understand Nov 30 15:14:51 Mavrik: See this guy has done it pretty neatly : https://github.com/shontauro/android-pulltorefresh-and-loadmore Nov 30 15:15:29 but this has a limitation that we can't easily use it with a listactivity or a listfragment Nov 30 15:21:40 Sure you can Nov 30 15:22:03 SimonVT: oh how? Nov 30 15:22:20 Just put it in your layout Nov 30 15:22:38 SimonVT: no no, I was referring to ListActivity or ListFragment Nov 30 15:22:45 Yes Nov 30 15:22:56 Put it in a layout, use that layout Nov 30 15:23:26 How can I set the Listview from inside a ListActivity? Nov 30 15:23:39 setContentView Nov 30 15:24:10 ListActivity == Activity with a single ListView in content Nov 30 15:24:18 Then the "id" has to be Nov 30 15:24:22 https://developer.android.com/reference/android/app/ListActivity.html Nov 30 15:24:28 "R.id.list: Nov 30 15:24:31 correct? Nov 30 15:24:38 https://developer.android.com/reference/android/app/ListFragment.html Nov 30 15:24:42 They even show you how Nov 30 15:25:18 Sorry for the ignorance. Nov 30 15:25:58 Noone use them anyway Nov 30 15:26:33 Because you often want your own layout, and it takes practically no extra code to duplicate behavior Nov 30 15:27:39 hmm Nov 30 15:31:21 Is there a premade Interface for the class "SurfaceView"? Nov 30 15:34:18 that's a wierd question. Nov 30 15:34:21 https://github.com/commonsguy/cwac-endless Nov 30 15:35:17 Mavrik: I am having an Interface and I want anyone implementing that Interface, also having any feature a SurfaceView has Nov 30 15:35:53 So My Interface is basically my "Renderer" and there might be serveral (software, openGL), however I have to access to that underlying surfaceview, no matter what actual Render is running Nov 30 15:36:38 ah, no Nov 30 15:37:04 SurfaceView is just subclassed, it implements no interface Nov 30 15:38:43 yes but I want to have a interface that SurfaceView could exactly fit. Is there no way besides copying all methods and vars? Nov 30 15:39:18 http://pastebin.com/0zr85Z14 like that. Imagine IB == RendererInterface and B as a renderer. class A would be the class SurfaceView Nov 30 15:45:24 Mavrik? Nov 30 15:47:15 hello! May I ask a question about Android code here? Nov 30 15:48:11 osmij_: if you mean you're writing an app, sure Nov 30 15:48:14 development related ones, yeah Nov 30 15:50:25 Eeeeeee: guess that's a no then... Nov 30 15:51:58 lol him clamming up? Nov 30 15:52:01 or did i miss something Nov 30 15:53:57 great! I'm developing an app and one of the requirements is manual selection of app locale. I have finished main part of the code - the custom locale can be selected in PreferencesFragment and after the PreferencesFragment is closed - new custom locale is applied. The only problem is that I need to somehow re-create or redraw or restart the PreferencesFragment so the custom locale is applied and shown in thr PreferencesFragment r Nov 30 15:54:06 *dialog is closed :-) Nov 30 15:55:04 Is it possible somehow to re-create Preferences fragment so new strings are displayed (from another locale strings.xml) Nov 30 15:59:51 anyone ever faced similar problem?.. Nov 30 16:00:07 why would you need to close the fragment for it to be applied Nov 30 16:01:42 Well, after I select new locale, the text in fragment is still old, not translated. After I close fragment and see main activity - I can see translated strings and when I open fragment again - I see translated text Nov 30 16:07:09 well, to be honest not all text titles are translated this way - some require app restart. But Menus are translated without app restart Nov 30 16:07:40 but still... looking for a way to refresh all fragment text to new locale... Nov 30 16:07:51 i'm new, and likely to be wrong but I'm reading up on it now Nov 30 16:08:34 oh, thanks!! Nov 30 16:16:54 you should probably ask someone else that knows more about fragments ;) Nov 30 16:18:48 ok ;-) thanks a lot anyway! Nov 30 16:18:52 but if i had to take a wild guess i would take a look at 'public void onSaveInstanceState (Bundle outState)' Nov 30 16:19:09 In any case I can always just ask user to restart app via dialog... Nov 30 16:19:46 inconvenient Nov 30 16:19:52 "Called to ask the fragment to save its current dynamic state, so it can later be reconstructed in a new instance of its process is restarted. If a new instance of the fragment later needs to be created, the data you place in the Bundle here will be available in the Bundle given to onCreate(Bundle), onCreateView(LayoutInflater, ViewGroup, Bundle), and onActivityCreated(Bundle). " Nov 30 16:20:24 the app is very simple, is started within 0,2 seconds and locale is usually changed just once... Nov 30 16:23:47 Hi all Nov 30 16:23:59 I'm playing with a google glass right now, I'm trying to make a sample app, but I get this error: java.lang.NoClassDefFoundError: com.google.android.glass.app.Card and I'm using android studio Nov 30 16:24:00 hello! Nov 30 16:25:40 osmij_ this may or may not be similar to what you're trying to accomplish http://stackoverflow.com/questions/11903346/refresh-android-preferencefragment Nov 30 16:27:24 Hi. Nov 30 16:30:29 Eeeeeee not, exactly, this way I would need to read from strings.xml from specific directory, for example values-fr or values-es... And I don't know if that is possible... Nov 30 16:31:34 patrick91 to be honest, I never saw this error myself, so I can't tell for sure... Have you tried this? http://stackoverflow.com/questions/8678630/noclassdeffounderror-android Nov 30 16:31:54 might be a dependency problem Nov 30 16:32:04 patrick Nov 30 16:32:29 probably it is, but I'm not sure how to figure out what do I need to add Nov 30 16:32:48 I've tried to add the gdk.jar but I got a runtime error: stub! Nov 30 16:33:06 is it possible to manually read strings from values-fr?.. Nov 30 16:33:51 oh wait, that might be it... Nov 30 16:40:20 " Nov 30 16:40:20 At runtime, the Android system uses the appropriate set of string resources based on the locale currently set for the user's device." Nov 30 16:43:38 can anyone test some features of my app on an armv7 device? Nov 30 16:44:49 http://stackoverflow.com/questions/2264874/changing-locale-within-the-app-itself?rq=1 Nov 30 16:44:56 osmij_ Nov 30 16:45:10 this guy says: Nov 30 16:45:10 I have also spent a lot of time trying to make the preference change to be applied immediately but didn't succeed: the language changed correctly on Activity restart, but number formats and other locale properties were not applied until full application restart. Nov 30 16:48:21 osmij_ http://stackoverflow.com/a/4881721 Nov 30 16:49:50 if that doesn't work I give up haha. Just had a crash course in fragments and localization though! Nov 30 16:52:13 yo people Nov 30 16:52:21 whats up Nov 30 16:55:28 Hi Nov 30 16:55:38 hello Nov 30 16:56:18 Eeeeeee, same in my case: some details are not translated even after fragment is closed Nov 30 16:56:21 Is it possible to send UDP broadcast messages to local network through android emulator? Nov 30 16:56:55 I'm able to send normal UDP packets (with DatagramSocket & DatagramPacket classes) but not broadcast one... Nov 30 16:57:41 Eeeeeee, I guess I will have to ask user to restart, even though partly interface is translated... Nov 30 16:58:02 what other details Nov 30 16:58:17 Eeeeeee, thanks a lot!! Nov 30 16:58:37 np learned a lot ;) Nov 30 17:03:40 ok, I want to bookmark some data in my app, is using SQLite best way out Nov 30 17:04:14 every bookmark comprises of three values/parameters Nov 30 17:06:14 Hey all, I have a ViewPager in a layout file. I want to be able to add a couple of static buttons to the bottom. Is it possible to fix a LinearLayout under a ViewPager? Nov 30 17:06:55 what kind of data Looney Nov 30 17:07:31 Does it looks like Nov 30 17:07:36 s/data/bookmark Nov 30 17:07:38 Is that wrapper LinearLayout necessary? Nov 30 17:08:08 Eeeeeee: its three strings per bookmark Nov 30 17:08:46 well, favourite would be a better word instead of bookmark Nov 30 17:08:49 is there a way to know if a sensor on a device is a hardware or software sensor? Nov 30 17:12:28 Hello. How can I get rectangle with left and right side rounded using shapes? I know how to round corners, but what should I do to get perfect circles on both ends? Is it possible ? Nov 30 17:17:30 hi, I'm downloading the latest ADT bundle and I was just wondering what version of the jdk is supported? On the website I see jdk-7u45 Nov 30 17:18:21 By website I mean that jdk-7u45 is the most recent on the Oracle website Nov 30 17:19:15 guys! Nov 30 17:19:55 eindoofus: The latest JDK should be fine, I don't even think Android has support for all of Java 7's features anyways Nov 30 17:20:36 thanks MarkyC Nov 30 17:24:35 eindoofus, use latest JDK due to bux/security fixes Nov 30 17:25:02 Android code is limited to Java6 subset tho. Nov 30 17:26:16 * Looney uses 1.7.0_04 and never had any build/compile problem so far Nov 30 17:26:51 People exploiting you via security hole when you run a browser will be happy to know that. Nov 30 17:26:53 ;) Nov 30 17:27:26 hmm, gotta get latest java then Nov 30 17:27:42 btw, not much of a Java website visitor Nov 30 17:27:52 only used for Android dev Nov 30 17:28:02 had it not been for this Nov 30 17:29:01 Mavrik hahahaha Nov 30 17:30:45 Looney, my app is using sqlite for favoriting/bookmarking, but your situation might be different. Nov 30 17:31:34 sqlite seems a bit tricky thing as compared to rest of Android Java to me :-( Nov 30 17:32:06 just the opposite for me i'm more comfortable in an sql environment Nov 30 17:32:23 any hint/pointer that I should be on lookout for Nov 30 17:32:40 well, for me, tis a first time encounter Nov 30 17:32:51 thus some worry/tension Nov 30 17:32:54 and i want to export favorites to csv/excel on sdcard Nov 30 17:32:58 hopefully it will go well Nov 30 17:33:28 now, you are giving me cheat-sheet alternate ideas :-P Nov 30 17:33:51 nope I'm new too, so my opinion doesn't really matter Nov 30 17:34:04 i just picked what I was comfortable with Nov 30 17:34:41 well, I am going to jump the db band-wagon Nov 30 17:34:47 see how it turns out Nov 30 17:35:24 are you gonna be storing a lot of data/favorites? Nov 30 17:36:00 not me :-P but hopefully user will be having less than 100 Nov 30 17:36:10 favourites Nov 30 17:36:28 ah i'm storing thousands Nov 30 17:36:34 which is another reason Nov 30 17:37:05 ok Nov 30 17:37:14 well, I gotta get going Nov 30 17:37:21 catch you peeps later ;-) Nov 30 17:48:46 Is it possible to send UDP broadcast messages to local network through android emulator? Nov 30 17:58:23 how can I insert something in a table in Sqlitehelper OnCreate method? Nov 30 17:58:53 Hey guys, I have a function to a display an input dialog and return the output, but how can I make it wait for input in order to return? Right now it just returns instantly since I can't put return within onClick(); http://pastebin.com/u2Bwb1BM Nov 30 17:59:03 MO_Handes: the same way you would anywhere Nov 30 17:59:55 you want to create a ContentValues, then use .put() to put into there, and then use db.insertIntoTable("tableName",contenteValuesVariable) Nov 30 18:00:49 on a completely unrelated note Nov 30 18:01:18 "And now for something completely different" Nov 30 18:01:26 lol Nov 30 18:01:29 https://play.google.com/store/apps/collection/promotion_2013_cyberweekend_device fade to black background with stationary pattern and sticky menubar is so sexy Nov 30 18:01:49 oooh Nov 30 18:01:55 Google's getting fancy Nov 30 18:03:27 that landing page makes we want to buy everything on the page just to validate their efforts Nov 30 18:04:27 and then recreate it to post on github Nov 30 18:07:26 when's gonna start giving out chromecasts to developers for free Nov 30 18:07:36 +google Nov 30 18:10:11 or are they gonna pull one of those "it's only $35, now go buy one and make this device useful" Nov 30 18:12:07 ollienx, will you take a look at my code? Nov 30 18:12:11 sure Nov 30 18:12:41 http://paste.debian.net/68611/ Nov 30 18:13:30 in line 263 I do the thing, this makes me make sd static in line 58, this causes error Nov 30 18:15:31 sorry had to take a call from a client Nov 30 18:15:31 one moment Nov 30 18:16:12 MO_Handes: you don't wanna be inserting to sd Nov 30 18:16:15 you wanna insert to db Nov 30 18:16:16 the argument Nov 30 18:16:33 so do db.insert(settingsTable,null,cv); Nov 30 18:18:24 uh, what a mess, thanks, did it ^_^ Nov 30 18:36:06 <^cheeky> i think i figured how to do that ... i think .. Nov 30 18:50:51 I let the user choose it's profile picture from his gallery, what is a good manual to help me save the picture and reload it everytime? Nov 30 19:01:41 phone is saying sim card isn't allowing me to connect to mobile network Nov 30 19:01:42 wtf Nov 30 19:54:55 Guys, Im struggling to Google something because I dont know the term I need to use hahah Nov 30 19:55:17 I want a list of different areas of interest people could subscribe to, such as Food and Drink, Art and Literature, Sport, etc. Nov 30 19:55:28 What is the name for those interest areas Nov 30 19:56:10 categories? Nov 30 19:56:38 Thats a word I hadn't thought of! Nov 30 19:56:49 popular culture Nov 30 20:01:52 Thanks! :D Nov 30 20:14:00 damnit, can't go to Maui today Nov 30 20:15:31 * pfn sits on the ship while it sails away & Nov 30 20:15:47 before signal goes away... Nov 30 20:18:03 hello, I just have a question..I am trying to understand how the onSaveInstanceState() method works..so if I have for instance an EditText and write something there and if I rotate the screen then the text will be gone right? Nov 30 20:18:40 so i need to use onSaveInstanceState() to save the data and then use onCreate to restore the data Nov 30 20:19:27 EditText should automatically store it's state Nov 30 20:19:49 unless you disabled saving state yourself. Use onSaveInstance state for Activity state variables that aren't UI Nov 30 20:20:10 ahh ok that would gonna be my next question^^ Nov 30 20:20:16 because it does it automatically Nov 30 20:20:19 ok thanks Nov 30 20:20:49 basically views do that themselves :) Nov 30 20:21:29 I read the developers guide and they didn't mention it there... Nov 30 20:21:48 ahh no my fault: The default implementation takes care of most of the UI per-instance state for you by calling onSaveInstanceState() Nov 30 20:22:50 thank you again..now I will continue reading^^ Nov 30 20:24:56 on which API-level did they implement it? to store the state automatically? because I found some code on the internet, which shows how to save you gui-elements like EditText and so on Nov 30 20:25:18 It was not implemented from the beginning? Nov 30 20:25:28 starting with API level 1 Nov 30 20:25:31 ? Nov 30 20:28:26 Yes it was Nov 30 20:37:36 JesusFreke http://imgur.com/DFeRlVs Nov 30 20:50:58 g00s: haha Nov 30 20:52:35 Morning!! Nov 30 20:53:42 g00s: now I'm tempted :p Nov 30 20:53:51 :D Nov 30 21:06:48 SimonVT: Remember our little discussion yesterday on the setting in getview vs the click listener? Nov 30 21:11:35 desmin88: wat b dah query u quander? Nov 30 21:12:33 In my listadapter in a getview, I set an onclicklistener that changes an imageview's drawable Nov 30 21:12:44 it gets all wonky because of the reusing of views Nov 30 21:13:08 why would it be wonky, if you set the onclicklistner per each visible listview? Nov 30 21:13:16 listview reuses views Nov 30 21:13:34 sure Nov 30 21:13:34 i know, but in getView you can set the onClickListener each time Nov 30 21:13:38 thats why you must set the views text/drawable everytime from the holder Nov 30 21:13:44 but if you set it later, it gets wonky Nov 30 21:13:51 canvs2321: i already do tha Nov 30 21:14:17 what? set your holder, inflate your view if null etc..after all that you do you setOnClickListener based on view Nov 30 21:14:20 position Nov 30 21:14:44 observe: http://pastie.org/8519573 Nov 30 21:14:48 sure it recycles views, but you can set your dynamic code anytimg Nov 30 21:16:17 let me get a picture Nov 30 21:16:30 so what's the problem? is it not registering clicks at all, or reusing listeners? Nov 30 21:16:43 let me get a picture Nov 30 21:16:56 Hello, if I pay 25 USD for android dev status, then if credit card i used for payment will be somehow connected to my account? or can i safely use someone else credit card just to pay this 25 USD? Nov 30 21:17:43 desmin88: why are you creating a new ImageView instead of changing your holder? maybe ImageView.invalidate() in your onclicklistener Nov 30 21:18:09 what? Nov 30 21:18:44 You still haven't figured it out? Nov 30 21:19:01 Haven't been on my pc since yesterday Nov 30 21:19:09 been really busy with family crap, so didnt think about it Nov 30 21:19:50 hey all, I've created a project with android studio and the appengine backend but when I start RegisterActivity from within my main activiy I get a Class not found exception Nov 30 21:20:12 Well either way the issue is because i cant get a picture is I'll click one imageview to change it, and as i scroll down and views get reused other imageviews are also changed even though they were not clicked Nov 30 21:20:22 line 94 to 97, why you do ImageView imageView = (ImageView) v;, why not set holder.favorite.setBackgroundResource or imageView.invalidate after setting image. Just not sure how when convertView is returned inflated and filled, how using imageView is updated compared to updating holder.favorite. Nov 30 21:20:54 desmin88: ahhhh i see Nov 30 21:20:55 Well yeah, views aren't "reset" in any way when being reused Nov 30 21:21:00 ListView wouldn't know how to do that Nov 30 21:21:05 you're right i dont need to cat Nov 30 21:21:06 cast Nov 30 21:21:09 but still issue remains Nov 30 21:21:14 you need to set holder.favorite to a cached view til you change it Nov 30 21:22:16 That's why you need to set all information needed to recreate an item as it was in getview Nov 30 21:22:31 ok. Nov 30 21:23:40 So my idea would be then, would be when someone clicks on something, it puts that position in a list. in my getview, i set the background based on if its in that list/ or not Nov 30 21:24:02 bingo Nov 30 21:24:10 cool beans Nov 30 21:24:40 You now also have some information you can retain when changing orientation, etc Nov 30 21:26:27 it would probably be best to use a hashset for the .contains rather than a list like i said Nov 30 21:26:36 desmin88: can use a boolean the size of your list, then in getView after setting/creating your view&holder, if(favorite[position]){holder.favorite.setBackgroundResource(..);}else{holder.favorite.setBackgroundResource(R.drawable.ic_unimportant);} Nov 30 21:26:57 you can use arraylist, maps,boolean arrays etc...anything you want Nov 30 21:26:59 my list is variably sized so i cannot use an array Nov 30 21:27:07 It seems you already have some class that holds information about each item, Post Nov 30 21:27:24 Maybe add another field to that? Nov 30 21:27:25 yes post is a class used with gson Nov 30 21:27:25 but you can recreate array size when you change your adapter data Nov 30 21:27:47 or let a hashset do it for me Nov 30 21:28:18 techcrunch.com/2013/11/28/massively-mobile-messaging/ Nov 30 21:29:02 there are many ways, array seems minimalistic, hastset may add extra overhead i'm not sure, just depends on size&usage of what you want. but you can do anything, it's just finding the opitmal approach Nov 30 21:29:10 yeah Nov 30 21:34:11 do the other big messaging apps have something unique like snapchat, or are they just straight forward messaging apps? Nov 30 21:34:56 Eeeeeee: you lost? Nov 30 21:35:23 i'm developing a messaging app, but yeah I am lost Nov 30 21:35:44 It's just your question seemed like something to be said alone at night in the forest... Nov 30 21:35:46 :) Nov 30 21:35:54 lol Nov 30 21:36:21 so what's your edge? what's gonna set you apart? Nov 30 21:36:29 if a question is asked in a forest does it make a sound? Nov 30 21:36:31 gimmicks 'r us Nov 30 21:36:32 lol Nov 30 21:36:44 i'll tell you in pm if you promise not to steal it Nov 30 21:36:48 pinky swear Nov 30 21:37:04 gsteinert: that's the point, is makes the same sound as being locked in a padded white room with a jacket on :) Nov 30 21:37:33 Eeeeee: just say it hear, if you need developing help, otherwise, i'm confused :) Nov 30 21:37:57 i really liked most of cwac's stuff but after using it for a while all its done is kinda bog me down :/ Nov 30 21:38:16 haha i don't have any specific question just wanted to hear some smart opinions Nov 30 21:39:05 Eeeeeee: if you think of the big mobile messengers... you've got the likes of BBM... first ones to the party, Whatsapp... like BBM but cross platform, KiK... like whatsapp but based on usernames rather than phone numbers Nov 30 21:39:25 everything has something that sets it apart, it might only be something small but it changes how people use it Nov 30 21:39:38 you wouldn't use whatsapp to message someone who you didn't want to have your phone number Nov 30 21:39:38 def Nov 30 21:39:45 so you steal from us? haha :) just use your thoughts&needs to create the most awesomess of awesome all knowing messaging app of the ages? only you know what is needed in this life, cuz it's your life so if you don't need it, who the fuck else could possibly? Nov 30 21:39:56 but at the same time you'd use whatsapp for people you knew because its so much easier to find them Nov 30 21:42:06 snapchat is a completely different concept... i think the next big messenger will be one to incorporate enough features of whatsapp/kik and snapchat to be able to replace both with one app Nov 30 21:42:45 honestly I've never tried anything other than snapchat cause I figured they were basically just text messaging apps.. or do they have something truly unique going on as well? Nov 30 21:44:09 i use them as an alternative to texting... no easier or harder. there are a few features that text messaging lacks like confirming a message has been received/read but the main benefit I think is for people on contracts with limited texts Nov 30 21:44:30 or those on PAYG who get data anyway Nov 30 21:44:32 that's what I assumed Nov 30 21:45:50 Hello, could someone help me with IllegalStateException (notifyDataSetChanged) which calls from Jeff Sharkey's SeparatedListAdapter (http://goo.gl/s2rs5p) ? PM me please. Thanks! Nov 30 21:47:16 EPIXOR: I've not looked at the code, but I'd suggest finding a more up to date solution to your problem. That post was written 5 years ago, Android has come a long way since then :P Nov 30 21:47:37 Do I have to use (application class)context.getapplication()? Or can I use application.getInstance().whatever()? Nov 30 21:48:33 I've seen examples where they make it a singleton, but never use the getinstance method. Nov 30 21:49:43 gsteiners: Do you know alternative solution for this? Which are you using? Nov 30 21:50:26 *t Nov 30 21:50:41 Is there a way to initiate Android encryption from a Terminal, or from adb? Nov 30 21:53:18 what's weird is i haven't reinstalled snapchat since formatting phone, but friend has sent like 50-100 snaps since. You would think they would have some sort of email notifications in place. Nov 30 21:53:34 EPIXOR: This looks promising http://www.androidhive.info/2013/07/android-expandable-list-view-tutorial/... I'm not saying the linlk you have is no good... but you have to be aware you're looking at code written for an API that has gone through some major changes since Nov 30 21:54:25 Eeeeeee: your friend sending your 50-100 snaps = u being a terrorist , or damn you been missing out on some action! Nov 30 21:54:32 Eeeeeee: how would they know the failure to deliver a snap was down to an uninstalled app rather than the phone being off or out of network range? Nov 30 21:54:45 gsteinert: Ok, thanks a lot for helping me. Bye Nov 30 21:54:50 oh Nov 30 21:55:09 you can't track that action? Nov 30 21:56:13 Maybe.... I think there's some kind of feedback on uninstalling an app, but whether that feedback fingers a particular device... and then that device id can be used to point to a particular account... is another qusestion Nov 30 21:56:32 an ethical question Nov 30 21:58:25 indeed. I know you can find out some info on the devices that have your app installed... which device, which version of android etc.... but definitely not a list of devices that have it installed. i can't see google deciding its too much to give you a list of devices with your app installed but think its absolutely fine to tell you who hsan't! Nov 30 21:59:01 regardless of them knowing if you uninstalled, if you haven't signed in for months and tons of snaps are piling up that should trigger some kind of notification. unless in this app based world it's considered uncool or something to email like fb does Nov 30 21:59:37 so I've got some python scripts that I use to prepare data for my app Nov 30 21:59:40 Eeeeeee: that would make sense... but do you provide an email address when you sign up Nov 30 21:59:52 where should I put these scripts in my source tree? Nov 30 21:59:53 ya Nov 30 22:00:09 right now, my android project is in the root of my git repo Nov 30 22:00:18 and honestly i don't know anyone who would have phone turned off for like a month at a time, or even like a couple of days Nov 30 22:00:24 Eeeeeee: seems like a bit of a failing on their part then... missing a chance to get back some lost customers Nov 30 22:00:28 Hey guys, I have a function to a display an input dialog and return the output, but how can I make it wait for input in order to return? Right now it just returns instantly since I can't put return within onClick(); http://pastebin.com/u2Bwb1BM Nov 30 22:00:30 lol Nov 30 22:00:39 its like, these guys are worth 4b? Nov 30 22:01:05 RustyShackleford: src/python? Nov 30 22:01:32 RustyShackleford: barring restriction by convention, wherever you want! maybe a scripts/ directory? Nov 30 22:02:34 has to be considered uncool. only explanation in my eyes. that or money/staff problems Nov 30 22:04:09 ollienx: You have a fundamental problem in your logic... you're expecting the function to show the dialog... then wait... then carry on. it just doesn't work like that. what you need is to use that function to show the dialog, then in the event handler for the OK button (or whatever you are using to confirm the input) you can return the value Nov 30 22:04:54 Eeeeeee: money/staff problems are a non-issue for a simple nitification like that. it can all be automated in the script used to send the snap Nov 30 22:13:29 last time i read up on it they were like 4 people in their dads garage. money problems because of the bandwidth involved.. TC said theoretically it could be up to 1B snaps per day considering 25% could be videos that's a lot of money even for a well funded startup. What were they using again... AWS? Nov 30 22:16:26 err im sorry they're using google Nov 30 22:17:11 i've asked this before, but I can't decide: should I relie on google Play's location api? Nov 30 22:17:26 or take the more manual approach Nov 30 22:18:36 Eeeeeee: Compared to 1B snaps though, a few emails is nothing. you're talking a few KB each. My little mail server fends off more spam than that :P haha Nov 30 22:18:40 does androids VM cache methods or certain parts of methods that it repeats a lot? Nov 30 22:21:30 yeah totally Nov 30 22:22:42 i have a private ArrayList eventList; that i write to a file using http://pastebin.com/RgHycYWE, problem is, if i use debug mode and itterate through, everything is written properly. if i just run the app. i get http://pastebin.com/weJRhe9r (huge blocks of the same data being written out) Nov 30 22:23:42 anyone any clue why this would happen, and how i could stop it Nov 30 22:25:47 they would probably trigger spam filters Nov 30 22:28:40 thing is, i write out gps information in the same way, which writes out perfectly Nov 30 22:35:50 hi folks Nov 30 22:36:06 I could use some help when it comes to adb and an avd Nov 30 22:38:00 adb seems to be unpredictable. When I start an emulator with console and adb ports specified, and try to run adb shell getprop dev.bootcomplete, most of the times I end up getting: "error: device offline" Nov 30 22:38:06 is there anything I can do about it? Nov 30 22:39:05 RustyShackleford i would go with the location api. i've heard the manual approach is dreadful. plus not having access to the newer features they release would seem like you're starting at a disadvantage. What are your main concerns with it? removal of key features or something? Nov 30 22:40:03 download virtualbox & genymotion, and never look back? Nov 30 22:41:18 hey guys Nov 30 22:41:20 adb is unpredictable with genymotion too :) Nov 30 22:41:38 how do people discover android apps without the 'latest' tab? Nov 30 22:41:42 true Nov 30 22:41:57 searching Nov 30 22:42:03 t8: try searching for what you need? Nov 30 22:42:12 lol?? Nov 30 22:42:20 is it possible to make indie apps that aren't games and make money? Nov 30 22:42:25 jw Nov 30 22:42:28 certainly Nov 30 22:42:34 hell ya Nov 30 22:42:55 is it possible to make indie shovelware and make money? maybe not so much Nov 30 22:43:09 though with the 15min return window it's certainly possible Nov 30 22:43:15 currently working on one myself, just trying to work out some odd bugs that appear to be down to android its self Nov 30 22:43:24 i'm thinking of making some finance widgets Nov 30 22:43:44 just not sure if the niche stuff is profitable Nov 30 22:43:57 but i wouldn't do it purely for the money Nov 30 22:44:07 t8: dont write apps just to make money, or you will never make anything Nov 30 22:44:11 how would you monetize a widget? Nov 30 22:44:12 ^^^ Nov 30 22:44:19 you wouldn't Nov 30 22:44:26 make it free? Nov 30 22:44:30 well i guess you could Nov 30 22:44:34 with a paid version Nov 30 22:44:36 right Nov 30 22:44:42 you make apps/widgets to do something you want your phone to do. then put the apk on the store Nov 30 22:45:00 then add a paid version that either doesnt have adds, or unlocks a certain feature Nov 30 22:45:07 but ads, you def want them in your app, unless the widget is an ad Nov 30 22:45:12 lol Nov 30 22:45:23 what's the best ad provider then? Nov 30 22:45:24 admob? Nov 30 22:45:27 millenial? Nov 30 22:45:38 you're on your own with that one Nov 30 22:45:49 whicheverone doesn't pull in a crapload of permissions i'm never going to allow Nov 30 22:45:50 when considering what feature to charge for, if its a critical feature, people would just not use your app. if the feature is too minimal, people will just not bother and just use the free version Nov 30 22:45:51 i'd work on the app idea before picking a provider Nov 30 22:45:51 hhm... i'll have to think about it. there's like a billion android phones. someone has to search for all sorts of niche stuff Nov 30 22:46:07 k Nov 30 22:46:27 lol Nov 30 22:46:41 t8: as i said, write something that you want your phone tod o Nov 30 22:46:45 this ain't like micro niche adsense websites Nov 30 22:46:59 because, you may think that only you would want that feature, but, your not Nov 30 22:47:18 yea Nov 30 22:47:20 i want to make like Nov 30 22:47:23 a gold widget Nov 30 22:47:25 the best products come from stuff you want to use for yourself Nov 30 22:47:29 have a really slick gold bar, and the price of gold Nov 30 22:47:34 and do that for oil, and a few other things Nov 30 22:47:39 i haven't found anything that looks nice yet Nov 30 22:47:50 outdo em in the design area Nov 30 22:47:53 (i work in finance, and it would be very useful) Nov 30 22:47:54 yea Nov 30 22:48:08 any tips on starting the widget tuturials? Nov 30 22:48:09 Eeeeeee: exactly, because you put effort into something you want for your self, and put features in because you want them, because other apps that do a similar thing, dont already do Nov 30 22:48:10 android keeps getting more and more beautiful and these people keep leaving their old designs Nov 30 22:48:13 i've set up the android dev environment Nov 30 22:48:20 yea Nov 30 22:48:29 i grew up building websites back in 2003 and 2004. i didnt do it for the money Nov 30 22:48:40 the real reason anyone writes anything in programming... "why did you write this app" "because i can" Nov 30 22:48:45 i did it because i cared, and my designs were slick. people bought that stuff. it's different today. if there's no passion, no one cares Nov 30 22:48:52 haha Nov 30 22:49:02 i know php very well, but until i wanted to write a chatroom in 2005, i couldnt learned it at all Nov 30 22:49:05 so i agree Nov 30 22:49:13 learn* Nov 30 22:49:24 t8: i have made money making websites and various cms's and ecommerce packages in php for the last 10 years Nov 30 22:49:27 android looks very slick today Nov 30 22:49:36 ah nice Nov 30 22:49:38 haven't we all Nov 30 22:49:57 its a common path for developer Nov 30 22:50:00 argh Nov 30 22:50:03 fucking keyboard Nov 30 22:50:04 there's no passion in it anymore that's for sure, either the company puts up the money to get the passion, or they get a template Nov 30 22:50:09 anyone recommend tutorials online for building widgets? Nov 30 22:50:28 commonsware Nov 30 22:50:30 php/web dev is a common and easy path for developers to make their way into jobs Nov 30 22:50:34 google that guy and buy his book Nov 30 22:50:46 and search it on github Nov 30 22:50:49 then you do what i do, switch to a real language and write real software that people use Nov 30 22:50:57 (switched to C Nov 30 22:50:59 BAH!!! Nov 30 22:51:04 kid's stuff Nov 30 22:51:06 lol jk Nov 30 22:51:17 Does anyone know whether its okay to use the same Handler for multiple SensorEventListener callbacks? When you use the SensorManager and register for updates, you can specify a Handler to receive the callbacks on (or at least thats what I understand)... can I use the same Handler for a single thread across multiple SensorEventListeners? Nov 30 22:51:40 im going to seach github Nov 30 22:51:40 switched to c# as my main commercial language about 6 months ago and now write software for top flight sports clubs and national sports bodies too Nov 30 22:51:42 looks good Nov 30 22:51:53 do you like using widgets? Nov 30 22:52:17 i had to get away from web dev because honestly it's too crowded, Nov 30 22:52:19 t8: the thing about widgets that annoy me is, there are no good ones Nov 30 22:52:26 95% of widgets are shit Nov 30 22:52:37 well Nov 30 22:52:49 do people actually search for widget based keywords Nov 30 22:53:18 because 95% of widgets are just shortcuts for settings/apps Nov 30 22:53:23 i've never thought to search "blank widget" before. it's always "blank" and they have a widget feature Nov 30 22:54:30 does google release statistics for user based actions like, the percentage of people that use home screen widgets, etc? Nov 30 22:54:32 does BuildConfig.DEBUG refer to the attribute 'debuggable' manifest attribute? Nov 30 22:54:43 or do they play that stuff close to the vest Nov 30 22:54:45 i've searched for clokc/weather widgets a few times, but nothing more Nov 30 22:55:10 althoug if i wanted something like that on my home screen i would do a widget search... why have an app you son't want just fort he widget it provides? Nov 30 22:55:11 Eeeeeee: i had to get away from web dev because i worked with SME's, and over 9 years, i grew to hate pretty much all small business owners, because they are all idiots and i have no idea how they manage to run a business Nov 30 22:55:23 amen Nov 30 22:55:35 and if you try to help, forget it Nov 30 22:55:41 they can't even help themselves Nov 30 22:56:29 I had/have one client that I flat out offered to do his Adwords for free Nov 30 22:57:18 offering anything for free is always a mistake Nov 30 22:57:25 because then thats free forever Nov 30 22:57:27 just so he could witness for himself how well it works when you run a good campaign Nov 30 22:57:31 yep Nov 30 22:57:39 but i felt bad for the guy Nov 30 22:58:46 told him he needed to set up an affiliate program, and find some dedicated affiliates Nov 30 22:59:41 "yeah i've heard you can make a bunch of money doing affiliate marketing!!" --????????? Nov 30 23:03:06 i would spend more time having to deal with the clients bs than I spent doing the actual work Nov 30 23:09:01 interesting Nov 30 23:09:03 i agree Nov 30 23:16:30 hmmn, turns out it isnt the file writer giving me the problem Nov 30 23:16:35 its the sensor service Nov 30 23:17:30 why would the sensor service report the same SensorEvent 50 - 100 times, then switch to a new value for 50 - 100 times and so on Nov 30 23:19:04 I wish java was more specific about which methods belong to a certain interface Nov 30 23:19:54 if Foo implements Bar1, Bar2, can you tell whether method() belongs to the Bar1 interface or the Bar2 interface? Nov 30 23:20:23 i wish someone would create some friggin java shorthand like half the source must be the words public private etc. so strange to me Nov 30 23:21:26 i wish java was C# Nov 30 23:21:35 very similar Nov 30 23:21:35 Bizzeh try Xamarin Nov 30 23:21:42 it is amazing Nov 30 23:21:59 i wish java wasn't so wordy Nov 30 23:22:13 gdrc: yep, C# is java, with some of the shit bits removed, and some of the best bits from other languages pushed in Nov 30 23:22:22 lol Nov 30 23:22:27 correct Nov 30 23:22:34 C# > Java Nov 30 23:22:36 all wrapped up in the best IDE there is Nov 30 23:22:41 shit bits, that's a keeper Nov 30 23:23:05 yes eclipse is da shit if compared to VS Nov 30 23:23:29 eclipse is shit compared to VS Nov 30 23:23:50 I hate eclipse I love vs Nov 30 23:23:57 agreed Nov 30 23:24:52 hmmn, i still dont know why the SensorEventListener is giving me loads of the same SensorEvent repeated after each other Nov 30 23:27:40 verizon has bled me dry for years cannot wait to upgrade to tmobile Nov 30 23:27:49 anyone know how can I see subpackage hierarchically? Nov 30 23:27:51 I'm telling you Bizzeh, Xamarin is the shit! You can use C# to make Android application and iPhone applications Nov 30 23:27:57 this ide is shit Nov 30 23:28:40 w9jds_: had a look into it, was going to go for it until i noticed you still need a mac, and still need a fully licenced dev kit for ios on that mac to actually build for ios Nov 30 23:29:17 It is true, we use it work instead of having to go and work with objective c++ Nov 30 23:29:29 obj-c++ wow ! Nov 30 23:30:23 Xamarin: $300 per year for the pleasure of using something that doesn't map very well to various APIs Nov 30 23:31:51 hey, does anyone know if it's against the TOS or a violation of play rules to repackage an app multiple times to target different keywords/content/users? Nov 30 23:32:30 It might be. It's certainly very questionable behavior. Nov 30 23:32:42 Just go read the TOS. Though, really, if you're asking if something's against the TOS, you're probably already doing something you shouldn't be doing. Nov 30 23:32:43 well, the way i put it yes Nov 30 23:32:55 thanks for the advice Nov 30 23:33:35 There are apps with lite/paid versions and they're essentially repackaged versions of the same app (usually with things stripped out of one), so obviously that's permitted. Nov 30 23:33:45 it's a quote app, but one app targets Steve Job quotes and the other Aristotle Nov 30 23:33:58 if that frames the question better Nov 30 23:34:06 right Nov 30 23:34:07 Aiming really low on the quality spectrum, eh? Nov 30 23:34:16 lol Nov 30 23:34:49 seems legitimate in my mind Nov 30 23:34:53 That's probably permitted, though I seriously question who'd download either when you can get Aristotle's writings for free. Nov 30 23:34:54 i'll contact a google rep Nov 30 23:35:18 do they display in your widgets? Nov 30 23:35:32 can you favorite certain lines and post to facebook? Nov 30 23:35:38 And as for Jobs, well, there aren't any quotes that aren't already out there for free in some form. Probably collated by someone already. Maybe on a site called quotes.org. Maybe wikiquotes. Nov 30 23:35:49 Do you do that? Nov 30 23:36:06 no offense, but what's your deal bro Nov 30 23:36:13 if someone wanted to go to wikipedia Nov 30 23:36:17 Is that like the modern way to signal that you're a douchebag? Nov 30 23:36:19 Is it behavior you want to encourage? Nov 30 23:36:20 they would go to wikipedia not use an app Nov 30 23:36:34 this is my first app Nov 30 23:36:49 I'm just trying to figure out what you're trying to do. Nov 30 23:36:52 And hopefully getting you to ask yourselfif you could be doing something better. Nov 30 23:36:54 *yourself if Nov 30 23:37:21 reverse psychology eh Nov 30 23:37:40 well give me an example Nov 30 23:37:45 what was your last app? Nov 30 23:37:55 An app that just displays random strings selected from a DB is kind of dull. Why not make something that lets you enter your own quotes you hear? Nov 30 23:38:05 https://play.google.com/store/apps/details?id=net.spifftastic.ascension2 ← My last app was that. Nov 30 23:38:16 what do you mean that you hear? Nov 30 23:38:26 It's not really relevant, though, 'cause I'm asking what you could do better. Nov 30 23:38:40 Like say your friend says something and you want to stick it in your quote app. Nov 30 23:38:58 So you do. Nov 30 23:39:02 i could think of 2 people that would want to read it, so that's 2 downloads Nov 30 23:39:05 Don't just make something that repeats a famous person's quotes — those are stale, they're over-used, but the things the people you care about are what you want to record. Nov 30 23:39:30 hey Nov 30 23:39:31 *about say Nov 30 23:39:35 My brain is dropping words out of sentences lately. Nov 30 23:39:48 i have no arguments there Nov 30 23:39:49 same, lack of sleep Nov 30 23:40:11 i can't tell if you're trolling me or genuinely trying to help Nov 30 23:40:31 i have other ideas, way better ideas, but i don't have enough experience to execute those ideas yet Nov 30 23:40:34 Both, probably. Nov 30 23:40:37 It's not really a conscious decision. Nov 30 23:40:46 Then keep working on them. Nov 30 23:41:38 I just realized I'm going to have to re-do all the screenshots of my app that have the UI in them for the next update. Nov 30 23:41:53 do you offer a free version? Nov 30 23:42:06 this is really awesome btw Nov 30 23:42:41 No. Used to, three years ago, but supporting it was a pain in the neck and the conversion rate to the paid version was too low to justify the maintenance. Nov 30 23:42:53 hey Nov 30 23:43:00 im gonna sound like a dick Nov 30 23:43:04 but you should repackage this Nov 30 23:43:17 targeting a different subset of users :P Nov 30 23:43:22 For specific numbers, the paid one had 3,800 downloads (exactly, somehow), while the free version had 38,000 downloads. Nov 30 23:43:28 did you see what i did there? Nov 30 23:43:42 um Nov 30 23:43:47 that's a good conversion rate Nov 30 23:43:50 at least online Nov 30 23:43:54 don't know about apps Nov 30 23:44:31 The problem is that the free version was there for a year. The paid version was around for three years. Nov 30 23:44:51 Hi, I can not try this now but if I do : Log.v("music", Environment.DIRECTORY_MUSIC); , what would be the output ? Same on every android ever like "/sdcard/Music/" ? Nov 30 23:44:53 By the time I cancelled the free version, there were 38,000 downloads. The paid version was still around 300 at the time. Nov 30 23:45:25 wait that drove the conversions? Nov 30 23:45:56 No, I'm not saying removing the free version led to conversions Nov 30 23:46:05 k Nov 30 23:46:06 The free one just wasn't helping either. Nov 30 23:46:23 maybe you were bringing a little joy to someones life Nov 30 23:46:41 Most people, as it turns out, are pretty content with just forgoing paid features if it means they don't have to pay a couple bucks. Nov 30 23:47:06 The economy of app sales is just bizarre. Nov 30 23:47:51 btw have you made other apps? Nov 30 23:48:43 Working on some things, but nothing else released. Nov 30 23:49:07 I mostly just make open source stuff and put it on github and ignore it. Nov 30 23:49:18 lol Nov 30 23:49:19 I think the last thing I did that with was my virtual machine. Nov 30 23:49:23 don't even maintain it eh Nov 30 23:50:11 Not unless I'm using it or it needs maintenance. Nov 30 23:50:11 Most things don't. Nov 30 23:56:24 btw you should add a video Nov 30 23:56:34 since you no longer have the free one Nov 30 23:57:02 Hi guys, anyone using SDL2 for Coding ? Nov 30 23:58:23 I am trying to compile SDL2_mixer and it has few errors when 'ndk-build' is called. I edited Android.mk file to set all flags to false but SUPPORT_OGG. it passed ndk-build but app crashes if I just add SDL_mixer.h to the project. Did anyone had similar issue ? Nov 30 23:58:45 I hame my SDL2, SDL_image, SDL_ttf running just fine Dec 01 00:05:21 IT CRASHES if you just add a header and don't actually call any SDL sound code? Dec 01 00:08:50 Nilium: http://www.reddit.com/r/androiddev/comments/1f3cma/i_have_12_million_downloads_here_are_some_tips/ Dec 01 00:09:23 check out his apps, and his strategy for success https://play.google.com/store/apps/developer?id=Leetcom Dec 01 00:10:14 Eeeeeee often, people just get lucky Dec 01 00:10:25 agreed Dec 01 00:10:46 he found a niche and ran with it Dec 01 00:12:41 just highlighting the re purposing aspect that nilium thought was looking down upon Dec 01 00:13:15 -thought Dec 01 00:14:05 TheBunny, Dec 01 00:15:12 Yes, exactly. I Had the code working on the desktop, then tested the build on Android and it crashes the app, So I started going back and commenting new sound code. And now my engine has all sound code commented out Dec 01 00:15:28 If I #Include Dec 01 00:15:42 it builds, runs but crashes the app on start Dec 01 00:15:45 very strange Dec 01 00:17:20 Urgh. Should I just create a new adapter when I refresh my endlessly scrolling listview, or deal with making a callback wrapper class so i can differentiate between different callbacks Dec 01 00:18:45 Every Successful mobile developer I know either got lucky back at the start… or found a niche ( these days ) Dec 01 00:19:24 Im gonna go with new adapter for simplicitys sake Dec 01 00:19:28 ANN-TechCoder: I second thats JUST very strange.. that should not happen from and include Dec 01 00:19:30 and hope people dont like to pam refresh Dec 01 00:19:32 spam Dec 01 00:19:51 Hmmm.. Wait.. testing something now... Dec 01 00:20:48 TheBunny, god damn it! :) Works. Completely forgot to uncomment System.loadLibrary("SDL2_mixer"); Dec 01 00:20:51 in Java file :) Dec 01 00:20:53 My mistake Dec 01 00:22:13 So I was gonna ask just that Dec 01 00:22:18 Eeeeeee: I'm working on a video. The addition of screenrecord in 4.4 has been handy, just takes time to prepare all the resources for the next update. Dec 01 00:22:19 if it was trying to load a lib still :) Dec 01 00:22:57 the pictures don't do it justice, if it functions like I think it does Dec 01 00:23:19 Testing now.. to see If it SOUNDs :) Dec 01 00:23:30 https://www.youtube.com/watch?v=3DTxv4IOiCM ← That's the last video I put together, but it also doesn't really show off the settings UI and such. Dec 01 00:23:33 can an a "day dream" app do things like turn off and on the display whenever it wants? Dec 01 00:23:45 like, say i set it to always day dream (android, the system) when it's charging Dec 01 00:23:51 then i set it to daydream on my custom app.. Dec 01 00:23:55 Next update's kind of significant. Dec 01 00:23:55 Also ignore the music. Dec 01 00:24:03 can said custom app control the screen on and off whenever it wants? Dec 01 00:25:20 TheBunny, Dec 01 00:26:01 Yeah :) Maaan I love to code in Visual Studio 2013 and have my code run on Desktop and Mobiles Dec 01 00:26:42 :) Dec 01 00:27:23 is SensorEventListener multi threaded? i seem to be getting 5 SensorEvents, a few ms apart, but getting later ones before earlier ones some how Dec 01 00:28:05 Kinda a dumb question. my ArrayAdapter is defined as setsAdapter = new ArrayAdapter(getActivity(),android.R.layout.simple_list_item_1,setsHelper.getSetsList()); however, setsAdapter.notifyDataSetChanged does not call setsHelper.getSetsList(); Dec 01 00:28:09 Any way to get this working? Dec 01 00:30:32 lol no one could sit through that video without the music. yeah if the design goes all crazy when you slide the controls left and right you should definitely showcase that. i thought that was the coolest part before i knew the background was animated ;D Dec 01 00:31:58 Main thing I can't decide when putting together the new video is whether I should bother talking over it or just let people stare at it Dec 01 00:32:10 no Dec 01 00:32:13 don't talk Dec 01 00:32:14 PLEASE Dec 01 00:32:15 lol Dec 01 00:32:43 i almost was passin out watchin it, those things are relaxing Dec 01 00:41:53 Guys, can I reference my application class through APClass.getInstance() or must i cast it from context.getapplicaitonctx Dec 01 00:44:37 You can do either Dec 01 00:44:44 Application is a singleton Dec 01 00:46:04 Great. Dec 01 00:48:48 is there a way to build a widget without java? Dec 01 00:49:19 no Dec 01 00:49:23 not without JVM Dec 01 00:49:31 Well, you could use Scala. Dec 01 00:49:48 Nilium: my big thing is, you've got this framework now that you've invested your precious time into, AND it made money. So you already know there's a market for it, and you're not just taking a leap of faith. Why not rinse and repeat using different patterns, changing the colors, add a new feature or two, or hell even add snow and make it all christmasy. I'll even market/advertise it for you. Go give 5 Android based blogs like 10 free coupon codes fo Dec 01 00:49:48 r their readers. (if google allows that). Change the name to keywords people are actually searching for. After you really refine the framework bump the price up to $4.99. Rinse and repeat until people stop buying, or you get burnt out. Dec 01 00:52:07 do you guys recommend scala on android? Dec 01 00:52:09 looks much easier Dec 01 00:53:46 I use it and prefer it, but that's 'cause I hate Java. Dec 01 00:54:11 How come RelativeLayout getLayoutParams() returns FrameLayout params, and throws exeption if I try to cast it to RelativeLayout params ? Dec 01 00:54:18 Eeeeeee: There are no coupon codes on Android. Dec 01 00:54:50 Also, I see no reason to re-release the same app over and over. All it does is cheapen the work I've done. Dec 01 00:55:04 Nilium: Can you use Scaloid to create powerful android apps? Dec 01 00:55:23 I don't use scaloid, so I wouldn't know. Dec 01 00:55:38 The only thing I use is spastic, which is my own library full of terrible secrets. Dec 01 00:55:58 ok Dec 01 00:56:01 lol Dec 01 00:56:05 is android studio new? Dec 01 00:56:09 i havent made an android app since 2010 Dec 01 00:56:11 vegetablesalad36: docs say it returns ViewGroup.LayoutParams... Dec 01 00:56:17 t8: it's new since then anyways Dec 01 00:56:18 (which seems like yesterday) Dec 01 00:56:31 it was still extremely rough around the edges when I tried it out a few months ago Dec 01 00:56:33 Depends on what you consider new. Dec 01 00:56:57 I hadn't released an Android app since 2010. The only reason I came back was 'cause I found Scala and that made life not suck. Dec 01 00:56:58 vegetablesalad36: Because its parent is a FrameLayout Dec 01 00:58:01 hhmm Dec 01 00:58:07 other than games Dec 01 00:58:14 do you guys think most of the nifty android tools have been created? Dec 01 00:58:20 im thinking about making some widgets Dec 01 00:58:44 * Nilium shrugs Dec 01 00:58:46 so it returns Layout params of parent? Dec 01 00:59:04 I think most widgets are stupid. Dec 01 00:59:20 LayoutParams tells the parent how to layout a view, so yes.. It returns the parents layoutparams subclass Dec 01 00:59:36 SimonVT well thats the strange thing, it's parent is ListView not FrameLayout - or does ListView contains FrameLayouts ? Dec 01 01:02:57 haha Dec 01 01:03:03 i wish i knew java well Dec 01 01:03:06 No, it doesn't wrap it in a framelayout Dec 01 01:03:19 i knew actionscript 2.0 at an expert level, but it seemed so logical. java doesnt make a lot of sense imo Dec 01 01:03:53 * Nilium looks at actionscript but what he sees definitely isn't logic Dec 01 01:04:06 ^ Dec 01 01:04:24 lol Dec 01 01:04:29 ActionScript 3.0 ruined everything Dec 01 01:04:34 I never learned that Dec 01 01:05:01 i dont even think flash is used anymore so it's not a very valuable skill anymore Dec 01 01:05:02 I'm using it as Fragment so perhaps Fragment is wraping it in FrameLayout ? Dec 01 01:05:50 Yes, fragments are wrapped in framelayouts Dec 01 01:06:21 t8 if you know as3 you know haxe, that is worth for something Dec 01 01:06:45 SimonVT: thank you finaly I'm starting to get this, but very slowly Dec 01 01:07:06 wish i did Dec 01 01:07:50 so when I try to get my RelativeView params instead I get Frame params from Fragment Dec 01 01:08:51 I meant change it enough that your old customers actually want to upgrade to the newer version. You know, like every other product in existence. I definitely understand the point of not having it under my own name that potential clients might see... that would just be tacky and definitely cheapen the work. But if the objective is making money, which it of course is, then maximizing your return is the name of the game. Dec 01 01:09:15 so how can I get params for relative view itself ? Should I refere to it's children(s) ? Seems kinda weird. Dec 01 01:09:39 I managed to get margins for RelativeView so got that going Dec 01 01:10:19 does anyone know anyone making $1000 passive android income/month on random niche apps? Dec 01 01:15:55 why don't you make some and find out Dec 01 01:18:33 my friend just won $10k in some competition for his app, and it's not even released yet. But it's a game. Dec 01 01:20:10 also just raised 30k on kickstarter for what i guess you could call a niche app. basically a musical learning game for kids. Dec 01 01:29:38 t8 don't learn because you think you can make money doing it cause you're probably in for a rude awakening, but if that's what motivates you the real money is to be made making apps for other people. Dec 01 01:31:04 just start working on those widgets you were talking about. I thought it sounded cool :P Dec 01 01:32:24 * SpeedEvil ponders unexisting android apps thathe'd wnat. Dec 01 01:33:19 Most of my problems are actually with platform issues. Dec 01 01:35:03 platform issues? Dec 01 01:35:45 Anyone used MergeAdapter by Commons Ware guy? Dec 01 02:03:34 I have a fragment with an ImageButton that connects to a onclick event. Is there a way to compare a byte[] I have for that image to the image that is in the button. I tried parsing it to a bitmapdrawable but it throws an exception. Dec 01 02:11:35 Do you all know of some library/etc. that exists to apply code color schemes to text in an app, like people do with fancy boxes on their websites to display blocks of code Dec 01 02:12:03 Sounds like a style. Dec 01 02:13:27 Could I make a style that specifically highlights java keywords one color, function names and vars another, etc? Dec 01 02:13:28 yiati: I don't, but try searching for "pretty print" or similar Dec 01 02:13:38 or syntax highlighting Dec 01 02:13:46 I would say just go into values and create some styles in the xml and then apply them to the items that you want to make perdy Dec 01 02:13:59 dragorn: Okay cool yeah it's hard to google for something like Android Code Text Style etc lol Dec 01 02:14:01 w9jds_: he wants a complex text display w/ syntax highlighting Dec 01 02:14:22 I don't think you can solve it with just a style; it might be so complex that it's going to be a world of misery for you to do tho Dec 01 02:14:32 another option - look for javascript versions and use a webview? Dec 01 02:14:40 Don't know what you need to do or how sane that is Dec 01 02:14:48 Yeah Dec 01 02:15:14 yiati: http://alexgorbatchev.com/SyntaxHighlighter/ maybe Dec 01 02:15:16 if you can use a webview Dec 01 02:15:26 throw the js in your resources, and load it programatically into the webview w/ your code Dec 01 02:15:35 dragorn: ooh yea woops through he meant as in specific way it looks. As for that I would say making a new control and inherits from a base and add in what you want to do. Dec 01 02:15:39 Hmm yeah guess I could just default to a WebView if necessary Dec 01 02:15:49 dunno if webview is the way to go, but it's -a- way to go Dec 01 02:16:20 Anyone know a clever way of toggling visibility of some rows of a listview, so that the data does not have to be requeryed? Dec 01 02:17:39 lasserix: not w/out writing a custom adapter that plays games, I don't think Dec 01 02:17:49 dragon oh yeah im deep in that Dec 01 02:18:12 you could maintain 2 lists in your adapter and use the main one for visible items Dec 01 02:18:18 and query from your data source into whichever Dec 01 02:18:20 hehehe Dec 01 02:18:21 yeah Dec 01 02:18:22 and hide/show by moving them between lists Dec 01 02:18:24 fugly Dec 01 02:18:28 exactly Dec 01 02:23:52 Hello world! Dec 01 02:24:02 Incoming semantical inquiry: Dec 01 02:25:09 If I'm using Otto (thanks JakeWharton!) and want to have a decent naming scheme for my "subscriber methods", what gives? For example, is it "wrong" to use onFoobarLoaded(), as it indicates that it's some sort of listener/callback? Dec 01 02:26:37 on* just indicates that something has happened Dec 01 02:27:03 exit **** ENDING LOGGING AT Sun Dec 01 02:59:58 2013